df8f6eebda8364ef7cb6af64b8e30ab955def151
[gnulib.git] / ChangeLog
1 2011-09-24  Bruno Haible  <bruno@clisp.org>
2
3         write: Support for MSVC 9.
4         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5         is not 1.
6         * lib/write.c (write_nothrow): New function.
7         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8         not 1. Use write_nothrow.
9         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10         invalid parameter handler.
11         (gl_PREREQ_WRITE): New macro.
12         * modules/write (Depends-on): Add msvc-inval.
13         (configure.ac): Invoke gl_PREREQ_WRITE.
14         * doc/posix-functions/write.texi: Mention the problem on MSVC.
15
16 2011-09-24  Bruno Haible  <bruno@clisp.org>
17
18         read: Fix last commit.
19         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
20
21 2011-09-24  Bruno Haible  <bruno@clisp.org>
22
23         dup2: Fix last commit.
24         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
25         (rpl_dup2): Disable fcntl workaround on native Windows.
26
27         sigprocmask: Make code safer.
28         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
29         section that changes macro definitions for this compilation unit.
30
31 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32
33         dup2: clarify by coalescing Windows-specific material
34         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
35         "msvc-nothrow.h"' to the Windows-specific section, so that the
36         Emacs source need not contain these include files.
37         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
38         Windows-specific fixes into this function rather than just the
39         nothrow fix, as this shortens and clarifies the code.  Always
40         define as a function, as that's a bit cleaner than having it be
41         sometimes a function and sometimes a macro.
42         (rpl_dup2): Move the Windows-specific stuff out of here and into
43         ms_windows_dup2.  Don't protect the Haiku-related fix with
44         "#if !defined __linux__", as the same code also works around
45         a Linux kernel bug, and it doesn't add any system calls on any
46         platform.  Add comment about FreeBSD 6.1.
47
48         sigprocmask: move #include directive
49         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
50         Windows-specific section, so that the Emacs source need not
51         contain msvc-inval.h.
52
53 2011-09-23  Bruno Haible  <bruno@clisp.org>
54
55         read: Support for MSVC 9.
56         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
57         is not 1.
58         * lib/read.c (read_nothrow): New function.
59         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
60         read_nothrow.
61         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
62         invalid parameter handler.
63         (gl_PREREQ_READ): New macro.
64         * modules/read (Depends-on): Add msvc-inval.
65         (configure.ac): Invoke gl_PREREQ_READ.
66         * doc/posix-functions/read.texi: Mention the problem on MSVC.
67
68 2011-09-23  Bruno Haible  <bruno@clisp.org>
69
70         close: Support for MSVC 9.
71         * lib/close.c: Include <errno.h>, msvc-inval.h.
72         (close_nothrow): New function.
73         (rpl_close): Use it.
74         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
75         invalid parameter handler.
76         * modules/close (Depends-on): Add msvc-inval.
77         * modules/dup2-tests (Depends-on): Add close.
78         * modules/dup3-tests (Depends-on): Likewise.
79         * modules/fcntl-tests (Depends-on): Likewise.
80         * modules/spawn-pipe-tests (Depends-on): Likewise.
81         * modules/unistd-safer-tests (Depends-on): Likewise.
82         * doc/posix-functions/close.texi: Mention the problem on MSVC.
83
84 2011-09-23  Bruno Haible  <bruno@clisp.org>
85
86         New module 'dup'.
87         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
88         Allow replacement.
89         * lib/dup.c: New file.
90         * lib/fchdir.c (rpl_dup): Remove function.
91         * m4/dup.m4: New file.
92         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
93         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
94         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
95         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
96         * modules/dup: New file.
97         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
98         'dup' module is in use.
99         * modules/fdopendir (Depends-on): Add dup.
100         * modules/fdutimensat-tests (Depends-on): Likewise.
101         * modules/fts (Depends-on): Likewise.
102         * modules/futimens-tests (Depends-on): Likewise.
103         * modules/posix_spawnp-tests (Depends-on): Likewise.
104         * modules/unistd-safer-tests (Depends-on): Likewise.
105         * modules/utimens-tests (Depends-on): Likewise.
106         * doc/posix-functions/dup.texi: Mention the new module and the problem
107         on MSVC.
108
109 2011-09-23  Bruno Haible  <bruno@clisp.org>
110
111         getdtablesize: Support for MSVC 9.
112         * lib/getdtablesize.c: Include msvc-inval.h.
113         (_setmaxstdio_nothrow): New function.
114         (_setmaxstdio): Redefine it.
115         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
116         * modules/getdtablesize (Depends-on): Add msvc-inval.
117         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
118
119 2011-09-23  Bruno Haible  <bruno@clisp.org>
120
121         signal-h: Rename from signal.
122         * modules/signal-h: Renamed from modules/signal.
123         * modules/pthread_sigmask (Depends-on): Update.
124         * modules/raise (Depends-on): Likewise.
125         * modules/sigaction (Depends-on): Likewise.
126         * modules/sigpipe (Depends-on): Likewise.
127         * modules/sigprocmask (Depends-on): Likewise.
128         * modules/sys_select (Depends-on): Likewise.
129         * modules/signal-h-tests: Renamed from modules/signal-tests.
130         (Files, Depends-on, Makefile.am): Update.
131         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
132         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
133         (Files, Makefile.am): Update.
134         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
135         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
136         * modules/signal: New placeholder file.
137         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
138         * doc/posix-headers/signal.texi: Update.
139         * NEWS: Mention the change.
140
141 2011-09-23  Bruno Haible  <bruno@clisp.org>
142
143         sigprocmask: Avoid crashes through signal() on MSVC 9.
144         * lib/sigprocmask.c: Include msvc-inval.h.
145         (signal_nothrow): New function.
146         (signal): Redefine it.
147         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
148         * modules/sigprocmask (Depends-on): Add msvc-inval.
149         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
150
151 2011-09-23  Bruno Haible  <bruno@clisp.org>
152
153         Tests for module 'raise'.
154         * modules/raise-tests: New file.
155         * tests/test-raise.c: New file.
156
157         raise: Support for MSVC.
158         * lib/signal.in.h (raise): New declaration.
159         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
160         for native Windows platforms.
161         * m4/raise.m4: New file.
162         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
163         HAVE_RAISE, REPLACE_RAISE.
164         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
165         REPLACE_RAISE.
166         * modules/raise (Status, Notice): Remove fields.
167         (Files): Add m4/raise.m4.
168         (Depends-on): Add signal, msvc-inval.
169         (configure.ac): Use the common idioms.
170         (Maintainer): Add me.
171         * tests/test-signal-c++.cc: Check the signature of raise.
172         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
173
174 2011-09-23  Bruno Haible  <bruno@clisp.org>
175
176         pipe2: Fix compilation on pre-C99 compilers.
177         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
178
179 2011-09-23  Bruno Haible  <bruno@clisp.org>
180
181         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
182         * lib/msvc-nothrow.h: New file.
183         * lib/msvc-nothrow.c: New file.
184         * m4/msvc-nothrow.m4: New file.
185         * modules/msvc-nothrow: New file.
186         * lib/dup2.c: Include msvc-nothrow.h.
187         (rpl_dup2): No need to protect _get_osfhandle call here.
188         * lib/accept4.c: Include msvc-nothrow.h.
189         * lib/error.c: Likewise.
190         * lib/fcntl.c: Likewise.
191         * lib/lseek.c: Likewise.
192         * lib/nonblocking.c: Likewise.
193         * lib/poll.c: Likewise.
194         * lib/read.c: Likewise.
195         * lib/select.c: Likewise.
196         * lib/sockets.h: Likewise.
197         * lib/sockets.c: Likewise.
198         * lib/stdio-read.c: Likewise.
199         * lib/stdio-write.c: Likewise.
200         * lib/write.c: Likewise.
201         * lib/w32sock.h: Likewise.
202         * lib/w32spawn.h: Likewise.
203         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
204         * lib/fsync.c: Likewise.
205         * lib/isapipe.c: Likewise.
206         * modules/dup2 (Depends-on): Add msvc-nothrow.
207         * modules/accept4 (Depends-on): Likewise.
208         * modules/error (Depends-on): Likewise.
209         * modules/fcntl (Depends-on): Likewise.
210         * modules/lseek (Depends-on): Likewise.
211         * modules/nonblocking (Depends-on): Likewise.
212         * modules/poll (Depends-on): Likewise.
213         * modules/read (Depends-on): Likewise.
214         * modules/select (Depends-on): Likewise.
215         * modules/sockets (Depends-on): Likewise.
216         * modules/sigpipe (Depends-on): Likewise.
217         * modules/write (Depends-on): Likewise.
218         * modules/accept (Depends-on): Likewise.
219         * modules/bind (Depends-on): Likewise.
220         * modules/connect (Depends-on): Likewise.
221         * modules/gethostname (Depends-on): Likewise.
222         * modules/getpeername (Depends-on): Likewise.
223         * modules/getsockname (Depends-on): Likewise.
224         * modules/getsockopt (Depends-on): Likewise.
225         * modules/ioctl (Depends-on): Likewise.
226         * modules/listen (Depends-on): Likewise.
227         * modules/recv (Depends-on): Likewise.
228         * modules/recvfrom (Depends-on): Likewise.
229         * modules/send (Depends-on): Likewise.
230         * modules/sendto (Depends-on): Likewise.
231         * modules/setsockopt (Depends-on): Likewise.
232         * modules/shutdown (Depends-on): Likewise.
233         * modules/socket (Depends-on): Likewise.
234         * modules/execute (Depends-on): Likewise.
235         * modules/spawn-pipe (Depends-on): Likewise.
236         * modules/flock (Depends-on): Likewise.
237         * modules/fsync (Depends-on): Likewise.
238         * modules/isapipe (Depends-on): Likewise.
239         * tests/test-cloexec.c: Include msvc-nothrow.h.
240         * tests/test-dup-safer.c: Likewise.
241         * tests/test-dup2.c: Likewise.
242         * tests/test-dup3.c: Likewise.
243         * tests/test-fcntl.c: Likewise.
244         * tests/test-pipe.c: Likewise.
245         * tests/test-pipe2.c: Likewise.
246         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
247         * modules/unistd-safer-tests (Depends-on): Likewise.
248         * modules/dup2-tests (Depends-on): Likewise.
249         * modules/dup3-tests (Depends-on): Likewise.
250         * modules/fcntl-tests (Depends-on): Likewise.
251         * modules/pipe-posix-tests (Depends-on): Likewise.
252         * modules/pipe2-tests (Depends-on): Likewise.
253
254 2011-09-23  Bruno Haible  <bruno@clisp.org>
255
256         dup2: Make code more maintainable.
257         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
258         (rpl_dup2): Use it.
259         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
260         * modules/dup2 (configure.ac): Invoke it.
261         Reported by Paul Eggert.
262
263 2011-09-23  Bruno Haible  <bruno@clisp.org>
264
265         msvc-inval: Fix compilation error.
266         * lib/msvc-inval.h: Include <excpt.h>.
267
268 2011-09-23  Bruno Haible  <bruno@clisp.org>
269
270         mkdir: Tweak for MSVC 9.
271         * lib/sys_stat.in.h: Update comments.
272         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
273
274         Tests for module 'chdir'.
275         * modules/chdir-tests: New file.
276         * tests/test-chdir.c: New file.
277
278         New module 'chdir'.
279         * modules/chdir: New file.
280         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
281         (chdir): New declaration.
282         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
283         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
284         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
285         * tests/test-unistd-c++.cc: Check signature of chdir.
286         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
287         * modules/chdir-long (Depends-on): Add chdir.
288         * modules/fchdir (Depends-on): Likewise.
289         * modules/rename (Depends-on): Likewise.
290         * modules/savewd (Depends-on): Likewise.
291
292         rmdir: Support for mingw, MSVC 9.
293         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
294         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
295
296         getcwd: Tweak for MSVC 9.
297         * lib/unistd.in.h: Update comments.
298         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
299
300 2011-09-22  Bruno Haible  <bruno@clisp.org>
301
302         strerror_r-posix: Avoid a link error on MSVC.
303         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
304         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
305
306 2011-09-22  Bruno Haible  <bruno@clisp.org>
307
308         select: Avoid link errors on MSVC.
309         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
310         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
311         * modules/pselect (Link): Likewise.
312         * NEWS: Mention the change.
313         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
314         test-select-stdin against $(LIB_SELECT).
315         * modules/pselect-tests (Makefile.am): Link test-pselect against
316         $(LIB_SELECT).
317
318 2011-09-22  Bruno Haible  <bruno@clisp.org>
319
320         select: Avoid compilation error on MSVC.
321         * lib/select.c: Don't include <stdbool.h>.
322
323 2011-09-21  Bruno Haible  <bruno@clisp.org>
324
325         Consolidate all uses of PATH_MAX in *.m4 files.
326         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
327         macros.
328         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
329         and gl_PATHMAX_SNIPPET.
330         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
331         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
332         * modules/chdir-long (Files): Add m4/pathmax.m4.
333         * modules/getcwd (Files): Likewise.
334
335 2011-09-21  Bruno Haible  <bruno@clisp.org>
336
337         ftruncate: Un-deprecate, concentrate on Win32 support.
338         * modules/ftruncate (Status, Notice): Remove sections.
339         (Depends-on): Add largefile.
340         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
341         non-mingw platforms.
342         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
343         include <io.h>.
344         * modules/perror-tests (Depends-on): Add ftruncate.
345         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
346         'ftruncate' module.
347
348 2011-09-21  Bruno Haible  <bruno@clisp.org>
349
350         Add dependencies to new dirent related modules.
351         * modules/opendir (Depends-on): Add closedir.
352         * modules/getcwd (Depends-on): Add opendir, closedir.
353         * modules/dirent-safer-tests (Depends-on): Likewise.
354         * modules/fdopendir-tests (Depends-on): Likewise.
355         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
356         * modules/renameat-tests (Depends-on): Likewise.
357
358 2011-09-21  Bruno Haible  <bruno@clisp.org>
359
360         opendir: Avoid compilation error on mingw.
361         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
362         * modules/opendir (Depends-on): Add unistd.
363
364 2011-09-21  Bruno Haible  <bruno@clisp.org>
365
366         ftruncate tests: Avoid a test failure on mingw.
367         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
368
369 2011-09-21  Bruno Haible  <bruno@clisp.org>
370
371         select tests: Avoid test failures on OSF/1 5.1 and mingw.
372         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
373         native Windows.
374
375 2011-09-21  Bruno Haible  <bruno@clisp.org>
376
377         New module 'fdopen'.
378         * lib/stdio.in.h (fdopen): New declaration.
379         * lib/fdopen.c: New file.
380         * m4/fdopen.m4: New file.
381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
382         REPLACE_FDOPEN.
383         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
384         REPLACE_FDOPEN.
385         * modules/fdopen: New file.
386         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
387         * tests/test-stdio-c++.cc: Check signature of fdopen.
388         * doc/posix-functions/fdopen.texi: Mention the new module.
389
390 2011-09-21  Bruno Haible  <bruno@clisp.org>
391
392         unlockpt tests: Avoid test failure on NetBSD 5.1.
393         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
394         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
395
396 2011-09-21  Bruno Haible  <bruno@clisp.org>
397
398         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
399         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
400         * tests/test-getlogin_r.c (main): Likewise.
401
402 2011-09-20  Bruno Haible  <bruno@clisp.org>
403
404         time tests: Don't require pid_t.
405         * doc/posix-headers/time.texi: Revert last change.
406         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
407         * tests/test-time.c: Comment out the check for pid_t.
408
409 2011-09-20  Bruno Haible  <bruno@clisp.org>
410
411         fsync tests: Avoid a test failure on mingw.
412         * tests/test-fsync.c (main): Allow a failure with EIO.
413
414 2011-09-20  Bruno Haible  <bruno@clisp.org>
415
416         euidaccess: Update comments.
417         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
418
419 2011-09-20  Bruno Haible  <bruno@clisp.org>
420
421         Ensure EBADF returns for socket functions on mingw.
422         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
423         descriptor is invalid.
424         * lib/bind.c (rpl_bind): Likewise.
425         * lib/connect.c (rpl_connect): Likewise.
426         * lib/getpeername.c (rpl_getpeername): Likewise.
427         * lib/getsockname.c (rpl_getsockname): Likewise.
428         * lib/getsockopt.c (rpl_getsockopt): Likewise.
429         * lib/listen.c (rpl_listen): Likewise.
430         * lib/recv.c (rpl_recv): Likewise.
431         * lib/recvfrom.c (rpl_recvfrom): Likewise.
432         * lib/send.c (rpl_send): Likewise.
433         * lib/sendto.c (rpl_sendto): Likewise.
434         * lib/setsockopt.c (rpl_setsockopt): Likewise.
435         * lib/shutdown.c (rpl_shutdown): Likewise.
436
437 2011-09-20  Bruno Haible  <bruno@clisp.org>
438
439         select tests: EBADF tests.
440         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
441         test_bad_fd): New functions.
442         (test_function): Invoke also test_bad_fd.
443
444 2011-09-20  Bruno Haible  <bruno@clisp.org>
445
446         Tests for module 'posix_spawn_file_actions_addopen.
447         * modules/posix_spawn_file_actions_addopen-tests: New file.
448         * tests/test-posix_spawn_file_actions_addopen.c: New file.
449
450         Tests for module 'posix_spawn_file_actions_adddup2'.
451         * modules/posix_spawn_file_actions_adddup2-tests: New file.
452         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
453
454         Tests for module 'posix_spawn_file_actions_addclose'.
455         * modules/posix_spawn_file_actions_addclose-tests: New file.
456         * tests/test-posix_spawn_file_actions_addclose.c: New file.
457
458 2011-09-20  Bruno Haible  <bruno@clisp.org>
459
460         Tests for module 'unlockpt'.
461         * modules/unlockpt-tests: New file.
462         * tests/test-unlockpt.c: New file.
463         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
464
465         Tests for module 'grantpt'.
466         * modules/grantpt-tests: New file.
467         * tests/test-grantpt.c: New file.
468         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
469
470 2011-09-20  Bruno Haible  <bruno@clisp.org>
471
472         freopen tests: EBADF tests.
473         * tests/test-freopen.c: Include errno.h, unistd.h.
474         (main): Add tests for EBADF, commented out for the moment.
475
476         fclose tests: EBADF tests.
477         * tests/test-fclose.c (main): Add tests for EBADF.
478
479         fflush tests: EBADF tests.
480         * tests/test-fflush.c: Include errno.h, macros.h.
481         (main): Add tests for EBADF.
482
483         ftello tests: EBADF tests.
484         * tests/test-ftello4.sh: New file.
485         * tests/test-ftello4.c: New file.
486         * modules/ftello-tests (Files): Add them.
487         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
488
489         fseeko tests: EBADF tests.
490         * tests/test-fseeko4.sh: New file.
491         * tests/test-fseeko4.c: New file.
492         * modules/fseeko-tests (Files): Add them.
493         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
494
495         Tests for function fputc().
496         * modules/fputc-tests: New file.
497         * tests/test-fputc.c: New file.
498         * modules/stdio-tests (Depends-on): Add fputc-tests.
499
500         Tests for function fgetc().
501         * modules/fgetc-tests: New file.
502         * tests/test-fgetc.c: New file.
503         * modules/stdio-tests (Depends-on): Add fgetc-tests.
504
505         Tests for function fdopen().
506         * modules/fdopen-tests: New file.
507         * tests/test-fdopen.c: New file.
508         * modules/stdio-tests (Depends-on): Add fdopen-tests.
509
510         Tests for module 'vdprintf'.
511         * modules/vdprintf-tests: New file.
512         * tests/test-vdprintf.c: New file.
513
514         Tests for module 'dprintf'.
515         * modules/dprintf-tests: New file.
516         * tests/test-dprintf.c: New file.
517
518 2011-09-20  Bruno Haible  <bruno@clisp.org>
519
520         Tests for module 'ioctl'.
521         * modules/ioctl-tests: New file.
522         * tests/test-ioctl.c: New file.
523
524 2011-09-20  Bruno Haible  <bruno@clisp.org>
525
526         fcntl tests: EBADF tests.
527         * tests/test-fcntl.c (main): Add more tests for EBADF.
528
529 2011-09-20  Bruno Haible  <bruno@clisp.org>
530
531         utimensat tests: EBADF tests.
532         * tests/test-utimensat.c (main): Add tests for EBADF.
533
534         renameat tests: EBADF tests.
535         * tests/test-renameat.c (main): Add tests for EBADF.
536
537         mkfifoat tests: EBADF tests.
538         * tests/test-mkfifoat.c (main): Add tests for EBADF.
539
540         readlinkat tests: EBADF tests.
541         * tests/test-readlinkat.c (main): Add tests for EBADF.
542
543         symlinkat tests: EBADF tests.
544         * tests/test-symlinkat.c (main): Add tests for EBADF.
545
546         linkat tests: EBADF tests.
547         * tests/test-linkat.c (main): Add tests for EBADF.
548
549         Tests for module 'faccessat'.
550         * modules/faccessat-tests: New file.
551         * tests/test-faccessat.c: New file.
552
553         fdopendir tests: EBADF tests.
554         * tests/test-fdopendir.c (main): Add more tests for EBADF.
555
556         openat tests: EBADF tests.
557         * tests/test-fchownat.c (main): Add tests for EBADF.
558         * tests/test-fstatat.c (main): Likewise.
559         * tests/test-mkdirat.c (main): Likewise.
560         * tests/test-openat.c (main): Likewise.
561         * tests/test-unlinkat.c (main): Likewise.
562         * tests/test-fchmodat.c: New file.
563         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
564         (Makefile.am): Also run 'test-fchmodat'.
565
566 2011-09-20  Bruno Haible  <bruno@clisp.org>
567
568         utimens, futimens, fdutimensat tests: EBADF tests.
569         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
570
571         Tests for function fstat().
572         * modules/fstat-tests: New file.
573         * tests/test-fstat.c: New file.
574         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
575
576 2011-09-20  Bruno Haible  <bruno@clisp.org>
577
578         test-ttyname_r tests: EBADF tests.
579         * tests/test-ttyname_r.c (main): Add tests for EBADF.
580
581         Tests for module 'isatty'.
582         * modules/isatty-tests: New file.
583         * tests/test-isatty.c: New file.
584
585         Tests for module 'write'.
586         * modules/write-tests: New file.
587         * tests/test-write.c: New file.
588
589         Tests for module 'read'.
590         * modules/read-tests: New file.
591         * tests/test-read.c: New file.
592
593         pwrite tests: EBADF tests.
594         * tests/test-pwrite.c (main): Add tests for EBADF.
595
596         pread tests: EBADF tests.
597         * tests/test-pread.c (main): Add tests for EBADF.
598
599         lseek tests: EBADF tests.
600         * tests/test-lseek.c (main): Add more tests for EBADF.
601
602         Tests for module 'ftruncate'.
603         * modules/ftruncate-tests: New file.
604         * tests/test-ftruncate.sh: New file.
605         * tests/test-ftruncate.c: New file.
606
607         fsync tests: EBADF tests.
608         * tests/test-fsync.c (main): Add more tests for EBADF.
609
610         fdatasync tests: EBADF tests.
611         * tests/test-fdatasync.c (main): Add more tests for EBADF.
612
613         Tests for module 'fchown'.
614         * modules/fchown-tests: New file.
615         * tests/test-fchown.c: New file.
616
617         Tests for module 'fchmod'.
618         * modules/fchmod-tests: New file.
619         * tests/test-fchmod.c: New file.
620
621         fchdir tests: EBADF tests.
622         * tests/test-fchdir.c (main): Add more tests for EBADF.
623
624         dup2 tests: EBADF tests.
625         * tests/test-dup2.c (main): Add more tests for EBADF.
626
627         Tests for module 'dup'.
628         * modules/dup-tests: New file.
629         * tests/test-dup.c: New file.
630
631         Tests for module 'close'.
632         * modules/close-tests: New file.
633         * tests/test-close.c: New file.
634
635 2011-09-20  Bruno Haible  <bruno@clisp.org>
636
637         Tests for module 'shutdown'.
638         * modules/shutdown-tests: New file.
639         * tests/test-shutdown.c: New file.
640
641         Tests for module 'setsockopt'.
642         * modules/setsockopt-tests: New file.
643         * tests/test-setsockopt.c: New file.
644
645         Tests for module 'sendto'.
646         * modules/sendto-tests: New file.
647         * tests/test-sendto.c: New file.
648
649         Tests for module 'send'.
650         * modules/send-tests: New file.
651         * tests/test-send.c: New file.
652
653         Tests for module 'recvfrom'.
654         * modules/recvfrom-tests: New file.
655         * tests/test-recvfrom.c: New file.
656
657         Tests for module 'recv'.
658         * modules/recv-tests: New file.
659         * tests/test-recv.c: New file.
660
661         Tests for module 'listen'.
662         * modules/listen-tests: New file.
663         * tests/test-listen.c: New file.
664
665         Tests for module 'getsockopt'.
666         * modules/getsockopt-tests: New file.
667         * tests/test-getsockopt.c: New file.
668
669         Tests for module 'getsockname'.
670         * modules/getsockname-tests: New file.
671         * tests/test-getsockname.c: New file.
672
673         Tests for module 'getpeername'.
674         * modules/getpeername-tests: New file.
675         * tests/test-getpeername.c: New file.
676
677         Tests for module 'connect'.
678         * modules/connect-tests: New file.
679         * tests/test-connect.c: New file.
680
681         Tests for module 'bind'.
682         * modules/bind-tests: New file.
683         * tests/test-bind.c: New file.
684
685         accept4 tests: Fix for native Windows.
686         * tests/test-accept4.c: Include sockets.h.
687         (main): Invoke gl_sockets_startup.
688         * modules/accept4-tests (Depends-on): Add sockets.
689
690         accept tests: Fix for native Windows.
691         * tests/test-accept.c: Include sockets.h.
692         (main): Invoke gl_sockets_startup.
693         * modules/accept-tests (Depends-on): Add sockets.
694
695 2011-09-19  Bruno Haible  <bruno@clisp.org>
696
697         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
698         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
699         do...while(0).
700         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
701         Suggested by Paul Eggert.
702
703 2011-09-19  Bruno Haible  <bruno@clisp.org>
704
705         sched: Ensure pid_t is defined.
706         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
707         not define pid_t.
708         * lib/sched.in.h: Include <sys/types.h>.
709         * doc/posix-headers/sched.texi: Mention the pid_t problem.
710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
711
712 2011-09-19  Bruno Haible  <bruno@clisp.org>
713
714         msvc-inval: Ensure the entire expansion is a single statement.
715         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
716         of braces.
717
718 2011-09-19  Jim Meyering  <meyering@redhat.com>
719
720         tests: use printf, not echo in init.sh's warn_ function
721         * tests/init.sh (warn_): Use printf, not echo.  The latter would
722         misbehave when given strings containing a backslash or starting
723         with e.g., -n.  James Youngman suggested setting IFS.
724
725 2011-09-19  Eric Blake  <eblake@redhat.com>
726
727         futimens: enhance test
728         * tests/test-futimens.h (test_futimens): Also check for EBADF on
729         closed non-negative fd.
730
731         date: accept 'hence' as opposite of 'ago'
732         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
733         * tests/test-parse-datetime.c (main): Enhance test.
734         Suggested by Jesse Wilson.
735
736 2011-09-19  Jim Meyering  <meyering@redhat.com>
737
738         getcwd: don't fail in a deep directory on a system without openat
739         Before this change, getcwd would fail when called from a directory
740         of depth PATH_MAX / 3 or greater.  That was due to the fact that
741         the non-openat implementation used "..", "../..", "../../..", etc.
742         to access ancestor directories.  With too many, that string would
743         be longer than PATH_MAX.
744         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
745         using gnulib's openat replacement.
746         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
747         we're using the replacement function.
748
749 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
750
751         maint.mk: avoid warnings from perl about missing files
752         * top/maint.mk (def_sym_regex): Ignore files listed in
753         $(gl_other_headers_) that do not exist, say because a project
754         does not use a corresponding module.
755
756 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
757
758         stat: use pathmax.h only if needed
759         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
760         This is better for Emacs, which does not have a mingw port and
761         therefore can avoid the pathmax module.
762
763         utimens: remove dependency on dup2
764         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
765         to work around the Linux kernel bug.
766         * modules/utimens (Depends-on): Remove dup2.
767
768 2011-09-18  Bruno Haible  <bruno@clisp.org>
769
770         inet_ntop, inet_pton: Look for it also in libresolv.
771         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
772         libnsl, search for it in libresolv.
773         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
774         Needed on Solaris 7.
775
776 2011-09-18  Bruno Haible  <bruno@clisp.org>
777
778         accept, accept4 tests: Avoid link error on Solaris.
779         * modules/accept-tests (Makefile.am): Link test-accept against
780         $(LIBSOCKET).
781         * modules/accept4-tests (Makefile.am): Link test-accept4 against
782         $(LIBSOCKET).
783
784         accept4: Avoid link error on Solaris.
785         * modules/accept4 (Link): New section.
786
787         socket functions: Avoid link errors on Solaris.
788         * modules/accept (Depends-on): Add socketlib.
789         (Link): New section.
790         * modules/bind (Depends-on): Add socketlib.
791         (Link): New section.
792         * modules/connect (Depends-on): Add socketlib.
793         (Link): New section.
794         * modules/getpeername (Depends-on): Add socketlib.
795         (Link): New section.
796         * modules/getsockname (Depends-on): Add socketlib.
797         (Link): New section.
798         * modules/getsockopt (Depends-on): Add socketlib.
799         (Link): New section.
800         * modules/listen (Depends-on): Add socketlib.
801         (Link): New section.
802         * modules/recv (Depends-on): Add socketlib.
803         (Link): New section.
804         * modules/recvfrom (Depends-on): Add socketlib.
805         (Link): New section.
806         * modules/send (Depends-on): Add socketlib.
807         (Link): New section.
808         * modules/sendto (Depends-on): Add socketlib.
809         (Link): New section.
810         * modules/setsockopt (Depends-on): Add socketlib.
811         (Link): New section.
812         * modules/shutdown (Depends-on): Add socketlib.
813         (Link): New section.
814         * modules/socket (Depends-on): Add socketlib.
815         (Link): New section.
816
817 2011-09-18  Bruno Haible  <bruno@clisp.org>
818
819         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
820         * tests/test-ptsname.c (main): Terminate the test if it takes longer
821         than 5 seconds.
822         * modules/ptsname-tests (configure.ac): Test for alarm.
823
824 2011-09-18  Bruno Haible  <bruno@clisp.org>
825
826         posix_spawn_file_actions_add*: Fix module dependencies.
827         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
828         posix_spawn_file_actions_init.
829         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
830         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
831
832 2011-09-18  Bruno Haible  <bruno@clisp.org>
833
834         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
835         * tests/test-rename.h (test_rename): Allow error code EEXIST.
836         * tests/test-renameat.c (main): Likewise.
837
838 2011-09-18  Bruno Haible  <bruno@clisp.org>
839
840         Tests for module 'accept4'.
841         * modules/accept4-tests: New file.
842         * tests/test-accept4.c: New file.
843
844 2011-09-18  Bruno Haible  <bruno@clisp.org>
845
846         Tests for module 'accept'.
847         * modules/accept-tests: New file.
848         * tests/test-accept.c: New file.
849
850 2011-09-18  Bruno Haible  <bruno@clisp.org>
851
852         dup2: Support for MSVC.
853         * lib/dup2.c: Include msvc-inval.h.
854         (rpl_dup2): Handle invalid parameter notifications during dup2 and
855         _get_osfhandle calls.
856         * modules/dup2 (Depends-on): Add msvc-inval.
857         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
858
859         New module 'msvc-inval'.
860         * lib/msvc-inval.h: New file.
861         * lib/msvc-inval.c: New file.
862         * m4/msvc-inval.m4: New file.
863         * modules/msvc-inval: New file.
864
865 2011-09-17  Bruno Haible  <bruno@clisp.org>
866
867         Tests for module 'pclose'.
868         * modules/pclose-tests: New file.
869
870         New module 'pclose'.
871         * lib/stdio.in.h (pclose): New declaration.
872         * lib/pclose.c: New file.
873         * m4/pclose.m4: New file.
874         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
875         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
876         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
877         * modules/pclose: New file.
878         * modules/popen-tests (Depends-on): Add pclose.
879         * modules/popen-safer-tests (Depends-on): Likewise.
880         * doc/posix-functions/pclose.texi: Mention the new module.
881
882 2011-09-17  Bruno Haible  <bruno@clisp.org>
883
884         popen: Support for MSVC.
885         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
886         * lib/popen.c (popen): Provide alternate definition for native Windows.
887         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
889         * modules/popen (Depends-on, configure.ac): Update condition.
890         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
891         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
892         fixed.
893
894 2011-09-17  Bruno Haible  <bruno@clisp.org>
895
896         isnanl, isnand, isnanf: Work around MSVC bug.
897         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
898
899 2011-09-17  Bruno Haible  <bruno@clisp.org>
900
901         sys_socket tests: Fix recent mistake.
902         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
903
904 2011-09-17  Bruno Haible  <bruno@clisp.org>
905
906         putenv: Support for MSVC.
907         * modules/putenv (Depends-on): Add environ.
908         * lib/putenv.c (environ): Disable declaration.
909         * lib/unistd.in.h: Update comment.
910
911 2011-09-17  Bruno Haible  <bruno@clisp.org>
912
913         math: Avoid macro redefinition warnings on MSVC.
914         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
915         Undefine before redefining.
916
917 2011-09-17  Bruno Haible  <bruno@clisp.org>
918
919         doc: Mention functions which are declared as macros.
920         * doc/posix-functions/*[fl].texi: Mention that some functions are
921         defined as macros with arguments only.
922
923 2011-09-17  Bruno Haible  <bruno@clisp.org>
924
925         Add dependencies to new dirent related modules.
926         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
927         * modules/fts (Depends-on): Likewise.
928         * modules/glob (Depends-on): Likewise.
929         * modules/savedir (Depends-on): Likewise.
930         * modules/scandir (Depends-on): Likewise.
931         * modules/dirent-safer (Depends-on): Add opendir, closedir.
932         * modules/fdopendir (Depends-on): Add opendir.
933
934 2011-09-17  Bruno Haible  <bruno@clisp.org>
935
936         inet_pton: Support for MSVC on Windows Vista or newer.
937         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
938         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
939         HAVE_DECL_INET_PTON is defined.
940         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
941         On platforms with <winsock2.h>, test whether inet_pton is declared in
942         <ws2tcpip.h>. If so, arrange to replace it.
943         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
944         REPLACE_INET_PTON.
945         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
946         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
947         (Depends-on, configure.ac): Update condition.
948         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
949
950 2011-09-17  Bruno Haible  <bruno@clisp.org>
951
952         inet_ntop: Support for MSVC on Windows Vista or newer.
953         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
954         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
955         HAVE_DECL_INET_NTOP is defined.
956         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
957         On platforms with <winsock2.h>, test whether inet_ntop is declared in
958         <ws2tcpip.h>. If so, arrange to replace it.
959         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
960         REPLACE_INET_NTOP.
961         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
962         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
963         (Depends-on, configure.ac): Update condition.
964         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
965
966 2011-09-16  Eric Blake  <eblake@redhat.com>
967
968         test-fsync: yet another enhancement
969         * tests/test-fsync.c (main): Also test behavior on read-only text
970         file.
971
972 2011-09-16  Bruno Haible  <bruno@clisp.org>
973
974         Enhance fsync, fdatasync tests.
975         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
976         * tests/test-fdatasync.c (main): Likewise.
977
978 2011-09-16  Bruno Haible  <bruno@clisp.org>
979
980         Support for MSVC compiler: Ensure mode_t gets defined.
981         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
982         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
983         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
984         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
985         * tests/test-fcntl-h.c: Check that mode_t is defined.
986         * tests/test-sys_stat.c: Likewise.
987         * tests/test-sys_types.c: Likewise.
988         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
989         * doc/posix-headers/sys_stat.texi: Likewise.
990         * doc/posix-headers/sys_types.texi: Likewise.
991
992 2011-09-16  Bruno Haible  <bruno@clisp.org>
993
994         sys_stat: Support for MSVC.
995         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
996         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
997         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
998         MSVC.
999
1000 2011-09-16  Bruno Haible  <bruno@clisp.org>
1001
1002         Support for MSVC compiler: Ensure off_t gets defined.
1003         * lib/unistd.in.h: Include <sys/types.h>.
1004         * tests/test-fcntl-h.c: Check that off_t is defined.
1005         * tests/test-sys_stat.c: Likewise.
1006         * tests/test-sys_types.c: Likewise.
1007
1008 2011-09-16  Eric Blake  <eblake@redhat.com>
1009
1010         fdatasync: port to Solaris
1011         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1012         * modules/fdatasync (Link): Document it.
1013         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1014
1015         fdatasync: port to MacOS X 10.7
1016         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1017         declared.
1018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1019         * modules/unistd (Makefile.am): Substitute it.
1020         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1021         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1022
1023         fdatasync: minor improvements
1024         * modules/fdatasync (Depends-on): Add condition for fsync.
1025         * lib/fdatasync.c (fdatasync): Add comment.
1026         * tests/test-unistd-c++.cc: Test fdatasync.
1027
1028         unistd: update refs to newer POSIX
1029         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1030         Suggested by Bruno Haible.
1031
1032         fdatasync: new module
1033         * modules/fsync (Description): Document difference to fdatasync.
1034         * modules/fdatasync: New module.
1035         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1036         * lib/fdatasync.c (fdatasync): Likewise.
1037         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1038         defaults.
1039         * modules/unistd (Makefile.am): Set witnesses.
1040         * lib/unistd.in.h (fdatasync): Declare.
1041         * MODULES.html.sh: Document it.
1042         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1043         * modules/fdatasync-tests: New test.
1044         * tests/test-fdatasync.c: Likewise.
1045
1046 2011-09-16  Eric Blake  <eblake@redhat.com>
1047
1048         test-fsync: enhance tests
1049         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1050         * tests/test-fsync.c (main): Enhance test.
1051
1052 2011-09-15  Bruno Haible  <bruno@clisp.org>
1053
1054         Support for MSVC compiler: Ensure ssize_t gets defined.
1055         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1056         * doc/posix-headers/stdio.texi: Likewise.
1057         * modules/stdio (Depends-on): Add ssize_t.
1058         * modules/sys_socket (Depends-on): Likewise.
1059         * modules/sys_types (Depends-on): Likewise.
1060         * modules/sys_uio (Depends-on): Likewise.
1061         * modules/unistd (Depends-on): Likewise.
1062         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1063         * tests/test-sys_types.c: Check that ssize_t is defined.
1064
1065 2011-09-14  Bruno Haible  <bruno@clisp.org>
1066
1067         Avoid using #, the m4 comment starter character, near brackets.
1068         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1069         delimiter character in sed expressions.
1070         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1071         Suggested by Eric Blake.
1072
1073         Properly quote AC_CHECK_DECLS' 4th argument.
1074         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1075         argument.
1076         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1077         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1078         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1079         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1080         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1081         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1082         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1083         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1084         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1085         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1086         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1087         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1088         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1089         * m4/isinf.m4 (gl_ISINF): Likewise.
1090         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1091         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1092         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1093         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1095         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1096         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1097         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1098         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1099         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1100         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1101         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1103         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1105         Reported by Eric Blake.
1106
1107         Properly quote AC_CHECK_DECL's 4th argument.
1108         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1109         argument.
1110         * m4/argp.m4 (gl_ARGP): Likewise.
1111         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1112         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1113         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1114         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1115         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1116         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1117         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1118         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1119         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1120         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1121         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1122         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1123         Reported by Eric Blake.
1124
1125 2011-09-14  Eric Blake  <eblake@redhat.com>
1126
1127         opendir: avoid compile warning
1128         * lib/opendir.c (includes): Always include errno.h.
1129         Reported by Tatsuro MATSUOKA.
1130
1131 2011-09-14  Jim Meyering  <meyering@redhat.com>
1132
1133         maint.mk: sc_tight_scope: propagate failure from sub-make
1134         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1135         Reported by Martin von Gagern.
1136
1137 2011-09-13  Bruno Haible  <bruno@clisp.org>
1138
1139         tempname: Support for MSVC.
1140         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1141         MSVC.
1142         * modules/tempname (Depends-on): Add fcntl-h.
1143
1144 2011-09-13  Bruno Haible  <bruno@clisp.org>
1145
1146         sys_time: Support for MSVC.
1147         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1148         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1149         include <winsock2.h>.
1150         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1151         function declarations that collide with POSIX.
1152         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1153         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1154
1155 2011-09-13  Bruno Haible  <bruno@clisp.org>
1156
1157         stat: Support for MSVC.
1158         * lib/stat.c: Include pathmax.h.
1159         * modules/stat (Depends-on): Add pathmax.
1160
1161         pathmax: Support for native Windows.
1162         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1163
1164 2011-09-12  Bruno Haible  <bruno@clisp.org>
1165
1166         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1167         * lib/dirent.in.h (struct dirent): New type.
1168         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1169         DT_WHT): New macros.
1170         (DIR): New type.
1171         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1172         (readdir, rewinddir): New declarations.
1173         * lib/dirent-private.h: New file.
1174         * lib/opendir.c: New file.
1175         * lib/readdir.c: New file.
1176         * lib/rewinddir.c: New file.
1177         * lib/closedir.c: New file.
1178         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1179         * m4/opendir.m4: New file.
1180         * m4/readdir.m4: New file.
1181         * m4/rewinddir.m4: New file.
1182         * m4/closedir.m4: New file.
1183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1184         REPLACE_CLOSEDIR here.
1185         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1186         readdir, rewinddir are declared.
1187         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1188         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1189         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1190         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1191         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1192         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1193         * modules/opendir: New file.
1194         * modules/readdir: New file.
1195         * modules/rewinddir: New file.
1196         * modules/closedir: New file.
1197         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1198         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1199         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1200         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1201         * NEWS: Mention the 'fchdir' change.
1202
1203 2011-09-11  Bruno Haible  <bruno@clisp.org>
1204
1205         asm-underscore.m4: Support for MSVC.
1206         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1207         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1208
1209 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1210
1211         Doc about crypt functions.
1212         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1213         needing for _GNU_SOURCE to get crypt.
1214         * doc/posix-functions/encrypt.texi: Likewise.
1215         * doc/posix-functions/setkey.texi: Likewise.
1216
1217 2011-09-11  Bruno Haible  <bruno@clisp.org>
1218
1219         doc: Update regarding MSVC 9.
1220         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1221         tested".
1222         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1223         * doc/posix-headers/*.texi: Likewise.
1224         * doc/pastposix-functions/*.texi: Likewise.
1225         * doc/glibc-functions/*.texi: Likewise.
1226         * doc/glibc-headers/*.texi: Likewise.
1227
1228 2011-09-11  Bruno Haible  <bruno@clisp.org>
1229
1230         unistd et al.: Don't assume <unistd.h> exists.
1231         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1232         does not exist.
1233         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1234         exist. But include <stdlib.h>.
1235         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1236         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1237         symlink() does not exist.
1238         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1239         include <io.h> instead.
1240         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1241         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1242         include <direct.h> instead.
1243         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1244         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1245         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1246         <io.h> instead.
1247         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1248         correctly if the system does not have hard links.
1249         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1250         <direct.h> instead.
1251         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1252         it when looking for function declarations.
1253         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1254         <direct.h> and <io.h> instead.
1255         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1256
1257 2011-09-11  Bruno Haible  <bruno@clisp.org>
1258
1259         strcase: Support for MSVC.
1260         * modules/strcase (Status, Notice): Remove obsoletion mark.
1261         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1262         * doc/posix-functions/strncasecmp.texi: Likewise.
1263
1264         strings: Don't assume <strings.h> exists.
1265         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1266         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1267         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1268         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1269
1270 2011-09-11  Bruno Haible  <bruno@clisp.org>
1271
1272         dirent: Don't assume <dirent.h> exists.
1273         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1274         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1275         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1276         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1277
1278 2011-09-11  Bruno Haible  <bruno@clisp.org>
1279
1280         Fix wint_t on MSVC.
1281         * lib/wchar.in.h (wint_t): On MSVC, override it.
1282         * lib/wctype.in.h (wint_t): Likewise.
1283         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1284         MSVC.
1285         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1286         * doc/posix-headers/wctype.texi: Likewise.
1287
1288 2011-09-11  Bruno Haible  <bruno@clisp.org>
1289
1290         sys_types: Fix typo.
1291         * lib/sys_types.in.h: Fix typo in comment.
1292         Reported by Paul Eggert.
1293
1294         Support for MSVC compiler: Ensure size_t gets defined.
1295         * modules/strings (Depends-on): Add 'sys_types'.
1296         * modules/sys_uio (Depends-on): Likewise.
1297         * lib/sys_uio.in.h: Update comment.
1298
1299         C++ tests for module 'sys_types'.
1300         * modules/sys_types-c++-tests: New file.
1301         * tests/test-sys_types-c++.cc: New file.
1302
1303         Tests for module 'sys_types'.
1304         * modules/sys_types-tests: New file.
1305         * tests/test-sys_types.c: New file.
1306
1307         New module 'sys_types'.
1308         * lib/sys_types.in.h: New file.
1309         * m4/sys_types_h.m4: New file.
1310         * modules/sys_types: New file.
1311         * doc/posix-headers/sys_types.texi: Mention the new module and the
1312         size_t problem on MSVC 9.
1313
1314 2011-09-11  Bruno Haible  <bruno@clisp.org>
1315
1316         Support for MSVC compiler: Avoid division by a literal 0.
1317         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1318         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1319         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1320         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1321         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1322         * tests/infinity.h: New file.
1323         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1324         on MSVC.
1325         * tests/test-ceilf1.c: Include infinity.h.
1326         (main): Use Infinityf.
1327         * tests/test-ceil1.c: Include infinity.h.
1328         (main): Use Infinityd.
1329         * tests/test-ceill.c: Include infinity.h.
1330         (main): Use Infinityl.
1331         * tests/test-dprintf-posix.c: Include infinity.h.
1332         (test_function): Use Infinityd.
1333         * tests/test-floorf1.c: Include infinity.h.
1334         (main): Use Infinityf.
1335         * tests/test-floor1.c: Include infinity.h.
1336         (main): Use Infinityd.
1337         * tests/test-floorl.c: Include infinity.h.
1338         (main): Use Infinityl.
1339         * tests/test-fprintf-posix.c: Include infinity.h.
1340         (test_function): Use Infinityd.
1341         * tests/test-frexp.c: Include infinity.h.
1342         (main): Use Infinityd.
1343         * tests/test-frexpl.c: Include infinity.h.
1344         (main): Use Infinityl.
1345         * tests/test-isfinite.c: Include infinity.h.
1346         (test_isfinitef): Use Infinityf.
1347         (test_isfinited): Use Infinityd.
1348         (test_isfinitel): Use Infinityl.
1349         * tests/test-isinf.c: Include infinity.h.
1350         (test_isinff): Use Infinityf.
1351         (test_isinfd): Use Infinityd.
1352         (test_isinfl): Use Infinityl.
1353         * tests/test-isnan.c: Include infinity.h.
1354         (test_float): Use Infinityf.
1355         (test_double): Use Infinityd.
1356         (test_long_double): Use Infinityl.
1357         * tests/test-isnanf.h: Include infinity.h.
1358         (main): Use Infinityf.
1359         * tests/test-isnand.h: Include infinity.h.
1360         (main): Use Infinityd.
1361         * tests/test-isnanl.h: Include infinity.h.
1362         (main): Use Infinityl.
1363         * tests/test-ldexpl.c: Include infinity.h.
1364         (main): Use Infinityl.
1365         * tests/test-printf-posix.h: Include infinity.h.
1366         (test_function): Use Infinityd.
1367         * tests/test-roundf1.c: Include infinity.h.
1368         (main): Use Infinityf.
1369         * tests/test-round1.c: Include infinity.h.
1370         (main): Use Infinityd.
1371         * tests/test-roundl.c: Include infinity.h.
1372         (main): Use Infinityl.
1373         * tests/test-signbit.c: Include infinity.h.
1374         (test_signbitf): Use Infinityf.
1375         (test_signbitd): Use Infinityd.
1376         (test_signbitl): Use Infinityl.
1377         * tests/test-snprintf-posix.h: Include infinity.h.
1378         (test_function): Use Infinityd, Infinityl.
1379         * tests/test-sprintf-posix.h: Include infinity.h.
1380         (test_function): Use Infinityd, Infinityl.
1381         * tests/test-truncf1.c: Include infinity.h.
1382         (main): Use Infinityf.
1383         * tests/test-trunc1.c: Include infinity.h.
1384         (main): Use Infinityd.
1385         * tests/test-truncl.c: Include infinity.h.
1386         (main): Use Infinityl.
1387         * tests/test-vasnprintf-posix.c: Include infinity.h.
1388         (test_function): Use Infinityd, Infinityl.
1389         * tests/test-vasprintf-posix.c: Include infinity.h.
1390         (test_function): Use Infinityd, Infinityl.
1391         * modules/ceilf-tests (Files): Add tests/infinity.h.
1392         * modules/ceil-tests (Files): Likewise.
1393         * modules/ceill-tests (Files): Likewise.
1394         * modules/dprintf-posix-tests (Files): Likewise.
1395         * modules/floorf-tests (Files): Likewise.
1396         * modules/floor-tests (Files): Likewise.
1397         * modules/floorl-tests (Files): Likewise.
1398         * modules/fprintf-posix-tests (Files): Likewise.
1399         * modules/frexp-tests (Files): Likewise.
1400         * modules/frexp-nolibm-tests (Files): Likewise.
1401         * modules/frexpl-tests (Files): Likewise.
1402         * modules/frexpl-nolibm-tests (Files): Likewise.
1403         * modules/isfinite-tests (Files): Likewise.
1404         * modules/isinf-tests (Files): Likewise.
1405         * modules/isnan-tests (Files): Likewise.
1406         * modules/isnanf-tests (Files): Likewise.
1407         * modules/isnanf-nolibm-tests (Files): Likewise.
1408         * modules/isnand-tests (Files): Likewise.
1409         * modules/isnand-nolibm-tests (Files): Likewise.
1410         * modules/isnanl-tests (Files): Likewise.
1411         * modules/isnanl-nolibm-tests (Files): Likewise.
1412         * modules/ldexpl-tests (Files): Likewise.
1413         * modules/printf-posix-tests (Files): Likewise.
1414         * modules/roundf-tests (Files): Likewise.
1415         * modules/round-tests (Files): Likewise.
1416         * modules/roundl-tests (Files): Likewise.
1417         * modules/signbit-tests (Files): Likewise.
1418         * modules/snprintf-posix-tests (Files): Likewise.
1419         * modules/sprintf-posix-tests (Files): Likewise.
1420         * modules/truncf-tests (Files): Likewise.
1421         * modules/trunc-tests (Files): Likewise.
1422         * modules/truncl-tests (Files): Likewise.
1423         * modules/vasnprintf-posix-tests (Files): Likewise.
1424         * modules/vasprintf-posix-tests (Files): Likewise.
1425         * modules/vdprintf-posix-tests (Files): Likewise.
1426         * modules/vfprintf-posix-tests (Files): Likewise.
1427         * modules/vprintf-posix-tests (Files): Likewise.
1428         * modules/vsnprintf-posix-tests (Files): Likewise.
1429         * modules/vsprintf-posix-tests (Files): Likewise.
1430         * modules/xprintf-posix-tests (Files): Likewise.
1431
1432 2011-09-11  Bruno Haible  <bruno@clisp.org>
1433
1434         Ensure pid_t gets defined.
1435         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1436         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1437         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1438         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1439         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1440         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1441         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1442         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1443         * tests/test-fcntl-h.c: Check that pid_t is defined.
1444         * tests/test-sched.c: Likewise.
1445         * tests/test-termios.c: Likewise.
1446         * tests/test-time.c: Likewise.
1447         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1448         * doc/posix-headers/signal.texi: Likewise.
1449         * doc/posix-headers/sys_types.texi: Likewise.
1450         * doc/posix-headers/time.texi: Likewise.
1451
1452 2011-09-11  Bruno Haible  <bruno@clisp.org>
1453
1454         acl: Fix compilation on Solaris 10 (older version).
1455         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1456         of ACE_EVERYONE.
1457         * lib/set-mode-acl.c (qset_acl): Likewise.
1458         Reported by Christian Jullien <eligis@orange.fr>.
1459
1460 2011-09-10  Bruno Haible  <bruno@clisp.org>
1461
1462         iconv, unsetenv: Add support for MSVC compiler.
1463         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1464         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1465
1466 2011-09-10  Bruno Haible  <bruno@clisp.org>
1467
1468         *printf: Add support for MSVC compiler.
1469         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1470         handles the exception caused by the %n directive. When cross-compiling,
1471         guess no on native Windows.
1472         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1473         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1474         emulate it through vsnprintf.
1475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1476         * doc/posix-functions/dprintf.texi: Update documentation regarding
1477         MSVC 9.
1478         * doc/posix-functions/fprintf.texi: Likewise.
1479         * doc/posix-functions/printf.texi: Likewise.
1480         * doc/posix-functions/snprintf.texi: Likewise.
1481         * doc/posix-functions/sprintf.texi: Likewise.
1482         * doc/posix-functions/swprintf.texi: Likewise.
1483         * doc/posix-functions/vdprintf.texi: Likewise.
1484         * doc/posix-functions/vfprintf.texi: Likewise.
1485         * doc/posix-functions/vprintf.texi: Likewise.
1486         * doc/posix-functions/vsnprintf.texi: Likewise.
1487         * doc/posix-functions/vsprintf.texi: Likewise.
1488         * doc/glibc-functions/asprintf.texi: Likewise.
1489         * doc/glibc-functions/obstack_printf.texi: Likewise.
1490         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1491         * doc/glibc-functions/vasprintf.texi: Likewise.
1492
1493 2011-09-10  Bruno Haible  <bruno@clisp.org>
1494
1495         nocrash: Add support for native Windows.
1496         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1497
1498 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1499             Bruno Haible  <bruno@clisp.org>
1500
1501         absolute-header, include-next: Add support for MSVC compiler.
1502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1503         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1504         directory separator in #line directives.
1505         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1506         recognize also backslash as directory separator in #line directives.
1507
1508 2011-09-08  Jim Meyering  <meyering@redhat.com>
1509
1510         maint.mk: mark the post-release commit log with "maint: " prefix
1511         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1512         one-line commit-log summary.
1513
1514 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1515             Bruno Haible  <bruno@clisp.org>
1516
1517         Doc about crypt functions.
1518         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1519         systems.
1520         * doc/posix-functions/encrypt.texi: Likewise.
1521         * doc/posix-functions/setkey.texi: Likewise.
1522
1523 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1524
1525         * lib/gc.h: Fix copyright header.
1526
1527 2011-09-07  Bruno Haible  <bruno@clisp.org>
1528
1529         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1530         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1531         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1532
1533 2011-09-07  Bruno Haible  <bruno@clisp.org>
1534
1535         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1536         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1537         * lib/freopen.c: Likewise.
1538         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1539         * lib/lstat.c: Likewise.
1540         * lib/stat.c: Likewise.
1541         * lib/open.c: Use different syntax for include of <fcntl.h>.
1542         * lib/openat.c: Include fcntl.h again, explicitly.
1543
1544 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1545
1546         parse-datetime: document the newly accepted format
1547         * doc/parse-datetime.texi (Combined date and time of day items):
1548         New section.
1549
1550 2011-09-06  Bruno Haible  <bruno@clisp.org>
1551
1552         acl: Fix a test failure on newer Solaris 10 with ZFS.
1553         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1554         ENOSYS as no ACL.
1555         Reported by Jim Meyering.
1556
1557 2011-09-06  Bruno Haible  <bruno@clisp.org>
1558
1559         acl: Update for AIX >= 5.3 with NFS.
1560         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1561         ENOSYS as no ACL.
1562
1563         acl: Fix a test failure on AIX >= 5.3 with NFS.
1564         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1565         as no ACL.
1566
1567 2011-09-06  Bruno Haible  <bruno@clisp.org>
1568
1569         acl: Fix a test failure on IRIX 6.5 with NFS.
1570         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1571         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1572         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1573         * lib/copy-acl.c (qcopy_acl): Likewise.
1574
1575 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1576
1577         openat: port to AIX 7.1 with large files
1578         AIX 7.1 does a "#define openat open64at" if large files are in use,
1579         so we can't simply #undef openat.  Use the orig_openat trick (similar
1580         to orig_open in lib/open.c) to work around the problem.  Problem
1581         reported by Kevin Brott for GNU tar, in the thread containing
1582         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1583         * lib/openat.c (__need_system_fcntl_h): Define first.
1584         Include <fcntl.h> and <sys/types.h> before undefining.
1585         (orig_openat) [HAVE_OPENAT]: New inline function.
1586         (openat) [HAVE_OPENAT]: Do not undef.
1587         (rpl_openat): Use orig_openat, not openat.
1588
1589 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1590             Bruno Haible  <bruno@clisp.org>
1591
1592         acl: Avoid errors on NonStop Kernel.
1593         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1594         ENOTSUP errors.
1595
1596 2011-09-05  Bruno Haible  <bruno@clisp.org>
1597
1598         acl: Clean up Solaris code.
1599         * lib/acl-internal.h: Remove no-op #if.
1600         * lib/file-has-acl.c: Likewise.
1601         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1602         * lib/copy-acl.c (qcopy_acl): Likewise.
1603
1604 2011-09-05  Bruno Haible  <bruno@clisp.org>
1605
1606         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1607         binaries built on the original Solaris 10.
1608         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1609         trivial.
1610
1611 2011-09-05  Bruno Haible  <bruno@clisp.org>
1612
1613         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1614         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1615         10.
1616         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1617         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1618         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1619         instead of acl_get, facl_get, acl_set, facl_set.
1620
1621 2011-09-05  Bruno Haible  <bruno@clisp.org>
1622
1623         copy-file: Try unit tests on more file systems.
1624         * tests/test-copy-file-1.sh: New file.
1625         * tests/test-copy-file-2.sh: New file.
1626         * modules/copy-file-tests (Files): Add them.
1627         (Makefile.am): Add them to TESTS.
1628
1629         acl: Try unit tests on more file systems.
1630         * tests/test-file-has-acl-1.sh: New file.
1631         * tests/test-file-has-acl-2.sh: New file.
1632         * tests/test-set-mode-acl-1.sh: New file.
1633         * tests/test-set-mode-acl-2.sh: New file.
1634         * tests/test-copy-acl-1.sh: New file.
1635         * tests/test-copy-acl-2.sh: New file.
1636         * modules/acl-tests (Files): Add them.
1637         (Makefile.am): Add them to TESTS.
1638
1639 2011-09-04  Bruno Haible  <bruno@clisp.org>
1640
1641         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1642         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1643         10.
1644         (OLD_ALLOW, OLD_DENY): New macros.
1645         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1646         ACE_ACCESS_ALLOWED_ACE_TYPE.
1647         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1648         ACE_ACCESS_DENIED_ACE_TYPE.
1649         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1650         (NEW_ACE_EXECUTE): Fix value.
1651         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1652         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1653         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1654         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1655         NEW_ACE_SYNCHRONIZE): New macros.
1656         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1657         instead of acl_fromtext, acl_set, facl_set.
1658         Fixes a coreutils/tests/cp/perm failure.
1659
1660 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1661
1662         openat: test for fstatat (..., 0) bug
1663         Further testing with tar suggests that fstatat (..., 0)
1664         does not work in general, on AIX 7.1; see
1665         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1666         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1667         replacement fstatat (which is what older AIX releases were using
1668         anyway).
1669         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1670         use is now changed to orig_fstatat.  This was probably the right
1671         thing to do anyway.
1672         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1673         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1674         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1675         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1676         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1677         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1678         if the bug is found.
1679
1680         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1681         This tests for another fstatat bug on AIX 7.1:
1682         fstatat (AT_FDCWD, ..., 0) does not work.  See
1683         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1684         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1685         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1686         (rpl_fstatat): Adjust so that it works around either (or both)
1687         bugs if present.
1688         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1689
1690 2011-09-03  Karl Berry  <karl@gnu.org>
1691
1692         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1693         in index entries.
1694
1695 2011-09-02  Bruno Haible  <bruno@clisp.org>
1696
1697         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1698         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1699         values of AR, ARFLAGS, RANLIB.
1700         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1701
1702 2011-09-02  Bruno Haible  <bruno@clisp.org>
1703
1704         Find 'ar' program that fits with --host argument.
1705         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1706
1707 2011-09-02  Bruno Haible  <bruno@clisp.org>
1708
1709         tests: init.sh: Support any non-GNU diff.
1710         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1711         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1712         Solaris 8.
1713
1714 2011-09-02  Bruno Haible  <bruno@clisp.org>
1715
1716         tests: init.sh: work also with any non-GNU diff that supports -u
1717         * tests/init.sh: Relax check for diff -u support.
1718         Rather than checking for GNU diff via --version, simply check
1719         for support for -u itself.  Useful at least on OpenBSD 4.9,
1720         AIX 7.1, IRIX 6.5, and Solaris 10.
1721
1722 2011-09-01  Bruno Haible  <bruno@clisp.org>
1723
1724         strtoimax, strtoumax: Document problem on HP-UX 11.
1725         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1726         * doc/posix-functions/strtoumax.texi: Likewise.
1727
1728 2011-09-01  Bruno Haible  <bruno@clisp.org>
1729
1730         strtoumax: Avoid link error on OSF/1 with DTK cc.
1731         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1732         defined as a function.
1733         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1734         strtoumax is defined, not whether it is declared.
1735
1736 2011-09-01  Bruno Haible  <bruno@clisp.org>
1737
1738         strtoimax: Avoid link error on OSF/1 with DTK cc.
1739         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1740         defined as a function.
1741         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1742         strtoimax is defined, not whether it is declared.
1743
1744 2011-09-01  Bruno Haible  <bruno@clisp.org>
1745
1746         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1747         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1748         as a function.
1749         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1750         whether it is declared.
1751
1752 2011-09-01  Bruno Haible  <bruno@clisp.org>
1753
1754         imaxabs: Avoid link error on OSF/1 with DTK cc.
1755         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1756         as a function.
1757         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1758         whether it is declared.
1759
1760 2011-09-01  Bruno Haible  <bruno@clisp.org>
1761
1762         Tests for module 'strtoumax'.
1763         * modules/strtoumax-tests: New file.
1764         * tests/test-strtoumax.c: New file.
1765
1766         Tests for module 'strtoimax'.
1767         * modules/strtoimax-tests: New file.
1768         * tests/test-strtoimax.c: New file.
1769
1770         Tests for module 'imaxdiv'.
1771         * modules/imaxdiv-tests: New file.
1772         * tests/test-imaxdiv.c: New file.
1773
1774         Tests for module 'imaxabs'.
1775         * modules/imaxabs-tests: New file.
1776         * tests/test-imaxabs.c: New file.
1777
1778 2011-09-01  Bruno Haible  <bruno@clisp.org>
1779
1780         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1781         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1782         pthread_create.
1783
1784 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1785
1786         openat: work around AIX 7.1 fstatat issue
1787         This should fix the problem that was not properly fixed
1788         in the previous change, dated 2011-08-30.
1789         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1790         __need_system_stat_h defined.
1791         (orig_fstatat) [HAVE_FSTATAT]: New function.
1792         (rpl_fstatat): Go back to the old way of doing things,
1793         except call orig_fstatat instead of fstatat.
1794         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1795         Remove unnecessary check whether fstatat fills in st_size etc.
1796
1797 2011-09-01  Bruno Haible  <bruno@clisp.org>
1798
1799         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1800         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1801         just include the system's header.
1802
1803 2011-08-31  Jim Meyering  <meyering@redhat.com>
1804
1805         tests: avoid spurious assertion failure in test-float.c on ppc64
1806         * tests/test-float.c (test_long_double): Comment out an assertion,
1807         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1808         with gcc-4.4.4.
1809
1810         maint: indent with spaces, not TABs
1811         I need to get in the habit of running gnulib's "make check".
1812         Both of these would have been caught.
1813         * m4/largefile.m4: Indent with spaces, not TABs.
1814         * lib/parse-datetime.y (iso_8601_time): Likewise.
1815         Spotted by Pádraig Brady.
1816
1817         test-parse-datetime.c: accommodate a relatively strict gcc warning
1818         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1819         to avoid a warning from gcc's -Werror=missing-declarations.
1820         Insert a few spaces-before-funcall-parenthesis.
1821
1822 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1823
1824         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1825         The parser now accepts ISO 8601 date-time strings with "T" as the
1826         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1827         with a space between the date and time strings.  Now it also parses
1828         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1829         variants like "2004-02-29T16:21:42.333-07:00"
1830         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1831         of day representation using the 'T' separator character.
1832         * doc/parse-datetime.texi (General date syntax): replace use of
1833         deprecated --iso-8601 option with --rfc-3339 in example of date
1834         command output formats that can be parsed.
1835         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1836         lib/parse-datetime.y.
1837         (gmt_offset): New function.
1838         (main): Add additional test cases to validate ISO8601 extended
1839         date and time of day parsing.
1840
1841 2011-08-31  Bruno Haible  <bruno@clisp.org>
1842
1843         freopen: Documentation.
1844         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1845         name.
1846         Reported by Claudio Bley <claudio.bley@gmail.com>.
1847
1848 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1849
1850         freopen: Don't crash if the filename argument is NULL.
1851         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1852         NULL.
1853
1854 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1855
1856         openat: work around AIX 7.1 fstatat bug
1857         Problem reported by Kevin Brott for GNU tar, in the thread containing
1858         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1859         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1860         FSTATAT_ST_SIZE_ETC_BROKEN.
1861         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1862         rpl_fstatat.
1863         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1864         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1865         AC_CHECK_FUNCS_ONCE for fstatat.
1866         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1867         fchmodat, mkdirat, openat and unlinkat.
1868
1869 2011-08-30  Bruno Haible  <bruno@clisp.org>
1870
1871         Avoid endless recursions if config.h includes some header files.
1872         * lib/fopen.c (__need_FILE): Define already before including config.h.
1873         * lib/freopen.c (__need_FILE): Likewise.
1874         * lib/open.c (__need_system_fcntl_h): Likewise.
1875         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1876         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1877         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1878
1879 2011-08-25  Karl Berry  <karl@gnu.org>
1880
1881         * config/srclist.txt (ylwrap): new try.
1882         * build-aux/ylwrap: new file.
1883
1884 2011-08-23  Bruno Haible  <bruno@clisp.org>
1885
1886         tmpdir: Use a good default directory on native Windows.
1887         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1888         (P_tmpdir): Default to _P_tmpdir on native Windows.
1889         (path_search): On native Windows, try the value returned by GetTempPath
1890         before trying P_tmpdir.
1891         * modules/tmpdir (Depends-on): Add pathmax.
1892         Suggested by John Darrington <john@darrington.wattle.id.au>.
1893
1894 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1895
1896         doc: fix typo in README-release
1897         * top/README-release: Capitalize first word of a sentence.
1898
1899 2011-08-19  Jim Meyering  <meyering@redhat.com>
1900
1901         fts: do not exhaust memory when processing million-entry directories
1902         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1903         directory would require about 256*N bytes of memory.  Thus, it was
1904         easy to construct a directory too large to be processed by any of
1905         those tools.  With this change, fts' maximum memory utilization is
1906         now limited to around 30MB.
1907         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1908         (fts_read): When we've processed the final entry (i.e., when
1909         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1910         using the parent entry to read any remaining entries.  Dispatch
1911         depending on what fts_build returns:
1912         - NULL+stop, aka failure: stop
1913         - NULL otherwise: move up in the dir hierarchy
1914         - non-NULL: handle this new entry
1915         (fts_build): Declare and use new local, continue_readdir.
1916         Prepare to be called from fts_read, when the entries
1917         from a partially-read directory have just been exhausted.
1918         In that case, we'll skip the opendir and instead use the parent's
1919         fts_dirp and derive dir_fd from that.
1920         Finally, in the readdir loop, if we read max_entries entries,
1921         exit the loop ensuring *not* to call closedir.  This is required
1922         so that fts_dirp can be reused on a subsequent call.
1923         Prompted by Ben England's report of memory exhaustion in find
1924         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1925
1926         maint: fts: move decl of `dp' down into while loop; split a long line
1927         * lib/fts.c (fts_build): No semantic change.
1928
1929         fts: add/use new struct member, fts_dirp
1930         We are about to use this to manage any directory with
1931         too many entries to read all of them into memory at once.
1932         To do that, we'll need to save the DIR* pointer in each
1933         affected FTSENT struct.
1934         * lib/fts_.h: Include <dirent.h>.
1935         (struct FTSENT) [fts_dirp]: New member.
1936         * lib/fts.c (closedir_and_clear): Define.
1937         Use it in place of closedir so that we are sure to
1938         clear the new fts_dirp member when done with it.
1939         (fts_alloc): Initialize the new member.
1940         (fts_lfree): Free, if needed.
1941
1942         maint: fts: give __opendir2 a new parameter and rename
1943         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1944         than surreptitiously using sole caller's "dir_fd".
1945         (fts_opendir): Rename from __opendir2.
1946
1947         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1948         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1949
1950         maint: fts.c: correct off-by-one indentation
1951         * lib/fts.c (fts_build): Correct indentation, change style
1952         of a couple of block comments, and bracing style.
1953
1954         maint: fts.c: move __opendir2 #define "up" out of function body
1955         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1956
1957         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1958         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1959         out for a long time and besides was useful only on BSD systems.
1960
1961 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1962
1963         regex: port to Stratus OpenVOS
1964         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1965         define to empty, rather than attempting nonportable optimizations.
1966         Problem reported by Paul Green in:
1967         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1968         and fix suggested by Eric Blake in:
1969         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1970
1971 2011-08-17  Eric Blake  <eblake@redhat.com>
1972
1973         getcwd: fix test failures on mingw
1974         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1975         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1976         test if long directory cannot be created, and allow mingw errno.
1977
1978         getcwd-lgpl: fix m4 to match relaxed test for BSD
1979         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1980         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1981         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1982         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1983         signature problem.
1984
1985         getcwd: fix compilation on mingw64
1986         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1987         getcwd.
1988         Reported by Marc-André Lureau.
1989
1990         pipe2: silence compiler warning
1991         * lib/pipe2.c (pipe2): Hide label if it is not used.
1992
1993 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1994
1995         relocatable-prog: fix link error
1996         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1997         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1998         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1999         into modules/relocatable-lib without noticing that
2000         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2001         also needs to build relocatable.c.
2002
2003 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2007         shell code: it contained a 'break' that was not in a loop.
2008         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2009         via a shell-language loop; this may have been true in old Autoconf
2010         versions, but it's not true in Autoconf 2.68.  I found this bug
2011         when testing coreutils git on Solaris 8, whose shell complains
2012         about the syntax error.
2013
2014 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2015
2016         * lib/base64.c: Fix comment to reference RFC 4648.
2017         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2018         <gvtulder@gmail.com>.
2019
2020 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2021
2022         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2023
2024         po/Makefile.in.in: fix make -q problem
2025         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2026         rule, since there's no file named 'check-macro-version' and its
2027         use as a file breaks make -q.
2028         (all): Don't depend on check-macro-version.
2029         (CHECK_MACRO_VERSION): New macro.
2030         (stamp-po): Use it.
2031
2032         configmake: fix make -q problem
2033         * modules/configmake (configmake.h): Update configmake.h's time stamp
2034         even if the file does not change.  Otherwise, 'make -q' fails.
2035         Problem reported by Simon Josefsson in
2036         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2037
2038 2011-08-11  Jim Meyering  <meyering@redhat.com>
2039
2040         git-version-gen: correct the advice in a comment
2041         * build-aux/git-version-gen: Correct comment.
2042         Don't recommend to list .tarball-version in .gitignore.
2043
2044 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2045
2046         base64: fix off-by-one buffer size bug
2047         Problem and (trivial) fix reported by Gijs van Tulder in
2048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2049         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2050         * tests/test-base64.c (main): Catch the bug.
2051
2052 2011-08-10  Eric Blake  <eblake@redhat.com>
2053
2054         closein: correct comments
2055         * lib/closein.c (close_stdin): Improve comments.
2056
2057 2011-08-09  Bruno Haible  <bruno@clisp.org>
2058
2059         More tests for 'fseeko'.
2060         * tests/test-fseeko3.c: New file, from Eric Blake.
2061         * tests/test-fseeko3.sh: New file.
2062         * modules/fseeko-tests (Files): Add them.
2063         (TESTS): Add test-fseeko3.sh.
2064         (check_PROGRAMS): Add test-fseeko3.
2065
2066 2011-08-09  Eric Blake  <eblake@redhat.com>
2067
2068         fseeko: remove unneeded hack
2069         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2070
2071         fseeko: fix bug on glibc
2072         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2073         Reported by John W. Eaton.
2074
2075 2011-08-08  Bruno Haible  <bruno@clisp.org>
2076
2077         unictype/base: Fix interoperability with preinstalled libunistring.
2078         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2079         Reported by Simon Josefsson.
2080
2081 2011-08-08  Bruno Haible  <bruno@clisp.org>
2082
2083         iswblank: Detect declaration correctly.
2084         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2085         AC_CHECK_DECLS invocation.
2086
2087 2011-08-08  Bruno Haible  <bruno@clisp.org>
2088
2089         tcgetsid: Detect declaration correctly.
2090         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2091         AC_CHECK_DECLS invocation.
2092         Reported by Simon Josefsson.
2093
2094 2011-08-08  Eric Blake  <eblake@redhat.com>
2095
2096         largefile: fix typo that regressed large file support
2097         * modules/largefile (configure.ac-early): Fix section name.
2098
2099 2011-08-06  Karl Berry  <karl@gnu.org>
2100
2101         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2102         a separate module.
2103
2104 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2105
2106         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2107         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2108         get prototype for free.
2109
2110 2011-08-04  Bruno Haible  <bruno@clisp.org>
2111
2112         Tests for module 'pathmax'.
2113         * modules/pathmax-tests: New file.
2114         * tests/test-pathmax.c: New file.
2115
2116         canonicalize-lgpl: Support larger filenames on the Hurd.
2117         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2118         Reported by Paul Eggert.
2119
2120         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2121         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2122         * lib/chdir-long.h: Include pathmax.h.
2123         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2124         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2125         (PATH_MAX): Remove code that is done by pathmax.h.
2126         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2127         * lib/tmpfile.c: Add a comment.
2128         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2129         * modules/chdir-long (Depends-on): Add pathmax.
2130         * modules/getcwd (Depends-on): Add pathmax.
2131         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2132         is not defined.
2133         * doc/posix-headers/limits.texi: Mention the pathmax module.
2134         * NEWS: Mention the change.
2135
2136 2011-08-02  Bruno Haible  <bruno@clisp.org>
2137
2138         pthread_sigmask: Actually use results of gl_THREADLIB.
2139         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2140         gl_THREADLIB, not gl_[]THREADLIB.
2141         Reported by Eric Blake.
2142
2143 2011-08-02  Jim Meyering  <meyering@redhat.com>
2144
2145         maint.mk: relax the default _gl_TS_function_match regexp
2146         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2147         space between function name and "(" in an "extern" declaration.
2148         That would fail to match a decl with no space there: extern void foo();
2149
2150 2011-07-31  Iain Nicol  <iain@thenicols.net>
2151
2152         git-version-gen: document that EXTRA_DIST must include .version
2153         * build-aux/git-version-gen: In the how-to-use comment, document
2154         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2155         will fail when run from an unpacked distribution tarball.
2156
2157 2011-08-01  Bruno Haible  <bruno@clisp.org>
2158
2159         wctype-h: Fix last change.
2160         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2161         REPLACE_TOWLOWER to 0.
2162         Reported by Sam Steingold <sds@gnu.org>.
2163
2164 2011-07-31  Bruno Haible  <bruno@clisp.org>
2165
2166         frexpl: Update autoconf test.
2167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2168         according to changes of 2011-06-20.
2169
2170 2011-07-31  Bruno Haible  <bruno@clisp.org>
2171
2172         sys_utsname: Add support for Minix.
2173         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2174         <sys/utsname.h>.
2175         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2176         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2177
2178 2011-07-31  Bruno Haible  <bruno@clisp.org>
2179
2180         strings: Add support for Minix.
2181         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2182         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2183         * doc/posix-headers/strings.texi: Document the Minix problem.
2184
2185 2011-07-31  Bruno Haible  <bruno@clisp.org>
2186
2187         wctype-h: Add support for Minix.
2188         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2189         REPLACE_TOWLOWER.
2190         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2191         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2192         REPLACE_ISWCNTRL.
2193
2194 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2197         This is a performance improvement for 64-bit hosts: it causes the
2198         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2199
2200 2011-07-31  Bruno Haible  <bruno@clisp.org>
2201
2202         stdioext: Add support for Minix.
2203         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2204         * lib/fpurge.c (fpurge): Likewise.
2205         * lib/freadahead.c (freadahead): Likewise.
2206         * lib/freadable.c (freadable): Likewise.
2207         * lib/freading.c (freading): Likewise.
2208         * lib/freadptr.c (freadptr): Likewise.
2209         * lib/freadseek.c (freadptrinc): Likewise.
2210         * lib/fseeko.c (rpl_fseeko): Likewise.
2211         * lib/fseterr.c (fseterr): Likewise.
2212         * lib/fwritable.c (fwritable): Likewise.
2213         * lib/fwriting.c (fwriting): Likewise.
2214         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2215         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2216
2217 2011-07-31  Bruno Haible  <bruno@clisp.org>
2218
2219         errno: Port to Minix.
2220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2221         ECONNABORTED are defined.
2222         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2223         GNULIB_defined_ECONNABORTED): New macros.
2224         * lib/strerror-override.h (strerror_override): Test also
2225         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2226         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2227         ECONNABORTED.
2228         * doc/posix-headers/errno.texi: Mention the Minix problem.
2229
2230 2011-07-31  Bruno Haible  <bruno@clisp.org>
2231
2232         Work around declaration collisions on Minix.
2233         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2234         defined, set REPLACE_MBSINIT.
2235         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2236         defined, set REPLACE_MBRTOWC.
2237         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2238         set REPLACE_MBRLEN.
2239         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2240         defined, set REPLACE_MBSRTOWCS.
2241         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2242         defined, set REPLACE_WCRTOMB.
2243         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2244         defined, set REPLACE_WCSRTOMBS.
2245
2246 2011-07-31  Bruno Haible  <bruno@clisp.org>
2247
2248         Add support for Minix with ACK compiler.
2249         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2250         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2251         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2252
2253 2011-07-31  Bruno Haible  <bruno@clisp.org>
2254
2255         Documentation about Minix.
2256         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2257         * doc/glibc-headers/*.texi: Likewise.
2258         * doc/posix-functions/*.texi: Likewise.
2259         * doc/glibc-functions/*.texi: Likewise.
2260
2261 2011-07-31  Bruno Haible  <bruno@clisp.org>
2262
2263         snippet/warn-on-use: Fix indentation.
2264         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2265
2266 2011-07-25  Jim Meyering  <meyering@redhat.com>
2267
2268         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2269         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2270         commands.
2271
2272 2011-07-27  Jim Meyering  <meyering@redhat.com>
2273
2274         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2275         * top/maint.mk (gl_extract_significant_defines_): Now that
2276         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2277         gnulib/lib/signal.in.h, and now that we recommend to
2278         define-if-undefined those two symbols in application code,
2279         we must filter them out of the "significant" list.
2280         This avoids a "make syntax-check" failure in coreutils.
2281
2282 2011-07-26  Eric Blake  <eblake@redhat.com>
2283
2284         warnings: add comments about previous patch
2285         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2286         * m4/include_next.m4: Likewise.
2287         * m4/warn-on-use.m4: Likewise.
2288         * m4/warnings.m4: Likewise, and simplify use.
2289         Suggested by Stefano Lattarini.
2290
2291         include-next, warnings: support older autoconf
2292         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2293         AS_VAR_PUSHDEF in a way that works with older autoconf.
2294         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2295         Reported by Daniel P. Berrange.
2296
2297 2011-07-25  Bruno Haible  <bruno@clisp.org>
2298
2299         fseek, ftell: Fix doc.
2300         * doc/posix-functions/fseek.texi: Reword statement about
2301         AC_SYS_LARGEFILE.
2302         * doc/posix-functions/ftell.texi: Likewise.
2303
2304 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2305             Bruno Haible  <bruno@clisp.org>
2306
2307         Add dependencies to the 'largefile' module.
2308         * modules/fopen (Depends-on): Add 'largefile'.
2309         * modules/freopen (Depends-on): Likewise.
2310         * modules/fseeko (Depends-on): Likewise.
2311         * modules/ftello (Depends-on): Likewise.
2312         * modules/glob (Depends-on): Likewise.
2313         * modules/lseek (Depends-on): Likewise.
2314         * modules/lstat (Depends-on): Likewise.
2315         * modules/mkostemp (Depends-on): Likewise.
2316         * modules/mkostemps (Depends-on): Likewise.
2317         * modules/mkstemp (Depends-on): Likewise.
2318         * modules/mkstemps (Depends-on): Likewise.
2319         * modules/open (Depends-on): Likewise.
2320         * modules/openat (Depends-on): Likewise.
2321         * modules/pread (Depends-on): Likewise.
2322         * modules/pwrite (Depends-on): Likewise.
2323         * modules/scandir (Depends-on): Likewise.
2324         * modules/stat (Depends-on): Likewise.
2325         * modules/tmpfile (Depends-on): Likewise.
2326         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2327         since the containing module now depends on the largefile module.
2328         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2329         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2330         off_t is fixed by gnulib.
2331         * doc/posix-functions/freopen.texi: Likewise.
2332         * doc/posix-functions/fseeko.texi: Likewise.
2333         * doc/posix-functions/fstatat.texi: Likewise.
2334         * doc/posix-functions/ftello.texi: Likewise.
2335         * doc/posix-functions/glob.texi: Likewise.
2336         * doc/posix-functions/lseek.texi: Likewise.
2337         * doc/posix-functions/lstat.texi: Likewise.
2338         * doc/posix-functions/mkstemp.texi: Likewise.
2339         * doc/posix-functions/open.texi: Likewise.
2340         * doc/posix-functions/openat.texi: Likewise.
2341         * doc/posix-functions/pread.texi: Likewise.
2342         * doc/posix-functions/pwrite.texi: Likewise.
2343         * doc/posix-functions/scandir.texi: Likewise.
2344         * doc/posix-functions/stat.texi: Likewise.
2345         * doc/posix-functions/tmpfile.texi: Likewise.
2346         * doc/glibc-functions/mkostemp.texi: Likewise.
2347         * doc/glibc-functions/mkostemps.texi: Likewise.
2348         * doc/glibc-functions/mkstemps.texi: Likewise.
2349
2350 2011-07-25  Bruno Haible  <bruno@clisp.org>
2351
2352         fcntl: Move AC_LIBOBJ invocation to module description.
2353         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2354         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2355
2356         fcntl: Remove call-in from fchdir.m4.
2357         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2359
2360         dup3: Remove potential call-in from fchdir.m4.
2361         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2363
2364         dup2: Move AC_LIBOBJ invocation to module description.
2365         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2366         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2367         Don't invoke AC_LIBOBJ.
2368         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2369
2370         dup2: Remove call-in from fchdir.m4.
2371         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2373
2374         fclose: Move AC_LIBOBJ invocation to module description.
2375         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2376         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2377         to 1.
2378         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2379
2380         fclose: Remove call-in from close.m4.
2381         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2382         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2383
2384         close: Move AC_LIBOBJ invocation to module description.
2385         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2386         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2387         1.
2388         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2389
2390         close: Remove call-in from fchdir.m4.
2391         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2393
2394         open: Move AC_LIBOBJ invocation to module description.
2395         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2396         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2397         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2398
2399         open: Remove call-in from fchdir.m4.
2400         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2402
2403         fchdir: Start to remove gl_REPLACE_* idiom.
2404         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2405         (gl_FUNC_FCHDIR): Invoke it.
2406
2407 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2408
2409         * lib/ftell.c (ftell): Comment out cast.
2410
2411         close: use gl_REPLACE_FCLOSE only if defined
2412         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2413         is defined.  The close module doesn't depend on the fclose module
2414         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2416         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2417
2418 2011-07-24  Jim Meyering  <meyering@redhat.com>
2419
2420         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2421         * tests/test-select.h (test_function): Declare as "static".
2422
2423 2011-07-24  Bruno Haible  <bruno@clisp.org>
2424
2425         doc: Mention the effects of AC_SYS_LARGEFILE.
2426         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2427         on this function.
2428         * doc/posix-functions/aio_error.texi: Likewise.
2429         * doc/posix-functions/aio_fsync.texi: Likewise.
2430         * doc/posix-functions/aio_read.texi: Likewise.
2431         * doc/posix-functions/aio_return.texi: Likewise.
2432         * doc/posix-functions/aio_suspend.texi: Likewise.
2433         * doc/posix-functions/aio_write.texi: Likewise.
2434         * doc/posix-functions/fgetpos.texi: Likewise.
2435         * doc/posix-functions/fopen.texi: Likewise.
2436         * doc/posix-functions/freopen.texi: Likewise.
2437         * doc/posix-functions/fsetpos.texi: Likewise.
2438         * doc/posix-functions/fstatvfs.texi: Likewise.
2439         * doc/posix-functions/ftruncate.texi: Likewise.
2440         * doc/posix-functions/ftw.texi: Likewise.
2441         * doc/posix-functions/getrlimit.texi: Likewise.
2442         * doc/posix-functions/glob.texi: Likewise.
2443         * doc/posix-functions/lio_listio.texi: Likewise.
2444         * doc/posix-functions/lockf.texi: Likewise.
2445         * doc/posix-functions/mkstemp.texi: Likewise.
2446         * doc/posix-functions/mmap.texi: Likewise.
2447         * doc/posix-functions/nftw.texi: Likewise.
2448         * doc/posix-functions/openat.texi: Likewise.
2449         * doc/posix-functions/opendir.texi: Likewise.
2450         * doc/posix-functions/posix_fadvise.texi: Likewise.
2451         * doc/posix-functions/posix_fallocate.texi: Likewise.
2452         * doc/posix-functions/pread.texi: Likewise.
2453         * doc/posix-functions/pwrite.texi: Likewise.
2454         * doc/posix-functions/readdir.texi: Likewise.
2455         * doc/posix-functions/readdir_r.texi: Likewise.
2456         * doc/posix-functions/rewinddir.texi: Likewise.
2457         * doc/posix-functions/scandir.texi: Likewise.
2458         * doc/posix-functions/seekdir.texi: Likewise.
2459         * doc/posix-functions/setrlimit.texi: Likewise.
2460         * doc/posix-functions/statvfs.texi: Likewise.
2461         * doc/posix-functions/telldir.texi: Likewise.
2462         * doc/posix-functions/tmpfile.texi: Likewise.
2463         * doc/posix-functions/truncate.texi: Likewise.
2464         * doc/glibc-functions/fallocate.texi: Likewise.
2465         * doc/glibc-functions/fstatfs.texi: Likewise.
2466         * doc/glibc-functions/fts_children.texi: Likewise.
2467         * doc/glibc-functions/fts_read.texi: Likewise.
2468         * doc/glibc-functions/getdirentries.texi: Likewise.
2469         * doc/glibc-functions/mkostemp.texi: Likewise.
2470         * doc/glibc-functions/mkostemps.texi: Likewise.
2471         * doc/glibc-functions/mkstemps.texi: Likewise.
2472         * doc/glibc-functions/preadv.texi: Likewise.
2473         * doc/glibc-functions/pwritev.texi: Likewise.
2474         * doc/glibc-functions/sendfile.texi: Likewise.
2475         * doc/glibc-functions/statfs.texi: Likewise.
2476
2477 2011-07-24  Bruno Haible  <bruno@clisp.org>
2478
2479         doc: Fix typo.
2480         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2481
2482 2011-07-24  Bruno Haible  <bruno@clisp.org>
2483
2484         doc: Mention fsusage.
2485         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2486
2487 2011-07-24  Bruno Haible  <bruno@clisp.org>
2488
2489         doc: Mention new glibc headers and functions.
2490         * doc/glibc-headers/gshadow.texi: New file.
2491         * doc/glibc-functions/endsgent.texi: New file.
2492         * doc/glibc-functions/fgetsgent.texi: New file.
2493         * doc/glibc-functions/fgetsgent_r.texi: New file.
2494         * doc/glibc-functions/getsgent.texi: New file.
2495         * doc/glibc-functions/getsgent_r.texi: New file.
2496         * doc/glibc-functions/getsgnam.texi: New file.
2497         * doc/glibc-functions/getsgnam_r.texi: New file.
2498         * doc/glibc-functions/putsgent.texi: New file.
2499         * doc/glibc-functions/setsgent.texi: New file.
2500         * doc/glibc-functions/sgetsgent.texi: New file.
2501         * doc/glibc-functions/sgetsgent_r.texi: New file.
2502         * doc/glibc-functions/malloc_info.texi: New file.
2503         * doc/glibc-functions/preadv.texi: New file.
2504         * doc/glibc-functions/pwritev.texi: New file.
2505         * doc/glibc-functions/register_printf_modifier.texi: New file.
2506         * doc/glibc-functions/register_printf_specifier.texi: New file.
2507         * doc/glibc-functions/register_printf_type.texi: New file.
2508         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2509         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2510         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2511         * doc/glibc-functions/pthread_getname_np.texi: New file.
2512         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2513         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2514         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2515         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2516         * doc/glibc-functions/pthread_setname_np.texi: New file.
2517         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2518         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2519         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2520         * doc/glibc-functions/qsort_r.texi: New file.
2521         * doc/glibc-functions/quick_exit.texi: New file.
2522         * doc/glibc-functions/syncfs.texi: New file.
2523         * doc/gnulib.texi: Include them.
2524         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2525         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2526         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2527         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2528         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2529         * doc/glibc-functions/execvpe.texi: Likewise.
2530
2531 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2532
2533         ftell: don't include <unistd.h>
2534         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2535         guaranteed to define off_t, and the ftell module depends on the
2536         stdio module.
2537
2538         ftell: do not assume wraparound signed arithmetic
2539         * lib/ftell.c: Include <limits.h>.
2540         (ftell): Don't assume wraparound signed arithmetic.
2541
2542 2011-07-24  Bruno Haible  <bruno@clisp.org>
2543
2544         close: No longer depend on module 'fclose'.
2545         * modules/close (Depends-on): Remove fclose.
2546         * NEWS: Mention the change.
2547         Suggested by Sam Steingold <sds@gnu.org>.
2548
2549 2011-07-24  Bruno Haible  <bruno@clisp.org>
2550
2551         fsusage: Enable large volume support on AIX >= 5.2.
2552         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2553         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2554         instead of STAT_STATVFS.
2555         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2556
2557         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2558         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2559         f_blocks field only on MacOS X.
2560
2561         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2562         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2563         * modules/fsusage (Depends-on): Add largefile.
2564
2565 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2566
2567         * README: Modernize discussion of signed integers.
2568         Assuming overflow wraparound is no longer safe.
2569         Mention ones' complement and signed magnitude.
2570
2571 2011-07-22  Bruno Haible  <bruno@clisp.org>
2572
2573         select tests, pselect tests: Refactor.
2574         * tests/test-select.h: New file, extracted from tests/test-select.c.
2575         (select_fn): New type.
2576         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2577         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2578         test_pipe): Add my_select argument.
2579         (test_function): Renamed from main. Add my_select argument.
2580         * tests/test-select.c: Move most code to tests/test-select.h. Include
2581         test-select.h.
2582         * modules/select-tests (Files): Add tests/test-select.h.
2583         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2584         (my_select, main): New functions.
2585         * modules/pselect-tests (Files): Add tests/test-select.h,
2586         tests/macros.h, tests/signature.h.
2587         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2588         (configure.ac): Check for <sys/wait.h>.
2589
2590 2011-07-22  Bruno Haible  <bruno@clisp.org>
2591
2592         sys_select tests: Check the signature of FD_*.
2593         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2594         signature tests from here...
2595         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2596         here.
2597         * modules/sys_select-tests (Files): Add tests/signature.h.
2598
2599 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2600
2601         largefile: new module, replacing large-inode
2602         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2603         * MODULES.html.sh: Add largefile, remove large-inode.
2604         * modules/largefile, m4/largefile.m4: New files.
2605         * modules/large-inode, m4/large-inode.m4: Remove.
2606
2607         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2608         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2609         implementations that use only 32 bits to count blocks.
2610         On typical hosts with 1024-byte blocks, this fails with file
2611         systems as small as 4 TiB.  Problem reported by Herb Wartens
2612         <http://debbugs.gnu.org/9140> and this should also fix a similar
2613         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2614
2615         large-inode: New module
2616         * MODULES.html.sh: Add it.
2617         * modules/large-inode, m4/large-inode.m4: New files.
2618
2619         extensions: Enable extensions on MacOS X 10.5 and later.
2620         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2621
2622 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2623
2624         file-has-acl: use acl_extended_file_nofollow if available
2625         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2626         (acl_extended_file): New macro.
2627         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2628         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2629
2630 2011-07-21  Bruno Haible  <bruno@clisp.org>
2631
2632         Declare system functions in a way that works with C++.
2633         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2634         declare fdopendir as extern "C".
2635         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2636         declare frexpl as extern "C".
2637         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2638         declare gai_strerror as extern "C".
2639         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2640         programs, declare gai_strerror as extern "C".
2641         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2642         declare getlogin_r as extern "C".
2643         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2644         as extern "C".
2645         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2646         declare ldexpl as extern "C".
2647         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2648         as extern "C".
2649         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2650         program, declare getmntinfo as extern "C".
2651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2652         stpncpy as extern "C".
2653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2654         program, declare __xpg_strerror_r as extern "C".
2655         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2656         strndup as extern "C".
2657         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2658         declare memset and bzero as extern "C".
2659         Reported by Sam Steingold <sds@gnu.org>.
2660
2661 2011-07-12  Jim Meyering  <meyering@redhat.com>
2662
2663         maint.mk: prohibit inclusion of "verify.h" without use
2664         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2665
2666 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2667
2668         timer-time: A new module to check for timer_settime()
2669         * m4/timer_time.m4: Check for the posix function.
2670         * modules/timer-time: Add the new module.
2671         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2672         Mention it.
2673
2674 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2675             Bruno Haible  <bruno@clisp.org>
2676
2677         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2678         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2679         not defined, assume POSIX threads and look for pthread_sigmask in
2680         $LIBS, without changing $CPPFLAGS.
2681
2682 2011-07-19  Bruno Haible  <bruno@clisp.org>
2683
2684         strstr: Update cross-compilation guess.
2685         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2686         CPUs, guess no, in view of glibc
2687         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2688         Suggested by Eric Blake. Reported by Reuben Thomas.
2689
2690 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2691
2692         getopt-gnu: suppress core dumps from detection code
2693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2694         to suppress core dumps that may well occur on glibc systems.
2695         * modules/getopt-gnu: Depend on nocrash.
2696
2697 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2698
2699         pthread_sigmask: ensure usleep is declared
2700         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2701         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2702
2703 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2704
2705         doc: Document NonStop portability issues.
2706         * doc/posix-functions/sigaction.texi (sigaction):
2707         * doc/posix-headers/signal.texi (signal.h):
2708         Document NonStop.  See Joachim Schmitz in
2709         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2710
2711 2011-07-15  Bruno Haible  <bruno@clisp.org>
2712
2713         ffsl, ffsll: Avoid unportable behaviour.
2714         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2715
2716 2011-07-15  Bruno Haible  <bruno@clisp.org>
2717
2718         ffs: More tests.
2719         * tests/test-ffs.c (NBITS): New macro.
2720         (main): Add more tests.
2721         * tests/test-ffsl.c (NBITS): New macro.
2722         (main): Add more tests.
2723         * tests/test-ffsll.c (NBITS): New macro.
2724         (main): Add more tests.
2725
2726 2011-07-15  Eric Blake  <eblake@redhat.com>
2727
2728         ffsl, ffsll: new modules
2729         * modules/ffsl: New file.
2730         * modules/ffsll: Likewise.
2731         * m4/ffsl.m4: Likewise.
2732         * m4/ffsll.m4: Likewise.
2733         * lib/ffsl.c: Likewise.
2734         * lib/ffsl.h: Likewise.
2735         * lib/ffsll.c: Likewise.
2736         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2737         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2738         * modules/string (Makefile.am): Substitute witnesses.
2739         * lib/strings.in.h (ffsl, ffsll): Declare.
2740         * modules/ffsl-tests: New test file.
2741         * modules/ffsll-tests: Likewise.
2742         * tests/test-ffsl.c: Likewise.
2743         * tests/test-ffsll.c: Likewise.
2744         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2745         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2746         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2747
2748         ffs: fix m4 prerequisite
2749         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2750
2751         ffs: avoid undefined behavior
2752         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2753         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2754         Reported by Bruno Haible.
2755
2756 2011-07-12  Bruno Haible  <bruno@clisp.org>
2757
2758         pthread_sigmask: Rely on module 'threadlib'.
2759         * modules/pthread_sigmask (Depends-on): Add threadlib.
2760         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2761         is defined.
2762
2763 2011-07-12  Bruno Haible  <bruno@clisp.org>
2764
2765         regex: Depend on module 'strcase'.
2766         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2767
2768 2011-07-12  Jim Meyering  <meyering@redhat.com>
2769
2770         warn-on-use: fix typo in file name
2771         * modules/snippet/warn-on-use (Files): Correct file name:
2772         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2773
2774 2011-07-12  Bruno Haible  <bruno@clisp.org>
2775
2776         strings: Document module.
2777         * doc/posix-headers/strings.texi: Mention module 'strings'.
2778
2779 2011-07-12  Bruno Haible  <bruno@clisp.org>
2780
2781         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2782         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2783         (Files, Makefile.am): Update.
2784         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2785         * modules/stdlib (Depends-on): Update.
2786
2787 2011-07-12  Bruno Haible  <bruno@clisp.org>
2788
2789         * NEWS: Mention the changes.
2790
2791         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2792         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2793         (Files, Makefile.am): Update.
2794         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2795         * modules/arpa_inet (Depends-on): Update.
2796         * modules/ctype (Depends-on): Update.
2797         * modules/dirent (Depends-on): Update.
2798         * modules/fcntl-h (Depends-on): Update.
2799         * modules/glob (Depends-on): Update.
2800         * modules/iconv-h (Depends-on): Update.
2801         * modules/inttypes-incomplete (Depends-on): Update.
2802         * modules/langinfo (Depends-on): Update.
2803         * modules/locale (Depends-on): Update.
2804         * modules/math (Depends-on): Update.
2805         * modules/netdb (Depends-on): Update.
2806         * modules/poll-h (Depends-on): Update.
2807         * modules/pty (Depends-on): Update.
2808         * modules/search (Depends-on): Update.
2809         * modules/signal (Depends-on): Update.
2810         * modules/spawn (Depends-on): Update.
2811         * modules/stdio (Depends-on): Update.
2812         * modules/stdlib (Depends-on): Update.
2813         * modules/string (Depends-on): Update.
2814         * modules/strings (Depends-on): Update.
2815         * modules/sys_file (Depends-on): Update.
2816         * modules/sys_ioctl (Depends-on): Update.
2817         * modules/sys_select (Depends-on): Update.
2818         * modules/sys_socket (Depends-on): Update.
2819         * modules/sys_stat (Depends-on): Update.
2820         * modules/sys_time (Depends-on): Update.
2821         * modules/sys_times (Depends-on): Update.
2822         * modules/sys_utsname (Depends-on): Update.
2823         * modules/sys_wait (Depends-on): Update.
2824         * modules/termios (Depends-on): Update.
2825         * modules/time (Depends-on): Update.
2826         * modules/unistd (Depends-on): Update.
2827         * modules/wchar (Depends-on): Update.
2828         * modules/wctype-h (Depends-on): Update.
2829         * MODULES.html.sh (Support for building libraries and executables):
2830         Update.
2831
2832         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2833         * modules/snippet/unused-parameter: Renamed from
2834         modules/unused-parameter.
2835         (Files, Makefile.am): Update.
2836         * build-aux/snippet/unused-parameter.h: Renamed from
2837         build-aux/unused-parameter.h.
2838         * modules/selinux-h (Depends-on): Update.
2839         * modules/unistr/base (Depends-on): Update.
2840         * MODULES.html.sh (Core language properties): Update.
2841
2842         Rename module 'link-warning' to 'snippet/link-warning'.
2843         * modules/snippet/link-warning: Renamed from modules/link-warning.
2844         (Files, Makefile.am): Update.
2845         * build-aux/snippet/link-warning.h: Renamed from
2846         build-aux/link-warning.h.
2847         * MODULES.html.sh (Support for building libraries and executables):
2848         Update.
2849
2850         Rename module 'c++defs' to 'snippet/c++defs'.
2851         * modules/snippet/c++defs: Renamed from modules/c++defs.
2852         (Files, Makefile.am): Update.
2853         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2854         * modules/arpa_inet (Depends-on): Update.
2855         * modules/ctype (Depends-on): Update.
2856         * modules/dirent (Depends-on): Update.
2857         * modules/fcntl-h (Depends-on): Update.
2858         * modules/glob (Depends-on): Update.
2859         * modules/iconv-h (Depends-on): Update.
2860         * modules/langinfo (Depends-on): Update.
2861         * modules/locale (Depends-on): Update.
2862         * modules/math (Depends-on): Update.
2863         * modules/netdb (Depends-on): Update.
2864         * modules/poll-h (Depends-on): Update.
2865         * modules/pty (Depends-on): Update.
2866         * modules/search (Depends-on): Update.
2867         * modules/signal (Depends-on): Update.
2868         * modules/spawn (Depends-on): Update.
2869         * modules/stdio (Depends-on): Update.
2870         * modules/stdlib (Depends-on): Update.
2871         * modules/string (Depends-on): Update.
2872         * modules/strings (Depends-on): Update.
2873         * modules/sys_ioctl (Depends-on): Update.
2874         * modules/sys_select (Depends-on): Update.
2875         * modules/sys_socket (Depends-on): Update.
2876         * modules/sys_stat (Depends-on): Update.
2877         * modules/sys_time (Depends-on): Update.
2878         * modules/sys_wait (Depends-on): Update.
2879         * modules/termios (Depends-on): Update.
2880         * modules/time (Depends-on): Update.
2881         * modules/unistd (Depends-on): Update.
2882         * modules/wchar (Depends-on): Update.
2883         * modules/wctype-h (Depends-on): Update.
2884
2885         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2886         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2887         (Files, Makefile.am): Update.
2888         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2889         * modules/argv-iter (Depends-on): Update.
2890         * modules/arpa_inet (Depends-on): Update.
2891         * modules/dirent (Depends-on): Update.
2892         * modules/fcntl-h (Depends-on): Update.
2893         * modules/fnmatch (Depends-on): Update.
2894         * modules/getopt-posix (Depends-on): Update.
2895         * modules/glob (Depends-on): Update.
2896         * modules/iconv-h (Depends-on): Update.
2897         * modules/inttypes-incomplete (Depends-on): Update.
2898         * modules/locale (Depends-on): Update.
2899         * modules/math (Depends-on): Update.
2900         * modules/netdb (Depends-on): Update.
2901         * modules/search (Depends-on): Update.
2902         * modules/signal (Depends-on): Update.
2903         * modules/spawn (Depends-on): Update.
2904         * modules/stdio (Depends-on): Update.
2905         * modules/stdlib (Depends-on): Update.
2906         * modules/string (Depends-on): Update.
2907         * modules/strings (Depends-on): Update.
2908         * modules/sys_socket (Depends-on): Update.
2909         * modules/sys_stat (Depends-on): Update.
2910         * modules/sys_time (Depends-on): Update.
2911         * modules/sys_times (Depends-on): Update.
2912         * modules/sys_utsname (Depends-on): Update.
2913         * modules/time (Depends-on): Update.
2914         * modules/unistd (Depends-on): Update.
2915         * modules/wchar (Depends-on): Update.
2916         * MODULES.html.sh (Support for building libraries and executables):
2917         Update.
2918
2919 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2920
2921         Improvements on _Noreturn and related modules.
2922
2923         modules/_Exit-tests: test _Noreturn too
2924         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2925         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2926         (main): Use them.
2927
2928         stdnoreturn, stdnoreturn-tests: remove modules
2929         They're not needed here and a bit premature for use elsewhere.  See
2930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2931         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2932         * tests/test-stdnoreturn.c: Remove files.
2933         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2934         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2935         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2936         and using noreturn.
2937         * modules/openat, modules/sigpipe-die, modules/xalloc:
2938         * modules/xmemdup0, modules/xstrtol:
2939         Remove dependency on stdnoreturn.
2940
2941         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2942         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2943         Reparenthesize to avoid GCC warning.
2944         Support Microsoft's syntax.
2945         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2946
2947         _Noreturn-tests: remove module
2948         * modules/_Noreturn-tests: Remove.
2949         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2950         * tests/test-_Noreturn.c: Remove.
2951         * tests/test-stdnoreturn.c: Merge from the old
2952         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2953
2954 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2955
2956         _Noreturn, stdnoreturn, and related modules.
2957
2958         * top/maint.mk: Adjust to new noreturn support.
2959         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2960         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2961
2962         xalloc: use stdnoreturn.h
2963         * lib/xalloc.h: Include <stdnoreturn.h>.
2964         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2965         * modules/xalloc (Depends-on): Add stdnoreturn.
2966
2967         xstrtol: use stdnoreturn.h
2968         * lib/xstrtol.h: Include <stdnoreturn.h>.
2969         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2970         * modules/xstrtol (Depends-on): Add stdnoreturn.
2971
2972         xmemdup0: use stdnoreturn.h
2973         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2974         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2975         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2976
2977         sigpipe-die: use stdnoreturn.h
2978         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2979         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2980         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2981
2982         openat: use stdnoreturn.h
2983         * lib/openat.h: Include <stdnoreturn.h>.
2984         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2985         * modules/openat (Depends-on): Add stdnoreturn.
2986
2987         * lib/openat-die.c (openat_save_fail): Modernize comment.
2988
2989         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2990
2991         * lib/glthread/thread.h: Modernize comment.
2992
2993         obstack: use _Noreturn
2994         * lib/obstack.c (__attribute__): Remove macro.
2995         (print_and_abort): Use _Noreturn.
2996
2997         c-stack: use _Noreturn
2998         * lib/c-stack.c (die, overflow_handler, segv_handler):
2999         Use _Noreturn rather than __attribute__((noreturn)).
3000
3001         argmatch-tests, exclude_tests: use _Noreturn
3002         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3003         Remove.
3004         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3005
3006         stdlib: use _Noreturn
3007         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3008         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3009         * modules/stdlib (Depends-on): Add _Noreturn.
3010         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3011
3012         stdnoreturn-tests: new module
3013         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3014
3015         stdnoreturn: new module
3016         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3017         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3018
3019         _Noreturn-tests: new module
3020         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3021
3022         _Noreturn: new module
3023         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3024         New section, mentioning it.
3025         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3026
3027         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3028
3029 2011-07-11  Eric Blake  <eblake@redhat.com>
3030
3031         ffs: new module
3032         * modules/ffs: New file.
3033         * m4/ffs.m4: Likewise.
3034         * lib/ffs.c: Likewise.
3035         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3036         * modules/strings (Makefile.am): Substitute witness.
3037         (Depends-on): Add c++defs.
3038         * lib/strings.in.h (ffs): Declare.
3039         * modules/ffs-tests: New test file.
3040         * tests/test-ffs.c: Test new module.
3041         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3042         * doc/posix-functions/ffs.texi (ffs): Likewise.
3043
3044         regex: avoid compiler warning
3045         * lib/regex.c (includes): Include <strings.h>, for use of
3046         strcasecmp in regcomp.c.
3047         Reported by Joachim Schmitz.
3048
3049 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3050
3051         stdint: respect system's intmax_t if INTMAX_MAX
3052         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3053         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3054         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3055         long but int64_t is long long, and where we will clash with the
3056         system intmax_t if we override it.  See
3057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3058         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3059         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3060         similarly for UINTMAX_C.
3061
3062 2011-07-08  Bruno Haible  <bruno@clisp.org>
3063
3064         pthread_sigmask tests: Avoid a compiler warning.
3065         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3066         non-zero.
3067
3068         sigprocmask tests: A better way to avoid a compiler warning.
3069         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3070         (main): Complain if system() returns non-zero.
3071         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3072
3073 2011-07-08  Bruno Haible  <bruno@clisp.org>
3074
3075         pthread_sigmask: Work around IRIX bug.
3076         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3077         bug.
3078         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3079         there may be unblocked pending signals.
3080         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3081
3082 2011-07-08  Bruno Haible  <bruno@clisp.org>
3083
3084         pthread_sigmask: Work around Cygwin bug.
3085         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3086         bug.
3087         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3088         the system's pthread_sigmask function.
3089         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3090
3091 2011-07-08  Bruno Haible  <bruno@clisp.org>
3092
3093         pthread_sigmask: Work around bug in single-threaded implementation.
3094         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3095         FreeBSD, HP-UX, Solaris bug.
3096         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3097         * lib/pthread_sigmask.c: Include <stddef.h>.
3098         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3099         the system's pthread_sigmask function.
3100         * modules/pthread_sigmask (configure.ac): Invoke
3101         gl_PREREQ_PTHREAD_SIGMASK.
3102         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3103         HP-UX, Solaris.
3104
3105 2011-07-08  Eric Blake  <eblake@redhat.com>
3106
3107         test-sigprocmask: avoid compiler warning
3108         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3109         * tests/test-sigprocmask.c (main): Use it to silence warning.
3110         Reported by Jim Meyering.
3111
3112         test-snprintf: avoid compiler warning
3113         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3114         * tests/test-vsnprintf.c (main): Likewise.
3115         Reported by Jim Meyering.
3116
3117 2011-07-08  Bruno Haible  <bruno@clisp.org>
3118
3119         Tests for module 'pthread_sigmask'.
3120         * modules/pthread_sigmask-tests: New file.
3121         * tests/test-pthread_sigmask1.c: New file, based on
3122         tests/test-sigprocmask.c.
3123         * tests/test-pthread_sigmask2.c: New file.
3124
3125 2011-07-08  Jim Meyering  <meyering@redhat.com>
3126
3127         test-getopt.h: avoid warning about an unused variable
3128         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3129
3130 2011-07-07  Jim Meyering  <meyering@redhat.com>
3131
3132         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3133         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3134         now that it no longer contains leading TABs.
3135         Remove unused "url=FIXME" statement.
3136
3137 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3138
3139         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3140         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3141         When gl_THREADLIB is not in use, assume that the POSIX sematics
3142         are desired.  This is better for Emacs, which uses POSIX semantics
3143         on GNUish and/or POSIXish platforms, and does not use threads at
3144         all otherwise.
3145
3146         pthread_sigmask: fix typo when testing for libraries
3147         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3148         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3149
3150 2011-07-08  Eric Blake  <eblake@redhat.com>
3151
3152         fts: introduce FTS_NOATIME
3153         * lib/fts_.h (FTS_NOATIME): New bit flag.
3154         (FTS_OPTIONMASK): Adjust.
3155         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3156         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3157
3158 2011-07-08  Bruno Haible  <bruno@clisp.org>
3159
3160         Tests for module 'thread'.
3161         * modules/thread-tests: New file.
3162         * tests/test-thread_self.c: New file.
3163         * tests/test-thread_create.cc: New file.
3164
3165 2011-07-08  Bruno Haible  <bruno@clisp.org>
3166
3167         thread: Avoid gcc warnings when using gl_thread_self().
3168         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3169         'void *'.
3170         (gl_thread_self_pointer): Update.
3171
3172 2011-07-07  Bruno Haible  <bruno@clisp.org>
3173
3174         signal-c++-tests: Check declaration of pthread_sigmask.
3175         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3176         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3177         $(LIB_PTHREAD_SIGMASK).
3178
3179 2011-07-07  Bruno Haible  <bruno@clisp.org>
3180
3181         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3182         * lib/signal.in.h (pthread_sigmask): Override if
3183         REPLACE_PTHREAD_SIGMASK is 1.
3184         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3185         REPLACE_PTHREAD_SIGMASK.
3186         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3187         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3188         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3189         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3190         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3191
3192 2011-07-07  Bruno Haible  <bruno@clisp.org>
3193
3194         pthread_sigmask: Ensure declaration in <signal.h>.
3195         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3196         include <pthread.h>.
3197         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3198         problem.
3199
3200 2011-07-07  Bruno Haible  <bruno@clisp.org>
3201
3202         pthread_sigmask: Document the module.
3203         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3204
3205 2011-07-07  Bruno Haible  <bruno@clisp.org>
3206
3207         pthread_sigmask: Follow gnulib conventions.
3208         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3209         gl_PTHREAD_SIGMASK.
3210         * modules/pthread_sigmask (configure.ac): Update.
3211
3212 2011-07-07  Bruno Haible  <bruno@clisp.org>
3213
3214         pthread_sigmask: Make declaration C++ safe.
3215         * lib/signal.in.h: In two special conditions, just do an #include_next.
3216         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3217         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3218         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3219         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3220         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3221         not REPLACE_PTHREAD_MASK.
3222         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3223         not REPLACE_PTHREAD_MASK.
3224         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3225
3226 2011-07-07  Bruno Haible  <bruno@clisp.org>
3227
3228         pthread_sigmask: Fix return value.
3229         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3230         * lib/pthread_sigmask.c: New file.
3231         * modules/pthread_sigmask (Files): Add it.
3232         (configure.ac): Invoke AC_LIBOBJ.
3233
3234 2011-07-07  Eric Blake  <eblake@redhat.com>
3235
3236         getopt: more portable argv creation
3237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3238         const, use char arrays rather than strings.
3239         Suggested by Paul Eggert.
3240
3241 2011-07-07  Bruno Haible  <bruno@clisp.org>
3242
3243         Tests for module 'sigprocmask'.
3244         * modules/sigprocmask-tests: New file.
3245         * tests/test-sigprocmask.c: New file.
3246
3247 2011-07-07  Bruno Haible  <bruno@clisp.org>
3248
3249         float tests: Tweak.
3250         * tests/test-float.c (main): Tweak skip message.
3251
3252 2011-07-07  Eric Blake  <eblake@redhat.com>
3253
3254         getopt: avoid compiler warning during configure
3255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3256         assigning string literals to non-const pointer.
3257
3258         getopt-gnu: avoid crash in glibc getopt
3259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3260         * tests/test-getopt.h (test_getopt): Enhance test.
3261         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3262         * doc/posix-functions/getopt.texi (getopt): Document it.
3263         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3264         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3265         Likewise.
3266
3267 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3268
3269         getopt: handle W; without long options in getopt [BZ #12922]
3270         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3271         but no long options are defined, just return 'W'.
3272
3273 2011-07-07  Bruno Haible  <bruno@clisp.org>
3274
3275         Avoid literal tabs.
3276         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3277         variable containing a tab instead of a literal tab.
3278         Reported by Jim Meyering.
3279
3280 2011-07-07  Bruno Haible  <bruno@clisp.org>
3281
3282         Comments.
3283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3284
3285 2011-07-06  Bruno Haible  <bruno@clisp.org>
3286
3287         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3288         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3289         <winsock2.h>.
3290         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3291         lib/sys_socket.in.h.
3292         (close, gethostname): Hide declarations from <winsock2.h>.
3293         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3294         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3295         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3296         (select): Don't override if gnulib's <sys/select.h> was already
3297         included.
3298         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3299         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3300         setsockopt, shutdown, select): Tweak indentation.
3301
3302 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3303
3304         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3305         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3306         in an application that does not use the sys_select module.
3307
3308 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3309
3310         poll: do not return 0 on timeout=-1
3311         * lib/poll.c: Loop with yield if no events occured
3312
3313 2011-07-06  Eric Blake  <eblake@redhat.com>
3314
3315         pthread_sigmask: always replace when not using pthread
3316         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3317         replacement when using some threading other than pthread.  Fix
3318         logic bug.
3319
3320 2011-07-06  Bruno Haible  <bruno@clisp.org>
3321
3322         Comments.
3323         * m4/printf.m4: Update comments about mingw.
3324
3325 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3326
3327         sys_select: define sigset_t more portably
3328         * lib/sys_select.in.h: Always include <sys/types.h>, since
3329         we now need sigset_t and mingw defines it there.
3330         Include <signal.h> before split inclusion guard, to avoid
3331         mishaps on Solaris, whose <signal.h> eventually includes us.
3332         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3333         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3334         which come from ...
3335         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3336         gl_CHECK_TYPE_SIGSET_T.
3337         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3338         does the real work.
3339         * modules/sys_select (Depends-on): Add 'signal'.
3340
3341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3342         Suggested by Bruno Haible.
3343
3344         pselect: Use pthread_sigmask, not sigprocmask.
3345         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3346         multithreaded apps better than sigprocmask does.
3347         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3348         sigprocmask directly.
3349
3350 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3351
3352         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3353         Don't #undef,  since we don't need any underlying pselect.
3354         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3355         (Depends-on): Add select.
3356         (Link): Add $(LIBSOCKET).
3357         These changes suggested by Bruno Haible.
3358
3359         pselect: document better
3360         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3361         * doc/posix-functions/pselect.texi (pselect): Document new module.
3362
3363         pthread_sigmask: new module
3364         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3365         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3366         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3367         This is done only as a macro; I don't know how well that'll
3368         work for C++.  Move <sys/types.h> include before the include_next,
3369         to avoid mishap on Solaris.
3370         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3371         * modules/signal (Makefile.am): Substitute the check's results.
3372         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3373
3374         test-pselect: new module
3375         * modules/pselect-tests, tests/test-pselect.c: New files.
3376         * tests/test-select.c, tests/test-sys_select-c++.cc:
3377         If TEST_PSELECT is defined, test pselect instead of testing select.
3378
3379         * tests/test-sys_select.c (sigset_t): Test for it, too.
3380         Suggested by Bruno Haible.
3381
3382 2011-07-05  Eric Blake  <eblake@redhat.com>
3383
3384         snprintf: guarantee %1$d, for libintl
3385         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3386         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3387         * doc/posix-functions/snprintf.texi (snprintf): Update.
3388         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3389         * tests/test-snprintf.c (main): Enhance test.
3390         * tests/test-vsnprintf.c (main): Likewise.
3391
3392 2011-07-05  Jim Meyering  <meyering@redhat.com>
3393
3394         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3395         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3396         per Bruno's request, to accommodate this idiom (no space after "#")
3397         even when the function is inside an #if block:
3398         char *
3399         gets (char *s)
3400         #undef gets
3401         {
3402           ...
3403         }
3404
3405 2011-07-04  Jim Meyering  <meyering@redhat.com>
3406
3407         maint: indent with spaces, not TABs, and add a rule to check this
3408         * tests/test-userspec.c: Indent with spaces, not TABs.
3409         * tests/test-argp.c: Likewise.
3410         * tests/test-c-stack2.sh: Likewise.
3411         * tests/test-parse-duration.sh: Likewise
3412         * m4/strtod.m4: Likewise.
3413         * m4/alloca.m4: Likewise.
3414         * m4/pselect.m4: Likewise.
3415         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3416
3417 2011-07-03  Jim Meyering  <meyering@redhat.com>
3418
3419         maint.mk: correct omissions in prohibit_argmatch_without_use check
3420         This rule would mistakenly report that argmatch.h is included without
3421         use even when both the argmatch and invalid_arg macro were used.
3422         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3423         of argmatch and invalid_arg.
3424
3425 2011-07-03  Bruno Haible  <bruno@clisp.org>
3426
3427         Comments about EINTR.
3428         * lib/safe-read.h: Explain the purpose of this module.
3429         * lib/safe-write.h: Likewise.
3430         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3431         module.
3432         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3433         module.
3434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3435
3436 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3437
3438         xnanosleep: Rewrite to use new dtotimespec module.
3439         It has the conversion code that used to be in xnanosleep.
3440         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3441         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3442         (TIME_T_MAX): Remove.
3443         (xnanosleep): Rewrite in terms of dtotimespec.
3444         * modules/xnanosleep (Depends-on): Add dtotimespec.
3445         Remove intprops, stdbool.
3446
3447         timespec-add, timespec-sub: new modules
3448         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3449         * lib/timespec-add.c, lib/timespec-sub.c:
3450         * modules/timespec-add, modules/timespec-sub: New files.
3451
3452         dtotimespec: new module
3453         * lib/timespec.h (dtotimespec): New decl.
3454         * lib/dtotimespec.c, modules/dtotimespec: New files.
3455
3456         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3457
3458         pselect: new module
3459         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3460         (pselect): New decls.
3461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3462         since the standard pselect decl uses 'restrict'.
3463         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3464         HAVE_PSELECT, REPLACE_PSELECT.
3465         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3466         HAVE_PSELECT, REPLACE_PSELECT.
3467         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3468
3469         sys_select: don't depend on sys_socket
3470         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3472         This fix works on GNU and GNU-like platforms, but has not been tested
3473         on native Windows.
3474         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3476         gl_HEADER_SYS_SOCKET.
3477         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3478         gl_PREREQ_SYS_H_WINSOCK2.
3479
3480 2011-06-29  Eric Blake  <eblake@redhat.com>
3481
3482         pipe2: fix C89 compile problem
3483         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3484         Reported by Bruno Haible.
3485
3486         pipe, pipe2: don't corrupt fd on error
3487         * lib/pipe.c (pipe): Leave fd unchanged on error.
3488         * lib/pipe2.c (pipe2): Likewise.
3489         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3490         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3491
3492 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3493
3494         mmap-anon: do not use regular expressions inadvertently
3495         * m4/mmap-anon.m4: Remove trailing period from strings sought
3496         in the output.
3497
3498 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3499
3500         nanosleep: fix integer overflow problem
3501         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3502         arithmetic wraps around on overflow.
3503
3504         nanosleep: simplify carrying
3505         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3506         first call to the underyling nanosleep, not for the last one.
3507         This doesn't fix any bugs, but it simplifies the computation of
3508         the remaining delay.  Found while auditing integer overflow issues.
3509
3510         dup2: remove test for existence of fcntl
3511         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3512         "#if HAVE_FCNTL", in the configure-time test program.
3513         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3514         and therefore speeds up "configure" a bit.  Found while
3515         adding the dup2 module to Emacs.
3516
3517 2011-06-24  Eric Blake  <eblake@redhat.com>
3518
3519         maint.mk: enhance useless header checks
3520         * top/maint.mk (_sc_header_without_use): Check both include
3521         styles.
3522         (sc_prohibit_assert_without_use)
3523         (sc_prohibit_close_stream_without_use)
3524         (sc_prohibit_getopt_without_use)
3525         (sc_prohibit_quotearg_without_use)
3526         (sc_prohibit_quote_without_use)
3527         (sc_prohibit_long_options_without_use)
3528         (sc_prohibit_inttostr_without_use)
3529         (sc_prohibit_ignore_value_without_use)
3530         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3531         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3532         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3533         (sc_prohibit_hash_pjw_without_use)
3534         (sc_prohibit_safe_read_without_use)
3535         (sc_prohibit_argmatch_without_use)
3536         (sc_prohibit_canonicalize_without_use)
3537         (sc_prohibit_root_dev_ino_without_use)
3538         (sc_prohibit_openat_without_use)
3539         (sc_prohibit_c_ctype_without_use)
3540         (sc_prohibit_signal_without_use)
3541         (sc_prohibit_stdio--_without_use)
3542         (sc_prohibit_stdio-safer_without_use)
3543         (sc_prohibit_strings_without_use)
3544         (sc_prohibit_intprops_without_use)
3545         (sc_prohibit_stddef_without_use)
3546         (sc_prohibit_xfreopen_without_use): Update clients.
3547
3548 2011-06-24  Jim Meyering  <meyering@redhat.com>
3549
3550         syntax-check: keep one maint.mk rule in sync with its header
3551         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3552         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3553         I prefer to avoid temporary files here, so use <(...), but that
3554         is not supported by /bin/sh, so...
3555         (SHELL): Define to /bin/bash.
3556
3557 2011-06-24  Eric Blake  <eblake@redhat.com>
3558
3559         maint.mk: update sc_prohibit_intprops_without_use
3560         * top/maint.mk (_intprops_names): Match recent changes.
3561
3562 2011-06-24  Bruno Haible  <bruno@clisp.org>
3563
3564         strerror-override: No-op tweak.
3565         * lib/strerror-override.h (strerror_override): Reorder conditions,
3566         for consistency with lib/strerror-override.c.
3567
3568 2011-06-23  Eric Blake  <eblake@redhat.com>
3569
3570         maint.mk: test further PATH_MAX issues
3571         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3572         (sc_prohibit_path_max_allocation): ...and also test alloca.
3573         Suggested by Jim Meyering.
3574
3575 2011-06-22  Eric Blake  <eblake@redhat.com>
3576
3577         maint.mk: add syntax-check to avoid char[PATH_MAX]
3578         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3579
3580         stat: be robust to PATH_MAX definition
3581         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3582         * modules/stat (Depends-on): Add verify.
3583
3584         link: work around IRIX bug
3585         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3586         * lib/link.c (rpl_link): Work around it.
3587         * tests/test-link.h (test_link): Enhance test.
3588         * doc/posix-functions/link.texi (link): Document the bug.
3589
3590         getopt: silence clang warning
3591         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3592         dereference.
3593         Reported by Gustavo Martin Domato.
3594
3595 2011-06-22  Jim Meyering  <meyering@redhat.com>
3596
3597         bootstrap: do not insert a blank line into each .gitignore file
3598         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3599
3600 2011-06-21  Eric Blake  <eblake@redhat.com>
3601
3602         perror: test for output mismatch
3603         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3604         perror on IRIX.
3605
3606         strerror_r: fix OpenBSD behavior on out-of-range
3607         * lib/strerror_r.c (strerror_r): Always use maximal string.
3608         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3609
3610         strerror_r: fix OpenBSD behavior on 0
3611         * lib/strerror-override.c (strerror_override): Also override 0
3612         when needed.
3613         * lib/strerror-override.h (strerror_override): Likewise.
3614         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3615         earlier.
3616         * lib/strerror_r.c (strerror_r): Likewise.
3617         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3618         behavior...
3619         (gl_FUNC_STRERROR_0): ...into new macro.
3620         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3621         is overridden.
3622         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3623         * modules/strerror-override (Files): Add strerror.m4.
3624         (configure.ac): Also provide override for 0 when needed.
3625         * doc/posix-functions/strerror.texi (strerror): Document this.
3626         * doc/posix-functions/perror.texi (perror): Likewise.
3627
3628         perror: adjust array size
3629         * modules/perror (Depends-on): Add strerror-override.
3630         * lib/perror.c (perror): Use it to avoid magic number.
3631
3632         strerror-override: reduce size
3633         * lib/strerror-override.c (strerror_override): Use fewer lines.
3634
3635 2011-06-20  Bruno Haible  <bruno@clisp.org>
3636
3637         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3638         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3639
3640 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3641
3642         alloca: port to compilers that can optimize like GCC 4.6.0
3643         * lib/alloca.c (find_stack_direction): New signature, taken from
3644         Autoconf git.  This works with GCC 4.6.0.  This code should never
3645         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3646         be used with other compilers that optimize as well as GCC 4.6.0 does.
3647         (alloca): Adjust to new signature.
3648         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3649         New macro, which patches Autoconf in a similar way.
3650
3651         c-stack: stop worrying about stack direction
3652         * lib/c-stack.c (find_stack_direction): Remove.
3653         (segv_handler): Don't worry about stack direction growth, as it's
3654         too much of a pain to configure this correctly, given how compilers
3655         are optimizing-away our stack-growth detection code.  Instead, assume
3656         that any access to just before or just after the stack is OK.
3657         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3658         Don't require AC_FUNC_ALLOCA; no longer needed.
3659
3660 2011-06-20  Eric Blake  <eblake@redhat.com>
3661
3662         test-stat: don't allocate PATH_MAX bytes
3663         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3664         PATH_MAX-sized buffer.
3665         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3666         * modules/stat-tests (Depends-on): Likewise.
3667         * tests/test-fstatat.c (includes): Drop pathmax.h.
3668         * tests/test-stat.c (includes): Likewise.
3669         Reported by Bruno Haible.
3670
3671 2011-06-20  Bruno Haible  <bruno@clisp.org>
3672
3673         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3674         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3675         * lib/float.c: New file.
3676         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3677         REPLACE_FLOAT_LDBL.
3678         * modules/float (Files): Add lib/float.c.
3679         (configure.ac): Invoke AC_LIBOBJ.
3680         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3681
3682 2011-06-20  Bruno Haible  <bruno@clisp.org>
3683
3684         Tests for module 'float'.
3685         * modules/float-tests: New file.
3686         * tests/test-float.c: New file.
3687
3688 2011-06-19  Bruno Haible  <bruno@clisp.org>
3689
3690         isinf: Coding style.
3691         * lib/isinf.c: Use GNU coding style.
3692
3693 2011-06-19  Bruno Haible  <bruno@clisp.org>
3694
3695         linkat test: Avoid test failure on AIX 7.1.
3696         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3697         * tests/test-link.h (test_link): Likewise.
3698
3699 2011-06-19  Bruno Haible  <bruno@clisp.org>
3700
3701         pread test: Avoid test failure on OpenBSD 4.9.
3702         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3703
3704 2011-06-19  Bruno Haible  <bruno@clisp.org>
3705
3706         sprintf-posix: Fix test failure on AIX 7.1.
3707         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3708         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3709         on AIX.
3710         * doc/posix-functions/fprintf.texi: Likewise.
3711         * doc/posix-functions/printf.texi: Likewise.
3712         * doc/posix-functions/snprintf.texi: Likewise.
3713         * doc/posix-functions/sprintf.texi: Likewise.
3714         * doc/posix-functions/vdprintf.texi: Likewise.
3715         * doc/posix-functions/vfprintf.texi: Likewise.
3716         * doc/posix-functions/vprintf.texi: Likewise.
3717         * doc/posix-functions/vsnprintf.texi: Likewise.
3718         * doc/posix-functions/vsprintf.texi: Likewise.
3719
3720 2011-06-19  Bruno Haible  <bruno@clisp.org>
3721
3722         roundl-ieee: Fix test failure on AIX 7.1.
3723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3724         * doc/posix-functions/roundl.texi: Mention problem with negative
3725         arguments.
3726
3727 2011-06-19  Bruno Haible  <bruno@clisp.org>
3728
3729         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3730         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3731         * doc/posix-functions/round.texi: Mention problem with negative
3732         arguments.
3733         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3734
3735 2011-06-19  Bruno Haible  <bruno@clisp.org>
3736
3737         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3739         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3740         * doc/posix-functions/roundf.texi: Mention problem with negative
3741         arguments.
3742         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3743
3744 2011-06-19  Bruno Haible  <bruno@clisp.org>
3745
3746         ceilf-ieee: Work around bug on MacOS X 10.5.
3747         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3748
3749         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3750         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3751         IEEE compliant, avoid compiler optimizations.
3752         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3753         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3754         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3755         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3756         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3757         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3758         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3760         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3761         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3762
3763 2011-06-19  Bruno Haible  <bruno@clisp.org>
3764
3765         ceilf-ieee: Work around bug on AIX 7.1.
3766         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3767         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3768
3769 2011-06-19  Bruno Haible  <bruno@clisp.org>
3770
3771         ceil-ieee: Work around bug on AIX 7.1.
3772         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3773         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3774
3775 2011-06-18  Bruno Haible  <bruno@clisp.org>
3776
3777         fsync test: Avoid test failure on MacOS X and AIX.
3778         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3779         EINVAL.
3780
3781 2011-06-18  Bruno Haible  <bruno@clisp.org>
3782
3783         openat, fdopendir tests: Fix link errors.
3784         * modules/openat-tests (Depends-on): Add progname.
3785         * modules/fdopendir-tests (Depends-on): Likewise.
3786         * tests/test-fchownat.c: Include progname.h.
3787         (main): Call set_program_name.
3788         * tests/test-fstatat.c: Include progname.h.
3789         (main): Call set_program_name.
3790         * tests/test-mkdirat.c: Include progname.h.
3791         (main): Call set_program_name.
3792         * tests/test-openat.c: Include progname.h.
3793         (main): Call set_program_name.
3794         * tests/test-unlinkat.c: Include progname.h.
3795         (main): Call set_program_name.
3796         * tests/test-fdopendir.c: Include progname.h.
3797         (main): Call set_program_name.
3798
3799 2011-06-18  Bruno Haible  <bruno@clisp.org>
3800
3801         Doc update.
3802         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3803         HP-UX.
3804         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3805
3806 2011-06-18  Bruno Haible  <bruno@clisp.org>
3807
3808         getcwd tests: Avoid compilation error on HP-UX 11.31.
3809         * modules/getcwd-tests (Depends-on): Add pathmax.
3810         * tests/test-getcwd.c: Include pathmax.h.
3811
3812 2011-06-18  Bruno Haible  <bruno@clisp.org>
3813
3814         isfinite, isinf: Fix link error on AIX 6 and 7.
3815         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3816         needed, also test the macro with a 'float' argument.
3817         * m4/isinf.m4 (gl_ISINF): Likewise.
3818
3819 2011-06-18  Bruno Haible  <bruno@clisp.org>
3820
3821         getloadavg: Don't clobber LIBS. Regression from previous commit.
3822         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3823         AC_CHECK_LIB from here...
3824         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3825         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3826         gl_func_getloadavg_done.
3827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3828
3829 2011-06-18  Bruno Haible  <bruno@clisp.org>
3830
3831         clean-temp: Improve documentation.
3832         * lib/clean-temp.h: Explain better how to use this module.
3833         Reported by John Darrington <john@darrington.wattle.id.au>.
3834
3835 2011-06-17  Bruno Haible  <bruno@clisp.org>
3836
3837         pread, pwrite: Avoid cc warning on AIX.
3838         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3839         (pwrite): Likewise.
3840
3841 2011-06-17  Bruno Haible  <bruno@clisp.org>
3842
3843         spawn-pipe tests: Fix link error.
3844         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3846
3847 2011-06-17  Bruno Haible  <bruno@clisp.org>
3848
3849         Tests: Remove unnecessary dependency.
3850         * modules/canonicalize-tests (Depends-on): Remove progname.
3851         * modules/chown-tests (Depends-on): Likewise.
3852         * modules/dirname-tests (Depends-on): Likewise.
3853         * modules/fdopendir-tests (Depends-on): Likewise.
3854         * modules/fdutimensat-tests (Depends-on): Likewise.
3855         * modules/hash-tests (Depends-on): Likewise.
3856         * modules/lchown-tests (Depends-on): Likewise.
3857         * modules/linkat-tests (Depends-on): Likewise.
3858         * modules/renameat-tests (Depends-on): Likewise.
3859         * modules/spawn-pipe-tests (Depends-on): Likewise.
3860         * modules/utimensat-tests (Depends-on): Likewise.
3861
3862 2011-06-17  Bruno Haible  <bruno@clisp.org>
3863
3864         spawn-pipe tests: Fix link error.
3865         * tests/test-spawn-pipe-child.c: Undefine fflush.
3866
3867 2011-06-17  Bruno Haible  <bruno@clisp.org>
3868
3869         Fix tests link errors.
3870         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3871         * modules/chown-tests (Makefile.am): Don't link test-chown with
3872         LIBINTL.
3873         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3874         LIBINTL.
3875         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3876         LIBINTL.
3877         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3878         LIBINTL.
3879
3880 2011-06-16  Bruno Haible  <bruno@clisp.org>
3881
3882         crypto/gc-sha1: Fix recent regression.
3883         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3884         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3885
3886         crypto/gc-md5: Fix recent regression.
3887         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3888
3889         crypto/gc-md4: Fix recent regression.
3890         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3891         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3892
3893         crypto/gc-arctwo: Fix recent regression.
3894         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3895         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3896
3897         crypto/gc-rijndael: Fix recent regression.
3898         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3899         (configure.ac): Invoke AC_LIBOBJ here.
3900         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3901         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3902
3903         crypto/gc-hmac-sha1: Fix recent regression.
3904         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3905         (configure.ac): Invoke AC_LIBOBJ here.
3906         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3908
3909         crypto/gc-hmac-md5: Fix recent regression.
3910         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3911         (configure.ac): Invoke AC_LIBOBJ here.
3912         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3913         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3914
3915         crypto/gc-des: Fix recent regression.
3916         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3917         (configure.ac): Invoke AC_LIBOBJ here.
3918         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3920
3921         crypto/gc-arcfour: Fix recent regression.
3922         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3923         (configure.ac): Invoke AC_LIBOBJ here.
3924         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3925         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3926
3927 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3928
3929         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3930         After the 2011-05-21 change, this macro requires
3931         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3932         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3933
3934 2011-06-16  Bruno Haible  <bruno@clisp.org>
3935
3936         fprintftime: Move AC_LIBOBJ invocations to module description.
3937         * m4/fprintftime.m4: Remove file.
3938         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3939         (configure.ac): Remove gl_FPRINTFTIME call.
3940         (Makefile.am): Augment lib_SOURCES.
3941         Reported by Jim Meyering.
3942
3943 2011-06-16  Bruno Haible  <bruno@clisp.org>
3944
3945         tmpfile-safer: Finish 2011-05-23 commit.
3946         * m4/stdio-safer.m4: Really remove file.
3947         Reported by Jim Meyering.
3948
3949 2011-06-16  Bruno Haible  <bruno@clisp.org>
3950
3951         syntax-check: Fix typo.
3952         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3953         printf-posix.m4.
3954         Reported by Jim Meyering.
3955
3956 2011-06-13  Jim Meyering  <meyering@redhat.com>
3957
3958         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3959         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3960
3961 2011-05-23  Bruno Haible  <bruno@clisp.org>
3962
3963         yesno: Move AC_LIBOBJ invocations to module description.
3964         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3965         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3966
3967 2011-05-23  Bruno Haible  <bruno@clisp.org>
3968
3969         xstrtol: Move AC_LIBOBJ invocations to module description.
3970         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3971         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3972
3973 2011-05-23  Bruno Haible  <bruno@clisp.org>
3974
3975         xstrtold: Move AC_LIBOBJ invocations to module description.
3976         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3977         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3978
3979 2011-05-23  Bruno Haible  <bruno@clisp.org>
3980
3981         xstrtod: Move AC_LIBOBJ invocations to module description.
3982         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3983         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3984
3985 2011-05-23  Bruno Haible  <bruno@clisp.org>
3986
3987         xnanosleep: Move AC_LIBOBJ invocations to module description.
3988         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3989         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3990
3991 2011-05-23  Bruno Haible  <bruno@clisp.org>
3992
3993         xgetcwd: Move AC_LIBOBJ invocations to module description.
3994         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3995         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3996
3997 2011-05-23  Bruno Haible  <bruno@clisp.org>
3998
3999         xalloc: Move AC_LIBOBJ invocations to module description.
4000         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4001         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4002
4003 2011-05-23  Bruno Haible  <bruno@clisp.org>
4004
4005         write-any-file: Move AC_LIBOBJ invocations to module description.
4006         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4007         invocation.
4008         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4009
4010 2011-05-23  Bruno Haible  <bruno@clisp.org>
4011
4012         utimens: Move AC_LIBOBJ invocations to module description.
4013         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4014         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4015
4016 2011-05-23  Bruno Haible  <bruno@clisp.org>
4017
4018         utimecmp: Move AC_LIBOBJ invocations to module description.
4019         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4020         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4021
4022 2011-05-23  Bruno Haible  <bruno@clisp.org>
4023
4024         userspec: Move AC_LIBOBJ invocations to module description.
4025         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4026         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4027
4028 2011-05-23  Bruno Haible  <bruno@clisp.org>
4029
4030         unlinkdir: Move AC_LIBOBJ invocations to module description.
4031         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4032         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4033
4034 2011-05-23  Bruno Haible  <bruno@clisp.org>
4035
4036         unistd-safer: Move AC_LIBOBJ invocations to module description.
4037         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4038         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4039
4040 2011-05-23  Bruno Haible  <bruno@clisp.org>
4041
4042         tempname: Move AC_LIBOBJ invocations to module description.
4043         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4044         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4045
4046 2011-05-23  Bruno Haible  <bruno@clisp.org>
4047
4048         strftime: Move AC_LIBOBJ invocations to module description.
4049         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4050         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4051
4052 2011-05-23  Bruno Haible  <bruno@clisp.org>
4053
4054         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4055         * m4/stdlib-safer.m4: Remove file.
4056         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4057         (configure.ac): Remove gl_STDLIB_SAFER call.
4058         (Makefile.am): Augment lib_SOURCES.
4059
4060 2011-05-23  Bruno Haible  <bruno@clisp.org>
4061
4062         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4063         * m4/stdio-safer.m4: Remove file.
4064         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4065         (configure.ac): Remove gl_TMPFILE_SAFER call.
4066         (Makefile.am): Augment lib_SOURCES.
4067
4068 2011-05-23  Bruno Haible  <bruno@clisp.org>
4069
4070         popen-safer: Move AC_LIBOBJ invocations to module description.
4071         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4072         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4073         (configure.ac): Remove gl_POPEN_SAFER call.
4074         (Makefile.am): Augment lib_SOURCES.
4075
4076 2011-05-23  Bruno Haible  <bruno@clisp.org>
4077
4078         freopen-safer: Move AC_LIBOBJ invocations to module description.
4079         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4080         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4081         (configure.ac): Remove gl_FREOPEN_SAFER call.
4082         (Makefile.am): Augment lib_SOURCES.
4083
4084 2011-05-23  Bruno Haible  <bruno@clisp.org>
4085
4086         fopen-safer: Move AC_LIBOBJ invocations to module description.
4087         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4088         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4089         (configure.ac): Remove gl_FOPEN_SAFER call.
4090         (Makefile.am): Augment lib_SOURCES.
4091
4092 2011-05-23  Bruno Haible  <bruno@clisp.org>
4093
4094         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4095         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4096         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4097
4098 2011-05-23  Bruno Haible  <bruno@clisp.org>
4099
4100         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4101         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4102         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4103
4104 2011-05-23  Bruno Haible  <bruno@clisp.org>
4105
4106         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4107         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4108         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4109
4110 2011-05-23  Bruno Haible  <bruno@clisp.org>
4111
4112         settime: Move AC_LIBOBJ invocations to module description.
4113         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4114         * modules/settime (Makefile.am): Augment lib_SOURCES.
4115
4116 2011-05-23  Bruno Haible  <bruno@clisp.org>
4117
4118         savedir: Move AC_LIBOBJ invocations to module description.
4119         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4120         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4121
4122 2011-05-23  Bruno Haible  <bruno@clisp.org>
4123
4124         save-cwd: Move AC_LIBOBJ invocations to module description.
4125         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4126         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4127
4128 2011-05-23  Bruno Haible  <bruno@clisp.org>
4129
4130         same: Move AC_LIBOBJ invocations to module description.
4131         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4132         * modules/same (Makefile.am): Augment lib_SOURCES.
4133
4134 2011-05-23  Bruno Haible  <bruno@clisp.org>
4135
4136         safe-write: Move AC_LIBOBJ invocations to module description.
4137         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4138         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4139         instead of gl_SAFE_WRITE.
4140         (Makefile.am): Augment lib_SOURCES.
4141
4142 2011-05-23  Bruno Haible  <bruno@clisp.org>
4143
4144         safe-read: Move AC_LIBOBJ invocations to module description.
4145         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4146         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4147         of gl_SAFE_READ.
4148         (Makefile.am): Augment lib_SOURCES.
4149
4150 2011-05-23  Bruno Haible  <bruno@clisp.org>
4151
4152         safe-alloc: Move AC_LIBOBJ invocations to module description.
4153         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4154         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4155
4156 2011-05-23  Bruno Haible  <bruno@clisp.org>
4157
4158         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4159         * m4/rijndael.m4: Remove file.
4160         * modules/crypto/rijndael (Files): Remove it.
4161         (configure.ac): Remove gl_RIJNDAEL call.
4162         (Makefile.am): Augment lib_SOURCES.
4163
4164 2011-05-23  Bruno Haible  <bruno@clisp.org>
4165
4166         readtokens: Move AC_LIBOBJ invocations to module description.
4167         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4168         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4169
4170 2011-05-23  Bruno Haible  <bruno@clisp.org>
4171
4172         read-file: Move AC_LIBOBJ invocations to module description.
4173         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4174         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4175         of gl_FUNC_READ_FILE.
4176         (Makefile.am): Augment lib_SOURCES.
4177
4178 2011-05-23  Bruno Haible  <bruno@clisp.org>
4179
4180         quotearg: Move AC_LIBOBJ invocations to module description.
4181         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4182         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4183
4184 2011-05-23  Bruno Haible  <bruno@clisp.org>
4185
4186         quote: Move AC_LIBOBJ invocations to module description.
4187         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4188         * modules/quote (Makefile.am): Augment lib_SOURCES.
4189
4190 2011-05-23  Bruno Haible  <bruno@clisp.org>
4191
4192         posixver: Move AC_LIBOBJ invocations to module description.
4193         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4194         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4195
4196 2011-05-23  Bruno Haible  <bruno@clisp.org>
4197
4198         posixtm: Move AC_LIBOBJ invocations to module description.
4199         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4200         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4201
4202 2011-05-23  Bruno Haible  <bruno@clisp.org>
4203
4204         physmem: Move AC_LIBOBJ invocations to module description.
4205         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4206         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4207
4208 2011-05-23  Bruno Haible  <bruno@clisp.org>
4209
4210         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4211         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4212         invocation.
4213         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4214
4215 2011-05-23  Bruno Haible  <bruno@clisp.org>
4216
4217         mpsort: Move AC_LIBOBJ invocations to module description.
4218         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4219         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4220
4221 2011-05-23  Bruno Haible  <bruno@clisp.org>
4222
4223         modechange: Move AC_LIBOBJ invocations to module description.
4224         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4225         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4226
4227 2011-05-23  Bruno Haible  <bruno@clisp.org>
4228
4229         mkdir-p: Move AC_LIBOBJ invocations to module description.
4230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4231         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4232
4233 2011-05-23  Bruno Haible  <bruno@clisp.org>
4234
4235         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4236         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4237         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4238
4239 2011-05-23  Bruno Haible  <bruno@clisp.org>
4240
4241         mgetgroups: Move AC_LIBOBJ invocations to module description.
4242         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4243         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4244
4245 2011-05-23  Bruno Haible  <bruno@clisp.org>
4246
4247         memxor: Move AC_LIBOBJ invocations to module description.
4248         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4249         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4250
4251 2011-05-23  Bruno Haible  <bruno@clisp.org>
4252
4253         memcoll: Move AC_LIBOBJ invocations to module description.
4254         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4255         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4256
4257 2011-05-23  Bruno Haible  <bruno@clisp.org>
4258
4259         memcasecmp: Move AC_LIBOBJ invocations to module description.
4260         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4261         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4262
4263 2011-05-23  Bruno Haible  <bruno@clisp.org>
4264
4265         crypto/md5: Move AC_LIBOBJ invocations to module description.
4266         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4267         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4268
4269 2011-05-23  Bruno Haible  <bruno@clisp.org>
4270
4271         crypto/md4: Move AC_LIBOBJ invocations to module description.
4272         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4273         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4274
4275 2011-05-23  Bruno Haible  <bruno@clisp.org>
4276
4277         crypto/md2: Move AC_LIBOBJ invocations to module description.
4278         * m4/md2.m4: Remove file.
4279         * modules/crypto/md2 (Files): Remove it.
4280         (configure.ac): Remove gl_MD2 call.
4281         (Makefile.am): Augment lib_SOURCES.
4282
4283 2011-05-23  Bruno Haible  <bruno@clisp.org>
4284
4285         long-options: Move AC_LIBOBJ invocations to module description.
4286         * m4/long-options.m4: Remove file.
4287         * modules/long-options (Files): Remove it.
4288         (configure.ac): Remove gl_LONG_OPTIONS call.
4289         (Makefile.am): Augment lib_SOURCES.
4290
4291 2011-05-23  Bruno Haible  <bruno@clisp.org>
4292
4293         i-ring: Move AC_LIBOBJ invocations to module description.
4294         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4295         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4296
4297 2011-05-23  Bruno Haible  <bruno@clisp.org>
4298
4299         idcache: Move AC_LIBOBJ invocations to module description.
4300         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4301         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4302
4303 2011-05-23  Bruno Haible  <bruno@clisp.org>
4304
4305         human: Move AC_LIBOBJ invocations to module description.
4306         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4307         * modules/human (Makefile.am): Augment lib_SOURCES.
4308
4309 2011-05-23  Bruno Haible  <bruno@clisp.org>
4310
4311         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4312         * m4/hmac-sha1.m4: Remove file.
4313         * modules/crypto/hmac-sha1 (Files): Remove it.
4314         (configure.ac): Remove gl_HMAC_SHA1 call.
4315         (Makefile.am): Augment lib_SOURCES.
4316
4317 2011-05-23  Bruno Haible  <bruno@clisp.org>
4318
4319         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4320         * m4/hmac-md5.m4: Remove file.
4321         * modules/crypto/hmac-md5 (Files): Remove it.
4322         (configure.ac): Remove gl_HMAC_MD5 call.
4323         (Makefile.am): Augment lib_SOURCES.
4324
4325 2011-05-23  Bruno Haible  <bruno@clisp.org>
4326
4327         hash: Move AC_LIBOBJ invocations to module description.
4328         * m4/hash.m4: Remove file.
4329         * modules/hash (Files): Remove it.
4330         (configure.ac): Remove gl_HASH call.
4331         (Makefile.am): Augment lib_SOURCES.
4332
4333 2011-05-23  Bruno Haible  <bruno@clisp.org>
4334
4335         hard-locale: Move AC_LIBOBJ invocations to module description.
4336         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4337         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4338
4339 2011-05-23  Bruno Haible  <bruno@clisp.org>
4340
4341         getugroups: Move AC_LIBOBJ invocations to module description.
4342         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4343         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4344
4345 2011-05-23  Bruno Haible  <bruno@clisp.org>
4346
4347         gettime: Move AC_LIBOBJ invocations to module description.
4348         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4349         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4350
4351 2011-05-23  Bruno Haible  <bruno@clisp.org>
4352
4353         getndelim2: Move AC_LIBOBJ invocations to module description.
4354         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4355         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4356
4357 2011-05-23  Bruno Haible  <bruno@clisp.org>
4358
4359         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4360         * m4/gc-pbkdf2-sha1.m4: Remove file.
4361         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4362         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4363         (Makefile.am): Augment lib_SOURCES.
4364
4365 2011-05-23  Bruno Haible  <bruno@clisp.org>
4366
4367         fts: Move AC_LIBOBJ invocations to module description.
4368         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4369         * modules/fts (configure.ac): ... to here.
4370
4371 2011-05-23  Bruno Haible  <bruno@clisp.org>
4372
4373         file-type: Move AC_LIBOBJ invocations to module description.
4374         * m4/file-type.m4: Remove file.
4375         * modules/file-type (Files): Remove it.
4376         (configure.ac): Remove gl_FILE_TYPE call.
4377         (Makefile.am): Augment lib_SOURCES.
4378
4379 2011-05-23  Bruno Haible  <bruno@clisp.org>
4380
4381         filenamecat*: Respect rules for use of AC_LIBOBJ.
4382         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4383         Remove AC_LIBOBJ invocation.
4384         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4385         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4386
4387 2011-05-23  Bruno Haible  <bruno@clisp.org>
4388
4389         filemode: Move AC_LIBOBJ invocations to module description.
4390         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4391         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4392
4393 2011-05-23  Bruno Haible  <bruno@clisp.org>
4394
4395         openat-safer: Move AC_LIBOBJ invocations to module description.
4396         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4397         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4398
4399 2011-05-23  Bruno Haible  <bruno@clisp.org>
4400
4401         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4402         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4403         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4404
4405 2011-05-23  Bruno Haible  <bruno@clisp.org>
4406
4407         exclude: Move AC_LIBOBJ invocations to module description.
4408         * m4/exclude.m4: Remove file.
4409         * modules/exclude (Files): Remove it.
4410         (configure.ac): Remove gl_EXCLUDE call.
4411         (Makefile.am): Augment lib_SOURCES.
4412
4413 2011-05-23  Bruno Haible  <bruno@clisp.org>
4414
4415         dirname*: Respect rules for use of AC_LIBOBJ.
4416         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4417         invocations.
4418         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4419         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4420
4421 2011-05-23  Bruno Haible  <bruno@clisp.org>
4422
4423         dirent-safer: Move AC_LIBOBJ invocations to module description.
4424         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4425         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4426
4427 2011-05-23  Bruno Haible  <bruno@clisp.org>
4428
4429         crypto/des: Move AC_LIBOBJ invocations to module description.
4430         * m4/des.m4: Remove file.
4431         * modules/crypto/des (Files): Remove it.
4432         (configure.ac): Remove gl_DES call.
4433         (Makefile.am): Augment lib_SOURCES.
4434
4435 2011-05-23  Bruno Haible  <bruno@clisp.org>
4436
4437         cycle-check: Move AC_LIBOBJ invocations to module description.
4438         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4439         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4440
4441 2011-05-23  Bruno Haible  <bruno@clisp.org>
4442
4443         c-strtold: Move AC_LIBOBJ invocations to module description.
4444         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4445         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4446
4447 2011-05-23  Bruno Haible  <bruno@clisp.org>
4448
4449         c-strtod: Move AC_LIBOBJ invocations to module description.
4450         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4451         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4452
4453 2011-05-23  Bruno Haible  <bruno@clisp.org>
4454
4455         crc: Move AC_LIBOBJ invocations to module description.
4456         * m4/crc.m4: Remove file.
4457         * modules/crc (Files): Remove it.
4458         (configure.ac): Remove gl_CRC call.
4459         (Makefile.am): Augment lib_SOURCES.
4460
4461 2011-05-23  Bruno Haible  <bruno@clisp.org>
4462
4463         close-stream: Move AC_LIBOBJ invocations to module description.
4464         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4465         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4466
4467 2011-05-23  Bruno Haible  <bruno@clisp.org>
4468
4469         closeout: Move AC_LIBOBJ invocations to module description.
4470         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4471         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4472
4473 2011-05-23  Bruno Haible  <bruno@clisp.org>
4474
4475         closein: Move AC_LIBOBJ invocations to module description.
4476         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4477         * modules/closein (Makefile.am): Augment lib_SOURCES.
4478
4479 2011-05-23  Bruno Haible  <bruno@clisp.org>
4480
4481         cloexec: Move AC_LIBOBJ invocations to module description.
4482         * m4/cloexec.m4: Remove file.
4483         * modules/cloexec (Files): Remove it.
4484         (configure.ac): Remove gl_CLOEXEC call.
4485         (Makefile.am): Augment lib_SOURCES.
4486
4487 2011-05-23  Bruno Haible  <bruno@clisp.org>
4488
4489         check-version: Move AC_LIBOBJ invocations to module description.
4490         * m4/check-version.m4: Remove file.
4491         * modules/check-version (Files): Remove it.
4492         (configure.ac): Remove gl_CHECK_VERSION call.
4493         (Makefile.am): Augment lib_SOURCES.
4494
4495 2011-05-23  Bruno Haible  <bruno@clisp.org>
4496
4497         chdir-safer: Move AC_LIBOBJ invocations to module description.
4498         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4499         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4500
4501 2011-05-23  Bruno Haible  <bruno@clisp.org>
4502
4503         canonicalize: Move AC_LIBOBJ invocations to module description.
4504         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4505         AC_LIBOBJ invocation.
4506         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4507
4508 2011-05-23  Bruno Haible  <bruno@clisp.org>
4509
4510         canon-host: Move AC_LIBOBJ invocations to module description.
4511         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4512         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4513         instead of gl_CANON_HOST.
4514         (Makefile.am): Augment lib_SOURCES.
4515
4516 2011-05-23  Bruno Haible  <bruno@clisp.org>
4517
4518         backupfile: Move AC_LIBOBJ invocations to module description.
4519         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4520         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4521
4522 2011-05-23  Bruno Haible  <bruno@clisp.org>
4523
4524         argmatch: Move AC_LIBOBJ invocations to module description.
4525         * m4/argmatch.m4: Remove file.
4526         * modules/argmatch (Files): Remove it.
4527         (configure.ac): Remove gl_ARGMATCH call.
4528         (Makefile.am): Augment lib_SOURCES.
4529
4530 2011-05-23  Bruno Haible  <bruno@clisp.org>
4531
4532         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4533         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4534         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4535
4536 2011-05-23  Bruno Haible  <bruno@clisp.org>
4537
4538         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4539         * m4/arcfour.m4: Remove file.
4540         * modules/crypto/arcfour (Files): Remove it.
4541         (configure.ac): Remove gl_ARCFOUR call.
4542         (Makefile.am): Augment lib_SOURCES.
4543
4544 2011-05-22  Bruno Haible  <bruno@clisp.org>
4545
4546         write: Move AC_LIBOBJ invocations to module description.
4547         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4548         * modules/write (configure.ac): ... to here.
4549
4550 2011-05-22  Bruno Haible  <bruno@clisp.org>
4551
4552         wmemset: Move AC_LIBOBJ invocations to module description.
4553         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4554         here...
4555         * modules/wmemset (configure.ac): ... to here.
4556
4557 2011-05-22  Bruno Haible  <bruno@clisp.org>
4558
4559         wmemmove: Move AC_LIBOBJ invocations to module description.
4560         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4561         here...
4562         * modules/wmemmove (configure.ac): ... to here.
4563
4564 2011-05-22  Bruno Haible  <bruno@clisp.org>
4565
4566         wmemcpy: Move AC_LIBOBJ invocations to module description.
4567         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4568         here...
4569         * modules/wmemcpy (configure.ac): ... to here.
4570
4571 2011-05-22  Bruno Haible  <bruno@clisp.org>
4572
4573         wmemcmp: Move AC_LIBOBJ invocations to module description.
4574         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4575         here...
4576         * modules/wmemcmp (configure.ac): ... to here.
4577
4578 2011-05-22  Bruno Haible  <bruno@clisp.org>
4579
4580         wmemchr: Move AC_LIBOBJ invocations to module description.
4581         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4582         here...
4583         * modules/wmemchr (configure.ac): ... to here.
4584
4585 2011-05-22  Bruno Haible  <bruno@clisp.org>
4586
4587         wcswidth: Move AC_LIBOBJ invocations to module description.
4588         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4589         here...
4590         * modules/wcswidth (configure.ac): ... to here.
4591
4592 2011-05-22  Bruno Haible  <bruno@clisp.org>
4593
4594         wcwidth: Respect rules for use of AC_LIBOBJ.
4595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4596         invocation from here...
4597         * modules/wcwidth (configure.ac): ... to here.
4598         (Depends-on): Update conditions.
4599
4600 2011-05-22  Bruno Haible  <bruno@clisp.org>
4601
4602         wctype: Move AC_LIBOBJ invocations to module description.
4603         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4604         invocation from here...
4605         * modules/wctype (configure.ac): ... to here.
4606         (Depends-on): Update conditions.
4607
4608 2011-05-22  Bruno Haible  <bruno@clisp.org>
4609
4610         wctrans: Move AC_LIBOBJ invocations to module description.
4611         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4612         invocation from here...
4613         * modules/wctrans (configure.ac): ... to here.
4614
4615 2011-05-22  Bruno Haible  <bruno@clisp.org>
4616
4617         wctomb: Move AC_LIBOBJ invocations to module description.
4618         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4619         invocations from here...
4620         * modules/wctomb (configure.ac): ... to here.
4621
4622 2011-05-22  Bruno Haible  <bruno@clisp.org>
4623
4624         wctob: Move AC_LIBOBJ invocations to module description.
4625         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4626         gl_PREREQ_WCTOB invocations from here...
4627         * modules/wctob (configure.ac): ... to here.
4628         (Depends-on): Update conditions.
4629
4630 2011-05-22  Bruno Haible  <bruno@clisp.org>
4631
4632         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4633         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4634         here...
4635         * modules/wcsxfrm (configure.ac): ... to here.
4636
4637 2011-05-22  Bruno Haible  <bruno@clisp.org>
4638
4639         wcstok: Move AC_LIBOBJ invocations to module description.
4640         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4641         * modules/wcstok (configure.ac): ... to here.
4642
4643 2011-05-22  Bruno Haible  <bruno@clisp.org>
4644
4645         wcsstr: Move AC_LIBOBJ invocations to module description.
4646         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4647         * modules/wcsstr (configure.ac): ... to here.
4648
4649 2011-05-22  Bruno Haible  <bruno@clisp.org>
4650
4651         wcsspn: Move AC_LIBOBJ invocations to module description.
4652         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4653         * modules/wcsspn (configure.ac): ... to here.
4654
4655 2011-05-22  Bruno Haible  <bruno@clisp.org>
4656
4657         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4658         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4659         gl_PREREQ_WCSRTOMBS invocations from here...
4660         * modules/wcsrtombs (configure.ac): ... to here.
4661
4662 2011-05-22  Bruno Haible  <bruno@clisp.org>
4663
4664         wcsrchr: Move AC_LIBOBJ invocations to module description.
4665         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4666         here...
4667         * modules/wcsrchr (configure.ac): ... to here.
4668
4669 2011-05-22  Bruno Haible  <bruno@clisp.org>
4670
4671         wcspbrk: Move AC_LIBOBJ invocations to module description.
4672         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4673         here...
4674         * modules/wcspbrk (configure.ac): ... to here.
4675
4676 2011-05-22  Bruno Haible  <bruno@clisp.org>
4677
4678         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4679         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4680         gl_PREREQ_WCSNRTOMBS invocations from here...
4681         * modules/wcsnrtombs (configure.ac): ... to here.
4682
4683 2011-05-22  Bruno Haible  <bruno@clisp.org>
4684
4685         wcsnlen: Move AC_LIBOBJ invocations to module description.
4686         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4687         here...
4688         * modules/wcsnlen (configure.ac): ... to here.
4689
4690 2011-05-22  Bruno Haible  <bruno@clisp.org>
4691
4692         wcsncpy: Move AC_LIBOBJ invocations to module description.
4693         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4694         here...
4695         * modules/wcsncpy (configure.ac): ... to here.
4696
4697 2011-05-22  Bruno Haible  <bruno@clisp.org>
4698
4699         wcsncmp: Move AC_LIBOBJ invocations to module description.
4700         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4701         here...
4702         * modules/wcsncmp (configure.ac): ... to here.
4703
4704 2011-05-22  Bruno Haible  <bruno@clisp.org>
4705
4706         wcsncat: Move AC_LIBOBJ invocations to module description.
4707         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4708         here...
4709         * modules/wcsncat (configure.ac): ... to here.
4710
4711 2011-05-22  Bruno Haible  <bruno@clisp.org>
4712
4713         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4714         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4715         from here...
4716         * modules/wcsncasecmp (configure.ac): ... to here.
4717
4718 2011-05-22  Bruno Haible  <bruno@clisp.org>
4719
4720         wcslen: Move AC_LIBOBJ invocations to module description.
4721         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4722         * modules/wcslen (configure.ac): ... to here.
4723
4724 2011-05-22  Bruno Haible  <bruno@clisp.org>
4725
4726         wcsdup: Move AC_LIBOBJ invocations to module description.
4727         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4728         * modules/wcsdup (configure.ac): ... to here.
4729
4730 2011-05-22  Bruno Haible  <bruno@clisp.org>
4731
4732         wcscspn: Move AC_LIBOBJ invocations to module description.
4733         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4734         here...
4735         * modules/wcscspn (configure.ac): ... to here.
4736
4737 2011-05-22  Bruno Haible  <bruno@clisp.org>
4738
4739         wcscpy: Move AC_LIBOBJ invocations to module description.
4740         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4741         * modules/wcscpy (configure.ac): ... to here.
4742
4743 2011-05-22  Bruno Haible  <bruno@clisp.org>
4744
4745         wcscoll: Move AC_LIBOBJ invocations to module description.
4746         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4747         here...
4748         * modules/wcscoll (configure.ac): ... to here.
4749
4750 2011-05-22  Bruno Haible  <bruno@clisp.org>
4751
4752         wcscmp: Move AC_LIBOBJ invocations to module description.
4753         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4754         * modules/wcscmp (configure.ac): ... to here.
4755
4756 2011-05-22  Bruno Haible  <bruno@clisp.org>
4757
4758         wcschr: Move AC_LIBOBJ invocations to module description.
4759         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4760         * modules/wcschr (configure.ac): ... to here.
4761
4762 2011-05-22  Bruno Haible  <bruno@clisp.org>
4763
4764         wcscat: Move AC_LIBOBJ invocations to module description.
4765         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4766         * modules/wcscat (configure.ac): ... to here.
4767
4768 2011-05-22  Bruno Haible  <bruno@clisp.org>
4769
4770         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4771         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4772         here...
4773         * modules/wcscasecmp (configure.ac): ... to here.
4774
4775 2011-05-22  Bruno Haible  <bruno@clisp.org>
4776
4777         wcrtomb: Move AC_LIBOBJ invocations to module description.
4778         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4779         invocations from here...
4780         * modules/wcrtomb (configure.ac): ... to here.
4781
4782 2011-05-22  Bruno Haible  <bruno@clisp.org>
4783
4784         wcpncpy: Move AC_LIBOBJ invocations to module description.
4785         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4786         here...
4787         * modules/wcpncpy (configure.ac): ... to here.
4788
4789 2011-05-22  Bruno Haible  <bruno@clisp.org>
4790
4791         wcpcpy: Move AC_LIBOBJ invocations to module description.
4792         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4793         * modules/wcpcpy (configure.ac): ... to here.
4794
4795 2011-05-22  Bruno Haible  <bruno@clisp.org>
4796
4797         waitpid: Move AC_LIBOBJ invocations to module description.
4798         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4799         invocation from here...
4800         * modules/waitpid (configure.ac): ... to here.
4801
4802 2011-05-22  Bruno Haible  <bruno@clisp.org>
4803
4804         utimensat: Move AC_LIBOBJ invocations to module description.
4805         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4806         here...
4807         * modules/utimensat (configure.ac): ... to here.
4808
4809 2011-05-22  Bruno Haible  <bruno@clisp.org>
4810
4811         usleep: Move AC_LIBOBJ invocations to module description.
4812         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4813         here...
4814         * modules/usleep (configure.ac): ... to here.
4815
4816 2011-05-22  Bruno Haible  <bruno@clisp.org>
4817
4818         unlockpt: Move AC_LIBOBJ invocations to module description.
4819         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4820         gl_PREREQ_UNLOCKPT invocations from here...
4821         * modules/unlockpt (configure.ac): ... to here.
4822
4823 2011-05-22  Bruno Haible  <bruno@clisp.org>
4824
4825         unlink: Respect rules for use of AC_LIBOBJ.
4826         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4827         * modules/unlink (configure.ac): ... to here.
4828
4829 2011-05-22  Bruno Haible  <bruno@clisp.org>
4830
4831         uname: Move AC_LIBOBJ invocations to module description.
4832         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4833         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4834         here...
4835         * modules/uname (configure.ac): ... to here.
4836
4837 2011-05-22  Bruno Haible  <bruno@clisp.org>
4838
4839         ttyname_r: Move AC_LIBOBJ invocations to module description.
4840         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4841         gl_PREREQ_TTYNAME_R invocations from here...
4842         * modules/ttyname_r (configure.ac): ... to here.
4843
4844 2011-05-22  Bruno Haible  <bruno@clisp.org>
4845
4846         tsearch: Move AC_LIBOBJ invocations to module description.
4847         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4848         invocations from here...
4849         * modules/tsearch (configure.ac): ... to here.
4850
4851 2011-05-22  Bruno Haible  <bruno@clisp.org>
4852
4853         towctrans: Move AC_LIBOBJ invocations to module description.
4854         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4855         AC_LIBOBJ invocation from here...
4856         * modules/towctrans (configure.ac): ... to here.
4857
4858 2011-05-22  Bruno Haible  <bruno@clisp.org>
4859
4860         tmpfile: Move AC_LIBOBJ invocations to module description.
4861         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4862         invocations from here...
4863         * modules/tmpfile (configure.ac): ... to here.
4864
4865 2011-05-22  Bruno Haible  <bruno@clisp.org>
4866
4867         times: Move AC_LIBOBJ invocations to module description.
4868         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4869         * modules/times (configure.ac): ... to here.
4870
4871 2011-05-22  Bruno Haible  <bruno@clisp.org>
4872
4873         time_r: Move AC_LIBOBJ invocations to module description.
4874         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4875         invocations from here...
4876         * modules/time_r (configure.ac): ... to here.
4877
4878 2011-05-22  Bruno Haible  <bruno@clisp.org>
4879
4880         timegm: Move AC_LIBOBJ invocations to module description.
4881         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4882         invocations from here...
4883         * modules/timegm (configure.ac): ... to here.
4884
4885 2011-05-22  Bruno Haible  <bruno@clisp.org>
4886
4887         tcgetsid: Move AC_LIBOBJ invocations to module description.
4888         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4889         and gl_PREREQ_TCGETSID invocations from here...
4890         * modules/tcgetsid (configure.ac): ... to here.
4891         (Depends-on): Update conditions.
4892
4893 2011-05-22  Bruno Haible  <bruno@clisp.org>
4894
4895         symlinkat: Move AC_LIBOBJ invocations to module description.
4896         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4897         here...
4898         * modules/symlinkat (configure.ac): ... to here.
4899
4900 2011-05-22  Bruno Haible  <bruno@clisp.org>
4901
4902         symlink: Move AC_LIBOBJ invocations to module description.
4903         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4904         here...
4905         * modules/symlink (configure.ac): ... to here.
4906
4907 2011-05-22  Bruno Haible  <bruno@clisp.org>
4908
4909         strverscmp: Move AC_LIBOBJ invocations to module description.
4910         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4912         from here...
4913         * modules/strverscmp (configure.ac): ... to here.
4914
4915 2011-05-22  Bruno Haible  <bruno@clisp.org>
4916
4917         strtok_r: Move AC_LIBOBJ invocations to module description.
4918         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4919         and gl_PREREQ_STRTOK_R invocations from here...
4920         * modules/strtok_r (configure.ac): ... to here.
4921         (Depends-on): Update conditions.
4922
4923 2011-05-22  Bruno Haible  <bruno@clisp.org>
4924
4925         strtoumax: Move AC_LIBOBJ invocations to module description.
4926         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4928         from here...
4929         * modules/strtoumax (configure.ac): ... to here.
4930
4931 2011-05-22  Bruno Haible  <bruno@clisp.org>
4932
4933         strtoimax: Move AC_LIBOBJ invocations to module description.
4934         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4936         from here...
4937         * modules/strtoimax (configure.ac): ... to here.
4938
4939 2011-05-22  Bruno Haible  <bruno@clisp.org>
4940
4941         strtoull: Move AC_LIBOBJ invocations to module description.
4942         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4944         from here...
4945         * modules/strtoull (configure.ac): ... to here.
4946
4947 2011-05-22  Bruno Haible  <bruno@clisp.org>
4948
4949         strtoll: Move AC_LIBOBJ invocations to module description.
4950         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4952         here...
4953         * modules/strtoll (configure.ac): ... to here.
4954
4955 2011-05-22  Bruno Haible  <bruno@clisp.org>
4956
4957         strtoul: Move AC_LIBOBJ invocations to module description.
4958         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4959         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4960         * modules/strtoul (configure.ac): ... to here.
4961
4962 2011-05-22  Bruno Haible  <bruno@clisp.org>
4963
4964         strtol: Move AC_LIBOBJ invocations to module description.
4965         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4966         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4967         * modules/strtol (configure.ac): ... to here.
4968
4969 2011-05-22  Bruno Haible  <bruno@clisp.org>
4970
4971         strtod: Move AC_LIBOBJ invocations to module description.
4972         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4973         invocations from here...
4974         * modules/strtod (configure.ac): ... to here.
4975
4976 2011-05-22  Bruno Haible  <bruno@clisp.org>
4977
4978         strstr*: Move AC_LIBOBJ invocations to module description.
4979         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4980         invocations from here...
4981         * modules/strstr-simple (configure.ac): ... to here.
4982         * modules/strstr (configure.ac): ... and here.
4983
4984 2011-05-22  Bruno Haible  <bruno@clisp.org>
4985
4986         strsignal: Move AC_LIBOBJ invocations to module description.
4987         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4988         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4989         * modules/strsignal (configure.ac): ... to here.
4990         (Depends-on): Update conditions.
4991
4992 2011-05-22  Bruno Haible  <bruno@clisp.org>
4993
4994         strsep: Move AC_LIBOBJ invocations to module description.
4995         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4997         here...
4998         * modules/strsep (configure.ac): ... to here.
4999
5000 2011-05-22  Bruno Haible  <bruno@clisp.org>
5001
5002         strptime: Move AC_LIBOBJ invocations to module description.
5003         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5004         gl_PREREQ_STRPTIME invocations from here...
5005         * modules/strptime (configure.ac): ... to here.
5006
5007 2011-05-22  Bruno Haible  <bruno@clisp.org>
5008
5009         strpbrk: Move AC_LIBOBJ invocations to module description.
5010         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5011         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5012         here...
5013         * modules/strpbrk (configure.ac): ... to here.
5014
5015 2011-05-22  Bruno Haible  <bruno@clisp.org>
5016
5017         strnlen: Move AC_LIBOBJ invocations to module description.
5018         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5019         invocations from here...
5020         * modules/strnlen (configure.ac): ... to here.
5021
5022 2011-05-22  Bruno Haible  <bruno@clisp.org>
5023
5024         strndup: Move AC_LIBOBJ invocations to module description.
5025         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5026         invocations from here...
5027         * modules/strndup (configure.ac): ... to here.
5028         (Depends-on): Update conditions.
5029
5030 2011-05-22  Bruno Haible  <bruno@clisp.org>
5031
5032         strncat: Move AC_LIBOBJ invocations to module description.
5033         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5034         invocations from here...
5035         * modules/strncat (configure.ac): ... to here.
5036
5037 2011-05-22  Bruno Haible  <bruno@clisp.org>
5038
5039         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5040         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5041         invocations from here...
5042         * modules/strdup (configure.ac): ... to here.
5043         * modules/strdup-posix (configure.ac): ... and here.
5044
5045 2011-05-22  Bruno Haible  <bruno@clisp.org>
5046
5047         strcspn: Move AC_LIBOBJ invocations to module description.
5048         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5050         here...
5051         * modules/strcspn (configure.ac): ... to here.
5052
5053 2011-05-22  Bruno Haible  <bruno@clisp.org>
5054
5055         strchrnul: Move AC_LIBOBJ invocations to module description.
5056         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5057         gl_PREREQ_STRCHRNUL invocations from here...
5058         * modules/strchrnul (configure.ac): ... to here.
5059
5060 2011-05-22  Bruno Haible  <bruno@clisp.org>
5061
5062         strcasestr*: Move AC_LIBOBJ invocations to module description.
5063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5064         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5065         * modules/strcasestr-simple (configure.ac): ... to here.
5066         * modules/strcasestr (configure.ac): ... and here.
5067
5068 2011-05-22  Bruno Haible  <bruno@clisp.org>
5069
5070         strcase: Move AC_LIBOBJ invocations to module description.
5071         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5072         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5073         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5074         gl_PREREQ_STRNCASECMP invocations from here...
5075         * modules/strcase (configure.ac): ... to here.
5076
5077 2011-05-22  Bruno Haible  <bruno@clisp.org>
5078
5079         stpncpy: Move AC_LIBOBJ invocations to module description.
5080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5081         here...
5082         * modules/stpncpy (configure.ac): ... to here.
5083
5084 2011-05-22  Bruno Haible  <bruno@clisp.org>
5085
5086         stpcpy: Move AC_LIBOBJ invocations to module description.
5087         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5088         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5089         here...
5090         * modules/stpcpy (configure.ac): ... to here.
5091
5092 2011-05-21  Bruno Haible  <bruno@clisp.org>
5093
5094         stat: Move AC_LIBOBJ invocations to module description.
5095         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5096         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5097         here...
5098         * modules/stat (configure.ac): ... to here.
5099
5100 2011-05-21  Bruno Haible  <bruno@clisp.org>
5101
5102         sleep: Move AC_LIBOBJ invocations to module description.
5103         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5104         * modules/sleep (configure.ac): ... to here.
5105
5106 2011-05-21  Bruno Haible  <bruno@clisp.org>
5107
5108         signbit: Move AC_LIBOBJ invocations to module description.
5109         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5110         * modules/signbit (configure.ac): ... to here.
5111
5112 2011-05-21  Bruno Haible  <bruno@clisp.org>
5113
5114         sigprocmask: Move AC_LIBOBJ invocations to module description.
5115         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5116         gl_PREREQ_SIGPROMASK invocations from here...
5117         * modules/sigprocmask (configure.ac): ... to here.
5118
5119 2011-05-21  Bruno Haible  <bruno@clisp.org>
5120
5121         sigaction: Move AC_LIBOBJ invocations to module description.
5122         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5123         gl_PREREQ_SIGACTION invocations from here...
5124         * modules/sigaction (configure.ac): ... to here.
5125
5126 2011-05-21  Bruno Haible  <bruno@clisp.org>
5127
5128         sig2str: Move AC_LIBOBJ invocations to module description.
5129         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5130         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5131         here...
5132         * modules/sig2str (configure.ac): ... to here.
5133
5134 2011-05-21  Bruno Haible  <bruno@clisp.org>
5135
5136         setlocale: Move AC_LIBOBJ invocations to module description.
5137         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5138         gl_PREREQ_SETLOCALE invocations from here...
5139         * modules/setlocale (configure.ac): ... to here.
5140
5141 2011-05-21  Bruno Haible  <bruno@clisp.org>
5142
5143         unsetenv: Move AC_LIBOBJ invocations to module description.
5144         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5145         and gl_PREREQ_UNSETENV invocations from here...
5146         * modules/unsetenv (configure.ac): ... to here.
5147         (Depends-on): Update.
5148
5149 2011-05-21  Bruno Haible  <bruno@clisp.org>
5150
5151         setenv: Move AC_LIBOBJ invocations to module description.
5152         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5153         here...
5154         * modules/setenv (configure.ac): ... to here.
5155
5156 2011-05-21  Bruno Haible  <bruno@clisp.org>
5157
5158         selinux-h: Move AC_LIBOBJ invocations to module description.
5159         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5160         AC_LIBOBJ invocation from here...
5161         * modules/selinux-h (configure.ac): ... to here.
5162
5163 2011-05-21  Bruno Haible  <bruno@clisp.org>
5164
5165         select: Respect rules for use of AC_LIBOBJ.
5166         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5167         here...
5168         * modules/select (configure.ac): ... to here.
5169
5170 2011-05-21  Bruno Haible  <bruno@clisp.org>
5171
5172         scandir: Move AC_LIBOBJ invocations to module description.
5173         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5174         invocations from here...
5175         * modules/scandir (configure.ac): ... to here.
5176
5177 2011-05-21  Bruno Haible  <bruno@clisp.org>
5178
5179         rpmatch: Move AC_LIBOBJ invocations to module description.
5180         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5182         here...
5183         * modules/rpmatch (configure.ac): ... to here.
5184
5185 2011-05-21  Bruno Haible  <bruno@clisp.org>
5186
5187         rmdir: Respect rules for use of AC_LIBOBJ.
5188         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5189         * modules/rmdir (configure.ac): ... to here.
5190
5191 2011-05-21  Bruno Haible  <bruno@clisp.org>
5192
5193         renameat: Move AC_LIBOBJ invocations to module description.
5194         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5195         here...
5196         * modules/renameat (configure.ac): ... to here.
5197
5198 2011-05-21  Bruno Haible  <bruno@clisp.org>
5199
5200         rename: Respect rules for use of AC_LIBOBJ.
5201         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5202         here...
5203         * modules/rename (configure.ac): ... to here.
5204
5205 2011-05-21  Bruno Haible  <bruno@clisp.org>
5206
5207         remove: Move AC_LIBOBJ invocations to module description.
5208         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5209         here...
5210         * modules/remove (configure.ac): ... to here.
5211
5212 2011-05-21  Bruno Haible  <bruno@clisp.org>
5213
5214         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5215         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5216         macro.
5217         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5218         * modules/relocatable-lib (configure.ac): ... to here.
5219         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5220         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5221
5222 2011-05-21  Bruno Haible  <bruno@clisp.org>
5223
5224         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5225         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5226         here...
5227         * modules/relocatable-prog (configure.ac): ... to here.
5228
5229 2011-05-21  Bruno Haible  <bruno@clisp.org>
5230
5231         regex: Move AC_LIBOBJ invocations to module description.
5232         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5233         invocations from here...
5234         * modules/regex (configure.ac): ... to here.
5235
5236 2011-05-21  Bruno Haible  <bruno@clisp.org>
5237
5238         realloc-*: Move AC_LIBOBJ invocations to module description.
5239         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5240         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5241         AC_LIBOBJ invocations from here...
5242         * modules/realloc-gnu (configure.ac): ... to here.
5243         * modules/realloc-posix (configure.ac): ... and here.
5244
5245 2011-05-21  Bruno Haible  <bruno@clisp.org>
5246
5247         readutmp: Move AC_LIBOBJ invocations to module description.
5248         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5249         * modules/readutmp (configure.ac): ... to here.
5250
5251 2011-05-21  Bruno Haible  <bruno@clisp.org>
5252
5253         readlinkat: Move AC_LIBOBJ invocations to module description.
5254         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5255         here...
5256         * modules/readlinkat (configure.ac): ... to here.
5257
5258 2011-05-21  Bruno Haible  <bruno@clisp.org>
5259
5260         readlink: Move AC_LIBOBJ invocations to module description.
5261         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5262         gl_PREREQ_READLINK invocations from here...
5263         * modules/readlink (configure.ac): ... to here.
5264
5265 2011-05-21  Bruno Haible  <bruno@clisp.org>
5266
5267         readline: Move AC_LIBOBJ invocations to module description.
5268         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5269         gl_PREREQ_READLINE invocations from here...
5270         * modules/readline (configure.ac): ... to here.
5271
5272 2011-05-21  Bruno Haible  <bruno@clisp.org>
5273
5274         read: Move AC_LIBOBJ invocations to module description.
5275         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5276         * modules/read (configure.ac): ... to here.
5277
5278 2011-05-21  Bruno Haible  <bruno@clisp.org>
5279
5280         rawmemchr: Move AC_LIBOBJ invocations to module description.
5281         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5282         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5283         from here...
5284         * modules/rawmemchr (configure.ac): ... to here.
5285
5286 2011-05-21  Bruno Haible  <bruno@clisp.org>
5287
5288         random_r: Move AC_LIBOBJ invocations to module description.
5289         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5290         gl_PREREQ_RANDOM_R invocations from here...
5291         * modules/random_r (configure.ac): ... to here.
5292
5293 2011-05-21  Bruno Haible  <bruno@clisp.org>
5294
5295         pwrite: Move AC_LIBOBJ invocations to module description.
5296         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5297         * modules/pwrite (configure.ac): ... to here.
5298
5299 2011-05-21  Bruno Haible  <bruno@clisp.org>
5300
5301         putenv: Move AC_LIBOBJ invocations to module description.
5302         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5303         * modules/putenv (configure.ac): ... to here.
5304
5305 2011-05-21  Bruno Haible  <bruno@clisp.org>
5306
5307         login_tty: Move AC_LIBOBJ invocations to module description.
5308         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5309         * modules/login_tty (configure.ac): ... to here.
5310
5311 2011-05-21  Bruno Haible  <bruno@clisp.org>
5312
5313         openpty: Move AC_LIBOBJ invocations to module description.
5314         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5315         * modules/openpty (configure.ac): ... to here.
5316
5317 2011-05-21  Bruno Haible  <bruno@clisp.org>
5318
5319         forkpty: Move AC_LIBOBJ invocations to module description.
5320         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5321         * modules/forkpty (configure.ac): ... to here.
5322
5323 2011-05-21  Bruno Haible  <bruno@clisp.org>
5324
5325         ptsname: Move AC_LIBOBJ invocations to module description.
5326         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5327         invocations from here...
5328         * modules/ptsname (configure.ac): ... to here.
5329
5330 2011-05-21  Bruno Haible  <bruno@clisp.org>
5331
5332         pread: Move AC_LIBOBJ invocations to module description.
5333         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5334         * modules/pread (configure.ac): ... to here.
5335
5336 2011-05-21  Bruno Haible  <bruno@clisp.org>
5337
5338         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5339         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5340         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5341         * modules/posix_spawn (configure.ac): ... to here.
5342         * modules/posix_spawnp (configure.ac): ... and here.
5343
5344 2011-05-21  Bruno Haible  <bruno@clisp.org>
5345
5346         popen: Move AC_LIBOBJ invocations to module description.
5347         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5348         invocations from here...
5349         * modules/popen (configure.ac): ... to here.
5350
5351 2011-05-21  Bruno Haible  <bruno@clisp.org>
5352
5353         poll: Move AC_LIBOBJ invocations to module description.
5354         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5355         invocations from here...
5356         * modules/poll (configure.ac): ... to here.
5357
5358 2011-05-21  Bruno Haible  <bruno@clisp.org>
5359
5360         pipe-posix: Move AC_LIBOBJ invocations to module description.
5361         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5362         * modules/pipe-posix (configure.ac): ... to here.
5363
5364 2011-05-21  Bruno Haible  <bruno@clisp.org>
5365
5366         openat: Respect rules for use of AC_LIBOBJ.
5367         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5368         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5369         * modules/openat (configure.ac): ... to here.
5370
5371 2011-05-21  Bruno Haible  <bruno@clisp.org>
5372
5373         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5374         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5375         invocation from here...
5376         * modules/obstack-printf (configure.ac): ... to here.
5377         * modules/obstack-printf-posix (configure.ac): ... and here.
5378
5379 2011-05-21  Bruno Haible  <bruno@clisp.org>
5380
5381         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5382         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5383         from here...
5384         * modules/nl_langinfo (configure.ac): ... to here.
5385
5386 2011-05-21  Bruno Haible  <bruno@clisp.org>
5387
5388         nanosleep: Move AC_LIBOBJ invocations to module description.
5389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5390         gl_PREREQ_NANOSLEEP invocations from here...
5391         * modules/nanosleep (configure.ac): ... to here.
5392
5393 2011-05-21  Bruno Haible  <bruno@clisp.org>
5394
5395         mountlist: Move AC_LIBOBJ invocations to module description.
5396         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5397         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5398         * modules/mountlist (configure.ac): ... to here.
5399
5400 2011-05-21  Bruno Haible  <bruno@clisp.org>
5401
5402         mktime: Respect rules for use of AC_LIBOBJ.
5403         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5404         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5405         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5406         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5407         * modules/mktime (configure.ac): ... to here.
5408         * modules/mktime-internal (configure.ac): ... and here.
5409         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5410
5411 2011-05-21  Bruno Haible  <bruno@clisp.org>
5412
5413         mkstemps: Move AC_LIBOBJ invocations to module description.
5414         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5415         here...
5416         * modules/mkstemps (configure.ac): ... to here.
5417
5418 2011-05-21  Bruno Haible  <bruno@clisp.org>
5419
5420         mkstemp: Move AC_LIBOBJ invocations to module description.
5421         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5422         gl_PREREQ_MKSTEMP invocations from here...
5423         * modules/mkstemp (configure.ac): ... to here.
5424
5425 2011-05-21  Bruno Haible  <bruno@clisp.org>
5426
5427         mkostemps: Move AC_LIBOBJ invocations to module description.
5428         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5429         here...
5430         * modules/mkostemps (configure.ac): ... to here.
5431
5432 2011-05-21  Bruno Haible  <bruno@clisp.org>
5433
5434         mkostemp: Move AC_LIBOBJ invocations to module description.
5435         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5436         gl_PREREQ_MKOSTEMP invocations from here...
5437         * modules/mkostemp (configure.ac): ... to here.
5438
5439 2011-05-21  Bruno Haible  <bruno@clisp.org>
5440
5441         mknod: Move AC_LIBOBJ invocations to module description.
5442         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5443         * modules/mknod (configure.ac): ... to here.
5444
5445 2011-05-21  Bruno Haible  <bruno@clisp.org>
5446
5447         mkfifoat: Move AC_LIBOBJ invocations to module description.
5448         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5449         here...
5450         * modules/mkfifoat (configure.ac): ... to here.
5451
5452 2011-05-21  Bruno Haible  <bruno@clisp.org>
5453
5454         mkfifo: Respect rules for use of AC_LIBOBJ.
5455         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5456         here...
5457         * modules/mkfifo (configure.ac): ... to here.
5458
5459 2011-05-21  Bruno Haible  <bruno@clisp.org>
5460
5461         mkdtemp: Move AC_LIBOBJ invocations to module description.
5462         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5463         invocations from here...
5464         * modules/mkdtemp (configure.ac): ... to here.
5465
5466 2011-05-21  Bruno Haible  <bruno@clisp.org>
5467
5468         mkdir: Move AC_LIBOBJ invocations to module description.
5469         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5470         * modules/mkdir (configure.ac): ... to here.
5471
5472 2011-05-21  Bruno Haible  <bruno@clisp.org>
5473
5474         memset: Move AC_LIBOBJ invocations to module description.
5475         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5476         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5477         here...
5478         * modules/memset (configure.ac): ... to here.
5479
5480 2011-05-21  Bruno Haible  <bruno@clisp.org>
5481
5482         memrchr: Move AC_LIBOBJ invocations to module description.
5483         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5485         here...
5486         * modules/memrchr (configure.ac): ... to here.
5487
5488 2011-05-21  Bruno Haible  <bruno@clisp.org>
5489
5490         mempcpy: Move AC_LIBOBJ invocations to module description.
5491         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5492         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5493         here...
5494         * modules/mempcpy (configure.ac): ... to here.
5495
5496 2011-05-21  Bruno Haible  <bruno@clisp.org>
5497
5498         memmove: Move AC_LIBOBJ invocations to module description.
5499         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5500         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5501         here...
5502         * modules/memmove (configure.ac): ... to here.
5503
5504 2011-05-21  Bruno Haible  <bruno@clisp.org>
5505
5506         memmem*: Move AC_LIBOBJ invocations to module description.
5507         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5508         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5509         here...
5510         (gl_FUNC_MEMMEM): ... and here...
5511         * modules/memmem-simple (configure.ac): ... to here.
5512         * modules/memmem (configure.ac): ... and here.
5513
5514 2011-05-21  Bruno Haible  <bruno@clisp.org>
5515
5516         memcpy: Move AC_LIBOBJ invocations to module description.
5517         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5519         here...
5520         * modules/memcpy (configure.ac): ... to here.
5521
5522 2011-05-21  Bruno Haible  <bruno@clisp.org>
5523
5524         memcmp: Simplify autoconf macro.
5525         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5526         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5527         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5528
5529 2011-05-21  Bruno Haible  <bruno@clisp.org>
5530
5531         memcmp: Move AC_LIBOBJ invocations to module description.
5532         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5533         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5534         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5535         * modules/memcmp (configure.ac): ... to here.
5536         (Depends-on): Update conditions.
5537
5538 2011-05-21  Bruno Haible  <bruno@clisp.org>
5539
5540         memchr: Respect rules for use of AC_LIBOBJ.
5541         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5542         invocations from here...
5543         * modules/memchr (configure.ac): ... to here.
5544
5545 2011-05-21  Bruno Haible  <bruno@clisp.org>
5546
5547         mbtowc: Move AC_LIBOBJ invocations to module description.
5548         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5549         invocations from here...
5550         * modules/mbtowc (configure.ac): ... to here.
5551
5552 2011-05-21  Bruno Haible  <bruno@clisp.org>
5553
5554         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5555         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5556         gl_PREREQ_MBSRTOWCS invocations from here...
5557         * modules/mbsrtowcs (configure.ac): ... to here.
5558
5559 2011-05-21  Bruno Haible  <bruno@clisp.org>
5560
5561         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5562         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5563         gl_PREREQ_MBSNRTOWCS invocations from here...
5564         * modules/mbsnrtowcs (configure.ac): ... to here.
5565
5566 2011-05-21  Bruno Haible  <bruno@clisp.org>
5567
5568         mbsinit: Move AC_LIBOBJ invocations to module description.
5569         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5570         invocations from here...
5571         * modules/mbsinit (configure.ac): ... to here.
5572
5573 2011-05-21  Bruno Haible  <bruno@clisp.org>
5574
5575         mbrlen: Move AC_LIBOBJ invocations to module description.
5576         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5577         invocations from here...
5578         * modules/mbrlen (configure.ac): ... to here.
5579
5580 2011-05-21  Bruno Haible  <bruno@clisp.org>
5581
5582         mbrtowc: Respect rules for use of AC_LIBOBJ.
5583         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5584         invocations from here...
5585         * modules/mbrtowc (configure.ac): ... to here.
5586
5587 2011-05-21  Bruno Haible  <bruno@clisp.org>
5588
5589         malloc-*: Move AC_LIBOBJ invocations to module description.
5590         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5591         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5592         AC_LIBOBJ invocations from here...
5593         * modules/malloc-gnu (configure.ac): ... to here.
5594         * modules/malloc-posix (configure.ac): ... and here.
5595
5596 2011-05-21  Bruno Haible  <bruno@clisp.org>
5597
5598         lstat, openat: Respect rules for use of AC_LIBOBJ.
5599         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5600         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5601         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5602         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5603         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5604         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5605         here.
5606         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5607
5608 2011-05-21  Bruno Haible  <bruno@clisp.org>
5609
5610         lseek: Move AC_LIBOBJ invocations to module description.
5611         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5612         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5613         * modules/lseek (configure.ac): ... to here.
5614
5615 2011-05-21  Bruno Haible  <bruno@clisp.org>
5616
5617         linkat: Move AC_LIBOBJ invocations to module description.
5618         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5619         here...
5620         * modules/linkat (configure.ac): ... to here.
5621
5622 2011-05-21  Bruno Haible  <bruno@clisp.org>
5623
5624         link: Respect rules for use of AC_LIBOBJ.
5625         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5626         * modules/link (configure.ac): ... to here.
5627
5628 2011-05-21  Bruno Haible  <bruno@clisp.org>
5629
5630         lchown: Move AC_LIBOBJ invocations to module description.
5631         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5632         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5633         * modules/lchown (configure.ac): ... to here.
5634
5635 2011-05-21  Bruno Haible  <bruno@clisp.org>
5636
5637         iswctype: Move AC_LIBOBJ invocations to module description.
5638         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5639         here...
5640         * modules/iswctype (configure.ac): ... to here.
5641
5642 2011-05-21  Bruno Haible  <bruno@clisp.org>
5643
5644         iswblank: Move AC_LIBOBJ invocations to module description.
5645         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5646         here...
5647         * modules/iswblank (configure.ac): ... to here.
5648
5649 2011-05-21  Bruno Haible  <bruno@clisp.org>
5650
5651         atanl: Move AC_LIBOBJ invocations to module description.
5652         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5653         * modules/atanl (configure.ac): ... to here.
5654
5655 2011-05-21  Bruno Haible  <bruno@clisp.org>
5656
5657         acosl: Move AC_LIBOBJ invocations to module description.
5658         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5659         * modules/acosl (configure.ac): ... to here.
5660
5661 2011-05-21  Bruno Haible  <bruno@clisp.org>
5662
5663         asinl: Respect rules for use of AC_LIBOBJ.
5664         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5665         * modules/asinl (configure.ac): ... to here.
5666
5667 2011-05-21  Bruno Haible  <bruno@clisp.org>
5668
5669         tanl: Move AC_LIBOBJ invocations to module description.
5670         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5671         * modules/tanl (configure.ac): ... to here.
5672
5673 2011-05-21  Bruno Haible  <bruno@clisp.org>
5674
5675         cosl: Move AC_LIBOBJ invocations to module description.
5676         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5677         * modules/cosl (configure.ac): ... to here.
5678
5679 2011-05-21  Bruno Haible  <bruno@clisp.org>
5680
5681         sinl: Move AC_LIBOBJ invocations to module description.
5682         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5683         * modules/sinl (configure.ac): ... to here.
5684
5685 2011-05-21  Bruno Haible  <bruno@clisp.org>
5686
5687         logl: Move AC_LIBOBJ invocations to module description.
5688         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5689         * modules/logl (configure.ac): ... to here.
5690
5691 2011-05-21  Bruno Haible  <bruno@clisp.org>
5692
5693         expl: Move AC_LIBOBJ invocations to module description.
5694         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5695         * modules/expl (configure.ac): ... to here.
5696
5697 2011-05-21  Bruno Haible  <bruno@clisp.org>
5698
5699         roundl: Move AC_LIBOBJ invocations to module description.
5700         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5701         * modules/roundl (configure.ac): ... to here.
5702
5703 2011-05-21  Bruno Haible  <bruno@clisp.org>
5704
5705         round: Move AC_LIBOBJ invocations to module description.
5706         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5707         * modules/round (configure.ac): ... to here.
5708
5709 2011-05-21  Bruno Haible  <bruno@clisp.org>
5710
5711         roundf: Move AC_LIBOBJ invocations to module description.
5712         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5713         * modules/roundf (configure.ac): ... to here.
5714
5715 2011-05-21  Bruno Haible  <bruno@clisp.org>
5716
5717         truncl: Move AC_LIBOBJ invocations to module description.
5718         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5719         * modules/truncl (configure.ac): ... to here.
5720
5721 2011-05-21  Bruno Haible  <bruno@clisp.org>
5722
5723         trunc: Move AC_LIBOBJ invocations to module description.
5724         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5725         * modules/trunc (configure.ac): ... to here.
5726
5727 2011-05-21  Bruno Haible  <bruno@clisp.org>
5728
5729         truncf: Move AC_LIBOBJ invocations to module description.
5730         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5731         * modules/truncf (configure.ac): ... to here.
5732
5733 2011-05-21  Bruno Haible  <bruno@clisp.org>
5734
5735         ceill: Move AC_LIBOBJ invocations to module description.
5736         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5737         * modules/ceill (configure.ac): ... to here.
5738
5739 2011-05-21  Bruno Haible  <bruno@clisp.org>
5740
5741         ceil: Move AC_LIBOBJ invocations to module description.
5742         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5743         * modules/ceil (configure.ac): ... to here.
5744
5745 2011-05-21  Bruno Haible  <bruno@clisp.org>
5746
5747         ceilf: Move AC_LIBOBJ invocations to module description.
5748         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5749         * modules/ceilf (configure.ac): ... to here.
5750
5751 2011-05-21  Bruno Haible  <bruno@clisp.org>
5752
5753         floorl: Respect rules for use of AC_LIBOBJ.
5754         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5755         * modules/floorl (configure.ac): ... to here.
5756
5757 2011-05-21  Bruno Haible  <bruno@clisp.org>
5758
5759         floor: Respect rules for use of AC_LIBOBJ.
5760         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5761         * modules/floor (configure.ac): ... to here.
5762
5763 2011-05-21  Bruno Haible  <bruno@clisp.org>
5764
5765         floorf: Move AC_LIBOBJ invocations to module description.
5766         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5767         * modules/floorf (configure.ac): ... to here.
5768
5769 2011-05-20  Bruno Haible  <bruno@clisp.org>
5770
5771         sqrtl: Respect rules for use of AC_LIBOBJ.
5772         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5773         * modules/sqrtl (configure.ac): ... to here.
5774
5775 2011-05-20  Bruno Haible  <bruno@clisp.org>
5776
5777         ldexpl: Respect rules for use of AC_LIBOBJ.
5778         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5779         * modules/ldexpl (configure.ac): ... to here.
5780
5781 2011-05-20  Bruno Haible  <bruno@clisp.org>
5782
5783         frexpl*: Respect rules for use of AC_LIBOBJ.
5784         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5785         invocation from here...
5786         * modules/frexpl (configure.ac): ... to here.
5787         * modules/frexpl-nolibm (configure.ac): ... and here.
5788
5789 2011-05-20  Bruno Haible  <bruno@clisp.org>
5790
5791         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5792         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5793         invocation from here...
5794         * modules/frexp (configure.ac): ... to here.
5795         * modules/frexp-nolibm (configure.ac): ... and here.
5796
5797 2011-05-20  Bruno Haible  <bruno@clisp.org>
5798
5799         isnan: Respect rules for use of AC_LIBOBJ.
5800         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5801         invocations here.
5802         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5803         REPLACE_ISNAN.
5804         * modules/isnand (configure.ac): Likewise.
5805         * modules/isnanl (configure.ac): Likewise.
5806
5807 2011-05-20  Bruno Haible  <bruno@clisp.org>
5808
5809         isnanl*: Respect rules for use of AC_LIBOBJ.
5810         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5811         invocation from here...
5812         * modules/isnanl (configure.ac): ... to here.
5813         * modules/isnanl-nolibm (configure.ac): ... and here.
5814
5815 2011-05-20  Bruno Haible  <bruno@clisp.org>
5816
5817         isnand*: Move AC_LIBOBJ invocations to module description.
5818         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5819         invocation from here...
5820         * modules/isnand (configure.ac): ... to here.
5821         * modules/isnand-nolibm (configure.ac): ... and here.
5822
5823 2011-05-20  Bruno Haible  <bruno@clisp.org>
5824
5825         isnanf*: Move AC_LIBOBJ invocations to module description.
5826         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5827         invocation from here...
5828         * modules/isnanf (configure.ac): ... to here.
5829         * modules/isnanf-nolibm (configure.ac): ... and here.
5830
5831 2011-05-20  Bruno Haible  <bruno@clisp.org>
5832
5833         isnan*: Separate the AC_LIBOBJ invocations.
5834         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5835         AC_LIBOBJ invocation.
5836         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5837         here.
5838         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5839         AC_LIBOBJ invocation.
5840         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5841         here.
5842         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5843         AC_LIBOBJ invocation.
5844         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5845         here.
5846         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5847
5848 2011-05-08  Bruno Haible  <bruno@clisp.org>
5849
5850         isinf: Move AC_LIBOBJ invocations to module description.
5851         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5852         * modules/isinf (configure.ac): ... to here.
5853
5854 2011-05-08  Bruno Haible  <bruno@clisp.org>
5855
5856         isfinite: Move AC_LIBOBJ invocations to module description.
5857         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5858         * modules/isfinite (configure.ac): ... to here.
5859
5860 2011-05-08  Bruno Haible  <bruno@clisp.org>
5861
5862         isblank: Move AC_LIBOBJ invocations to module description.
5863         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5864         here...
5865         * modules/isblank (configure.ac): ... to here.
5866
5867 2011-05-08  Bruno Haible  <bruno@clisp.org>
5868
5869         isapipe: Move AC_LIBOBJ invocations to module description.
5870         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5871         gl_PREREQ_ISAPIPE invocations from here...
5872         * modules/isapipe (configure.ac): ... to here.
5873         (Depends-on): Update condition.
5874
5875 2011-05-08  Bruno Haible  <bruno@clisp.org>
5876
5877         ioctl: Move AC_LIBOBJ invocations to module description.
5878         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5879         invocations from here...
5880         * modules/ioctl (configure.ac): ... to here.
5881         (Depends-on): Update condition.
5882
5883 2011-05-08  Bruno Haible  <bruno@clisp.org>
5884
5885         imaxdiv: Move AC_LIBOBJ invocations to module description.
5886         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5887         invocations from here...
5888         * modules/imaxdiv (configure.ac): ... to here.
5889
5890 2011-05-08  Bruno Haible  <bruno@clisp.org>
5891
5892         imaxabs: Move AC_LIBOBJ invocations to module description.
5893         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5894         invocations from here...
5895         * modules/imaxabs (configure.ac): ... to here.
5896
5897 2011-05-08  Bruno Haible  <bruno@clisp.org>
5898
5899         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5901         AC_LIBOBJ invocations from here...
5902         * modules/getaddrinfo (configure.ac): ... to here.
5903         (Depends-on): Add conditions.
5904
5905 2011-05-08  Bruno Haible  <bruno@clisp.org>
5906
5907         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5908         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5909         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5910         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5911         (gl_PREREQ_INET_PTON): ... from here.
5912         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5913         gl_PREREQ_INET_PTON here.
5914         (Depends-on): Update condition.
5915
5916 2011-05-08  Bruno Haible  <bruno@clisp.org>
5917
5918         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5919         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5920         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5921         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5922         (gl_PREREQ_INET_NTOP): ... from here.
5923         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5924         gl_PREREQ_INET_NTOP here.
5925         (Depends-on): Update condition.
5926
5927 2011-05-08  Bruno Haible  <bruno@clisp.org>
5928
5929         iconv_open: Move AC_LIBOBJ invocations to module description.
5930         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5931         AC_LIBOBJ invocations from here...
5932         * modules/iconv_open (configure.ac): ... to here.
5933
5934 2011-05-08  Bruno Haible  <bruno@clisp.org>
5935
5936         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5937         If module 'iconv_open' is among the main modules and module
5938         'iconv_open-utf' is among the tests dependencies, then
5939         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5940         return the special iconv_t values. Therefore iconv() and iconv_close()
5941         must support these special iconv_t values, already in lib, not only in
5942         tests.
5943         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5944         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5945         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5946         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5947         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5948         (Depends-on): Add the dependencies of iconv_open-utf.
5949         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5950         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5951         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5952
5953 2011-05-08  Bruno Haible  <bruno@clisp.org>
5954
5955         group-member: Move AC_LIBOBJ invocations to module description.
5956         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5957         gl_PREREQ_GROUP_MEMBER invocations from here...
5958         * modules/group-member (configure.ac): ... to here.
5959
5960 2011-05-08  Bruno Haible  <bruno@clisp.org>
5961
5962         grantpt: Move AC_LIBOBJ invocations to module description.
5963         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5964         invocations from here...
5965         * modules/grantpt (configure.ac): ... to here.
5966
5967 2011-05-08  Bruno Haible  <bruno@clisp.org>
5968
5969         glob: Move AC_LIBOBJ invocations to module description.
5970         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5971         from here...
5972         * modules/glob (configure.ac): ... to here.
5973
5974 2011-05-08  Bruno Haible  <bruno@clisp.org>
5975
5976         getusershell: Move AC_LIBOBJ invocations to module description.
5977         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5978         Move AC_LIBOBJ invocation from here...
5979         * modules/getusershell (configure.ac): ... to here.
5980         (Depends-on): Update condition.
5981
5982 2011-05-08  Bruno Haible  <bruno@clisp.org>
5983
5984         gettimeofday: Move AC_LIBOBJ invocations to module description.
5985         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5986         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5987         gl_PREREQ_GETTIMEOFDAY invocations from here...
5988         * modules/gettimeofday (configure.ac): ... to here.
5989
5990 2011-05-08  Bruno Haible  <bruno@clisp.org>
5991
5992         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5993         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5994         just gl_FUNC_TZSET.
5995         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5996         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5997         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5998         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5999
6000 2011-05-08  Bruno Haible  <bruno@clisp.org>
6001
6002         getsubopt: Move AC_LIBOBJ invocations to module description.
6003         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6004         gl_PREREQ_GETSUBOPT invocations from here...
6005         * modules/getsubopt (configure.ac): ... to here.
6006
6007 2011-05-08  Bruno Haible  <bruno@clisp.org>
6008
6009         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6010         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6011         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6012         * modules/getpass-gnu (configure.ac): ... to here.
6013
6014 2011-05-08  Bruno Haible  <bruno@clisp.org>
6015
6016         getpass: Move AC_LIBOBJ invocations to module description.
6017         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6018         gl_PREREQ_GETPASS invocations from here...
6019         * modules/getpass (configure.ac): ... to here.
6020
6021 2011-05-08  Bruno Haible  <bruno@clisp.org>
6022
6023         getpagesize: Move AC_LIBOBJ invocations to module description.
6024         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6025         from here...
6026         * modules/getpagesize (configure.ac): ... to here.
6027
6028 2011-05-08  Bruno Haible  <bruno@clisp.org>
6029
6030         getopt: Move AC_LIBOBJ invocations to module description.
6031         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6032         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6033         invocations from here...
6034         * modules/getopt-gnu (configure.ac): ... to here.
6035         * modules/getopt-posix (configure.ac): ... and here.
6036         (Depends-on): Update condition.
6037
6038 2011-05-08  Bruno Haible  <bruno@clisp.org>
6039
6040         getopt, argp: Respect rules for use of AC_LIBOBJ.
6041         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6042         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6043         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6044         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6045
6046 2011-05-08  Bruno Haible  <bruno@clisp.org>
6047
6048         getlogin_r: Move AC_LIBOBJ invocations to module description.
6049         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6050         gl_PREREQ_GETLOGIN_R invocations from here...
6051         * modules/getlogin_r (configure.ac): ... to here.
6052
6053 2011-05-08  Bruno Haible  <bruno@clisp.org>
6054
6055         getlogin: Move AC_LIBOBJ invocations to module description.
6056         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6057         here...
6058         * modules/getlogin (configure.ac): ... to here.
6059
6060 2011-05-08  Bruno Haible  <bruno@clisp.org>
6061
6062         getloadavg: Move AC_LIBOBJ invocations to module description.
6063         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6064         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6065         * modules/getloadavg (configure.ac): ... to here.
6066
6067 2011-05-08  Bruno Haible  <bruno@clisp.org>
6068
6069         gethrxtime: Move AC_LIBOBJ invocations to module description.
6070         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6071         LIB_GETHRXTIME from here...
6072         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6073         invocations from here...
6074         * modules/gethrxtime (configure.ac): ... to here.
6075
6076 2011-05-08  Bruno Haible  <bruno@clisp.org>
6077
6078         gethostname: Move AC_LIBOBJ invocations to module description.
6079         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6080         gl_PREREQ_GETHOSTNAME invocations from here...
6081         * modules/gethostname (configure.ac): ... to here.
6082
6083 2011-05-08  Bruno Haible  <bruno@clisp.org>
6084
6085         getgroups: Move AC_LIBOBJ invocations to module description.
6086         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6087         here...
6088         * modules/getgroups (configure.ac): ... to here.
6089
6090 2011-05-08  Bruno Haible  <bruno@clisp.org>
6091
6092         getdtablesize: Move AC_LIBOBJ invocations to module description.
6093         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6094         invocation from here...
6095         * modules/getdtablesize (configure.ac): ... to here.
6096
6097 2011-05-08  Bruno Haible  <bruno@clisp.org>
6098
6099         getdomainname: Move AC_LIBOBJ invocations to module description.
6100         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6101         gl_PREREQ_GETDOMAINNAME invocations from here...
6102         * modules/getdomainname (configure.ac): ... to here.
6103
6104 2011-05-08  Bruno Haible  <bruno@clisp.org>
6105
6106         getline: Move AC_LIBOBJ invocations to module description.
6107         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6108         invocations from here...
6109         * modules/getline (configure.ac): ... to here.
6110
6111 2011-05-08  Bruno Haible  <bruno@clisp.org>
6112
6113         getline: Simplify.
6114         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6115         It's already handled through the module dependency.
6116
6117 2011-05-08  Bruno Haible  <bruno@clisp.org>
6118
6119         getdelim: Move AC_LIBOBJ invocations to module description.
6120         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6121         and gl_PREREQ_GETDELIM invocations from here...
6122         * modules/getdelim (configure.ac): ... to here.
6123         (Depends-on): Fix condition.
6124
6125 2011-05-08  Bruno Haible  <bruno@clisp.org>
6126
6127         getcwd: Move AC_LIBOBJ invocations to module description.
6128         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6129         invocations from here...
6130         * modules/getcwd (configure.ac): ... to here.
6131
6132 2011-05-08  Bruno Haible  <bruno@clisp.org>
6133
6134         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6135         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6136         here...
6137         * modules/getcwd-lgpl (configure.ac): ... to here.
6138
6139 2011-05-07  Bruno Haible  <bruno@clisp.org>
6140
6141         crypto/gc: Move AC_LIBOBJ invocations to module description.
6142         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6143         * modules/crypto/gc (configure.ac): ... to here.
6144
6145 2011-05-07  Bruno Haible  <bruno@clisp.org>
6146
6147         fwriting: Move AC_LIBOBJ invocations to module description.
6148         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6149         here...
6150         * modules/fwriting (configure.ac): ... to here.
6151
6152 2011-05-07  Bruno Haible  <bruno@clisp.org>
6153
6154         fwritable: Move AC_LIBOBJ invocations to module description.
6155         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6156         here...
6157         * modules/fwritable (configure.ac): ... to here.
6158
6159 2011-05-07  Bruno Haible  <bruno@clisp.org>
6160
6161         futimens: Move AC_LIBOBJ invocations to module description.
6162         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6163         here...
6164         * modules/futimens (configure.ac): ... to here.
6165
6166 2011-05-07  Bruno Haible  <bruno@clisp.org>
6167
6168         ftruncate: Move AC_LIBOBJ invocations to module description.
6169         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6170         gl_PREREQ_FTRUNCATE invocations from here...
6171         * modules/ftruncate (configure.ac): ... to here.
6172
6173 2011-05-07  Bruno Haible  <bruno@clisp.org>
6174
6175         fsync: Move AC_LIBOBJ invocations to module description.
6176         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6177         invocations from here...
6178         * modules/fsync (configure.ac): ... to here.
6179
6180 2011-05-07  Bruno Haible  <bruno@clisp.org>
6181
6182         fsusage: Move AC_LIBOBJ invocations to module description.
6183         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6184         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6185         * modules/fsusage (configure.ac): ... to here.
6186
6187 2011-05-07  Bruno Haible  <bruno@clisp.org>
6188
6189         freopen: Move AC_LIBOBJ invocations to module description.
6190         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6191         invocations from here...
6192         * modules/freopen (configure.ac): ... to here.
6193
6194 2011-05-07  Bruno Haible  <bruno@clisp.org>
6195
6196         free: Move AC_LIBOBJ invocations to module description.
6197         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6198         invocations from here...
6199         * modules/free (configure.ac): ... to here.
6200
6201 2011-05-07  Bruno Haible  <bruno@clisp.org>
6202
6203         freadable: Move AC_LIBOBJ invocations to module description.
6204         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6205         here...
6206         * modules/freadable (configure.ac): ... to here.
6207
6208 2011-05-07  Bruno Haible  <bruno@clisp.org>
6209
6210         fpurge: Move AC_LIBOBJ invocations to module description.
6211         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6212         invocations from here...
6213         * modules/fpurge (configure.ac): ... to here.
6214
6215 2011-05-07  Bruno Haible  <bruno@clisp.org>
6216
6217         fpending: Move AC_LIBOBJ invocations to module description.
6218         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6219         gl_FUNC_FPENDING.
6220         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6221         invocations from here...
6222         * modules/fpending (configure.ac): ... to here.
6223
6224 2011-05-07  Bruno Haible  <bruno@clisp.org>
6225
6226         fopen: Move AC_LIBOBJ invocations to module description.
6227         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6228         invocations from here...
6229         * modules/fopen (configure.ac): ... to here.
6230
6231 2011-05-07  Bruno Haible  <bruno@clisp.org>
6232
6233         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6234         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6235         gl_FUNC_FNMATCH_POSIX.
6236         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6237         invocations from here...
6238         * modules/fnmatch (configure.ac): ... to here.
6239         * modules/fnmatch-gnu (configure.ac): ... and here.
6240
6241 2011-05-07  Bruno Haible  <bruno@clisp.org>
6242
6243         flock: Move AC_LIBOBJ invocations to module description.
6244         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6245         invocations from here...
6246         * modules/flock (configure.ac): ... to here.
6247
6248 2011-05-07  Bruno Haible  <bruno@clisp.org>
6249
6250         fileblocks: Move AC_LIBOBJ invocations to module description.
6251         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6252         gl_PREREQ_FILEBLOCKS invocations from here...
6253         * modules/fileblocks (configure.ac): ... to here.
6254
6255 2011-05-06  Bruno Haible  <bruno@clisp.org>
6256
6257         fflush: Move AC_LIBOBJ invocations to module description.
6258         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6259         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6260         invocations from here...
6261         * modules/fflush (configure.ac): ... to here.
6262
6263 2011-05-06  Bruno Haible  <bruno@clisp.org>
6264
6265         fdopendir: Move AC_LIBOBJ invocations to module description.
6266         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6267         here...
6268         * modules/fdopendir (configure.ac): ... to here.
6269         (Depends-on): Improve conditions.
6270
6271 2011-05-06  Bruno Haible  <bruno@clisp.org>
6272
6273         _Exit: Move AC_LIBOBJ invocations to module description.
6274         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6275         invocations from here...
6276         * modules/_Exit (configure.ac): ... to here.
6277
6278 2011-05-21  Bruno Haible  <bruno@clisp.org>
6279
6280         euidaccess: Respect rules for use of AC_LIBOBJ.
6281         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6282         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6283         from here...
6284         * modules/euidaccess (configure.ac): ... to here.
6285
6286 2011-05-06  Bruno Haible  <bruno@clisp.org>
6287
6288         error: Move AC_LIBOBJ invocations to module description.
6289         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6290         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6291         invocations from here...
6292         * modules/error (configure.ac): ... to here.
6293
6294 2011-05-06  Bruno Haible  <bruno@clisp.org>
6295
6296         duplocale: Move AC_LIBOBJ invocations to module description.
6297         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6298         gl_PREREQ_DUPLOCALE invocations from here...
6299         * modules/duplocale (configure.ac): ... to here.
6300
6301 2011-05-05  Bruno Haible  <bruno@clisp.org>
6302
6303         dirfd: Move AC_LIBOBJ invocations to module description.
6304         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6305         gl_FUNC_DIRFD.
6306         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6307         here...
6308         * modules/dirfd (configure.ac): ... to here.
6309         (Depends-on): Fix condition.
6310
6311 2011-05-05  Bruno Haible  <bruno@clisp.org>
6312
6313         chown: Respect rules for use of AC_LIBOBJ.
6314         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6315         * modules/chown (configure.ac): ... to here.
6316
6317 2011-05-05  Bruno Haible  <bruno@clisp.org>
6318
6319         chdir-long: Move AC_LIBOBJ invocations to module description.
6320         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6321         gl_PREREQ_CHDIR_LONG invocations from here...
6322         * modules/chdir-long (configure.ac): ... to here.
6323
6324 2011-05-05  Bruno Haible  <bruno@clisp.org>
6325
6326         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6327         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6328         from here...
6329         * modules/canonicalize-lgpl (configure.ac): ... to here.
6330
6331 2011-05-05  Bruno Haible  <bruno@clisp.org>
6332
6333         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6334         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6335         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6336         REPLACE_CALLOC.
6337         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6338         * modules/calloc-gnu (configure.ac): Likewise.
6339
6340 2011-05-05  Bruno Haible  <bruno@clisp.org>
6341
6342         btowc: Move AC_LIBOBJ invocations to module description.
6343         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6344         invocations from here...
6345         * modules/btowc (configure.ac): ... to here.
6346
6347 2011-05-21  Bruno Haible  <bruno@clisp.org>
6348
6349         atexit: Move AC_LIBOBJ invocations to module description.
6350         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6351         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6352         here...
6353         * modules/atexit (configure.ac): ... to here.
6354
6355 2011-05-05  Bruno Haible  <bruno@clisp.org>
6356
6357         atoll: Move AC_LIBOBJ invocations to module description.
6358         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6359         invocations from here...
6360         * modules/atoll (configure.ac): ... to here.
6361
6362 2011-05-05  Bruno Haible  <bruno@clisp.org>
6363
6364         argz: Move AC_LIBOBJ invocations to module description.
6365         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6366         * modules/argz (configure.ac): ... to here.
6367
6368 2011-05-05  Bruno Haible  <bruno@clisp.org>
6369
6370         alphasort: Move AC_LIBOBJ invocations to module description.
6371         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6372         gl_PREREQ_ALPHASORT invocations from here...
6373         * modules/alphasort (configure.ac): ... to here.
6374
6375 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6376
6377         verify: new macro verify_expr; verify_true deprecated
6378         * NEWS: Mention this.
6379         * doc/verify.texi (Compile-time Assertions): Document this.
6380         * lib/verify.h (verify_true): Deprecate.
6381         (verify_expr): New macro.
6382         * tests/test-verify.c (function): Test verify_expr.
6383
6384 2011-06-14  Jim Meyering  <meyering@redhat.com>
6385
6386         init.sh: give more portable redirection-related advice in a comment
6387         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6388         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6389         for lots of discussion.  Stefano Lattarini suggested the solution
6390         of putting "9>&2" after the command.  Reported by Bruno Haible.
6391
6392 2011-06-13  Bruno Haible  <bruno@clisp.org>
6393
6394         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6395         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6396         'none'.
6397
6398 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6399
6400         ftoastr: use strtof only if HAVE_STRTOF
6401         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6403         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6404         * modules/ftoastr (configure.ac): Check for strtof.
6405
6406 2011-06-13  Bruno Haible  <bruno@clisp.org>
6407
6408         gnulib-tool: Addendum to 2011-06-08 commit.
6409         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6410         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6411
6412 2011-06-13  Bruno Haible  <bruno@clisp.org>
6413
6414         fseeko: Provide a non-inline replacement of fseek().
6415         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6416         * modules/fseeko (Depends-on): Add fseek.
6417         * modules/fseek (License): Change to LGPLv2+.
6418
6419 2011-06-13  Bruno Haible  <bruno@clisp.org>
6420
6421         ftello: Provide a non-inline replacement of ftell().
6422         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6423         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6424         not have ftello() (such as on mingw).
6425         * modules/ftello (Depends-on): Add ftell.
6426         * modules/ftell (License): Change to LGPLv2+.
6427
6428 2011-05-07  Bruno Haible  <bruno@clisp.org>
6429
6430         ftell: Move AC_LIBOBJ invocations to module description.
6431         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6432         * modules/ftell (configure.ac): ... to here.
6433
6434 2011-05-07  Bruno Haible  <bruno@clisp.org>
6435
6436         ftello: Respect rules for use of AC_LIBOBJ.
6437         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6438         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6439         here...
6440         * modules/ftello (configure.ac): ... to here.
6441
6442 2011-05-07  Bruno Haible  <bruno@clisp.org>
6443
6444         fseeko: Simplify.
6445         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6446         (gl_FUNC_FSEEKO): Inline it here.
6447
6448 2011-05-07  Bruno Haible  <bruno@clisp.org>
6449
6450         fseek: Move AC_LIBOBJ invocations to module description.
6451         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6452         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6453         * modules/fseek (configure.ac): ... to here.
6454
6455 2011-05-07  Bruno Haible  <bruno@clisp.org>
6456
6457         fseek: Respect rules for use of AC_LIBOBJ.
6458         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6459         here...
6460         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6461
6462 2011-05-07  Bruno Haible  <bruno@clisp.org>
6463
6464         fseeko: Respect rules for use of AC_LIBOBJ.
6465         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6466         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6467         here...
6468         * modules/fseeko (configure.ac): ... to here.
6469
6470 2011-06-13  Bruno Haible  <bruno@clisp.org>
6471
6472         gnulib-tool: Allow comments in the 'Depends-on' section.
6473         * doc/gnulib.texi (Module description): Mention comment syntax in the
6474         Depends-on section.
6475         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6476
6477 2011-06-13  Bruno Haible  <bruno@clisp.org>
6478
6479         file-set.h: guard __attibute__ use, now that it's not always defined
6480         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6481         versions that support it.  This fixes a coreutils build failure with
6482         the vendor cc on HP-UX 11.31.
6483
6484 2011-06-12  Bruno Haible  <bruno@clisp.org>
6485
6486         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6487         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6488         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6489         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6490         (acl, aclsort): New declarations.
6491         (aclv_nontrivial): New declaration.
6492         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6493         (file_has_acl): Read also the second kind of HP-UX ACLs.
6494         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6495         kind of HP-UX ACLs if the first kind fails.
6496         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6497         second kind of HP-UX ACLs.
6498         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6499         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6500         agree.
6501         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6502         hpuxjfs.
6503         Handle hpuxjfs.
6504         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6505         hpuxjfs.
6506         Handle hpuxjfs.
6507         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6508         (func_test_same_acls): Use both lsacl and getacl.
6509         Handle hpuxjfs.
6510         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6511         (func_test_same_acls): Use both lsacl and getacl.
6512         Handle hpuxjfs.
6513
6514 2011-06-12  Bruno Haible  <bruno@clisp.org>
6515
6516         acl: Complete the 2010-08-10 fix.
6517         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6518         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6519         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6520         explicitly.
6521         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6522         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6523
6524 2011-06-12  Bruno Haible  <bruno@clisp.org>
6525
6526         spawn-pipe tests: Comments.
6527         * tests/test-spawn-pipe-child.c (main): Update comment.
6528         Reported by James Youngman <jay@gnu.org>.
6529
6530 2011-06-11  James Youngman  <jay@gnu.org>
6531
6532         New module 'stat-size'.
6533         * modules/stat-size: New module.  Provides macros for accessing
6534         file size information in instances of struct stat.  Depends on the
6535         fileblocks module because it calls st_blocks.
6536         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6537         * doc/gnulib.texi: Include stat-size.texi.
6538         * doc/stat-size.texi: Documentation for this module.
6539         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6540         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6541         AC_STRUCT_ST_BLOCKS.
6542
6543 2011-06-09  Bruno Haible  <bruno@clisp.org>
6544
6545         thread: Support pthreads-win32.
6546         * lib/glthread/thread.h (gl_thread_self): Define differently on
6547         pthreads-win32.
6548         (gl_null_thread): New declaration.
6549         (gl_thread_self_pointer): New macro.
6550         * lib/glthread/thread.c (gl_null_thread): New constant.
6551         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6552         gl_thread_self.
6553         * tests/test-tls.c: Likewise.
6554         Suggested by Paul Eggert. Reported by Eric Blake.
6555
6556 2011-06-09  Bruno Haible  <bruno@clisp.org>
6557
6558         thread: Fix confusion between NULL and 0.
6559         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6560         Reported by Paul Eggert.
6561
6562 2011-06-09  Bruno Haible  <bruno@clisp.org>
6563
6564         spawn-pipe tests: Avoid test failure on HP-UX 11.
6565         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6566         is closed.
6567
6568 2011-06-09  Bruno Haible  <bruno@clisp.org>
6569
6570         acl tests: Fix compilation error on HP-UX 11.
6571         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6572
6573 2011-06-09  Bruno Haible  <bruno@clisp.org>
6574
6575         rmdir: Avoid test failure on HP-UX 10.20.
6576         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6577         EEXIST.
6578
6579 2011-06-08  Eric Blake  <eblake@redhat.com>
6580
6581         perror: fix test on mingw
6582         * modules/perror-tests (Depends-on): Add dup2.
6583
6584         strerror_r-posix: fix on MacOS
6585         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6586         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6587         logic bug.
6588         * lib/strerror_r.c (strerror_r): Fix the bug.
6589         * lib/strerror.c (strerror): Likewise.
6590         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6591         problem.
6592         * doc/posix-functions/strerror.texi (strerror): Likewise.
6593         * doc/posix-functions/perror.texi (perror): Likewise.
6594         * tests/test-strerror.c (main): Enhance test.
6595         * tests/test-strerror_r.c (main): Likewise.
6596
6597 2011-06-08  Bruno Haible  <bruno@clisp.org>
6598
6599         gnulib-tool: Better isolation between different gnulib-tool invocations.
6600         * gnulib-tool: New option --witness-c-macro.
6601         (witness_c_macro): New variable.
6602         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6603         AM_CPPFLAGS define it as a C macro.
6604         (func_emit_tests_Makefile_am): Likewise.
6605         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6606         read it from there.
6607         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6608         m4_define, not AC_DEFUN.
6609         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6610         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6611         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6612         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6613         s|...|...|, to substitute the values of the GNULIB_* module indicator
6614         variables.
6615         * modules/dirent (Makefile.am): Likewise.
6616         * modules/fcntl-h (Makefile.am): Likewise.
6617         * modules/iconv-h (Makefile.am): Likewise.
6618         * modules/langinfo (Makefile.am): Likewise.
6619         * modules/locale (Makefile.am): Likewise.
6620         * modules/math (Makefile.am): Likewise.
6621         * modules/netdb (Makefile.am): Likewise.
6622         * modules/poll-h (Makefile.am): Likewise.
6623         * modules/pty (Makefile.am): Likewise.
6624         * modules/search (Makefile.am): Likewise.
6625         * modules/signal (Makefile.am): Likewise.
6626         * modules/spawn (Makefile.am): Likewise.
6627         * modules/stdio (Makefile.am): Likewise.
6628         * modules/stdlib (Makefile.am): Likewise.
6629         * modules/string (Makefile.am): Likewise.
6630         * modules/sys_ioctl (Makefile.am): Likewise.
6631         * modules/sys_select (Makefile.am): Likewise.
6632         * modules/sys_socket (Makefile.am): Likewise.
6633         * modules/sys_stat (Makefile.am): Likewise.
6634         * modules/sys_times (Makefile.am): Likewise.
6635         * modules/sys_utsname (Makefile.am): Likewise.
6636         * modules/sys_wait (Makefile.am): Likewise.
6637         * modules/termios (Makefile.am): Likewise.
6638         * modules/time (Makefile.am): Likewise.
6639         * modules/unistd (Makefile.am): Likewise.
6640         * modules/wchar (Makefile.am): Likewise.
6641
6642 2011-06-08  Eric Blake  <eblake@redhat.com>
6643
6644         strerror: simplify replacement
6645         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6646         * modules/strerror (configure.ac): No prereqs needed here...
6647         * modules/strerror-override (configure.ac): ...but this needs it.
6648         (Files): Add file for needed prereq macro.
6649
6650 2011-06-08  Bruno Haible  <bruno@clisp.org>
6651
6652         strerror_r-posix: Tweaks.
6653         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6654         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6655         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6656         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6657         (gl_FUNC_STRERROR_R): ... to here.
6658         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6659
6660 2011-06-07  Eric Blake  <eblake@redhat.com>
6661
6662         perror: document fixed bugs
6663         * doc/posix-functions/perror.texi (perror): Document recent
6664         patches.
6665
6666 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6667
6668         stat-time: get_stat_birthtime failure is better-defined
6669         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6670         return a timestamp whose tv_sec and tv_nsec values are both -1.
6671         Previously, the spec said only that the tv_nsec value was negative.
6672         This upward-compatible change simplifies GNU tar a bit.
6673
6674 2011-06-07  Eric Blake  <eblake@redhat.com>
6675
6676         strerror_r-posix: work around cygwin 1.7.9
6677         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6678         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6679         bug without replacing strerror_r.
6680         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6681         strerror_r is buggy, but without requiring strerror_r compilation.
6682         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6683
6684         test-perror: relax test to ignore cygwin bug
6685         * tests/test-perror2.c (main): Relax test on requiring detection
6686         of stream errors, and use unbuffered stream.
6687         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6688         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6689         * doc/posix-functions/fputc.texi (fputc): Likewise.
6690         * doc/posix-functions/fputs.texi (fputs): Likewise.
6691         * doc/posix-functions/fputws.texi (fputws): Likewise.
6692         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6693         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6694         * doc/posix-functions/getopt.texi (getopt): Likewise.
6695         * doc/posix-functions/perror.texi (perror): Likewise.
6696         * doc/posix-functions/printf.texi (printf): Likewise.
6697         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6698         * doc/posix-functions/psignal.texi (psignal): Likewise.
6699         * doc/posix-functions/putc.texi (putc): Likewise.
6700         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6701         Likewise.
6702         * doc/posix-functions/putchar.texi (putchar): Likewise.
6703         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6704         Likewise.
6705         * doc/posix-functions/puts.texi (puts): Likewise.
6706         * doc/posix-functions/putwc.texi (putwc): Likewise.
6707         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6708         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6709         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6710         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6711         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6712         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6713         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6714         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6715
6716 2011-05-22  Bruno Haible  <bruno@clisp.org>
6717
6718         strerror: Move AC_LIBOBJ invocations to module description.
6719         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6720         gl_PREREQ_STRERROR invocations from here...
6721         * modules/strerror (configure.ac): ... to here.
6722
6723 2011-05-21  Bruno Haible  <bruno@clisp.org>
6724
6725         perror: Use common idiom.
6726         * modules/perror (configure.ac): Reorder statements.
6727
6728 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6729
6730         tests: fix usage message in 'mktempd_'
6731         * tests/init.sh (mktempd_): In the usage message, use literal
6732         'mktempd_', not '$ME' (which is even undefined), as the name of
6733         the subroutine.
6734
6735 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6736
6737         tests init: new function 'fatal_', for hard errors
6738         Before this patch, the only way offered by tests/init.sh to
6739         properly signal a hard error was the `framework_failure_'
6740         function.  But the error message issued by that function,
6741         as its name would suggest, refers to a set-up failure in the
6742         testsuite, while hard errors can obviously also be due to
6743         other reasons.  The best way to fix this inconsistency is to
6744         introduce a new function with a more general error message.
6745         * tests/init.sh (fatal_): New function.
6746
6747 2011-06-06  Eric Blake  <eblake@redhat.com>
6748
6749         canonicalize-lgpl: use common idiom
6750         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6751         over newer POSIX -Rf.
6752         Reported by Bruno Haible.
6753
6754         canonicalize-lgpl: work around AIX realpath bug
6755         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6756         * doc/posix-functions/realpath.texi (realpath): Document it.
6757         Reported by Bruno Haible.
6758
6759         strerror: work around FreeBSD bug
6760         * lib/strerror.c (strerror): Special case 0.
6761         Reported by Bruno Haible.
6762
6763         strerror-override: avoid bloating errno module
6764         * modules/errno (Files, configure.ac): Move replacement strings...
6765         * modules/strerror-override: ...to new module.
6766         * modules/strerror (Depends-on): Add strerror-override.
6767         * modules/strerror_r-posix (Depends-on): Likewise.
6768         * MODULES.html.sh: Document new module.
6769         Reported by Bruno Haible.
6770
6771 2011-06-06  Bruno Haible  <bruno@clisp.org>
6772
6773         spawn-pipe tests: Rename program.
6774         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6775         * tests/test-spawn-pipe-child.c: Update comment.
6776         * tests/test-spawn-pipe.sh: Update.
6777         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6778
6779         spawn-pipe tests: Link the child program only against libc.
6780         * tests/test-spawn-pipe-child.c: New file, extracted from
6781         tests/test-spawn-pipe.c.
6782         (main): Expect only one argument.
6783         (is_open): New function, copied from tests/test-pipe.c.
6784         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6785         (child_main): Remove function.
6786         (test_pipe): Pass only one argument to the child program.
6787         (main): Remove child process code. Expect the child program's name as
6788         first argument.
6789         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6790         argument.
6791         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6792         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6793         test-spawn-pipe-child against no libraries.
6794
6795 2011-06-06  Bruno Haible  <bruno@clisp.org>
6796
6797         careadlinkat: Avoid mismatch between ssize_t and int.
6798         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6799         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6800
6801 2011-06-06  Jim Meyering  <meyering@redhat.com>
6802
6803         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6804         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6805         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6806
6807 2011-06-05  Bruno Haible  <bruno@clisp.org>
6808
6809         ansi-c++-opt: Interoperability with libtool.
6810         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6811         set the variable to "no", not to ":".
6812         * NEWS: Mention the change.
6813
6814 2011-06-05  Bruno Haible  <bruno@clisp.org>
6815
6816         acl: Fix test failure on AIX 7.
6817         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6818         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6819
6820 2011-06-05  Bruno Haible  <bruno@clisp.org>
6821
6822         pipe-filter-ii: Fix test failure on AIX and IRIX.
6823         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6824         with EAGAIN, retry with a smaller buffer size.
6825
6826 2011-06-05  Bruno Haible  <bruno@clisp.org>
6827
6828         localename: Fix link dependencies.
6829         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6830         * modules/localename-tests (Makefile.am): Link test-localename with
6831         $(LIBTHREAD).
6832
6833 2011-06-05  Bruno Haible  <bruno@clisp.org>
6834
6835         error: Avoid gcc warning.
6836         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6837
6838 2011-06-05  Bruno Haible  <bruno@clisp.org>
6839
6840         unsetenv: Avoid gcc warning.
6841         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6842
6843 2011-06-05  Bruno Haible  <bruno@clisp.org>
6844
6845         setenv: Avoid gcc warning.
6846         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6847
6848 2011-06-05  Bruno Haible  <bruno@clisp.org>
6849
6850         sys_select: Ensure memset is declared also on AIX 7.
6851         * lib/sys_select.in.h: Include <string.h> also on AIX.
6852         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6853         self-contained also on AIX 7.1.
6854
6855 2011-06-04  Jim Meyering  <meyering@redhat.com>
6856
6857         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6858         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6859         function name, "error".
6860         (_gl_translatable_diag_func_re): New configurable variable.
6861
6862 2011-06-04  Bruno Haible  <bruno@clisp.org>
6863
6864         getopt: Avoid gcc warning.
6865         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6866
6867 2011-06-04  Bruno Haible  <bruno@clisp.org>
6868
6869         strerror_r: Fix comments.
6870         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6871         commit.
6872
6873 2011-06-04  Bruno Haible  <bruno@clisp.org>
6874
6875         perror: Fix compilation error.
6876         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6877         Undefine fprintf, not sprintf.
6878         * modules/perror (Depends-on): Remove intprops, verify.
6879
6880 2011-06-04  Bruno Haible  <bruno@clisp.org>
6881
6882         setlocale: Enable replacement on Cygwin 1.5.
6883         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6884         Cygwin 1.5.x.
6885         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6886         LC_CTYPE category also exists on Cygwin 1.5.x.
6887
6888 2011-06-04  Bruno Haible  <bruno@clisp.org>
6889
6890         strerror-override: Don't disable symbol renamings.
6891         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6892         * lib/strerror-override.c: Include config.h.
6893         (strerror_override): Don't undefine.
6894
6895 2011-06-03  Bruno Haible  <bruno@clisp.org>
6896
6897         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6898         * lib/localename.h: Update copyright header.
6899         * lib/localename.c: Likewise.
6900         * lib/relocatable.h: Likewise.
6901         * lib/relocatable.c: Likewise.
6902
6903 2011-06-02  Bruno Haible  <bruno@clisp.org>
6904
6905         doc: Fix a module name.
6906         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6907
6908 2011-06-02  Bruno Haible  <bruno@clisp.org>
6909
6910         pipe2: Remove dependency on 'nonblocking' module.
6911         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6912         O_NONBLOCK is defined by gnulib.
6913         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6914         is zero.
6915         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6916         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6917         defined by gnulib.
6918         (get_nonblocking_flag): New function.
6919         (main): Test O_NONBLOCK flag only if it is nonzero.
6920         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6921
6922 2011-06-03  Jim Meyering  <meyering@redhat.com>
6923
6924         maint: three new prohibit-header-without-use rules
6925         Prohibit use of cloexec.h, posixver.h, same.h without use.
6926         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6927         (sc_prohibit_posixver_without_use): Likewise.
6928         (sc_prohibit_same_without_use): Likewise.
6929
6930 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6931
6932         allocator: 'die' routine is now given requested size
6933         * lib/allocator.h (struct allocator.die): New size arg.
6934         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6935         If the actual problem is an ssize_t limitation, not a size_t or
6936         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6937
6938 2011-06-01  Eric Blake  <eblake@redhat.com>
6939
6940         strerror: drop strerror_r dependency
6941         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6942         * lib/strerror-override.c (strerror_override): ...to new file.
6943         * lib/strerror-override.h: Add prototype.
6944         * lib/strerror-impl.h: Delete.
6945         * lib/strerror.c (strerror): New implementation.
6946         * modules/errno (Files): Add new files.
6947         (configure.ac): Compile new file as appropriate.
6948         * modules/strerror (Files): Drop unused file.
6949         (Depends-on): Drop strerror_r-posix.
6950         * MODULES.html.sh: Document strerror_r-posix.
6951         Requested by Sam Steingold.
6952
6953         perror: call strerror_r directly
6954         * modules/perror (Files): Drop strerror-impl.h.
6955         * lib/perror.c (perror): Use our own stack buffer, rather than
6956         calling a wrapper that uses static storage.
6957         * doc/posix-functions/perror.texi (perror): Document a limitation
6958         of our replacement.
6959
6960         strerror_r: fix includes for FreeBSD
6961         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6962         since we use abort on some platforms.
6963         Reported by Matthias Bolte.
6964
6965 2011-05-31  Bruno Haible  <bruno@clisp.org>
6966
6967         Fix link errors in tests: openat-die uses gettext-h.
6968         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6969         against $(LIBINTL).
6970         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6971         against $(LIBINTL).
6972         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6973         $(LIBINTL).
6974         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6975         against $(LIBINTL).
6976         * modules/linkat-tests (Makefile.am): Link test-linkat against
6977         $(LIBINTL).
6978         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6979         $(LIBINTL).
6980         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6981         against $(LIBINTL).
6982         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6983         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6984         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6985         $(LIBINTL).
6986         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6987         $(LIBINTL).
6988         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6989         $(LIBINTL).
6990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6991
6992 2011-05-31  Bruno Haible  <bruno@clisp.org>
6993
6994         Fix link errors in tests: wait-process uses gettext-h.
6995         * modules/nonblocking-pipe-tests (Makefile.am): Set
6996         test_nonblocking_pipe_main_LDADD.
6997         * modules/nonblocking-socket-tests (Makefile.am): Link
6998         test-nonblocking-socket-main against $(LIBINTL).
6999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7000
7001 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7002
7003         assert-h: work around 'verify' incompatibility
7004         * lib/verify.h: Use @...@ directives, not ifdef.
7005         * modules/assert-h (assert.h): Implement the directives.
7006         (assert.h): Substitute the symbol-prefix more consistently.
7007
7008 2011-05-29  Jim Meyering  <meyering@redhat.com>
7009
7010         trim: remove three superfluous assignments
7011         * lib/trim.c (trim2): Remove three superfluous assignments
7012         and correct brace positioning.
7013
7014 2011-05-29  Bruno Haible  <bruno@clisp.org>
7015
7016         wctype-h: Avoid namespace pollution on Solaris 2.6.
7017         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7018         identifiers.
7019         * doc/posix-headers/wctype.texi: Mention the problem.
7020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7021
7022 2011-05-28  Jim Meyering  <meyering@redhat.com>
7023
7024         parse-datetime.y: accommodate -Wstrict-overflow
7025         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7026         placate -Wstrict-overflow.
7027
7028         trim: avoid a warning from -O2 -Wstrict-overflow
7029         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7030
7031 2011-05-29  Bruno Haible  <bruno@clisp.org>
7032
7033         gnulib-tool: Fix bug in yesterday's commit.
7034         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7035         twice.
7036
7037 2011-05-29  Bruno Haible  <bruno@clisp.org>
7038
7039         Allow multiple gnulib generated include files to be combined.
7040         * gnulib-tool (func_compute_include_guard_prefix): New function.
7041         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7042         ${gl_include_guard_prefix} references.
7043         (func_import, func_create_testdir): Invoke
7044         func_compute_include_guard_prefix.
7045         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7046         * lib/ctype.in.h: Likewise.
7047         * lib/dirent.in.h: Likewise.
7048         * lib/errno.in.h: Likewise.
7049         * lib/fcntl.in.h: Likewise.
7050         * lib/float.in.h: Likewise.
7051         * lib/getopt.in.h: Likewise.
7052         * lib/iconv.in.h: Likewise.
7053         * lib/langinfo.in.h: Likewise.
7054         * lib/locale.in.h: Likewise.
7055         * lib/math.in.h: Likewise.
7056         * lib/netdb.in.h: Likewise.
7057         * lib/netinet_in.in.h: Likewise.
7058         * lib/poll.in.h: Likewise.
7059         * lib/pthread.in.h: Likewise.
7060         * lib/pty.in.h: Likewise.
7061         * lib/sched.in.h: Likewise.
7062         * lib/se-selinux.in.h: Likewise.
7063         * lib/search.in.h: Likewise.
7064         * lib/signal.in.h: Likewise.
7065         * lib/spawn.in.h: Likewise.
7066         * lib/stdarg.in.h: Likewise.
7067         * lib/stddef.in.h: Likewise.
7068         * lib/stdint.in.h: Likewise.
7069         * lib/stdio.in.h: Likewise.
7070         * lib/stdlib.in.h: Likewise.
7071         * lib/string.in.h: Likewise.
7072         * lib/strings.in.h: Likewise.
7073         * lib/sys_file.in.h: Likewise.
7074         * lib/sys_ioctl.in.h: Likewise.
7075         * lib/sys_select.in.h: Likewise.
7076         * lib/sys_socket.in.h: Likewise.
7077         * lib/sys_stat.in.h: Likewise.
7078         * lib/sys_time.in.h: Likewise.
7079         * lib/sys_times.in.h: Likewise.
7080         * lib/sys_uio.in.h: Likewise.
7081         * lib/sys_utsname.in.h: Likewise.
7082         * lib/sys_wait.in.h: Likewise.
7083         * lib/sysexits.in.h: Likewise.
7084         * lib/termios.in.h: Likewise.
7085         * lib/time.in.h: Likewise.
7086         * lib/unistd.in.h: Likewise.
7087         * lib/wchar.in.h: Likewise.
7088         * lib/wctype.in.h: Likewise.
7089         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7090         * modules/ctype (Makefile.am): Likewise.
7091         * modules/dirent (Makefile.am): Likewise.
7092         * modules/errno (Makefile.am): Likewise.
7093         * modules/fcntl-h (Makefile.am): Likewise.
7094         * modules/float (Makefile.am): Likewise.
7095         * modules/getopt-posix (Makefile.am): Likewise.
7096         * modules/iconv-h (Makefile.am): Likewise.
7097         * modules/langinfo (Makefile.am): Likewise.
7098         * modules/locale (Makefile.am): Likewise.
7099         * modules/math (Makefile.am): Likewise.
7100         * modules/netdb (Makefile.am): Likewise.
7101         * modules/netinet_in (Makefile.am): Likewise.
7102         * modules/poll-h (Makefile.am): Likewise.
7103         * modules/pthread (Makefile.am): Likewise.
7104         * modules/pty (Makefile.am): Likewise.
7105         * modules/sched (Makefile.am): Likewise.
7106         * modules/search (Makefile.am): Likewise.
7107         * modules/selinux-h (Makefile.am): Likewise.
7108         * modules/signal (Makefile.am): Likewise.
7109         * modules/spawn (Makefile.am): Likewise.
7110         * modules/stdarg (Makefile.am): Likewise.
7111         * modules/stddef (Makefile.am): Likewise.
7112         * modules/stdint (Makefile.am): Likewise.
7113         * modules/stdio (Makefile.am): Likewise.
7114         * modules/stdlib (Makefile.am): Likewise.
7115         * modules/string (Makefile.am): Likewise.
7116         * modules/strings (Makefile.am): Likewise.
7117         * modules/sys_file (Makefile.am): Likewise.
7118         * modules/sys_ioctl (Makefile.am): Likewise.
7119         * modules/sys_select (Makefile.am): Likewise.
7120         * modules/sys_socket (Makefile.am): Likewise.
7121         * modules/sys_stat (Makefile.am): Likewise.
7122         * modules/sys_time (Makefile.am): Likewise.
7123         * modules/sys_times (Makefile.am): Likewise.
7124         * modules/sys_uio (Makefile.am): Likewise.
7125         * modules/sys_utsname (Makefile.am): Likewise.
7126         * modules/sys_wait (Makefile.am): Likewise.
7127         * modules/sysexits (Makefile.am): Likewise.
7128         * modules/termios (Makefile.am): Likewise.
7129         * modules/time (Makefile.am): Likewise.
7130         * modules/unistd (Makefile.am): Likewise.
7131         * modules/wchar (Makefile.am): Likewise.
7132         * modules/wctype-h (Makefile.am): Likewise.
7133         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7134
7135 2011-05-29  Bruno Haible  <bruno@clisp.org>
7136
7137         assert-h: Allow multiple gnulib generated replacements to coexist.
7138         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7139
7140 2011-05-29  Bruno Haible  <bruno@clisp.org>
7141
7142         argp: Allow coexistence with strerror_r-posix module.
7143         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7144         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7145         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7146         not the glibc signature.
7147
7148 2011-05-28  Bruno Haible  <bruno@clisp.org>
7149
7150         gnulib-tool: Alternative structure of testdirs, similar to --import.
7151         * gnulib-tool: New option --single-configure.
7152         (func_usage): Document it.
7153         (single_configure): New variable.
7154         (func_modules_transitive_closure_separately,
7155         func_modules_transitive_closure_separately,
7156         func_determine_use_libtests, func_modules_add_dummy_separately,
7157         func_modules_to_filelist_separately): New functions, extracted from
7158         func_import.
7159         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7160         (func_import): Use the new functions.
7161         (func_create_testdir): Set final_modules. Handle $single_configure =
7162         true case.
7163
7164 2011-05-28  Bruno Haible  <bruno@clisp.org>
7165
7166         getloadavg: Remove an unreliable safety check.
7167         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7168         getloadavg.c is in place.
7169         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7170         Reported by Sam Steingold <sds@gnu.org>.
7171
7172 2011-05-28  Bruno Haible  <bruno@clisp.org>
7173
7174         doc: Cleanup yet another file produced by texinfo.tex.
7175         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7176
7177 2011-05-28  Bruno Haible  <bruno@clisp.org>
7178
7179         Finish the conditional dependencies mechanism.
7180         * gnulib-tool: New option --no-conditional-dependencies.
7181         (func_usage): Document it. Don't mark --conditional-dependencies as
7182         experimental.
7183         (cond_dependencies): The possible values can now be true, false, empty.
7184         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7185         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7186         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7187
7188 2011-05-28  Bruno Haible  <bruno@clisp.org>
7189
7190         doc: Use a recent texinfo.tex.
7191         * doc/Makefile (tex_opts): New variable.
7192         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7193
7194 2011-05-28  Jim Meyering  <meyering@redhat.com>
7195
7196         intprops.h: adjust comment to match code change
7197         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7198         only once, it *may* have side effects.  Also fix an unrelated typo.
7199         (_GL_INT_SIGNED): Likewise.
7200
7201 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7202
7203         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7204
7205 2011-05-26  Bruno Haible  <bruno@clisp.org>
7206
7207         mbsrchr: Avoid collision with system function on Interix.
7208         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7209         Reported by Markus Duft <mduft@gentoo.org>.
7210
7211 2011-05-15  James Youngman  <jay@gnu.org>
7212
7213         getopt: for ambiguous options, enumerate the possibilities.
7214         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7215         the ambiguous options when an ambiguous prefix is given. This was
7216         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7217         glibc change was
7218         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7219
7220 2011-05-25  Eric Blake  <eblake@redhat.com>
7221
7222         getcwd: work around mingw bug
7223         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7224         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7225         Reported by Matthias Bolte.
7226
7227 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7228
7229         test-intprops: disable -Wtype-limits diagnostics
7230         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7231         diagnostics.  Otherwise, the integer overflow macros generate many
7232         diagnostics.  Reported by Jim Meyering in
7233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7234
7235         intprops: shorten, to pacify gcc -Woverlength-strings
7236         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7237         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7238         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7239         likely to run afoul of C compiler limits for string constant lengths.
7240         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7241
7242 2011-05-24  Eric Blake  <eblake@redhat.com>
7243
7244         docs: document recently fixed glibc printf bug
7245         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7246         * doc/posix-functions/printf.texi (printf): Likewise.
7247         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7248         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7249
7250         closein-tests: convert to init.sh
7251         * modules/closein-tests (Files): Add init.sh
7252         * tests/test-closein.sh Use it.
7253
7254         yesno-tests: convert to init.sh
7255         * modules/yesno-tests (Files): Add init.sh.
7256         * tests/test-yesno.sh: Use it.
7257
7258         atexit-tests: ensure reliable exit status
7259         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7260         Reported by Bruno Haible.
7261
7262 2011-05-24  Bruno Haible  <bruno@clisp.org>
7263
7264         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7266         gl_PREREQ_STRERROR_R invocations from here...
7267         * modules/strerror_r-posix (configure.ac): ... to here.
7268
7269 2011-05-24  Eric Blake  <eblake@redhat.com>
7270
7271         strerror_r: fix missing header
7272         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7273
7274         strerror_r: fix AIX test failures
7275         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7276         ERANGE failure.
7277
7278         strerror_r: fix Solaris test failures
7279         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7280         failures.
7281         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7282
7283         strerror_r: enforce POSIX recommendations
7284         * lib/strerror_r.c (safe_copy): New helper method.
7285         (strerror_r): Guarantee a non-empty string.
7286         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7287         recent POSIX rulings and to match our strerror guarantees.
7288         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7289
7290 2011-05-24  Jim Meyering  <meyering@redhat.com>
7291
7292         test-perror2.c: avoid warning about unused variable
7293         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7294
7295 2011-05-24  Eric Blake  <eblake@redhat.com>
7296
7297         perror: avoid spurious test failure on HP-UX
7298         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7299
7300         tests: fix logic bug in init.sh
7301         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7302         shell.
7303
7304 2011-05-24  Jim Meyering  <meyering@redhat.com>
7305
7306         utimensat: do not reference an out-of-scope buffer
7307         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7308         declared in an inner scope, yet "times" would be dereferenced outside
7309         the scope in which "ts" was valid.
7310         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7311         of ts[2] "out/up", so that the use of aliased "times" (via
7312         "times = ts;") does not end up referencing an out-of-scope "ts"
7313
7314         opendir-safer.c: don't clobber errno; don't close negative FD
7315         * lib/opendir-safer.c (opendir_safer):
7316         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7317         file descriptor, and more importantly, don't clobber the
7318         offending errno value with EINVAL.  Before, upon failure
7319         of dup_safer, we would pass the negative file descriptor to
7320         fdopendir, which would clobber errno.
7321
7322 2011-05-23  Bruno Haible  <bruno@clisp.org>
7323
7324         idcache: Fix module description.
7325         * modules/idcache (Include): Set to "idcache.h".
7326
7327 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7328
7329         gnulib-tool: fix portability problem with MacOS sed
7330         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7331         before the "}".  Problem reported by Leo in
7332         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7333         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7334         sed_extract_condition1, sed_extract_condition2.
7335
7336 2011-05-23  Bruno Haible  <bruno@clisp.org>
7337
7338         hash: Simplify autoconf macro.
7339         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7340
7341 2011-05-23  Bruno Haible  <bruno@clisp.org>
7342
7343         getugroups: Fix module description.
7344         * modules/getugroups (Include): Set to "getugroups.h".
7345
7346 2011-05-23  Bruno Haible  <bruno@clisp.org>
7347
7348         linkat: Simplify autoconf macro.
7349         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7350
7351 2011-05-23  Bruno Haible  <bruno@clisp.org>
7352             Eric Blake  <eblake@redhat.com>
7353
7354         linkat, renameat: Update dependencies.
7355         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7356         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7357         symlinkat.
7358
7359 2011-05-23  Jim Meyering  <meyering@redhat.com>
7360
7361         maint.mk: more tight_scope improvements
7362         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7363         (_gl_TS_headers): Define only in if-0'd block.
7364         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7365         sometimes we must *not* use it.  Adjust uses accordingly.
7366         (sc_tight_scope): Use much simpler grep-based test to determine
7367         whether we skip this rule.
7368
7369         maint.mk: generalize/improve the tight-scope rule
7370         * top/maint.mk: Emit a warning when the test is skipped.
7371         (_gl_TS_dir): Add $(srcdir)/ prefix.
7372         (_gl_TS_function_match): Simplify, rather than trying
7373         to enumerate common types.  Otherwise, it would fail to match an
7374         "extern unsigned char const *" declaration in idutils.
7375         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7376         a way to support use of that type of macro.
7377         (_gl_TS_var_match): Simplify regexp.
7378         (_gl_TS_obj_files): New configurable variable.
7379         (_gl_TS_headers): Likewise.
7380
7381 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7382
7383         verify: fix bug when gnulib <assert.h> is also included
7384         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7385         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7386         Perhaps there's a better way, but this fixes the immediate problem.
7387         Problem reported by Bruno Haible in
7388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7389
7390 2011-05-22  Bruno Haible  <bruno@clisp.org>
7391
7392         xgetcwd: Simplify autoconf macro.
7393         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7394
7395 2011-05-22  Bruno Haible  <bruno@clisp.org>
7396
7397         New module 'mktime-internal'.
7398         * modules/mktime-internal: New file.
7399         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7400         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7401         mktime_internal as a C macro if libc has __mktime_internal.
7402         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7403         conditions.
7404         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7405
7406 2011-05-22  Bruno Haible  <bruno@clisp.org>
7407
7408         timegm: Correct mktime replacement statements.
7409         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7410         defining mktime as a C macro. This completes a 2009-07-28 commit.
7411
7412 2011-05-22  Bruno Haible  <bruno@clisp.org>
7413
7414         timegm: Simplify autoconf macro.
7415         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7416
7417 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         clock-time: change to LGPLv2+.
7420         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7421         BSD-like but we have no mark for that; this is good enough for now.
7422
7423 2011-05-21  Bruno Haible  <bruno@clisp.org>
7424
7425         strerror_r: Fix comments.
7426         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7427
7428 2011-05-21  Bruno Haible  <bruno@clisp.org>
7429
7430         relocatable-prog-wrapper: Fix possible link error.
7431         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7432         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7433         (gl_FUNC_SETENV): ... to here.
7434         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7435         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7436
7437 2011-05-21  Bruno Haible  <bruno@clisp.org>
7438
7439         relocatable-prog-wrapper: Assume strerror() exists.
7440         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7441         m4/strerror.m4.
7442         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7443         * lib/relocwrapper.c: Remove mention of strerror module.
7444         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7445         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7446         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7447         C macro.
7448
7449 2011-05-21  Bruno Haible  <bruno@clisp.org>
7450
7451         select: Simplify replacement idiom.
7452         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7453         Win32 platforms.
7454         * lib/sys_select.in.h (select): Simplify accordingly.
7455         * modules/select (Depends-on): Likewise.
7456
7457 2011-05-21  Bruno Haible  <bruno@clisp.org>
7458
7459         mkdir-p: Simplify autoconf macro.
7460         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7461         gl_FUNC_LCHOWN.
7462
7463 2011-05-21  Eric Blake  <eblake@redhat.com>
7464
7465         strerror_r: avoid clobbering strerror on cygwin
7466         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7467         fall back instead to sys_errlist.
7468         * modules/strerror (configure.ac): Add witness.
7469         * tests/test-strerror_r.c (main): Enhance test.
7470         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7471         * tests/test-perror2.c (main): Free memory before exit.
7472
7473 2011-05-21  Bruno Haible  <bruno@clisp.org>
7474
7475         mkdtemp: Use gnulib naming conventions.
7476         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7477         * modules/mkdtemp (configure.ac): Update.
7478
7479 2011-05-20  Eric Blake  <eblake@redhat.com>
7480
7481         strerror_r: avoid corrupting errno on Solaris
7482         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7483         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7484
7485         strerror_r: avoid compiler warning
7486         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7487
7488         strerror_r: simplify AIX code
7489         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7490
7491         test-perror: avoid spurious failure on FreeBSD
7492         * modules/perror-tests (Depends-on): Add strerror, now that
7493         strerror_r no longer pulls it in.
7494
7495 2011-05-20  Bruno Haible  <bruno@clisp.org>
7496
7497         strerror_r-posix: Remove unused dependencies.
7498         * modules/strerror_r-posix (Depends-on): Remove strerror.
7499         Reported by Eric Blake.
7500
7501 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7502
7503         intprops: remove assumption about A|B representation
7504         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7505         is a valid integer if both A and B are.  Although this is true for
7506         all known practical hosts, the C standard doesn't guarantee it,
7507         and the code need not assume it.  Also, this change may work around
7508         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7510
7511 2011-05-20  Eric Blake  <eblake@redhat.com>
7512
7513         perror: work around FreeBSD bug
7514         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7515         is broken.  Move AC_LIBOBJ...
7516         * modules/perror (configure.ac): Here.
7517         * doc/posix-functions/perror.texi (perror): Document this.
7518         * tests/test-perror2.c (main): Enhance test.
7519
7520         test-perror: check for strerror interactions
7521         * tests/macros.h (STREQ): Add macro.
7522         * modules/perror-tests (Files): Add second test.
7523         * tests/test-perror2.c (main): New file.
7524         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7525
7526         test-perror: rewrite to use init script
7527         * modules/perror-tests (Files): Add init.sh.
7528         * tests/test-perror.sh: Use temporary directory.
7529
7530 2011-05-20  Jim Meyering  <meyering@redhat.com>
7531
7532         maint: replace misused "a" with "an"
7533         * doc/intprops.texi: "a integer"
7534         * doc/regex.texi: "a explanation"
7535         * lib/alignof.h: "a object"
7536         * lib/argmatch.h: "a explanation"
7537         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7538         * lib/stdint.in.h: "a integer"
7539         * lib/userspec.c: "a owner"
7540         * doc/gnulib.texi: Fix "a idea", and reword.
7541
7542 2011-05-19  Jim Meyering  <meyering@redhat.com>
7543
7544         maint: correct misuse of "a" and "an"
7545         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7546         * lib/argp-help.c: "an docum...": s/an/a/
7547         * lib/argp-parse.c: "An vector": s/An/A/
7548         * lib/execute.c: "an native": s/an/a/
7549         * lib/spawn-pipe.c: Likewise.
7550         * lib/gc.h: "an Gc_rc": s/an/a/
7551         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7552         * lib/fts.c: "an stat.st_dev": s/an/a/
7553
7554 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7555
7556         intprops-tests: work around HP-UX 11.23 cc bug with constants
7557         * tests/test-intprops.c (VERIFY): New macro.
7558         (main): Use it, instead of verify, to work around the compiler bug; see
7559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7560
7561         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7562         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7563         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7564         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7565         (_GL_REMAINDER_OVERFLOW): Use it.
7566
7567         intprops-tests: revert unsigned part of previous change
7568         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7569         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7570         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7572
7573 2011-05-19  Bruno Haible  <bruno@clisp.org>
7574
7575         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7576         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7577         strerror_r() returned without filling the buffer.
7578         Reported by Eric Blake.
7579
7580 2011-05-19  Eric Blake  <eblake@redhat.com>
7581
7582         strerror_r: guarantee unchanged errno
7583         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7584         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7585         failure.
7586         * tests/test-strerror_r.c (main): Enhance test.
7587
7588 2011-05-19  Bruno Haible  <bruno@clisp.org>
7589
7590         strerror_r: Reorder #if blocks.
7591         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7592         for consistency with the previous commit.
7593
7594 2011-05-19  Bruno Haible  <bruno@clisp.org>
7595
7596         perror: Avoid clobbering the strerror buffer when possible.
7597         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7598         * lib/strerror.c: Include it.
7599         * modules/strerror (Files): Add lib/strerror-impl.h.
7600         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7601         (my_strerror): New function, defined through lib/strerror-impl.h.
7602         (perror): Use it instead of strerror.
7603         * modules/perror (Files): Add lib/strerror-impl.h.
7604         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7605
7606 2011-05-19  Eric Blake  <eblake@redhat.com>
7607
7608         strerror_r: fix on newer cygwin
7609         * lib/strerror_r.c (strerror_r): Cygwin now has
7610         __xpg_strerror_r, use it.
7611
7612 2011-05-19  Bruno Haible  <bruno@clisp.org>
7613
7614         strerror_r: Avoid clobbering the strerror buffer when possible.
7615         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7616         (sys_nerr, sys_errlist): New declarations.
7617         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7618         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7619         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7620
7621 2011-05-19  Bruno Haible  <bruno@clisp.org>
7622
7623         strerror_r: Fix test failure on mingw.
7624         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7625         EXTEND_STRERROR_R.
7626         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7627         macros from errno.in.h instead.
7628
7629 2011-05-19  Eric Blake  <eblake@redhat.com>
7630
7631         strerror: relax test for Solaris
7632         * tests/test-strerror.c (main): Permit Solaris behavior.
7633         * tests/test-strerror_r.c (main): Likewise.
7634
7635         strerror: enforce POSIX ruling on strerror(0)
7636         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7637         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7638         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7639         * doc/posix-functions/strerror.texi (strerror): Document it.
7640         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7641         * tests/test-strerror.c (main): Strengthen test.
7642         * tests/test-strerror_r.c (main): Likewise.
7643
7644 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7645
7646         intprop-tests: port to older and more-pedantic compilers
7647         * modules/intprops-tests (Files): Add tests/macros.h.
7648         * tests/test-intprops.c: Include macros.h.
7649         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7650         it's no longer documented to expand to an integer constant expression.
7651         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7652         argument is floating point, as it's no longer documented to expand
7653         to an integer constant expression in that case.
7654         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7655         compiler bugs reported by Bruno Haible.  See
7656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7657         (U0, U1): New constants, to work around the same bugs.  Also,
7658         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7659
7660         intprops: work around C compiler bugs
7661         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7662         bug in Sun C 5.11 2010/08/13 and other compilers; see
7663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7664
7665         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7666         * doc/intprops.texi (Integer Type Determination): Fix
7667         documentation for TYPE_IS_INTEGER: it returns an constant
7668         expression, not an integer constant expression.  Fix doc for
7669         TYPE_SIGNED: it returns an integer constant expression only if its
7670         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7671         hardly worth documented that way....)
7672
7673 2011-05-18  Bruno Haible  <bruno@clisp.org>
7674
7675         strerror_r: Avoid clobbering the strerror buffer when possible.
7676         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7677         Handle gnulib defined errno values here. When strerror() returns NULL
7678         or an empty string, return EINVAL.
7679         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7680         gnulib defined errno values here.
7681         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7682
7683 2011-05-18  Eric Blake  <eblake@redhat.com>
7684
7685         fnmatch: avoid compiler warning
7686         * lib/fnmatch_loop.c (FCT): Use correct type.
7687         Reported by Matthias Bolte.
7688
7689 2011-05-13  Jim Meyering  <meyering@redhat.com>
7690
7691         maint.mk: three new prohibit_<HDR>_without_use rules
7692         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7693         (sc_prohibit_stdio-safer_without_use): Likewise.
7694         (sc_prohibit_xfreopen_without_use): Likewise.
7695
7696 2011-05-17  Jim Meyering  <meyering@redhat.com>
7697
7698         announce-gen: fail if the NEWS delta is empty
7699         If there's nothing noteworthy in NEWS, then either you forgot
7700         or you shouldn't be releasing.
7701         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7702
7703 2011-05-17  Pádraig Brady <P@draigBrady.com>
7704
7705         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7706         reserved symbols starting with double underscore from the check.
7707
7708 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7709
7710         intprops: add doc
7711         * doc/intprops.texi: New file, documenting intprops.
7712         * doc/gnulib.texi (Particular Modules): Include it.
7713
7714         verify: add doc to gnulib manual and fix example
7715         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7716         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7717         (Compile-time Assertions): Fix example so it can't overflow.
7718
7719 2011-05-17  Jim Meyering  <meyering@redhat.com>
7720
7721         warnings.m4: don't usurp save_CPPFLAGS variable name
7722         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7723
7724         doc: fix typo
7725         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7726
7727 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7728             Bruno Haible  <bruno@clisp.org>
7729
7730         doc: Tweak recent change.
7731         * README (Portability guidelines): Tweak new text.
7732         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7733         Interix 6.1.
7734
7735 2011-05-16  Eric Blake  <eblake@redhat.com>
7736
7737         inttypes: avoid autoconf warning
7738         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7739         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7740
7741 2011-05-16  Sam Steingold <sds@gnu.org>
7742         and Eric Blake  <eblake@redhat.com>
7743
7744         vc-list-files: accept multiple directory operands
7745         * build-aux/vc-list-files: Iterate over all remaining operands.
7746
7747 2011-05-16  Bruno Haible  <bruno@clisp.org>
7748
7749         Fix confusion regarding deprecated modules.
7750         * modules/calloc (Status, Notice): Mark module as deprecated, not
7751         obsolete.
7752         * modules/fnmatch-posix (Status, Notice): Likewise.
7753         * modules/getdate (Status, Notice): Likewise.
7754         * modules/getopt (Status, Notice): Likewise.
7755         * modules/malloc (Status, Notice): Likewise.
7756         * modules/pipe (Status, Notice): Likewise.
7757         * modules/realloc (Status, Notice): Likewise.
7758         * modules/rename-dest-slash (Status, Notice): Likewise.
7759         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7760         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7761         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7762         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7763         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7764
7765 2011-05-16  Bruno Haible  <bruno@clisp.org>
7766
7767         doc: List the target platforms.
7768         * doc/gnulib-intro.texi (Target Platforms): New section.
7769         * doc/gnulib.texi (Introduction): Update menu.
7770         * README (Portability guidelines): Refer to the new section. Update
7771         statement about oldest supported environment. Remove rationale why
7772         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7773         unportable C89 function.
7774         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7775         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7776
7777 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7778
7779         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7780
7781 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7782
7783         intprops-tests: new module
7784         * modules/intprops-tests, tests/test-intprops.c: New files.
7785
7786         intprops: add safe, portable integer overflow checking
7787         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7788         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7789         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7790         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7791         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7792         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7793         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7794         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7795         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7796         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7797         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7798
7799 2011-05-12  James Youngman  <jay@gnu.org>
7800
7801         Add a test for glibc's Bugzilla bug #12378.
7802         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7803         doesn't allow the literal matching of a lone "[" (which is
7804         required by POSIX).
7805         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7806
7807 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7808
7809         Sync glibc change fixing Bugzilla bug #12378.
7810         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7811         beginning and fall back to matching as normal character if the
7812         string ends before the matching ']' is found.  This is what POSIX
7813         requires.
7814
7815 2011-05-13  Eric Blake  <eblake@redhat.com>
7816
7817         getcwd-lgpl: relax test for FreeBSD
7818         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7819         issue.
7820         * tests/test-getcwd-lgpl.c (main): Relax test.
7821         Reported by Matthias Bolte.
7822
7823 2011-05-11  Eric Blake  <eblake@redhat.com>
7824
7825         test-fflush: silence compiler warning
7826         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7827
7828 2011-05-11  Bruno Haible  <bruno@clisp.org>
7829
7830         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7831         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7832         * modules/canonicalize (Depends-on): Add 'nocrash'.
7833         * modules/canonicalize-lgpl (Depends-on): Likewise.
7834         * doc/posix-functions/realpath.texi: Update platforms list.
7835         Reported by Ryan Schmidt <ryandesign@macports.org>.
7836
7837 2011-05-11  Bruno Haible  <bruno@clisp.org>
7838
7839         group-member: Declare function in <unistd.h>.
7840         * lib/unistd.in.h (group_member): New declaration.
7841         * lib/group-member.h: Remove file.
7842         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7843         * tests/test-unistd-c++.cc: Check signature of group_member.
7844         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7845         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7846         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7847         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7848         HAVE_GROUP_MEMBER.
7849         * modules/group-member (Files): Remove lib/group-member.h.
7850         (Depends-on): Add unistd. Specify conditions.
7851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7852         (Include): Change to <unistd.h>.
7853         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7854         HAVE_GROUP_MEMBER.
7855         * NEWS: Mention the change.
7856         * lib/euidaccess.c: Don't include group-member.h.
7857
7858 2011-05-11  Bruno Haible  <bruno@clisp.org>
7859
7860         group-member: Document module.
7861         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7862         module.
7863
7864 2011-05-11  Bruno Haible  <bruno@clisp.org>
7865
7866         fclose: Fix mistake earlier today.
7867         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7868
7869 2011-05-11  Eric Blake  <eblake@redhat.com>
7870
7871         fclose: preserve fflush errors
7872         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7873         Reported by Jim Meyering.
7874
7875         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7876         * build-aux/bootstrap (check_versions): When no specific version
7877         is required, merely check that the app produces an exit status
7878         that indicates its existence.
7879
7880         maint.mk: drop redundant check
7881         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7882         the same but better.
7883
7884 2011-05-11  Bruno Haible  <bruno@clisp.org>
7885
7886         fclose: Fix possible link error.
7887         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7888         unregister_shadow_fd. Improve comments.
7889         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7890         Eric Blake.
7891
7892 2011-05-11  Jim Meyering  <meyering@redhat.com>
7893
7894         maint.mk: improve "can not" detection and generalize rule name
7895         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7896         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7897         Use the same technique as in sc_prohibit_doubled_word, so that
7898         we recognize "can not" also when the words are separated by a newline.
7899         Suggested by Eric Blake.
7900         (perl_filename_lineno_text_): Define.  Factored out of...
7901         (prohibit_doubled_word_): ...here.  Use the new definition.
7902         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7903         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7904         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7905
7906 2011-05-10  Eric Blake  <eblake@redhat.com>
7907
7908         fclose: avoid double close race when possible
7909         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7910         all but WINDOWS_SOCKETS.
7911
7912 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7913
7914         openat: correct new comment
7915         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7916
7917 2011-05-10  Jim Meyering  <meyering@redhat.com>
7918
7919         openat: add comments
7920         * lib/openat-proc.c (openat_proc_name): Add comments,
7921         mostly from Eric Blake.
7922
7923 2011-05-09  Eric Blake  <eblake@redhat.com>
7924
7925         openat: reduce syscalls in first probe of /proc
7926         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7927         be a directory.  Simplify the probe for .. bugs.
7928         * modules/openat (Depends-on): Drop same-inode.
7929         Reported by Bastien ROUCARIES.
7930
7931 2011-05-09  Jim Meyering  <meyering@redhat.com>
7932
7933         maint.mk: change semantics/name of tight_scope variables
7934         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7935         Rename variables to align with semantics that make them more useful.
7936
7937         maint.mk: tweak new rule's name not to impinge
7938         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7939         (sc_tight_scope): Use new rule name rather than $@-0.
7940
7941         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7942         * top/maint.mk (sc_tight_scope): New rule.
7943         (sc_tight_scope-0): New rule, ifdef'd out.
7944         (_gl_TS_dir): Default.
7945         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7946         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7947
7948 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7949
7950         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7951         Haible <bruno@clisp.org>.
7952
7953 2011-05-08  Bruno Haible  <bruno@clisp.org>
7954
7955         Comments.
7956         * m4/isnanf.m4: Add comment.
7957         * m4/isnanl.m4: Likewise.
7958
7959 2011-05-08  Bruno Haible  <bruno@clisp.org>
7960
7961         glob: Remove obsolete macro.
7962         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7963
7964 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7965
7966         intprops: Sun C 5.11 supports __typeof__
7967         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7968         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7969         which is new.
7970         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7971
7972         intprops: switch to usual gnulib indenting and naming
7973         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7974         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7975
7976         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7977
7978 2011-05-08  Jim Meyering  <meyering@redhat.com>
7979
7980         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7981         * top/maint.mk (release-prep): Use make's --no-print-directory
7982         option when generating the announcement.  This eliminates the
7983         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7984         generated announcement template.
7985
7986 2011-05-08  Bruno Haible  <bruno@clisp.org>
7987
7988         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7989         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7990         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7991
7992 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7993
7994         ignore-value, verify: Omit include files from lib_SOURCES.
7995         * modules/ignore-value, modules/verify (Makefile.am):
7996         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7997         that leads Automake to duplicate use of am__objects_... variables
7998         in Makefile.in.  See
7999         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8000
8001 2011-05-07  Bruno Haible  <bruno@clisp.org>
8002
8003         fclose: Simplify autoconf macro.
8004         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8005         defined.
8006
8007 2011-05-07  Bruno Haible  <bruno@clisp.org>
8008
8009         canonicalize-lgpl: Fix autoconf macro ordering bug.
8010         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8011         gl_STDLIB_H_DEFAULTS.
8012
8013 2011-05-06  Eric Blake  <eblake@redhat.com>
8014
8015         maintainer-makefile: make sc_po_check easier to tune
8016         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8017         to probe for strings, such as an alternate location for gnulib.
8018
8019         fclose: guarantee behavior on seekable stdin
8020         * modules/fclose (Depends-on): Add fflush.
8021         * doc/posix-functions/fclose.texi (fclose): Document this.
8022         * tests/test-fclose.c (main): Make test for this unconditional.
8023
8024 2011-05-06  Bruno Haible  <bruno@clisp.org>
8025
8026         fflush, fpurge: Relicense under LGPLv2+.
8027         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8028         * modules/fpurge (License): Likewise.
8029         With permission from Eric Blake and Jim Meyering.
8030         Suggested by Eric Blake.
8031
8032 2011-05-06  Karl Berry  <karl@gnu.org>
8033
8034         * MODULES.html.sh (func_all_modules): remove exit.
8035
8036 2011-05-06  Jim Meyering  <meyering@redhat.com>
8037
8038         maint.mk: use info-gnu@ as the default only for a stable release
8039         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8040         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8041         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8043
8044 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8045
8046         assert-h: new module, which supports C1X-style static_assert
8047         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8048         * lib/verify.h: Revamp so that this can be copied into assert.h,
8049         while retaining the ability to use it standalone as before.
8050         Rename private identifiers so as not to encroach on the
8051         standard C namespace, since this is now used by assert.h.
8052         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8053         the old verify_true.
8054         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8055         the old verify_true.  Use _GL_VERIFY_TYPE.
8056         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8057         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8058         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8059         defined when this file is copied into the replacement assert.h.
8060         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8061         and _Static_assert is not built in.
8062         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8063         defined, and use the new macros mentioned above.
8064         * doc/posix-headers/assert.texi: Document this.
8065
8066 2011-05-05  Bruno Haible  <bruno@clisp.org>
8067
8068         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8069         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8070         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8071         gl_REPLACE_FCLOSE here.
8072         * modules/fflush (Depends-on): Remove fclose.
8073         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8074         combination with module 'fclose'.
8075
8076 2011-05-05  Bruno Haible  <bruno@clisp.org>
8077
8078         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8079         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8080         gl_FUNC_FFLUSH.
8081         (gl_FUNC_FFLUSH): Use it.
8082         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8084         gl_REPLACE_FSEEKO here.
8085
8086 2011-05-05  Bruno Haible  <bruno@clisp.org>
8087
8088         tzset: Relicense under LGPL.
8089         * modules/tzset (License): Change to LGPL.
8090         No agreement needed; it's a no-op.
8091
8092         strtoimax, strtoumax: Relicense under LGPL.
8093         * modules/strtoimax (License): Change to LGPL.
8094         * modules/strtoumax (License): Likewise.
8095         With permission from Jim Meyering, Paul Eggert:
8096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8098
8099         getgroups: Relicense under LGPL.
8100         * modules/getgroups (License): Change to LGPL.
8101         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8105
8106         nanosleep: Relicense under LGPL.
8107         * modules/nanosleep (License): Change to LGPL.
8108         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8109         Haible:
8110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8114
8115         futimens: Relicense under LGPL.
8116         * modules/futimens (License): Change to LGPL.
8117         With permission from Eric Blake:
8118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8119
8120         fflush: Relicense under LGPL.
8121         * modules/fflush (License): Change to LGPL.
8122         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8126
8127         tmpfile: Relicense under LGPL.
8128         * modules/tmpfile (License): Change to LGPL.
8129         With permission from Ben Pfaff:
8130         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8131
8132         isfinite: Relicense under LGPL.
8133         * modules/isfinite (License): Change to LGPL.
8134         With permission from Ben Pfaff, Bruno Haible:
8135         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8137
8138         acosl..tanl: Relicense under LGPL.
8139         * modules/acosl (License): Change to LGPL.
8140         * modules/asinl (License): Likewise.
8141         * modules/atanl (License): Likewise.
8142         * modules/cosl (License): Likewise.
8143         * modules/expl (License): Likewise.
8144         * modules/logl (License): Likewise.
8145         * modules/sinl (License): Likewise.
8146         * modules/sqrtl (License): Likewise.
8147         * modules/tanl (License): Likewise.
8148         Source code originally from glibc and Paolo Bonzini. Agreements:
8149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8151
8152 2011-05-05  Bruno Haible  <bruno@clisp.org>
8153
8154         signal: Define sighandler_t.
8155         * lib/signal.in.h (sighandler_t): New type.
8156         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8157         whether sighandler_t is defined.
8158         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8159         * modules/signal (Depends-on): Add extensions.
8160         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8161         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8162         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8163
8164 2011-05-05  Eric Blake  <eblake@redhat.com>
8165
8166         maint: remove useless REPLACE_*_H macros
8167         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8168         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8169         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8170         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8171         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8172         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8173         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8174         * m4/btowc.m4: Update callers.
8175         * m4/dirfd.m4: Likewise.
8176         * m4/duplocale.m4: Likewise.
8177         * m4/fchdir.m4: Likewise.
8178         * m4/fdopendir.m4: Likewise.
8179         * m4/inet_ntop.m4: Likewise.
8180         * m4/inet_pton.m4: Likewise.
8181         * m4/ioctl.m4: Likewise.
8182         * m4/mbrlen.m4: Likewise.
8183         * m4/mbrtowc.m4: Likewise.
8184         * m4/mbsinit.m4: Likewise.
8185         * m4/mbsnrtowcs.m4: Likewise.
8186         * m4/mbsrtowcs.m4: Likewise.
8187         * m4/poll.m4: Likewise.
8188         * m4/setlocale.m4: Likewise.
8189         * m4/wcrtomb.m4: Likewise.
8190         * m4/wcsnrtombs.m4: Likewise.
8191         * m4/wcsrtombs.m4: Likewise.
8192         * m4/wctob.m4: Likewise.
8193         * m4/wcwidth.m4: Likewise.
8194         * modules/posix_spawn: Likewise.
8195         * modules/posix_spawn_file_actions_addclose: Likewise.
8196         * modules/posix_spawn_file_actions_adddup2: Likewise.
8197         * modules/posix_spawn_file_actions_addopen: Likewise.
8198         * modules/posix_spawn_file_actions_destroy: Likewise.
8199         * modules/posix_spawn_file_actions_init: Likewise.
8200         * modules/posix_spawnattr_destroy: Likewise.
8201         * modules/posix_spawnattr_getflags: Likewise.
8202         * modules/posix_spawnattr_getpgroup: Likewise.
8203         * modules/posix_spawnattr_getschedparam: Likewise.
8204         * modules/posix_spawnattr_getschedpolicy: Likewise.
8205         * modules/posix_spawnattr_getsigdefault: Likewise.
8206         * modules/posix_spawnattr_getsigmask: Likewise.
8207         * modules/posix_spawnattr_init: Likewise.
8208         * modules/posix_spawnattr_setflags: Likewise.
8209         * modules/posix_spawnattr_setpgroup: Likewise.
8210         * modules/posix_spawnattr_setschedparam: Likewise.
8211         * modules/posix_spawnattr_setschedpolicy: Likewise.
8212         * modules/posix_spawnattr_setsigdefault: Likewise.
8213         * modules/posix_spawnattr_setsigmask: Likewise.
8214         * modules/posix_spawnp: Likewise.
8215
8216 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8217
8218         Add option to do-release-commit-and-tag to specify branch.
8219         * build-aux/do-release-commit-and-tag: Add --branch.
8220
8221 2011-05-03  Bruno Haible  <bruno@clisp.org>
8222
8223         Avoid unnecessary compilation units, through conditional dependencies.
8224         * modules/accept (Depends-on): Add conditions to the dependencies.
8225         * modules/acosl (Depends-on): Likewise.
8226         * modules/argz (Depends-on): Likewise.
8227         * modules/asinl (Depends-on): Likewise.
8228         * modules/atanl (Depends-on): Likewise.
8229         * modules/atoll (Depends-on): Likewise.
8230         * modules/bind (Depends-on): Likewise.
8231         * modules/btowc (Depends-on): Likewise.
8232         * modules/canonicalize-lgpl (Depends-on): Likewise.
8233         * modules/ceil (Depends-on): Likewise.
8234         * modules/ceilf (Depends-on): Likewise.
8235         * modules/ceill (Depends-on): Likewise.
8236         * modules/chdir-long (Depends-on): Likewise.
8237         * modules/chown (Depends-on): Likewise.
8238         * modules/close (Depends-on): Likewise.
8239         * modules/connect (Depends-on): Likewise.
8240         * modules/cosl (Depends-on): Likewise.
8241         * modules/dirfd (Depends-on): Likewise.
8242         * modules/dprintf (Depends-on): Likewise.
8243         * modules/dprintf-posix (Depends-on): Likewise.
8244         * modules/error (Depends-on): Likewise.
8245         * modules/euidaccess (Depends-on): Likewise.
8246         * modules/expl (Depends-on): Likewise.
8247         * modules/faccessat (Depends-on): Likewise.
8248         * modules/fchdir (Depends-on): Likewise.
8249         * modules/fclose (Depends-on): Likewise.
8250         * modules/fcntl (Depends-on): Likewise.
8251         * modules/fdopendir (Depends-on): Likewise.
8252         * modules/fflush (Depends-on): Likewise.
8253         * modules/floor (Depends-on): Likewise.
8254         * modules/floorf (Depends-on): Likewise.
8255         * modules/floorl (Depends-on): Likewise.
8256         * modules/fnmatch (Depends-on): Likewise.
8257         * modules/fopen (Depends-on): Likewise.
8258         * modules/fprintf-posix (Depends-on): Likewise.
8259         * modules/frexp (Depends-on): Likewise.
8260         * modules/frexp-nolibm (Depends-on): Likewise.
8261         * modules/frexpl (Depends-on): Likewise.
8262         * modules/frexpl-nolibm (Depends-on): Likewise.
8263         * modules/fseek (Depends-on): Likewise.
8264         * modules/fsusage (Depends-on): Likewise.
8265         * modules/ftell (Depends-on): Likewise.
8266         * modules/ftello (Depends-on): Likewise.
8267         * modules/futimens (Depends-on): Likewise.
8268         * modules/getcwd (Depends-on): Likewise.
8269         * modules/getcwd-lgpl (Depends-on): Likewise.
8270         * modules/getdelim (Depends-on): Likewise.
8271         * modules/getdomainname (Depends-on): Likewise.
8272         * modules/getgroups (Depends-on): Likewise.
8273         * modules/gethostname (Depends-on): Likewise.
8274         * modules/getline (Depends-on): Likewise.
8275         * modules/getlogin_r (Depends-on): Likewise.
8276         * modules/getopt-posix (Depends-on): Likewise.
8277         * modules/getpeername (Depends-on): Likewise.
8278         * modules/getsockname (Depends-on): Likewise.
8279         * modules/getsockopt (Depends-on): Likewise.
8280         * modules/getsubopt (Depends-on): Likewise.
8281         * modules/getusershell (Depends-on): Likewise.
8282         * modules/glob (Depends-on): Likewise.
8283         * modules/grantpt (Depends-on): Likewise.
8284         * modules/iconv_open (Depends-on): Likewise.
8285         * modules/iconv_open-utf (Depends-on): Likewise.
8286         * modules/inet_ntop (Depends-on): Likewise.
8287         * modules/inet_pton (Depends-on): Likewise.
8288         * modules/ioctl (Depends-on): Likewise.
8289         * modules/isapipe (Depends-on): Likewise.
8290         * modules/isfinite (Depends-on): Likewise.
8291         * modules/isinf (Depends-on): Likewise.
8292         * modules/lchown (Depends-on): Likewise.
8293         * modules/ldexpl (Depends-on): Likewise.
8294         * modules/link (Depends-on): Likewise.
8295         * modules/linkat (Depends-on): Likewise.
8296         * modules/listen (Depends-on): Likewise.
8297         * modules/logl (Depends-on): Likewise.
8298         * modules/lstat (Depends-on): Likewise.
8299         * modules/mbrlen (Depends-on): Likewise.
8300         * modules/mbrtowc (Depends-on): Likewise.
8301         * modules/mbsinit (Depends-on): Likewise.
8302         * modules/mbsnrtowcs (Depends-on): Likewise.
8303         * modules/mbsrtowcs (Depends-on): Likewise.
8304         * modules/mbtowc (Depends-on): Likewise.
8305         * modules/memcmp (Depends-on): Likewise.
8306         * modules/mkdir (Depends-on): Likewise.
8307         * modules/mkdtemp (Depends-on): Likewise.
8308         * modules/mkfifo (Depends-on): Likewise.
8309         * modules/mkfifoat (Depends-on): Likewise.
8310         * modules/mknod (Depends-on): Likewise.
8311         * modules/mkostemp (Depends-on): Likewise.
8312         * modules/mkostemps (Depends-on): Likewise.
8313         * modules/mkstemp (Depends-on): Likewise.
8314         * modules/mkstemps (Depends-on): Likewise.
8315         * modules/mktime (Depends-on): Likewise.
8316         * modules/nanosleep (Depends-on): Likewise.
8317         * modules/open (Depends-on): Likewise.
8318         * modules/openat (Depends-on): Likewise.
8319         * modules/perror (Depends-on): Likewise.
8320         * modules/poll (Depends-on): Likewise.
8321         * modules/popen (Depends-on): Likewise.
8322         * modules/posix_spawn (Depends-on): Likewise.
8323         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8324         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8325         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8326         * modules/posix_spawnp (Depends-on): Likewise.
8327         * modules/pread (Depends-on): Likewise.
8328         * modules/printf-posix (Depends-on): Likewise.
8329         * modules/ptsname (Depends-on): Likewise.
8330         * modules/putenv (Depends-on): Likewise.
8331         * modules/pwrite (Depends-on): Likewise.
8332         * modules/readline (Depends-on): Likewise.
8333         * modules/readlink (Depends-on): Likewise.
8334         * modules/readlinkat (Depends-on): Likewise.
8335         * modules/recv (Depends-on): Likewise.
8336         * modules/recvfrom (Depends-on): Likewise.
8337         * modules/regex (Depends-on): Likewise.
8338         * modules/remove (Depends-on): Likewise.
8339         * modules/rename (Depends-on): Likewise.
8340         * modules/renameat (Depends-on): Likewise.
8341         * modules/rmdir (Depends-on): Likewise.
8342         * modules/round (Depends-on): Likewise.
8343         * modules/roundf (Depends-on): Likewise.
8344         * modules/roundl (Depends-on): Likewise.
8345         * modules/rpmatch (Depends-on): Likewise.
8346         * modules/select (Depends-on): Likewise.
8347         * modules/send (Depends-on): Likewise.
8348         * modules/sendto (Depends-on): Likewise.
8349         * modules/setenv (Depends-on): Likewise.
8350         * modules/setlocale (Depends-on): Likewise.
8351         * modules/setsockopt (Depends-on): Likewise.
8352         * modules/shutdown (Depends-on): Likewise.
8353         * modules/sigaction (Depends-on): Likewise.
8354         * modules/signbit (Depends-on): Likewise.
8355         * modules/sigprocmask (Depends-on): Likewise.
8356         * modules/sinl (Depends-on): Likewise.
8357         * modules/sleep (Depends-on): Likewise.
8358         * modules/snprintf (Depends-on): Likewise.
8359         * modules/snprintf-posix (Depends-on): Likewise.
8360         * modules/socket (Depends-on): Likewise.
8361         * modules/sprintf-posix (Depends-on): Likewise.
8362         * modules/sqrtl (Depends-on): Likewise.
8363         * modules/stat (Depends-on): Likewise.
8364         * modules/strchrnul (Depends-on): Likewise.
8365         * modules/strdup-posix (Depends-on): Likewise.
8366         * modules/strerror (Depends-on): Likewise.
8367         * modules/strerror_r-posix (Depends-on): Likewise.
8368         * modules/strndup (Depends-on): Likewise.
8369         * modules/strnlen (Depends-on): Likewise.
8370         * modules/strptime (Depends-on): Likewise.
8371         * modules/strsep (Depends-on): Likewise.
8372         * modules/strsignal (Depends-on): Likewise.
8373         * modules/strstr-simple (Depends-on): Likewise.
8374         * modules/strtod (Depends-on): Likewise.
8375         * modules/strtoimax (Depends-on): Likewise.
8376         * modules/strtok_r (Depends-on): Likewise.
8377         * modules/strtoumax (Depends-on): Likewise.
8378         * modules/symlink (Depends-on): Likewise.
8379         * modules/symlinkat (Depends-on): Likewise.
8380         * modules/tanl (Depends-on): Likewise.
8381         * modules/tcgetsid (Depends-on): Likewise.
8382         * modules/tmpfile (Depends-on): Likewise.
8383         * modules/trunc (Depends-on): Likewise.
8384         * modules/truncf (Depends-on): Likewise.
8385         * modules/truncl (Depends-on): Likewise.
8386         * modules/uname (Depends-on): Likewise.
8387         * modules/unlink (Depends-on): Likewise.
8388         * modules/unlockpt (Depends-on): Likewise.
8389         * modules/unsetenv (Depends-on): Likewise.
8390         * modules/usleep (Depends-on): Likewise.
8391         * modules/utimensat (Depends-on): Likewise.
8392         * modules/vasprintf (Depends-on): Likewise.
8393         * modules/vdprintf (Depends-on): Likewise.
8394         * modules/vdprintf-posix (Depends-on): Likewise.
8395         * modules/vfprintf-posix (Depends-on): Likewise.
8396         * modules/vprintf-posix (Depends-on): Likewise.
8397         * modules/vsnprintf (Depends-on): Likewise.
8398         * modules/vsnprintf-posix (Depends-on): Likewise.
8399         * modules/vsprintf-posix (Depends-on): Likewise.
8400         * modules/wcrtomb (Depends-on): Likewise.
8401         * modules/wcscasecmp (Depends-on): Likewise.
8402         * modules/wcscspn (Depends-on): Likewise.
8403         * modules/wcsdup (Depends-on): Likewise.
8404         * modules/wcsncasecmp (Depends-on): Likewise.
8405         * modules/wcsnrtombs (Depends-on): Likewise.
8406         * modules/wcspbrk (Depends-on): Likewise.
8407         * modules/wcsrtombs (Depends-on): Likewise.
8408         * modules/wcsspn (Depends-on): Likewise.
8409         * modules/wcsstr (Depends-on): Likewise.
8410         * modules/wcstok (Depends-on): Likewise.
8411         * modules/wcswidth (Depends-on): Likewise.
8412         * modules/wctob (Depends-on): Likewise.
8413         * modules/wctomb (Depends-on): Likewise.
8414         * modules/wctype (Depends-on): Likewise.
8415         * modules/wcwidth (Depends-on): Likewise.
8416         * modules/write (Depends-on): Likewise.
8417
8418 2011-05-03  Bruno Haible  <bruno@clisp.org>
8419
8420         Support for conditional dependencies.
8421         * doc/gnulib.texi (Module description): Document the syntax of
8422         conditional dependencies.
8423         * gnulib-tool: New option --conditional-dependencies.
8424         (func_usage): Document it.
8425         (cond_dependencies): New variable.
8426         (func_get_automake_snippet_conditional,
8427         func_get_automake_snippet_unconditional): New functions, extracted from
8428         func_get_automake_snippet.
8429         (func_get_automake_snippet): Use them.
8430         (sed_first_32_chars): New variable.
8431         (func_module_shellfunc_name): New function.
8432         (func_module_shellvar_name): New function.
8433         (func_module_conditional_name): New function.
8434         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8435         func_cond_module_condition): New functions.
8436         (func_modules_transitive_closure): Add support for conditional
8437         dependencies.
8438         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8439         conditional automake snippet in an automake conditional.
8440         (func_emit_autoconf_snippets): Emit shell functions that contain the
8441         code for conditional modules.
8442         (func_import, func_create_testdir): Update specification.
8443
8444 2011-05-03  Eric Blake  <eblake@redhat.com>
8445
8446         test-getaddrinfo: report error information
8447         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8448
8449 2011-05-03  Jim Meyering  <meyering@redhat.com>
8450
8451         bootstrap: avoid build failure when $GZIP is set
8452         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8453         program name.  If defined at all, it is supposed to list gzip options.
8454         Reported by Alan Curry in http://debbugs.gnu.org/8609
8455
8456 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8457
8458         readme-release: new module with release instructions
8459         * modules/readme-release: New module.
8460         * top/README-release: New file, from coreutils, grep, diffutils.
8461         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8462
8463 2011-05-02  Eric Blake  <eblake@redhat.com>
8464
8465         fflush: also replace fclose when fixing fflush
8466         * modules/fflush (Depends-on): Add fclose.
8467         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8468         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8469         memstreams with no backing fd.
8470         * doc/posix-functions/fclose.texi (fclose): Document the use of
8471         fflush module to fix the bug.
8472         * tests/test-fclose.c (main): Relax test when fclose is used in
8473         isolation.
8474
8475         fclose: add some tests
8476         * modules/fclose-tests: New test module.
8477         * tests/test-fclose.c: New file.
8478         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8479
8480         fclose: reduced dependencies
8481         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8482         simpler lseek.
8483         * lib/fclose.c (rpl_fclose): Likewise.
8484         Reported by Simon Josefsson.
8485
8486         exit: drop remaining clients
8487         * modules/argmatch (Depends-on): Replace exit with stdlib.
8488         * modules/copy-file (Depends-on): Likewise.
8489         * modules/execute (Depends-on): Likewise.
8490         * modules/exitfail (Depends-on): Likewise.
8491         * modules/obstack (Depends-on): Likewise.
8492         * modules/pagealign_alloc (Depends-on): Likewise.
8493         * modules/pipe-filter-gi (Depends-on): Likewise.
8494         * modules/pipe-filter-ii (Depends-on): Likewise.
8495         * modules/savewd (Depends-on): Likewise.
8496         * modules/spawn-pipe (Depends-on): Likewise.
8497         * modules/wait-process (Depends-on): Likewise.
8498         * modules/xsetenv (Depends-on): Likewise.
8499         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8500         * modules/git-merge-changelog (Depends-on): Likewise.
8501         * modules/long-options (Depends-on): Likewise.
8502         * modules/pt_chown (Depends-on): Likewise.
8503         * modules/sysexits (Depends-on): Likewise.
8504
8505         freading: relax license from LGPLv3+ to LGPLv2+
8506         * modules/freading (License): Relax LGPL version.
8507
8508 2011-05-02  Bruno Haible  <bruno@clisp.org>
8509
8510         fchdir: Remove unused dependencies.
8511         * modules/fchdir (Depends-on): Remove include_next.
8512
8513 2011-05-02  Bruno Haible  <bruno@clisp.org>
8514
8515         gnulib-tool: Refactor.
8516         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8517         from func_emit_autoconf_snippets.
8518         (func_emit_autoconf_snippets): Use it.
8519
8520 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8521
8522         * NEWS: Document removal of 'exit'.
8523         * modules/exit: Remove file.
8524
8525 2011-05-01  Bruno Haible  <bruno@clisp.org>
8526
8527         Update DEPENDENCIES.
8528         * DEPENDENCIES (gettext): Recommend the newest release.
8529         Reported by Simon Josefsson.
8530
8531 2011-05-01  Bruno Haible  <bruno@clisp.org>
8532
8533         gnulib-tool: Reduce code duplication.
8534         * gnulib-tool (func_emit_autoconf_snippets): New function.
8535         (func_import, func_create_testdir): Use it.
8536
8537 2011-04-30  Eric Blake  <eblake@redhat.com>
8538
8539         fclose: don't fail on non-seekable input stream
8540         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8541         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8542         since fflush is allowed to fail in that case.
8543
8544 2011-04-30  Bruno Haible  <bruno@clisp.org>
8545
8546         dup3: cleanup
8547         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8548
8549 2011-04-30  Bruno Haible  <bruno@clisp.org>
8550
8551         netdb: Make it work in C++ mode.
8552         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8553         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8554         module.
8555         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8556         gl_MODULE_INDICATOR_FOR_TESTS.
8557         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8558         * modules/netdb-c++-tests: New file.
8559         * tests/test-netdb-c++.cc: New file.
8560
8561 2011-04-30  Bruno Haible  <bruno@clisp.org>
8562
8563         New modules 'vfscanf', 'vscanf'.
8564         * modules/vfscanf: New file.
8565         * modules/vscanf: New file.
8566         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8567         here.
8568         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8569         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8570
8571 2011-04-30  Bruno Haible  <bruno@clisp.org>
8572
8573         passfd: Add comments.
8574         * lib/passfd.c: Add comments about platforms.
8575
8576 2011-04-30  Bruno Haible  <bruno@clisp.org>
8577
8578         sys_uio: Make <sys/uio.h> self-contained.
8579         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8580         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8581
8582 2011-04-30  Bruno Haible  <bruno@clisp.org>
8583
8584         sys_socket: Ensure 'struct iovec' definition.
8585         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8586         <sys/socket.h>.
8587         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8588
8589 2011-04-30  Bruno Haible  <bruno@clisp.org>
8590
8591         sys_uio: Protect definition of 'struct iovec'.
8592         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8593         it as a C struct.
8594
8595 2011-04-30  Bruno Haible  <bruno@clisp.org>
8596
8597         manywarnings: fix indentation
8598         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8599
8600 2011-04-30  Pádraig Brady <P@draigBrady.com>
8601
8602         manywarnings: add -Wno-missing-field-initializers if needed.
8603         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8604         option if it's needed to allow initialization with { 0, }
8605
8606 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8607
8608         announce-gen: cosmetic improvement
8609         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8610
8611 2011-04-29  Jim Meyering  <meyering@redhat.com>
8612
8613         vc-list-files: indent with spaces, not TABs
8614         * build-aux/vc-list-files: Convert leading TABs to spaces,
8615         to match the style of most other files in gnulib.
8616
8617         announce-gen: indent with spaces, not TABs
8618         * build-aux/announce-gen: Convert all TABs to spaces, to match
8619         the style of most other files in gnulib.
8620
8621 2011-04-29  Eric Blake  <eblake@redhat.com>
8622
8623         quotearg: avoid uninitialized variable use
8624         * lib/quotearg.c (quoting_options_from_style): Initialize
8625         remaining fields, and ensure that custom styles are only used via
8626         quoting_options rather than quoting_style.
8627
8628 2011-04-29  Jim Meyering  <meyering@redhat.com>
8629
8630         maint.mk: remove unused VC-tag variable
8631         * top/maint.mk (VC-tag): Remove unused variable.
8632
8633 2011-04-29  Bruno Haible  <bruno@clisp.org>
8634
8635         netdb: fix gai_strerror replacements
8636         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8637         * modules/netdb: Substitute it.
8638
8639 2011-04-29  Jim Meyering  <meyering@redhat.com>
8640
8641         test-getcwd.c: avoid new set-but-not-used warning
8642         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8643         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8644         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8645         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8646
8647         test-hash.c: avoid a new shadowing warning
8648         * tests/test-hash.c (main): Don't shadow "dup".
8649
8650 2011-04-28  Eric Blake  <eblake@redhat.com>
8651
8652         getaddrinfo: fix gai_strerror signature
8653         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8654         and work around mingw with UNICODE defined.
8655         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8656         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8657         * modules/netdb (Makefile.am): Substitute it.
8658         * lib/netdb.in.h (gai_strerror): Declare replacement.
8659         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8660         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8661         the fix.
8662
8663         getsockopt: avoid compiler warning
8664         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8665         Reported by Matthias Bolte.
8666
8667         tests: drop unused link dependency
8668         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8669         * modules/dirent-safer-tests (Makefile.am): Likewise.
8670         * modules/fdopendir-tests (Makefile.am): Likewise.
8671         * modules/mkfifoat-tests (Makefile.am): Likewise.
8672         * modules/openat-safer-tests (Makefile.am): Likewise.
8673         * modules/openat-tests (Makefile.am): Likewise.
8674         * modules/readlinkat-tests (Makefile.am): Likewise.
8675         * modules/symlinkat-tests (Makefile.am): Likewise.
8676         * modules/linkat-tests (Makefile.am): Likewise.
8677         (Depends-on): Switch to filenamecat-lgpl.
8678         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8679         LIBINTL.
8680         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8681         * tests/test-linkat.c (main): Don't require xalloc.
8682
8683         hash, mgetgroups: drop xalloc dependency
8684         * lib/hash.c (includes): Adjust includes.
8685         * lib/mgetgroups.c (includes): Likewise.
8686         (xgetgroups): Move...
8687         * lib/xgetgroups.c: ...to new file.
8688         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8689         * modules/xgetgroups: New file, split from...
8690         * modules/mgetgroups: ...here.
8691         (Depends-on): Add xalloc-oversized.
8692         * modules/hash (Depends-on): Likewise.
8693         * modules/hash-tests (Depends-on): Drop xalloc.
8694         (test_hash_LDADD): Drop unused library.
8695         * tests/test-hash.c (main): Break xalloc dependency.
8696         (includes): Drop unused include.
8697
8698         xalloc-oversized: new module
8699         * modules/xalloc-oversized: New module.
8700         * modules/xalloc (Depends-on): Add it.
8701         * lib/xalloc.h (xalloc_oversized): Move...
8702         * lib/xalloc-oversized.h: ...into new file.
8703
8704         utimecmp: drop dependency on xmalloc
8705         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8706         due to memory pressure.
8707         * modules/utimecmp (Depends-on): Drop xalloc.
8708
8709 2011-04-27  Eric Blake  <eblake@redhat.com>
8710
8711         getcwd: fix mingw bugs
8712         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8713         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8714         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8715
8716 2011-04-27  Bruno Haible  <bruno@clisp.org>
8717
8718         mkstemps: Ensure declaration on MacOS X 10.5.
8719         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8720         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8721         MacOS X.
8722
8723 2011-04-27  Bruno Haible  <bruno@clisp.org>
8724
8725         mkstemp: More documentation.
8726         * doc/posix-functions/mkstemp.texi: Document header file problem on
8727         MacOS X.
8728
8729 2011-04-27  Bruno Haible  <bruno@clisp.org>
8730
8731         mkstemp: Tweak configure message when cross-compiling.
8732         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8733         result as a guess.
8734
8735 2011-04-27  Bruno Haible  <bruno@clisp.org>
8736
8737         clean-temp: Clarify what it does.
8738         * lib/clean-temp.h: Add more comments.
8739         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8740         module.
8741         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8742         * doc/glibc-functions/mkstemps.texi: Likewise.
8743         * doc/glibc-functions/mkostemps.texi: Likewise.
8744
8745 2011-04-27  Eric Blake  <eblake@redhat.com>
8746
8747         fchdir: avoid extra chdir and fix test
8748         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8749         getcwd-lgpl.
8750         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8751         have to be canonical.
8752         (canonicalize_file_name): Drop unused macro.
8753         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8754
8755         filenamecat-lgpl: fix licence
8756         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8757         when it was first created.
8758
8759         linkat, renameat: add missing dependency
8760         * modules/linkat (Depends-on): Require getcwd-lgpl.
8761         * modules/renameat (Depends-on): Likewise.
8762
8763         tests: reduce dependencies
8764         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8765         * tests/test-renameat.c (main): Likewise.
8766         * modules/linkat-tests (Depends-on): Relax dependency.
8767         * modules/renameat-tests (Depends-on): Likewise.
8768         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8769         dependency explicit.
8770
8771         save-cwd: reduce default dependency
8772         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8773         * lib/save-cwd.c: Update comments.
8774         * NEWS: Document the semantic change.
8775
8776         getcwd: enhance tests
8777         * tests/test-getcwd-lgpl.c: New file, taken from...
8778         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8779         repeat long path stress tests from m4 probe.
8780         * modules/getcwd-lgpl-tests: New module.
8781         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8782         * m4/getcwd-abort-bug.m4: Update comment.
8783         * m4/getcwd-path-max.m4: Likewise.
8784
8785         getcwd-lgpl: new module
8786         * modules/getcwd-lgpl: New module.
8787         * lib/getcwd-lgpl.c: New file.
8788         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8789         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8790         * modules/getcwd (configure.ac): Set C witness.
8791         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8792
8793         getcwd: tweak comments
8794         * m4/getcwd-abort-bug.m4: Fix comments.
8795         * m4/getcwd-path-max.m4: Likewise.
8796         * m4/getcwd.m4: Likewise.
8797
8798 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8799         and Eric Blake  <eblake@redhat.com>
8800
8801         mkstemp: replace if system version uses wrong permissions
8802         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8803         read/write mode bits set in file created by mkstemp.
8804         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8805
8806 2011-04-27  Eric Blake  <eblake@redhat.com>
8807
8808         passfd: avoid compiler warning
8809         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8810         Reported by Laine Stump.
8811
8812 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8813
8814         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8815         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8816
8817 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8818         and Eric Blake  <eblake@redhat.com>
8819
8820         mkstemp: mention clean-temp module
8821         * lib/mkstemp.c: Add comment.
8822         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8823
8824 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         inttypes: also provide default values for 32-bit tests
8827         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8828         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8829
8830 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8831
8832         strtoumax: remove dependency on strtoimax
8833         This is like the strtoull change of yesterday.
8834         * modules/strtoumax (Files): Add lib/strtoimax.c.
8835         (Depends-on): Remove strtoimax and add verify.
8836
8837         inttypes-incomplete: new module
8838         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8839         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8840         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8841         of gl_INTTYPES_H.
8842         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8843         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8844         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8845         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8846         * modules/strtoumax, modules/xstrtol (Depends-on):
8847         Depend on inttypes-incomplete, not inttypes.
8848         * modules/inttypes-incomplete: New module, containing the contents
8849         of the old modules/inttypes module, except that the Files: section
8850         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8851         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8852         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8853         (Depends-on): Depend only on inttypes-incomplete.
8854         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8855
8856         inttypes: omit now-redundant strtoimax and strtoumax work
8857         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8858         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8859
8860         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8861         This supports apps that need pointers to strtoimax and strtoumax,
8862         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8863         nonexistent functions.  See
8864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8865         et seq.
8866         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8867         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8868         a macro.
8869         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8870
8871 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8872
8873         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8874
8875 2011-04-25  Bruno Haible  <bruno@clisp.org>
8876
8877         strtol, strtoul: Mark modules as obsolete.
8878         * modules/strtol (Status, Notice): New sections.
8879         * modules/strtoul (Status, Notice): New sections.
8880
8881 2011-04-25  Bruno Haible  <bruno@clisp.org>
8882
8883         strtod: Remove check for strtod, unless supporting old platforms.
8884         * modules/strtod-obsolete: New file.
8885         * m4/strtod-obsolete.m4: New file.
8886         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8887         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8888         * modules/strtod (Depends-on): Add strtod-obsolete.
8889         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8890
8891 2011-04-25  Bruno Haible  <bruno@clisp.org>
8892
8893         strcase: Make module obsolete.
8894         * modules/strcase (Status, Notice): New sections.
8895
8896 2011-04-25  Bruno Haible  <bruno@clisp.org>
8897
8898         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8899         * modules/dup2-obsolete: New file.
8900         * m4/dup2-obsolete.m4: New file.
8901         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8902         gl_FUNC_DUP2_OBSOLETE is not also defined.
8903         * modules/dup2 (Depends-on): Add dup2-obsolete.
8904         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8905
8906 2011-04-25  Bruno Haible  <bruno@clisp.org>
8907
8908         strnlen: Avoid memchr related link error on old obsolete platforms.
8909         * modules/memchr-obsolete: New file.
8910         * m4/memchr-obsolete.m4: New file.
8911         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8912         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8913         * modules/memchr (Depends-on): Add memchr-obsolete.
8914         * modules/strnlen (Depends-on): Likewise.
8915         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8916
8917 2011-04-25  Jim Meyering  <meyering@redhat.com>
8918
8919         maint.mk: makefile_at_at_check extend and clean up
8920         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8921         in addition to */Makefile.am.
8922         Exempt legitimate uses of @VAR@ notation, e.g.,
8923         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8924         Remove obsolete coreutils-specific comment.
8925         Prompted by discussion here:
8926         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8927
8928 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8929
8930         strtoul: remove dependency on strtol
8931         This is so that 'configure' need not check for strtol merely because
8932         the application needs strtoul.
8933         * modules/strtoul (Files): Add lib/strtol.c.
8934         (Depends-on): Remove strtol.
8935
8936         strtoull: remove dependency on strtoul
8937         This is like the strtoll change.
8938         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8939         (Depends-on): Remove strtoul.
8940
8941         strtoll: remove dependency on strtol
8942         This is so that 'configure' need not check for strtol merely because
8943         the application needs strtoll.
8944         * modules/strtoll (Files): Add lib/strtol.c.
8945         (Depends-on): Remove strtol.
8946
8947 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8948
8949         inttypes: Move some configure check to module 'imaxdiv'.
8950         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8951         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8952         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8953
8954 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8955
8956         inttypes: Move some configure check to module 'imaxabs'.
8957         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8958         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8959         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8960
8961 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8962
8963         inttypes: Remove configure tests that are not needed since 2009-12-31.
8964         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8965         gl_cv_header_working_inttypes_h.
8966
8967 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8968
8969         * modules/strnlen (Depends-on): Remove memchr.
8970         The strnlen implementation doesn't need the memchr module's fixes; see
8971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8972
8973         strtol: remove dependency on wchar
8974         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8975         * modules/strtol (Depends-on): Remove wchar.
8976
8977 2011-04-21  Eric Blake  <eblake@redhat.com>
8978
8979         passfd: fix test regression on Linux
8980         * modules/passfd-tests (configure.ac): Correct socketpair check.
8981
8982         passfd: speed up configure and drop unused code
8983         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8984         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8985         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8986         Instead of probing at configure for unix_scm_rights_bsd44_way,
8987         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8988         check to a struct member probe.
8989         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8990         (sendfd, recvfd): Update preprocessor checks.
8991         * modules/passfd (Files): Reflect rename, and drop unused file.
8992         (Depends-on): Drop unused dependency.
8993
8994         passfd: allow compilation on mingw
8995         * modules/sys_socket (Depends-on): Add sys_uio.
8996         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8997         iovec and a minimal struct msghdr.
8998         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8999         * tests/test-sys_socket.c (main): Enhance test.
9000         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9001         guaranteed to provide what we need.
9002         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9003         * modules/passfd-tests (Depends-on): Add sys_wait.
9004         * tests/test-passfd.c (main): Skip test on mingw, for now.
9005         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9006         partial 'struct msghdr' implementation.
9007
9008         sys_uio: new module
9009         * modules/sys_uio: New module.
9010         * modules/sys_uio-tests: Likewise.
9011         * lib/sys_uio.in.h: New file.
9012         * m4/sys_uio_h.m4: Likewise.
9013         * tests/test-sys_uio.c: Likewise.
9014         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9015         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9016
9017 2011-04-20  Jim Meyering  <meyering@redhat.com>
9018
9019         useless-if-before-free: avoid false-positive
9020         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9021         disjunct so that it too requires a terminating ";".  Without that,
9022         this script would identify as useless one statement from gcc that
9023         was not:
9024           if (aligned_ptr)
9025             free (((void **) aligned_ptr) [-1]);
9026
9027 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9028
9029         doc: update users.txt.
9030         * users.txt: Add barcode.
9031
9032 2011-04-19  Bruno Haible  <bruno@clisp.org>
9033
9034         ioctl: Remove link dependency on native Windows.
9035         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9036         (gl_close_fn, gl_ioctl_fn): New types.
9037         (struct fd_hook): Renamed from struct close_hook. Change type of
9038         private_close_fn field. Add private_ioctl_fn field.
9039         (close_hook_fn): Add parameter for primary close method.
9040         (execute_close_hooks, execute_all_close_hooks): Likewise.
9041         (ioctl_hook_fn): New type.
9042         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9043         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9044         argument.
9045         (unregister_fd_hook): Renamed from unregister_close_hook.
9046         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9047         Don't include <unistd.h>.
9048         (close): Remove undef.
9049         (anchor): Update.
9050         (execute_close_hooks): Add argument for primary close method.
9051         (execute_all_close_hooks): Likewise.
9052         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9053         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9054         argument. Allow each argument to be NULL.
9055         (unregister_fd_hook): Renamed from unregister_close_hook.
9056         * lib/close.c (rpl_close): Pass 'close' function pointer to
9057         execute_all_close_hooks.
9058         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9059         (primary_ioctl): New function.
9060         (ioctl): Don't call ioctlsocket here. Instead, call
9061         execute_all_ioctl_hooks.
9062         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9063         close method.
9064         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9065         (fd_sockets_hook): Renamed from close_sockets_hook.
9066         (gl_sockets_startup, gl_sockets_cleanup): Update.
9067         * modules/fd-hook: Renamed from modules/close-hook. Update.
9068         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9069         * modules/sockets (Depends-on): Likewise.
9070         * modules/ioctl (Depends-on): Add fd-hook.
9071         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9072         GNULIB_SOCKET.
9073
9074 2011-04-19  Bruno Haible  <bruno@clisp.org>
9075
9076         Move the support of O_NONBLOCK in open() to the 'open' module.
9077         * modules/nonblocking (Depends-on): Remove 'open'.
9078         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9079         gl_cv_have_open_O_NONBLOCK.
9080         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9081         O_NONBLOCK support.
9082         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9083
9084 2011-04-17  Bruno Haible  <bruno@clisp.org>
9085
9086         pipe2: Simplify code.
9087         * lib/pipe2.c (pipe2): Reduce code duplication.
9088
9089 2011-04-17  Bruno Haible  <bruno@clisp.org>
9090
9091         nonblocking: Add comment.
9092         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9093
9094 2011-04-17  Bruno Haible  <bruno@clisp.org>
9095
9096         nonblocking: Add tests for sockets.
9097         * tests/test-nonblocking-socket.sh: New file.
9098         * tests/test-nonblocking-socket-main.c: New file.
9099         * tests/test-nonblocking-socket-child.c: New file.
9100         * tests/test-nonblocking-socket.h: New file.
9101         * tests/socket-server.h: New file.
9102         * tests/socket-client.h: New file.
9103         * modules/nonblocking-socket-tests: New file.
9104         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9105
9106 2011-04-17  Bruno Haible  <bruno@clisp.org>
9107
9108         nonblocking: Add tests for pipes.
9109         * tests/test-nonblocking-pipe.sh: New file.
9110         * tests/test-nonblocking-pipe-main.c: New file.
9111         * tests/test-nonblocking-pipe-child.c: New file.
9112         * tests/test-nonblocking-pipe.h: New file.
9113         * tests/test-nonblocking-writer.h: New file.
9114         * tests/test-nonblocking-reader.h: New file.
9115         * tests/test-nonblocking-misc.h: New file.
9116         * modules/nonblocking-pipe-tests: New file.
9117         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9118
9119 2011-04-16  Bruno Haible  <bruno@clisp.org>
9120
9121         gettext: Clarify the needed programmer actions.
9122         * modules/gettext (Notice): New field.
9123         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9124
9125 2011-04-16  Bruno Haible  <bruno@clisp.org>
9126
9127         strchrnul: Tweak last commit.
9128         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9129         bug.
9130         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9131         as in _GL_FUNCDECL_SYS.
9132         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9133         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9134
9135 2011-04-15  Eric Blake  <eblake@redhat.com>
9136
9137         strchrnul: work around cygwin bug
9138         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9139         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9141         * modules/string (Makefile.am): Substitute it.
9142         * lib/string.in.h (strchrnul): Use it.
9143
9144 2011-04-15  Bruno Haible  <bruno@clisp.org>
9145
9146         Don't require lib/stdio-write.c when only module 'stdio' is used.
9147         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9148         invocation.
9149         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9150
9151 2011-04-14  Bruno Haible  <bruno@clisp.org>
9152
9153         Support non-blocking pipe I/O in read() on native Windows.
9154         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9155         (read): New declaration.
9156         * lib/read.c: New file.
9157         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9158         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9159         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9160         vscanf): New declarations.
9161         * lib/stdio-read.c: New file.
9162         * m4/read.m4: New file.
9163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9164         REPLACE_READ.
9165         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9166         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9167         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9168         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9169         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9170         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9171         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9172         * modules/read: New file.
9173         * modules/nonblocking (Files): Add lib/stdio-read.c.
9174         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9175         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9176         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9177         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9178         * modules/pread (Depends-on): Add read.
9179         * modules/safe-read (Depends-on): Likewise.
9180         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9181         gets, scanf, vfscanf, vscanf): Verify signatures.
9182         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9183         problem with non-blocking pipes.
9184         * doc/posix-functions/fgetc.texi: Likewise.
9185         * doc/posix-functions/fgets.texi: Likewise.
9186         * doc/posix-functions/fread.texi: Likewise.
9187         * doc/posix-functions/fscanf.texi: Likewise.
9188         * doc/posix-functions/getc.texi: Likewise.
9189         * doc/posix-functions/getchar.texi: Likewise.
9190         * doc/posix-functions/gets.texi: Likewise.
9191         * doc/posix-functions/scanf.texi: Likewise.
9192         * doc/posix-functions/vfscanf.texi: Likewise.
9193         * doc/posix-functions/vscanf.texi: Likewise.
9194
9195 2011-04-14  Bruno Haible  <bruno@clisp.org>
9196
9197         Support non-blocking pipe I/O in write() on native Windows.
9198         * lib/write.c (rpl_write): Split a write request that failed merely
9199         because the byte count was larger than the pipe buffer's size.
9200         * doc/posix-functions/write.texi: Mention the problem with large byte
9201         counts.
9202
9203 2011-04-14  Bruno Haible  <bruno@clisp.org>
9204
9205         wchar: Ensure that wchar_t gets defined on uClibc.
9206         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9207         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9208
9209 2011-04-13  Bruno Haible  <bruno@clisp.org>
9210
9211         safe-write, full-read: Avoid unnecessary compilation units.
9212         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9213         (Depends-on): Remove safe-read. Add ssize_t.
9214         * modules/full-read (Files): Add lib/full-write.c.
9215         (Depends-on): Add full-write.
9216
9217 2011-04-13  Bruno Haible  <bruno@clisp.org>
9218
9219         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9220         * modules/pwrite (Depends-on): Add 'write'.
9221
9222 2011-04-13  Bruno Haible  <bruno@clisp.org>
9223
9224         Support non-blocking pipe I/O in write() on native Windows.
9225         * lib/unistd.in.h (write): Enable replacement also if
9226         GNULIB_UNISTD_H_NONBLOCKING is 1.
9227         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9228         (rpl_write): When failing to write on a non-blocking pipe, change
9229         errno from ENOSPC to EAGAIN.
9230         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9231         putchar, puts, vfprintf, vprintf): Enable replacement also if
9232         GNULIB_STDIO_H_NONBLOCKING is 1.
9233         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9234         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9235         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9236         CALL_WITH_SIGPIPE_EMULATION.
9237         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9238         * m4/nonblocking.m4: New file.
9239         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9240         for non-blocking I/O support.
9241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9242         GNULIB_UNISTD_H_NONBLOCKING.
9243         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9244         required for non-blocking I/O support.
9245         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9246         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9247         lib/stdio-write.c, m4/asm-underscore.m4.
9248         (Depends-on): Add stdio, unistd.
9249         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9250         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9251         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9252         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9253         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9254         problem with non-blocking pipes.
9255         * doc/posix-functions/fputc.texi: Likewise.
9256         * doc/posix-functions/fputs.texi: Likewise.
9257         * doc/posix-functions/fwrite.texi: Likewise.
9258         * doc/posix-functions/printf.texi: Likewise.
9259         * doc/posix-functions/putc.texi: Likewise.
9260         * doc/posix-functions/putchar.texi: Likewise.
9261         * doc/posix-functions/puts.texi: Likewise.
9262         * doc/posix-functions/vfprintf.texi: Likewise.
9263         * doc/posix-functions/vprintf.texi: Likewise.
9264         * doc/posix-functions/write.texi: Likewise.
9265
9266 2011-04-10  Jim Meyering  <meyering@redhat.com>
9267
9268         maint.mk: prohibit doubled words
9269         Detect them also when they're separated by a newline.
9270         There are 3 ways to customize it:
9271           - disable the test on a per file basis, as usual with rules using
9272             $(VC_LIST_EXCEPT)
9273           - replace the default doubled-word-selecting regexp (affects all files)
9274           - ignore a particular file-vs-doubled-word match
9275         I nearly used that last one to ignore the "is is" match in
9276         coreutils' NEWS file, since the text was "ls -is is ..."
9277         To do that, I would have added this line to cfg.mk:
9278           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9279         but it would have ignored any "is is" match in NEWS.
9280         Low probability, but still...
9281         Instead, I changed the text, slightly:
9282           -  ls -is is now consistent with ls -lis in ignoring values returned
9283           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9284         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9285         (prohibit_doubled_word_): Define.
9286         (sc_prohibit_doubled_word): New rule.
9287         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9288
9289 2011-04-10  Jim Meyering  <meyering@redhat.com>
9290
9291         maint: fix doubled-word typo in comment
9292         * m4/gethostname.m4: s/is is/it is/
9293         * m4/getdomainname.m4: Likewise.
9294
9295 2011-04-10  Jim Meyering  <meyering@redhat.com>
9296
9297         maint: remove doubled word: s/it it/it/
9298         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9299
9300 2011-04-10  Jim Meyering  <meyering@redhat.com>
9301
9302         maint.mk: remove useless semicolon and backslash
9303         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9304         semicolon and backslash.
9305
9306 2011-04-10  Bruno Haible  <bruno@clisp.org>
9307
9308         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9309         * modules/stdint-tests (Depends-on): Add wchar.
9310
9311 2011-04-10  Jim Meyering  <meyering@redhat.com>
9312
9313         maint: remove doubled words in comments, e.g., s/a a/a/
9314         * lib/strptime.c (day_of_the_week): s/the the/the/
9315         * tests/test-chown.h (test_chown): s/a a/a/
9316
9317         test-chown.h: correct a cast
9318         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9319         when the destination is a stat.st_gid.
9320
9321 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9322
9323         getaddrinfo: Fix test for sa_len member.
9324         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9325         include <sys/types.h> before <sys/socket.h>.
9326
9327 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9328
9329         maint: change "can not" to "cannot"
9330         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9331         boundaries.
9332
9333 2011-04-09  Jim Meyering  <meyering@redhat.com>
9334
9335         maint: change "a a" to "a"
9336         * tests/test-lchown.h (test_lchown): s/a a/a/
9337
9338         maint.mk: prohibit \<the the\>
9339         * top/maint.mk (sc_prohibit_the_the): New rule.
9340
9341         maint: fix "the the" in comment
9342         * lib/count-one-bits.h: s/the the/the/
9343
9344         maint: change "can not" to "cannot"
9345         But do not change the occurrences in maintain.texi or in
9346         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9347         * doc/gnulib-tool.texi: s/can not/cannot/
9348         * doc/posix-functions/accept.texi (accept): Likewise.
9349         * doc/posix-functions/socket.texi (socket): Likewise.
9350         * lib/mbrtowc.c: Likewise.
9351
9352         maint.mk: prohibit use of "can not"
9353         * top/maint.mk (sc_prohibit_can_not): New rule.
9354         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9355
9356 2011-04-09  Bruno Haible  <bruno@clisp.org>
9357
9358         careadlinkat: Guard against misuse of careadlinkatcwd.
9359         * lib/careadlinkat.c: Include <stdlib.h>.
9360         (careadlinkatcwd): Check that the fd argument is as expected.
9361
9362 2011-04-09  Bruno Haible  <bruno@clisp.org>
9363
9364         careadlinkat: Use common coding style.
9365         * lib/careadlinkat.c: Move gnulib includes after system includes.
9366
9367 2011-04-09  Bruno Haible  <bruno@clisp.org>
9368
9369         careadlinkat: Clarify specification.
9370         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9371         (careadlinkatcwd): Add comment.
9372         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9373
9374 2011-04-09  Bruno Haible  <bruno@clisp.org>
9375
9376         areadlinkat: Avoid link error on many platforms.
9377         * modules/areadlinkat (Depends-on): Add areadlink.
9378
9379 2011-04-09  Bruno Haible  <bruno@clisp.org>
9380
9381         allocator, careadlinkat: Fix double-inclusion guard.
9382         * lib/allocator.h: Fix double-inclusion guard.
9383         * lib/careadlinkat.h: Likewise.
9384
9385 2011-04-09  Bruno Haible  <bruno@clisp.org>
9386
9387         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9388         * lib/relocwrapper.c: Update dependencies hierarchy.
9389         * build-aux/install-reloc: Update list of files to be compiled.
9390         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9391         lib/allocator.[hc].
9392
9393 2011-04-08  Eric Blake  <eblake@redhat.com>
9394
9395         strftime: silence gnulib-tool warning
9396         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9397
9398 2011-04-08  Bruno Haible  <bruno@clisp.org>
9399
9400         verify: Fix syntax error with GCC 4.6 in C++ mode.
9401         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9402         (HAVE_STATIC_ASSERT): New macro.
9403         (verify_true, verify): Use 'static_assert' if it is supported and
9404         '_Static_assert' is not supported.
9405
9406 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9407
9408         allocator: New module.
9409         * modules/allocator, lib/allocator.c: New files.
9410         * lib/allocator.h (stdlib_allocator): New decl.
9411         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9412         Remove.  Do not include <stdlib.h>.
9413         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9414         * modules/careadlinkat (Files): Remove lib/allocator.h.
9415         (Depends-on): Add allocator.
9416
9417         stdlib: let modules use system malloc, realloc
9418         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9419         if !_GL_USE_STDLIB_ALLOC.
9420         (malloc, realloc): Limit this change to a smaller scope.
9421
9422         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9423         (malloc, realloc): Don't #undef; no longer needed.
9424         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9425         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9426         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9427         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9428         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9429         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9430         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9431         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9432
9433         careadlinkat: rename members to avoid problem
9434         * lib/allocator.h (struct allocator): Rename members from
9435         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9436         and realloc are #define'd.  Reported by Eric Blake in
9437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9438         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9439
9440 2011-04-08  Eric Blake  <eblake@redhat.com>
9441
9442         nonblocking: reduce dependency
9443         * tests/test-nonblocking.c: Only test sockets when in use.
9444         * modules/nonblocking-tests (Depends-on): Drop socket.
9445         (Makefile.am): Link even if sockets are not present.
9446         * modules/pipe2-tests (Makefile.am): Likewise.
9447         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9448
9449         pipe2: fix O_NONBLOCK support on mingw
9450         * modules/pipe2 (Depends-on): Add nonblocking.
9451         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9452         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9453         * tests/test-nonblocking.c (main): Likewise.
9454         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9455
9456         fcntl-h: fix O_ACCMODE on cygwin
9457         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9458         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9459
9460         pipe-filter: drop O_NONBLOCK workarounds
9461         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9462         * modules/pipe-filter-ii (Depends-on): Likewise.
9463         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9464
9465         nonblocking: provide O_NONBLOCK for mingw
9466         * modules/nonblocking (Depends-on): Add open.
9467         (configure.ac): Set new witness macro.
9468         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9469         * modules/fcntl-h (Makefile.am): Substitute it.
9470         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9471         nonblocking module is in use.
9472         * lib/nonblocking.c: Adjust portability test.
9473         * lib/open.c (open): Don't let native open see gnulib flag.
9474         * tests/test-fcntl-h.c (main): Enhance test.
9475         * tests/test-open.h (test_open): Likewise.
9476         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9477
9478         careadlinkat: fix compilation error on mingw
9479         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9480         within struct allocator.
9481
9482 2011-04-06  Eric Blake  <eblake@redhat.com>
9483
9484         binary-io: relicense under LGPLv2+
9485         * modules/binary-io (License): Relax to LGPLv2+.
9486         Requested for libvirt, and required by pipe2.
9487
9488 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9489
9490         verify: use _Static_assert if available
9491         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9492         (verify_true, verify): Use it if available.  This generates better
9493         diagnostics with GCC 4.6.0 and later.
9494
9495 2011-04-05  Bruno Haible  <bruno@clisp.org>
9496
9497         Remove leftover generated .h files after config.status changed.
9498
9499         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9500         GL_GENERATE_ALLOCA_H.
9501         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9502         GL_GENERATE_ALLOCA_H evaluates to false.
9503
9504         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9505         GL_GENERATE_ARGZ_H.
9506         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9507         evaluates to false.
9508
9509         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9510         GL_GENERATE_BYTESWAP_H.
9511         * modules/byteswap (Makefile.am): Remove byteswap.h if
9512         GL_GENERATE_BYTESWAP_H evaluates to false.
9513
9514         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9515         GL_GENERATE_ERRNO_H.
9516         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9517         evaluates to false.
9518
9519         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9520         GL_GENERATE_FLOAT_H.
9521         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9522         evaluates to false.
9523
9524         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9525         GL_GENERATE_FNMATCH_H.
9526         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9527         GL_GENERATE_FNMATCH_H evaluates to false.
9528
9529         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9530         GL_GENERATE_GLOB_H.
9531         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9532         evaluates to false.
9533
9534         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9535         automake conditional GL_GENERATE_ICONV_H.
9536         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9537         evaluates to false.
9538
9539         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9540         GL_GENERATE_NETINET_IN_H.
9541         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9542         GL_GENERATE_NETINET_IN_H evaluates to false.
9543
9544         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9545         conditional GL_GENERATE_PTHREAD_H.
9546         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9547         * modules/pthread (Makefile.am): Remove pthread.h if
9548         GL_GENERATE_PTHREAD_H evaluates to false.
9549
9550         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9551         GL_GENERATE_SCHED_H.
9552         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9553         evaluates to false.
9554
9555         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9556         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9557         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9558         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9559
9560         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9561         GL_GENERATE_STDARG_H.
9562         * modules/stdarg (Makefile.am): Remove stdarg.h if
9563         GL_GENERATE_STDARG_H evaluates to false.
9564
9565         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9566         GL_GENERATE_STDBOOL_H.
9567         * modules/stdbool (Makefile.am): Remove stdbool.h if
9568         GL_GENERATE_STDBOOL_H evaluates to false.
9569
9570         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9571         conditional GL_GENERATE_STDDEF_H.
9572         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9573         * modules/stddef (Makefile.am): Remove stddef.h if
9574         GL_GENERATE_STDDEF_H evaluates to false.
9575
9576         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9577         GL_GENERATE_STDINT_H.
9578         * modules/stdint (Makefile.am): Remove stdint.h if
9579         GL_GENERATE_STDINT_H evaluates to false.
9580
9581         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9582         GL_GENERATE_SYSEXITS_H.
9583         * modules/sysexits (Makefile.am): Remove sysexits.h if
9584         GL_GENERATE_SYSEXITS_H evaluates to false.
9585
9586         Reported by Karl Berry and Ralf Wildenhues.
9587
9588 2011-04-05  Bruno Haible  <bruno@clisp.org>
9589
9590         Ensure to rebuild generated .h files when config.status has changed.
9591         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9592         config.status.
9593         * modules/ctype (Makefile.am): Likewise.
9594         * modules/dirent (Makefile.am): Likewise.
9595         * modules/errno (Makefile.am): Likewise.
9596         * modules/fcntl-h (Makefile.am): Likewise.
9597         * modules/float (Makefile.am): Likewise.
9598         * modules/getopt-posix (Makefile.am): Likewise.
9599         * modules/glob (Makefile.am): Likewise.
9600         * modules/iconv-h (Makefile.am): Likewise.
9601         * modules/inttypes (Makefile.am): Likewise.
9602         * modules/langinfo (Makefile.am): Likewise.
9603         * modules/locale (Makefile.am): Likewise.
9604         * modules/math (Makefile.am): Likewise.
9605         * modules/netdb (Makefile.am): Likewise.
9606         * modules/netinet_in (Makefile.am): Likewise.
9607         * modules/poll-h (Makefile.am): Likewise.
9608         * modules/pthread (Makefile.am): Likewise.
9609         * modules/pty (Makefile.am): Likewise.
9610         * modules/sched (Makefile.am): Likewise.
9611         * modules/search (Makefile.am): Likewise.
9612         * modules/selinux-h (Makefile.am): Likewise.
9613         * modules/signal (Makefile.am): Likewise.
9614         * modules/spawn (Makefile.am): Likewise.
9615         * modules/stdarg (Makefile.am): Likewise.
9616         * modules/stdbool (Makefile.am): Likewise.
9617         * modules/stddef (Makefile.am): Likewise.
9618         * modules/stdint (Makefile.am): Likewise.
9619         * modules/stdio (Makefile.am): Likewise.
9620         * modules/stdlib (Makefile.am): Likewise.
9621         * modules/string (Makefile.am): Likewise.
9622         * modules/strings (Makefile.am): Likewise.
9623         * modules/sys_file (Makefile.am): Likewise.
9624         * modules/sys_ioctl (Makefile.am): Likewise.
9625         * modules/sys_select (Makefile.am): Likewise.
9626         * modules/sys_socket (Makefile.am): Likewise.
9627         * modules/sys_stat (Makefile.am): Likewise.
9628         * modules/sys_time (Makefile.am): Likewise.
9629         * modules/sys_times (Makefile.am): Likewise.
9630         * modules/sys_utsname (Makefile.am): Likewise.
9631         * modules/sys_wait (Makefile.am): Likewise.
9632         * modules/sysexits (Makefile.am): Likewise.
9633         * modules/termios (Makefile.am): Likewise.
9634         * modules/time (Makefile.am): Likewise.
9635         * modules/unistd (Makefile.am): Likewise.
9636         * modules/wchar (Makefile.am): Likewise.
9637         * modules/wctype-h (Makefile.am): Likewise.
9638         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9639
9640 2011-04-05  Bruno Haible  <bruno@clisp.org>
9641
9642         pipe2: Relicense under LGPLv2+.
9643         * modules/pipe2 (License): Change to LGPLv2+.
9644         Requested by Eric Blake, for libvirt.
9645
9646 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9647
9648         bootstrap: compute gnulib_extra_files after updating build_aux
9649         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9650         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9651
9652 2011-04-05  Eric Blake  <eblake@redhat.com>
9653
9654         bootstrap: preserve git whitelist item sorting
9655         * build-aux/bootstrap (sort_patterns): New function.
9656         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9657
9658 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9659
9660         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9661         sc_space_tab check.
9662
9663 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9664
9665         areadlink, areadlinkat: rewrite in terms of careadlinkat
9666         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9667         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9668         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9669         (malloc, realloc): Remove #undefs.
9670         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9671         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9672         readlink, ssize_t, stdint, unistd.
9673         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9674         areadlink, stdint.
9675
9676         careadlinkat: new module
9677         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9678         * modules/careadlinkat: New files, written by me with
9679         a review and feedback from Ben Pfaff in
9680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9681
9682 2011-04-01  Bruno Haible  <bruno@clisp.org>
9683
9684         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9685         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9686         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9687         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9688         Reported by Bruce Korb <bruce.korb@gmail.com>.
9689
9690 2011-04-01  Bruno Haible  <bruno@clisp.org>
9691
9692         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9693         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9694         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9695         * modules/wcpcpy (Depends-on): Add extensions.
9696         * modules/wcpncpy (Depends-on): Likewise.
9697         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9698         systems.
9699         * doc/posix-functions/wcpncpy.texi: Likewise.
9700         * doc/posix-functions/wcwidth.texi: Likewise.
9701
9702 2011-03-31  Eric Blake  <eblake@redhat.com>
9703
9704         nonblocking: fix mingw test failures
9705         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9706         non-blocking flag on regular file.
9707         (get_nonblocking_flag): Set errno on invalid fd.
9708         * tests/test-nonblocking.c (main): Avoid test failure on
9709         directories if fchdir is not active.
9710         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9711
9712 2011-03-31  Bruno Haible  <bruno@clisp.org>
9713
9714         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9715         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9716         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9717         Reported by Simon Josefsson <simon@josefsson.org>.
9718
9719 2011-03-31  Bruno Haible  <bruno@clisp.org>
9720         and Eric Blake  <eblake@redhat.com>
9721
9722         nonblocking: new module
9723         * modules/nonblocking: New module.
9724         * modules/nonblocking-tests: Likewise.
9725         * lib/nonblocking.h: New file.
9726         * lib/nonblocking.c: Likewise.
9727         * tests/test-nonblocking.c: New test.
9728         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9729
9730 2011-03-30  Bruno Haible  <bruno@clisp.org>
9731
9732         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9733         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9734         instead of 'printf' format for GCC >= 4.4.
9735         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9736         (fprintf, printf, vfprintf, vprintf): Declare with
9737         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9738         the system's vfprintf() function.
9739         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9740
9741 2011-03-30  Eric Blake  <eblake@redhat.com>
9742
9743         passfd: fix scoping bug
9744         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9745         before sendmsg/recvmsg.
9746
9747         passfd: standardize coding conventions
9748         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9749         can be learned at compile time.
9750         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9751         ifdefs.
9752         (sendfd, recvfd): Follow gnulib code conventions.
9753
9754         passfd: fix incorrect sendmsg arguments
9755         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9756         incorrect msg_controllen value.
9757         * modules/passfd-tests (Depends-on): Check for alarm.
9758         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9759         Reported by Bastien ROUCARIES.
9760
9761 2011-03-30  Bruno Haible  <bruno@clisp.org>
9762
9763         c-strcasestr: Relicense under LGPLv2+.
9764         * modules/c-strcasestr (License): Change to LGPLv2+.
9765         Requested by Eric Blake, for libvirt.
9766
9767 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9768
9769         * users.txt: Add libidn2.  Fix libtasn1 link.
9770
9771 2011-03-30  Jim Meyering  <meyering@redhat.com>
9772
9773         tests: readlink* ("",... fails with EINVAL on newer kernels
9774         readlink and readlinkat have typically failed with ENOENT for
9775         the invalid, empty file name,  "".  However, with the advent
9776         of linux-2.6.39, they fail with EINVAL.
9777         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9778         when operating on the empty file name.
9779         * tests/test-readlink.h (test_readlink): Likewise.
9780
9781 2011-03-29  Bruno Haible  <bruno@clisp.org>
9782
9783         Relicense some modules under LGPLv2+, for libidn2.
9784         * modules/array-mergesort (License): Change to LGPLv2+.
9785         * modules/c-strcaseeq (License): Likewise.
9786         * modules/striconveh (License): Likewise.
9787         * modules/striconveha (License): Likewise.
9788         * modules/uniconv/base (License): Likewise.
9789         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9790         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9791         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9792         * modules/unictype/base (License): Likewise.
9793         * modules/unictype/bidiclass-of (License): Likewise.
9794         * modules/unictype/category-M (License): Likewise.
9795         * modules/unictype/category-none (License): Likewise.
9796         * modules/unictype/category-of (License): Likewise.
9797         * modules/unictype/category-test (License): Likewise.
9798         * modules/unictype/category-test-withtable (License): Likewise.
9799         * modules/unictype/combining-class (License): Likewise.
9800         * modules/unictype/joiningtype-of (License): Likewise.
9801         * modules/unictype/scripts (License): Likewise.
9802         * modules/uninorm/base (License): Likewise.
9803         * modules/uninorm/canonical-decomposition (License): Likewise.
9804         * modules/uninorm/composition (License): Likewise.
9805         * modules/uninorm/decompose-internal (License): Likewise.
9806         * modules/uninorm/decomposition-table (License): Likewise.
9807         * modules/uninorm/nfc (License): Likewise.
9808         * modules/uninorm/nfd (License): Likewise.
9809         * modules/uninorm/u32-normalize (License): Likewise.
9810         * modules/unistr/base (License): Likewise.
9811         * modules/unistr/u32-cpy (License): Likewise.
9812         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9813         * modules/unistr/u32-to-u8 (License): Likewise.
9814         * modules/unistr/u32-uctomb (License): Likewise.
9815         * modules/unistr/u8-check (License): Likewise.
9816         * modules/unistr/u8-mblen (License): Likewise.
9817         * modules/unistr/u8-mbtouc (License): Likewise.
9818         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9819         * modules/unistr/u8-mbtoucr (License): Likewise.
9820         * modules/unistr/u8-prev (License): Likewise.
9821         * modules/unistr/u8-strlen (License): Likewise.
9822         * modules/unistr/u8-to-u32 (License): Likewise.
9823         * modules/unistr/u8-uctomb (License): Likewise.
9824         * modules/unitypes (License): Likewise.
9825         Requested by Simon Josefsson.
9826
9827 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9828
9829         lib-symbol-visibility: Add a notice.
9830         * modules/lib-symbol-visibility (Notice): New field.
9831
9832 2011-03-29  Bruno Haible  <bruno@clisp.org>
9833
9834         getaddrinfo: Doc fix.
9835         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9836         section "fixed in Gnulib".
9837
9838 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9839
9840         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9841         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9842
9843 2011-03-26  Bruno Haible  <bruno@clisp.org>
9844
9845         unictype/property-byname: Reduce the number of load-time relocations.
9846         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9847         (UC_PROPERTY_INDEX_*): New enumeration values.
9848         (uc_property_byname): Convert an index from the lookup table to an
9849         uc_property_t.
9850         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9851         values.
9852
9853 2011-03-26  Bruno Haible  <bruno@clisp.org>
9854
9855         unictype/property-byname: Allow omitted word separators and aliases.
9856         * lib/unictype/pr_byname.gperf: Add property names without word
9857         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9858         for 'space'.
9859
9860 2011-03-26  Bruno Haible  <bruno@clisp.org>
9861
9862         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9863         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9864         also hyphens to space.
9865         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9866         without spaces.
9867         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9868
9869 2011-03-26  Bruno Haible  <bruno@clisp.org>
9870
9871         unictype/joiningtype-byname: Recognize long names as well.
9872         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9873         a long name.
9874         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9875         unictype/joiningtype_byname.h.
9876         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9877         * lib/unictype/joiningtype_byname.gperf: New file.
9878         * modules/unictype/joiningtype-byname (Files): Add
9879         lib/unictype/joiningtype_byname.gperf.
9880         (Depends-on): Add gperf.
9881         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9882         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9883         long names.
9884
9885         Tests for module 'unictype/joiningtype-longname'.
9886         * modules/unictype/joiningtype-longname-tests: New file.
9887         * tests/unictype/test-joiningtype_longname.c: New file.
9888
9889         New module 'unictype/joiningtype-longname'.
9890         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9891         * lib/unictype/joiningtype_longname.c: New file.
9892         * modules/unictype/joiningtype-longname: New file.
9893         * modules/unictype/joiningtype-all (Depends-on): Add
9894         unictype/joiningtype-longname.
9895
9896 2011-03-26  Bruno Haible  <bruno@clisp.org>
9897
9898         unictype/bidiclass-byname: Recognize long names as well.
9899         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9900         name.
9901         * lib/unictype/bidi_byname.c: Include <string.h>,
9902         unictype/bidi_byname.h.
9903         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9904         * lib/unictype/bidi_byname.gperf: New file.
9905         * modules/unictype/bidiclass-byname (Files): Add
9906         lib/unictype/bidi_byname.gperf.
9907         (Depends-on): Add gperf.
9908         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9909         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9910         long names.
9911
9912         Tests for module 'unictype/bidiclass-longname'.
9913         * modules/unictype/bidiclass-longname-tests: New file.
9914         * tests/unictype/test-bidi_longname.c: New file.
9915
9916         New module 'unictype/bidiclass-longname'.
9917         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9918         * lib/unictype/bidi_longname.c: New file.
9919         * modules/unictype/bidiclass-longname: New file.
9920         * modules/unictype/bidiclass-all (Depends-on): Add
9921         unictype/bidiclass-longname.
9922
9923 2011-03-26  Bruno Haible  <bruno@clisp.org>
9924
9925         unictype/bidi*: Rename modules.
9926         * modules/unictype/bidiclass-all: Renamed from
9927         modules/unictype/bidicategory-all.
9928         * modules/unictype/bidiclass-name: Renamed from
9929         modules/unictype/bidiclass-name.
9930         (Description): Update.
9931         * modules/unictype/bidiclass-name-tests: Renamed from
9932         modules/unictype/bidicategory-name-tests.
9933         * modules/unictype/bidiclass-byname: Renamed from
9934         modules/unictype/bidicategory-byname.
9935         (Description): Update.
9936         * modules/unictype/bidiclass-byname-tests: Renamed from
9937         modules/unictype/bidicategory-byname-tests.
9938         * modules/unictype/bidiclass-of: Renamed from
9939         modules/unictype/bidicategory-of.
9940         (Description): Update.
9941         * modules/unictype/bidiclass-of-tests: Renamed from
9942         modules/unictype/bidicategory-of-tests.
9943         * modules/unictype/bidiclass-test: Renamed from
9944         modules/unictype/bidicategory-test.
9945         (Description): Update.
9946         * modules/unictype/bidiclass-test-tests: Renamed from
9947         modules/unictype/bidicategory-test-tests.
9948         * modules/unictype/bidicategory-all: New file, a simple redirection.
9949         * modules/unictype/bidicategory-name: Likewise.
9950         * modules/unictype/bidicategory-byname: Likewise.
9951         * modules/unictype/bidicategory-of: Likewise.
9952         * modules/unictype/bidicategory-test: Likewise.
9953         * modules/unictype/property-bidi-* (Dependencies): Update.
9954         * lib/unictype/bidi_*.c: Update comment.
9955
9956 2011-03-26  Bruno Haible  <bruno@clisp.org>
9957
9958         unictype/bidi*: Rename functions, part 2.
9959         * modules/unictype/bidicategory-name (configure.ac): Update required
9960         libunistring version.
9961         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9962
9963 2011-03-25  Bruno Haible  <bruno@clisp.org>
9964
9965         New module 'unictype/combining-class-all'.
9966         * modules/unictype/combining-class-all: New file.
9967
9968         Tests for module 'unictype/combining-class-byname'.
9969         * modules/unictype/combining-class-byname-tests: New file.
9970         * tests/unictype/test-combiningclass_byname.c: New file.
9971
9972         New module 'unictype/combining-class-byname'.
9973         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9974         * lib/unictype/combiningclass_byname.c: New file.
9975         * lib/unictype/combiningclass_byname.gperf: New file.
9976         * modules/unictype/combining-class-byname: New file.
9977
9978         Tests for module 'unictype/combining-class-longname'.
9979         * modules/unictype/combining-class-longname-tests: New file.
9980         * tests/unictype/test-combiningclass_longname.c: New file.
9981
9982         New module 'unictype/combining-class-longname'.
9983         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9984         * lib/unictype/combiningclass_longname.c: New file.
9985         * modules/unictype/combining-class-longname: New file.
9986
9987         Tests for module 'unictype/combining-class-name'.
9988         * modules/unictype/combining-class-name-tests: New file.
9989         * tests/unictype/test-combiningclass_name.c: New file.
9990
9991         New module 'unictype/combining-class-name'.
9992         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9993         * lib/unictype/combiningclass_name.c: New file.
9994         * modules/unictype/combining-class-name: New file.
9995
9996 2011-03-25  Bruno Haible  <bruno@clisp.org>
9997
9998         unictype/combining-class: Rename source files.
9999         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10000         of unictype/combining.h.
10001         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10002         Update.
10003         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10004         * modules/unictype/combining-class (Description): Fix.
10005         (Files, Makefile.am): Update.
10006         * tests/unictype/test-combiningclass.c: Renamed from
10007         tests/unictype/test-combining.c.
10008         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10009
10010 2011-03-25  Bruno Haible  <bruno@clisp.org>
10011
10012         unictype: Update list of canonical combining classes.
10013         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10014
10015 2011-03-25  Bruno Haible  <bruno@clisp.org>
10016
10017         unictype/category-byname: Recognize long names as well.
10018         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10019         a long name.
10020         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10021         unictype/categ_byname.h.
10022         (UC_CATEGORY_INDEX_*): New enumeration values.
10023         (uc_general_category_byname): Use uc_general_category_lookup and
10024         convert from index to value.
10025         * lib/unictype/categ_byname.gperf: New file.
10026         * modules/unictype/category-byname (Files): Add
10027         lib/unictype/categ_byname.gperf.
10028         (Depends-on): Add gperf.
10029         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10030         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10031         long names.
10032
10033         Tests for module 'unictype/category-longname'.
10034         * modules/unictype/category-longname-tests: New file.
10035         * tests/unictype/test-categ_longname.c: New file.
10036
10037         New module 'unictype/category-longname'.
10038         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10039         * lib/unictype/categ_longname.c: New file.
10040         * modules/unictype/category-longname: New file.
10041         * modules/unictype/category-all (Depends-on): Add it.
10042
10043 2011-03-25  Bruno Haible  <bruno@clisp.org>
10044
10045         Tests for module 'unictype/category-LC'.
10046         * modules/unictype/category-LC-tests: New file.
10047         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10048
10049         New module 'unictype/category-LC'.
10050         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10051         (UC_CATEGORY_LC): New declaration.
10052         (UC_CASED_LETTER): New macro.
10053         * lib/gen-uni-tables.c (is_category_LC): New function.
10054         (output_categories): Also handle category LC.
10055         (UC_CATEGORY_MASK_LC): New enumeration value.
10056         (general_category_byname): Also handle category LC.
10057         * lib/unictype/categ_LC.c: New file.
10058         * lib/unictype/categ_LC.h: New file, automatically generated.
10059         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10060         category LC.
10061         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10062         * modules/unictype/category-LC: New file.
10063         * modules/unictype/category-byname (Depends-on): Add
10064         unictype/category-LC.
10065         * modules/unictype/category-all (Depends-on): Likewise.
10066
10067 2011-03-25  Eric Blake  <eblake@redhat.com>
10068
10069         xmalloc: revert yesterday's regression
10070         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10071         realloc's underlying behavior (allowing allocation of zero-size
10072         objects, especially if malloc-gnu is also in use).
10073
10074 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10075
10076         maint.mk: add missing version to VC-tag
10077         * top/maint.mk: git tag was missing actual tag name; add it.
10078
10079         valgrind: do leak checking, and exit with code 1 on error (not 0)
10080         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10081         to VALGRIND.
10082
10083 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10084
10085         posix-modules: say what it does.
10086         * posix-modules: Add a line to the --help output saying what it does.
10087
10088 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10089
10090         xmalloc: Do not leak if underlying realloc is C99 compatible.
10091         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10092         This avoids a leak on C99-based systems.  See
10093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10094
10095 2011-03-24  Eric Blake  <eblake@redhat.com>
10096
10097         realloc: document portability problem
10098         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10099         passing 0 size to realloc.
10100
10101 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10102
10103         doc: update users.txt
10104         * users.txt: Add cvsps, tmpwatch
10105
10106 2011-03-23  Matt Rice  <ratmice@gmail.com>
10107
10108         doc: update users.txt
10109         * users.txt: Add gdb.
10110
10111 2011-03-23  Jim Meyering  <meyering@redhat.com>
10112
10113         doc: update users.txt
10114         Looking through matches up to the following URL (there are still
10115         several more pages), I found several projects that use gnulib:
10116         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10117         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10118         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10119
10120 2011-03-22  Bruno Haible  <bruno@clisp.org>
10121
10122         unictype/bidi*: Rename functions.
10123         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10124         uc_bidi_class, uc_is_bidi_class): New declarations.
10125         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10126         uc_bidi_category_byname.
10127         (uc_bidi_category_byname): New function.
10128         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10129         u_bidi_category_name.
10130         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10131         (uc_bidi_category_name): New function.
10132         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10133         uc_bidi_category.
10134         (uc_bidi_category): New function.
10135         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10136         uc_is_bidi_category. Invoke uc_bidi_class.
10137         (uc_is_bidi_category): New function.
10138         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10139         instead of uc_bidi_category_byname.
10140         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10141         instead of uc_bidi_category_name.
10142         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10143         uc_bidi_category.
10144         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10145         instead of uc_is_bidi_category.
10146
10147 2011-03-21  Bruno Haible  <bruno@clisp.org>
10148
10149         New module 'unictype/joininggroup-all'.
10150         * modules/unictype/joininggroup-all: New file.
10151
10152         Tests for module 'unictype/joininggroup-of'.
10153         * modules/unictype/joininggroup-of-tests: New file.
10154         * tests/unictype/test-joininggroup_of.c: New file.
10155         * tests/unictype/test-joininggroup_of.h: New file, automatically
10156         generated by gen-uni-tables.
10157
10158         New module 'unictype/joininggroup-of'.
10159         * modules/unictype/joininggroup-of: New file.
10160         * lib/unictype/joininggroup_of.c: New file.
10161         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10162         gen-uni-tables.
10163
10164         Tests for module 'unictype/joininggroup-byname'.
10165         * modules/unictype/joininggroup-byname-tests: New file.
10166         * tests/unictype/test-joininggroup_byname.c: New file.
10167
10168         New module 'unictype/joininggroup-byname'.
10169         * modules/unictype/joininggroup-byname: New file.
10170         * lib/unictype/joininggroup_byname.c: New file.
10171         * lib/unictype/joininggroup_byname.gperf: New file.
10172
10173         Tests for module 'unictype/joininggroup-name'.
10174         * modules/unictype/joininggroup-name-tests: New file.
10175         * tests/unictype/test-joininggroup_name.c: New file.
10176
10177         New module 'unictype/joininggroup-name'.
10178         * modules/unictype/joininggroup-name: New file.
10179         * lib/unictype/joininggroup_name.c: New file.
10180         * lib/unictype/joininggroup_name.h: New file.
10181
10182         New module 'unictype/joiningtype-all'.
10183         * modules/unictype/joiningtype-all: New file.
10184
10185         Tests for module 'unictype/joiningtype-of'.
10186         * modules/unictype/joiningtype-of-tests: New file.
10187         * tests/unictype/test-joiningtype_of.c: New file.
10188         * tests/unictype/test-joiningtype_of.h: New file, automatically
10189         generated by gen-uni-tables.
10190
10191         New module 'unictype/joiningtype-of'.
10192         * modules/unictype/joiningtype-of: New file.
10193         * lib/unictype/joiningtype_of.c: New file.
10194         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10195         gen-uni-tables.
10196
10197         Tests for module 'unictype/joiningtype-byname'.
10198         * modules/unictype/joiningtype-byname-tests: New file.
10199         * tests/unictype/test-joiningtype_byname.c: New file.
10200
10201         New module 'unictype/joiningtype-byname'.
10202         * modules/unictype/joiningtype-byname: New file.
10203         * lib/unictype/joiningtype_byname.c: New file.
10204
10205         Tests for module 'unictype/joiningtype-name'.
10206         * modules/unictype/joiningtype-name-tests: New file.
10207         * tests/unictype/test-joiningtype_name.c: New file.
10208
10209         New module 'unictype/joiningtype-name'.
10210         * modules/unictype/joiningtype-name: New file.
10211         * lib/unictype/joiningtype_name.c: New file.
10212
10213         unictype: Add support for Arabic shaping properties.
10214         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10215         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10216         declarations.
10217         (UC_JOINING_GROUP_*): New enumeration values.
10218         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10219         declarations.
10220         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10221         (unicode_joining_type): New variable.
10222         (UC_JOINING_GROUP_*): New enumeration values.
10223         (unicode_joining_group): New variable.
10224         (fill_arabicshaping, joining_type_as_c_identifier,
10225         output_joining_type_test, output_joining_type,
10226         joining_group_as_c_identifier, output_joining_group_test,
10227         output_joining_group): New functions.
10228         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10229         fill_arabicshaping and output_joining_type_test, output_joining_type,
10230         output_joining_group_test, output_joining_group.
10231         Reported by Simon Josefsson.
10232
10233 2011-03-21  Jim Meyering  <meyering@redhat.com>
10234
10235         strftime: fix a bug in yesterday's change
10236         * lib/strftime.c (add): Accommodate width's initial value of -1.
10237         Otherwise, nstrftime would copy uninitialized data into
10238         the result buffer.
10239
10240 2011-03-21  Jim Meyering  <meyering@redhat.com>
10241
10242         tests: add strftime-tests module
10243         * tests/test-strftime.c: New file.
10244         * modules/strftime-tests: New module.
10245
10246 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10247
10248         strftime: don't assume a byte count fits in 'int'
10249         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10250         found this problem by static analysis, using gcc -Wstrict-overflow
10251         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10252         on an integer overflow having undefined behavior, but it turns out
10253         that the argument is a size, which might not fit in 'int' anyway,
10254
10255 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         stdio: don't require ignore_value around fwrite
10258
10259         This patch works around libc bug 11959
10260         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10261         Without this patch, applications must often write
10262         ignore_value (fwrite (...)) even though the ignore_value is
10263         not helpful here.  It's common to write many objects, using
10264         fwrite/printf/etc., and then use ferror to detect output error.
10265
10266         I considered making this patch optional, but decided against it,
10267         because libc is obviously being inconsistent here: there is no
10268         reason libc should insist that user code must inspect fwrite
10269         return's value without also insisting that it inspect printf's,
10270         putchar's, etc.  If user code wants to have a strict style where
10271         all these functions' values are checked (so that ferror need not
10272         be checked), we could add support for that style in a new gnulib
10273         module, but in the meantime it's better to be consistent and to
10274         support common usage.
10275
10276         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10277         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10278         that we are compiling in checking mode, and if not C++, and
10279         if not already wrapping fwrite for some other reason.
10280         (fwrite): #define to rpl_fwrite if the latter is defined.
10281
10282 2011-03-20  Bruno Haible  <bruno@clisp.org>
10283
10284         verror: Fix compilation error introduced on 2011-02-13.
10285         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10286         instead of __attribute__.
10287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10288
10289 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10290             Bruno Haible  <bruno@clisp.org>
10291
10292         socklen: do not depend on sys_socket
10293         While trying to modify Emacs to use gnulib's socklen module,
10294         I discovered a circular dependency: socklen depends on sys_socket
10295         and vice versa.  Emacs can use socklen, but it does not need
10296         sys_socket because it has its own substitute for sys/socket.h.
10297         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10298         gl_TYPE_SOCKLEN_T.
10299         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10300         gl_PREREQ_SYS_H_SOCKET.
10301         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10302         gl_PREREQ_SYS_H_SOCKET.
10303         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10304         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10305         * modules/socklen (Depends-on): Do not depend on sys_socket.
10306         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10307
10308 2011-03-20  Jim Meyering  <meyering@redhat.com>
10309
10310         maint.mk: sort file names *after* new transformation
10311         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10312         prefix would have led to an unwarranted failure in GNU parted.
10313         Sort after that transformation.
10314
10315 2011-03-19  Jim Meyering  <meyering@redhat.com>
10316
10317         maint.mk: fix po-file syntax-check rule
10318         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10319         Patch by Bruno Haible.
10320
10321 2011-03-19  Bruno Haible  <bruno@clisp.org>
10322
10323         socklen: Update comment.
10324         * m4/socklen.m4: Update comment about platforms.
10325
10326 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10327             Bruno Haible  <bruno@clisp.org>
10328
10329         inet_ntop, inet_pton: Simplify.
10330         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10331         documented to provide socklen_t and we already depend on sys_socket.
10332         * modules/inet_pton (Depends-on): Likewise.
10333         * lib/arpa_inet.in.h: Adjust comment.
10334
10335 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10336             Bruno Haible  <bruno@clisp.org>
10337
10338         netdb: Simplify.
10339         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10340         documented to provide socklen_t and we already depend on sys_socket.
10341         * lib/netdb.in.h: Adjust comment.
10342
10343 2011-03-19  Bruno Haible  <bruno@clisp.org>
10344
10345         sys_socket, netdb: Document problem with socklen_t.
10346         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10347         platforms.
10348         * doc/posix-headers/netdb.texi: Likewise.
10349
10350 2011-03-18  Eric Blake  <eblake@redhat.com>
10351
10352         maint.mk: let po check work in VPATH build
10353         * top/maint.mk (po_file): Allow cfg.mk override.
10354         (sc_po_check): Allow VPATH use.
10355         Reported by Jiri Denemark.
10356
10357 2011-03-16  Jim Meyering  <meyering@redhat.com>
10358
10359         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10360         Before, you would have had to create one .x-sc_ file per rule in order
10361         to exempt offending files.  Now, you may instead use a Make variable --
10362         usually defined in cfg.mk -- whose name identifies the affected rule.
10363         * top/maint.mk (_sc_excl): Define.
10364         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10365         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10366
10367 2011-03-13  Bruno Haible  <bruno@clisp.org>
10368
10369         ignore-value tests: Avoid warnings.
10370         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10371         empty for gcc < 3.4.
10372
10373 2011-03-13  Bruno Haible  <bruno@clisp.org>
10374
10375         passfd: Fix link error on Solaris.
10376         * modules/passfd (Description): Correct.
10377         (Depends-on): Add socketlib.
10378         (Link): New section.
10379         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10380
10381 2011-03-13  Bruno Haible  <bruno@clisp.org>
10382
10383         passfd: Fix link error on AIX 5.2.
10384         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10385
10386 2011-03-13  Bruno Haible  <bruno@clisp.org>
10387
10388         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10389         * lib/sys_socket.in.h: Include <stddef.h>.
10390         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10391         CMSG_FIRSTHDR. Remove unused variable.
10392
10393 2011-03-13  Bruno Haible  <bruno@clisp.org>
10394
10395         passfd: Fix compilation error on OpenBSD.
10396         * lib/passfd.c: Include <sys/uio.h>.
10397
10398 2011-03-13  Bruno Haible  <bruno@clisp.org>
10399
10400         passfd test: Fix warnings.
10401         * tests/test-passfd.c: Include <sys/wait.h>.
10402         (main): Fix typo.
10403
10404 2011-03-13  Bruno Haible  <bruno@clisp.org>
10405
10406         passfd module, part 4, tweaks.
10407         * tests/test-passfd.c: Reorder includes.
10408         (main): Fix perror and printf calls.
10409
10410 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10411
10412         passfd module, part 4.
10413         * modules/passfd-tests: New file.
10414         * tests/test-passfd.c: New file.
10415
10416 2011-03-13  Jim Meyering  <meyering@redhat.com>
10417
10418         Makefile: rely on GNU make; derive syntax-check rule names
10419         Rather than requiring that each sc_ rule be listed as a dependent
10420         of "check", use features of GNU make to derive the list.
10421         * Makefile (syntax-check-rules): Define.
10422         (check): Depend on the new variable, not the hard-coded list.
10423
10424 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10425             Bruno Haible  <bruno@clisp.org>
10426
10427         passfd module, part 3.
10428         * lib/passfd.h (recvfd): Add a flags argument.
10429         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10430         (recvfd): Add a flags argument.
10431         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10432         exists.
10433         * modules/passfd (Depends-on): Add cloexec.
10434         Suggested by Eric Blake.
10435
10436 2011-03-13  Bruno Haible  <bruno@clisp.org>
10437
10438         passfd module, part 2, tweaks.
10439         * modules/passfd (Files): Reorder.
10440         (Depends-on): Remove errno.
10441         (Include): Remove <sys/socket.h>, <sys/un.h>.
10442         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10443         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10444         specification header. Include <sys/socket.h> always. Don't include
10445         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10446         (sendfd): Clarify that it sets errno when it fails.
10447         (recvfd): Fix specification.
10448
10449 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10450
10451         passfd module, part 2.
10452         * modules/passfd: New file.
10453         * lib/passfd.h: New file.
10454         * lib/passfd.c: New file.
10455
10456 2011-03-12  Bruno Haible  <bruno@clisp.org>
10457
10458         wcswidth, mbswidth: Avoid integer overflow.
10459         * lib/wcswidth.c: Include <limits.h>.
10460         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10461         * lib/mbswidth.c: Include <limits.h>.
10462         (mbsnwidth): Avoid 'int' overflow.
10463         Reported by Jim Meyering.
10464
10465 2011-03-12  Bruno Haible  <bruno@clisp.org>
10466
10467         futimens, utimensat: Avoid endless recursion on Solaris 10.
10468         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10469         Solaris.
10470         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10471         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10472
10473 2011-03-11  Jim Meyering  <meyering@redhat.com>
10474
10475         maint.mk: relax a regexp to accommodate other formatting styles
10476         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10477         between "ngettext" and the following "(".
10478
10479 2011-03-11  Pádraig Brady <P@draigBrady.com>
10480
10481         maint.mk: suppress a false positive warning
10482         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10483         diagnostics are marked with ngettext.
10484
10485 2011-03-10  Eric Blake  <eblake@redhat.com>
10486
10487         wchar: add explicit dependencies, for Tru64
10488         * modules/mbmemcasecoll (Depends-on): Add wchar.
10489         * modules/mbtowc (Depends-on): Likewise.
10490         * modules/vasnprintf (Depends-on): Likewise.
10491         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10492         * modules/wctomb (Depends-on): Likewise.
10493         Reported by Peter O'Gorman.
10494
10495 2011-03-08  Bruno Haible  <bruno@clisp.org>
10496
10497         passfd module, part 1, tweaks.
10498         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10499         Improve indentation. Improve AC_MSG_CHECKING messages.
10500         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10501         gl_SOCKET_FAMILIES.
10502
10503 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10504
10505         passfd module, part 1.
10506         * m4/afunix.m4: New file.
10507         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10508         sockets.
10509
10510 2011-03-08  Bruno Haible  <bruno@clisp.org>
10511
10512         regex-quote: New API.
10513         * lib/regex-quote.h: Include <stdbool.h>.
10514         (struct regex_quote_spec): New type.
10515         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10516         New declarations.
10517         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10518         'const struct regex_quote_spec *' argument.
10519         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10520         (pcre_special): New constant.
10521         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10522         New functions.
10523         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10524         'const struct regex_quote_spec *' argument.
10525         * modules/regex-quote (Depends-on): Add stdbool.
10526         * tests/test-regex-quote.c (check): Update for new API. Add test for
10527         anchored results.
10528         * NEWS: Mention the API change.
10529         Reported by Reuben Thomas and Eric Blake.
10530
10531 2011-03-06  Bruno Haible  <bruno@clisp.org>
10532
10533         regex-quote: Fix creation of POSIX extended regular expressions.
10534         * lib/regex-quote.c (ere_special): Add grouping and alternation
10535         operators.
10536
10537 2011-03-05  Bruno Haible  <bruno@clisp.org>
10538
10539         doc: Improve doc regarding autopoint vs. gnulib.
10540         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10541         disable autopoint while running autoreconf.
10542         Suggested by Ralf Wildenhues.
10543
10544 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10545
10546         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10547         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10548
10549 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10550
10551         parse-duration: remove xalloc.h dependency
10552         * lib/parse-duration.c (parse_period): handle NULL return from
10553         strdup instead of calling xstrdup().
10554         * modules/parse-duration: remove "xalloc" dependency
10555
10556 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10557
10558         bootstrap: honor m4_base when running aclocal
10559         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10560
10561 2011-03-02  Jim Meyering  <meyering@redhat.com>
10562
10563         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10564         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10565         on request from Matt Booth.
10566
10567 2011-03-01  Eric Blake  <eblake@redhat.com>
10568
10569         test-link: work on Hurd
10570         * tests/test-link.h (test_link): Hurd rejects linking directories
10571         with EISDIR instead of the POSIX-mandated EPERM.
10572
10573 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10574
10575         stdio: simplify by moving files to printf-posix, sigpipe
10576         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10577         since this symbol is needed only if printf is replaced.
10578         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10579         Require gl_ASM_SYMBOL_PREFIX.
10580         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10581         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10582         (Depends-on): Add 'raise'.
10583         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10584         * modules/stdio (Files): Remove lib/stdio-write.c,
10585         m4/asm-underscore.m4.
10586         (Depends-on): Remove 'raise'.
10587
10588         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10589         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10590         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10591         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10592
10593 2011-02-28  Bruno Haible  <bruno@clisp.org>
10594
10595         localcharset: Assume ANSI C behaviour of free().
10596         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10597         calling free().
10598         Suggested by Simon Josefsson <simon@josefsson.org>.
10599
10600 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10601             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10602             Bruno Haible  <bruno@clisp.org>  (tiny change)
10603
10604         On Cygwin, use /proc file system instead of win32 API.
10605         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10606         Win32 file names.
10607         (DllMain): Simplify by removing Cygwin specific code.
10608         (find_shared_library_fullname): Use Linux specific implementation also
10609         for Cygwin.
10610         (get_shared_library_fullname): Update accordingly.
10611         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10612         Win32 file names.
10613         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10614         Cygwin specific code.
10615
10616 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10617             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10618
10619         Fix OpenMP flag detection for various Fortran compilers.
10620         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10621         OpenMP-conditional compilation construct, to force compile
10622         failure with missing OpenMP flag.
10623         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10624
10625 2011-02-25  Eric Blake  <eblake@redhat.com>
10626
10627         strstr: expand test coverage
10628         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10629         compilation.
10630         * tests/test-memmem.c (main): Duplicate tests.
10631         * tests/test-strcasestr.c (main): Likewise.
10632         * tests/test-c-strcasestr.c (main): Likewise.
10633
10634 2011-02-25  Jim Meyering  <meyering@redhat.com>
10635
10636         maint.mk: detect missing-NL-at-EOF, too
10637         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10638         it also detects when a file lacks a newline at EOF.
10639         (require_exactly_one_NL_at_EOF_): Renamed from
10640         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10641         since people may well have .x-sc_... file names tied to the
10642         existing name.  Suggested by Eric Blake.
10643
10644 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10645
10646         dirname: move m4/dos.m4 functionality into lib/dosname.h
10647
10648         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10649         extracts symbols from it, puts them into config.h; but it's much
10650         easier to use the symbols directly.  filename.h already does this,
10651         but it disagrees with dos.m4 in some respects.  This patch
10652         introduces a different include file dosname.h that packages up
10653         dos.m4, and then later we can work on merging filename.h and
10654         dosname.h.  Applications that need only the easy-to-configure
10655         symbols should consider including dosname.h rather than dirname.h.
10656         * NEWS: Mention incompatible changes.
10657         * m4/dos.m4: Remove.
10658         * lib/dosname.h, modules/dosname: New files.
10659         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10660         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10661         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10662         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10663         Include dosname.h, not dirname.h.
10664         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10665         Include dosname.h, for definitions of symbols like ISSLASH
10666         that used to be in config.h.
10667         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10668         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10669         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10670         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10671         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10672         * modules/rmdir (Files): Likewise.
10673         * modules/stat (Files): Likewise.
10674         * modules/unlink (Files): Likewise.
10675         * modules/dirname-lgpl (Depends-on): Add dosname.
10676         * modules/lstat (Depends-on): Likewise.
10677         * modules/openat (Depends-on): Likewise.
10678         * modules/rmdir (Depends-on): Likewise.
10679         * modules/savewd (Depends-on): Likewise.
10680         * modules/stat (Depends-on): Likewise.
10681         * modules/unlink (Depends-on): Likewise.
10682         * modules/openat (Depends-on): Remove dirname-lgpl.
10683         * modules/savewd (Depends-on): Likewise.
10684         * tests/test-dirname.c: Do not use removed symbols like
10685         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10686         the remaining symbols, e.g., ISSLASH ('\\').
10687
10688 2011-02-25  Eric Blake  <eblake@redhat.com>
10689
10690         strstr: revert patches that introduced bug and pessimization
10691         * lib/str-two-way.h: Add another reference.
10692         (two_way_short_needle, two_way_long_needle): Revert changes from
10693         2011-02-24; they pessimize search speed.
10694         (critical_factorization): Partially revert changes from
10695         2010-06-22; they violate the requirement that the left half of the
10696         needle be smaller than the period of the needle.
10697
10698 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10699
10700         filenamecat: remove unnecessary dependency on dirname-lgpl
10701         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10702         is no direct dependency, just an indirect one via filenamecat-lgpl.
10703
10704         remove: remove unnecessary use of m4/dos.m4
10705         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10706         * modules/remove (FILES): Remove m4/dos.m4.
10707
10708         * lib/openat-proc.c: Don't include dirname.h; not needed.
10709
10710         backupfile: remove unnecessary use of m4/dos.m4
10711         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10712         of its symbols are used by the backupfile code.  backupfile.c does
10713         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10714         for the rare case of programs that want all their backup file
10715         names to live within 8+3 limits, and dos.m4 doesn't address that.
10716         * modules/backupfile (Files): Remove m4/dos.m4.
10717
10718 2011-02-24  Jim Meyering  <meyering@redhat.com>
10719
10720         strstr: fix a bug whereby strstr would mistakenly return NULL
10721         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10722         in period calculation.
10723         (two_way_long_needle): Likewise.
10724         The original problem was reported by Mike Stump in
10725         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10726         Ralf Wildenhues provided the short needle and haystack.
10727         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10728         Add a more involved test to trigger the bug in two_way_long_needle.
10729
10730 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10731
10732         gnulib-tool: remove use of bold display in help screen
10733         * gnulib-tool (func_usage): Do not use bold display anymore in the
10734         help screen.  That was just meant to be a temporary emphasis for a
10735         backward-incompatible change.
10736
10737 2011-02-23  Bruno Haible  <bruno@clisp.org>
10738
10739         Fix misindentation of preprocessor directives.
10740         * lib/argp-namefrob.h: Reindent preprocessor directives.
10741         * lib/getopt_int.h (struct _getopt_data): Likewise.
10742         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10743         * lib/vasnprintf.c (decode_long_double): Likewise.
10744         * tests/test-argmatch.c: Insert blank lines, for clarity.
10745         * tests/test-exclude.c: Likewise.
10746
10747 2011-02-22  Bruno Haible  <bruno@clisp.org>
10748
10749         ioctl: Fix for MacOS X in 64-bit mode.
10750         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10751         value.
10752         Suggested by Eric Blake.
10753         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10754
10755 2011-02-22  Jim Meyering  <meyering@redhat.com>
10756
10757         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10758         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10759         in lib/.
10760
10761 2011-02-22  Eric Blake  <eblake@redhat.com>
10762
10763         maint: avoid any CDPATH issue
10764         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10765
10766         maint: adjust cpp indentation for my modules, as well
10767         * Makefile (sc_cpp_indent_check): Add my name.
10768         * lib/fbufmode.c: Filter through cppi.
10769         * lib/fpurge.c: Likewise.
10770         * lib/freadable.c: Likewise.
10771         * lib/freading.c: Likewise.
10772         * lib/fwritable.c: Likewise.
10773         * lib/fwriting.c: Likewise.
10774         * lib/sigaction.c: Likewise.
10775
10776 2011-02-22  Jim Meyering  <meyering@redhat.com>
10777
10778         maint: adjust cpp indentation to reflect nesting depth
10779         I.e., in a block of code that begins with an unnested "#if",
10780         put one space between the "#" in column 1 and following token.
10781         For example,
10782         -#include <sys/vfs.h>
10783         +# include <sys/vfs.h>
10784         Do this only in .c files that are part of a module I maintain.
10785         * lib/linkat.c: Filter through cppi.
10786         * lib/nanosleep.c: Likewise.
10787         * lib/openat.c: Likewise.
10788         * lib/openat-die.c: Likewise.
10789         * lib/dup3.c: Likewise.
10790         * lib/fchownat.c: Likewise.
10791         * lib/flock.c: Likewise.
10792         * lib/fsync.c: Likewise.
10793         * lib/fts.c: Likewise.
10794         * lib/getpass.c: Likewise.
10795         * lib/gettimeofday.c: Likewise.
10796         * lib/userspec.c: Likewise.
10797         * Makefile (sc_cpp_indent_check): New rule, to check this.
10798
10799 2011-02-22  Bruno Haible  <bruno@clisp.org>
10800
10801         New module 'wctomb'.
10802         * lib/stdlib.in.h (wctomb): New declaration.
10803         * lib/wctomb.c: New file.
10804         * lib/wctomb-impl.h: New file.
10805         * m4/wctomb.m4: New file.
10806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10807         REPLACE_WCTOMB.
10808         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10809         REPLACE_WCTOMB.
10810         * modules/wctomb: New file.
10811         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10812         * doc/posix-functions/wctomb.texi: Mention the new module.
10813         * modules/wctob (Depends-on): Add wctomb.
10814
10815 2011-02-22  Bruno Haible  <bruno@clisp.org>
10816
10817         New module 'mbtowc'.
10818         * lib/stdlib.in.h (mbtowc): New declaration.
10819         * lib/mbtowc.c: New file.
10820         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10821         * m4/mbtowc.m4: New file.
10822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10823         REPLACE_MBTOWC.
10824         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10825         REPLACE_MBTOWC.
10826         * modules/mbtowc: New file.
10827         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10828         * doc/posix-functions/mbtowc.texi: Mention the new module.
10829         * modules/btowc (Depends-on): Add mbtowc.
10830
10831 2011-02-22  Bruno Haible  <bruno@clisp.org>
10832
10833         wcrtomb: Add more tests for native Windows platforms.
10834         * tests/test-wcrtomb-w32-1.sh: New file.
10835         * tests/test-wcrtomb-w32-2.sh: New file.
10836         * tests/test-wcrtomb-w32-3.sh: New file.
10837         * tests/test-wcrtomb-w32-4.sh: New file.
10838         * tests/test-wcrtomb-w32-5.sh: New file.
10839         * tests/test-wcrtomb-w32.c: New file.
10840         * modules/wcrtomb-tests (Files): Add them.
10841         (Makefile.am): Arrange to run these tests.
10842         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10843         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10844
10845 2011-02-20  Bruno Haible  <bruno@clisp.org>
10846
10847         wcrtomb: Enhance test.
10848         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10849
10850 2011-02-20  Bruno Haible  <bruno@clisp.org>
10851
10852         mbrtowc: Tiny optimization.
10853         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10854
10855 2011-02-20  Jim Meyering  <meyering@redhat.com>
10856
10857         test-exclude.c: remove unmatched #endif
10858         * tests/test-exclude.c: Remove stray #endif, left over from
10859         the change of a week ago.
10860
10861 2011-02-19  Jim Meyering  <meyering@redhat.com>
10862
10863         git-version-gen: skip "-dirty" check when appropriate
10864         * build-aux/git-version-gen: Don't run any git commands when the
10865         version string comes from .tarball-version.  Prior to this, we
10866         would run git update-index --refresh even from a just-unpacked
10867         tarball directory, and that could affect a .git/ directory in a
10868         parent of the build directory.  Reported by Mike Frysinger.
10869
10870 2011-02-19  Bruno Haible  <bruno@clisp.org>
10871
10872         unictype/property-byname: Reduce the size of the 'data' segment.
10873         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10874
10875 2011-02-19  Bruno Haible  <bruno@clisp.org>
10876
10877         unictype/scripts: Reduce the size of the 'data' segment.
10878         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10879         '%pic'.
10880         * lib/unictype/scripts_byname.gperf: Regenerated.
10881
10882 2011-02-19  Bruno Haible  <bruno@clisp.org>
10883
10884         stdint: Update documentation.
10885         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10886
10887 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10888
10889         stdint: omit redundant check for wchar.h
10890         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10891         always tests whether wchar.h exists, so remove the now-redundant test.
10892
10893 2011-02-18  Bruno Haible  <bruno@clisp.org>
10894
10895         stdint: Cut dependency to module 'wchar'.
10896         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10897         include the necessary prerequisites.
10898         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10899         * modules/stdint (Depends-on): Remove wchar.
10900         (Makefile.am): Substitute HAVE_WCHAR_H.
10901         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10902
10903 2011-02-18  Eric Blake  <eblake@redhat.com>
10904
10905         longlong: skip, rather than fail, on cross-compilation
10906         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10907         when cross-compiling; regression from 2011-02-16.
10908
10909 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10910
10911         * NEWS: Mention 2011-02-08 change to stdlib.
10912
10913 2011-02-17  Bruno Haible  <bruno@clisp.org>
10914
10915         getloadavg: Add comments about platforms.
10916         * m4/getloadavg.m4: Add comment.
10917         * lib/getloadavg.c: Likewise.
10918
10919 2011-02-17  Bruno Haible  <bruno@clisp.org>
10920
10921         getloadavg: Fix link error on Solaris 2.6.
10922         * modules/getloadavg (Link): New section.
10923         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10924         linking test-getloadavg.
10925         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10926         getloadavg.
10927
10928 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10929
10930         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10931         It was 'int', but this doesn't match the IRIX 6.5 manual.
10932         Suggested by Bruno Haible in
10933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10934
10935 2011-02-17  Bruno Haible  <bruno@clisp.org>
10936
10937         havelib: Fix comments.
10938         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10939         change.
10940
10941 2011-02-17  Bruno Haible  <bruno@clisp.org>
10942
10943         havelib: Update config.rpath.
10944         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10945
10946 2011-02-17  Bruno Haible  <bruno@clisp.org>
10947
10948         getloadavg test: Add some plausibility checks.
10949         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10950         is improbable.
10951
10952 2011-02-16  Eric Blake  <eblake@redhat.com>
10953
10954         maintainer-makefile: make syntax-check a no-op from tarballs
10955         * top/maint.mk (no-vc-detected): New rule.
10956         (local-checks-available): Use it to avoid hanging if someone tries
10957         'make syntax-check' from a tarball.  Also append to any non-syntax
10958         checks already defined in cfg.mk.
10959
10960 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10961
10962         longlong: tune, particularly for common case of c99
10963
10964         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10965         or running anything if c99, or if unsigned long long int does not
10966         work.  In either case, we know the answer without further tests.
10967         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10968         it at most once, and use its results for both long long int and
10969         unsigned long long int.  This is more likely to be efficient in
10970         the common case where the program wants to check for both long
10971         long int and unsigned long long int.
10972         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10973         since the answer is already known.
10974
10975 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10976
10977         getloadavg: set errno
10978         * lib/getloadavg.c: Set errno when returning -1.  If no other
10979         error number looks appropriate, set it to ENOSYS if the getloadavg
10980         looks like it can't possibly ever work, ENOTSUP otherwise.
10981         Suggested by Bruno Haible in
10982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10983
10984         getloadavg: trim unused parts and speed up 'configure'
10985         * NEWS: Document this.
10986         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10987         always compiled if getloadavg is absent.
10988         Move test code to ...
10989         * tests/test-getloadavg.c: New file, containing previous
10990         contents of test from lib/getloadavg.c.  It also contains
10991         suggestions by Bruno Haible in
10992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10993         * modules/getloadavg-tests: New file.
10994         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10995         Do tests in the same order as they're needed for getloadavg.c.
10996         Omit setgid-related tests that generate symbols KMEM_GROUP,
10997         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10998         Do only the tests that are needed to see whether the system has
10999         getloadavg, moving the other tests into ...
11000         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11001         NLIST_NAME_UNION; nobody should be using it.  Do not define
11002         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11003         relevant, as the user of this module shouldn't care how getloadavg
11004         is implemented.
11005
11006         getloadavg: omit unused var
11007         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11008
11009 2011-02-15  Jim Meyering  <meyering@redhat.com>
11010
11011         doc: update users.txt
11012         * users.txt: Update iwhd's URL.
11013
11014 2011-02-13  Bruno Haible  <bruno@clisp.org>
11015
11016         Consistent macro naming for macros that use GCC __attribute__.
11017         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11018         _ATTRIBUTE_NONNULL_.
11019         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11020         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11021         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11022         ATTRIBUTE_DEPRECATED.
11023         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11024         ATTRIBUTE_NORETURN.
11025         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11026         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11027         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11028         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11029         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11030         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11031         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11032         ATTRIBUTE_SENTINEL.
11033         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11034         ATTRIBUTE_RETURN_CHECK.
11035         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11036         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11037         ATTRIBUTE_NORETURN.
11038         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11039         Reported by Paul Eggert.
11040
11041 2011-02-13  Bruno Haible  <bruno@clisp.org>
11042
11043         Don't interfere with a program's definition of __attribute__.
11044         * lib/argp.h (__attribute__): Remove definition.
11045         (_GL_ATTRIBUTE_FORMAT): New macro.
11046         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11047         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11048         (_GL_ATTRIBUTE_FORMAT): New macro.
11049         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11050         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11051         GCC 3 or newer.
11052         * lib/error.h (__attribute__): Remove definition.
11053         (_GL_ATTRIBUTE_FORMAT): New macro.
11054         (error, error_at_line): Use it.
11055         * lib/hash.h (__attribute__): Remove definition.
11056         (ATTRIBUTE_WUR): Update definition. Define always.
11057         * lib/openat.h (__attribute__): Remove definition.
11058         (ATTRIBUTE_NORETURN): Update definition. Define always.
11059         * lib/sigpipe-die.h (__attribute__): Remove definition.
11060         (ATTRIBUTE_NORETURN): Update definition. Define always.
11061         * lib/vasnprintf.h (__attribute__): Remove definition.
11062         (_GL_ATTRIBUTE_FORMAT): New macro.
11063         (asnprintf, vasnprintf): Use it.
11064         * lib/xalloc.h (__attribute__): Remove definition.
11065         (ATTRIBUTE_NORETURN): Update definition. Define always.
11066         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11067         * lib/xmemdup0.h (__attribute__): Remove definition.
11068         (ATTRIBUTE_NORETURN): Update definition. Define always.
11069         * lib/xprintf.h (__attribute__): Remove definition.
11070         (_GL_ATTRIBUTE_FORMAT): New macro.
11071         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11072         * lib/xstrtol.h (__attribute__): Remove definition.
11073         (ATTRIBUTE_NORETURN): Update definition. Define always.
11074         * lib/xvasprintf.h (__attribute__): Remove definition.
11075         (_GL_ATTRIBUTE_FORMAT): New macro.
11076         (xasprintf, xvasprintf): Use it.
11077         * tests/test-argmatch.c (__attribute__): Remove definition.
11078         (ATTRIBUTE_NORETURN): Update definition. Define always.
11079         * tests/test-exclude.c (__attribute__): Remove definition.
11080         (ATTRIBUTE_NORETURN): Update definition. Define always.
11081         Reported by Paul Eggert.
11082
11083 2011-02-13  Bruno Haible  <bruno@clisp.org>
11084
11085         mbrtowc: Add more tests for native Windows platforms.
11086         * tests/test-mbrtowc-w32-1.sh: New file.
11087         * tests/test-mbrtowc-w32-2.sh: New file.
11088         * tests/test-mbrtowc-w32-3.sh: New file.
11089         * tests/test-mbrtowc-w32-4.sh: New file.
11090         * tests/test-mbrtowc-w32-5.sh: New file.
11091         * tests/test-mbrtowc-w32.c: New file.
11092         * modules/mbrtowc-tests (Files): Add them.
11093         (Makefile.am): Arrange to run these tests.
11094         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11095         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11096
11097 2011-02-13  Bruno Haible  <bruno@clisp.org>
11098
11099         mbrtowc: Work around native Windows bug.
11100         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11101         guess when no suitable locale for testing was found.
11102         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11103
11104 2011-02-13  Bruno Haible  <bruno@clisp.org>
11105
11106         mbsinit: Work around mingw bug.
11107         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11108         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11109         Windows.
11110         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11111
11112 2011-02-13  Bruno Haible  <bruno@clisp.org>
11113
11114         mbsinit: Don't crash for a NULL argument.
11115         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11116         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11117
11118 2011-02-13  Bruno Haible  <bruno@clisp.org>
11119
11120         Don't interfere with a program's definition of __attribute__.
11121         * lib/stdio.in.h (__attribute__): Remove definition.
11122         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11123         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11124         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11125         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11126         * lib/string.in.h (__attribute__): Remove definition.
11127         Reported by Paul Eggert.
11128
11129 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11130
11131         stdlib: don't get in the way of non-GCC __attribute__
11132         See thread starting at
11133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11134         Revert previous stdlib change, installing the following instead:
11135         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11136         to get in the way of a non-GCC compiler that supports __attribute__.
11137         (_GL_ATTRIBUTE_RETURN): New macro.
11138         (_Exit): Use it instead of __attribute__.
11139
11140 2011-02-12  Bruno Haible  <bruno@clisp.org>
11141
11142         quotearg test: Avoid test failure on mingw.
11143         * tests/test-quotearg.sh: Convert the locale identifier from native
11144         Windows syntax to Unix syntax.
11145
11146 2011-02-12  Bruno Haible  <bruno@clisp.org>
11147
11148         setlocale: Prefer gnulib's override over libintl's override.
11149         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11150         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11151         GNULIB_defined_setlocale is set.
11152
11153 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11154
11155         stdlib: support non-GCC __attribute__
11156
11157         Fix a serious and tricky problem encountered when attempting to
11158         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11159         5.5, but it crashed due to memory corruption on Solaris 10 with
11160         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11161         bits that are otherwise zero.  This tagging is optional inside
11162         Emacs but is preferred and is used when __attribute__ ((__aligned
11163         (8))) works, as it does with both recent-enough GCC and with Sun C
11164         5.11.  However, Sun C 5.11 is not GCC and does not #define
11165         __GNUC__ and __GNUC_MINOR__.
11166
11167         When I added the getloadavg module to Emacs, it brought in
11168         stdlib.in.h, which contained this fragment:
11169
11170            #ifndef __attribute__
11171            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11172            #  define __attribute__(Spec)   /* empty */
11173            # endif
11174            #endif
11175
11176         When files that include <stdlib.h> were compiled with Sun C 5.11,
11177         the above code disabled __attribute__ ((__aligned (8))), which
11178         caused variables to not be properly aligned, which eventually led
11179         to the pointer corruption mentioned above.  (This was a bit hard
11180         to diagnose, unfortunately.)
11181
11182         Several "#define __attribute__(X) /* empty */" code snippets need
11183         to be eradicated from Gnulib to work with non-GCC compilers that
11184         support __attribute__.  The Autoconf way to do this is to test for
11185         each kind of attribute that we want support for, and selectively
11186         enable that in source code.
11187
11188         Fix this problem just for stdlib.h, by adding a test for the
11189         __noreturn__ attribute, and change stdlib.in.h to use that test
11190         when needed.  This technique can be easily generalized to the
11191         other *.in.h files and attributes, and a similar technique can be
11192         used for *.h and *.c files.  This patch is enough to solve the
11193         problem for Emacs + getloadavg, and I thought I'd publish it for
11194         feedback before undertaking further, similar fixes in other
11195         modules.
11196
11197         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11198         because it's not needed for stdlib.h.  It merely substitutes the
11199         value directly into stdlib.h.  We may well need to #define it, or
11200         similar symbols, for other modules, but it's nice to also have an
11201         option to not #define it for applications like Emacs that do not
11202         need it.
11203
11204         * lib/stdlib.in.h (__attribute__): Do not #define.
11205         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11206         be defined only if the _Exit module is also used.
11207         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11209         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11210         platforms.
11211         * modules/_Exit (Files): Add m4/attribute.m4.
11212         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11213         * m4/attribute.m4: New file.
11214
11215 2011-02-12  Bruno Haible  <bruno@clisp.org>
11216
11217         wcsrtombs: Work around bug on native Windows.
11218         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11219         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11220         instead of len.
11221         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11222
11223 2011-02-12  Bruno Haible  <bruno@clisp.org>
11224
11225         mbsrtowcs: Work around bug on native Windows.
11226         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11227         against mingw bug.
11228         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11229
11230 2011-02-12  Bruno Haible  <bruno@clisp.org>
11231
11232         Avoid setlocale bugs in tests.
11233         * modules/btowc (Dependencies): Add setlocale.
11234         * modules/c-strcase (Dependencies): Likewise.
11235         * modules/mbmemcasecmp (Dependencies): Likewise.
11236         * modules/mbmemcasecoll (Dependencies): Likewise.
11237         * modules/mbrtowc (Dependencies): Likewise.
11238         * modules/mbscasecmp (Dependencies): Likewise.
11239         * modules/mbscasestr (Dependencies): Likewise.
11240         * modules/mbschr (Dependencies): Likewise.
11241         * modules/mbscspn (Dependencies): Likewise.
11242         * modules/mbsinit (Dependencies): Likewise.
11243         * modules/mbsncasecmp (Dependencies): Likewise.
11244         * modules/mbsnrtowcs (Dependencies): Likewise.
11245         * modules/mbspbrk (Dependencies): Likewise.
11246         * modules/mbspcasecmp (Dependencies): Likewise.
11247         * modules/mbsrchr (Dependencies): Likewise.
11248         * modules/mbsrtowcs (Dependencies): Likewise.
11249         * modules/mbsspn (Dependencies): Likewise.
11250         * modules/mbsstr (Dependencies): Likewise.
11251         * modules/nl_langinfo (Dependencies): Likewise.
11252         * modules/quotearg (Dependencies): Likewise.
11253         * modules/unicase/locale-language (Dependencies): Likewise.
11254         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11255         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11256         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11257         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11258         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11259         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11260         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11261         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11262         * modules/vasnprintf-posix (Dependencies): Likewise.
11263         * modules/wcrtomb (Dependencies): Likewise.
11264         * modules/wcsnrtombs (Dependencies): Likewise.
11265         * modules/wcsrtombs (Dependencies): Likewise.
11266
11267 2011-02-12  Bruno Haible  <bruno@clisp.org>
11268
11269         setlocale: Workaround native Windows bug.
11270         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11271         succeeds but sets LC_CTYPE to "C", report a failure.
11272         * tests/test-setlocale2.sh: New file.
11273         * tests/test-setlocale2.c: New file.
11274         * modules/setlocale-tests (Files): Add the new files.
11275         (Makefile.am): Enable test-setlocale2.sh test.
11276         * doc/posix-functions/setlocale.texi: Mention workaround.
11277
11278 2011-02-11  Bruno Haible  <bruno@clisp.org>
11279
11280         Tests for module 'setlocale'.
11281         * modules/setlocale-tests: New file.
11282         * tests/test-setlocale1.sh: New file.
11283         * tests/test-setlocale1.c: New file.
11284
11285         New module 'setlocale'.
11286         * lib/locale.in.h (setlocale): New declaration.
11287         * lib/setlocale.c: New file, based on
11288         gettext/gettext-runtime/intl/setlocale.c.
11289         * m4/setlocale.m4: New file.
11290         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11291         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11292         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11293         REPLACE_SETLOCALE.
11294         * modules/setlocale: New file.
11295         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11296         * doc/posix-functions/setlocale.texi: Mention the new module.
11297
11298 2011-02-11  Bruno Haible  <bruno@clisp.org>
11299
11300         Prepare for locale dependent tests on mingw.
11301         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11302         because it has the wrong locale encoding.
11303         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11304         French_France.1252 instead of "fr".
11305         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11306         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11307         because it has the wrong locale encoding.
11308         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11309         native Windows, try Turkish_Turkey.65001.
11310         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11311         Chinese_China.54936.
11312
11313         Prepare for locale dependent tests on mingw.
11314         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11315         differently.
11316         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11317         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11318         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11319         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11320
11321 2011-02-11  Eric Blake  <eblake@redhat.com>
11322
11323         strptime: avoid compiler warnings
11324         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11325         compiler warnings about dead code.
11326         Reported by Daniel P. Berrange.
11327
11328 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11329
11330         doc: update users.txt
11331         * users.txt: Add rcs.
11332
11333 2011-02-10  John W. Eaton  <jwe@gnu.org>
11334
11335         doc: update users.txt
11336         * users.txt: Add octave.
11337
11338 2011-02-10  Jim Meyering  <meyering@redhat.com>
11339
11340         doc: update users.txt
11341         * users.txt: Add iwhd.
11342
11343 2011-02-09  Bruno Haible  <bruno@clisp.org>
11344
11345         gnulib-tool: Make copyright notice adjustment more robust.
11346         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11347         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11348         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11349         License".
11350         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11351
11352 2011-02-06  Bruno Haible  <bruno@clisp.org>
11353
11354         New module 'towctrans'.
11355         * modules/towctrans: New file.
11356         * lib/wctype.in.h (towctrans): New declaration.
11357         * lib/towctrans.c: New file.
11358         * lib/towctrans-impl.h: New file.
11359         * m4/towctrans.m4: New file.
11360         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11361         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11362         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11363         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11364         * doc/posix-functions/towctrans.texi: Mention the new module.
11365
11366 2011-02-06  Bruno Haible  <bruno@clisp.org>
11367
11368         New module 'wctrans'.
11369         * modules/wctrans: New file.
11370         * lib/wctype.in.h (wctrans): New declaration.
11371         * lib/wctrans.c: New file.
11372         * lib/wctrans-impl.h: New file.
11373         * m4/wctrans.m4: New file.
11374         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11375         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11376         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11377         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11378         * doc/posix-functions/wctrans.texi: Mention the new module.
11379
11380 2011-02-06  Bruno Haible  <bruno@clisp.org>
11381
11382         New module 'iswctype'.
11383         * modules/iswctype: New file.
11384         * lib/wctype.in.h (iswctype): New declaration.
11385         * lib/iswctype.c: New file.
11386         * lib/iswctype-impl.h: New file.
11387         * m4/iswctype.m4: New file.
11388         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11389         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11390         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11391         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11392         * doc/posix-functions/iswctype.texi: Mention the new module and the
11393         HP-UX 11.00 problem.
11394
11395 2011-02-06  Bruno Haible  <bruno@clisp.org>
11396
11397         New module 'wctype'.
11398         * modules/wctype: Change to represent the wctype() substitute.
11399         * lib/wctype.in.h (wctype): New declaration.
11400         * lib/wctype.c: New file.
11401         * lib/wctype-impl.h: New file.
11402         * m4/wctype.m4: New file.
11403         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11404         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11405         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11406         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11407         * doc/posix-functions/wctype.texi: Mention the new module and the
11408         HP-UX 11.00 problem.
11409
11410 2011-02-06  Bruno Haible  <bruno@clisp.org>
11411
11412         wctype-h: Ensure wctype_t and wctrans_t are defined.
11413         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11414         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11415         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11416         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11417         HAVE_WCTRANS_T.
11418         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11419
11420 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11421
11422         flock: fix license typo
11423
11424         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11425         omitted.
11426
11427 2011-02-08  Bruno Haible  <bruno@clisp.org>
11428
11429         Split large sed scripts, for HP-UX sed.
11430         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11431         to avoid HP-UX limit of 99 commands, in the near future.
11432         * modules/stdlib (Makefile.am): Likewise.
11433         * modules/unistd (Makefile.am): Likewise.
11434         * modules/wchar (Makefile.am): Likewise.
11435         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11436         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11438
11439 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11440             Bruno Haible  <bruno@clisp.org>
11441
11442         stdlib: improve random_r modularization
11443         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11444         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11445         you also need the random_r module to get this material right.
11446         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11447         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11448         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11449
11450 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11451
11452         stdlib: don't depend on stdint
11453         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11454         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11455         be independent of whether stdint.h is needed.
11456         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11457         here, instead of ...
11458         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11459         struct random_data should be using the random_r module, not just
11460         the stdlib module (which wouldn't make sense: what package needs
11461         just struct random_data without also needing random_r?).
11462         * modules/stdlib (Depends-on): Remove stdint.
11463
11464         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11465         See the thread rooted at
11466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11467         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11468         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11469         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11470         __VMS)); previously it was always included (via fcntl--.h).
11471         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11472         hand; this is good enough for load averages.  Also, do not use
11473         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11474         flags directly if available and don't bother otherwise.  (Packages
11475         that need the extra reliability should use the modules that define
11476         these flags on older platforms that lack them.)
11477         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11478         fcntl-safer.
11479
11480 2011-02-08  Jim Meyering  <meyering@redhat.com>
11481
11482         di-set.h, ino-map.h: add multiple-inclusion guard
11483         Technically, the guard is required only for ino-map.h, due to its
11484         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11485         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11486         * lib/ino-map.h: Likewise.
11487
11488 2011-02-06  Bruno Haible  <bruno@clisp.org>
11489
11490         iswblank: Ensure declaration on glibc systems.
11491         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11492         * modules/iswblank (Dependencies): Add 'extensions'.
11493         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11494
11495 2011-02-06  Bruno Haible  <bruno@clisp.org>
11496
11497         New module 'iswblank'.
11498         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11499         * modules/iswblank: New file.
11500         * modules/wctype-h (Files): Remove lib/iswblank.c.
11501         (Makefile.am): Substitute GNULIB_ISWBLANK.
11502         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11503         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11504         (gl_WCTYPE_H_DEFAULTS): New macro.
11505         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11506         * modules/iswblank-tests: New file.
11507         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11508         * tests/test-wctype-h.c (main): Remove iswblank tests.
11509         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11510         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11511         of 'wctype-h'.
11512         * NEWS: Mention the change.
11513         * modules/mbchar (Depends-on): Add iswblank.
11514
11515 2011-02-08  Bruno Haible  <bruno@clisp.org>
11516
11517         di-set tests: Refactor.
11518         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11519         unnecessary includes.
11520         (ASSERT): Remove macro.
11521         (main): Make C90 compliant by avoiding variable declaration after
11522         statement.
11523         * modules/di-set-tests (Files): Add tests/macros.h.
11524
11525 2011-02-08  Bruno Haible  <bruno@clisp.org>
11526
11527         ino-map tests: Refactor.
11528         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11529         unnecessary includes.
11530         (ASSERT): Remove macro.
11531         (main): Make C90 compliant by avoiding variable declaration after
11532         statement.
11533         * modules/ino-map-tests (Files): Add tests/macros.h.
11534
11535 2011-02-08  Jim Meyering  <meyering@redhat.com>
11536
11537         di-set: add "const" to a cast
11538         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11539         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11540
11541 2011-02-06  Bruno Haible  <bruno@clisp.org>
11542
11543         Rename module 'wctype' to 'wctype-h'.
11544         * modules/wctype-h: Renamed from modules/wctype.
11545         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11546         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11547         (Files, Depends-on, Makefile.am): Update.
11548         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11549         (Files, Makefile.am): Update.
11550         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11551         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11552         * doc/posix-headers/wctype.texi: Update.
11553         * doc/posix-functions/iswalnum.texi: Update.
11554         * doc/posix-functions/iswalpha.texi: Update.
11555         * doc/posix-functions/iswblank.texi: Update.
11556         * doc/posix-functions/iswcntrl.texi: Update.
11557         * doc/posix-functions/iswdigit.texi: Update.
11558         * doc/posix-functions/iswgraph.texi: Update.
11559         * doc/posix-functions/iswlower.texi: Update.
11560         * doc/posix-functions/iswprint.texi: Update.
11561         * doc/posix-functions/iswpunct.texi: Update.
11562         * doc/posix-functions/iswspace.texi: Update.
11563         * doc/posix-functions/iswupper.texi: Update.
11564         * doc/posix-functions/iswxdigit.texi: Update.
11565         * doc/posix-functions/towlower.texi: Update.
11566         * doc/posix-functions/towupper.texi: Update.
11567         * NEWS: Mention the change.
11568         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11569         * modules/mbchar (Dependencies): Likewise.
11570         * modules/mbswidth (Dependencies): Likewise.
11571         * modules/quotearg (Dependencies): Likewise.
11572         * modules/regex (Dependencies): Likewise.
11573         * modules/wcscasecmp (Dependencies): Likewise.
11574         * modules/wcsncasecmp (Dependencies): Likewise.
11575         * modules/wcwidth (Dependencies): Likewise.
11576
11577 2011-02-06  Bruno Haible  <bruno@clisp.org>
11578
11579         New module 'wcswidth'.
11580         * modules/wcswidth: New file.
11581         * lib/wchar.in.h (wcswidth): New declaration.
11582         * lib/wcswidth.c: New file.
11583         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11584         * m4/wcswidth.m4: New file.
11585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11587         REPLACE_WCSWIDTH.
11588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11589         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11590         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11591         * doc/posix-functions/wcswidth.texi: Mention the new module.
11592
11593 2011-02-06  Bruno Haible  <bruno@clisp.org>
11594
11595         New module 'wcstok'.
11596         * modules/wcstok: New file.
11597         * lib/wchar.in.h (wcstok): New declaration.
11598         * lib/wcstok.c: New file.
11599         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11600         * m4/wcstok.m4: New file.
11601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11604         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11605         * doc/posix-functions/wcstok.texi: Mention the new module.
11606
11607 2011-02-06  Bruno Haible  <bruno@clisp.org>
11608
11609         New module 'wcsstr'.
11610         * modules/wcsstr: New file.
11611         * lib/wchar.in.h (wcsstr): New declaration.
11612         * lib/wcsstr.c: New file.
11613         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11614         * m4/wcsstr.m4: New file.
11615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11618         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11619         * doc/posix-functions/wcsstr.texi: Mention the new module.
11620
11621 2011-02-06  Bruno Haible  <bruno@clisp.org>
11622
11623         New module 'wcspbrk'.
11624         * modules/wcspbrk: New file.
11625         * lib/wchar.in.h (wcspbrk): New declaration.
11626         * lib/wcspbrk.c: New file.
11627         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11628         * m4/wcspbrk.m4: New file.
11629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11632         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11633         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11634
11635 2011-02-06  Bruno Haible  <bruno@clisp.org>
11636
11637         New module 'wcsspn'.
11638         * modules/wcsspn: New file.
11639         * lib/wchar.in.h (wcsspn): New declaration.
11640         * lib/wcsspn.c: New file.
11641         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11642         * m4/wcsspn.m4: New file.
11643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11646         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11647         * doc/posix-functions/wcsspn.texi: Mention the new module.
11648
11649 2011-02-06  Bruno Haible  <bruno@clisp.org>
11650
11651         New module 'wcscspn'.
11652         * modules/wcscspn: New file.
11653         * lib/wchar.in.h (wcscspn): New declaration.
11654         * lib/wcscspn.c: New file.
11655         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11656         * m4/wcscspn.m4: New file.
11657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11660         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11661         * doc/posix-functions/wcscspn.texi: Mention the new module.
11662
11663 2011-02-06  Bruno Haible  <bruno@clisp.org>
11664
11665         New module 'wcsrchr'.
11666         * modules/wcsrchr: New file.
11667         * lib/wchar.in.h (wcsrchr): New declaration.
11668         * lib/wcsrchr.c: New file.
11669         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11670         * m4/wcsrchr.m4: New file.
11671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11674         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11675         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11676
11677 2011-02-06  Bruno Haible  <bruno@clisp.org>
11678
11679         New module 'wcschr'.
11680         * modules/wcschr: New file.
11681         * lib/wchar.in.h (wcschr): New declaration.
11682         * lib/wcschr.c: New file.
11683         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11684         * m4/wcschr.m4: New file.
11685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11688         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11689         * doc/posix-functions/wcschr.texi: Mention the new module.
11690
11691 2011-02-06  Bruno Haible  <bruno@clisp.org>
11692
11693         New module 'wcsdup'.
11694         * modules/wcsdup: New file.
11695         * lib/wchar.in.h (wcsdup): New declaration.
11696         * lib/wcsdup.c: New file.
11697         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11698         * m4/wcsdup.m4: New file.
11699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11702         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11703         * doc/posix-functions/wcsdup.texi: Mention the new module.
11704
11705 2011-02-06  Bruno Haible  <bruno@clisp.org>
11706
11707         New module 'wcsxfrm'.
11708         * modules/wcsxfrm: New file.
11709         * lib/wchar.in.h (wcsxfrm): New declaration.
11710         * lib/wcsxfrm.c: New file.
11711         * lib/wcsxfrm-impl.h: New file.
11712         * m4/wcsxfrm.m4: New file.
11713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11716         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11717         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11718
11719 2011-02-06  Bruno Haible  <bruno@clisp.org>
11720
11721         New module 'wcscoll'.
11722         * modules/wcscoll: New file.
11723         * lib/wchar.in.h (wcscoll): New declaration.
11724         * lib/wcscoll.c: New file.
11725         * lib/wcscoll-impl.h: New file.
11726         * m4/wcscoll.m4: New file.
11727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11730         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11731         * doc/posix-functions/wcscoll.texi: Mention the new module.
11732
11733 2011-02-06  Bruno Haible  <bruno@clisp.org>
11734
11735         New module 'wcsncasecmp'.
11736         * modules/wcsncasecmp: New file.
11737         * lib/wchar.in.h (wcsncasecmp): New declaration.
11738         * lib/wcsncasecmp.c: New file.
11739         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11740         * m4/wcsncasecmp.m4: New file.
11741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11744         HAVE_WCSNCASECMP.
11745         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11746         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11747
11748 2011-02-06  Bruno Haible  <bruno@clisp.org>
11749
11750         New module 'wcscasecmp'.
11751         * modules/wcscasecmp: New file.
11752         * lib/wchar.in.h (wcscasecmp): New declaration.
11753         * lib/wcscasecmp.c: New file.
11754         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11755         * m4/wcscasecmp.m4: New file.
11756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11759         HAVE_WCSCASECMP.
11760         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11761         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11762
11763 2011-02-05  Bruno Haible  <bruno@clisp.org>
11764
11765         New module 'wcsncmp'.
11766         * modules/wcsncmp: New file.
11767         * lib/wchar.in.h (wcsncmp): New declaration.
11768         * lib/wcsncmp.c: New file.
11769         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11770         * m4/wcsncmp.m4: New file.
11771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11774         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11775         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11776
11777 2011-02-05  Bruno Haible  <bruno@clisp.org>
11778
11779         New module 'wcscmp'.
11780         * modules/wcscmp: New file.
11781         * lib/wchar.in.h (wcscmp): New declaration.
11782         * lib/wcscmp.c: New file.
11783         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11784         * m4/wcscmp.m4: New file.
11785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11788         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11789         * doc/posix-functions/wcscmp.texi: Mention the new module.
11790
11791 2011-02-05  Bruno Haible  <bruno@clisp.org>
11792
11793         New module 'wcsncat'.
11794         * modules/wcsncat: New file.
11795         * lib/wchar.in.h (wcsncat): New declaration.
11796         * lib/wcsncat.c: New file.
11797         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11798         * m4/wcsncat.m4: New file.
11799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11802         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11803         * doc/posix-functions/wcsncat.texi: Mention the new module.
11804
11805 2011-02-05  Bruno Haible  <bruno@clisp.org>
11806
11807         New module 'wcscat'.
11808         * modules/wcscat: New file.
11809         * lib/wchar.in.h (wcscat): New declaration.
11810         * lib/wcscat.c: New file.
11811         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11812         * m4/wcscat.m4: New file.
11813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11816         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11817         * doc/posix-functions/wcscat.texi: Mention the new module.
11818
11819 2011-02-05  Bruno Haible  <bruno@clisp.org>
11820
11821         New module 'wcpncpy'.
11822         * modules/wcpncpy: New file.
11823         * lib/wchar.in.h (wcpncpy): New declaration.
11824         * lib/wcpncpy.c: New file.
11825         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11826         * m4/wcpncpy.m4: New file.
11827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11829         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11830         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11831         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11832
11833 2011-02-05  Bruno Haible  <bruno@clisp.org>
11834
11835         New module 'wcsncpy'.
11836         * modules/wcsncpy: New file.
11837         * lib/wchar.in.h (wcsncpy): New declaration.
11838         * lib/wcsncpy.c: New file.
11839         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11840         * m4/wcsncpy.m4: New file.
11841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11844         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11845         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11846
11847 2011-02-05  Bruno Haible  <bruno@clisp.org>
11848
11849         New module 'wcpcpy'.
11850         * modules/wcpcpy: New file.
11851         * lib/wchar.in.h (wcpcpy): New declaration.
11852         * lib/wcpcpy.c: New file.
11853         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11854         * m4/wcpcpy.m4: New file.
11855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11857         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11858         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11859         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11860
11861 2011-02-05  Bruno Haible  <bruno@clisp.org>
11862
11863         New module 'wcscpy'.
11864         * modules/wcscpy: New file.
11865         * lib/wchar.in.h (wcscpy): New declaration.
11866         * lib/wcscpy.c: New file.
11867         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11868         * m4/wcscpy.m4: New file.
11869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11872         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11873         * doc/posix-functions/wcscpy.texi: Mention the new module.
11874
11875 2011-02-05  Bruno Haible  <bruno@clisp.org>
11876
11877         New module 'wcsnlen'.
11878         * modules/wcsnlen: New file.
11879         * lib/wchar.in.h (wcsnlen): New declaration.
11880         * lib/wcsnlen.c: New file.
11881         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11882         * m4/wcsnlen.m4: New file.
11883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11886         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11887         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11888
11889 2011-02-05  Bruno Haible  <bruno@clisp.org>
11890
11891         New module 'wcslen'.
11892         * modules/wcslen: New file.
11893         * lib/wchar.in.h (wcslen): New declaration.
11894         * lib/wcslen.c: New file.
11895         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11896         * m4/wcslen.m4: New file.
11897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11900         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11901         * doc/posix-functions/wcslen.texi: Mention the new module.
11902
11903 2011-02-05  Bruno Haible  <bruno@clisp.org>
11904
11905         New module 'wmemset'.
11906         * modules/wmemset: New file.
11907         * lib/wchar.in.h (wmemset): New declaration.
11908         * lib/wmemset.c: New file.
11909         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11910         * m4/wmemset.m4: New file.
11911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11913         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11914         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11915         * doc/posix-functions/wmemset.texi: Mention the new module.
11916
11917 2011-02-05  Bruno Haible  <bruno@clisp.org>
11918
11919         New module 'wmemmove'.
11920         * modules/wmemmove: New file.
11921         * lib/wchar.in.h (wmemmove): New declaration.
11922         * lib/wmemmove.c: New file.
11923         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11924         * m4/wmemmove.m4: New file.
11925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11927         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11928         HAVE_WMEMMOVE.
11929         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11930         * doc/posix-functions/wmemmove.texi: Mention the new module.
11931
11932 2011-02-05  Bruno Haible  <bruno@clisp.org>
11933
11934         New module 'wmemcpy'.
11935         * modules/wmemcpy: New file.
11936         * lib/wchar.in.h (wmemcpy): New declaration.
11937         * lib/wmemcpy.c: New file.
11938         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11939         * m4/wmemcpy.m4: New file.
11940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11942         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11943         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11944         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11945
11946 2011-02-05  Bruno Haible  <bruno@clisp.org>
11947
11948         New module 'wmemcmp'.
11949         * modules/wmemcmp: New file.
11950         * lib/wchar.in.h (wmemcmp): New declaration.
11951         * lib/wmemcmp.c: New file.
11952         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11953         * m4/wmemcmp.m4: New file.
11954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11956         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11957         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11958         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11959
11960 2011-02-07  Jim Meyering  <meyering@redhat.com>
11961
11962         di-set, ino-map: new modules, from coreutils
11963         * lib/di-set.c: New file.
11964         * lib/di-set.h: Likewise.
11965         * lib/ino-map.c: Likewise.
11966         * lib/ino-map.h: Likewise.
11967         * modules/di-set: Likewise.
11968         * modules/di-set-tests: Likewise.
11969         * modules/ino-map: Likewise.
11970         * modules/ino-map-tests: Likewise.
11971         * tests/test-di-set.c: Likewise.
11972         * tests/test-ino-map.c: Likewise.
11973
11974 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11975
11976         getloadavg: merge minor changes from Emacs
11977
11978         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11979         (getloadavg): Use memset, not bzero.
11980
11981         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11982         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11983         clash (bug#86).
11984
11985 2010-11-14  Bruno Haible  <bruno@clisp.org>
11986
11987         Allow multiple gnulib generated replacements to coexist.
11988         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11989         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11990         * lib/langinfo.in.h (nl_item): Likewise.
11991         * lib/math.in.h (_NaN, NAN): Likewise.
11992         * lib/netdb.in.h (struct addrinfo): Likewise.
11993         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11994         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11995         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11996         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11997         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11998         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11999         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12000         pthread_mutexattr_init, pthread_mutexattr_settype,
12001         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12002         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12003         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12004         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12005         * lib/sched.in.h (struct sched_param): Likewise.
12006         * lib/se-selinux.in.h (security_class_t, security_context_t,
12007         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12008         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12009         lsetfilecon, fsetfilecon, security_check_context,
12010         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12011         Likewise.
12012         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12013         Likewise.
12014         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12015         _gl_function_taking_int_returning_void_t, union sigval,
12016         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12017         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12018         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12019         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12020         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12021         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12022         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12023         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12024         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12025         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12026         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12027         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12028         socklen_t, rpl_fd_isset): Likewise.
12029         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12030         * lib/sys_time.in.h (struct timeval): Likewise.
12031         * lib/sys_times.in.h (struct tms): Likewise.
12032         * lib/sys_utsname.in.h (struct utsname):
12033         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12034         * lib/unistd.in.h (getpagesize): Likewise.
12035         * lib/wchar.in.h (mbstate_t): Likewise.
12036         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12037         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12038         towlower, towupper): Likewise.
12039         Reported by Sam Steingold <sds@gnu.org>.
12040
12041 2011-02-05  Eric Blake  <eblake@redhat.com>
12042
12043         unsetenv: work around Haiku issues
12044         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12045         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12046
12047 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12048
12049         libposix: avoid calling error() within libposix
12050         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12051         is defined.
12052
12053 2011-02-05  Eric Blake  <eblake@redhat.com>
12054
12055         strerror_r-posix: port to cygwin
12056         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12057         implementation.
12058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12059         * tests/test-strerror_r.c (main): Fix test.
12060         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12061         issue.
12062
12063 2011-02-05  Bruno Haible  <bruno@clisp.org>
12064
12065         New module 'wmemchr'.
12066         * modules/wmemchr: New file.
12067         * lib/wchar.in.h (wmemchr): New declaration.
12068         * lib/wmemchr.c: New file.
12069         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12070         * m4/wmemchr.m4: New file.
12071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12073         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12074         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12075         * doc/posix-functions/wmemchr.texi: Mention the new module.
12076
12077 2011-02-04  Eric Blake  <eblake@redhat.com>
12078
12079         fdopendir: detect FreeBSD bug
12080         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12081         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12082
12083 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12084
12085         stdbool: do not define HAVE_STDBOOL_H
12086         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12087         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12088         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12089         imported from the latest Autoconf git.  It was motivated by Emacs,
12090         which uses gnulib but does not need HAVE_STDBOOL_H.
12091
12092 2011-02-04  Bruno Haible  <bruno@clisp.org>
12093
12094         wcsnrtombs: Prepare for new module wwcsnrtombs.
12095         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12096         * lib/wcsnrtombs.c: Include it.
12097         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12098
12099         wcsrtombs: Prepare for new module wwcsrtombs.
12100         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12101         * lib/wcsrtombs.c: Include it.
12102         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12103
12104         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12105         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12106         * lib/mbsnrtowcs.c: Include it.
12107         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12108
12109         mbsrtowcs: Prepare for new module mbsrtowwcs.
12110         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12111         * lib/mbsrtowcs.c: Include it.
12112         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12113
12114 2011-02-04  Bruno Haible  <bruno@clisp.org>
12115
12116         vasnprintf: Reduce use of malloc for small format strings.
12117         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12118         (arguments): Add room for the first 7 arguments.
12119         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12120         (char_directives, u8_directives, u16_directives, u32_directives): Add
12121         room for the first 7 directives.
12122         * lib/printf-parse.c: Include <string.h>.
12123         (PRINTF_PARSE): Change memory handling code so that it uses the first
12124         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12125         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12126         Reported by Pádraig Brady <P@draigbrady.com>.
12127
12128 2011-01-31  Eric Blake  <eblake@redhat.com>
12129
12130         dup2: work around Haiku bug
12131         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12132         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12133         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12134         * tests/test-dup2.c (main): Enhance test.
12135
12136 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12137
12138         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12139         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12140         declared by eglibc 2.11.2.
12141         * lib/stdio.in.h: Likewise.
12142
12143 2011-01-31  Eric Blake  <eblake@redhat.com>
12144
12145         ignore-value: add missing test dependency
12146         * tests/test-ignore-value.c: Revert previous change; stdio.h
12147         provides off_t.
12148         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12149
12150 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12151
12152         mktime: clarify long_int width checking
12153         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12154         the top level, to make it clearer that the assumption about
12155         long_int width is being checked.  See
12156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12157
12158 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12159
12160         ignore-value: Fix self-test.
12161         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12162
12163 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12164
12165         TYPE_MAXIMUM: avoid theoretically undefined behavior
12166         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12167         negative number, which the C Standard says has undefined behavior.
12168         In practice this is not a problem, but might as well do it by the book.
12169         Reported by Rich Felker and Eric Blake; see
12170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12171         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12172         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12174         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12175         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12176         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12177
12178         mktime: #undef mktime before #defining it
12179         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12180
12181         mktime: systematically normalize tm_isdst comparisons
12182         * lib/mktime.c (isdst_differ): New function.
12183         (__mktime_internal): Use it systematically for all isdst comparisons.
12184         This completes the fix for libc BZ #6723, and removes the need for
12185         normalizing tm_isdst.  See
12186         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12187         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12188
12189         mktime: fix some integer overflow issues and sidestep the rest
12190
12191         This was prompted by a bug report by Benjamin Lindner for MinGW
12192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12193         His bug is due to signed integer overflow (0 - INT_MIN), and I
12194         I scanned through mktime.c looking for other integer overflow
12195         problems, fixing all the bugs I found.
12196
12197         Although the C Standard says the resulting code is still not safe
12198         in the presence of integer overflow, in practice it should be good
12199         enough for all real-world two's-complement implementations, except
12200         for debugging environments that deliberately trap on integer
12201         overflow (e.g., gcc -ftrapv).
12202
12203         * lib/mktime.c (WRAPV): New macro.
12204         (SHR): Also check that long_int and time_t shift right in the
12205         usual way, before using the fast-but-unportable method.
12206         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12207         used.  The code already assumed two's complement, so there's
12208         no need to test for alternatives.  All uses removed.
12209         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12210         the C standard.  Problem reported by Rich Felker in
12211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12212         (twos_complement_arithmetic): Also check long_int and time_t.
12213         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12214         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12215         (__mktime_internal): Avoid integer overflow with unary subtraction
12216         in two instances where -1 - X is an adequate replacement for -X,
12217         since the calculations are approximate.
12218
12219 2011-01-29  Eric Blake  <eblake@redhat.com>
12220
12221         mktime: avoid infinite loop
12222         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12223         type; behavior is still undefined but portable to all known targets.
12224         Reported by Rich Felker.
12225
12226 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12227
12228         rename, unlink, same-inode: Relicense.
12229         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12230         * modules/unlink (License): Likewise.
12231         * modules/same-inode (License): Likewise.
12232
12233 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12234
12235         mktime: avoid problems on NetBSD 5 / i386
12236         * lib/mktime.c (long_int): New type.  This works around a problem
12237         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12238         but time_t is 64 bits, and where I expect the existing code is
12239         wrong in some cases.
12240         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12241         (ydhms_diff): Bring back the compile-time check for wide-enough
12242         year and yday.
12243
12244         mktime: fix misspelling in comment
12245         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12246         This merges all recent glibc changes of importance.
12247
12248 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12249
12250         move-if-change: cope with concurrent mv of identical file.
12251         * build-aux/move-if-change (CMPPROG): Accept environment
12252         variable as an override for `cmp'.
12253         (usage): Document CMPPROG.
12254         Adjust comparison to drop stdout.  Cope with failure of mv if
12255         the target file exists and is identical to the source, for
12256         parallel builds.
12257         Report from H.J. Lu against binutils in PR binutils/12283.
12258
12259 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12260
12261         * users.txt: Mention sharutils.
12262
12263 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12264
12265         * users.txt: Mention OATH Toolkit.
12266
12267 2011-01-27  Bruno Haible  <bruno@clisp.org>
12268
12269         Prepare for supporting FreeBSD 10.
12270         * build-aux/config.libpath: Remove handling of freebsd1*.
12271
12272 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12273
12274         Prepare for supporting FreeBSD 10.
12275         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12276         match FreeBSD 10.0.
12277
12278 2011-01-27  Bruno Haible  <bruno@clisp.org>
12279
12280         vma-iter, get-rusage-as: Add OpenBSD support.
12281         * modules/vma-iter (configure.ac): Test for mquery.
12282         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12283         * lib/vma-iter.c: Include <sys/mman.h>.
12284         (vma_iterate): Add an implementation based on mquery().
12285         * lib/resource-ext.h (get_rusage_as): Update comments.
12286         * lib/get-rusage-as.c: Likewise.
12287         * lib/get-rusage-data.c: Likewise.
12288
12289 2011-01-26  Karl Berry  <karl@gnu.org>
12290
12291         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12292         variables to make it easier to override the makeinfo program used.
12293
12294 2011-01-26  Eric Blake  <eblake@redhat.com>
12295
12296         fcntl: work around Haiku F_DUPFD bugs
12297         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12298         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12299         cloexec bit on duplication.
12300         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12301
12302 2011-01-26  Bruno Haible  <bruno@clisp.org>
12303
12304         Enable memory leak tests on AIX.
12305         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12306         * tests/test-fprintf-posix3.c (main): Likewise.
12307
12308 2011-01-26  Bruno Haible  <bruno@clisp.org>
12309
12310         Tests for module 'get-rusage-data'.
12311         * modules/get-rusage-data-tests: New file.
12312         * tests/test-get-rusage-data.c: New file.
12313
12314         New module 'get-rusage-data'.
12315         * lib/resource-ext.h (get_rusage_data): New declaration.
12316         * lib/get-rusage-data.c: New file.
12317         * modules/get-rusage-data: New file.
12318
12319 2011-01-25  Bruno Haible  <bruno@clisp.org>
12320
12321         get-rusage-as: Allow for easier testing.
12322         * lib/resource-ext.h (get_rusage_as): Add comment.
12323         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12324         (main): New function for interactive testing.
12325
12326 2011-01-25  Bruno Haible  <bruno@clisp.org>
12327
12328         vma-iter: Treat Haiku like BeOS.
12329         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12330         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12331
12332 2011-01-25  Eric Blake  <eblake@redhat.com>
12333
12334         c-stack: fix regression on cygwin when libsigsegv is present
12335         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12336
12337 2011-01-24  Bruno Haible  <bruno@clisp.org>
12338
12339         vma-iter: Avoid empty intervals.
12340         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12341         on an empty interval.
12342
12343 2011-01-24  Jim Meyering  <meyering@redhat.com>
12344
12345         u64: remove unnecessary #include
12346         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12347
12348 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12349
12350         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12351         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12352
12353 2011-01-23  Bruno Haible  <bruno@clisp.org>
12354
12355         New module 'vma-iter'.
12356         * lib/vma-iter.h: New file.
12357         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12358         * modules/vma-iter: New file.
12359         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12360         for get_rusage_as_via_iterator.
12361         (vma_iterate_callback): New function.
12362         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12363         * modules/get-rusage-as (Depends-on): Add vma-iter.
12364
12365 2011-01-23  Bruno Haible  <bruno@clisp.org>
12366
12367         uninorm: Tweak includes.
12368         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12369         Reported by Jim Meyering.
12370
12371 2011-01-23  Bruno Haible  <bruno@clisp.org>
12372
12373         get-rusage-as: Improve on NetBSD.
12374         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12375         /proc, like on FreeBSD.
12376
12377 2011-01-23  Jim Meyering  <meyering@redhat.com>
12378
12379         xreadlink.h: remove unnecessary #include
12380         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12381
12382         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12383         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12384
12385 2011-01-23  Bruno Haible  <bruno@clisp.org>
12386
12387         get-rusage-as: Fix bug.
12388         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12389         original limit when aborting the first loop.
12390
12391 2011-01-23  Bruno Haible  <bruno@clisp.org>
12392
12393         wctype: Ensure valid C syntax.
12394         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12395         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12396
12397 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12398
12399         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12401         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12402         as they are needed only for configure's test case.
12403         This removes two unnecessary symbols from config.h.
12404
12405         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12406         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12407         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12408         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12409         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12410         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12411         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12412         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12413         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12414         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12415         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12419         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12420         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12421         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12422         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12423
12424 2011-01-21  Eric Blake  <eblake@redhat.com>
12425
12426         maintainer-makefile: work with older git for submodule check
12427         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12428         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12429         Reported by Matthias Bolte.
12430
12431         bootstrap: minor portability fixes
12432         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12433         (usage): Omit leading capital and trailing . on help phrases, per
12434         GNU Coding Standards.
12435         (check_versions, top level): Prefix messages with script name.
12436
12437 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12438
12439         bootstrap: support --no-git option
12440         * build-aux/bootstrap: Add --no-git option, to be used when
12441         --gnulib-srcdir points to the exact desired checkout.
12442
12443 2011-01-21  Eric Blake  <eblake@redhat.com>
12444
12445         strerror_r-posix: work with glibc 2.13
12446         * lib/strerror_r.c (strerror_r): Fix return type.
12447
12448 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12449             Bruno Haible  <bruno@clisp.org>
12450
12451         uN_strstr: New unit tests.
12452         * modules/unistr/u8-strstr-tests: New file.
12453         * modules/unistr/u16-strstr-tests: New file.
12454         * modules/unistr/u32-strstr-tests: New file.
12455         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12456         * tests/unistr/test-u8-strstr.c: New file.
12457         * tests/unistr/test-u16-strstr.c: New file.
12458         * tests/unistr/test-u32-strstr.c: New file.
12459
12460 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12461             Bruno Haible  <bruno@clisp.org>
12462
12463         Make uN_strstr functions O(n) worst-case.
12464         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12465         16-bit and 32-bit unit cases, use the unibyte algorithm from
12466         lib/mbsstr.c.
12467         * lib/unistr/u8-strstr.c: Include <string.h>.
12468         (UNIT_IS_UINT8_T): New macro.
12469         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12470         (U_STRLEN, U_STRNLEN): New macros.
12471         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12472         (U_STRLEN, U_STRNLEN): New macros.
12473         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12474         (configure.ac): Update required libunistring version.
12475         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12476         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12477         malloca.
12478         (configure.ac): Update required libunistring version.
12479         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12480         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12481         malloca.
12482         (configure.ac): Update required libunistring version.
12483
12484 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12485             Bruno Haible  <bruno@clisp.org>
12486
12487         Prepare for faster uN_strstr functions.
12488         * lib/str-kmp.h: Support definable UNITs.
12489         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12490         needle_len argument.
12491         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12492         * lib/mbscasestr.c (mbscasestr): Likewise.
12493
12494 2011-01-21  Pádraig Brady <P@draigBrady.com>
12495
12496         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12497         * tests/test-malloca.c (main): Unset the environment variable
12498         to greatly speed up the test.
12499         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12500         * modules/malloca-tests: Depend on unsetenv.
12501
12502 2011-01-21  Pádraig Brady <P@draigBrady.com>
12503
12504         ignore-value: remove stdint dependency
12505         * lib/ignore-value.h: Remove <stdint.h>
12506         * modules/ignore-value: Remove stdint dependency.
12507
12508 2011-01-21  Jim Meyering  <meyering@redhat.com>
12509
12510         maint.mk: adjust variable name to be consistent with other gl_ vars
12511         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12512         to be lower case.
12513
12514 2011-01-20  Jim Meyering  <meyering@redhat.com>
12515
12516         maint.mk: make "check" depend on public-submodule-commit by default
12517         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12518
12519 2011-01-20  Bruno Haible  <bruno@clisp.org>
12520
12521         mbfile, mbiter: Complete change from 2008-12-21.
12522         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12523         * m4/mbiter.m4 (gl_MBITER): Likewise.
12524
12525 2011-01-20  Jim Meyering  <meyering@redhat.com>
12526
12527         init.sh: insert space between each function name and "()"
12528         * tests/init.sh: Make it a little easier to see that a function's
12529         name is "warn_", and not "warn" when looking at the first part of
12530         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12531
12532 2011-01-20  Jim Meyering  <meyering@redhat.com>
12533
12534         mountlist: clean up code formatting
12535         * lib/mountlist.c (read_file_system_list): Split a long line,
12536         correct bracing style, use NULL in place of "(struct statfs *)0",
12537         don't parenthesize return value, add spaces around "=" and after
12538         ";-in-for-stmt".
12539
12540 2011-01-14  Markus Duft <mduft@gentoo.org>
12541
12542         mountlist: add support for Interix
12543         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12544         Apply statvfs to all entries of /dev/fs.
12545         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12546         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12547
12548 2011-01-20  Jim Meyering  <meyering@redhat.com>
12549
12550         maint.mk: improve the public-submodule-commit rule
12551         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12552         to suppress printing of its commands... unless V=1.
12553         Add git submodule's --quiet option to suppress printing of e.g.,
12554         "Entering gnulib" output.
12555         "cd" into $(srcdir) before running git submodule.
12556
12557 2011-01-20  Bruno Haible  <bruno@clisp.org>
12558
12559         include_next: Fix bug introduced on 2011-01-18.
12560         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12561         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12562         ac_cv_header_... variable if the second argument is not 'check'.
12563         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12564         gl_NEXT_HEADERS_INTERNAL.
12565
12566 2011-01-20  Bruno Haible  <bruno@clisp.org>
12567
12568         Allow the user to avoid the GNULIB_TEST_* macros.
12569         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12570         Suggested by Paul Eggert.
12571
12572 2011-01-14  Jim Meyering  <meyering@redhat.com>
12573
12574         bootstrap: avoid failure when there is no .gitmodules file
12575         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12576         has been assigned to, even when its value is the empty string.
12577         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12578         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12579         Reported by John W. Eaton <jwe@gnu.org>.
12580
12581 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12582
12583         assume <ctype.h>, ..., <time.h> exist
12584         For years gnulib has been assuming the existence of the headers
12585         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12586         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12587         them, since they don't appear to be needed.
12588         * README (Portability guidelines): Document this.
12589         * lib/flock.c: Assume <fcntl.h> exists.
12590         * lib/regex_internal.h: Assume <locale.h> exists.
12591         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12592         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12593         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12594         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12595         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12596         * m4/regex.m4 (gl_REGEX): Likewise.
12597         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12598         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12599         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12600         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12601         * tests/test-argp.c: Likewise.
12602         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12603
12604         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12605         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12606         AA_APPLE_UNIVERSAL_BUILD.  See
12607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12608         * NEWS: Document this.
12609
12610 2011-01-19  Eric Blake  <eblake@redhat.com>
12611
12612         c-stack: assume stack overflow if SA_SIGINFO unsupported
12613         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12614         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12615         sigaction will work.
12616         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12617         behavior match Linux.
12618         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12619
12620         stdbool-tests: accomodate Haiku
12621         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12622
12623         binary-io: fix O_TEXT on Haiku
12624         * modules/binary-io (Depends-on): Add fcntl-h.
12625         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12626         than blindly undefining O_TEXT.
12627         Reported by Scott McCreary.
12628
12629 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12630
12631         include_next: do not check for standard headers like stddef.h
12632
12633         I found this problem when modifying Emacs to use gnulib.
12634         I noticed that it added HAVE_STDDEF_H to config.h, even though
12635         gnulib always assumes <stddef.h> exists as per README and this
12636         symbol is unnecessary.
12637         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12638         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12639         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12640         faster for headers like stddef.h that are known to exist.
12641         (gl_CHECK_NEXT_HEADERS): Use it.
12642         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12643         rather than gl_CHECK_NEXT_HEADERS.
12644         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12645         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12646
12647 2011-01-18  Eric Blake  <eblake@redhat.com>
12648
12649         ansi-c++-opt: skip C++ dependency style if C++ is unused
12650         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12651         tests when we know C++ compilation is not desired.
12652         Reported by Scott McCreary.
12653
12654 2011-01-18  Bruno Haible  <bruno@clisp.org>
12655
12656         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12657         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12658         (main): Perform test also when getrlimit and setrlimit don't exist or
12659         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12660         limiting the address space size using setrlimit, compare the address
12661         space size before and after the the test.
12662         * tests/test-dprintf-posix2.c: Likewise.
12663         * tests/test-fprintf-posix3.sh: Update skip messages.
12664         * tests/test-dprintf-posix2.sh: Likewise.
12665         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12666         * modules/dprintf-posix-tests (Depends-on): Likewise.
12667         Reported by Bruce Korb <bkorb@gnu.org> and
12668         Gary V. Vaughan <gary@gnu.org>.
12669
12670 2011-01-18  Bruno Haible  <bruno@clisp.org>
12671
12672         get-rusage-as: Improvement for Cygwin.
12673         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12674         areas that are merely reserved.
12675
12676 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12677
12678         strftime: remove dependencies on multibyte modules
12679
12680         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12681         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12682         only if __osf__ is defined, and I suspect OSF doesn't need these
12683         other modules.  If my guess is wrong, we'll need to come up with a
12684         variant of strftime that doesn't need the multibyte modules.
12685
12686         I discovered this problem when attempting modify Emacs to use the
12687         strftime module.  With the previous gnulib, this caused Emacs to
12688         need 31 new files, ranging from lib/config.charset to
12689         m4/wint_t.m4.  This was overkill and I expect would be offputting
12690         to the Emacs maintainers.  After this change, only 6 new files are
12691         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12692         stdbool.m4, and tm_gmtoff.m4.
12693
12694         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12695         Suggested by Bruno Haible in
12696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12697         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12698         and do not check for wchar.h.
12699         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12700         (Depends-on): Remove mbrlen, mbsinit, wchar.
12701
12702 2011-01-18  Bruno Haible  <bruno@clisp.org>
12703
12704         Tests for module 'get-rusage-as'.
12705         * modules/get-rusage-as-tests: New file.
12706         * tests/test-get-rusage-as.c: New file.
12707
12708         New module 'get-rusage-as'.
12709         * modules/get-rusage-as: New file.
12710         * lib/resource-ext.h: New file.
12711         * lib/get-rusage-as.c: New file.
12712
12713 2011-01-17  Eric Blake  <eblake@redhat.com>
12714
12715         sigaction: relax license from LGPLv3+ to LGPLv2+
12716         * modules/sigaction (License): Relax to LGPLv2+.
12717
12718 2011-01-14  Bruno Haible  <bruno@clisp.org>
12719
12720         filemode: Make function declarations usable in C++ mode.
12721         * lib/filemode.h: Enclose function declarations in extern "C" block.
12722         Reported by John W. Eaton <jwe@gnu.org>.
12723
12724 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12725
12726         save-cwd: no longer include "xgetcwd.h"
12727         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12728         This avoids a compilation failure in projects that use save-cwd
12729         without also using the xgetcwd module.
12730
12731 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12732
12733         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12734         This is so that a program like Emacs, which needs only dtoastr,
12735         does not have to bother with distributing and compiling ftoastr
12736         and ldtoastr.
12737         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12738         * modules/dtoastr, modules/ldtoastr: New files.
12739         * modules/ftoastr: Now works just for 'float'.
12740         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12741         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12742         dtoastr.c, ldtoastr.c.
12743
12744 2011-01-11  Jim Meyering  <meyering@redhat.com>
12745
12746         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12747         There is no need to work around the lack of the fchdir function,
12748         since gnulib can now provide a replacement when required.
12749         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12750         * modules/save-cwd (Depends-on): Add fchdir.
12751
12752 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12753
12754         openat, save-cwd: avoid xmalloc
12755
12756         This removes a direct (but undocumented) dependency of openat on
12757         xalloc, along with an indirect dependency via save-cwd.  It also
12758         removes a dependency of save-cwd on xgetcwd, and thereby
12759         indirectly on xalloc.  This change causes the openat substitute
12760         to fall back on save_cwd when memory is tight, and for save_cwd to
12761         fail instead of dying when memory is tight, but that's good enough.
12762         Problem and initial idea for fix reported by Bastien Roucaries in
12763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12764
12765         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12766         xalloc.h (for xmalloc).
12767         (openat_proc_name): Use malloc, not xmalloc.
12768         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12769         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12770
12771         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12772         This avoids heap allocation for file names whose lengths are in
12773         the range 512..1023, with the upper bound increasing to at most
12774         4031 depending on the platform's PATH_MAX.  (We do not want
12775         pathmax.h here as it might supply a non-constant PATH_MAX.)
12776         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12777         Perhaps they should be moved to malloca.h?
12778         (OPENAT_BUFFER_SIZE): Use them.
12779
12780 2011-01-10  Bruno Haible  <bruno@clisp.org>
12781
12782         doc: Update users.txt.
12783         * users.txt: Add recutils.
12784
12785 2011-01-09  Karl Berry  <karl@gnu.org>
12786
12787         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12788
12789         * doc/configmake.texi: New file.
12790         * doc/gnulib.texi: Include it.
12791         * modules/configmake: Move documentation from here.
12792
12793 2011-01-09  Bruno Haible  <bruno@clisp.org>
12794
12795         Update to Unicode 6.0.0.
12796         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12797         (get_lbp): Update for Unicode 6.0.0.
12798         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12799         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12800         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12801         U+11001, U+11038..U+11046. Remove U+06DE.
12802         (uc_width): Fix bounds of planes.
12803         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12804         lib/uniwidth/width.c.
12805         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12806         trailing whitespace removed.
12807         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12808         without comments, but with the original copyright notice.
12809         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12810         * lib/unicase/ignorable.h: Likewise.
12811         * lib/unicase/tocasefold.h: Likewise.
12812         * lib/unicase/tolower.h: Likewise.
12813         * lib/unicase/totitle.h: Likewise.
12814         * lib/unicase/toupper.h: Likewise.
12815         * lib/unictype/bidi_of.h: Likewise.
12816         * lib/unictype/blocks.h: Likewise.
12817         * lib/unictype/categ_C.h: Likewise.
12818         * lib/unictype/categ_Cn.h: Likewise.
12819         * lib/unictype/categ_L.h: Likewise.
12820         * lib/unictype/categ_Ll.h: Likewise.
12821         * lib/unictype/categ_Lm.h: Likewise.
12822         * lib/unictype/categ_Lo.h: Likewise.
12823         * lib/unictype/categ_Lu.h: Likewise.
12824         * lib/unictype/categ_M.h: Likewise.
12825         * lib/unictype/categ_Mc.h: Likewise.
12826         * lib/unictype/categ_Me.h: Likewise.
12827         * lib/unictype/categ_Mn.h: Likewise.
12828         * lib/unictype/categ_N.h: Likewise.
12829         * lib/unictype/categ_Nd.h: Likewise.
12830         * lib/unictype/categ_No.h: Likewise.
12831         * lib/unictype/categ_P.h: Likewise.
12832         * lib/unictype/categ_Po.h: Likewise.
12833         * lib/unictype/categ_S.h: Likewise.
12834         * lib/unictype/categ_Sc.h: Likewise.
12835         * lib/unictype/categ_Sk.h: Likewise.
12836         * lib/unictype/categ_Sm.h: Likewise.
12837         * lib/unictype/categ_So.h: Likewise.
12838         * lib/unictype/categ_of.h: Likewise.
12839         * lib/unictype/combining.h: Likewise.
12840         * lib/unictype/ctype_alnum.h: Likewise.
12841         * lib/unictype/ctype_alpha.h: Likewise.
12842         * lib/unictype/ctype_graph.h: Likewise.
12843         * lib/unictype/ctype_lower.h: Likewise.
12844         * lib/unictype/ctype_print.h: Likewise.
12845         * lib/unictype/ctype_punct.h: Likewise.
12846         * lib/unictype/ctype_upper.h: Likewise.
12847         * lib/unictype/decdigit.h: Likewise.
12848         * lib/unictype/digit.h: Likewise.
12849         * lib/unictype/numeric.h: Likewise.
12850         * lib/unictype/pr_alphabetic.h: Likewise.
12851         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12852         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12853         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12854         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12855         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12856         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12857         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12858         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12859         * lib/unictype/pr_case_ignorable.h: Likewise.
12860         * lib/unictype/pr_cased.h: Likewise.
12861         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12862         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12863         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12864         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12865         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12866         * lib/unictype/pr_combining.h: Likewise.
12867         * lib/unictype/pr_composite.h: Likewise.
12868         * lib/unictype/pr_currency_symbol.h: Likewise.
12869         * lib/unictype/pr_decimal_digit.h: Likewise.
12870         * lib/unictype/pr_deprecated.h: Likewise.
12871         * lib/unictype/pr_format_control.h: Likewise.
12872         * lib/unictype/pr_grapheme_base.h: Likewise.
12873         * lib/unictype/pr_grapheme_extend.h: Likewise.
12874         * lib/unictype/pr_grapheme_link.h: Likewise.
12875         * lib/unictype/pr_id_continue.h: Likewise.
12876         * lib/unictype/pr_id_start.h: Likewise.
12877         * lib/unictype/pr_ideographic.h: Likewise.
12878         * lib/unictype/pr_lowercase.h: Likewise.
12879         * lib/unictype/pr_math.h: Likewise.
12880         * lib/unictype/pr_numeric.h: Likewise.
12881         * lib/unictype/pr_other_alphabetic.h: Likewise.
12882         * lib/unictype/pr_other_id_continue.h: Likewise.
12883         * lib/unictype/pr_other_math.h: Likewise.
12884         * lib/unictype/pr_punctuation.h: Likewise.
12885         * lib/unictype/pr_sentence_terminal.h: Likewise.
12886         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12887         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12888         * lib/unictype/pr_unified_ideograph.h: Likewise.
12889         * lib/unictype/pr_uppercase.h: Likewise.
12890         * lib/unictype/pr_xid_continue.h: Likewise.
12891         * lib/unictype/pr_xid_start.h: Likewise.
12892         * lib/unictype/scripts.h: Likewise.
12893         * lib/unictype/scripts_byname.gperf: Likewise.
12894         * lib/unictype/sy_java_ident.h: Likewise.
12895         * lib/unigbrk/gbrkprop.h: Likewise.
12896         * lib/unilbrk/lbrkprop1.h: Likewise.
12897         * lib/unilbrk/lbrkprop2.h: Likewise.
12898         * lib/uninorm/decomposition-table2.h: Likewise.
12899         * lib/uniwbrk/wbrkprop.h: Likewise.
12900         * tests/unicase/test-cased.c: Likewise.
12901         * tests/unicase/test-ignorable.c: Likewise.
12902         * tests/unicase/test-uc_tolower.c: Likewise.
12903         * tests/unicase/test-uc_totitle.c: Likewise.
12904         * tests/unicase/test-uc_toupper.c: Likewise.
12905         * tests/unictype/test-categ_C.c: Likewise.
12906         * tests/unictype/test-categ_Cn.c: Likewise.
12907         * tests/unictype/test-categ_L.c: Likewise.
12908         * tests/unictype/test-categ_Ll.c: Likewise.
12909         * tests/unictype/test-categ_Lm.c: Likewise.
12910         * tests/unictype/test-categ_Lo.c: Likewise.
12911         * tests/unictype/test-categ_Lu.c: Likewise.
12912         * tests/unictype/test-categ_M.c: Likewise.
12913         * tests/unictype/test-categ_Mc.c: Likewise.
12914         * tests/unictype/test-categ_Me.c: Likewise.
12915         * tests/unictype/test-categ_Mn.c: Likewise.
12916         * tests/unictype/test-categ_N.c: Likewise.
12917         * tests/unictype/test-categ_Nd.c: Likewise.
12918         * tests/unictype/test-categ_No.c: Likewise.
12919         * tests/unictype/test-categ_P.c: Likewise.
12920         * tests/unictype/test-categ_Po.c: Likewise.
12921         * tests/unictype/test-categ_S.c: Likewise.
12922         * tests/unictype/test-categ_Sc.c: Likewise.
12923         * tests/unictype/test-categ_Sk.c: Likewise.
12924         * tests/unictype/test-categ_Sm.c: Likewise.
12925         * tests/unictype/test-categ_So.c: Likewise.
12926         * tests/unictype/test-ctype_alnum.c: Likewise.
12927         * tests/unictype/test-ctype_alpha.c: Likewise.
12928         * tests/unictype/test-ctype_graph.c: Likewise.
12929         * tests/unictype/test-ctype_lower.c: Likewise.
12930         * tests/unictype/test-ctype_print.c: Likewise.
12931         * tests/unictype/test-ctype_punct.c: Likewise.
12932         * tests/unictype/test-ctype_upper.c: Likewise.
12933         * tests/unictype/test-decdigit.h: Likewise.
12934         * tests/unictype/test-digit.h: Likewise.
12935         * tests/unictype/test-numeric.h: Likewise.
12936         * tests/unictype/test-pr_alphabetic.c: Likewise.
12937         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12938         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12939         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12940         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12941         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12942         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12943         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12944         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12945         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12946         * tests/unictype/test-pr_cased.c: Likewise.
12947         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12948         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12949         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12950         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12951         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12952         * tests/unictype/test-pr_combining.c: Likewise.
12953         * tests/unictype/test-pr_composite.c: Likewise.
12954         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12955         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12956         * tests/unictype/test-pr_deprecated.c: Likewise.
12957         * tests/unictype/test-pr_format_control.c: Likewise.
12958         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12959         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12960         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12961         * tests/unictype/test-pr_id_continue.c: Likewise.
12962         * tests/unictype/test-pr_id_start.c: Likewise.
12963         * tests/unictype/test-pr_ideographic.c: Likewise.
12964         * tests/unictype/test-pr_lowercase.c: Likewise.
12965         * tests/unictype/test-pr_math.c: Likewise.
12966         * tests/unictype/test-pr_numeric.c: Likewise.
12967         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12968         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12969         * tests/unictype/test-pr_other_math.c: Likewise.
12970         * tests/unictype/test-pr_punctuation.c: Likewise.
12971         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12972         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12973         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12974         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12975         * tests/unictype/test-pr_uppercase.c: Likewise.
12976         * tests/unictype/test-pr_xid_continue.c: Likewise.
12977         * tests/unictype/test-pr_xid_start.c: Likewise.
12978         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12979         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12980         changes.
12981         * lib/unictype/categ_Cc.h: Likewise.
12982         * lib/unictype/categ_Cf.h: Likewise.
12983         * lib/unictype/categ_Co.h: Likewise.
12984         * lib/unictype/categ_Cs.h: Likewise.
12985         * lib/unictype/categ_Lt.h: Likewise.
12986         * lib/unictype/categ_Nl.h: Likewise.
12987         * lib/unictype/categ_Pc.h: Likewise.
12988         * lib/unictype/categ_Pd.h: Likewise.
12989         * lib/unictype/categ_Pe.h: Likewise.
12990         * lib/unictype/categ_Pf.h: Likewise.
12991         * lib/unictype/categ_Pi.h: Likewise.
12992         * lib/unictype/categ_Ps.h: Likewise.
12993         * lib/unictype/categ_Z.h: Likewise.
12994         * lib/unictype/categ_Zl.h: Likewise.
12995         * lib/unictype/categ_Zp.h: Likewise.
12996         * lib/unictype/categ_Zs.h: Likewise.
12997         * lib/unictype/ctype_blank.h: Likewise.
12998         * lib/unictype/ctype_cntrl.h: Likewise.
12999         * lib/unictype/ctype_digit.h: Likewise.
13000         * lib/unictype/ctype_space.h: Likewise.
13001         * lib/unictype/ctype_xdigit.h: Likewise.
13002         * lib/unictype/mirror.h: Likewise.
13003         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13004         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13005         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13006         * lib/unictype/pr_bidi_control.h: Likewise.
13007         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13008         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13009         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13010         * lib/unictype/pr_bidi_pdf.h: Likewise.
13011         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13012         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13013         * lib/unictype/pr_dash.h: Likewise.
13014         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13015         * lib/unictype/pr_diacritic.h: Likewise.
13016         * lib/unictype/pr_extender.h: Likewise.
13017         * lib/unictype/pr_hex_digit.h: Likewise.
13018         * lib/unictype/pr_hyphen.h: Likewise.
13019         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13020         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13021         * lib/unictype/pr_ignorable_control.h: Likewise.
13022         * lib/unictype/pr_iso_control.h: Likewise.
13023         * lib/unictype/pr_join_control.h: Likewise.
13024         * lib/unictype/pr_left_of_pair.h: Likewise.
13025         * lib/unictype/pr_line_separator.h: Likewise.
13026         * lib/unictype/pr_logical_order_exception.h: Likewise.
13027         * lib/unictype/pr_non_break.h: Likewise.
13028         * lib/unictype/pr_not_a_character.h: Likewise.
13029         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13030         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13031         * lib/unictype/pr_other_id_start.h: Likewise.
13032         * lib/unictype/pr_other_lowercase.h: Likewise.
13033         * lib/unictype/pr_other_uppercase.h: Likewise.
13034         * lib/unictype/pr_paired_punctuation.h: Likewise.
13035         * lib/unictype/pr_paragraph_separator.h: Likewise.
13036         * lib/unictype/pr_pattern_syntax.h: Likewise.
13037         * lib/unictype/pr_pattern_white_space.h: Likewise.
13038         * lib/unictype/pr_private_use.h: Likewise.
13039         * lib/unictype/pr_quotation_mark.h: Likewise.
13040         * lib/unictype/pr_radical.h: Likewise.
13041         * lib/unictype/pr_soft_dotted.h: Likewise.
13042         * lib/unictype/pr_space.h: Likewise.
13043         * lib/unictype/pr_titlecase.h: Likewise.
13044         * lib/unictype/pr_variation_selector.h: Likewise.
13045         * lib/unictype/pr_white_space.h: Likewise.
13046         * lib/unictype/pr_zero_width.h: Likewise.
13047         * lib/unictype/sy_c_ident.h: Likewise.
13048         * lib/unictype/sy_c_whitespace.h: Likewise.
13049         * lib/unictype/sy_java_whitespace.h: Likewise.
13050         * lib/uninorm/composition-table.gperf: Likewise.
13051         * lib/uninorm/decomposition-table1.h: Likewise.
13052         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13053         LB8.
13054         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13055         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13056         * modules/unictype/*: Bump version number of expected libunistring
13057         version.
13058
13059 2011-01-09  Bruno Haible  <bruno@clisp.org>
13060
13061         Update to Unicode 5.2.0.
13062         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13063         trailing whitespace removed.
13064
13065 2011-01-09  Bruno Haible  <bruno@clisp.org>
13066
13067         New Unicode character properties, from Unicode 5.2.0.
13068         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13069         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13070         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13071         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13072         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13073         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13074         uc_is_property_cased, uc_is_property_case_ignorable,
13075         uc_is_property_changes_when_lowercased,
13076         uc_is_property_changes_when_uppercased,
13077         uc_is_property_changes_when_titlecased,
13078         uc_is_property_changes_when_casefolded,
13079         uc_is_property_changes_when_casemapped): New declarations.
13080         * lib/unictype/pr_byname.gperf: Add the new properties.
13081         * modules/unictype/property-byname (Depends-on): Depend on the new
13082         properties modules.
13083         * modules/unictype/property-all (Depends-on): Likewise.
13084         * MODULES.html.sh (Unicode string functions): Add
13085         unictype/property-case-ignorable, unictype/property-cased,
13086         unictype/property-changes-when-casefolded,
13087         unictype/property-changes-when-casemapped,
13088         unictype/property-changes-when-lowercased,
13089         unictype/property-changes-when-titlecased,
13090         unictype/property-changes-when-uppercased.
13091
13092         New module 'unictype/property-changes-when-casemapped'.
13093         * modules/unictype/property-changes-when-casemapped: New file.
13094         * lib/unictype/pr_changes_when_casemapped.c: New file.
13095         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13096         generated by gen-uni-tables.
13097         * modules/unictype/property-changes-when-casemapped-tests: New file.
13098         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13099         automatically generated by gen-uni-tables.
13100
13101         New module 'unictype/property-changes-when-casefolded'.
13102         * modules/unictype/property-changes-when-casefolded: New file.
13103         * lib/unictype/pr_changes_when_casefolded.c: New file.
13104         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13105         generated by gen-uni-tables.
13106         * modules/unictype/property-changes-when-casefolded-tests: New file.
13107         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13108         automatically generated by gen-uni-tables.
13109
13110         New module 'unictype/property-changes-when-titlecased'.
13111         * modules/unictype/property-changes-when-titlecased: New file.
13112         * lib/unictype/pr_changes_when_titlecased.c: New file.
13113         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13114         generated by gen-uni-tables.
13115         * modules/unictype/property-changes-when-titlecased-tests: New file.
13116         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13117         automatically generated by gen-uni-tables.
13118
13119         New module 'unictype/property-changes-when-uppercased'.
13120         * modules/unictype/property-changes-when-uppercased: New file.
13121         * lib/unictype/pr_changes_when_uppercased.c: New file.
13122         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13123         generated by gen-uni-tables.
13124         * modules/unictype/property-changes-when-uppercased-tests: New file.
13125         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13126         automatically generated by gen-uni-tables.
13127
13128         New module 'unictype/property-changes-when-lowercased'.
13129         * modules/unictype/property-changes-when-lowercased: New file.
13130         * lib/unictype/pr_changes_when_lowercased.c: New file.
13131         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13132         generated by gen-uni-tables.
13133         * modules/unictype/property-changes-when-lowercased-tests: New file.
13134         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13135         automatically generated by gen-uni-tables.
13136
13137         New module 'unictype/property-case-ignorable'.
13138         * modules/unictype/property-case-ignorable: New file.
13139         * lib/unictype/pr_case_ignorable.c: New file.
13140         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13141         by gen-uni-tables.
13142         * modules/unictype/property-case-ignorable-tests: New file.
13143         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13144         generated by gen-uni-tables.
13145
13146         New module 'unictype/property-cased'.
13147         * modules/unictype/property-cased: New file.
13148         * lib/unictype/pr_cased.c: New file.
13149         * lib/unictype/pr_cased.h: New file, automatically generated by
13150         gen-uni-tables.
13151         * modules/unictype/property-cased-tests: New file.
13152         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13153         gen-uni-tables.
13154
13155 2011-01-09  Bruno Haible  <bruno@clisp.org>
13156
13157         Update to Unicode 5.2.0.
13158         * lib/gen-uni-tables.c (output_predicate, output_category,
13159         output_combclass, output_bidi_category, output_decimal_digit_test,
13160         output_decimal_digit, output_digit_test, output_digit,
13161         output_numeric_test, output_numeric, output_mirror, output_scripts,
13162         output_scripts_byname, output_blocks, output_ident_category): Fix
13163         comment header.
13164         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13165         get_wbp.
13166         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13167         items.
13168         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13169         Changes_When_Lowercased, Changes_When_Uppercased,
13170         Changes_When_Titlecased, Changes_When_Casefolded,
13171         Changes_When_Casemapped.
13172         (is_property_alphabetic, is_property_default_ignorable_code_point):
13173         Update for Unicode 5.2.0.
13174         (is_property_cased, is_property_case_ignorable,
13175         is_property_changes_when_lowercased,
13176         is_property_changes_when_uppercased,
13177         is_property_changes_when_titlecased,
13178         is_property_changes_when_casefolded,
13179         is_property_changes_when_casemapped): New functions.
13180         (output_properties): Output also the properties cased, case_ignorable,
13181         changes_when_lowercased, changes_when_uppercased,
13182         changes_when_titlecased, changes_when_casefolded,
13183         changes_when_casemapped.
13184         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13185         Unicode TR#11 revision 17 -> 19.
13186         (LBP_CP): New enumeration value.
13187         (LBP_*): Adjust values accordingly.
13188         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13189         TR#14 revision 22 -> 24.
13190         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13191         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13192         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13193         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13194         is_WBP_MIDLETTER.
13195         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13196         the code1 and code2 of each composition rule.
13197         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13198         * lib/unicase/ignorable.h: Likewise.
13199         * lib/unicase/tocasefold.h: Likewise.
13200         * lib/unicase/tolower.h: Likewise.
13201         * lib/unicase/totitle.h: Likewise.
13202         * lib/unicase/toupper.h: Likewise.
13203         * lib/unictype/bidi_of.h: Likewise.
13204         * lib/unictype/blocks.h: Likewise.
13205         * lib/unictype/categ_C.h: Likewise.
13206         * lib/unictype/categ_Cf.h: Likewise.
13207         * lib/unictype/categ_Cn.h: Likewise.
13208         * lib/unictype/categ_L.h: Likewise.
13209         * lib/unictype/categ_Ll.h: Likewise.
13210         * lib/unictype/categ_Lm.h: Likewise.
13211         * lib/unictype/categ_Lo.h: Likewise.
13212         * lib/unictype/categ_Lu.h: Likewise.
13213         * lib/unictype/categ_M.h: Likewise.
13214         * lib/unictype/categ_Mc.h: Likewise.
13215         * lib/unictype/categ_Mn.h: Likewise.
13216         * lib/unictype/categ_N.h: Likewise.
13217         * lib/unictype/categ_Nd.h: Likewise.
13218         * lib/unictype/categ_Nl.h: Likewise.
13219         * lib/unictype/categ_No.h: Likewise.
13220         * lib/unictype/categ_P.h: Likewise.
13221         * lib/unictype/categ_Pd.h: Likewise.
13222         * lib/unictype/categ_Po.h: Likewise.
13223         * lib/unictype/categ_S.h: Likewise.
13224         * lib/unictype/categ_Sc.h: Likewise.
13225         * lib/unictype/categ_So.h: Likewise.
13226         * lib/unictype/categ_of.h: Likewise.
13227         * lib/unictype/combining.h: Likewise.
13228         * lib/unictype/ctype_alnum.h: Likewise.
13229         * lib/unictype/ctype_alpha.h: Likewise.
13230         * lib/unictype/ctype_graph.h: Likewise.
13231         * lib/unictype/ctype_lower.h: Likewise.
13232         * lib/unictype/ctype_print.h: Likewise.
13233         * lib/unictype/ctype_punct.h: Likewise.
13234         * lib/unictype/ctype_upper.h: Likewise.
13235         * lib/unictype/decdigit.h: Likewise.
13236         * lib/unictype/digit.h: Likewise.
13237         * lib/unictype/numeric.h: Likewise.
13238         * lib/unictype/pr_alphabetic.h: Likewise.
13239         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13240         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13241         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13242         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13243         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13244         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13245         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13246         * lib/unictype/pr_combining.h: Likewise.
13247         * lib/unictype/pr_composite.h: Likewise.
13248         * lib/unictype/pr_currency_symbol.h: Likewise.
13249         * lib/unictype/pr_dash.h: Likewise.
13250         * lib/unictype/pr_decimal_digit.h: Likewise.
13251         * lib/unictype/pr_deprecated.h: Likewise.
13252         * lib/unictype/pr_diacritic.h: Likewise.
13253         * lib/unictype/pr_extender.h: Likewise.
13254         * lib/unictype/pr_grapheme_base.h: Likewise.
13255         * lib/unictype/pr_grapheme_extend.h: Likewise.
13256         * lib/unictype/pr_grapheme_link.h: Likewise.
13257         * lib/unictype/pr_id_continue.h: Likewise.
13258         * lib/unictype/pr_id_start.h: Likewise.
13259         * lib/unictype/pr_ideographic.h: Likewise.
13260         * lib/unictype/pr_ignorable_control.h: Likewise.
13261         * lib/unictype/pr_logical_order_exception.h: Likewise.
13262         * lib/unictype/pr_lowercase.h: Likewise.
13263         * lib/unictype/pr_numeric.h: Likewise.
13264         * lib/unictype/pr_other_alphabetic.h: Likewise.
13265         * lib/unictype/pr_punctuation.h: Likewise.
13266         * lib/unictype/pr_sentence_terminal.h: Likewise.
13267         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13268         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13269         * lib/unictype/pr_unified_ideograph.h: Likewise.
13270         * lib/unictype/pr_uppercase.h: Likewise.
13271         * lib/unictype/pr_xid_continue.h: Likewise.
13272         * lib/unictype/pr_xid_start.h: Likewise.
13273         * lib/unictype/pr_zero_width.h: Likewise.
13274         * lib/unictype/scripts.h: Likewise.
13275         * lib/unictype/scripts_byname.gperf: Likewise.
13276         * lib/unictype/sy_java_ident.h: Likewise.
13277         * lib/unigbrk/gbrkprop.h: Likewise.
13278         * lib/unilbrk/lbrkprop1.h: Likewise.
13279         * lib/unilbrk/lbrkprop2.h: Likewise.
13280         * lib/unilbrk/lbrktables.h: Likewise.
13281         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13282         LBP_CP. Implement rule LB30.
13283         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13284         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13285         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13286         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13287         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13288         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13289         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13290         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13291         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13292         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13293         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13294         bits instead of 16 bits in the code1 and code2 of each composition
13295         rule.
13296         (uc_composition): Update for Unicode 5.2.0.
13297         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13298         * lib/uninorm/decomposition-table2.h: Likewise.
13299         * lib/uniwbrk/wbrkprop.h: Likewise.
13300         * tests/unicase/test-cased.c: Likewise.
13301         * tests/unicase/test-ignorable.c: Likewise.
13302         * tests/unicase/test-uc_tolower.c: Likewise.
13303         * tests/unicase/test-uc_totitle.c: Likewise.
13304         * tests/unicase/test-uc_toupper.c: Likewise.
13305         * tests/unictype/test-categ_C.c: Likewise.
13306         * tests/unictype/test-categ_Cf.c: Likewise.
13307         * tests/unictype/test-categ_Cn.c: Likewise.
13308         * tests/unictype/test-categ_L.c: Likewise.
13309         * tests/unictype/test-categ_Ll.c: Likewise.
13310         * tests/unictype/test-categ_Lm.c: Likewise.
13311         * tests/unictype/test-categ_Lo.c: Likewise.
13312         * tests/unictype/test-categ_Lu.c: Likewise.
13313         * tests/unictype/test-categ_M.c: Likewise.
13314         * tests/unictype/test-categ_Mc.c: Likewise.
13315         * tests/unictype/test-categ_Mn.c: Likewise.
13316         * tests/unictype/test-categ_N.c: Likewise.
13317         * tests/unictype/test-categ_Nd.c: Likewise.
13318         * tests/unictype/test-categ_Nl.c: Likewise.
13319         * tests/unictype/test-categ_No.c: Likewise.
13320         * tests/unictype/test-categ_P.c: Likewise.
13321         * tests/unictype/test-categ_Pd.c: Likewise.
13322         * tests/unictype/test-categ_Po.c: Likewise.
13323         * tests/unictype/test-categ_S.c: Likewise.
13324         * tests/unictype/test-categ_Sc.c: Likewise.
13325         * tests/unictype/test-categ_So.c: Likewise.
13326         * tests/unictype/test-ctype_alnum.c: Likewise.
13327         * tests/unictype/test-ctype_alpha.c: Likewise.
13328         * tests/unictype/test-ctype_graph.c: Likewise.
13329         * tests/unictype/test-ctype_lower.c: Likewise.
13330         * tests/unictype/test-ctype_print.c: Likewise.
13331         * tests/unictype/test-ctype_punct.c: Likewise.
13332         * tests/unictype/test-ctype_upper.c: Likewise.
13333         * tests/unictype/test-decdigit.h: Likewise.
13334         * tests/unictype/test-digit.h: Likewise.
13335         * tests/unictype/test-numeric.h: Likewise.
13336         * tests/unictype/test-pr_alphabetic.c: Likewise.
13337         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13338         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13339         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13340         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13341         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13342         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13343         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13344         * tests/unictype/test-pr_combining.c: Likewise.
13345         * tests/unictype/test-pr_composite.c: Likewise.
13346         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13347         * tests/unictype/test-pr_dash.c: Likewise.
13348         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13349         * tests/unictype/test-pr_deprecated.c: Likewise.
13350         * tests/unictype/test-pr_diacritic.c: Likewise.
13351         * tests/unictype/test-pr_extender.c: Likewise.
13352         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13353         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13354         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13355         * tests/unictype/test-pr_id_continue.c: Likewise.
13356         * tests/unictype/test-pr_id_start.c: Likewise.
13357         * tests/unictype/test-pr_ideographic.c: Likewise.
13358         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13359         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13360         * tests/unictype/test-pr_lowercase.c: Likewise.
13361         * tests/unictype/test-pr_numeric.c: Likewise.
13362         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13363         * tests/unictype/test-pr_punctuation.c: Likewise.
13364         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13365         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13366         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13367         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13368         * tests/unictype/test-pr_uppercase.c: Likewise.
13369         * tests/unictype/test-pr_xid_continue.c: Likewise.
13370         * tests/unictype/test-pr_xid_start.c: Likewise.
13371         * tests/unictype/test-pr_zero_width.c: Likewise.
13372         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13373         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13374         changed behaviour: line breaking is now disallowed between a letter
13375         or '=' and '('.
13376         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13377         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13378         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13379         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13380         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13381         lib/uniwidth/width.c.
13382         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13383         without comments, but with the original copyright notice.
13384         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13385         changes.
13386         * lib/unictype/categ_Cc.h: Likewise.
13387         * lib/unictype/categ_Co.h: Likewise.
13388         * lib/unictype/categ_Cs.h: Likewise.
13389         * lib/unictype/categ_Lt.h: Likewise.
13390         * lib/unictype/categ_Me.h: Likewise.
13391         * lib/unictype/categ_Pc.h: Likewise.
13392         * lib/unictype/categ_Pe.h: Likewise.
13393         * lib/unictype/categ_Pf.h: Likewise.
13394         * lib/unictype/categ_Pi.h: Likewise.
13395         * lib/unictype/categ_Ps.h: Likewise.
13396         * lib/unictype/categ_Sk.h: Likewise.
13397         * lib/unictype/categ_Sm.h: Likewise.
13398         * lib/unictype/categ_Z.h: Likewise.
13399         * lib/unictype/categ_Zl.h: Likewise.
13400         * lib/unictype/categ_Zp.h: Likewise.
13401         * lib/unictype/categ_Zs.h: Likewise.
13402         * lib/unictype/ctype_blank.h: Likewise.
13403         * lib/unictype/ctype_cntrl.h: Likewise.
13404         * lib/unictype/ctype_digit.h: Likewise.
13405         * lib/unictype/ctype_space.h: Likewise.
13406         * lib/unictype/ctype_xdigit.h: Likewise.
13407         * lib/unictype/mirror.h: Likewise.
13408         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13409         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13410         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13411         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13412         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13413         * lib/unictype/pr_bidi_control.h: Likewise.
13414         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13415         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13416         * lib/unictype/pr_bidi_pdf.h: Likewise.
13417         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13418         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13419         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13420         * lib/unictype/pr_format_control.h: Likewise.
13421         * lib/unictype/pr_hex_digit.h: Likewise.
13422         * lib/unictype/pr_hyphen.h: Likewise.
13423         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13424         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13425         * lib/unictype/pr_iso_control.h: Likewise.
13426         * lib/unictype/pr_join_control.h: Likewise.
13427         * lib/unictype/pr_left_of_pair.h: Likewise.
13428         * lib/unictype/pr_line_separator.h: Likewise.
13429         * lib/unictype/pr_math.h: Likewise.
13430         * lib/unictype/pr_non_break.h: Likewise.
13431         * lib/unictype/pr_not_a_character.h: Likewise.
13432         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13433         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13434         * lib/unictype/pr_other_id_continue.h: Likewise.
13435         * lib/unictype/pr_other_id_start.h: Likewise.
13436         * lib/unictype/pr_other_lowercase.h: Likewise.
13437         * lib/unictype/pr_other_math.h: Likewise.
13438         * lib/unictype/pr_other_uppercase.h: Likewise.
13439         * lib/unictype/pr_paired_punctuation.h: Likewise.
13440         * lib/unictype/pr_paragraph_separator.h: Likewise.
13441         * lib/unictype/pr_pattern_syntax.h: Likewise.
13442         * lib/unictype/pr_pattern_white_space.h: Likewise.
13443         * lib/unictype/pr_private_use.h: Likewise.
13444         * lib/unictype/pr_quotation_mark.h: Likewise.
13445         * lib/unictype/pr_radical.h: Likewise.
13446         * lib/unictype/pr_soft_dotted.h: Likewise.
13447         * lib/unictype/pr_space.h: Likewise.
13448         * lib/unictype/pr_titlecase.h: Likewise.
13449         * lib/unictype/pr_variation_selector.h: Likewise.
13450         * lib/unictype/pr_white_space.h: Likewise.
13451         * lib/unictype/sy_c_ident.h: Likewise.
13452         * lib/unictype/sy_c_whitespace.h: Likewise.
13453         * lib/unictype/sy_java_whitespace.h: Likewise.
13454         * modules/uni*/*: Bump version number of expected libunistring version.
13455         Reported by Simon Josefsson.
13456
13457 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13458
13459         useless-if-before-free: fix typo in --help and make the internal,
13460         automatic version date update process work once again.
13461         --help output contained a NUL character instead of the
13462         backslash-zero that was intended.  Also, the "must lie within
13463         the first 8 lines" line is on line 9, and hence not getting
13464         automatically updated.
13465         * build-aux/useless-if-before-free: Fix the former by adding a
13466         backslash, and the latter by condensing the three lines of what-it-does
13467         to a single line, leaving one line of slack for the future.
13468
13469 2011-01-09  Bruno Haible  <bruno@clisp.org>
13470
13471         uniwidth/width: Fix width of U+1D173..U+1D17A.
13472         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13473         symbolic_width, output_width_property_test): New functions.
13474         (main): Invoke output_nonspacing_property, output_width_property_test.
13475         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13476         U+1D173..U+1D17A.
13477         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13478         1.
13479         * modules/uniwidth/*: Bump version number of expected libunistring
13480         version.
13481         * modules/unilbrk/*: Likewise.
13482
13483 2011-01-08  Bruno Haible  <bruno@clisp.org>
13484
13485         uninorm tests: Preserve copyright of Unicode data file.
13486         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13487         Mention modifications.
13488
13489 2011-01-08  Bruno Haible  <bruno@clisp.org>
13490
13491         gen-uni-tables: Prepare for Unicode 5.2.0.
13492         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13493         (debug_output_lbp, output_lbp): Update.
13494
13495 2011-01-08  Bruno Haible  <bruno@clisp.org>
13496
13497         unilbrk: Clarify gen-uni-tables.c code.
13498         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13499         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13500         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13501
13502 2011-01-07  Bruno Haible  <bruno@clisp.org>
13503
13504         strtod: Restore errno when successfully parsing Infinity or NaN.
13505         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13506         restore the original errno.
13507
13508 2011-01-07  Bruno Haible  <bruno@clisp.org>
13509
13510         remove test: Avoid failure on HP-UX 11.
13511         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13512
13513 2011-01-07  Bruno Haible  <bruno@clisp.org>
13514
13515         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13516         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13517         error code.
13518
13519 2011-01-07  Pádraig Brady <P@draigBrady.com>
13520
13521         ignore-value: fixup comments, and add Eric Blake
13522         as an author since he rewrote the macros.
13523         * lib/ignore-value.h (ignore_value):  State that
13524         we now support aggregates.  Also specify exactly
13525         when the GCC warn_unused_result feature was added.
13526
13527 2011-01-06  Eric Blake  <eblake@redhat.com>
13528
13529         ignore-value: support aggregate types
13530         * lib/ignore-value.h (ignore_value): Provide separate gcc
13531         definition.
13532         * modules/ignore-value-tests: New test module.
13533         * tests/test-ignore-value.c: New test.
13534
13535         maint.mk: improve sc_prohibit_strcmp regex
13536         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13537         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13538         definition of STRNEQ.
13539
13540         signal: work around Haiku issue with SIGBUS
13541         * lib/siglist.h: Add comment.
13542         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13543         strsignal's favoring of SIGSEGV.
13544         * tests/test-signal.c (main): Avoid test failure.
13545         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13546         Reported by Scott McCreary.
13547
13548         maint.mk: add pre-release check to ensure submodule commits are public
13549         * top/maint.mk (public-submodule-commit): New rule.
13550         (submodule-checks): New variable.
13551         (alpha beta stable): Depend on the variable.
13552
13553 2011-01-05  Pádraig Brady <P@draigBrady.com>
13554         and Jim Meyering  <meyering@redhat.com>
13555
13556         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13557         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13558         (ATTRIBUTE_DEPRECATED): Define.
13559         (_ignore_case): New function.
13560         (ignore_value): New macro, to replace the old function.
13561         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13562         * modules/ignore-value (Depends-on): Add stdint.
13563
13564 2011-01-04  Eric Blake  <eblake@redhat.com>
13565
13566         doc: regenerate INSTALL
13567         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13568         @firstparagraphindent support, now that autoconf dropped it.
13569         (INSTALL_PRELUDE): Reinstate old macro.
13570         * doc/install.texi: Resync from autoconf.
13571         * doc/INSTALL: Reflect recent autoconf update.
13572         * doc/INSTALL.ISO: Likewise.
13573         * doc/INSTALL.UTF-8: Likewise.
13574         Reported by Karl Berry.
13575
13576 2011-01-04  Bruce Korb  <address@hidden>
13577
13578         git-version-gen: avoid a sub-shell
13579         * build-aux/git-version-gen: Redirect stderr in `...` via
13580         "exec 2>...", rather than via an added sub-shell.
13581
13582 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13583
13584         git-version-gen: use (...) rather than sh -c '...'
13585         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13586         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13587
13588 2011-01-03  Jim Meyering  <meyering@redhat.com>
13589
13590         git-version-gen: convert leading TABs to spaces
13591         * build-aux/git-version-gen: Expand leading TABs.
13592
13593         git-version-gen: handle failed "git rev-list"
13594         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13595         from git and proceeding as if it had succeeded but printed no SHA1
13596         checksums, suppress the diagnostic and handle the failure.
13597         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13598
13599         git-version-gen: include command name in one more diagnostic
13600         * build-aux/git-version-gen: When the required .tarball-version file
13601         was missing or unreadable, you might see the diagnostic from "cat",
13602         but no trace of the name of the invoking script.  Now, you still see
13603         the diagnostic from cat, but also get one from "git-version-gen: ".
13604         Inspired by a patch from Bruce Korb.
13605
13606         update-copyright: adjust test to match changed code
13607         * tests/test-update-copyright.sh: Change test's expected output
13608         to match new actual output.
13609
13610 2011-01-02  Bruno Haible  <bruno@clisp.org>
13611
13612         getlogin_r: Avoid test failure on HP-UX 11.
13613         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13614         ERANGE when the second argument is zero.
13615         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13616         portability problem.
13617
13618 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13619
13620         * build-aux/update-copyright: doc Simon's changes
13621
13622 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13623
13624         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13625         environment variable.
13626
13627 2011-01-02  Bruno Haible  <bruno@clisp.org>
13628
13629         unigbrk: Avoid gcc warnings.
13630         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13631         unused variable.
13632         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13633         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13634         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13635         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13636         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13637         Change type of first argument to 'const char *'.
13638         (main): Remove unused variable.
13639         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13640         type of first argument to 'const char *'.
13641         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13642         Likewise.
13643         (main): Change type of variable 's'.
13644         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13645         to 'int'.
13646
13647 2011-01-02  Bruno Haible  <bruno@clisp.org>
13648
13649         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13650         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13651         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13652         bug.
13653         * lib/pwrite.c: Undo 2010-12-31 patch.
13654         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13655
13656 2011-01-02  Bruno Haible  <bruno@clisp.org>
13657
13658         pread: Fix test whether it works.
13659         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13660
13661 2011-01-02  Bruno Haible  <bruno@clisp.org>
13662
13663         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13664         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13665         ends in "6". Don't require a specific month name. Try also the locale
13666         names found on HP-UX 11 and Solaris 7.
13667
13668 2011-01-02  Bruno Haible  <bruno@clisp.org>
13669
13670         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13671         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13672         C linkage.
13673         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13674
13675 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13676
13677         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13678         for consistency, since the "cluster" term is not used elsewhere.
13679         * lib/unigbrk.in.h: Update name.
13680         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13681         * lib/unigbrk/u16-grapheme-next.c: Update name.
13682         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13683         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13684         * lib/unigbrk/u32-grapheme-next.c: Update name.
13685         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13686         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13687         * lib/unigbrk/u8-grapheme-next.c: Update name.
13688         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13689         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13690         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13691         Suggested by Bruno Haible.
13692
13693 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13694
13695         Remove module 'u8-grapheme-len' as too redundant with
13696         'u8-grapheme-next'.
13697         * modules/unigbrk/u8-grapheme-len: Delete file.
13698         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13699         * lib/unigbrk.in.h: Remove prototype for deleted function.
13700         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13701         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13702
13703         Remove module 'u16-grapheme-len' as too redundant with
13704         'u16-grapheme-next'.
13705         * modules/unigbrk/u16-grapheme-len: Delete file.
13706         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13707         * lib/unigbrk.in.h: Remove prototype for deleted function.
13708         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13709         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13710
13711         Remove module 'u32-grapheme-len' as too redundant with
13712         'u32-grapheme-next'.
13713         * modules/unigbrk/u32-grapheme-len: Delete file.
13714         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13715         * lib/unigbrk.in.h: Remove prototype for deleted function.
13716         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13717         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13718
13719         Suggested by Bruno Haible.
13720
13721 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13722
13723         * unigbrk.in.h: Fix typo: "ben" => "been".
13724         Reported by Bruno Haible.
13725
13726 2011-01-01  Jim Meyering  <meyering@redhat.com>
13727
13728         maint: update almost all copyright ranges to include 2011
13729         Run the new "make update-copyright" rule.
13730
13731 2011-01-01  Jim Meyering  <meyering@redhat.com>
13732
13733         maint: update-copyright: exempt doc/INSTALL*
13734         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13735         since they are generated.  Suggested by Bruno Haible.
13736
13737 2011-01-01  Jim Meyering  <meyering@redhat.com>
13738
13739         maint: refine the update-copyright rule
13740         * Makefile (update-copyright): Also exclude any file that includes
13741         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13742         code that merely generates the comment.
13743
13744 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13745
13746         New module 'u8-grapheme-len'.
13747         * modules/unigbrk/u8-grapheme-len: New file.
13748         * modules/unigbrk/u8-grapheme-len-tests: New file.
13749         * lib/unigbrk.in.h: Add prototype for new function.
13750         * lib/unigbrk/u8-grapheme-len.c: New file.
13751         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13752
13753         New module 'u16-grapheme-len'.
13754         * modules/unigbrk/u16-grapheme-len: New file.
13755         * modules/unigbrk/u16-grapheme-len-tests: New file.
13756         * lib/unigbrk.in.h: Add prototype for new function.
13757         * lib/unigbrk/u16-grapheme-len.c: New file.
13758         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13759
13760         New module 'u32-grapheme-len'.
13761         * modules/unigbrk/u32-grapheme-len: New file.
13762         * modules/unigbrk/u32-grapheme-len-tests: New file.
13763         * lib/unigbrk.in.h: Add prototype for new function.
13764         * lib/unigbrk/u32-grapheme-len.c: New file.
13765         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13766
13767         New module 'u8-grapheme-next'.
13768         * modules/unigbrk/u8-grapheme-next: New file.
13769         * modules/unigbrk/u8-grapheme-next-tests: New file.
13770         * lib/unigbrk.in.h: Add prototype for new function.
13771         * lib/unigbrk/u8-grapheme-next.c: New file.
13772         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13773
13774         New module 'u16-grapheme-next'.
13775         * modules/unigbrk/u16-grapheme-next: New file.
13776         * modules/unigbrk/u16-grapheme-next-tests: New file.
13777         * lib/unigbrk.in.h: Add prototype for new function.
13778         * lib/unigbrk/u16-grapheme-next.c: New file.
13779         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13780
13781         New module 'u32-grapheme-next'.
13782         * modules/unigbrk/u32-grapheme-next: New file.
13783         * modules/unigbrk/u32-grapheme-next-tests: New file.
13784         * lib/unigbrk.in.h: Add prototype for new function.
13785         * lib/unigbrk/u32-grapheme-next.c: New file.
13786         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13787
13788         New module 'u8-grapheme-prev'.
13789         * modules/unigbrk/u8-grapheme-prev: New file.
13790         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13791         * lib/unigbrk.in.h: Add prototype for new function.
13792         * lib/unigbrk/u8-grapheme-prev.c: New file.
13793         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13794
13795         New module 'u16-grapheme-prev'.
13796         * modules/unigbrk/u16-grapheme-prev: New file.
13797         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13798         * lib/unigbrk.in.h: Add prototype for new function.
13799         * lib/unigbrk/u16-grapheme-prev.c: New file.
13800         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13801
13802         New module 'u32-grapheme-prev'.
13803         * modules/unigbrk/u32-grapheme-prev: New file.
13804         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13805         * lib/unigbrk.in.h: Add prototype for new function.
13806         * lib/unigbrk/u32-grapheme-prev.c: New file.
13807         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13808
13809         New module 'u8-grapheme-breaks'.
13810         * modules/unigbrk/u8-grapheme-breaks: New file.
13811         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13812         * lib/unigbrk.in.h: Add prototype for new function.
13813         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13814         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13815
13816         New module 'u16-grapheme-breaks'.
13817         * modules/unigbrk/u16-grapheme-breaks: New file.
13818         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13819         * lib/unigbrk.in.h: Add prototype for new function.
13820         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13821         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13822
13823         New module 'u32-grapheme-breaks'.
13824         * modules/unigbrk/u32-grapheme-breaks: New file.
13825         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13826         * lib/unigbrk.in.h: Add prototype for new function.
13827         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13828         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13829
13830         New module 'ulc-grapheme-breaks'.
13831         * modules/unigbrk/ulc-grapheme-breaks: New file.
13832         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13833         * m4/locale-ar.m4: New file.
13834         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13835         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13836         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13837
13838 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13839
13840         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13841         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13842         modified how this file was generated before I initially submitted
13843         the module, but failed to regenerate it.  This meant that several
13844         of the level2 entries were wrong.
13845         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13846         Remove the division-by-2 that is folded into the table now that
13847         gbrkprop.h has been regenerated properly.  Now -1 entries are
13848         handled correctly.
13849
13850         New module 'unigbrk/uc-gbrk-prop-tests'.
13851         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13852         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13853         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13854         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13855
13856 2011-01-01  Bruno Haible  <bruno@clisp.org>
13857
13858         Avoid use of hexadecimal escapes.
13859         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13860         instead of hexadecimal escapes.
13861
13862 2011-01-01  Jim Meyering  <meyering@redhat.com>
13863
13864         maint: new rule to update copyright year ranges
13865         * Makefile (update-copyright): New rule.
13866
13867         maint: indent with TABs in Makefile
13868         * Makefile: Expand leading sequences of spaces to TABs
13869
13870         version-etc: update the copyright year it reports
13871         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13872
13873 2010-12-31  Bruno Haible  <bruno@clisp.org>
13874
13875         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13876         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13877         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13878         zero.
13879
13880 2010-12-31  Bruno Haible  <bruno@clisp.org>
13881
13882         pwrite: Work around HP-UX 11.11 bug.
13883         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13884         works and set REPLACE_PWRITE if not.
13885         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13886         function.
13887         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13888
13889 2010-12-31  Bruno Haible  <bruno@clisp.org>
13890
13891         pread: Work around HP-UX 11 bugs.
13892         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13893         and set REPLACE_PREAD if not.
13894         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13895
13896 2010-12-31  Eric Blake  <eblake@redhat.com>
13897
13898         nl_langinfo: fix YESEXPR on Irix 6.5
13899         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13900         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13901         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13902         it.
13903
13904 2010-12-31  Bruno Haible  <bruno@clisp.org>
13905
13906         iconv: Document HP-UX 11 bug.
13907         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13908
13909 2010-12-31  Bruno Haible  <bruno@clisp.org>
13910
13911         ldexpl: Fix link error on HP-UX 11.
13912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13913         LDEXPL_LIBM, using $ISNANL_LIBM.
13914
13915 2010-12-31  Eric Blake  <eblake@redhat.com>
13916
13917         ftello: avoid compilation failure with SunStudio c89
13918         * lib/ftello.c (ftello): Use lseek, not llseek.
13919
13920         tests: avoid failing coreutils tests on cygwin
13921         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13922         (create_exe_shims_): Return 0 when skipping.
13923
13924 2010-12-31  Bruno Haible  <bruno@clisp.org>
13925
13926         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13927         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13928
13929 2010-12-31  Bruno Haible  <bruno@clisp.org>
13930
13931         waitpid: Fix link error in C++ mode.
13932         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13933
13934 2010-12-31  Bruno Haible  <bruno@clisp.org>
13935
13936         isnan: Use GCC built-ins when possible.
13937         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13938         __builtin_isnan.
13939         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13940         (isnan): Define using GCC built-ins for GCC >= 4.0.
13941
13942 2010-12-31  Bruno Haible  <bruno@clisp.org>
13943
13944         isnand: Fix mistake.
13945         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13946         __builtin_isnand.
13947
13948 2010-12-31  Bruno Haible  <bruno@clisp.org>
13949
13950         open: Avoid C++ error on HP-UX 11.
13951         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13952
13953 2010-12-31  Bruno Haible  <bruno@clisp.org>
13954
13955         time_r: Add missing declarations on HP-UX 11.
13956         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13957         instead of HAVE_LOCALTIME_R.
13958         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13959         HAVE_LOCALTIME_R always.
13960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13961         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13962         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13963         HAVE_LOCALTIME_R.
13964         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13965         * doc/posix-functions/localtime_r.texi: Likewise.
13966
13967 2010-12-29  Eric Blake  <eblake@redhat.com>
13968
13969         mountlist: tweak previous commit
13970         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13971         Reported by Paul Eggert.
13972
13973         mountlist: fix local drive detection on cygwin
13974         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13975         that works for cygwin.
13976
13977 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13978
13979         ftoastr, snprintf: ftoastr + snprintf module
13980         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13981         since the snprintf module now should be good enough here.
13982         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13983         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13984         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13985         GNULIB_SNPRINTF only for the test directory, and the latter
13986         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13987         seems to suffice by itself.
13988
13989 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13990
13991         alloca: one step towards thread-safety
13992         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13993         need for a static variable.  All callers changed.  This does not
13994         make the alloca replacement thread-safe, but it's one step.
13995
13996         tests: minor indenting change
13997         * tests/init.sh: Sync from coreutils housekeeping patch
13998         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13999         to keep lines within 80 columns.
14000
14001 2010-12-28  Jim Meyering  <meyering@redhat.com>
14002
14003         regex: don't infloop on persistent failing calloc
14004         * lib/regexec.c (build_trtable): Return failure indication upon
14005         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14006         In glibc, this was fixed for version 2.13:
14007         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14008
14009 2010-12-28  Bruno Haible  <bruno@clisp.org>
14010             Paul Eggert <eggert@cs.ucla.edu>
14011
14012         linkat: Make implementation robust against system behaviour variations.
14013         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14014         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14015         way, and to -2 if it needs a generic runtime test.
14016         * lib/linkat.c (solaris_optimized_link_immediate,
14017         solaris_optimized_link_follow): New functions.
14018         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14019         (check_same_link): Use it.
14020
14021 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14022
14023         New module 'unigbrk/base'.
14024         * modules/unigbrk/base: New file.
14025         * lib/unigbrk.in.h: New file.
14026
14027         New module 'unigbrk/uc-gbrk-prop'.
14028         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14029         * modules/unigbrk/uc-gbrk-prop: New file.
14030         * lib/unigbrk/gbrkprop.h: New file.
14031         * lib/unigbrk/uc-gbrk-prop.c: New file.
14032
14033         New module 'unigbrk/uc-is-grapheme-break'.
14034         * modules/unigbrk/uc-is-grapheme-break: New file.
14035         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14036         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14037         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14038         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14039         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14040
14041         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14042
14043 2010-12-27  Bruno Haible  <bruno@clisp.org>
14044
14045         linkat test: Avoid failure on Solaris 11 2010-11.
14046         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14047
14048 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14049
14050         utimens: work around glibc rounding bug on more platforms
14051         * lib/utimens.c (fdutimens): Work around rounding bug even if
14052         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14053         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14054
14055 2010-12-27  Bruno Haible  <bruno@clisp.org>
14056
14057         select tests: Improve comments.
14058         * tests/test-select.c (do_select): Add comments.
14059
14060 2010-12-27  Bruno Haible  <bruno@clisp.org>
14061
14062         select tests: Safer way of handling timeout.
14063         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14064         at every invocation.
14065
14066 2010-12-27  Bruno Haible  <bruno@clisp.org>
14067
14068         select tests: Use 'bool' where appropriate.
14069         * tests/test-select.c (connect_to_socket): Change argument type to
14070         'bool'.
14071
14072 2010-12-27  Bruno Haible  <bruno@clisp.org>
14073
14074         select tests: Use existing modules.
14075         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14076         (configure.ac): Don't test for unistd.h.
14077         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14078         declared in <unistd.h>.
14079
14080 2010-12-27  Bruno Haible  <bruno@clisp.org>
14081
14082         mbrtowc: Work around a Solaris 7 bug.
14083         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14084         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14085         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14086         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14087         MBRTOWC_NULL_ARG1_BUG.
14088         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14089         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14090         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14091         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14092
14093 2010-12-27  Jim Meyering  <meyering@redhat.com>
14094
14095         read-file.c: tweak syntax
14096         * lib/read-file.c (fread_file): Remove space after "*" in function
14097         definitions.
14098
14099 2010-12-27  Bruno Haible  <bruno@clisp.org>
14100
14101         times test: Avoid gcc warnings on OSF/1.
14102         * tests/test-times.c (main): Cast printf arguments from clock_t to
14103         'long int'.
14104
14105 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14106
14107         utimens: work around glibc rounding bug on older Linux kernels
14108         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14109         on Linux with a glibc whose utimes might not work, then work
14110         around a longstanding glibc bug involving rounding rather than
14111         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14112         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14113
14114 2010-12-26  Bruno Haible  <bruno@clisp.org>
14115
14116         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14117         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14118         _GL_CXXALIAS_SYS.
14119         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14120
14121 2010-12-26  Bruno Haible  <bruno@clisp.org>
14122
14123         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14124         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14125         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14126         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14127         looking for the declaration.
14128         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14129         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14130         problem.
14131         * doc/posix-functions/inet_pton.texi: Likewise.
14132
14133 2010-12-26  Bruno Haible  <bruno@clisp.org>
14134
14135         arpa_inet: Use the common idioms with C++ support.
14136         * lib/arpa_inet.in.h: Include c++defs.h.
14137         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14138         support.
14139         * modules/arpa_inet (Depends-on): Add c++defs.
14140         (Makefile.am): Substitute the contents of c++defs.h.
14141         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14142         * modules/arpa_inet-c++-tests: New file.
14143         * tests/test-arpa_inet-c++.cc: New file.
14144
14145 2010-12-25  Bruno Haible  <bruno@clisp.org>
14146
14147         Fix more C++ link errors on Solaris 8.
14148         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14149         $(LIB_EACCESS).
14150         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14151         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14152         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14153         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14154         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14155
14156 2010-12-25  Bruno Haible  <bruno@clisp.org>
14157
14158         printf-posix: Fix link error when a non-GCC compiler is used.
14159         * lib/stdio.in.h (printf): When not using GCC, override printf
14160         correctly.
14161         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14162
14163 2010-12-25  Bruno Haible  <bruno@clisp.org>
14164
14165         strerror_r-posix: Update doc.
14166         * doc/posix-functions/strerror_r.texi: Update doc about the return
14167         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14168
14169 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14170
14171         utimens: simplify the logic of the previous change
14172         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14173         This should not affect whether the test succeeds or fails.
14174
14175         utimens: configure better on hosts with NFS clock skew
14176         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14177         uses the clock of the local host.  It might use the clock of the
14178         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14180
14181 2010-12-25  Bruno Haible  <bruno@clisp.org>
14182
14183         ptsname test: Avoid failure on Solaris.
14184         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14185         open a pseudo-terminal; don't use BSD-style ptys.
14186         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14187
14188 2010-12-25  Bruno Haible  <bruno@clisp.org>
14189
14190         ptsname: Avoid ERANGE failure on some systems.
14191         * lib/ptsname.c (buffer): Increase size.
14192
14193 2010-12-25  Bruno Haible  <bruno@clisp.org>
14194
14195         rename, renameat: Avoid test failures at NFS mounted locations.
14196         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14197         so that subsequent mkdir calls succeed.
14198
14199 2010-12-25  Bruno Haible  <bruno@clisp.org>
14200
14201         iswblank: Fix C++ link error on Solaris 8.
14202         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14203         _GL_FUNCDECL_SYS.
14204
14205 2010-12-25  Bruno Haible  <bruno@clisp.org>
14206
14207         unistd: Fix C++ link error on Solaris 8.
14208         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14209
14210 2010-12-25  Bruno Haible  <bruno@clisp.org>
14211
14212         readlink doc: Mention an old glibc bug.
14213         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14214
14215 2010-12-25  Bruno Haible  <bruno@clisp.org>
14216
14217         fcntl-h: Fix for use of C++ on glibc systems.
14218         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14219         also on glibc systems in C++ mode.
14220         Reported by Gary V. Vaughan <gary@gnu.org>.
14221
14222 2010-12-25  Bruno Haible  <bruno@clisp.org>
14223
14224         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14225         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14226
14227 2010-12-25  Bruno Haible  <bruno@clisp.org>
14228
14229         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14230         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14231         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14232         test whether truncl works according to ISO C 99 with IEC 60559.
14233         * m4/truncl-ieee.m4: New file.
14234         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14235         m4/signbit.m4.
14236         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14237
14238 2010-12-25  Bruno Haible  <bruno@clisp.org>
14239
14240         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14241         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14242         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14243         test whether ceill works according to ISO C 99 with IEC 60559.
14244         * m4/ceill-ieee.m4: New file.
14245         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14246         m4/signbit.m4.
14247         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14248
14249 2010-12-25  Bruno Haible  <bruno@clisp.org>
14250
14251         Ensure all prerequisites of <wchar.h> are included.
14252         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14253         before <wchar.h>.
14254         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14255         gl_MBRLEN_NUL_RETVAL): Likewise.
14256         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14257         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14258         AC_FUNC_MBRTOWC): Likewise.
14259         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14260         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14261         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14262         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14263         Likewise.
14264         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14265         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14266         (gl_WCHAR_H): Improve comments.
14267         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14268
14269 2010-12-25  Bruno Haible  <bruno@clisp.org>
14270
14271         strtok_r: Fix C syntax error in autoconf macro.
14272         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14273         characters in test program.
14274
14275 2010-12-24  Bruno Haible  <bruno@clisp.org>
14276
14277         ceil, trunc, round: Fix gcc warnings.
14278         * lib/ceil.c (MIN): Undefine before redefining.
14279         * lib/trunc.c (MIN): Likewise.
14280         * lib/round.c (MIN): Likewise.
14281         Include <math.h> first.
14282
14283 2010-12-24  Bruno Haible  <bruno@clisp.org>
14284
14285         select tests: Avoid failures on OSF/1 5.1.
14286         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14287         failure of closing the last socket; it may fail with ECONNRESET.
14288
14289 2010-12-24  Eric Blake  <eblake@redhat.com>
14290
14291         stdint: avoid HP-UX 10.20 preprocessor bug
14292         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14293         than #if.
14294         * tests/test-floor2.c (main): Likewise.
14295         Reported by Peter O'Gorman.
14296
14297         pipe: make obsoletion transition easier
14298         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14299         * modules/pipe (Files): Include revived file.
14300         (Include): Drop reference, to mirror getdate's behavior.
14301
14302 2010-12-24  Bruno Haible  <bruno@clisp.org>
14303
14304         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14305         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14306         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14308
14309 2010-12-24  Bruno Haible  <bruno@clisp.org>
14310
14311         gethostname: Ensure declaration on NonStop Kernel.
14312         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14314
14315 2010-12-24  Bruno Haible  <bruno@clisp.org>
14316
14317         sys_select: Ensure all necessary types on NonStop Kernel.
14318         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14319         include <sys/time.h>.
14320         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14321         NonStop Kernel.
14322         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14323
14324 2010-12-24  Bruno Haible  <bruno@clisp.org>
14325
14326         sys_select: Remove unneeded include.
14327         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14328         have <sys/select.h>.
14329
14330 2010-12-24  Bruno Haible  <bruno@clisp.org>
14331
14332         gethostname: Provide a fallback for HOST_NAME_MAX.
14333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14334         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14335         instead.
14336         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14337
14338 2010-12-24  Bruno Haible  <bruno@clisp.org>
14339
14340         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14341         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14342         (SA_RESTART): Likewise.
14343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14344
14345 2010-12-24  Bruno Haible  <bruno@clisp.org>
14346
14347         signal: Define NSIG.
14348         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14349         * tests/test-signal.c (nsig): New variable.
14350         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14351
14352 2010-12-24  Bruno Haible  <bruno@clisp.org>
14353
14354         rename, renameat: Avoid test failures on OSF/1 5.1.
14355         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14356         alternative error codes.
14357         * tests/test-renameat.c (main): Likewise.
14358
14359 2010-12-24  Bruno Haible  <bruno@clisp.org>
14360
14361         *printf: Detect large precisions bug on Solaris 10/SPARC.
14362         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14363         by Paul Eggert.
14364         * tests/test-snprintf-posix.h (test_function): Add this test code here
14365         too.
14366         * tests/test-sprintf-posix.h (test_function): Likewise.
14367         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14368         * tests/test-vasprintf-posix.c (test_function): Likewise.
14369         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14370         around by gnulib.
14371         * doc/posix-functions/printf.texi: Likewise.
14372         * doc/posix-functions/snprintf.texi: Likewise.
14373         * doc/posix-functions/sprintf.texi: Likewise.
14374         * doc/posix-functions/vfprintf.texi: Likewise.
14375         * doc/posix-functions/vprintf.texi: Likewise.
14376         * doc/posix-functions/vsnprintf.texi: Likewise.
14377         * doc/posix-functions/vsprintf.texi: Likewise.
14378         * doc/posix-functions/dprintf.texi: Undo last commit.
14379         * doc/posix-functions/vdprintf.texi: Likewise.
14380
14381 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14382
14383         tests: port test-fdutimensat.c to Solaris 8
14384         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14385         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14386         On Solaris 8, it fails with errno == ENOSYS, because there is no
14387         futimens (so it can't use the fd), and there is no lutimens (so it
14388         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14389
14390         vsnprintf: make more consistent with snprintf; doc fixes
14391
14392         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14393         the byte count return problem was promoted from the snprintf-posix
14394         to the snprintf module.
14395         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14396         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14397         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14398         * tests/test-snprintf.c (main): Check the byte count returned.
14399         * tests/test-vsnprintf.c (main): Likewise.
14400
14401 2010-12-23  Eric Blake  <eblake@redhat.com>
14402
14403         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14404         * modules/sigpipe (License): Relax license.
14405
14406 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14407
14408         doc: document Solaris printf bug with large float precisions
14409         * doc/posix-functions/dprintf.texi (dprintf):
14410         * doc/posix-functions/fprintf.texi (fprintf):
14411         * doc/posix-functions/printf.texi (printf):
14412         * doc/posix-functions/snprintf.texi (snprintf):
14413         * doc/posix-functions/sprintf.texi (sprintf):
14414         * doc/posix-functions/vdprintf.texi (vdprintf):
14415         * doc/posix-functions/vfprintf.texi (vfprintf):
14416         * doc/posix-functions/vprintf.texi (vprintf):
14417         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14418         * doc/posix-functions/vsprintf.texi (vsprintf):
14419         Mention that these functions mishandle large floating point
14420         precisions on Solaris 10.  The same bug is also present in Solaris
14421         8, and I assume earlier.  This causes "cd gnulib-tests; make
14422         check" to fail on Solaris 8 (and I assume, later) when building
14423         the latest coreutils, in test-vasprintf-posix's call to
14424         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14425         the wide flavors (e.g., wprintf) so this patch just updates the
14426         documentation for the narrow ones.
14427
14428         test-posixtm.c: add two tests
14429         * tests/test-posixtm.c: Add two tests, to highlight the
14430         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14431         around this bug; this is merely to document it.
14432
14433 2010-12-22  Bruno Haible  <bruno@clisp.org>
14434
14435         getlogin_r: Work around portability problem on OSF/1.
14436         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14437         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14438         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14439         test for a truncated result.
14440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14441         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14442         * modules/getlogin_r (Depends-on): Add memchr.
14443         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14444
14445 2010-12-22  Bruno Haible  <bruno@clisp.org>
14446
14447         ptsname: Avoid test failure on OSF/1 5.1.
14448         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14449         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14450         (same_slave): New function.
14451         (main): Use it to compare ptsname's result with the expected file name.
14452
14453 2010-12-22  Bruno Haible  <bruno@clisp.org>
14454
14455         Port extended stdio modules to HP NonStop Kernel.
14456         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14457         macros.
14458         * lib/fbufmode.c: Update comments.
14459         * lib/fflush.c: Likewise.
14460         * lib/fpurge.c: Likewise.
14461         * lib/freadable.c: Likewise.
14462         * lib/freadahead.c: Likewise.
14463         * lib/freading.c: Likewise.
14464         * lib/freadptr.c: Likewise.
14465         * lib/freadseek.c: Likewise.
14466         * lib/fseeko.c: Likewise.
14467         * lib/fseterr.c: Likewise.
14468         * lib/fwritable.c: Likewise.
14469         * lib/fwriting.c: Likewise.
14470         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14471
14472 2010-12-22  Bruno Haible  <bruno@clisp.org>
14473
14474         ttyname_r: Work around bug on OSF/1 5.1.
14475         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14476         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14477         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14478         present.
14479         * lib/ttyname_r.c (ttyname_r): Update comments.
14480
14481 2010-12-22  Bruno Haible  <bruno@clisp.org>
14482
14483         round: Implement result sign according to IEEE 754.
14484         * lib/round.c (MIN, MINUS_ZERO): New macros.
14485         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14486         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14487         * tests/test-round-ieee.c (main): Likewise.
14488         * tests/test-roundl-ieee.c (main): Likewise.
14489
14490         trunc: Implement result sign according to IEEE 754.
14491         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14492         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14493         * tests/test-trunc2.c: Include minus-zero.h.
14494         (MINUS_ZERO): New macro.
14495         (trunc_reference): Keep in sync with lib/trunc.c.
14496         * tests/test-truncf2.c: Include minus-zero.h.
14497         (MINUS_ZERO): New macro.
14498         (truncf_reference): Keep in sync with lib/trunc.c.
14499         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14500         * tests/test-trunc-ieee.c (main): Likewise.
14501         * tests/test-truncl-ieee.c (main): Likewise.
14502
14503         ceil: Implement result sign according to IEEE 754.
14504         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14505         (FUNC): Return -0.0 for -1 < x < 0.
14506         * tests/test-ceil2.c: Include minus-zero.h.
14507         (MINUS_ZERO): New macro.
14508         (ceil_reference): Keep in sync with lib/ceil.c.
14509         * tests/test-ceilf2.c: Include minus-zero.h.
14510         (MINUS_ZERO): New macro.
14511         (ceilf_reference): Keep in sync with lib/ceil.c.
14512         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14513         * tests/test-ceil-ieee.c (main): Likewise.
14514         * tests/test-ceill-ieee.c (main): Likewise.
14515
14516         floor: Implement result sign according to IEEE 754.
14517         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14518         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14519         * tests/test-floorf2.c (floorf_reference): Likewise.
14520         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14521         * tests/test-floor-ieee.c (main): Likewise.
14522         * tests/test-floorl-ieee.c (main): Likewise.
14523
14524 2010-12-22  Bruno Haible  <bruno@clisp.org>
14525
14526         getaddrinfo: Update doc.
14527         * doc/posix-functions/gai_strerror.texi: Return type is also different
14528         on AIX and HP-UX.
14529
14530 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14531
14532         getaddrinfo, inet_ntop: Update doc for Solaris.
14533         * doc/posix-functions/gai_strerror.texi: Return type is also an
14534         issue on Solaris 9 and earlier.
14535         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14536         on Solaris 10 and earlier.
14537
14538 2010-12-21  Bruno Haible  <bruno@clisp.org>
14539
14540         New module 'roundl-ieee'.
14541         * modules/roundl-ieee: New file.
14542         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14543         test whether roundl works according to ISO C 99 with IEC 60559.
14544         * m4/roundl-ieee.m4: New file.
14545         * modules/roundl-ieee-tests: New file.
14546         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14547         * tests/test-roundl.c (main): Remove signbit tests.
14548         * modules/roundl-tests (Depends-on): Remove signbit.
14549         * doc/posix-functions/roundl.texi: Mention the new module.
14550
14551 2010-12-21  Bruno Haible  <bruno@clisp.org>
14552
14553         New module 'truncl-ieee'.
14554         * modules/truncl-ieee: New file.
14555         * modules/truncl-ieee-tests: New file.
14556         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14557         * tests/test-truncl.c (main): Remove signbit tests.
14558         * modules/truncl-tests (Depends-on): Remove signbit.
14559         * doc/posix-functions/truncl.texi: Mention the new module.
14560
14561 2010-12-21  Bruno Haible  <bruno@clisp.org>
14562
14563         New module 'ceill-ieee'.
14564         * modules/ceill-ieee: New file.
14565         * modules/ceill-ieee-tests: New file.
14566         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14567         * tests/test-ceill.c (main): Remove signbit tests.
14568         * modules/ceill-tests (Depends-on): Remove signbit.
14569         * doc/posix-functions/ceill.texi: Mention the new module.
14570
14571 2010-12-21  Bruno Haible  <bruno@clisp.org>
14572
14573         New module 'floorl-ieee'.
14574         * modules/floorl-ieee: New file.
14575         * modules/floorl-ieee-tests: New file.
14576         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14577         * tests/test-floorl.c (main): Remove signbit tests.
14578         * modules/floorl-tests (Depends-on): Remove signbit.
14579         * doc/posix-functions/floorl.texi: Mention the new module.
14580
14581 2010-12-21  Bruno Haible  <bruno@clisp.org>
14582
14583         New module 'round-ieee'.
14584         * modules/round-ieee: New file.
14585         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14586         whether round works according to ISO C 99 with IEC 60559.
14587         * m4/round-ieee.m4: New file.
14588         * modules/round-ieee-tests: New file.
14589         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14590         * tests/test-round1.c (main): Remove signbit tests.
14591         * modules/round-tests (Depends-on): Remove 'signbit'.
14592         * doc/posix-functions/round.texi: Mention the new module.
14593
14594 2010-12-21  Bruno Haible  <bruno@clisp.org>
14595
14596         New module 'trunc-ieee'.
14597         * modules/trunc-ieee: New file.
14598         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14599         whether trunc works according to ISO C 99 with IEC 60559.
14600         * m4/trunc-ieee.m4: New file.
14601         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14603         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14604         * modules/trunc-ieee-tests: New file.
14605         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14606         * tests/test-trunc1.c (main): Remove signbit tests.
14607         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14608         * doc/posix-functions/trunc.texi: Mention the new module.
14609
14610 2010-12-21  Bruno Haible  <bruno@clisp.org>
14611
14612         New module 'ceil-ieee'.
14613         * modules/ceil-ieee: New file.
14614         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14615         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14616         ISO C 99 with IEC 60559.
14617         * m4/ceil-ieee.m4: New file.
14618         * modules/ceil (Files): Add lib/ceil.c.
14619         (Depends-on): Add 'float'.
14620         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14621         * lib/math.in.h (ceil): New declaration.
14622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14623         REPLACE_CEIL.
14624         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14625         * modules/ceil-ieee-tests: New file.
14626         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14627         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14628         * doc/posix-functions/ceil.texi: Mention the new module.
14629
14630 2010-12-21  Bruno Haible  <bruno@clisp.org>
14631
14632         New module 'floor-ieee'.
14633         * modules/floor-ieee: New file.
14634         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14635         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14636         ISO C 99 with IEC 60559.
14637         * m4/floor-ieee.m4: New file.
14638         * modules/floor (Files): Add lib/floor.c.
14639         (Depends-on): Add 'float'.
14640         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14641         * lib/math.in.h (floor): New declaration.
14642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14643         REPLACE_FLOOR.
14644         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14645         * modules/floor-ieee-tests: New file.
14646         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14647         * tests/test-math-c++.cc: Check the signature of 'floor'.
14648         * doc/posix-functions/floor.texi: Mention the new module.
14649
14650 2010-12-21  Bruno Haible  <bruno@clisp.org>
14651
14652         New module 'roundf-ieee'.
14653         * modules/roundf-ieee: New file.
14654         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14655         test whether roundf works according to ISO C 99 with IEC 60559.
14656         * m4/roundf-ieee.m4: New file.
14657         * modules/roundf-ieee-tests: New file.
14658         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14659         * tests/test-roundf1.c (main): Remove signbit tests.
14660         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14661         * doc/posix-functions/roundf.texi: Mention the new module.
14662
14663 2010-12-21  Bruno Haible  <bruno@clisp.org>
14664
14665         New module 'truncf-ieee'.
14666         * modules/truncf-ieee: New file.
14667         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14668         test whether truncf works according to ISO C 99 with IEC 60559.
14669         * m4/truncf-ieee.m4: New file.
14670         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14671         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14672         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14673         * modules/truncf-ieee-tests: New file.
14674         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14675         * tests/test-truncf1.c (main): Remove signbit tests.
14676         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14677         * doc/posix-functions/truncf.texi: Mention the new module.
14678
14679 2010-12-21  Bruno Haible  <bruno@clisp.org>
14680
14681         New module 'ceilf-ieee'.
14682         * modules/ceilf-ieee: New file.
14683         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14684         test whether ceilf works according to ISO C 99 with IEC 60559.
14685         * m4/ceilf-ieee.m4: New file.
14686         * modules/ceilf-ieee-tests: New file.
14687         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14688         * tests/test-ceilf1.c (main): Remove signbit tests.
14689         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14690         * doc/posix-functions/ceilf.texi: Mention the new module.
14691
14692 2010-12-21  Bruno Haible  <bruno@clisp.org>
14693
14694         New module 'floorf-ieee'.
14695         * modules/floorf-ieee: New file.
14696         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14697         test whether floorf works according to ISO C 99 with IEC 60559.
14698         * m4/floorf-ieee.m4: New file.
14699         * modules/floorf-ieee-tests: New file.
14700         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14701         * tests/test-floorf1.c (main): Remove signbit tests.
14702         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14703         * doc/posix-functions/floorf.texi: Mention the new module.
14704
14705 2010-12-21  Bruno Haible  <bruno@clisp.org>
14706
14707         Support for minus zero in autoconf macros.
14708         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14709         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14710         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14711         * tests/minus-zero.h: Update comments.
14712
14713 2010-12-21  Bruno Haible  <bruno@clisp.org>
14714
14715         Tests for module 'ceil'.
14716         * modules/ceil-tests: New file.
14717         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14718         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14719
14720 2010-12-21  Bruno Haible  <bruno@clisp.org>
14721
14722         Tests for module 'floor'.
14723         * modules/floor-tests: New file.
14724         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14725         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14726
14727 2010-12-21  Bruno Haible  <bruno@clisp.org>
14728
14729         math: Fix indentation.
14730         * lib/math.in.h (floorf): Fix indentation.
14731
14732 2010-12-21  Bruno Haible  <bruno@clisp.org>
14733
14734         Fix cross-compilation guesses on Solaris.
14735         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14736         not match "solaris2.10".
14737         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14738         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14739         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14740
14741 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14742
14743         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14744         This fixes a problem observed with the latest coreutils snapshot
14745         that caused a test to fail on Solaris 8.  src/csplit.c's call
14746         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14747         earlier, instead of returning the number of bytes that would have
14748         been generated; this causes csplit to incorrectly report memory
14749         exhaustion.
14750         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14751         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14752         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14753         comments to match.
14754         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14755         Fix typo in matching older versions of Solaris: "solaris2.10"
14756         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14757         only for guessing while cross-compiling.
14758         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14759
14760 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14761
14762         ftoastr: fix comment again
14763         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14764         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14765         Also, simplify example a bit by using flags = 0.
14766
14767 2010-12-20  Bruno Haible  <bruno@clisp.org>
14768
14769         round*, trunc*: Update documentation regarding glibc.
14770         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14771         * doc/posix-functions/round.texi: Likewise.
14772         * doc/posix-functions/roundl.texi: Likewise.
14773         * doc/posix-functions/truncf.texi: Likewise.
14774         * doc/posix-functions/trunc.texi: Likewise.
14775         * doc/posix-functions/truncl.texi: Likewise.
14776
14777 2010-12-20  Bruno Haible  <bruno@clisp.org>
14778
14779         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14780         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14781         * doc/posix-functions/round.texi: Likewise.
14782         * doc/posix-functions/roundl.texi: Likewise.
14783
14784 2010-12-20  Bruno Haible  <bruno@clisp.org>
14785
14786         ttyname_r: Add missing declaration on HP-UX 11.
14787         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14788         HAVE_TTYNAME_R.
14789         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14790         declared. Set HAVE_TTYNAME_R always.
14791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14792         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14793         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14794         HAVE_TTYNAME_R.
14795         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14796
14797 2010-12-20  Bruno Haible  <bruno@clisp.org>
14798
14799         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14800         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14801         * doc/posix-functions/getlogin_r.texi: Likewise.
14802         * tests/test-getlogin.c: Include <errno.h>.
14803         (main): Avoid test failure on HP-UX 11.11.
14804         * tests/test-getlogin_r.c (main): Likewise.
14805
14806 2010-12-20  Bruno Haible  <bruno@clisp.org>
14807
14808         getlogin_r: Add missing declaration on HP-UX 11.
14809         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14810         declared also when it exists as a function.
14811         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14812
14813 2010-12-20  Bruno Haible  <bruno@clisp.org>
14814
14815         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14816         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14817         through wcrtomb.
14818
14819 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14820
14821         ftoastr: fix comment
14822         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14824
14825 2010-12-19  Bruno Haible  <bruno@clisp.org>
14826
14827         isnan: Ensure it is a macro.
14828         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14829         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14830         Solaris.
14831
14832 2010-12-19  Bruno Haible  <bruno@clisp.org>
14833
14834         ldexpl test: Fix link error on OSF/1 5.1.
14835         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14836
14837 2010-12-19  Bruno Haible  <bruno@clisp.org>
14838
14839         wctype: Make it work in C++ mode on OSF/1 5.1.
14840         * lib/wctype.in.h (iswblank): Declare but not define here.
14841         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14842         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14843         * modules/wctype (Files): Add lib/iswblank.c.
14844
14845 2010-12-19  Bruno Haible  <bruno@clisp.org>
14846
14847         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14848         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14849         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14850
14851 2010-12-19  Bruno Haible  <bruno@clisp.org>
14852
14853         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14854         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14855         _POSIX_PII_SOCKET.
14856         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14857         * doc/posix-functions/recvfrom.texi: Likewise.
14858         * doc/posix-functions/send.texi: Likewise.
14859         * doc/posix-functions/sendto.texi: Likewise.
14860
14861 2010-12-19  Bruno Haible  <bruno@clisp.org>
14862
14863         tcgetsid: Add missing declaration on OSF/1 5.1.
14864         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14865         HAVE_TCGETSID.
14866         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14867         Don't set HAVE_TCGETSID.
14868         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14869         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14870         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14871         HAVE_TCGETSID.
14872         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14873
14874 2010-12-19  Bruno Haible  <bruno@clisp.org>
14875
14876         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14877         * lib/stdio.in.h: During the include_next statement, let recursive
14878         includes of this file include only the system header file.
14879
14880 2010-12-19  Bruno Haible  <bruno@clisp.org>
14881
14882         iconv_open: Fix regression from 2010-12-04.
14883         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14884         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14885
14886 2010-12-19  Bruno Haible  <bruno@clisp.org>
14887
14888         stdbool test: Avoid a gcc warning.
14889         * tests/test-stdbool.c (main): Fail if e1 is false.
14890         Reported by Jim Meyering.
14891
14892 2010-12-19  Jim Meyering  <meyering@redhat.com>
14893
14894         setenv: restore to working order
14895         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14896         mistakenly removed.
14897         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14898         HAVE_SETENV.
14899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14900         HAVE_SETENV.
14901
14902 2010-12-19  Bruno Haible  <bruno@clisp.org>
14903
14904         Document some different function declarations on OSF/1 5.1.
14905         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14906         * doc/posix-functions/inet_ntop.texi: Likewise.
14907         * doc/posix-functions/gethostname.texi: Likewise.
14908         * lib/unistd.in.h (gethostname): Update comment.
14909
14910 2010-12-19  Bruno Haible  <bruno@clisp.org>
14911
14912         doc: Mention vasprintf-posix module.
14913         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14914         the 'vasprintf-posix' module.
14915         * doc/glibc-functions/vasprintf.texi: Likewise.
14916
14917 2010-12-19  Bruno Haible  <bruno@clisp.org>
14918
14919         unsetenv: Add missing declaration on OSF/1 5.1.
14920         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14921         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14922         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14924         not HAVE_UNSETENV.
14925         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14926         HAVE_UNSETENV.
14927         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14928
14929 2010-12-19  Bruno Haible  <bruno@clisp.org>
14930
14931         setenv: Add missing declaration on OSF/1 5.1.
14932         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14933         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14934         declared. Don't set HAVE_SETENV.
14935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14936         not HAVE_SETENV.
14937         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14938         HAVE_SETENV.
14939         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14940
14941 2010-12-19  Bruno Haible  <bruno@clisp.org>
14942
14943         nl_langinfo tests: Avoid gcc warning.
14944         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14945
14946 2010-12-19  Bruno Haible  <bruno@clisp.org>
14947
14948         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14949         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14950         _GL_CXXALIAS_SYS.
14951
14952 2010-12-19  Bruno Haible  <bruno@clisp.org>
14953
14954         stdbool: Relax test.
14955         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14956         address to 'bool' work in static initializer, for compilers other than
14957         GCC.
14958
14959 2010-12-19  Bruno Haible  <bruno@clisp.org>
14960
14961         ftello: Add missing declaration on OSF/1 5.1.
14962         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14963         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14965         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14966         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14967
14968 2010-12-19  Bruno Haible  <bruno@clisp.org>
14969
14970         fseeko: Add missing declaration on OSF/1 5.1.
14971         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14972         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14974         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14975         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14976
14977 2010-12-19  Bruno Haible  <bruno@clisp.org>
14978
14979         fchdir: Add missing declaration on OSF/1 5.1.
14980         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14983         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14984         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14985
14986 2010-12-19  Bruno Haible  <bruno@clisp.org>
14987
14988         relocatable-prog-wrapper: Separate from relocatable-prog.
14989         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14990         uninstall-relocwrapper rule here.
14991         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14992         Reported by Ian Beckwith <ianb@erislabs.net>.
14993
14994 2010-12-19  Bruno Haible  <bruno@clisp.org>
14995
14996         unistr/u8-mbsnlen: Add missing dependency.
14997         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14998         Reported by Ian Beckwith <ianb@erislabs.net>.
14999
15000 2010-12-19  Bruno Haible  <bruno@clisp.org>
15001
15002         iconv: Make it possible again to use this module without 'iconv-h'.
15003         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15004         if it is not defined.
15005         Reported by Ian Beckwith <ianb@erislabs.net>.
15006
15007 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         acl: port to Solaris 8 when copying from tmpfs to ufs
15010         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15011         error number.  Problem observed on Solaris 8 with latest
15012         coreutils, with "mv A B", where A is on a tmpfs file system and B
15013         is on a ufs file system.  This caused coreutils' mv/part-symlink
15014         test to fail.
15015
15016         tests: set fail=0 at start
15017         * tests/init.sh (setup_): Move fail=0 initialization here ...
15018         (mktempd_): ... from here, so that tests can rely on fail being
15019         set to 0 initially.  This fixes a problem in coreutils; see:
15020         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15021
15022 2010-12-18  Bruno Haible  <bruno@clisp.org>
15023
15024         memmem-simple: Stylistic changes.
15025         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15026         Fix preprocessor directive indentation.
15027
15028 2010-12-15  Pádraig Brady <P@draigBrady.com>
15029
15030         memmem, memmem-simple: reorganize and expand empty needle check
15031         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15032         functional checks to memmem-simple so that one has a fully functional
15033         memmem by using just this module.
15034         Restrict the performance only check to the memmem module.
15035         Also expand the empty needle check to ensure the correct
15036         pointer is returned, not just a non NULL pointer.
15037         * doc/glibc-functions/memmem.texi: Rearrange the portability
15038         documentation to correlate with the rearranged checks.
15039         Clarify exactly how the memmem and memmem-simple modules
15040         relate to each other.
15041
15042 2010-12-15  Pádraig Brady <P@draigBrady.com>
15043             Bruno Haible  <bruno@clisp.org>
15044
15045         Improve cross-compilation guesses for uClibc.
15046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15047         that uClibc does not have the glibc bug.
15048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15049         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15050
15051 2010-12-14  Eric Blake  <eblake@redhat.com>
15052
15053         configmake: provide fallbacks for oldest supported autotools
15054         * m4/configmake.m4: New file.
15055         * modules/configmake (Files): Ship it.
15056         (configure.ac): Use it to guarantee fallbacks.
15057
15058 2010-12-13  Pádraig Brady <P@draigBrady.com>
15059
15060         read-file: Improve handling of large files
15061         * lib/read-file.c (fread_file): Minimize realloc()s
15062         for regular files, and better manage sizes around SIZE_MAX.
15063
15064 2010-12-13  Eric Blake  <eblake@redhat.com>
15065
15066         cloexec, fcntl: relax license
15067         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15068         consent from all contributors.
15069         * modules/fcntl (License): Likewise.
15070
15071 2010-12-10  Bruno Haible  <bruno@clisp.org>
15072
15073         Tests for module 'pipe-posix'.
15074         * modules/pipe-posix-tests: New file.
15075         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15076
15077 2010-12-10  Bruno Haible  <bruno@clisp.org>
15078
15079         pipe-posix: Make it work in C++ mode.
15080         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15081         (pipe): Use common idiom, not a macro definition.
15082         * lib/pipe.c: New file.
15083         * m4/pipe.m4: New file.
15084         * modules/pipe-posix (Description): Enhance.
15085         (Files): Add lib/pipe.c, m4/pipe.m4.
15086         (configure.ac): Invoke gl_FUNC_PIPE.
15087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15088         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15089         * tests/test-unistd-c++.cc: Check the signature of pipe.
15090
15091 2010-12-10  Bruno Haible  <bruno@clisp.org>
15092
15093         Rename module 'pipe' to 'spawn-pipe'.
15094         * modules/spawn-pipe: New file, renamed from modules/pipe.
15095         (Files, configure.ac, Makefile.am): Update.
15096         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15097         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15098         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15099         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15100         "spawn-pipe.h" instead of "pipe.h".
15101         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15102         to gl_SPAWN_PIPE.
15103         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15104         (Files, Makefile.am): Update.
15105         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15106         Update.
15107         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15108         Include "spawn-pipe.h" instead of "pipe.h".
15109         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15110         * lib/javacomp.c: Likewise.
15111         * lib/javaversion.c: Likewise.
15112         * lib/pipe-filter-gi.c: Likewise.
15113         * lib/pipe-filter-ii.c: Likewise.
15114         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15115         * modules/javacomp (Depends-on): Likewise.
15116         * modules/javaversion (Depends-on): Likewise.
15117         * modules/pipe-filter-gi (Depends-on): Likewise.
15118         * modules/pipe-filter-ii (Depends-on): Likewise.
15119         * MODULES.html.sh (Executing programs): Update.
15120         * NEWS: Mention the change.
15121
15122 2010-12-10  Eric Blake  <eblake@redhat.com>
15123
15124         pipe-posix: new module
15125         * modules/pipe-posix: New file.
15126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15127         (gl_UNISTD_H): Check for declaration.
15128         * modules/unistd (Makefile.am): Substitute it.
15129         * lib/unistd.in.h (pipe): Provide it for mingw.
15130         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15131         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15132
15133 2010-12-07  Bruno Haible  <bruno@clisp.org>
15134
15135         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15136         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15137         u8_strcmp_gnu.
15138         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15139
15140 2010-12-06  Bruno Haible  <bruno@clisp.org>
15141
15142         Update internal documentation.
15143         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15144
15145 2010-12-04  Bruno Haible  <bruno@clisp.org>
15146
15147         Put more information about failed tests into the test return codes.
15148         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15149         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15150         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15152         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15154         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15155         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15156         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15158         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15159         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15160         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15161         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15162         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15163         returns a bit mask.
15164         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15165         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15166         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15167         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15168         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15169         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15170         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15172         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15173         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15174         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15175         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15176         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15177         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15178         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15179         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15180         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15181         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15182         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15183         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15184         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15185         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15187         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15188         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15189         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15190         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15191         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15192         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15193         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15194         gl_PRINTF_PRECISION): Likewise.
15195         * m4/regex.m4 (gl_REGEX): Likewise.
15196         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15197         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15198         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15199         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15200         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15202         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15203         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15204         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15205         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15206         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15207         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15208         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15209         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15210         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15211         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15212         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15213         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15215         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15216         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15217         enumerated value.
15218         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15219
15220 2010-12-04  Bruno Haible  <bruno@clisp.org>
15221
15222         Update for Solaris 11 2010-11.
15223         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15224         Express, released in November 2010.
15225
15226 2010-12-04  Bruno Haible  <bruno@clisp.org>
15227
15228         nproc: Relax license.
15229         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15230         and Paul Eggert.
15231         Requested by Ludovic Courtès <ludo@gnu.org>.
15232
15233 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15234
15235         utimecmp: fine-grained src to nearby coarse-grained dest
15236
15237         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15238         and the source is on a file system with higher-resolution time
15239         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15240         not work, and the time stamps are close together, the algorithm to
15241         determine the exact resolution from the read-back mtime was buggy:
15242         it had a "!=" where it should have had an "==".  This bug has been
15243         in the code ever since it was introduced to gnulib.
15244         Problem reported by Dan Jacobson in
15245         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15246
15247 2010-11-30  Bruno Haible  <bruno@clisp.org>
15248
15249         strerror_r-posix: Fix autoconf test.
15250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15251
15252 2010-11-28  Bruno Haible  <bruno@clisp.org>
15253             Paul Eggert  <eggert@cs.ucla.edu>
15254
15255         Tests for module 'getdomainname'.
15256         * modules/getdomainname-tests: New file.
15257         * tests/test-getdomainname.c: New file, based on
15258         tests/test-gethostname.c.
15259
15260 2010-11-28  Bruno Haible  <bruno@clisp.org>
15261             Paul Eggert  <eggert@cs.ucla.edu>
15262
15263         getdomainname: Use the system function when possible.
15264         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15265         (getdomainname): Replace if needed. Provide the declaration if it is
15266         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15267         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15268         (getdomainname): When the system has getdomainname, call the system
15269         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15270         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15271         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15272         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15273         the function if its second argument is of type 'int' or if it is found
15274         in libnsl.
15275         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15276         <sys/systeminfo.h> and sysinfo().
15277         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15279         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15280         HAVE_GETDOMAINNAME.
15281         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15282         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15283         * doc/glibc-functions/getdomainname.texi: Document the problems with
15284         the getdomainname declaration.
15285
15286 2010-11-28  Bruno Haible  <bruno@clisp.org>
15287
15288         sys_socket: Ensure ss_family field on AIX.
15289         * lib/sys_socket.in.h (ss_family): New macro definition.
15290         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15291         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15292         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15293         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15294         * modules/sys_socket (Makefile.am): Substitute
15295         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15296         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15297
15298 2010-11-27  Bruno Haible  <bruno@clisp.org>
15299
15300         readline: Improve configure output.
15301         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15302         "checking for readline..." result understandable.
15303
15304 2010-11-27  Bruno Haible  <bruno@clisp.org>
15305
15306         *printf-posix: Detect a bug on Solaris 10/x86.
15307         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15308         for floating-point output.
15309         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15310         directive.
15311         * tests/test-snprintf-posix.h (test_function): Likewise.
15312         * tests/test-sprintf-posix.h (test_function): Likewise.
15313         * tests/test-vasprintf-posix.c (test_function): Likewise.
15314         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15315         * doc/posix-functions/printf.texi: Likewise.
15316         * doc/posix-functions/snprintf.texi: Likewise.
15317         * doc/posix-functions/sprintf.texi: Likewise.
15318         * doc/posix-functions/vfprintf.texi: Likewise.
15319         * doc/posix-functions/vprintf.texi: Likewise.
15320         * doc/posix-functions/vsnprintf.texi: Likewise.
15321         * doc/posix-functions/vsprintf.texi: Likewise.
15322         * doc/glibc-functions/obstack_printf.texi: Likewise.
15323         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15324
15325 2010-11-27  Bruno Haible  <bruno@clisp.org>
15326
15327         Fix link error when module libunistring-optional is in use.
15328         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15329         * modules/striconveha-tests (Makefile.am): Likewise.
15330
15331 2010-11-27  Bruno Haible  <bruno@clisp.org>
15332
15333         regex: Mention link dependencies.
15334         * modules/regex (Link): New section.
15335         * modules/rpmatch (Link): Likewise.
15336         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15337
15338 2010-11-27  Bruno Haible  <bruno@clisp.org>
15339
15340         ftoastr: Fix compilation error on Solaris.
15341         * lib/ftoastr.c: Include <config.h>.
15342
15343 2010-11-27  Bruno Haible  <bruno@clisp.org>
15344
15345         getloadavg: Update documentation.
15346         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15347
15348 2010-11-27  Bruno Haible  <bruno@clisp.org>
15349
15350         sys_socket: Fix test whether the functions are declared.
15351         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15352         not <sys/select.h>.
15353
15354 2010-11-27  Bruno Haible  <bruno@clisp.org>
15355
15356         getpass: Make sure to get system declaration on some platforms.
15357         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15358         gl_USE_SYSTEM_EXTENSIONS.
15359         * modules/getpass (Depends-on): Add extensions.
15360
15361 2010-11-26  Bruno Haible  <bruno@clisp.org>
15362
15363         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15364         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15365         'iconv' module is present.
15366         (ICONV_CONST): New macro.
15367         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15368         ICONV_CONST.
15369         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15370         set ICONV_CONST.
15371         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15372         here.
15373         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15374         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15375         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15376         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15377         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15378         present.
15379
15380 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15381
15382         ftoastr: comment fix
15383         * lib/ftoastr.c: "little" -> "little or no" in comment
15384
15385 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15386
15387         stdint: port to GCC 4.3 + OSX + Octave
15388         On this platform, stdint.h is buggy and defines int64_t to long
15389         long int.  The replacement defined it to long int, causing
15390         problems with C++ style name mangling.  Instead, trust the system
15391         definition if INT64_MAX is defined, and likewise for the unsigned
15392         variant.   Problem reported by Jarno Rajahalme in
15393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15394         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15395         and don't mess with int64_t and INT64_MAX in this case.
15396         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15397
15398 2010-11-24  Bruno Haible  <bruno@clisp.org>
15399
15400         doc: Corrections regarding MacOS X 10.4 and 10.5.
15401         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15402         MacOS X.
15403         Reported by Simon Josefsson.
15404
15405 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15406
15407         Uninstall ".bin" files installed by relocwrapper.
15408         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15409         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15410         unless it is already there.
15411
15412 2010-11-21  Bruno Haible  <bruno@clisp.org>
15413
15414         Update for NetBSD 5.0.
15415         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15416         NetBSD; the test fails on NetBSD 5.0.
15417         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15418         about NetBSD.
15419
15420 2010-11-21  Bruno Haible  <bruno@clisp.org>
15421
15422         Update for HP-UX 11.23 and HP-UX 11.31.
15423         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15424         HP-UX.
15425
15426 2010-11-21  Bruno Haible  <bruno@clisp.org>
15427
15428         Update for MacOS X 10.5.
15429         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15430         MacOS X; the test fails on MacOS X 10.5.8.
15431         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15432         about MacOS X.
15433
15434 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15435
15436         bootstrap: add bootstrap_sync option.
15437         See discussion at
15438         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15440         * build-aux/bootstrap: Accept --bootstrap-sync to update
15441         bootstrap if it is not identical to the local gnulib's
15442         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15443         enable this by default.  Accept --no-bootstrap-sync to disable
15444         it.
15445
15446 2010-11-20  Bruno Haible  <bruno@clisp.org>
15447
15448         Ensure that <features.h> is included before __GLIBC__ is tested.
15449         * lib/printf-parse.h: Include <features.h>.
15450         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15451         Reported by Mike Frysinger <vapier@gentoo.org>.
15452
15453         Ensure that <features.h> is included before __GLIBC__ is tested.
15454         * lib/wchar.in.h: Include <features.h>.
15455         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15456         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15457         Reported by Mike Frysinger <vapier@gentoo.org>.
15458
15459         Ensure that <features.h> is included before __GLIBC__ is tested.
15460         * lib/arpa_inet.in.h: Include <features.h>.
15461         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15462         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15463         Reported by Mike Frysinger <vapier@gentoo.org>.
15464
15465         Ensure that <features.h> is included before __GLIBC__ is tested.
15466         * build-aux/link-warning.h: Include <features.h>.
15467         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15468         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15469         Reported by Mike Frysinger <vapier@gentoo.org>.
15470
15471         Ensure that <features.h> is included before __GLIBC__ is tested.
15472         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15473         Reported by Mike Frysinger <vapier@gentoo.org>.
15474
15475 2010-11-20  Bruno Haible  <bruno@clisp.org>
15476
15477         memmem: Fix autoconf test.
15478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15479
15480 2010-11-20  Bruno Haible  <bruno@clisp.org>
15481
15482         Port to uClibc.
15483         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15484         * lib/fcntl.in.h: Likewise.
15485         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15486         * lib/mbrtowc.c (mbrtowc): Likewise.
15487         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15488         * lib/strerror_r.c: Likewise.
15489         * lib/unistr/u8-strnlen.c: Likewise.
15490         * lib/vasnprintf.c (decimal_point_char): Likewise.
15491         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15492         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15493         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15494         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15495         * tests/test-sigaction.c (handler, main): Likewise.
15496         * lib/freading.h: Treat uClibc like a non-glibc platform.
15497         * lib/freading.c: Likewise.
15498         * lib/gettext.h: Likewise.
15499         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15500         Likewise.
15501         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15502         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15503         * lib/propername.c (proper_name_utf8): Likewise.
15504         * lib/spawn.in.h: Likewise.
15505         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15506         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15507         mem_cd_iconveh_internal): Likewise.
15508         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15509         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15510         strstr, strcasestr): Likewise.
15511         * lib/unicodeio.c (unicode_to_mb): Likewise.
15512         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15513         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15514         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15515         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15516         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15517         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15518         * lib/unistr/u8-stpncpy.c: Likewise.
15519         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15520         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15521         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15522         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15523         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15524         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15525         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15528         Likewise.
15529         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15530         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15534         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15535         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15536         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15537         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15538         * tests/test-striconveha.c (main): Likewise.
15539         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15540         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15541         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15542         * doc/posix-functions/getline.texi: Likewise.
15543         Reported by Mike Frysinger <vapier@gentoo.org>.
15544
15545 2010-11-20  Bruno Haible  <bruno@clisp.org>
15546
15547         nproc: Fix condition.
15548         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15549         HAVE_PTHREAD_AFFINITY_NP.
15550
15551 2010-11-20  Bruno Haible  <bruno@clisp.org>
15552
15553         Fix a comment.
15554         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15555
15556 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15557
15558         ftoastr: don't assume snprintf
15559         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15560         Implement a subset of snprintf here, by using sprintf safely.
15561         * modules/ftoastr (Depends-on): Remove snprintf.
15562
15563 2010-11-19  Jim Meyering  <meyering@redhat.com>
15564
15565         test-rename.h: fix compilation failure
15566         * tests/test-rename.h (test_rename): Add omitted "}".
15567
15568 2010-11-17  Jim Meyering  <meyering@redhat.com>
15569
15570         maint.mk: add a URL discussing the no-@acronym policy
15571         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15572
15573 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15574
15575         ftoastr: depend on snprintf, improve comments
15576         * lib/ftoastr.c: Also mention Loitsch's draft.
15577         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15578         needed in the current implementation, but it might simplify
15579         speeding up the code later.
15580         * modules/ftoastr: Depend on snprintf; this improves portability.
15581         Suggested by Bruno Haible in the same email.
15582
15583         ftoastr: port to hosts lacking strtof and strtold
15584         Problem reported by Bruno Haible in
15585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15586         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15587         environment and strtold (and presumably strtof) are not available.
15588         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15589         (configure.ac): Require gl_C99_STRTOLD.
15590
15591 2010-11-18  Bruno Haible  <bruno@clisp.org>
15592
15593         c-strtold: Avoid link error on AIX 7.
15594         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15595         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15596         (gl_C_STRTOLD): Test whether strtold_l exists.
15597         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15598
15599 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15600
15601         intprops: new macro INT_BITS_STRLEN_BOUND
15602         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15603         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15604         not exposed.  Also, it uses a slightly tighter bound than before;
15605         though this makes no practical difference, we might as well be as
15606         tight as we easily can.
15607
15608         ftoastr: new module, for lossless conversion of floats to short strings
15609         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15610         * modules/ftoastr: New files.
15611
15612 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15613
15614         bootstrap: port to Solaris sed
15615         * build-aux/bootstrap (get_version): Port to Solaris sed.
15616         See Ralf Wildenhues's note in
15617         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15618
15619 2010-11-14  Jim Meyering  <meyering@redhat.com>
15620
15621         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15622         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15623         and move definition closer to sole use.
15624
15625 2010-11-13  Jim Meyering  <meyering@redhat.com>
15626
15627         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15628         Now we require at least autoconf-2.59, which means the work-around
15629         is no longer needed.
15630         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15631         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15632         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15633         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15634         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15635
15636 2010-11-13  Bruno Haible  <bruno@clisp.org>
15637
15638         rename, renameat: Avoid test failures at NFS mounted locations.
15639         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15640         functions.
15641         (test_rename): Use assert_nonexistent.
15642         * tests/test-rename.c: Include <dirent.h>.
15643         * tests/test-renameat.c: Likewise.
15644         Reported by Gary V. Vaughan <gary@gnu.org>.
15645
15646         rename, renameat: Document Linux bug with NFS
15647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15648         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15649         * doc/posix-functions/renameat.texi: Likewise.
15650         Suggested by Eric Blake.
15651
15652 2010-11-13  Bruno Haible  <bruno@clisp.org>
15653
15654         rename test: Add comments.
15655         * tests/test-rename.h (test_rename): Add structure and comments.
15656
15657 2010-11-13  Eric Blake  <eblake@redhat.com>
15658
15659         maintainer-makefile: cover a few more files
15660         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15661         scripts generated within C files, for libvirt.
15662
15663 2010-11-13  Bruno Haible  <bruno@clisp.org>
15664
15665         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15666         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15667         character, return the number of bytes that belong together, not always
15668         1.
15669         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15670         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15671         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15672         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15673         number of bytes of an invalid character.
15674         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15675         (main): Invoke it.
15676         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15677         results.
15678         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15679         malformed byte sequences.
15680         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15681         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15682         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15683         Reported by Ben Pfaff and Paolo Bonzini.
15684
15685 2010-11-13  Bruno Haible  <bruno@clisp.org>
15686
15687         openat: Work around glibc bug with fchownat() and empty file names.
15688         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15689         (gl_FUNC_FCHOWNAT): Invoke it.
15690         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15691         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15692         Reported by Gary V. Vaughan <gary@gnu.org>.
15693
15694 2010-11-13  Bruno Haible  <bruno@clisp.org>
15695
15696         openat: Ensure autoconf macro ordering.
15697         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15698         gl_USE_SYSTEM_EXTENSIONS.
15699         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15700
15701 2010-11-13  Bruno Haible  <bruno@clisp.org>
15702
15703         Update comments.
15704         * lib/unistr/u8-check.c: Update file name in comments.
15705         * lib/unistr/u8-mblen.c: Likewise.
15706         * lib/unistr/u8-prev.c: Likewise.
15707         * lib/unistr/u8-strmblen.c: Likewise.
15708         * lib/unistr/u8-strmbtouc.c: Likewise.
15709
15710 2010-11-13  Jim Meyering  <meyering@redhat.com>
15711
15712         tests: avoid test failure on Solaris 10 due to lack of PATH export
15713         * tests/test-update-copyright.sh: Don't forget to export PATH.
15714
15715         init.sh: ensure that IFS is defined, just in case...
15716         * tests/init.sh (setup_): Ensure that IFS is defined,
15717         so that saving and restoring it works as expected.  This
15718         appears to be useful at least for an old version of dash
15719         from a long time ago (RH 6).  See here for details:
15720         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15721
15722         maint.mk: tighten "test a == b" check
15723         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15724         test to files that contain something like #!/bin/sh.
15725         Without this, coreutils would get two false positives in
15726         the comments of C source files.
15727
15728 2010-11-12  Eric Blake  <eblake@redhat.com>
15729
15730         bootstrap: fix typo in previous attempt
15731         * build-aux/bootstrap (buildreq): Correct the grouping.
15732         Reported by Paul Eggert.
15733
15734         maintainer-makefile: prohibit test x == x
15735         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15736         Based on a report by Matthias Bolte.
15737
15738         bootstrap: allow FreeBSD gzip
15739         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15740         which has no '.' and goes to stderr.
15741         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15742         Reported by Matthias Bolte.
15743
15744         maintainer-makefile: check for i18n setup
15745         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15746         will likely work.
15747
15748 2010-11-12  Bruno Haible  <bruno@clisp.org>
15749
15750         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15751         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15752         * lib/nanosleep.c (nanosleep): Likewise.
15753
15754 2010-11-11  Bruno Haible  <bruno@clisp.org>
15755
15756         fcntl-h: Fix for use of C++ on glibc systems.
15757         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15758         also on glibc systems in C++ mode.
15759         Reported by Gary V. Vaughan <gary@gnu.org>.
15760
15761 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15762
15763         mknod: avoid false failure with dash
15764         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15765
15766 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15767
15768         unlink: Fix "is it should" typo in diagnostic.
15769         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15770         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15771
15772 2010-11-11  Bruno Haible  <bruno@clisp.org>
15773
15774         Tests for module 'strerror_r-posix'.
15775         * modules/strerror_r-posix-tests: New file.
15776         * tests/test-strerror_r.c: New file.
15777         * tests/test-string-c++.cc: Check the signature of strerror_r.
15778
15779         New module 'strerror_r-posix'.
15780         * lib/string.in.h (strerror_r): New declaration.
15781         * lib/strerror_r.c: New file.
15782         * m4/strerror_r.m4: New file.
15783         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15784         of strerror_r.
15785         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15786         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15787         * modules/strerror_r-posix: New file.
15788         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15789         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15790         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15791         portability problems.
15792
15793 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15794
15795         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15796         line is also considered for output. Quoted function name in shell
15797         command, so temporary files for functions like MyClass::operator()
15798         are removed correctly without errors.
15799
15800 2010-11-09  Bruno Haible  <bruno@clisp.org>
15801
15802         * doc/posix-functions/strerror.texi: List more failing platforms.
15803
15804         * doc/posix-functions/strerror.texi: Add a comment.
15805
15806 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15807
15808         fdopendir: fix bug on MacOS X when low on file descriptors
15809
15810         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15811         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15812         All callers changed.
15813         (fdopendir): Invoke save_cwd at the top level, not after using
15814         multiple dup() calls to use up file descriptors.  Then retry
15815         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15816         less than the maximum number of open file descriptors, because
15817         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15818         on Mac OS X 10.6.4 for tar 1.24
15819         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15820         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15821         and for tar 1.25
15822         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15823
15824 2010-11-07  Bruno Haible  <bruno@clisp.org>
15825
15826         vasnprintf: Support I flag on glibc systems.
15827         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15828         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15829         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15830         snprintf function.
15831         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15832         glibc systems.
15833         * tests/test-vasnprintf-posix3.c: New file.
15834         * modules/vasnprintf-posix-tests (Files): Add it.
15835         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15836
15837 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15838
15839         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15840         * MODULES.html.sh: For compiler warnings, use name
15841         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15842
15843 2010-11-05  Eric Blake  <eblake@redhat.com>
15844
15845         ceil, floor: avoid spurious failure with icc
15846         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15847         [denormals-as-zero] when optimizing without -mieee-fp option.
15848         * tests/test-floorf2.c (floorf_reference): Likewise.
15849         * tests/test-ceilf1.c (dummy): New function.
15850         (main): Use it to outsmart icc's optimization.
15851         * tests/test-floorf1.c (dummy, main): Likewise.
15852
15853         tests: require working signbit
15854         * modules/ceilf-tests (Depends-on): Add signbit.
15855         * modules/ceill-tests (Depends-on): Likewise.
15856         * modules/floorf-tests (Depends-on): Likewise.
15857         * modules/floorl-tests (Depends-on): Likewise.
15858         * modules/round-tests (Depends-on): Likewise.
15859         * modules/roundf-tests (Depends-on): Likewise.
15860         * modules/roundl-tests (Depends-on): Likewise.
15861         * modules/trunc-tests (Depends-on): Likewise.
15862         * modules/truncf-tests (Depends-on): Likewise.
15863         * modules/truncl-tests (Depends-on): Likewise.
15864
15865         strtod: work around icc bug
15866         * lib/strtod.c (minus_zero): Define to working value.
15867         (strtod): Use it to avoid icc bug.
15868
15869         copysign: enhance tests
15870         * modules/copysign-tests (Files): Add minus-zero.h.
15871         * tests/test-copysign.c (main): Also test zeros.
15872
15873 2010-11-04  Eric Blake  <eblake@redhat.com>
15874
15875         ceil, floor, round, trunc: enhance tests of -0
15876         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15877         * tests/test-ceill.c (main): Likewise.
15878         * tests/test-floorf1.c (main): Likewise.
15879         * tests/test-floorl.c (main): Likewise.
15880         * tests/test-round1.c (main): Likewise.
15881         * tests/test-roundf1.c (main): Likewise.
15882         * tests/test-roundl.c (main): Likewise.
15883         * tests/test-trunc1.c (main): Likewise.
15884         * tests/test-truncf1.c (main): Likewise.
15885         * tests/test-truncl.c (main): Likewise.
15886
15887 2010-11-04  Eric Blake  <eblake@redhat.com>
15888
15889         frexp, tests: work around ICC bug with -zero
15890         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15891         works with more compilers.
15892         * tests/minus-zero.h: New file.
15893         * modules/ceilf-tests (Files): Include it.
15894         * modules/ceill-tests (Files): Likewise.
15895         * modules/floorf-tests (Files): Likewise.
15896         * modules/floorl-tests (Files): Likewise.
15897         * modules/frexp-nolibm-tests (Files): Likewise.
15898         * modules/frexp-tests (Files): Likewise.
15899         * modules/frexpl-nolibm-tests (Files): Likewise.
15900         * modules/frexpl-tests (Files): Likewise.
15901         * modules/isnan-tests (Files): Likewise.
15902         * modules/isnand-nolibm-tests (Files): Likewise.
15903         * modules/isnand-tests (Files): Likewise.
15904         * modules/isnanf-nolibm-tests (Files): Likewise.
15905         * modules/isnanf-tests (Files): Likewise.
15906         * modules/isnanl-nolibm-tests (Files): Likewise.
15907         * modules/isnanl-tests (Files): Likewise.
15908         * modules/round-tests (Files): Likewise.
15909         * modules/roundf-tests (Files): Likewise.
15910         * modules/roundl-tests (Files): Likewise.
15911         * modules/ldexpl-tests (Files): Likewise.
15912         * modules/signbit-tests (Files): Likewise.
15913         * modules/snprintf-posix-tests (Files): Likewise.
15914         * modules/sprintf-posix-tests (Files): Likewise.
15915         * modules/strtod-tests (Files): Likewise.
15916         * modules/trunc-tests (Files): Likewise.
15917         * modules/truncf-tests (Files): Likewise.
15918         * modules/truncl-tests (Files): Likewise.
15919         * modules/vsnprintf-posix-tests (Files): Likewise.
15920         * modules/vsprintf-posix-tests (Files): Likewise.
15921         * modules/vasnprintf-posix-tests (Files): Likewise.
15922         * modules/vasprintf-posix-tests (Files): Likewise.
15923         * tests/test-ceilf1.c (main): Use it.
15924         * tests/test-ceill.c (main): Likewise.
15925         * tests/test-floorf1.c (main): Likewise.
15926         * tests/test-floorl.c (main): Likewise.
15927         * tests/test-frexp.c (main): Likewise.
15928         * tests/test-frexpl.c (main): Likewise.
15929         * tests/test-isnan.c (main): Likewise.
15930         * tests/test-isnand.h (main): Likewise.
15931         * tests/test-isnanf.h (main): Likewise.
15932         * tests/test-isnanl.h (main): Likewise.
15933         * tests/test-ldexpl.c (main): Likewise.
15934         * tests/test-round.c (main): Likewise.
15935         * tests/test-roundf.c (main): Likewise.
15936         * tests/test-roundl.c (main): Likewise.
15937         * tests/test-signbit.c (test_signbitf, test_signbitd)
15938         (test_signbitl): Likewise.
15939         * tests/test-snprintf-posix.h (test_function): Likewise.
15940         * tests/test-sprintf-posix.h (test_function): Likewise.
15941         * tests/test-strtod.c (main): Likewise.
15942         * tests/test-trunc1.c (main): Likewise.
15943         * tests/test-truncf1.c (main): Likewise.
15944         * tests/test-truncl.c (main): Likewise.
15945
15946         isnanl: work around icc bug
15947         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15948
15949 2010-11-03  Eric Blake  <eblake@redhat.com>
15950
15951         tests: fix compiler warnings
15952         * tests/test-getopt.h (test_getopt): Fix condition.
15953         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15954         * tests/test-pipe2.c (main): Likewise.
15955         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15956
15957         utimens: fix broken m4 test
15958         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15959
15960 2010-10-28  Bruno Haible  <bruno@clisp.org>
15961
15962         posix_spawn*, getdtablesize: Relax license.
15963         * modules/posix_spawn (License): Change to LGPLv2+.
15964         * modules/posix_spawnp (License): Likewise.
15965         * modules/posix_spawn-internal (License): Likewise.
15966         * modules/posix_spawnattr_init (License): Likewise.
15967         * modules/posix_spawnattr_getflags (License): Likewise.
15968         * modules/posix_spawnattr_setflags (License): Likewise.
15969         * modules/posix_spawnattr_getpgroup (License): Likewise.
15970         * modules/posix_spawnattr_setpgroup (License): Likewise.
15971         * modules/posix_spawnattr_getschedparam (License): Likewise.
15972         * modules/posix_spawnattr_setschedparam (License): Likewise.
15973         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15974         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15975         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15976         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15977         * modules/posix_spawnattr_getsigmask (License): Likewise.
15978         * modules/posix_spawnattr_setsigmask (License): Likewise.
15979         * modules/posix_spawnattr_destroy (License): Likewise.
15980         * modules/posix_spawn_file_actions_init (License): Likewise.
15981         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15982         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15983         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15984         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15985         * modules/getdtablesize (License): Likewise.
15986         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15987
15988 2010-10-26  Bruno Haible  <bruno@clisp.org>
15989
15990         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15991         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15992         Cygwin and mingw.
15993         Suggested by Eric Blake.
15994
15995 2010-10-26  Bruno Haible  <bruno@clisp.org>
15996
15997         stdio: Work around compilation error due to renameat() on Solaris 10.
15998         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15999         * lib/renameat.c: Don't include <unistd.h> here.
16000         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16001         Reported by Paul Eggert and Eric Blake.
16002
16003 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16004
16005         renameat: port to Solaris 10, which declares renameat in unistd.h
16006
16007         * lib/renameat.c: Include unistd.h before stdio.h, because
16008         Solaris 10 declares renameat in unistd.h.  Problem encountered
16009         when building GNU tar 1.24 on Solaris 10.
16010
16011 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16012
16013         fdopendir: fix C89 compilation
16014         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16015         compilers.
16016
16017 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         inttostr: simplify by removing unnecessary redundancy
16020         * lib/anytostr.c: Don't include verify.h.
16021         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16022         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16023         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16024         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16025         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16026         Likewise.
16027         * modules/inttostr (Depends-on): Remove 'verify'.
16028
16029 2010-10-23  Bruno Haible  <bruno@clisp.org>
16030
16031         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16032         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16033         Reported by Eric Blake.
16034
16035 2010-10-23  Bruno Haible  <bruno@clisp.org>
16036
16037         Tests: Fix LOCALE_JA on MirBSD 10.
16038         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16039         to an UTF-8 locale.
16040         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16041         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16042         Reported by Eric Blake.
16043
16044 2010-10-21  Bruno Haible  <bruno@clisp.org>
16045
16046         nl_langinfo test: Avoid test failure on NetBSD 5.
16047         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16048         Reported by Eric Blake.
16049
16050 2010-10-21  Eric Blake  <eblake@redhat.com>
16051
16052         c-stack: work around libsigsegv 2.8 bug
16053         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16054         overflow on at least PowerPC64.
16055
16056 2010-10-17  Bruno Haible  <bruno@clisp.org>
16057
16058         userspec: Drop redundant file.
16059         * modules/userspec (Files): Remove lib/inttostr.h.
16060
16061 2010-10-17  Bruno Haible  <bruno@clisp.org>
16062
16063         nl_langinfo tests: Silence some warnings.
16064         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16065         Reported by Jim Meyering.
16066
16067 2010-10-17  Bruno Haible  <bruno@clisp.org>
16068
16069         Make use of GCC's attribute __alloc_size__.
16070         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16071         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16072         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16073         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16074         __alloc_size__.
16075         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16076         Suggested by Jim Meyering.
16077
16078 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16079
16080         bootstrap: anchor .gitignore entries.
16081         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16082         with...
16083         (insert_vc_ignore): ... this new function, which prepends `/' to
16084         all .gitignore entries before passing them to
16085         insert_sorted_if_absent.
16086
16087 2010-10-16  Bruno Haible  <bruno@clisp.org>
16088
16089         nextafter: Fix configure check.
16090         * modules/nextafter (configure.ac): Correct expected prototype.
16091
16092 2010-10-16  Bruno Haible  <bruno@clisp.org>
16093
16094         termios: Update documentation.
16095         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16096
16097 2010-10-16  Bruno Haible  <bruno@clisp.org>
16098
16099         tests: Make them compile with TinyCC.
16100         * tests/test-strstr.c (main): Remove parentheses around array
16101         initializer.
16102
16103 2010-10-15  Eric Blake  <eblake@redhat.com>
16104
16105         ignore-value: make header idempotent
16106         * lib/ignore-value.h: Add double-inclusion guards.
16107         Reported by Stefan Berger.
16108
16109 2010-10-15  Jim Meyering  <meyering@redhat.com>
16110
16111         GNUmakefile: handle "stable" target, not "major"
16112         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16113         lists in maint.mk and announce-gen.  Without this, "make stable"
16114         would fail to ensure that $(VERSION) is up to date.
16115
16116 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16117
16118         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16119         & co.
16120
16121 2010-10-14  Bruno Haible  <bruno@clisp.org>
16122
16123         vasnprintf: Don't set errno to 0.
16124         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16125         block that sets it to 0.
16126         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16127
16128 2010-10-14  Bruno Haible  <bruno@clisp.org>
16129
16130         socketlib: Fix.
16131         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16132         gl_PREREQ_SYS_H_WINSOCK2.
16133         Reported by Ian Beckwith <ianb@erislabs.net>.
16134
16135 2010-10-13  Jim Meyering  <meyering@redhat.com>
16136
16137         test-select-stdin.c: avoid warn_unused_result warnings
16138         * tests/test-select-stdin.c: Include "macros.h".
16139         ASSERT that read and fflush succeed.
16140
16141 2010-10-13  Jim Meyering  <meyering@redhat.com>
16142
16143         git-version-gen: do require git-VC'd files in cwd
16144         * build-aux/git-version-gen: Reject a git version string
16145         if there are no commits associated with the current directory.
16146         This avoids an unlikely false-positive (unrelated dir whose parent
16147         repository also contains a tag matching v*), as pointed out
16148         by Giuseppe Scrivano in
16149         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16150
16151 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16152
16153         argv-iter: omit nonconforming declaration
16154         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16155         enum arg_iter_err declaration, which doesn't conform to C99.
16156         Solaris 10 cc warns about this.
16157
16158 2010-10-13  Eric Blake  <eblake@redhat.com>
16159
16160         termios: fix compilation on mingw
16161         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16162         (gl_TERMIOS_H): Adjust it on mingw.
16163         * modules/termios (Makefile.am): Substitute new key.
16164         * lib/termios.in.h (includes): Make include_next conditional.
16165         * doc/posix-headers/termios.texi (termios.h): Update
16166         documentation.
16167         Reported by Daniel P. Berrange.
16168
16169 2010-10-13  Jim Meyering  <meyering@redhat.com>
16170
16171         git-version-gen: don't require that .git/ be in the current dir
16172         * build-aux/git-version-gen: Adjust this script so that it works
16173         when run from any working directory beneath the top-level .git/-
16174         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16175         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16176
16177         test-select: avoid warn_unused_result warnings
16178         * tests/test-select.c: Include "macros.h".
16179         ASSERT that each call to read, write, and pipe succeeds.
16180         While not technically required, also check each "close".
16181         * modules/select-tests (Files): Add tests/macros.h.
16182
16183         test-symlinkat: remove declaration of unused local
16184         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16185
16186         test-inttostr: avoid shadowing warnings
16187         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16188         and use malloc rather than the stack for the same reason as
16189         mentioned in the comment justifying the other allocation.
16190
16191 2010-10-11  Bruno Haible  <bruno@clisp.org>
16192
16193         stdlib: Allow multiple gnulib generated replacements to coexist.
16194         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16195         Reported by Sam Steingold <sds@gnu.org>.
16196
16197 2010-10-11  Jim Meyering  <meyering@redhat.com>
16198
16199         fix a documentation typo
16200         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16201
16202 2010-10-11  Eric Blake  <eblake@redhat.com>
16203
16204         futimens: work around Solaris 11 bug
16205         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16206         * tests/test-futimens.h (test_futimens): Enhance, rather than
16207         weaken test.
16208         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16209
16210 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16211
16212         Indentation.
16213         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16214         higher-level operators more to the left.
16215
16216 2010-10-11  Jim Meyering  <meyering@redhat.com>
16217
16218         test-futimens: avoid unwarranted test failure on Solaris 5.11
16219         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16220         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16221         because it tries to dereference the NULL name argument.
16222
16223 2010-10-11  Bruno Haible  <bruno@clisp.org>
16224
16225         Indentation.
16226         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16227         indentation.
16228
16229 2010-10-11  Jim Meyering  <meyering@redhat.com>
16230
16231         spawn.in.h: make indentation consistent with parentheses
16232         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16233         Make indentation consistent with parentheses.
16234
16235 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16236
16237         Fix mismatched parens in previous commit
16238         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16239         parens.
16240
16241 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16242
16243         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16244
16245         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16246         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16247         * lib/malloca.c: Include "verify.h".
16248         (verify1): Remove, replacing with a verify call.
16249         * lib/relocwrapper.c (verify1): Likewise.
16250         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16251         Likewise.
16252         * modules/malloca (Depends-on): Add 'verify'.
16253         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16254         * modules/vasnprintf (Depends-on): Add 'verify'.
16255         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16256         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16257         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16259         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16260         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16261         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16262
16263         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16264
16265         Formerly the style was sometimes 2*X - 1, because the C standard
16266         was wrongly thought to disallow ?: in integral constant expressions.
16267         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16268         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16269         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16270         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16271         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16272         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16273         verify that time_t cannot be floating.
16274
16275 2010-10-08  Eric Blake  <eblake@redhat.com>
16276
16277         time: enforce recent POSIX ruling that time_t is integral
16278         * lib/time.in.h (__time_t_must_be_integral): Detect any
16279         problematic systems, allowing the rest of gnulib to assume POSIX.
16280
16281 2010-10-08  Jim Meyering  <meyering@redhat.com>
16282
16283         fdopendir: fix a bug on systems lacking openat and /proc support
16284         OpenBSD 4.7 is one such system.  The most noticeable effect was
16285         failure of any application making nontrivial use of fts: rm, du,
16286         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16287           ./rm: traversal failed: `a': Bad file descriptor
16288         Debugging that, you see that even though FD 6 was closed just
16289         prior to the opendir call in fd_clone_opendir, its resulting
16290         dir->dd_fd was 8, rather than the expected value of 6:
16291
16292         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16293         93                close (fd);
16294         (gdb) n
16295         94                dir = fd_clone_opendir (dupfd);
16296         (gdb) n
16297         95                saved_errno = errno;
16298         (gdb) p dir->dd_fd
16299         $11 = 8
16300
16301         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16302         The problem is that on OpenBSD, fd_clone_opendir has to resort
16303         to using the old-style save/restore CWD mechanism, due to its
16304         lack of openat/proc support, and *that* would steal the FD (6)
16305         that opendir was supposed to use.
16306
16307         The fix is to squirrel away the desired FD so that save_cwd uses a
16308         different one, and then free the dest FD right before calling opendir.
16309         That guarantees opendir will use the required file descriptor.
16310
16311         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16312
16313 2010-10-08  Bruno Haible  <bruno@clisp.org>
16314
16315         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16316         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16317
16318 2010-10-08  Bruno Haible  <bruno@clisp.org>
16319
16320         nanosleep: Make replacement POSIX compliant.
16321         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16322         is out of range.
16323         Reported by Jim Meyering.
16324
16325 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16326
16327         bootstrap: add hook for altering gnulib.mk, for Bison
16328         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16329         the Bison bootstrapping process can rewrite file names and variables
16330         in this file before later parts of 'bootstrap' use the file.
16331         Bison wants to include lib/gnulib.mk from the top-level makefile,
16332         so it needs the file names in this file to be relative to the top
16333         level, not relative to lib; plus it needs variable names to be
16334         rewritten.
16335         (slurp): Use the new function.
16336
16337         bootstrap: reformat for readability
16338         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16339
16340 2010-10-08  Eric Blake  <eblake@redhat.com>
16341
16342         docs: update cygwin progress
16343         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16344         1.7.7.
16345         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16346         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16347         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16348         * doc/posix-functions/carg.texi (carg): Likewise.
16349         * doc/posix-functions/cargf.texi (cargf): Likewise.
16350         * doc/posix-functions/casin.texi (casin): Likewise.
16351         * doc/posix-functions/casinf.texi (casinf): Likewise.
16352         * doc/posix-functions/casinh.texi (casinh): Likewise.
16353         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16354         * doc/posix-functions/catan.texi (catan): Likewise.
16355         * doc/posix-functions/catanf.texi (catanf): Likewise.
16356         * doc/posix-functions/catanh.texi (catanh): Likewise.
16357         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16358         * doc/posix-functions/ccos.texi (ccos): Likewise.
16359         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16360         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16361         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16362         * doc/posix-functions/cexp.texi (cexp): Likewise.
16363         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16364         * doc/posix-functions/cimag.texi (cimag): Likewise.
16365         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16366         * doc/posix-functions/clog.texi (clog): Likewise.
16367         * doc/posix-functions/clogf.texi (clogf): Likewise.
16368         * doc/posix-functions/conj.texi (conj): Likewise.
16369         * doc/posix-functions/conjf.texi (conjf): Likewise.
16370         * doc/posix-functions/cpow.texi (cpow): Likewise.
16371         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16372         * doc/posix-functions/cproj.texi (cproj): Likewise.
16373         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16374         * doc/posix-functions/creal.texi (creal): Likewise.
16375         * doc/posix-functions/crealf.texi (crealf): Likewise.
16376         * doc/posix-functions/csin.texi (csin): Likewise.
16377         * doc/posix-functions/csinf.texi (csinf): Likewise.
16378         * doc/posix-functions/csinh.texi (csinh): Likewise.
16379         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16380         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16381         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16382         * doc/posix-functions/ctan.texi (ctan): Likewise.
16383         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16384         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16385         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16386         * doc/posix-headers/complex.texi (complex.h): Likewise.
16387
16388 2010-10-07  Jim Meyering  <meyering@redhat.com>
16389
16390         parse-datetime: avoid compilation failure on OpenBSD 4.7
16391         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16392         This works around a compilation failure on OpenBSD 4.7:
16393         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16394
16395 2010-10-07  Eric Blake  <eblake@redhat.com>
16396
16397         docs: update cygwin progress
16398         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16399         1.7.6.
16400         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16401         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16402         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16403         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16404         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16405         Likewise.
16406         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16407         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16408         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16409         Likewise.
16410         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16411         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16412         Likewise.
16413         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16414         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16415         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16416         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16417         Likewise.
16418         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16419         Likewise.
16420         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16421
16422         docs: update parse-datetime history
16423         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16424         documentation of this function's history and alternatives.
16425
16426         cygwin: use more robust version check
16427         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16428         exclude an eventual cygwin 1.9.1.
16429         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16431         (gl_FUNC_STRCASESTR): Likewise.
16432         Reported by Bruno Haible.
16433
16434 2010-10-06  Bruno Haible  <bruno@clisp.org>
16435
16436         string, sys_select: Avoid #including large headers unless necessary.
16437         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16438         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16439         OSF/1, BeOS, Haiku.
16440         Reported by Jim Meyering.
16441
16442 2010-10-05  Eric Blake  <eblake@redhat.com>
16443
16444         memmem, strstr, strcasestr: fix bug with long periodic needle
16445         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16446         periodic needle having false positive.
16447         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16448         and cygwin 1.7.7.
16449         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16451         (gl_FUNC_STRCASESTR): Likewise.
16452         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16453         * tests/test-memmem.c (main): Expose the bug.
16454         * tests/test-strcasestr.c (main): Likewise.
16455         * tests/test-strstr.c (main): Likewise.
16456         * tests/test-c-strcasestr.c (main): Likewise.
16457         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16458         * doc/posix-functions/strstr.texi (strstr): Likewise.
16459         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16460         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16461
16462 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16463
16464         parse-datetime: do some more renaming
16465         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16466         parse_datetime, not get_date.  Mention the renaming.
16467         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16468         in comments.
16469         * m4/bison.m4: Likewise.
16470
16471 2010-10-05  Eric Blake  <eblake@redhat.com>
16472
16473         parse-datetime: better name than get_date
16474         * NEWS: Reword the deprecation notice.
16475         * modules/get_date: Rename to modules/parse-datetime.
16476         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16477         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16478         * lib/get_date.y: Rename to lib/parse-datetime.y.
16479         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16480         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16481         * doc/getdate.texi: Provide fallback wrapper.
16482         * lib/getdate.h: Move guts, and wrap...
16483         * lib/parse-datetime.h: ...new file.
16484         * lib/parse-datetime.y (get_date): Rename...
16485         (parse_datetime): ...to this.
16486         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16487         (gl_PARSE_DATETIME): ...to this.
16488         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16489         documentation.
16490         * modules/getdate (Files): Provide fallback docs and header.
16491         (Notice, Depends-on): Update references.
16492         * tests/test-parse-datetime.c: Likewise.
16493         * DEPENDENCIES: Likewise.
16494         * MODULES.html.sh (Date and time <time.h>): Likewise.
16495         * doc/parse-datetime.texi (Date input formats)
16496         (Authors of parse_datetime): Likewise.
16497         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16498         (Include): Likewise.
16499         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16500         * gnulib-tool: Likewise.
16501         * m4/bison.m4 (gl_BISON): Likewise.
16502         Suggested by Bruno Haible.
16503
16504 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16505
16506         more ports to Solaris tr, which needs [] around ranges
16507         * gnulib-tool: Solaris tr needs [] around ranges.
16508         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16509         * tests/test-pipe-filter-gi1.c (main): Likewise.
16510         * tests/test-pipe-filter-ii1.c (main): Likewise.
16511
16512 2010-10-05  Eric Blake  <eblake@redhat.com>
16513
16514         bootstrap: fix Solaris regression
16515         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16516         around ranges.
16517         Reported by Pádraig Brady.
16518
16519         bootstrap: work with pkg-config
16520         * build-aux/bootstrap (check_versions): Also transliterate - in
16521         prerequisite name.
16522         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16523         prerequisites that were already found, to avoid confusion.
16524         Reported by Justin Clift.
16525
16526         faccessat: remove unused wrappers
16527         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16528         presence of these wrappers dragged in -lgen on Solaris.
16529         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16530
16531 2010-10-05  Jim Meyering  <meyering@redhat.com>
16532
16533         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16534         * Makefile (sc_pragma_columns): New syntax-check rule.
16535
16536 2010-10-04  Bruno Haible  <bruno@clisp.org>
16537
16538         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16539         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16540         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16541         Reported by Bruce Korb and Eric Blake.
16542
16543 2010-10-04  Bruno Haible  <bruno@clisp.org>
16544
16545         threadlib: Make option --with-libpth-prefix work.
16546         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16547         use $LIBPTH, not just -lpth.
16548
16549 2010-10-04  Bruno Haible  <bruno@clisp.org>
16550
16551         Avoid line length limitation from HP NonStop system header files.
16552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16553         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16554         * lib/ctype.in.h: Likewise.
16555         * lib/dirent.in.h: Likewise.
16556         * lib/errno.in.h: Likewise.
16557         * lib/fcntl.in.h: Likewise.
16558         * lib/float.in.h: Likewise.
16559         * lib/getopt.in.h: Likewise.
16560         * lib/iconv.in.h: Likewise.
16561         * lib/inttypes.in.h: Likewise.
16562         * lib/langinfo.in.h: Likewise.
16563         * lib/locale.in.h: Likewise.
16564         * lib/math.in.h: Likewise.
16565         * lib/netdb.in.h: Likewise.
16566         * lib/netinet_in.in.h: Likewise.
16567         * lib/poll.in.h: Likewise.
16568         * lib/pthread.in.h: Likewise.
16569         * lib/pty.in.h: Likewise.
16570         * lib/sched.in.h: Likewise.
16571         * lib/se-selinux.in.h: Likewise.
16572         * lib/search.in.h: Likewise.
16573         * lib/signal.in.h: Likewise.
16574         * lib/spawn.in.h: Likewise.
16575         * lib/stdarg.in.h: Likewise.
16576         * lib/stddef.in.h: Likewise.
16577         * lib/stdint.in.h: Likewise.
16578         * lib/stdio.in.h: Likewise.
16579         * lib/stdlib.in.h: Likewise.
16580         * lib/string.in.h: Likewise.
16581         * lib/strings.in.h: Likewise.
16582         * lib/sys_file.in.h: Likewise.
16583         * lib/sys_ioctl.in.h: Likewise.
16584         * lib/sys_select.in.h: Likewise.
16585         * lib/sys_socket.in.h: Likewise.
16586         * lib/sys_stat.in.h: Likewise.
16587         * lib/sys_time.in.h: Likewise.
16588         * lib/sys_times.in.h: Likewise.
16589         * lib/sys_utsname.in.h: Likewise.
16590         * lib/sys_wait.in.h: Likewise.
16591         * lib/sysexits.in.h: Likewise.
16592         * lib/termios.in.h: Likewise.
16593         * lib/time.in.h: Likewise.
16594         * lib/unistd.in.h: Likewise.
16595         * lib/wchar.in.h: Likewise.
16596         * lib/wctype.in.h: Likewise.
16597         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16598         * modules/ctype (Makefile.am): Likewise.
16599         * modules/dirent (Makefile.am): Likewise.
16600         * modules/errno (Makefile.am): Likewise.
16601         * modules/fcntl-h (Makefile.am): Likewise.
16602         * modules/float (Makefile.am): Likewise.
16603         * modules/getopt-posix (Makefile.am): Likewise.
16604         * modules/iconv-h (Makefile.am): Likewise.
16605         * modules/inttypes (Makefile.am): Likewise.
16606         * modules/langinfo (Makefile.am): Likewise.
16607         * modules/locale (Makefile.am): Likewise.
16608         * modules/math (Makefile.am): Likewise.
16609         * modules/netdb (Makefile.am): Likewise.
16610         * modules/netinet_in (Makefile.am): Likewise.
16611         * modules/poll-h (Makefile.am): Likewise.
16612         * modules/pthread (Makefile.am): Likewise.
16613         * modules/pty (Makefile.am): Likewise.
16614         * modules/sched (Makefile.am): Likewise.
16615         * modules/search (Makefile.am): Likewise.
16616         * modules/selinux-h (Makefile.am): Likewise.
16617         * modules/signal (Makefile.am): Likewise.
16618         * modules/spawn (Makefile.am): Likewise.
16619         * modules/stdarg (Makefile.am): Likewise.
16620         * modules/stddef (Makefile.am): Likewise.
16621         * modules/stdint (Makefile.am): Likewise.
16622         * modules/stdio (Makefile.am): Likewise.
16623         * modules/stdlib (Makefile.am): Likewise.
16624         * modules/string (Makefile.am): Likewise.
16625         * modules/strings (Makefile.am): Likewise.
16626         * modules/sys_file (Makefile.am): Likewise.
16627         * modules/sys_ioctl (Makefile.am): Likewise.
16628         * modules/sys_select (Makefile.am): Likewise.
16629         * modules/sys_socket (Makefile.am): Likewise.
16630         * modules/sys_stat (Makefile.am): Likewise.
16631         * modules/sys_time (Makefile.am): Likewise.
16632         * modules/sys_times (Makefile.am): Likewise.
16633         * modules/sys_utsname (Makefile.am): Likewise.
16634         * modules/sys_wait (Makefile.am): Likewise.
16635         * modules/sysexits (Makefile.am): Likewise.
16636         * modules/termios (Makefile.am): Likewise.
16637         * modules/time (Makefile.am): Likewise.
16638         * modules/unistd (Makefile.am): Likewise.
16639         * modules/wchar (Makefile.am): Likewise.
16640         * modules/wctype (Makefile.am): Likewise.
16641
16642 2010-10-04  Bruno Haible  <bruno@clisp.org>
16643
16644         read-file tests: Avoid a test failure on NonStop Kernel.
16645         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16646         a regular file.
16647         Reported by Joachim Schmitz <schmitz@hp.com>.
16648
16649 2010-10-03  Bruno Haible  <bruno@clisp.org>
16650
16651         gnulib-tool: Fixes for --create-testdir with --libtool.
16652         * gnulib-tool (func_get_automake_snippet): Don't augment
16653         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16654         an executable.
16655         (func_create_testdir): Handle module 'alloca' like func_import.
16656         Reported by Bruce Korb <bruce.korb@gmail.com>.
16657
16658 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16659
16660         Avoid some lines longer than 80 characters.
16661         * lib/stdint.in.h: Break long comment lines.
16662         * lib/math.in.h: Likewise.
16663         (_GL_NUM_UINT_WORDS): New macro, for readability.
16664         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16665         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16666         * lib/stdlib.in.h: Likewise.
16667         * lib/spawn.in.h: Likewise.
16668         * lib/sys_socket.in.h: Update an URL.
16669         * lib/sys_stat.in.h: Break long line.
16670
16671 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16672
16673         Improve pmccabe2html.
16674         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16675         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16676         when the sources change. Remove the line in the HTML about "Used
16677         ranges" (which implied that there might be other unused ranges),
16678         rename "Resume" to "Summary" (easier to understand for more users).
16679         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16680         styles, and some unnecessary blank lines.
16681
16682 2010-10-03  Bruno Haible  <bruno@clisp.org>
16683             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16684
16685         acl: Add support for ACLs on NonStop Kernel.
16686         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16687         Check whether the function aclsort() exists.
16688         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16689         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16690         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16691         (acl_nontrivial [HAVE_ACLSORT]: New function.
16692         (file_has_acl): Implement for NonStop Kernel.
16693         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16694         (qset_acl): Implement for NonStop Kernel.
16695         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16696         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16697         (main): Implement for NonStop Kernel.
16698         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16699         Kernel. Handle this flavor.
16700         * tests/test-set-mode-acl.sh: Likewise.
16701         * tests/test-copy-acl.sh: Likewise.
16702         * tests/test-copy-file.sh: Likewise.
16703
16704 2010-10-03  Bruno Haible  <bruno@clisp.org>
16705
16706         Info about ACLs on NonStop Kernel.
16707         * doc/acl-resources.txt: Add info about NonStop Kernel.
16708         References by Joachim Schmitz <schmitz@hp.com>.
16709
16710 2010-10-02  Bruno Haible  <bruno@clisp.org>
16711
16712         Define missing EDQUOT on NonStop Kernel.
16713         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16714         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16716         missing.
16717         * doc/posix-headers/errno.texi: Mention the NSK bug.
16718         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16719         Reported by Joachim Schmitz <schmitz@hp.com>.
16720
16721 2010-10-02  Bruno Haible  <bruno@clisp.org>
16722
16723         Update doc for POSIX:2008.
16724         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16725         Update URL of POSIX specification.
16726
16727 2010-10-02  Bruno Haible  <bruno@clisp.org>
16728
16729         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16730         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16731         from gnulib, not from Automake.
16732
16733 2010-10-02  Bruno Haible  <bruno@clisp.org>
16734
16735         New module 'system-posix'.
16736         * modules/system-posix: New file.
16737         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16738         module is present.
16739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16740         GNULIB_SYSTEM_POSIX.
16741         * modules/stdlib (Depends-on): Remove sys_wait.
16742         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16743         * doc/posix-functions/system.texi: Mention the new module.
16744         * doc/posix-headers/stdlib.texi: Likewise.
16745         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16746         define test_sys_wait_macros to a no-op.
16747         Reported by Sam Steingold <sds@gnu.org>.
16748
16749 2010-09-30  Bruno Haible  <bruno@clisp.org>
16750
16751         More renaming from 'getdate' to 'get_date'.
16752         * doc/get_date.texi: Renamed from doc/getdate.texi.
16753         * modules/get_date (Files): Update.
16754         * MODULES.html.sh (Date and time <time.h>): Update.
16755         * DEPENDENCIES: Update.
16756         * gnulib-tool: Update comment.
16757         * m4/bison.m4 (gl_BISON): Likewise.
16758         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16759
16760 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16761
16762         bootstrap: support ACLOCAL_FLAGS during aclocal
16763         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16764         can add additional -I dir for third-party .m4 files.
16765
16766 2010-09-30  Eric Blake  <eblake@redhat.com>
16767
16768         bootstrap: use glibtoolize on MacOS
16769         * build-aux/bootstrap (check_versions): Convert libtool into
16770         libtoolize.
16771         (tool search): Move libtool check earlier, and look for
16772         glibtoolize for MacOS.
16773         (gnulib_tool_options): Auto-add --libtool when appropriate.
16774         Reported by Justin Clift.
16775
16776         poll: fix typo that broke test on MacOS
16777         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16778         Reported by Justin Clift.
16779
16780         getdate: rename to get_date
16781         Note: getdate.h is not renamed, to minimize client impact.
16782         * modules/getdate: Mark obsolete.  Move old contents...
16783         * modules/get_date: ...to new module name.
16784         * modules/getdate-tests: Move...
16785         * modules/get_date-tests: ...here.
16786         * m4/getdate.m4: Move...
16787         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16788         * lib/getdate.y: Move...
16789         * lib/get_date.y: ...here.
16790         * tests/test-getdate.c: Move...
16791         * tests/test-get_date.c: ...here.
16792         * doc/posix-functions/getdate.texi (getdate): Update name.
16793         * NEWS: Mention the change.
16794
16795 2010-09-29  Bruno Haible  <bruno@clisp.org>
16796
16797         Separate the module 'waitpid' from the module 'sys_wait'.
16798         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16799         present.
16800         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16801         gl_MODULE_INDICATOR_FOR_TESTS.
16802         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16803         * modules/sys_wait (Depends-on): Remove waitpid.
16804         (Makefile.am): Substitute GNULIB_WAITPID.
16805         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16806         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16807         signature only if the 'waitpid' module is present.
16808         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16809         * NEWS: Mention the change.
16810         * modules/grantpt (Depends-on): Add waitpid.
16811         * modules/wait-process (Depends-on): Likewise.
16812
16813 2010-09-29  Bruno Haible  <bruno@clisp.org>
16814
16815         More tests for module 'sys_wait'.
16816         * modules/sys_wait-c++-tests: New file.
16817         * tests/test-sys_wait-c++.cc: New file.
16818         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16819         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16820
16821 2010-09-29  Bruno Haible  <bruno@clisp.org>
16822
16823         New module 'waitpid'.
16824         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16825         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16826         Don't include <process.h>.
16827         (waitpid): Declare only, using modern idiom.
16828         * m4/waitpid.m4: New file.
16829         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16830         * modules/waitpid: New file.
16831         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16832         (Makefile.am): Update.
16833         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16834
16835 2010-09-28  Bruno Haible  <bruno@clisp.org>
16836
16837         poll: Assume ANSI C.
16838         * lib/poll.c (poll): Use an ANSI C declaration.
16839
16840 2010-09-28  Bruno Haible  <bruno@clisp.org>
16841
16842         poll-h: Create poll.h on all platforms.
16843         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16844         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16845         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16846         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16847         (gl_REPLACE_POLL_H): Don't set POLL_H.
16848         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16849         * modules/poll-h (Depends-on): Add include_next.
16850         (Makefile.am): Create poll.h unconditionally. Substitute also
16851         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16852
16853 2010-09-28  Bruno Haible  <bruno@clisp.org>
16854
16855         Tests for module 'poll-h'.
16856         * modules/poll-h-c++-tests: New file.
16857         * tests/test-poll-h-c++.cc: New file.
16858
16859         Tests for module 'poll-h'.
16860         * modules/poll-h-tests: New file.
16861         * tests/test-poll-h.c: New file.
16862
16863 2010-09-28  Bruno Haible  <bruno@clisp.org>
16864
16865         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16866         * modules/poll-h (Depends-on): Add 'extensions'.
16867
16868 2010-09-28  Bruno Haible  <bruno@clisp.org>
16869
16870         New module 'poll-h'.
16871         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16872         (poll): Use modern idiom.
16873         * modules/poll-h: New file.
16874         * modules/poll (Files): Remove lib/poll.in.h.
16875         (Depends-on): Add poll-h.
16876         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16877         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16878         * m4/poll_h.m4: New file.
16879         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16880         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16881         and invoke gl_REPLACE_POLL_H.
16882         * lib/poll.c: Use common idiom.
16883         * tests/test-poll.c: Likewise.
16884         * doc/posix-headers/poll.texi: Mention the poll-h module.
16885         Suggested by Eric Blake.
16886
16887 2010-09-26  Bruno Haible  <bruno@clisp.org>
16888
16889         sys_wait: Implement WSTOPSIG.
16890         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16891         Reported by Simon Josefsson.
16892
16893 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16894
16895         stdlib, sys_wait: Avoid compilation error on mingw.
16896         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16897
16898 2010-09-26  Bruno Haible  <bruno@clisp.org>
16899
16900         stdlib tests: Avoid code duplication.
16901         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16902         * modules/sys_wait-tests (Files): Likewise.
16903         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16904         * tests/test-stdlib.c: Include test-sys_wait.h.
16905         (main): Invoke test_sys_wait_macros.
16906         * tests/test-sys_wait.c: Include test-sys_wait.h.
16907         (main): Invoke test_sys_wait_macros.
16908
16909 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16910
16911         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16912         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16913         sure Windows sockets are working before calling getaddrinfo.
16914         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16915         * doc/gnulib.texi (Windows sockets): Fix typo.
16916
16917 2010-09-25  Bruno Haible  <bruno@clisp.org>
16918
16919         Tests for module 'regex-quote'.
16920         * modules/regex-quote-tests: New file.
16921         * tests/test-regex-quote.c: New file.
16922
16923         New module 'regex-quote'.
16924         * lib/regex-quote.h: New file.
16925         * lib/regex-quote.c: New file.
16926         * modules/regex-quote: New file.
16927         Suggested by Reuben Thomas <rrt@sc3d.org>.
16928
16929 2010-09-24  Bruno Haible  <bruno@clisp.org>
16930
16931         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16932         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16933
16934 2010-09-23  Bruno Haible  <bruno@clisp.org>
16935
16936         setenv: Relax license.
16937         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16938         Blake.
16939         Requested by Eric Blake.
16940
16941 2010-09-22  Bruno Haible  <bruno@clisp.org>
16942
16943         termios: Relax license.
16944         * modules/termios (License): Change to LGPLv2+.
16945         Requested by Eric Blake.
16946
16947 2010-09-22  Bruno Haible  <bruno@clisp.org>
16948
16949         threadlib: Allow the package to change the default to 'no'.
16950         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16951         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16952         Reported by Paul Eggert.
16953
16954 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16955             Bruno Haible  <bruno@clisp.org>
16956
16957         Fix endless loop in mbmemcasecoll.
16958         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16959         byte.
16960         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16961
16962 2010-09-22  Bruno Haible  <bruno@clisp.org>
16963
16964         Tests for module 'memcoll'.
16965         * modules/memcoll-tests: New file.
16966         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16967
16968         memcoll, xmemcoll: Clarify size vs. length.
16969         * modules/memcoll.c (memcoll0): Clarify specification.
16970         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16971         passed to collate_error.
16972
16973 2010-09-22  Bruno Haible  <bruno@clisp.org>
16974
16975         Tests for module 'memcasecmp'.
16976         * modules/memcasecmp-tests: New file.
16977         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16978
16979 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16980
16981         * lib/pthread.in.h: Add split double-inclusion guard, and include
16982         system <pthread.h> if there is one.  Use @@-style as in other
16983         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16984         pthread.h doesn't.
16985         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16986         (pthread_mutexattr_settype, pthread_mutex_trylock):
16987         New static inline functions, if there's no system <pthread.h>.
16988         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16989         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16990         Approximate with mutexes if the system lacks spinlocks, as in
16991         MacOS.
16992         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16993         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16994         @@-style.  Check for spinlocks separately.
16995         (gl_PTHREAD_DEFAULTS): New macro.
16996         * modules/pthread: Redo to use a more typical style for in.h files.
16997
16998 2010-09-21  Eric Blake  <eblake@redhat.com>
16999
17000         net_if: enhance tests
17001         * tests/test-net_if.c (main): Move signature checks earlier.
17002         Print failures to stderr.
17003         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17004         Document the bug that we do not yet fix.
17005
17006 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17007
17008         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17009         about gnulib, not GSS.
17010
17011 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17012
17013         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17014         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17015         for Emacs.
17016         * build-aux/pmccabe2html: Make Makefile.am example code more
17017         cut-and-paste friendly.
17018
17019 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17020
17021         * tests/test-net_if.c: New file.
17022         * modules/net_if-tests: New file.
17023
17024 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17025
17026         pthread: add pthread_spin_destroy
17027         * lib/pthread.in.h (pthread_spin_destroy): New function.
17028
17029 2010-09-19  Bruno Haible  <bruno@clisp.org>
17030
17031         gnulib-tool: Fix --help output.
17032         * gnulib-tool (func_usage): Fix help message.
17033         Reported by Reuben Thomas <rrt@sc3d.org>.
17034
17035 2010-09-18  Jim Meyering  <meyering@redhat.com>
17036
17037         maint.mk: avoid unexpanded \n in two diagnostics
17038         * top/maint.mk (sc_prohibit_always_true_header_tests):
17039         Don't use a literal \n in a halt=... assignment.  It would not be
17040         expanded, and the two \n bytes would appear in the diagnostic output
17041         rather than the desired newline.  Use halt=$$(printf ... instead.
17042         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17043
17044 2010-09-18  Bruno Haible  <bruno@clisp.org>
17045
17046         netinet_in: Doc tweak.
17047         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17048         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17049
17050 2010-09-18  Jim Meyering  <meyering@redhat.com>
17051
17052         init.sh: correct an outdated comment
17053         * tests/init.sh (create_exe_shims_):  s/function/alias/
17054
17055         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17056         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17057         a file named "*.exe" is removed between the glob expansion and the
17058         processing of that oddly named file.
17059
17060 2010-09-17  Eric Blake  <eblake@redhat.com>
17061
17062         mirbsd: add some more support
17063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17064         in BSD family.
17065         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17066         devices as OpenBSD.
17067         * m4/host-os.m4 (mirbsd): Add MirBSD.
17068
17069         tests: fix unportable assumption on sys/wait.h
17070         * tests/test-sys_wait.c (main): Relax test.
17071         * tests/test-stdlib.c (main): Likewise.
17072
17073         init.sh: accomodate directory with no .exes
17074         * tests/init.sh: Accomodate directory containing only scripts.
17075
17076         tests: avoid compiler warning
17077         * tests/test-stdlib.c (main): Use the variable.
17078
17079         fdutimens, fdutimensat: update signature, again
17080         * lib/utimens.h (gl_futimens): Delete, and move signature...
17081         (fdutimens): ...here.
17082         (fdutimensat): Rearrange signature.
17083         (lutimensat): Rename variable for clarity.
17084         * lib/fdutimensat.c (fdutimensat): Update signature.
17085         * lib/utimens.c (fdutimens): Likewise.
17086         (gl_futimens): Delete.
17087         (utimens, lutimens): Update callers.
17088         * lib/futimens.c (futimens): Likewise.
17089         * tests/test-fdutimensat.c: Likewise.
17090         * tests/test-utimens.c: Likewise.
17091         * tests/test-futimens.h: Update comment.
17092         * NEWS: Mention this.
17093         Suggested by Paul Eggert.
17094
17095 2010-09-17  Bruno Haible  <bruno@clisp.org>
17096
17097         Take over the maintenance of some older macros from Autoconf.
17098         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17099         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17100         GNU Autoconf.
17101         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17102         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17103
17104 2010-09-17  Eric Blake  <eblake@redhat.com>
17105
17106         fdutimensat: drop atflag validation
17107         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17108         with valid fd, to close a race scenario where futimens is
17109         unsupported and FILE was replaced by a symlink.
17110         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17111         accordingly.
17112         Suggested by Paul Eggert.
17113
17114 2010-09-16  Bruno Haible  <bruno@clisp.org>
17115
17116         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17117         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17118
17119 2010-09-16  Bruno Haible  <bruno@clisp.org>
17120
17121         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17122         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17123         login_tty exists.
17124         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17125
17126 2010-09-16  Bruno Haible  <bruno@clisp.org>
17127
17128         login_tty: Make the replacement code work on BSD systems.
17129         * lib/login_tty.c: Include <sys/ioctl.h>.
17130         (login_tty): Use ioctl TIOCSCTTY when available.
17131         * modules/login_tty (Depends-on): Add sys_ioctl.
17132         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17133
17134 2010-09-16  Bruno Haible  <bruno@clisp.org>
17135
17136         login_tty: Stricter unit test.
17137         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17138         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17139         and tcgetsid() after login_tty.
17140         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17141
17142 2010-09-16  Bruno Haible  <bruno@clisp.org>
17143
17144         New module 'tcgetsid'.
17145         * lib/tcgetsid.c: New file.
17146         * m4/tcgetsid.m4: New file.
17147         * modules/tcgetsid: New file.
17148         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17149         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17150         GNULIB_TCGETSID, HAVE_TCGETSID.
17151         * lib/termios.in.h: Include <sys/types.h>.
17152         (tcgetsid): New declaration.
17153         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17154         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17155         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17156         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17157
17158 2010-09-16  Bruno Haible  <bruno@clisp.org>
17159
17160         Tests for module 'termios'.
17161         * modules/termios-c++-tests: New file.
17162         * modules/termios-tests: New file.
17163         * tests/test-termios-c++.cc: New file.
17164         * tests/test-termios.c: New file.
17165
17166         New module 'termios'.
17167         * modules/termios: New file.
17168         * lib/termios.in.h: New file.
17169         * m4/termios_h.m4: New file.
17170         * doc/posix-headers/termios.texi: Mention the new module.
17171
17172 2010-09-16  Eric Blake  <eblake@redhat.com>
17173
17174         fdutimensat: add an atflag parameter
17175         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17176         * lib/utimens.h (fdutimensat): Update prototype.
17177         * tests/test-fdutimensat.c: Adjust test to match.
17178         * NEWS: Document the change.
17179         Suggested by Paul Eggert.
17180
17181 2010-09-16  Bruno Haible  <bruno@clisp.org>
17182
17183         Fix typos in comments.
17184         * lib/striconveh.h: Fix typo in comment.
17185         * lib/login_tty.c (login_tty): Likewise.
17186
17187 2010-09-15  Bruno Haible  <bruno@clisp.org>
17188
17189         stdlib: clarify MirBSD WEXITSTATUS bug
17190         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17191         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17192
17193 2010-09-15  Eric Blake  <eblake@redhat.com>
17194
17195         stdlib: work around MirBSD WEXITSTATUS bug
17196         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17197         * modules/stdlib (Depends-on): Add sys_wait.
17198         * tests/test-sys_wait.c (main): Enhance test.
17199         * tests/test-stdlib.c (main): Likewise.
17200         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17201
17202         docs: mention MacOS issue with WEXITSTATUS(constant)
17203         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17204         issue.
17205         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17206
17207         strnlen: add tests
17208         * modules/strnlen-tests: New file.
17209         * tests/test-strnlen.c: Likewise.
17210
17211 2010-09-14  Bruno Haible  <bruno@clisp.org>
17212
17213         unistr/base: Avoid link errors when module 'libunistring' is also used.
17214         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17215         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17216         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17217         Declare also when HAVE_LIBUNISTRING is set.
17218         Reported by Pádraig Brady <P@draigbrady.com>.
17219
17220 2010-09-14  Eric Blake  <eblake@redhat.com>
17221
17222         test-rawmemchr: make more robust
17223         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17224         (Depends-on, configure.ac): Add needed prerequisites to use it.
17225         * modules/memchr-tests (Files, Depends-on, configure.ac):
17226         Likewise, to avoid implicit reliance on memchr module prereqs.
17227         * tests/test-memchr.c (main): Ensure proper masking.
17228         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17229         reads.
17230
17231         memchr: detect glibc Alpha bug
17232         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17233         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17234         Alpha.
17235         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17236         * tests/test-memchr.c (main): Enhance test.
17237         Reported by Nelson H. F. Beebe.
17238
17239 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17240
17241         fts, getcwd, glob: audit for dirfd returning -1
17242         * lib/fts.c (opendir): Remove #define; no longer used.
17243         (opendirat): New arg PDIR_FD.  All callers changed.
17244         (fts_build, _opendir2): Use new opendirat to avoid the need for
17245         dirfd, or for checking whether dirfd returns a negative value.
17246         Don't use opendir; always use openat followed by fdopendir.
17247         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17248         it.
17249         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17250         returns -1 here.
17251         * modules/fts (Depends-on): Remove dirfd.
17252         * modules/getcwd (Depends-on): Likewise.
17253
17254 2010-09-13  Eric Blake  <eblake@redhat.com>
17255
17256         float: fix broken MirBSD header
17257         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17258         * doc/posix-headers/float.texi (float.h): Document it.
17259
17260 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17261
17262         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17263         * lib/fts.c (opendirat): New arg extra_flags.
17264         (__opendir2): Use it to avoid following symlinks when opening
17265         a directory, if symlinks are not supposed to be followed.  See
17266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17267
17268         fdopendir: preserve argument fd before returning
17269         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17270         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17271         (fdopendir): Use them, arranging for FD to be open to the same
17272         directory that it was when it started.  (It might be temporarily
17273         closed while fdopendir is running, so this not thread- or
17274         signal-safe.)  Be careful to do the right thing even when file
17275         descriptors are scarce and dup fails with errno == EMFILE.  See
17276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17277
17278 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17279
17280         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17281         * NEWS: Document change.
17282         * m4/regex.m4: Disable test for regoff_t size.
17283
17284 2010-09-13  Jim Meyering  <meyering@redhat.com>
17285
17286         fts: don't operate on an invalid file descriptor after failed dup
17287         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17288         negative file descriptor.
17289
17290 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17291
17292         savedir: add streamsavedir, deprecate fdsavedir
17293         * NEWS: Mention deprecation of fdsavedir.
17294         * lib/savedir.c (streamsavedir): New extern function, whose name
17295         ends in "savedir" to be consistent with the others.  This differs
17296         from savedirstream in that it doesn't close its argument.  The
17297         next version of GNU tar will use this instead of fdsavedir, to
17298         avoid some race conditions and conserve file descriptors.
17299         (savedirstream): Reimplement as a wrapper around streamsavedir.
17300         (fdsavedir): Add a comment deprecating this function.  As far as
17301         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17302         * lib/savedir.h (streamsavedir): New decl.
17303         (fdsavedir): Add a comment deprecating this.
17304
17305 2010-09-10  Bruno Haible  <bruno@clisp.org>
17306
17307         langinfo: Fix last commit.
17308         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17309         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17311
17312 2010-09-10  Bruno Haible  <bruno@clisp.org>
17313
17314         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17315         * lib/progreloc.c (O_EXEC): Define fallback.
17316
17317 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17318
17319         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17320         * NEWS: Document recent changes to fcntl-h.
17321         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17322         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17323         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17324         Similarly for O_SEARCH; this last was already true, but not documented.
17325         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17326         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17327         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17328         Likewise.
17329         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17330         is zero, not whether it is defined.
17331         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17332         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17333         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17334
17335 2010-09-10  Bruno Haible  <bruno@clisp.org>
17336
17337         langinfo, nl_langinfo: Fix for IRIX 5.3.
17338         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17339         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17340         HAVE_LANGINFO_YESEXPR.
17341         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17342         HAVE_LANGINFO_YESEXPR.
17343         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17344         HAVE_LANGINFO_T_FMT_AMPM is 0.
17345         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17346         HAVE_LANGINFO_YESEXPR is 0.
17347         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17348         NOEXPR.
17349         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17350         * doc/posix-functions/nl_langinfo.texi: Likewise.
17351         Reported by Eric Blake.
17352
17353 2010-09-10  Bruno Haible  <bruno@clisp.org>
17354
17355         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17356         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17357         on FreeBSD 8.0 and OpenBSD 4.6.
17358         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17359         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17360         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17361         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17362         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17363         ac_includes_default.
17364         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17365
17366 2010-09-09  Eric Blake  <eblake@redhat.com>
17367
17368         strsignal: work around NetBSD bug
17369         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17370         * lib/string.in.h (includes): Likewise.
17371         * doc/posix-functions/strsignal.texi (strsignal): Document the
17372         bug.
17373         Reported by Nelson H. F. Beebe.
17374
17375         gnulib-tool: work with NetBSD /bin/sh
17376         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17377         (func_get_description, func_get_comment, func_get_status)
17378         (func_get_notice, func_get_applicability, func_get_filelist)
17379         (func_get_dependencies, func_get_autoconf_early_snippet)
17380         (func_get_autoconf_snippet, func_get_automake_snippet)
17381         (func_get_include_directive, func_get_link_directive)
17382         (func_get_license, func_get_maintainer, func_import): Avoid
17383         shell syntax errors from parsing syntax extensions.
17384
17385 2010-09-09  Bruno Haible  <bruno@clisp.org>
17386
17387         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17388         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17389         a reliable way to determine whether the 'alias' command works.
17390
17391 2010-09-08  Jim Meyering  <meyering@redhat.com>
17392
17393         init.sh: penalize a set-x-impaired shell; don't disqualify it
17394         * tests/init.sh: Too many shells corrupt application stderr when
17395         you set -x, so we can't afford to disqualify them, since at least
17396         on Irix-6.5, that would disqualify all bourne shells.
17397         Instead, use a two-pass approach.
17398         On the first pass, try to find a shell that meets the stricter
17399         condition that set -x does not corrupt stderr.
17400         If no shell meets the stricter condition, retest each candidate
17401         shell, but without that extra condition.  Finally, when
17402         VERBOSE=yes is requested and set -x might cause trouble, simply
17403         issue a warning and refrain from enabling debug output.
17404
17405 2010-09-08  Eric Blake  <eblake@redhat.com>
17406
17407         unsetenv: fix OpenBSD bug
17408         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17409         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17410         documentation.
17411         Reported by Jim Meyering.
17412
17413         strtod: work around IRIX 6.5 bug
17414         * lib/strtod.c (strtod): Reparse number on shorter string if
17415         exponent parse was invalid.
17416         * tests/test-strtod.c (main): Add check for "0x1p 2".
17417         Reported by Tom G. Christensen.
17418
17419         getopt: optimize previous patch
17420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17421         empty variable.  Speed up awk script.
17422         Reported by Paolo Bonzini.
17423
17424 2010-09-08  Jim Meyering  <meyering@redhat.com>
17425
17426         test.sh: disqualify shells for which set -x corrupts stderr
17427         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17428         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17429         appear in stderr output.  For example, this command:
17430             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17431         prints "P=1" on those two systems:
17432
17433 2010-09-08  Bruno Haible  <bruno@clisp.org>
17434
17435         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17436         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17437         commands, because some shells ignore redirections when there is an
17438         error in the command lookup.
17439         Reported by Eric Blake.
17440
17441 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17442
17443         * lib/regex.h: Fix a mention of `regex_compile' (should be
17444         `re_compile_pattern').
17445         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17446         (re_set_registers): Correct name of parameter in comment.
17447
17448         * doc/regex.texi: Add documentation for missing syntax flags.
17449         Remove commented-out documentation of defunct syntax option
17450         RE_NO_EMPTY_ALTS.
17451         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17452         Add documentation of re_set_registers.
17453         Document trick to re-use a pattern buffer by setting fastmap manually.
17454         Update documentation of struct re_pattern_buffer per public members.
17455         Uncomment documentation of equivalence class operators and
17456         collating symbol operators, since they are now implemented,
17457         Explain leftmost-longest matching in relation to alternatives.
17458         Tidy documentation of substring matching.
17459         Remove POSIX documentation, which is done better in
17460         glibc, and refer the reader there. Keep BSD API documentation, as
17461         that is not readily available elsewhere.
17462
17463 2010-09-07  Eric Blake  <eblake@redhat.com>
17464
17465         getopt: handle POSIXLY_CORRECT set but not exported
17466         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17467         export state of POSIXLY_CORRECT, due to bash set -o posix.
17468         Reported by Dustin J. Mitchell.
17469
17470 2010-09-05  Bruno Haible  <bruno@clisp.org>
17471
17472         gnulib-tool: Highlight the changed options.
17473         * gnulib-tool (func_usage): Display the --import, --add-import,
17474         --remove-import explanations in bold font.
17475
17476 2010-09-06  Karl Berry  <karl@gnu.org>
17477
17478         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17479
17480 2010-09-05  Bruno Haible  <bruno@clisp.org>
17481
17482         uniwidth/width: Update comment.
17483         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17484         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17485
17486 2010-09-05  Bruno Haible  <bruno@clisp.org>
17487
17488         isinf, isnan: Relax license.
17489         * modules/isinf (License): Change from GPL to LGPL, with consent from
17490         Ben Pfaff.
17491         * modules/isnan (License): Likewise.
17492         Requested by Ludovic Courtès.
17493
17494 2010-09-04  Bruno Haible  <bruno@clisp.org>
17495
17496         gnulib-tool: Help migration from --import to --add-import or --update.
17497         * gnulib-tool: Emit a verbose error message when --import is used
17498         without any module name.
17499
17500 2010-09-04  Bruno Haible  <bruno@clisp.org>
17501
17502         Update doc about gnulib-tool.
17503         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17504         'gnulib-tool --update' in more detail.
17505         Reported by Eric Blake.
17506
17507 2010-09-04  Bruno Haible  <bruno@clisp.org>
17508
17509         gnulib-tool: Change --import. New options --add/remove-import.
17510         * gnulib-tool: New options --add-import, --remove-import.
17511         (func_usage): Document them.
17512         (have_associative): Define always.
17513         (func_import): In import mode, don't merge the specified settings with
17514         the cached settings. Implement remove-import mode.
17515         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17516         Explain when to use them versus --import.
17517         (Simple update): Use --add-import instead of --import.
17518         * NEWS: Mention the change.
17519
17520 2010-09-04  Bruno Haible  <bruno@clisp.org>
17521
17522         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17523         separate gnulib.mk.
17524
17525 2010-09-04  Bruno Haible  <bruno@clisp.org>
17526
17527         gnulib-tool: Don't talk about CVS any more.
17528         * gnulib-tool (func_usage, func_import): Write "version control"
17529         instead of CVS.
17530
17531 2010-09-04  Jim Meyering  <meyering@redhat.com>
17532
17533         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17534         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17535         false positives (whose names may be ill-chosen) when searching
17536         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17537         would cause a false-positive.
17538
17539         avoid coreutils "make distcheck" failure
17540         Coreutils tests with an absolute build directory name that contains
17541         a space.  Not quoting this directory name caused a failure.
17542         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17543         * tests/test-vc-list-files-cvs.sh: Likewise.
17544
17545 2010-09-04  Bruno Haible  <bruno@clisp.org>
17546
17547         gnulib-tool: Avoid error when run in a package without Makefile.am.
17548         * gnulib-tool: When collecting the m4dirs in a package that does not
17549         have a Makefile.am, eliminate those directories that contain no
17550         gnulib-cache.m4. Fix expression that counts these directories.
17551
17552 2010-09-04  Bruno Haible  <bruno@clisp.org>
17553
17554         update-copyright test: Improve output when perl is missing or too old.
17555         * tests/test-update-copyright.sh: Move test of Perl version down after
17556         the test whether Perl exists. Provide an explanation relating Perl's
17557         error message to Automake's SKIP: message.
17558
17559 2010-09-04  Bruno Haible  <bruno@clisp.org>
17560
17561         Don't augment PATH in TESTS_ENVIRONMENT.
17562         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17563         set abs_aux_dir instead of augmenting PATH.
17564         * modules/vc-list-files-tests (Makefile.am): Likewise.
17565         * tests/test-update-copyright.sh: Augment PATH here.
17566         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17567         path_prepend_.
17568         * tests/test-vc-list-files-git.sh: Likewise.
17569
17570 2010-09-04  Jim Meyering  <meyering@redhat.com>
17571
17572         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17573         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17574
17575 2010-09-04  Bruno Haible  <bruno@clisp.org>
17576
17577         strdup: Fix compilation error in C++ mode.
17578         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17579         the macro.
17580
17581 2010-09-04  Bruno Haible  <bruno@clisp.org>
17582
17583         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17584         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17585         macro into a function.
17586         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17587
17588 2010-09-04  Bruno Haible  <bruno@clisp.org>
17589
17590         Set PATH_SEPARATOR the same way autoconf does.
17591         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17592         the value of PATH_SEPARATOR the same way autoconf-generated configure
17593         scripts do.
17594         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17595         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17596
17597 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17598
17599         Set PATH_SEPARATOR the same way autoconf does.
17600         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17601         the same way autoconf-generated configure scripts do.
17602         * posix-modules: Likewise.
17603
17604 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17605
17606         hash: fix safe_hasher const typo
17607         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17608         const; otherwise, there is a type error later.
17609
17610 2010-09-02  Jim Meyering  <meyering@redhat.com>
17611
17612         test-update-copyright.sh: require perl 5.8.0
17613         * tests/test-update-copyright.sh: Require 5.8.0,
17614         which Tom G. Christensen has confirmed is adequate,
17615         while 5.6.1 is not.
17616
17617 2010-09-02  Eric Blake  <eblake@redhat.com>
17618
17619         tests: init.sh improvements for re-exec'ing with zsh
17620         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17621         -vx through shell re-exec.
17622         Reported by Tom G. Christensen.
17623
17624         wctype: fix typo in previous commit
17625         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17626         Reported by Ludovic Courtès.
17627
17628 2010-09-02  Jim Meyering  <meyering@redhat.com>
17629
17630         test-update-copyright.sh: skip test if Perl is too old
17631         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17632         Reported by Tom G. Christensen.
17633
17634 2010-09-02  Bruno Haible  <bruno@clisp.org>
17635
17636         wctype: Avoid compilation error on IRIX 6.5.30.
17637         * lib/wctype.in.h (iswblank): Declare with a replacement if
17638         REPLACE_ISWBLANK is set.
17639         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17640         declared. Set REPLACE_ISWBLANK.
17641         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17642         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17643         * doc/posix-headers/wctype.texi: Likewise.
17644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17645
17646 2010-09-01  Bruno Haible  <bruno@clisp.org>
17647
17648         New module 'socketlib'.
17649         * modules/socketlib: New file.
17650         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17651         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17652         * modules/sockets (Depends-on): Add socketlib.
17653         Suggested by Sam Steingold <sds@gnu.org>.
17654
17655 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17656
17657         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17658
17659         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17660         when one needs search access to a directory but not read access.
17661         On systems where it is available, it works in some cases where
17662         O_RDONLY does not, namely on directories that are searchable but
17663         not readable, and which need only to be searchable.  If O_SEARCH
17664         is not available, fall back to the traditional method of using
17665         O_RDONLY.
17666
17667         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17668         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17669         when opening a directory that needs only to be searchable.
17670         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17671         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17672         * lib/openat-proc.c (openat_proc_name): Likewise.
17673         * lib/openat.c (openat_needs_fchdir): Likewise.
17674         * lib/save-cwd.c (save_cwd): Likewise.
17675         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17676
17677 2010-08-28  Bruno Haible  <bruno@clisp.org>
17678
17679         New module 'host-cpu-c-abi'.
17680         * modules/host-cpu-c-abi: New file.
17681         * m4/host-cpu-c-abi.m4: New file, based on part of
17682         clisp/src/m4/general.m4.
17683         Requested by Sam Steingold <sds@gnu.org>.
17684
17685 2010-08-31  Eric Blake  <eblake@redhat.com>
17686         and Jim Meyering  <meyering@redhat.com>
17687
17688         hash: factor, and guard against misbehaving hasher function
17689         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17690         of table->hasher's return value.  Also protect against a hash value
17691         so large that adding it to table->bucket results in a NULL pointer.
17692         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17693         Use it in place of open-coded check-and-abort.
17694
17695 2010-08-30  Bruno Haible  <bruno@clisp.org>
17696
17697         hash: silence spurious clang warning
17698         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17699         Reported by Eric Blake.
17700
17701 2010-08-30  Eric Blake  <eblake@redhat.com>
17702
17703         strstr, memmem, strcasestr: avoid leaked shell message
17704         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17705         FreeBSD.
17706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17707         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17708
17709         tests: silence clang warning
17710         * tests/test-malloca.c (do_allocation): Avoid dead store.
17711
17712 2010-08-29  Bruno Haible  <bruno@clisp.org>
17713
17714         gettext: Fix recent mistake.
17715         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17716
17717 2010-08-29  Bruno Haible  <bruno@clisp.org>
17718
17719         selinux-h: Offer a --without-selinux option.
17720         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17721         --without-selinux was specified, skip all tests and define
17722         HAVE_SELINUX_SELINUX_H to 0.
17723         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17724         set LIB_SELINUX to empty.
17725         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17726         gl_LIBSELINUX. If --without-selinux was specified, replace
17727         selinux/context.h.
17728         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17729
17730 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17731             Bruno Haible  <bruno@clisp.org>
17732
17733         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17734         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17735         of HAVE_REALLOC.
17736         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17737         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17738         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17739         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17740
17741 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17742             Bruno Haible  <bruno@clisp.org>
17743
17744         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17745         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17746         HAVE_CALLOC.
17747         * lib/xmalloc.c: Update accordingly.
17748         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17749         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17750         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17751
17752 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17753             Bruno Haible  <bruno@clisp.org>
17754
17755         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17756         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17757         HAVE_MALLOC.
17758         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17759         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17760         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17761
17762 2010-08-29  Bruno Haible  <bruno@clisp.org>
17763
17764         Update modules list.
17765         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17766         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17767         (String handling <string.h>): Add astrxfrm.
17768         (File system functions): Add readlinkat.
17769
17770 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17771
17772         Tests for module 'realloc-gnu'.
17773         * modules/realloc-gnu-tests: New file.
17774         * tests/test-realloc-gnu.c: New file.
17775
17776         Tests for module 'calloc-gnu'.
17777         * modules/calloc-gnu-tests: New file.
17778         * tests/test-calloc-gnu.c: New file.
17779
17780         Tests for module 'malloc-gnu'.
17781         * modules/malloc-gnu-tests: New file.
17782         * tests/test-malloc-gnu.c: New file.
17783
17784 2010-08-28  Bruno Haible  <bruno@clisp.org>
17785
17786         Rename module 'realloc' -> 'realloc-gnu'.
17787         * modules/realloc-gnu: New file, copied from modules/realloc.
17788         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17789         obsolete.
17790         * modules/mgetgroups (Depends-on): Update.
17791         * doc/posix-functions/realloc.texi: Update.
17792         * NEWS: Mention the change.
17793
17794         Rename module 'calloc' -> 'calloc-gnu'.
17795         * modules/calloc-gnu: New file, copied from modules/calloc.
17796         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17797         obsolete.
17798         * doc/posix-functions/calloc.texi: Update.
17799         * NEWS: Mention the change.
17800
17801         Rename module 'malloc' -> 'malloc-gnu'.
17802         * modules/malloc-gnu: New file, copied from modules/malloc.
17803         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17804         obsolete.
17805         * modules/argp (Depends-on): Update.
17806         * modules/regex (Depends-on): Update.
17807         * doc/posix-functions/malloc.texi: Update.
17808         * NEWS: Mention the change.
17809
17810 2010-08-28  Eric Blake  <eblake@redhat.com>
17811
17812         pread, pwrite: add missing dependency
17813         * modules/pread (Depends-on): Add extensions.
17814         * modules/pwrite (Depends-on): Likewise.
17815
17816 2010-08-28  Bruno Haible  <bruno@clisp.org>
17817
17818         unistr/u*-strchr: Fix tests dependencies.
17819         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17820         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17821         Reported by Ian Beckwith <ianb@erislabs.net>.
17822
17823 2010-08-28  Bruno Haible  <bruno@clisp.org>
17824
17825         read-file: Don't occupy too much unused memory.
17826         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17827
17828 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17829             Eric Blake  <eblake@redhat.com>
17830             Bruno Haible  <bruno@clisp.org>
17831
17832         read-file: Avoid memory reallocations with regular files.
17833         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17834         (fread_file): With regular files, use the remaining length as the
17835         initial buffer size.  Check against overflow.
17836         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17837         sys_stat.
17838
17839 2010-08-28  Bruno Haible  <bruno@clisp.org>
17840
17841         ftello: Relax license.
17842         * modules/ftello (License): Relax to LGPLv2+.
17843         Reported by Eric Blake.
17844
17845 2010-08-28  Bruno Haible  <bruno@clisp.org>
17846
17847         Avoid relocwrapper link errors due to gnulib replacement functions.
17848         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17849         function.
17850         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17851
17852 2010-08-28  Bruno Haible  <bruno@clisp.org>
17853
17854         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17855         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17856         defined.
17857         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17858         Suggested by Eric Blake.
17859
17860 2010-08-28  Bruno Haible  <bruno@clisp.org>
17861
17862         sys_socket, netdb: Ensure socklen_t gets defined.
17863         * modules/sys_socket (Depends-on): Add socklen.
17864         * modules/netdb (Depends-on): Likewise.
17865         * modules/getaddrinfo (Depends-on): Remove socklen.
17866         * modules/getsockopt (Depends-on): Likewise.
17867         * modules/setsockopt (Depends-on): Likewise.
17868         * tests/test-sys_socket.c: Check that socklen_t is defined.
17869         * tests/test-netdb.c: Likewise.
17870         * m4/socklen.m4: Update comments.
17871         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17872
17873 2010-08-27  Eric Blake  <eblake@redhat.com>
17874
17875         login_tty: add missing dependency
17876         * modules/login_tty (Depends-on): Add pty.
17877
17878 2010-08-26  Eric Blake  <eblake@redhat.com>
17879
17880         lib-symbol-versions: fix m4 quoting
17881         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17882         format for AC_LINK_IFELSE.
17883
17884         glob: fix compile test
17885         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17886
17887         btowc: fix missing file
17888         * modules/btowc (Files): Also ship locale-fr.m4.
17889
17890         lseek: fix link test
17891         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17892         AC_LINK_IFELSE.
17893
17894         include_next: silence autoconf 2.68 warning
17895         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17896         AC_COMPILE_IFELSE as special.
17897         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17898         autoconf < 2.68.
17899
17900         acl: fix compilation test
17901         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17902         AC_COMPILE_IFELSE.
17903
17904 2010-08-26  Bruno Haible  <bruno@clisp.org>
17905
17906         Modernize AC_TRY_RUN invocations.
17907         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17908         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17909         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17910         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17911         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17912         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17914         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17915         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17916         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17917         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17918         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17919         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17920         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17921         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17922         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17923         gl_MBRLEN_NUL_RETVAL): Likewise.
17924         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17925         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17926         Likewise.
17927         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17928         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17929         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17930         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17931         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17932         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17933         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17934         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17935         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17936         Likewise.
17937         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17938         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17939         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17940         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17941         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17942         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17943         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17944         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17945         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17947
17948 2010-08-26  Bruno Haible  <bruno@clisp.org>
17949
17950         Modernize AC_TRY_LINK invocations.
17951         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17952         AC_TRY_LINK.
17953         * m4/argp.m4 (gl_ARGP): Likewise.
17954         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17955         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17956         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17957         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17958         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17959         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17960         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17961         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17962         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17963         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17964         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17965         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17966         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17967         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17968         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17969         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17970         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17971         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17972         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17973         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17974         Likewise.
17975         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17976         Likewise.
17977         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17978         Likewise.
17979         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17981         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17982         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17983         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17984         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17985         * m4/servent.m4 (gl_SERVENT): Likewise.
17986         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17987         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17988         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17989         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17990         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17991         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17992         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17994         * modules/tsearch-tests (configure.ac): Likewise.
17995
17996 2010-08-26  Bruno Haible  <bruno@clisp.org>
17997
17998         Modernize AC_TRY_COMPILE invocations.
17999         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18000         AC_TRY_COMPILE.
18001         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18002         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18003         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18004         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18005         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18006         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18007         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18008         * m4/lock.m4 (gl_LOCK): Likewise.
18009         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18010         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18011         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18012         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18013         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18014         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18015         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18017         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18018         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18019         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18020         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18021         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18022         extraneous semicolon.
18023
18024 2010-08-26  Jim Meyering  <meyering@redhat.com>
18025
18026         stat-time: relax license LGPL
18027         * modules/stat-time (License): Change from GPL to LGPL,
18028         with consent from all contributors, for use in libguile.
18029         Requested by Ludovic Courtès.
18030
18031 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18032
18033         poll: return immediately on POLLHUP.
18034         * lib/poll.c (poll): Always set timeout before wait_timeout is
18035         computed.
18036
18037 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18038
18039         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18040         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18041         rmdir ("dir/.//"), unlinkat.
18042
18043 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18044
18045         stdbool: avoid spurious failure with modern xlc
18046         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18047
18048 2010-08-24  Bruno Haible  <bruno@clisp.org>
18049
18050         getloadavg: simplify code
18051         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18052         gl_have_func. Update comments.
18053
18054 2010-08-24  Eric Blake  <eblake@redhat.com>
18055
18056         getloadavg: don't define SVR4 on cygwin
18057         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18058         only define SVR4 when -lkvm is required.
18059         Reported by Yaakov Selkowitz.
18060
18061 2010-08-24  Bruno Haible  <bruno@clisp.org>
18062
18063         priv-set: fix comment
18064         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18065
18066 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18067
18068         priv-set: fix comments
18069         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18070         to match code, as suggested by David Bartley in:
18071         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18072
18073 2010-08-23  Eric Blake  <eblake@redhat.com>
18074
18075         stdbool: avoid rejecting clang
18076         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18077         * tests/test-stdbool.c: Enable more tests if using the system
18078         <stdbool.h> instead of the gnulib replacement.
18079         (main): Move xlc bug test to a runtime test for all compilers.
18080         Reported by Anders Kaseorg.
18081
18082         argz: fix shell quoting issue
18083         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18084         Reported by Charles Wilson.
18085
18086 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18087             Erik Faye-Lund <kusmabite@gmail.com>
18088
18089         poll, select: handle ERROR_BROKEN_PIPE.
18090         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18091         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18092         * lib/select.c (win32_compute_revents): Do not mark a pipe
18093         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18094
18095 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18096
18097         fts: allow compilation with C++
18098         * lib/fts_.h: Specify extern "C" linkage with C++.
18099
18100 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18101
18102         Fix gnulib-tool sed script de-commentation for AIX sed.
18103         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18104         sed.
18105
18106 2010-08-17  Eric Blake  <eblake@redhat.com>
18107
18108         test-stddef: test for (some) offsetof bugs
18109         * tests/test-stddef.c: Enhance test to ensure correct type of
18110         offsetof.
18111         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18112         that we are not fixing at this time.
18113
18114 2010-08-15  Bruno Haible  <bruno@clisp.org>
18115
18116         stpncpy: Allow stpncpy to be defined as a macro.
18117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18118         if it's already correctly declared.
18119         * lib/string.in.h (stpncpy): Undefine before redefining.
18120         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18121
18122 2010-08-14  Bruno Haible  <bruno@clisp.org>
18123
18124         Rename module 'memxfrm' to 'amemxfrm'.
18125         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18126         (amemxfrm): Renamed from memxfrm.
18127         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18128         (amemxfrm): Renamed from memxfrm.
18129         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18130         * NEWS: Mention the change.
18131         * MODULES.html.sh (String handling <string.h>): Update.
18132         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18133         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18134         * lib/unicase/u16-casexfrm.c: Likewise.
18135         * lib/unicase/u32-casexfrm.c: Likewise.
18136         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18137         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18138         * lib/uninorm/u16-normxfrm.c: Likewise.
18139         * lib/uninorm/u32-normxfrm.c: Likewise.
18140         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18141         memxfrm.
18142         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18143         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18144         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18145         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18146         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18147         Suggested by Paul Eggert.
18148
18149 2010-08-14  Bruno Haible  <bruno@clisp.org>
18150
18151         Tests for module 'astrxfrm'.
18152         * modules/astrxfrm-tests: New file.
18153         * tests/test-astrxfrm.c: New file.
18154
18155         New module 'astrxfrm'.
18156         * lib/astrxfrm.h: New file.
18157         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18158         * modules/astrxfrm: New file.
18159
18160 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18161
18162         regex: Tweak doc.
18163         * doc/regex.texi (Overview): Don't mention regex.c.
18164         (GNU Regular Expression Compiling): Likewise.
18165         (Match-end-of-line Operator): Mention 'not_eol'.
18166
18167 2010-08-14  Brian Gough  <bjg@gnu.org>
18168             Bruno Haible  <bruno@clisp.org>
18169
18170         git-merge-changelog: add doc relating to use with bzr and hg.
18171         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18172
18173 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18174
18175         pthread: fix pthread.h creation for srcdir != builddir
18176         * modules/pthread (Makefile.am): Fix the rule to work also in a
18177         non-srcdir build.
18178
18179 2010-08-13  Karl Berry  <karl@gnu.org>
18180
18181         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18182         * doc/posix-*/*: force line break before @url of POSIX
18183         specifications.
18184         Suggested by Werner Lemberg.
18185
18186 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18187
18188         strtod: fix const diagnostic
18189         * lib/strtod.c (strtod): Don't assign const char * to char *,
18190         as this elicits a warning from GCC when warnings are enabled.
18191
18192 2010-08-10  Pádraig Brady <P@draigbrady.com>
18193         and Eric Blake  <eblake@redhat.com>
18194
18195         copy-acl: ignore ENOTSUP on HP-UX
18196         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18197         so that it is available for HP-UX.
18198         * lib/copy-acl.c (qcopy_acl): Use it.
18199         Reported by Patrick M. Callahan.
18200
18201 2010-08-10  Eric Blake  <eblake@redhat.com>
18202
18203         open, chown: relax license
18204         * modules/open (License): Change to LGPLv2+, with consent by all
18205         authors, for use in augeas.
18206         * modules/chown (License): Likewise.
18207         * modules/lchown (Likewise): Likewise.
18208         Requested by Adam Stokes.
18209
18210 2010-08-09  Karl Berry  <karl@gnu.org>
18211
18212         * build-aux/ar-lib: new file, import from Automake.
18213         * config/srclist.txt: autocheck for updates.
18214
18215 2010-08-09  Eric Blake  <eblake@redhat.com>
18216
18217         readlinkat: adjust client modules
18218         * modules/areadlinkat (Depends-on): Use readlinkat, not
18219         symlinkat.
18220         * modules/areadlinkat-with-size (Depends-on): Likewise.
18221
18222         mknod: be more vocal about danger of running tests as root
18223         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18224         root, since that is just asking for problems.
18225         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18226
18227         readlinkat: split into its own module
18228         * modules/symlinkat: Split readlinkat...
18229         * modules/readlinkat: ...into separate module.
18230         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18231         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18232         * lib/symlinkat.c (readlinkat): Move...
18233         * lib/readlinkat.c: ...into new file.
18234         * modules/symlinkat-tests: Split readlinkat test...
18235         * modules/readlinkat-tests: ...into separate module.
18236         * tests/test-symlinkat.c: Split...
18237         * tests/test-readlinkat.c: ...into new file.
18238         * NEWS: Document the split.
18239         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18240         * lib/unistd.in.h (readlinkat): Likewise.
18241         Suggested by Bruno Haible.
18242
18243 2010-08-08  Bruno Haible  <bruno@clisp.org>
18244
18245         memxfrm: Speed up.
18246         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18247         that usually only one call to strxfrm is necessary for each string
18248         part.
18249         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18250
18251 2010-08-07  Karl Berry  <karl@gnu.org>
18252
18253         * doc/posix-headers/limits.texi,
18254         * doc/posix-functions/malloc.texi,
18255         * doc/posix-functions/strsignal.texi: missing @item.
18256         * doc/ld-version-script.texi: spurious leading i.
18257         * doc/regex.texi (Interval Operators): no commas inside @var.
18258
18259 2010-08-01  Bruno Haible  <bruno@clisp.org>
18260
18261         Integrate the regex documentation.
18262         * doc/gnulib.texi: Define 'cn' index.
18263         (Regular expressions): New a chapter that includes regex.texi and
18264         regexprops-generic.texi.
18265         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18266         syntax.
18267
18268         Whitespace cleanup.
18269         * doc/regex.texi: Remove trailing spaces.
18270
18271         Add regex documentation.
18272         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18273         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18274         Written by Kathy A. Hargreaves and Karl Berry.
18275
18276 2010-08-01  Bruno Haible  <bruno@clisp.org>
18277
18278         link: Update documentation.
18279         * doc/posix-functions/link.texi: Update regarding Solaris.
18280
18281 2010-07-31  Bruno Haible  <bruno@clisp.org>
18282
18283         Update modules list.
18284         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18285         (String handling <string.h>): Add memcmp2, memxfrm.
18286         (Container data structures): Add xlist, xsublist, xoset.
18287         (Core language properties): Add alignof, unused-parameter.
18288         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18289         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18290         (Unibyte characters <ctype.h>): New section.
18291         (String handling <string.h>): New section.
18292         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18293         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18294         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18295         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18296         tan, tanh, tanl, y0, y1, yn.
18297         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18298         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18299         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18300         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18301         unlockpt, vdprintf, vdprintf-posix.
18302         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18303         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18304         xconcat-filename.
18305         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18306         getdtablesize, pipe2, pipe2-safer.
18307         (Security): New section.
18308         (Networking functions): Add accept4.
18309         (Signal handling): Add sigpipe.
18310         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18311         mbmemcasecoll.
18312         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18313         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18314         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18315         pipe-filter-ii.
18316         (Misc): Add argp-version-etc, login_tty, parse-duration.
18317
18318 2010-07-31  Bruno Haible  <bruno@clisp.org>
18319
18320         Improve doc in MODULES.html.
18321         * modules/linkat (Description): Add the word "function".
18322         * modules/mkfifo (Description): Likewise.
18323         * modules/mknod (Description): Likewise.
18324         * modules/remove (Description): Likewise.
18325         * modules/renameat (Description): Likewise.
18326         * modules/stat (Description): Likewise.
18327         * modules/symlink (Description): Likewise.
18328         * modules/unlink (Description): Likewise.
18329
18330 2010-07-31  Bruno Haible  <bruno@clisp.org>
18331
18332         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18333         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18334         option --enable/disable-c++ instead of --enable/disable-cxx.
18335         * NEWS: Mention the change.
18336
18337 2010-07-31  Bruno Haible  <bruno@clisp.org>
18338
18339         readlink, areadlink: Relax test a bit.
18340         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18341         alternative to ENOTDIR.
18342         * tests/test-areadlink.h (test_areadlink): Likewise.
18343         Reported by Rainer Tammer.
18344
18345 2010-07-31  Bruno Haible  <bruno@clisp.org>
18346
18347         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18348         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18349         character, perform the search using U_STRCHR.
18350         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18351         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18352         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18353         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18354         Suggested by Paolo Bonzini.
18355
18356 2010-07-31  Bruno Haible  <bruno@clisp.org>
18357
18358         unistr/u*-strstr: Fix dependencies.
18359         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18360         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18361         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18362
18363 2010-07-31  Bruno Haible  <bruno@clisp.org>
18364
18365         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18366         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18367         the beginning of the loop.
18368         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18369         cases in 'switch' statement.
18370
18371         unistr/u8-strchr: Fix several bugs.
18372         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18373         the string. When not found, return NULL, not a pointer near the end.
18374
18375         More tests for unistr/u8-strchr.
18376         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18377         that the function does not read past the first occurrence of the byte
18378         being searched.
18379         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18380         * tests/unistr/test-u16-strchr.c (main): New function.
18381         * tests/unistr/test-u32-strchr.c (main): New function.
18382
18383 2010-07-31  Bruno Haible  <bruno@clisp.org>
18384
18385         posix-modules: Ignore backup files of documentation files.
18386         * posix-modules: grep only through files named *.texi.
18387
18388 2010-07-31  Bruno Haible  <bruno@clisp.org>
18389
18390         symlinkat: Fix documentation.
18391         * doc/posix-functions/readlinkat.texi: Fix module name.
18392
18393 2010-07-31  Bruno Haible  <bruno@clisp.org>
18394
18395         fchownat: Replace also when chown has the trailing slash bug.
18396         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18397         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18398         introduced on 2010-04-10.
18399         Reported by Rainer Tammer.
18400
18401 2010-07-31  Bruno Haible  <bruno@clisp.org>
18402
18403         linkat: Work around AIX 7.1 bug.
18404         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18405         whether linkat handles trailing slash correctly. If not, replace linkat
18406         and define LINKAT_TRAILING_SLASH_BUG.
18407         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18408         check whether (fd1,file1) points to a directory if file1 or file2 ends
18409         in a slash. Code taken from lib/link.c.
18410         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18411         Reported by Rainer Tammer.
18412
18413 2010-07-31  Bruno Haible  <bruno@clisp.org>
18414
18415         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18416         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18417         This disables an xlc optimization that was causing wrong test results.
18418         Reported by Rainer Tammer.
18419
18420 2010-07-31  Bruno Haible  <bruno@clisp.org>
18421
18422         iconv: Work around AIX 6.1..7.1 bug.
18423         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18424         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18425         cross-compiling, guess no on all versions of AIX.
18426         Reported by Rainer Tammer.
18427
18428 2010-07-31  Bruno Haible  <bruno@clisp.org>
18429
18430         readlink: Relax test a bit.
18431         * tests/test-readlink.h (test_readlink): Allow different errno value
18432         when readlink is called with a file name that ends in / and refers to
18433         a file.
18434         Suggested by Eric Blake.
18435         Reported by Rainer Tammer.
18436
18437 2010-07-31  Bruno Haible  <bruno@clisp.org>
18438
18439         copysign: Does not require -lm on glibc systems.
18440         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18441         gl_COMMON_DOUBLE_MATHFUNC.
18442         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18443
18444 2010-07-31  Bruno Haible  <bruno@clisp.org>
18445
18446         duplocale: Work around AIX 7.1 bug.
18447         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18448         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18449         * lib/duplocale.c (rpl_duplocale): Update comment.
18450         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18451         Reported by Rainer Tammer.
18452
18453 2010-07-30  Bruno Haible  <bruno@clisp.org>
18454
18455         dirfd: Avoid link error on AIX 7.1.
18456         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18457         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18458         exist, set REPLACE_DIRFD.
18459         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18460         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18461         * doc/posix-functions/dirfd.texi: Update.
18462         Reported by Rainer Tammer.
18463
18464 2010-07-30  Eric Blake  <eblake@redhat.com>
18465
18466         strtod: next round of AIX fixes
18467         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18468         exponent.
18469         * tests/test-strtod.c (main): Enhance tests.
18470         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18471         Reported by Rainer Tammer.
18472
18473         futimens: fix configure check
18474         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18475         Reported by Bruno Haible.
18476
18477 2010-07-30  Bruno Haible  <bruno@clisp.org>
18478
18479         getline: Update regarding AIX.
18480         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18481         Reported by Rainer Tammer.
18482
18483 2010-07-30  Bruno Haible  <bruno@clisp.org>
18484
18485         wcwidth: Drop replacement on AIX 7.
18486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18487         AIX 7.
18488         Reported by Rainer Tammer.
18489
18490 2010-07-30  Bruno Haible  <bruno@clisp.org>
18491
18492         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18493         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18494         a 'char *'.
18495         Reported by Rainer Tammer.
18496
18497 2010-07-30  Bruno Haible  <bruno@clisp.org>
18498
18499         unlink: Update regarding AIX.
18500         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18501         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18502         Reported by Rainer Tammer.
18503
18504 2010-07-30  Bruno Haible  <bruno@clisp.org>
18505
18506         symlink: Update regarding AIX.
18507         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18508         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18509         Reported by Rainer Tammer.
18510
18511 2010-07-30  Bruno Haible  <bruno@clisp.org>
18512
18513         strndup: Update regarding AIX.
18514         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18515         AIX 7.
18516         Reported by Rainer Tammer.
18517
18518 2010-07-30  Bruno Haible  <bruno@clisp.org>
18519
18520         stat: Update regarding AIX.
18521         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18522         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18523         Reported by Rainer Tammer.
18524
18525 2010-07-30  Bruno Haible  <bruno@clisp.org>
18526
18527         truncl: Fix autoconf test.
18528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18529         whether truncl works.
18530         Reported by Rainer Tammer.
18531
18532 2010-07-30  Bruno Haible  <bruno@clisp.org>
18533
18534         round: Update regarding AIX.
18535         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18536         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18537         Reported by Rainer Tammer.
18538
18539 2010-07-30  Bruno Haible  <bruno@clisp.org>
18540
18541         rename: Update regarding AIX.
18542         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18543         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18544         Reported by Rainer Tammer.
18545
18546 2010-07-30  Bruno Haible  <bruno@clisp.org>
18547
18548         printf.m4: Update regarding AIX.
18549         * m4/printf.m4: Update comments regarding AIX.
18550         Reported by Rainer Tammer.
18551
18552 2010-07-30  Bruno Haible  <bruno@clisp.org>
18553
18554         iconv: Update regarding AIX.
18555         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18556         AIX 7.
18557         Reported by Rainer Tammer.
18558
18559 2010-07-30  Bruno Haible  <bruno@clisp.org>
18560
18561         getopt: Update regarding AIX.
18562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18563         no on AIX.
18564         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18565         Reported by Rainer Tammer.
18566
18567 2010-07-30  Bruno Haible  <bruno@clisp.org>
18568
18569         ldexpl; Update regarding AIX.
18570         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18571         on AIX 7.
18572         Reported by Rainer Tammer.
18573
18574 2010-07-30  Bruno Haible  <bruno@clisp.org>
18575
18576         frexpl: Update regarding AIX.
18577         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18578         on AIX 7.
18579         Reported by Rainer Tammer.
18580
18581 2010-07-30  Bruno Haible  <bruno@clisp.org>
18582
18583         open, fopen: Update regarding AIX.
18584         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18585         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18586         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18587         * doc/posix-functions/fopen.texi: Likewise.
18588         Reported by Rainer Tammer.
18589
18590 2010-07-30  Bruno Haible  <bruno@clisp.org>
18591
18592         chown: Update doc regarding AIX.
18593         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18594         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18595         Reported by Rainer Tammer.
18596
18597 2010-07-30  Eric Blake  <eblake@redhat.com>
18598
18599         strtod: fix bug in replacement function on AIX
18600         * lib/strtod.c (strtod): Special case broken "0x" parse in
18601         underlying strtod.
18602         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18603         * doc/posix-functions/strtod.texi (strtod): Likewise.
18604         Reported by Rainer Tammer.
18605
18606 2010-07-30  Bruno Haible  <bruno@clisp.org>
18607
18608         mbrlen: Fix cross-compilation guess for AIX.
18609         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18610         guess. Leftover from 2008-12-22.
18611
18612 2010-07-30  Bruno Haible  <bruno@clisp.org>
18613
18614         mbrtowc: Fix cross-compilation guess for AIX.
18615         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18616         guess. Leftover from 2008-12-21.
18617
18618 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18619
18620         init.sh: work around trap limitation of some shells
18621         * tests/init.sh (setup_): Move exit trap outside of shell function.
18622
18623 2010-07-29  Eric Blake  <eblake@redhat.com>
18624
18625         strtod: aid debugging
18626         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18627         understanding why strtod is rejected.
18628
18629 2010-07-28  Bruno Haible  <bruno@clisp.org>
18630
18631         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18632         * lib/unistr/u8-chr.c: Include <string.h>.
18633         * tests/unistr/test-u8-chr.c: Likewise.
18634         * tests/unistr/test-u16-chr.c: Likewise.
18635         * tests/unistr/test-u32-chr.c: Likewise.
18636         * tests/unistr/test-u8-strchr.c: Likewise.
18637         * tests/unistr/test-u16-strchr.c: Likewise.
18638         * tests/unistr/test-u32-strchr.c: Likewise.
18639         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18640         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18641         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18642         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18643
18644 2010-07-28  Bruno Haible  <bruno@clisp.org>
18645
18646         Use spaces for indentation, not tabs.
18647         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18648
18649 2010-07-27  Bruno Haible  <bruno@clisp.org>
18650
18651         mbspcasecmp: Fix function specification.
18652         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18653         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18654         Reported by Eric Blake <eblake@redhat.com>.
18655
18656 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18657
18658         timespec: use cast and not conditional, as truncation isn't possible
18659         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18660         instead of a conditional.  Comment about the situation in more detail.
18661         This undoes most of the 2009-10-29 patch.
18662
18663 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18664
18665         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18666         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18667         * lib/unistr/u8-strchr.c: Likewise.
18668         * modules/unistr/u8-chr: Depend on memchr.
18669
18670         unistr/u*-strchr: add tests
18671         * modules/unistr/u8-strchr-tests: New file.
18672         * modules/unistr/u16-strchr-tests: New file.
18673         * modules/unistr/u32-strchr-tests: New file.
18674         * tests/unistr/test-strchr.h: New file.
18675         * tests/unistr/test-u8-strchr.c: New file.
18676         * tests/unistr/test-u16-strchr.c: New file.
18677         * tests/unistr/test-u32-strchr.c: New file.
18678
18679         unistr/u*-chr: test multibyte sequences more
18680         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18681         test vector.
18682         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18683         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18684         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18685
18686         unistr/u*-chr: test multibyte sequences
18687         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18688
18689         unistr/u*-chr: prepare for multibyte tests
18690         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18691         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18692         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18693         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18694         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18695         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18696
18697 2010-07-18  Bruno Haible  <bruno@clisp.org>
18698
18699         unistr/u8-strchr: Optimize non-ASCII argument case.
18700         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18701         because the first byte often matches anyway.
18702         Reported by Pádraig Brady <P@draigbrady.com>.
18703
18704 2010-07-15  Karl Berry  <karl@gnu.org>
18705
18706         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18707
18708 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18709
18710         getcwd: on Solaris, work better if ancestors are inaccessible
18711         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18712         buffer and size, try again with a large buffer.  This works better
18713         on Solaris, since its getcwd succeeds even if the path to the root
18714         is inaccessible, and this is helpful in common cases such as .zfs
18715         hidden directories.  Problem reported by J Chapman Flack in
18716         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18717         Use system getcwd if it's declared, not merely if it's partly
18718         working; use the partly-working test only to avoid needless effort
18719         if the system getcwd fails.
18720         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18721         comment that was already obsolete and is now even more obsolete.
18722         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18723         now might call strdup.
18724
18725 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18726
18727         pthread: Add enough so that coreutils/src/sort.c compiles.
18728         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18729         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18730         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18731         Include <sys/types.h>, in case it defines pthread_t.
18732         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18733         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18734         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18735         (pthread_rwlockattr_t, pthread_spinlock_t):
18736         New typedefs, if HAVE_PTHREAD_T is not defined.
18737         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18738         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18739         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18740         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18741         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18742         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18743         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18744         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18745         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18746         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18747         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18748         New macros.
18749         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18750         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18751         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18752         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18753         (pthread_spin_unlock): New dummy functions.
18754         (pthread_create): Return EAGAIN; don't set errno.
18755         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18756         require AC_C_INLINE.
18757         * modules/pthread (Depends-on): Add sched, time.
18758         (pthread.h): Use AM_V_GEN.
18759
18760 2010-07-13  Bruno Haible  <bruno@clisp.org>
18761
18762         striconveh: Don't malloc memory if the result buffer is sufficient.
18763         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18764         buffer if its size is sufficient.
18765         Reported by Ludovic Courtès <ludo@gnu.org>.
18766
18767 2010-07-13  Bruno Haible  <bruno@clisp.org>
18768
18769         strtod: Add safety check.
18770         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18771
18772 2010-07-12  Bruno Haible  <bruno@clisp.org>
18773
18774         Unify tests that set gl_cv_func_ldexpl_no_libm.
18775         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18776         gl_FUNC_LDEXPL.
18777         (gl_FUNC_LDEXPL): Invoke it.
18778         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18779
18780 2010-07-12  Bruno Haible  <bruno@clisp.org>
18781
18782         Unify tests that set gl_cv_func_ldexp_no_libm.
18783         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18784         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18785         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18786         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18787         * modules/strtod (Files): Add m4/ldexp.m4.
18788
18789 2010-07-12  Bruno Haible  <bruno@clisp.org>
18790
18791         Unify tests that set gl_cv_func_frexpl_no_libm.
18792         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18793         gl_FUNC_FREXPL_NO_LIBM.
18794         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18795         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18796
18797 2010-07-12  Bruno Haible  <bruno@clisp.org>
18798
18799         Unify tests that set gl_cv_func_frexp_no_libm.
18800         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18801         gl_FUNC_FREXP_NO_LIBM.
18802         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18803         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18804
18805 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18806
18807         memcoll: clarify sizes versus lengths, document better, and tweak perf
18808         * lib/memcoll.c (strcoll_loop, memcoll0):
18809         Improve quality of descriptive comments.  Name variables
18810         consistently as to whether they are lengths (which do not include
18811         terminating null) versus sizes (which do).
18812         * lib/xmemcoll.c (xmemcoll0): Likewise.
18813         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18814         returned when s1size == 0; this is easier to compile and saves
18815         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18816
18817 2010-07-12  Bruno Haible  <bruno@clisp.org>
18818
18819         Tests for module '_Exit'.
18820         * modules/_Exit-tests: New file.
18821         * tests/test-_Exit.sh: New file.
18822         * tests/test-_Exit.c: New file.
18823
18824         New module '_Exit'.
18825         * lib/stdlib.in.h (__attribute__): New macro.
18826         (_Exit): New declaration.
18827         * lib/_Exit.c: New file.
18828         * m4/_Exit.m4: New file.
18829         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18830         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18831         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18832         * modules/_Exit: New file.
18833         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18834         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18835
18836 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18837
18838         strtod: make it more-accurate typically, and don't require libm
18839         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18840         Include limits.h.  Don't include string.h.
18841         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18842         (locale_isspace): New function, so that no casts are needed to
18843         check whether *s is a space.
18844         (ldexp): Provide an unused dummy if not available.
18845         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18846         (strtod): Use them.  This implementation prefers to use the
18847         underlying strtod if available, falling back on our own code
18848         only to fix known bugs.  This is more likely to produce an
18849         accurate result.  Also, it avoids the use of libm functions.
18850         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18851         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18852         was absent, but it caused a test failure with coreutils.
18853         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18854         with libm.
18855         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18856         * modules/strtod-tests (Makefile.am): Likewise.
18857
18858 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18859             Bruno Haible  <bruno@clisp.org>
18860
18861         unistr/u8-strchr: Optimize ASCII argument case.
18862         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18863
18864 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18865
18866         (x)memcoll: minor tweaks
18867         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18868         is after the type that it qualifies.
18869         (memcoll0): Likewise.
18870         * lib/memcoll.h (memcoll0): Likewise.
18871         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18872         * lib/xmemcoll.h (xmemcoll0): Likewise.
18873         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18874         differs from memcoll in that the NUL byte is part of the argument.
18875         Omit the abort-checks, as performance is a real issue here.  Plus,
18876         the checks were wrong anyway (an off-by-one error).  Omit local
18877         variable 'diff', as it's a bit clearer that way.
18878         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18879         no longer needed.
18880
18881 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18882
18883         (x)memcoll: speedup when input is known to be NUL delimited
18884         * lib/memcoll.c: Include stdlib.
18885         (memcoll0): New function.
18886         (strcoll_loop): New function, refactored for use in both memcoll
18887         and memcoll0.
18888         * lib/memcoll.h (memcoll0): Add prototype.
18889         * lib/xmemcoll.c (xmemcoll0): New function.
18890         (collate_error): New function, refactored for use in both xmemcoll
18891         and xmemcoll0.
18892         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18893         * m4/memcoll.m4: add inline invocation.
18894
18895 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18896
18897         * build-aux/bootstrap: Remove any local translations
18898         from the translation project synchronization directory,
18899         so that local only translations are not distributed.
18900
18901 2010-07-04  Bruno Haible  <bruno@clisp.org>
18902
18903         fsusage: Clarify which code applies to which platforms.
18904         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18905         platform.
18906         * lib/fsusage.c (get_fs_usage): Likewise.
18907
18908 2010-07-04  Bruno Haible  <bruno@clisp.org>
18909
18910         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18911         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18912         Reported by Martin Lambers <marlam@marlam.de>.
18913
18914 2010-07-04  Jim Meyering  <meyering@redhat.com>
18915
18916         hash: once again explicitly disallow insertion of NULL
18917         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18918         inserting a NULL pointer cannot work with these functions.
18919         Add a comment with details.
18920         This reverts part of the 2010-07-01 commit, 5bef1a35
18921         "hash: extend module to deal with non-pointer keys".
18922
18923 2010-07-01  Bruno Haible  <bruno@clisp.org>
18924
18925         stdbool: Update doc.
18926         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18927         Info from Christian Weisgerber <naddy@mips.inka.de>.
18928
18929 2010-07-01  Jim Meyering  <meyering@redhat.com>
18930
18931         hash: extend module to deal with non-pointer keys
18932         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18933         but that allows insertion of non-pointer entries.
18934         Do not disallow an ENTRY value of NULL.
18935         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18936         * lib/hash.h (hash_insert0): Declare.
18937
18938 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18939
18940         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18941         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18942         not present (i.e. with autoconf 2.59 and when using gettextize, not
18943         gnulib), require AC_GNU_SOURCE instead.
18944
18945 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18946
18947         idpriv-drop: Fix tests.
18948         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18949         not to the test-idpriv-droptemp program.
18950
18951 2010-06-29  Bruno Haible  <bruno@clisp.org>
18952
18953         string: Fix syntax error with g++ 2.96.
18954         * lib/string.in.h (__pure__): Remove definition.
18955         (_GL_ATTRIBUTE_PURE): New macro.
18956         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18957         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18958         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18959
18960 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18961
18962         unitypes: Fix bug introduced on 2010-05-18.
18963         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18964
18965 2010-06-22  Eric Blake  <eblake@redhat.com>
18966
18967         memmem: slight optimization
18968         * lib/str-two-way.h (critical_factorization): Update comments.
18969         Reduce work during factorization phase.
18970         Reported by Carlos Bueno <carlos@bueno.org>.
18971
18972 2010-06-21  Bruno Haible  <bruno@clisp.org>
18973
18974         Fix HAVE_CALLOC_POSIX misnomer.
18975         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18976         !HAVE_CALLOC_POSIX.
18977         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18978         HAVE_CALLOC_POSIX.
18979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18980         instead of HAVE_CALLOC_POSIX.
18981         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18982         HAVE_CALLOC_POSIX.
18983
18984         Use modern idiom for calloc() replacement.
18985         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18986         AC_FUNC_CALLOC.
18987         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18988         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18989         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18990         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18991         (gl_REPLACE_CALLOC): New macro.
18992
18993 2010-06-21  Bruno Haible  <bruno@clisp.org>
18994
18995         Fix HAVE_REALLOC_POSIX misnomer.
18996         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18997         !HAVE_REALLOC_POSIX.
18998         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18999         HAVE_REALLOC_POSIX.
19000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19001         instead of HAVE_REALLOC_POSIX.
19002         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19003         HAVE_REALLOC_POSIX.
19004
19005         Use modern idiom for realloc() replacement.
19006         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19007         AC_FUNC_REALLOC.
19008         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19009         Autoconf's AC_FUNC_REALLOC.
19010         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19011         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19012         (gl_REPLACE_REALLOC): New macro.
19013         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19014
19015 2010-06-21  Bruno Haible  <bruno@clisp.org>
19016
19017         Fix HAVE_MALLOC_POSIX misnomer.
19018         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19019         !HAVE_MALLOC_POSIX.
19020         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19021         HAVE_MALLOC_POSIX.
19022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19023         instead of HAVE_MALLOC_POSIX.
19024         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19025         HAVE_MALLOC_POSIX.
19026
19027         Use modern idiom for malloc() replacement.
19028         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19029         AC_FUNC_MALLOC.
19030         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19031         Autoconf's AC_FUNC_MALLOC.
19032         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19033         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19034         (gl_REPLACE_MALLOC): New macro.
19035         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19036
19037 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19038
19039         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19040         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19041         This macro takes 3 arguments, not 4.
19042
19043 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19044
19045         ipv6: fix detection under mingw
19046         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19047         in6_addr.
19048
19049 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19050
19051         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19052         that strtod() works when cross-compiling to a glibc version known
19053         to work.
19054
19055 2010-06-15  Bruno Haible  <bruno@clisp.org>
19056
19057         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19058
19059 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19060
19061         select: Correct timeout.
19062         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19063
19064 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19065
19066         git-version-gen: init shell var to avoid env var influence
19067         * build-aux/git-version-gen (v): Init shell var to empty.
19068
19069 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         priv-set: Don't assume that priv.h exists merely because getppriv does.
19072         See Jan Andersen's bug report about AIX 5L in
19073         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19074         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19075         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19076         * lib/priv-set.h: Likewise.
19077         * tests/test-priv-set.c: Likewise.
19078
19079 2010-06-13  Bruno Haible  <bruno@clisp.org>
19080
19081         relocatable: Make it easier to test whether to install wrappers.
19082         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19083         RELOCATABLE_VIA_WRAPPER.
19084
19085 2010-06-13  Bruno Haible  <bruno@clisp.org>
19086
19087         gnulib-tool: Display specified modules and dependencies differently.
19088         * gnulib-tool (func_show_module_list): New function.
19089         (func_import, func_create_testdir): Invoke it.
19090         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19091
19092 2010-06-13  Bruno Haible  <bruno@clisp.org>
19093
19094         gnulib-tool: Align code of func_import and func_create_testdir.
19095         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19096         specified_modules.
19097
19098 2010-06-12  Jim Meyering  <meyering@redhat.com>
19099
19100         test-inttostr: avoid spurious failure on Solaris 9
19101         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19102         to accept "%ju".  Reported by Bruno Haible.
19103
19104 2010-06-11  Jim Meyering  <meyering@redhat.com>
19105
19106         test-sys_socket: mark variables as used more readably
19107         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19108         as "used" explicitly via (void) statement casts.  This is more
19109         readable than using them in an artificial return expression.
19110         Suggestion from Bruno Haible.
19111
19112 2010-06-11  Bruno Haible  <bruno@clisp.org>
19113
19114         Avoid some more warnings from "gcc -Wwrite-strings".
19115         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19116         to 'const char *'.
19117         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19118         * tests/test-c-strcasestr.c (main): Likewise.
19119         * tests/test-mbscasestr1.c (main): Likewise.
19120         * tests/test-mbscasestr2.c (main): Likewise.
19121         * tests/test-memmem.c (main): Likewise.
19122         * tests/test-strstr.c (main): Likewise.
19123         * tests/test-strcasestr.c (main): Likewise.
19124
19125 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19126
19127         init.sh: change framework_failure_ to fail with status 99, not 1
19128         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19129         automake's parallel-tests rule that this is an unexpected failure,
19130         even if the test is listed in XFAIL_TESTS.
19131
19132 2010-06-11  Jim Meyering  <meyering@redhat.com>
19133
19134         test-inttostr: avoid warnings about 4-6KB literal strings
19135         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19136         Include "macros.h", for its definition of ASSERT.
19137         (CK): s/assert/ASSERT/
19138         * modules/inttostr-tests (Files): Add macros.h.
19139
19140         init.sh: don't use $ME_ or skip_ before they are defined
19141         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19142         their first uses.  Also hoist their companions: warn_, fail_,
19143         framework_failure_, $stderr_fileno.  Prompted by a patch from
19144         Stefano Lattarini.
19145
19146         test-sys_socket: avoid set-but-not-used warnings from gcc
19147         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19148         avoid warning about set-but-not-used variables.
19149
19150         test-xvasprintf: avoid 'const' discard warnings
19151         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19152         "const" when assigning from literal strings.
19153         (test_xasprintf): Add "void" in function argument list to placate
19154         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19155
19156         tests: avoid compilation warnings in argmatch and exclude tests...
19157         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19158         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19159         Since it always exits, declare with the "noreturn" attribute.
19160         * tests/test-argmatch.c: Likewise.
19161
19162         tests: avoid 'const' discard warnings in mbsstr tests
19163         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19164         * tests/test-mbsstr2.c (main): Likewise.
19165
19166         test-verify: avoid warning from gcc's -Wmissing-declarations
19167         * tests/test-verify.c (function): Declare to be static.
19168
19169         test-inttostr.c: include <string.h> for use of strcmp
19170         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19171
19172         test-linkat: avoid failed assertion on "other" architectures
19173         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19174         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19175         sparc: https://bugs.launchpad.net/bugs/591968
19176
19177 2010-06-11  Jim Meyering  <meyering@redhat.com>
19178
19179         printf.m4: avoid autoconf's "Expanded Before Required" warning
19180         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19181         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19182         autoconf warning.
19183
19184 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19185
19186         Replacement header templates are now named with ".in", not "_".
19187         * doc/gnulib-intro.texi: Correct.
19188
19189 2010-06-10  Jim Meyering  <meyering@redhat.com>
19190
19191         inttostr-tests: depend on snprintf, not snprintf-posix
19192         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19193         snprintf-posix, to avoid this aclocal failure:
19194           missing file gnulib-tests/vasnprintf.c
19195           configure.ac:45: error: expected source file, required through \
19196           AC_LIBSOURCES, not found
19197
19198 2010-06-10  Jim Meyering  <meyering@redhat.com>
19199
19200         inttostr: add a new function, inttostr, and tests
19201         The namesake function was not available.  The existence of the
19202         template file, inttostr.c makes its addition nontrivial.
19203         * lib/anytostr.c: Rename from inttostr.c.
19204         (anytostr): Rename from inttostr.
19205         * lib/inttostr.c: New file.
19206         * modules/inttostr (Files): Add anytostr.c.
19207         (Makefile.am): Set lib_SOURCES instead of ...
19208         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19209         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19210         * lib/offtostr.c: Likewise.
19211         * lib/uinttostr.c: Likewise.
19212         * lib/umaxtostr.c: Likewise.
19213         * modules/inttostr-tests: New file.
19214         * tests/test-inttostr.c: New file.  Test these functions.
19215
19216 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19217             Bruno Haible  <bruno@clisp.org>
19218
19219         Add "Extending Gnulib" chapter to manual.
19220         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19221         chapter.
19222         (Extending Gnulib): New chapter.
19223         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19224         chapter.
19225
19226 2010-06-09  Bruno Haible  <bruno@clisp.org>
19227
19228         Avoid relocwrapper link errors due to gnulib replacement functions.
19229         * lib/areadlink.c: Use the system's malloc, realloc functions.
19230         (areadlink): Set errno to ENOMEM explicitly.
19231         * modules/areadlink (Depends-on): Remove malloc-posix.
19232         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19233
19234 2010-06-09  Bruno Haible  <bruno@clisp.org>
19235
19236         Avoid relocwrapper link errors due to gnulib replacement functions.
19237         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19238         * lib/malloca.c: Likewise.
19239         * lib/relocatable.c: Likewise.
19240         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19241         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19242         * lib/setenv.c: Use the system's malloc, realloc functions.
19243         * lib/strerror.c: Use the system's sprintf function.
19244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19245
19246 2010-06-04  Bruno Haible  <bruno@clisp.org>
19247
19248         Prefer documented low-level autoconf macro names.
19249         * m4/lib-link.m4: Use m4_translit instead of translit.
19250         * m4/environ.m4: Likewise.
19251         * m4/mathfunc.m4: Likewise.
19252         * m4/onceonly.m4: Likewise.
19253         * m4/stdint.m4: Likewise.
19254         Suggested by Eric Blake.
19255
19256 2010-06-04  Martin Lambers  <marlam@marlam.de>
19257             Bruno Haible  <bruno@clisp.org>
19258
19259         havelib: Allow library names with '+' characters.
19260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19261         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19262
19263 2010-06-09  Bruno Haible  <bruno@clisp.org>
19264
19265         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19266         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19267         realloc failed.
19268
19269 2010-06-08  Peter Simons  <simons@cryp.to>
19270
19271         maint.mk: make the news-check rule more configurable
19272         * top/maint.mk (news-check-lines-spec): New variable.
19273         (news-check): Use "sed -n 1,10p" in place of "head".
19274
19275 2010-06-07  Jim Meyering  <meyering@redhat.com>
19276
19277         do-release-commit-and-tag: fix typo in --help
19278         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19279
19280         regex: avoid new dead-code warning with gcc-4.6.0
19281         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19282         if-block containing a while-loop.  It's been unused for at least
19283         5 years.
19284
19285 2010-06-05  Bruno Haible  <bruno@clisp.org>
19286
19287         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19288         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19289
19290 2010-06-04  Bruno Haible  <bruno@clisp.org>
19291
19292         Update to GNU gettext 0.18.1.
19293         * modules/gettext (configure.ac): Require gettext infrastructure from
19294         version 0.18.1.
19295
19296 2010-06-03  Bruno Haible  <bruno@clisp.org>
19297
19298         Don't use AC_LIBOBJ with file names in subdirectories.
19299         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19300         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19301         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19302         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19303         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19304         gl_LIBUNISTRING_LIBSOURCE.
19305         (Makefile.am): Augment lib_SOURCES here, conditionally.
19306         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19307
19308 2010-06-03  Bruno Haible  <bruno@clisp.org>
19309
19310         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19311         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19312         expansion does not end with a newline.
19313         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19314         unnecessary newline.
19315
19316 2010-06-03  Bruno Haible  <bruno@clisp.org>
19317
19318         Reduce dependencies.
19319         * tests/test-quotearg.h: New file, extracted from
19320         tests/test-quotearg.c.
19321         * tests/test-quotearg-simple.c: New file, extracted from
19322         tests/test-quotearg.c.
19323         * tests/test-quotearg.c: Don't include <ctype.h>.
19324         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19325         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19326         use_quote_double_quotes, use_quotearg_colon): Moved to
19327         tests/test-quotearg.h.
19328         (results_g, flag_results, custom_quotes, custom_results): Moved
19329         to tests/test-quotearg-simple.c.
19330         (main): Moved the part that does not depend on gettext to
19331         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19332         performed.
19333         * modules/quotearg-simple: New file.
19334         * modules/quotearg-simple-tests: New file.
19335         * modules/quotearg (Depends-on): Add quotearg-simple.
19336         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19337         (Files): Add tests/test-quotearg.h.
19338         Reported by Paolo Bonzini.
19339
19340 2010-06-03  Bruno Haible  <bruno@clisp.org>
19341
19342         Reduce dependencies.
19343         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19344
19345 2010-06-03  Bruno Haible  <bruno@clisp.org>
19346
19347         time: Undefine more broken macros.
19348         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19349         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19350         Reported by Eric Blake.
19351
19352 2010-06-03  Bruno Haible  <bruno@clisp.org>
19353
19354         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19355         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19356         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19357         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19358         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19359         Reported by Ludovic Courtès <ludo@gnu.org>.
19360
19361 2010-06-02  Eric Blake  <eblake@redhat.com>
19362
19363         time: work with mingw + pthreads-win32 library
19364         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19365         if timespec is defined only in pthread.h.
19366         * modules/time (Makefile.am): Substitute it.
19367         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19368         <pthread.h>, when needed.
19369         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19370         from the library.
19371
19372 2010-05-31  Bruno Haible  <bruno@clisp.org>
19373
19374         Avoid expanding two macros in the wrong order.
19375         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19376         gl_LIBUNISTRING if it is defined.
19377         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19378         autoconf >= 2.64.
19379         Reported by Ludovic Courtès <ludo@gnu.org>.
19380
19381 2010-05-27  Jim Meyering  <meyering@redhat.com>
19382
19383         maint.mk: also prohibit "#undef" of always-defined symbols
19384         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19385         Allow more than one space before the symbol name.
19386         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19387         the regexp uses alternation.
19388
19389 2010-05-26  Eric Blake  <eblake@redhat.com>
19390
19391         maint.mk: avoid echo -e
19392         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19393         Convert all uses of echo -* to printf.
19394         Reported by Matthias Bolte.
19395
19396 2010-05-25  Bruno Haible  <bruno@clisp.org>
19397
19398         Update to GNU gettext 0.18, part 2.
19399         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19400         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19401
19402 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19403
19404         Add missing include in test-pwrite.c.
19405         * tests/test-pwrite.c: Include string.h, for strcmp.
19406
19407 2010-05-24  Bruno Haible  <bruno@clisp.org>
19408
19409         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19410
19411 2010-05-24  Bruno Haible  <bruno@clisp.org>
19412
19413         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19414         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19415         iconveh_error argument.
19416         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19417         U_STRCONV_TO_LOCALE.
19418         * lib/unistr/u16-strcoll.c: Likewise.
19419         * lib/unistr/u32-strcoll.c: Likewise.
19420         * modules/unistr/u8-strcoll (Depends-on): Add
19421         uniconv/u8-strconv-to-enc, localcharset. Remove
19422         uniconv/u8-strconv-to-locale.
19423         (configure.ac): Bump version number.
19424         * modules/unistr/u16-strcoll (Depends-on): Add
19425         uniconv/u16-strconv-to-enc, localcharset. Remove
19426         uniconv/u16-strconv-to-locale.
19427         (configure.ac): Bump version number.
19428         * modules/unistr/u32-strcoll (Depends-on): Add
19429         uniconv/u32-strconv-to-enc, localcharset. Remove
19430         uniconv/u32-strconv-to-locale.
19431         (configure.ac): Bump version number.
19432
19433 2010-05-24  Bruno Haible  <bruno@clisp.org>
19434
19435         Avoid a test failure on NetBSD 5.0.
19436         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19437         an iconv() bug.
19438
19439 2010-05-24  Bruno Haible  <bruno@clisp.org>
19440
19441         Adjust #include directive style.
19442         * modules/regex (Includes): Recommend to write <regex.h>.
19443
19444 2010-05-24  Bruno Haible  <bruno@clisp.org>
19445
19446         regex: Don't require alloca.
19447         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19448         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19449         only inside if (0).
19450
19451 2010-05-23  Jim Meyering  <meyering@redhat.com>
19452
19453         test-renameat.c: include <sys/stat.h>
19454         * tests/test-renameat.c: Include <sys/stat.h>; required for
19455         definition of S_IS* macros.
19456
19457 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19458
19459         Update maintainer documentation for 'relocatable-prog' module.
19460         * doc/relocatable-maint.texi: Update.
19461         Comments by Bruno Haible.
19462
19463 2010-05-23  Bruno Haible  <bruno@clisp.org>
19464
19465         git-merge-changelog: Enable --split-merged-entry by default.
19466         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19467         (usage): Don't mention this option any more.
19468         Reported by Ralf Wildenhues.
19469
19470 2010-05-23  Jim Meyering  <meyering@redhat.com>
19471
19472         test-pwrite: do not leave behind a test file named "out"
19473         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19474         The trivial-looking use of init.sh is really necessary.
19475         It ensures that the temporary file, "out", is created in
19476         a temporary directory, and removed upon termination.
19477         * tests/test-pwrite.sh: Re-add file.
19478         * modules/pwrite-tests: Reference it.
19479
19480 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19481
19482         Fix output redirection buglet in init.sh.
19483         * tests/init.sh: Fix redirection of stderr.
19484
19485 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19486
19487         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19488
19489 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19490
19491         * modules/valgrind-tests: New file.
19492         * m4/valgrind-tests.m4: New file.
19493         * doc/valgrind-tests.texi: New file.
19494         * doc/gnulib.texi (Running self-tests under valgrind): New
19495         section.
19496
19497 2010-05-19  Bruno Haible  <bruno@clisp.org>
19498
19499         Clean up dead code in recent commit.
19500         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19501         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19502         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19503         Suggested by Paolo Bonzini.
19504
19505 2010-05-19  Bruno Haible  <bruno@clisp.org>
19506
19507         Avoid valgrind error reports from libunistring.
19508         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19509         * modules/libunistring (Files): Add it.
19510         * modules/libunistring-optional (Files): Likewise.
19511
19512 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19513             Bruno Haible  <bruno@clisp.org>
19514
19515         New module 'libunistring-optional'.
19516         * modules/libunistring-optional: New file.
19517         * m4/libunistring-base.m4: New file.
19518         * m4/libunistring-optional.m4: New file.
19519         * lib/unicase.in.h: Renamed from lib/unicase.h.
19520         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19521         * lib/unictype.in.h: Renamed from lib/unictype.h.
19522         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19523         * lib/uniname.in.h: Renamed from lib/uniname.h.
19524         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19525         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19526         * lib/unistr.in.h: Renamed from lib/unistr.h.
19527         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19528         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19529         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19530         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19531         gl_LIBUNISTRING. If the library was found, determine the installed
19532         version and set LIBUNISTRING_VERSION.
19533         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19534         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19535         handle a configuration option --with-included-libunistring.
19536         * modules/libunistring (Files): Add m4/absolute-header.m4.
19537         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19538         Add m4/libunistring-base.m4.
19539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19540         (Makefile.am): Build unicase.h from unicase.in.h.
19541         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19542         Add m4/libunistring-base.m4.
19543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19544         (Makefile.am): Build uniconv.h from uniconv.in.h.
19545         * modules/unictype/base (Files): Use unictype.in.h instead of
19546         unictype.h. Add m4/libunistring-base.m4.
19547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19548         (Makefile.am): Build unictype.h from unictype.in.h.
19549         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19550         Add m4/libunistring-base.m4.
19551         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19552         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19553         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19554         Add m4/libunistring-base.m4.
19555         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19556         (Makefile.am): Build uniname.h from uniname.in.h.
19557         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19558         Add m4/libunistring-base.m4.
19559         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19560         (Makefile.am): Build uninorm.h from uninorm.in.h.
19561         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19562         unistdio.h. Add m4/libunistring-base.m4.
19563         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19564         (Makefile.am): Build unistdio.h from unistdio.in.h.
19565         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19566         Add m4/libunistring-base.m4.
19567         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19568         (Makefile.am): Build unistr.h from unistr.in.h.
19569         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19570         Add m4/libunistring-base.m4.
19571         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19572         (Makefile.am): Build unitypes.h from unitypes.in.h.
19573         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19574         Add m4/libunistring-base.m4.
19575         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19576         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19577         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19578         uniwidth.h. Add m4/libunistring-base.m4.
19579         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19580         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19581         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19582         instead of augmenting lib_SOURCES.
19583         * modules/unicase/empty-suffix-context: Likewise.
19584         * modules/unicase/locale-language: Likewise.
19585         * modules/unicase/tolower: Likewise.
19586         * modules/unicase/totitle: Likewise.
19587         * modules/unicase/toupper: Likewise.
19588         * modules/unicase/u8-casecmp: Likewise.
19589         * modules/unicase/u8-casecoll: Likewise.
19590         * modules/unicase/u8-casefold: Likewise.
19591         * modules/unicase/u8-casexfrm: Likewise.
19592         * modules/unicase/u8-ct-casefold: Likewise.
19593         * modules/unicase/u8-ct-tolower: Likewise.
19594         * modules/unicase/u8-ct-totitle: Likewise.
19595         * modules/unicase/u8-ct-toupper: Likewise.
19596         * modules/unicase/u8-is-cased: Likewise.
19597         * modules/unicase/u8-is-casefolded: Likewise.
19598         * modules/unicase/u8-is-lowercase: Likewise.
19599         * modules/unicase/u8-is-titlecase: Likewise.
19600         * modules/unicase/u8-is-uppercase: Likewise.
19601         * modules/unicase/u8-prefix-context: Likewise.
19602         * modules/unicase/u8-suffix-context: Likewise.
19603         * modules/unicase/u8-tolower: Likewise.
19604         * modules/unicase/u8-totitle: Likewise.
19605         * modules/unicase/u8-toupper: Likewise.
19606         * modules/unicase/u16-casecmp: Likewise.
19607         * modules/unicase/u16-casecoll: Likewise.
19608         * modules/unicase/u16-casefold: Likewise.
19609         * modules/unicase/u16-casexfrm: Likewise.
19610         * modules/unicase/u16-ct-casefold: Likewise.
19611         * modules/unicase/u16-ct-tolower: Likewise.
19612         * modules/unicase/u16-ct-totitle: Likewise.
19613         * modules/unicase/u16-ct-toupper: Likewise.
19614         * modules/unicase/u16-is-cased: Likewise.
19615         * modules/unicase/u16-is-casefolded: Likewise.
19616         * modules/unicase/u16-is-lowercase: Likewise.
19617         * modules/unicase/u16-is-titlecase: Likewise.
19618         * modules/unicase/u16-is-uppercase: Likewise.
19619         * modules/unicase/u16-prefix-context: Likewise.
19620         * modules/unicase/u16-suffix-context: Likewise.
19621         * modules/unicase/u16-tolower: Likewise.
19622         * modules/unicase/u16-totitle: Likewise.
19623         * modules/unicase/u16-toupper: Likewise.
19624         * modules/unicase/u32-casecmp: Likewise.
19625         * modules/unicase/u32-casecoll: Likewise.
19626         * modules/unicase/u32-casefold: Likewise.
19627         * modules/unicase/u32-casexfrm: Likewise.
19628         * modules/unicase/u32-ct-casefold: Likewise.
19629         * modules/unicase/u32-ct-tolower: Likewise.
19630         * modules/unicase/u32-ct-totitle: Likewise.
19631         * modules/unicase/u32-ct-toupper: Likewise.
19632         * modules/unicase/u32-is-cased: Likewise.
19633         * modules/unicase/u32-is-casefolded: Likewise.
19634         * modules/unicase/u32-is-lowercase: Likewise.
19635         * modules/unicase/u32-is-titlecase: Likewise.
19636         * modules/unicase/u32-is-uppercase: Likewise.
19637         * modules/unicase/u32-prefix-context: Likewise.
19638         * modules/unicase/u32-suffix-context: Likewise.
19639         * modules/unicase/u32-tolower: Likewise.
19640         * modules/unicase/u32-totitle: Likewise.
19641         * modules/unicase/u32-toupper: Likewise.
19642         * modules/unicase/ulc-casecmp: Likewise.
19643         * modules/unicase/ulc-casecoll: Likewise.
19644         * modules/unicase/ulc-casexfrm: Likewise.
19645         * modules/uniconv/u8-conv-from-enc: Likewise.
19646         * modules/uniconv/u8-conv-to-enc: Likewise.
19647         * modules/uniconv/u8-strconv-from-enc: Likewise.
19648         * modules/uniconv/u8-strconv-from-locale: Likewise.
19649         * modules/uniconv/u8-strconv-to-enc: Likewise.
19650         * modules/uniconv/u8-strconv-to-locale: Likewise.
19651         * modules/uniconv/u16-conv-from-enc: Likewise.
19652         * modules/uniconv/u16-conv-to-enc: Likewise.
19653         * modules/uniconv/u16-strconv-from-enc: Likewise.
19654         * modules/uniconv/u16-strconv-from-locale: Likewise.
19655         * modules/uniconv/u16-strconv-to-enc: Likewise.
19656         * modules/uniconv/u16-strconv-to-locale: Likewise.
19657         * modules/uniconv/u32-conv-from-enc: Likewise.
19658         * modules/uniconv/u32-conv-to-enc: Likewise.
19659         * modules/uniconv/u32-strconv-from-enc: Likewise.
19660         * modules/uniconv/u32-strconv-from-locale: Likewise.
19661         * modules/uniconv/u32-strconv-to-enc: Likewise.
19662         * modules/uniconv/u32-strconv-to-locale: Likewise.
19663         * modules/unictype/bidicategory-byname: Likewise.
19664         * modules/unictype/bidicategory-name: Likewise.
19665         * modules/unictype/bidicategory-of: Likewise.
19666         * modules/unictype/bidicategory-test: Likewise.
19667         * modules/unictype/block-list: Likewise.
19668         * modules/unictype/block-test: Likewise.
19669         * modules/unictype/category-C: Likewise.
19670         * modules/unictype/category-Cc: Likewise.
19671         * modules/unictype/category-Cf: Likewise.
19672         * modules/unictype/category-Cn: Likewise.
19673         * modules/unictype/category-Co: Likewise.
19674         * modules/unictype/category-Cs: Likewise.
19675         * modules/unictype/category-L: Likewise.
19676         * modules/unictype/category-Ll: Likewise.
19677         * modules/unictype/category-Lm: Likewise.
19678         * modules/unictype/category-Lo: Likewise.
19679         * modules/unictype/category-Lt: Likewise.
19680         * modules/unictype/category-Lu: Likewise.
19681         * modules/unictype/category-M: Likewise.
19682         * modules/unictype/category-Mc: Likewise.
19683         * modules/unictype/category-Me: Likewise.
19684         * modules/unictype/category-Mn: Likewise.
19685         * modules/unictype/category-N: Likewise.
19686         * modules/unictype/category-Nd: Likewise.
19687         * modules/unictype/category-Nl: Likewise.
19688         * modules/unictype/category-No: Likewise.
19689         * modules/unictype/category-P: Likewise.
19690         * modules/unictype/category-Pc: Likewise.
19691         * modules/unictype/category-Pd: Likewise.
19692         * modules/unictype/category-Pe: Likewise.
19693         * modules/unictype/category-Pf: Likewise.
19694         * modules/unictype/category-Pi: Likewise.
19695         * modules/unictype/category-Po: Likewise.
19696         * modules/unictype/category-Ps: Likewise.
19697         * modules/unictype/category-S: Likewise.
19698         * modules/unictype/category-Sc: Likewise.
19699         * modules/unictype/category-Sk: Likewise.
19700         * modules/unictype/category-Sm: Likewise.
19701         * modules/unictype/category-So: Likewise.
19702         * modules/unictype/category-Z: Likewise.
19703         * modules/unictype/category-Zl: Likewise.
19704         * modules/unictype/category-Zp: Likewise.
19705         * modules/unictype/category-Zs: Likewise.
19706         * modules/unictype/category-and: Likewise.
19707         * modules/unictype/category-and-not: Likewise.
19708         * modules/unictype/category-byname: Likewise.
19709         * modules/unictype/category-name: Likewise.
19710         * modules/unictype/category-none: Likewise.
19711         * modules/unictype/category-of: Likewise.
19712         * modules/unictype/category-or: Likewise.
19713         * modules/unictype/category-test: Likewise.
19714         * modules/unictype/combining-class: Likewise.
19715         * modules/unictype/ctype-alnum: Likewise.
19716         * modules/unictype/ctype-alpha: Likewise.
19717         * modules/unictype/ctype-blank: Likewise.
19718         * modules/unictype/ctype-cntrl: Likewise.
19719         * modules/unictype/ctype-digit: Likewise.
19720         * modules/unictype/ctype-graph: Likewise.
19721         * modules/unictype/ctype-lower: Likewise.
19722         * modules/unictype/ctype-print: Likewise.
19723         * modules/unictype/ctype-punct: Likewise.
19724         * modules/unictype/ctype-space: Likewise.
19725         * modules/unictype/ctype-upper: Likewise.
19726         * modules/unictype/ctype-xdigit: Likewise.
19727         * modules/unictype/decimal-digit: Likewise.
19728         * modules/unictype/digit: Likewise.
19729         * modules/unictype/mirror: Likewise.
19730         * modules/unictype/numeric: Likewise.
19731         * modules/unictype/property-alphabetic: Likewise.
19732         * modules/unictype/property-ascii-hex-digit: Likewise.
19733         * modules/unictype/property-bidi-arabic-digit: Likewise.
19734         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19735         * modules/unictype/property-bidi-block-separator: Likewise.
19736         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19737         * modules/unictype/property-bidi-common-separator: Likewise.
19738         * modules/unictype/property-bidi-control: Likewise.
19739         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19740         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19741         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19742         * modules/unictype/property-bidi-european-digit: Likewise.
19743         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19744         * modules/unictype/property-bidi-left-to-right: Likewise.
19745         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19746         * modules/unictype/property-bidi-other-neutral: Likewise.
19747         * modules/unictype/property-bidi-pdf: Likewise.
19748         * modules/unictype/property-bidi-segment-separator: Likewise.
19749         * modules/unictype/property-bidi-whitespace: Likewise.
19750         * modules/unictype/property-byname: Likewise.
19751         * modules/unictype/property-combining: Likewise.
19752         * modules/unictype/property-composite: Likewise.
19753         * modules/unictype/property-currency-symbol: Likewise.
19754         * modules/unictype/property-dash: Likewise.
19755         * modules/unictype/property-decimal-digit: Likewise.
19756         * modules/unictype/property-default-ignorable-code-point: Likewise.
19757         * modules/unictype/property-deprecated: Likewise.
19758         * modules/unictype/property-diacritic: Likewise.
19759         * modules/unictype/property-extender: Likewise.
19760         * modules/unictype/property-format-control: Likewise.
19761         * modules/unictype/property-grapheme-base: Likewise.
19762         * modules/unictype/property-grapheme-extend: Likewise.
19763         * modules/unictype/property-grapheme-link: Likewise.
19764         * modules/unictype/property-hex-digit: Likewise.
19765         * modules/unictype/property-hyphen: Likewise.
19766         * modules/unictype/property-id-continue: Likewise.
19767         * modules/unictype/property-id-start: Likewise.
19768         * modules/unictype/property-ideographic: Likewise.
19769         * modules/unictype/property-ids-binary-operator: Likewise.
19770         * modules/unictype/property-ids-trinary-operator: Likewise.
19771         * modules/unictype/property-ignorable-control: Likewise.
19772         * modules/unictype/property-iso-control: Likewise.
19773         * modules/unictype/property-join-control: Likewise.
19774         * modules/unictype/property-left-of-pair: Likewise.
19775         * modules/unictype/property-line-separator: Likewise.
19776         * modules/unictype/property-logical-order-exception: Likewise.
19777         * modules/unictype/property-lowercase: Likewise.
19778         * modules/unictype/property-math: Likewise.
19779         * modules/unictype/property-non-break: Likewise.
19780         * modules/unictype/property-not-a-character: Likewise.
19781         * modules/unictype/property-numeric: Likewise.
19782         * modules/unictype/property-other-alphabetic: Likewise.
19783         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19784         * modules/unictype/property-other-grapheme-extend: Likewise.
19785         * modules/unictype/property-other-id-continue: Likewise.
19786         * modules/unictype/property-other-id-start: Likewise.
19787         * modules/unictype/property-other-lowercase: Likewise.
19788         * modules/unictype/property-other-math: Likewise.
19789         * modules/unictype/property-other-uppercase: Likewise.
19790         * modules/unictype/property-paired-punctuation: Likewise.
19791         * modules/unictype/property-paragraph-separator: Likewise.
19792         * modules/unictype/property-pattern-syntax: Likewise.
19793         * modules/unictype/property-pattern-white-space: Likewise.
19794         * modules/unictype/property-private-use: Likewise.
19795         * modules/unictype/property-punctuation: Likewise.
19796         * modules/unictype/property-quotation-mark: Likewise.
19797         * modules/unictype/property-radical: Likewise.
19798         * modules/unictype/property-sentence-terminal: Likewise.
19799         * modules/unictype/property-soft-dotted: Likewise.
19800         * modules/unictype/property-space: Likewise.
19801         * modules/unictype/property-terminal-punctuation: Likewise.
19802         * modules/unictype/property-test: Likewise.
19803         * modules/unictype/property-titlecase: Likewise.
19804         * modules/unictype/property-unassigned-code-value: Likewise.
19805         * modules/unictype/property-unified-ideograph: Likewise.
19806         * modules/unictype/property-uppercase: Likewise.
19807         * modules/unictype/property-variation-selector: Likewise.
19808         * modules/unictype/property-white-space: Likewise.
19809         * modules/unictype/property-xid-continue: Likewise.
19810         * modules/unictype/property-xid-start: Likewise.
19811         * modules/unictype/property-zero-width: Likewise.
19812         * modules/unictype/scripts: Likewise.
19813         * modules/unictype/syntax-c-ident: Likewise.
19814         * modules/unictype/syntax-c-whitespace: Likewise.
19815         * modules/unictype/syntax-java-ident: Likewise.
19816         * modules/unictype/syntax-java-whitespace: Likewise.
19817         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19818         * modules/unilbrk/u8-width-linebreaks: Likewise.
19819         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19820         * modules/unilbrk/u16-width-linebreaks: Likewise.
19821         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19822         * modules/unilbrk/u32-width-linebreaks: Likewise.
19823         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19824         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19825         * modules/uniname/uniname: Likewise.
19826         * modules/uninorm/canonical-decomposition: Likewise.
19827         * modules/uninorm/composition: Likewise.
19828         * modules/uninorm/decomposing-form: Likewise.
19829         * modules/uninorm/decomposition: Likewise.
19830         * modules/uninorm/filter: Likewise.
19831         * modules/uninorm/nfc: Likewise.
19832         * modules/uninorm/nfd: Likewise.
19833         * modules/uninorm/nfkc: Likewise.
19834         * modules/uninorm/nfkd: Likewise.
19835         * modules/uninorm/u8-normalize: Likewise.
19836         * modules/uninorm/u8-normcmp: Likewise.
19837         * modules/uninorm/u8-normcoll: Likewise.
19838         * modules/uninorm/u8-normxfrm: Likewise.
19839         * modules/uninorm/u16-normalize: Likewise.
19840         * modules/uninorm/u16-normcmp: Likewise.
19841         * modules/uninorm/u16-normcoll: Likewise.
19842         * modules/uninorm/u16-normxfrm: Likewise.
19843         * modules/uninorm/u32-normalize: Likewise.
19844         * modules/uninorm/u32-normcmp: Likewise.
19845         * modules/uninorm/u32-normcoll: Likewise.
19846         * modules/uninorm/u32-normxfrm: Likewise.
19847         * modules/unistdio/u8-asnprintf: Likewise.
19848         * modules/unistdio/u8-asprintf: Likewise.
19849         * modules/unistdio/u8-snprintf: Likewise.
19850         * modules/unistdio/u8-sprintf: Likewise.
19851         * modules/unistdio/u8-u8-asnprintf: Likewise.
19852         * modules/unistdio/u8-u8-asprintf: Likewise.
19853         * modules/unistdio/u8-u8-snprintf: Likewise.
19854         * modules/unistdio/u8-u8-sprintf: Likewise.
19855         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19856         * modules/unistdio/u8-u8-vasprintf: Likewise.
19857         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19858         * modules/unistdio/u8-u8-vsprintf: Likewise.
19859         * modules/unistdio/u8-vasnprintf: Likewise.
19860         * modules/unistdio/u8-vasprintf: Likewise.
19861         * modules/unistdio/u8-vsnprintf: Likewise.
19862         * modules/unistdio/u8-vsprintf: Likewise.
19863         * modules/unistdio/u16-asnprintf: Likewise.
19864         * modules/unistdio/u16-asprintf: Likewise.
19865         * modules/unistdio/u16-snprintf: Likewise.
19866         * modules/unistdio/u16-sprintf: Likewise.
19867         * modules/unistdio/u16-u16-asnprintf: Likewise.
19868         * modules/unistdio/u16-u16-asprintf: Likewise.
19869         * modules/unistdio/u16-u16-snprintf: Likewise.
19870         * modules/unistdio/u16-u16-sprintf: Likewise.
19871         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19872         * modules/unistdio/u16-u16-vasprintf: Likewise.
19873         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19874         * modules/unistdio/u16-u16-vsprintf: Likewise.
19875         * modules/unistdio/u16-vasnprintf: Likewise.
19876         * modules/unistdio/u16-vasprintf: Likewise.
19877         * modules/unistdio/u16-vsnprintf: Likewise.
19878         * modules/unistdio/u16-vsprintf: Likewise.
19879         * modules/unistdio/u32-asnprintf: Likewise.
19880         * modules/unistdio/u32-asprintf: Likewise.
19881         * modules/unistdio/u32-snprintf: Likewise.
19882         * modules/unistdio/u32-sprintf: Likewise.
19883         * modules/unistdio/u32-u32-asnprintf: Likewise.
19884         * modules/unistdio/u32-u32-asprintf: Likewise.
19885         * modules/unistdio/u32-u32-snprintf: Likewise.
19886         * modules/unistdio/u32-u32-sprintf: Likewise.
19887         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19888         * modules/unistdio/u32-u32-vasprintf: Likewise.
19889         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19890         * modules/unistdio/u32-u32-vsprintf: Likewise.
19891         * modules/unistdio/u32-vasnprintf: Likewise.
19892         * modules/unistdio/u32-vasprintf: Likewise.
19893         * modules/unistdio/u32-vsnprintf: Likewise.
19894         * modules/unistdio/u32-vsprintf: Likewise.
19895         * modules/unistdio/ulc-asnprintf: Likewise.
19896         * modules/unistdio/ulc-asprintf: Likewise.
19897         * modules/unistdio/ulc-fprintf: Likewise.
19898         * modules/unistdio/ulc-snprintf: Likewise.
19899         * modules/unistdio/ulc-sprintf: Likewise.
19900         * modules/unistdio/ulc-vasnprintf: Likewise.
19901         * modules/unistdio/ulc-vasprintf: Likewise.
19902         * modules/unistdio/ulc-vfprintf: Likewise.
19903         * modules/unistdio/ulc-vsnprintf: Likewise.
19904         * modules/unistdio/ulc-vsprintf: Likewise.
19905         * modules/unistr/u8-check: Likewise.
19906         * modules/unistr/u8-chr: Likewise.
19907         * modules/unistr/u8-cmp: Likewise.
19908         * modules/unistr/u8-cmp2: Likewise.
19909         * modules/unistr/u8-cpy: Likewise.
19910         * modules/unistr/u8-cpy-alloc: Likewise.
19911         * modules/unistr/u8-endswith: Likewise.
19912         * modules/unistr/u8-mblen: Likewise.
19913         * modules/unistr/u8-mbsnlen: Likewise.
19914         * modules/unistr/u8-mbtouc: Likewise.
19915         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19916         * modules/unistr/u8-mbtoucr: Likewise.
19917         * modules/unistr/u8-move: Likewise.
19918         * modules/unistr/u8-next: Likewise.
19919         * modules/unistr/u8-prev: Likewise.
19920         * modules/unistr/u8-set: Likewise.
19921         * modules/unistr/u8-startswith: Likewise.
19922         * modules/unistr/u8-stpcpy: Likewise.
19923         * modules/unistr/u8-stpncpy: Likewise.
19924         * modules/unistr/u8-strcat: Likewise.
19925         * modules/unistr/u8-strchr: Likewise.
19926         * modules/unistr/u8-strcmp: Likewise.
19927         * modules/unistr/u8-strcoll: Likewise.
19928         * modules/unistr/u8-strcpy: Likewise.
19929         * modules/unistr/u8-strcspn: Likewise.
19930         * modules/unistr/u8-strdup: Likewise.
19931         * modules/unistr/u8-strlen: Likewise.
19932         * modules/unistr/u8-strmblen: Likewise.
19933         * modules/unistr/u8-strmbtouc: Likewise.
19934         * modules/unistr/u8-strncat: Likewise.
19935         * modules/unistr/u8-strncmp: Likewise.
19936         * modules/unistr/u8-strncpy: Likewise.
19937         * modules/unistr/u8-strnlen: Likewise.
19938         * modules/unistr/u8-strpbrk: Likewise.
19939         * modules/unistr/u8-strrchr: Likewise.
19940         * modules/unistr/u8-strspn: Likewise.
19941         * modules/unistr/u8-strstr: Likewise.
19942         * modules/unistr/u8-strtok: Likewise.
19943         * modules/unistr/u8-to-u16: Likewise.
19944         * modules/unistr/u8-to-u32: Likewise.
19945         * modules/unistr/u8-uctomb: Likewise.
19946         * modules/unistr/u16-check: Likewise.
19947         * modules/unistr/u16-chr: Likewise.
19948         * modules/unistr/u16-cmp: Likewise.
19949         * modules/unistr/u16-cmp2: Likewise.
19950         * modules/unistr/u16-cpy: Likewise.
19951         * modules/unistr/u16-cpy-alloc: Likewise.
19952         * modules/unistr/u16-endswith: Likewise.
19953         * modules/unistr/u16-mblen: Likewise.
19954         * modules/unistr/u16-mbsnlen: Likewise.
19955         * modules/unistr/u16-mbtouc: Likewise.
19956         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19957         * modules/unistr/u16-mbtoucr: Likewise.
19958         * modules/unistr/u16-move: Likewise.
19959         * modules/unistr/u16-next: Likewise.
19960         * modules/unistr/u16-prev: Likewise.
19961         * modules/unistr/u16-set: Likewise.
19962         * modules/unistr/u16-startswith: Likewise.
19963         * modules/unistr/u16-stpcpy: Likewise.
19964         * modules/unistr/u16-stpncpy: Likewise.
19965         * modules/unistr/u16-strcat: Likewise.
19966         * modules/unistr/u16-strchr: Likewise.
19967         * modules/unistr/u16-strcmp: Likewise.
19968         * modules/unistr/u16-strcoll: Likewise.
19969         * modules/unistr/u16-strcpy: Likewise.
19970         * modules/unistr/u16-strcspn: Likewise.
19971         * modules/unistr/u16-strdup: Likewise.
19972         * modules/unistr/u16-strlen: Likewise.
19973         * modules/unistr/u16-strmblen: Likewise.
19974         * modules/unistr/u16-strmbtouc: Likewise.
19975         * modules/unistr/u16-strncat: Likewise.
19976         * modules/unistr/u16-strncmp: Likewise.
19977         * modules/unistr/u16-strncpy: Likewise.
19978         * modules/unistr/u16-strnlen: Likewise.
19979         * modules/unistr/u16-strpbrk: Likewise.
19980         * modules/unistr/u16-strrchr: Likewise.
19981         * modules/unistr/u16-strspn: Likewise.
19982         * modules/unistr/u16-strstr: Likewise.
19983         * modules/unistr/u16-strtok: Likewise.
19984         * modules/unistr/u16-to-u32: Likewise.
19985         * modules/unistr/u16-to-u8: Likewise.
19986         * modules/unistr/u16-uctomb: Likewise.
19987         * modules/unistr/u32-check: Likewise.
19988         * modules/unistr/u32-chr: Likewise.
19989         * modules/unistr/u32-cmp: Likewise.
19990         * modules/unistr/u32-cmp2: Likewise.
19991         * modules/unistr/u32-cpy: Likewise.
19992         * modules/unistr/u32-cpy-alloc: Likewise.
19993         * modules/unistr/u32-endswith: Likewise.
19994         * modules/unistr/u32-mblen: Likewise.
19995         * modules/unistr/u32-mbsnlen: Likewise.
19996         * modules/unistr/u32-mbtouc: Likewise.
19997         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19998         * modules/unistr/u32-mbtoucr: Likewise.
19999         * modules/unistr/u32-move: Likewise.
20000         * modules/unistr/u32-next: Likewise.
20001         * modules/unistr/u32-prev: Likewise.
20002         * modules/unistr/u32-set: Likewise.
20003         * modules/unistr/u32-startswith: Likewise.
20004         * modules/unistr/u32-stpcpy: Likewise.
20005         * modules/unistr/u32-stpncpy: Likewise.
20006         * modules/unistr/u32-strcat: Likewise.
20007         * modules/unistr/u32-strchr: Likewise.
20008         * modules/unistr/u32-strcmp: Likewise.
20009         * modules/unistr/u32-strcoll: Likewise.
20010         * modules/unistr/u32-strcpy: Likewise.
20011         * modules/unistr/u32-strcspn: Likewise.
20012         * modules/unistr/u32-strdup: Likewise.
20013         * modules/unistr/u32-strlen: Likewise.
20014         * modules/unistr/u32-strmblen: Likewise.
20015         * modules/unistr/u32-strmbtouc: Likewise.
20016         * modules/unistr/u32-strncat: Likewise.
20017         * modules/unistr/u32-strncmp: Likewise.
20018         * modules/unistr/u32-strncpy: Likewise.
20019         * modules/unistr/u32-strnlen: Likewise.
20020         * modules/unistr/u32-strpbrk: Likewise.
20021         * modules/unistr/u32-strrchr: Likewise.
20022         * modules/unistr/u32-strspn: Likewise.
20023         * modules/unistr/u32-strstr: Likewise.
20024         * modules/unistr/u32-strtok: Likewise.
20025         * modules/unistr/u32-to-u16: Likewise.
20026         * modules/unistr/u32-to-u8: Likewise.
20027         * modules/unistr/u32-uctomb: Likewise.
20028         * modules/uniwbrk/u8-wordbreaks: Likewise.
20029         * modules/uniwbrk/u16-wordbreaks: Likewise.
20030         * modules/uniwbrk/u32-wordbreaks: Likewise.
20031         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20032         * modules/uniwbrk/wordbreak-property: Likewise.
20033         * modules/uniwidth/u8-strwidth: Likewise.
20034         * modules/uniwidth/u8-width: Likewise.
20035         * modules/uniwidth/u16-strwidth: Likewise.
20036         * modules/uniwidth/u16-width: Likewise.
20037         * modules/uniwidth/u32-strwidth: Likewise.
20038         * modules/uniwidth/u32-width: Likewise.
20039         * modules/uniwidth/width: Likewise.
20040         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20041         with $(LIBUNISTRING).
20042         * modules/unicase/ignorable-tests: Likewise.
20043         * modules/unicase/locale-language-tests: Likewise.
20044         * modules/unicase/tolower-tests: Likewise.
20045         * modules/unicase/totitle-tests: Likewise.
20046         * modules/unicase/toupper-tests: Likewise.
20047         * modules/unicase/u8-casecmp-tests: Likewise.
20048         * modules/unicase/u8-casecoll-tests: Likewise.
20049         * modules/unicase/u8-casefold-tests: Likewise.
20050         * modules/unicase/u8-is-cased-tests: Likewise.
20051         * modules/unicase/u8-is-casefolded-tests: Likewise.
20052         * modules/unicase/u8-is-lowercase-tests: Likewise.
20053         * modules/unicase/u8-is-titlecase-tests: Likewise.
20054         * modules/unicase/u8-is-uppercase-tests: Likewise.
20055         * modules/unicase/u8-tolower-tests: Likewise.
20056         * modules/unicase/u8-totitle-tests: Likewise.
20057         * modules/unicase/u8-toupper-tests: Likewise.
20058         * modules/unicase/u16-casecmp-tests: Likewise.
20059         * modules/unicase/u16-casecoll-tests: Likewise.
20060         * modules/unicase/u16-casefold-tests: Likewise.
20061         * modules/unicase/u16-is-cased-tests: Likewise.
20062         * modules/unicase/u16-is-casefolded-tests: Likewise.
20063         * modules/unicase/u16-is-lowercase-tests: Likewise.
20064         * modules/unicase/u16-is-titlecase-tests: Likewise.
20065         * modules/unicase/u16-is-uppercase-tests: Likewise.
20066         * modules/unicase/u16-tolower-tests: Likewise.
20067         * modules/unicase/u16-totitle-tests: Likewise.
20068         * modules/unicase/u16-toupper-tests: Likewise.
20069         * modules/unicase/u32-casecmp-tests: Likewise.
20070         * modules/unicase/u32-casecoll-tests: Likewise.
20071         * modules/unicase/u32-casefold-tests: Likewise.
20072         * modules/unicase/u32-is-cased-tests: Likewise.
20073         * modules/unicase/u32-is-casefolded-tests: Likewise.
20074         * modules/unicase/u32-is-lowercase-tests: Likewise.
20075         * modules/unicase/u32-is-titlecase-tests: Likewise.
20076         * modules/unicase/u32-is-uppercase-tests: Likewise.
20077         * modules/unicase/u32-tolower-tests: Likewise.
20078         * modules/unicase/u32-totitle-tests: Likewise.
20079         * modules/unicase/u32-toupper-tests: Likewise.
20080         * modules/unicase/ulc-casecmp-tests: Likewise.
20081         * modules/unicase/ulc-casecoll-tests: Likewise.
20082         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20083         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20084         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20085         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20086         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20087         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20088         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20089         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20090         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20091         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20092         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20093         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20094         * modules/unictype/bidicategory-byname-tests: Likewise.
20095         * modules/unictype/bidicategory-name-tests: Likewise.
20096         * modules/unictype/bidicategory-of-tests: Likewise.
20097         * modules/unictype/bidicategory-test-tests: Likewise.
20098         * modules/unictype/block-list-tests: Likewise.
20099         * modules/unictype/block-of-tests: Likewise.
20100         * modules/unictype/block-test-tests: Likewise.
20101         * modules/unictype/category-C-tests: Likewise.
20102         * modules/unictype/category-Cc-tests: Likewise.
20103         * modules/unictype/category-Cf-tests: Likewise.
20104         * modules/unictype/category-Cn-tests: Likewise.
20105         * modules/unictype/category-Co-tests: Likewise.
20106         * modules/unictype/category-Cs-tests: Likewise.
20107         * modules/unictype/category-L-tests: Likewise.
20108         * modules/unictype/category-Ll-tests: Likewise.
20109         * modules/unictype/category-Lm-tests: Likewise.
20110         * modules/unictype/category-Lo-tests: Likewise.
20111         * modules/unictype/category-Lt-tests: Likewise.
20112         * modules/unictype/category-Lu-tests: Likewise.
20113         * modules/unictype/category-M-tests: Likewise.
20114         * modules/unictype/category-Mc-tests: Likewise.
20115         * modules/unictype/category-Me-tests: Likewise.
20116         * modules/unictype/category-Mn-tests: Likewise.
20117         * modules/unictype/category-N-tests: Likewise.
20118         * modules/unictype/category-Nd-tests: Likewise.
20119         * modules/unictype/category-Nl-tests: Likewise.
20120         * modules/unictype/category-No-tests: Likewise.
20121         * modules/unictype/category-P-tests: Likewise.
20122         * modules/unictype/category-Pc-tests: Likewise.
20123         * modules/unictype/category-Pd-tests: Likewise.
20124         * modules/unictype/category-Pe-tests: Likewise.
20125         * modules/unictype/category-Pf-tests: Likewise.
20126         * modules/unictype/category-Pi-tests: Likewise.
20127         * modules/unictype/category-Po-tests: Likewise.
20128         * modules/unictype/category-Ps-tests: Likewise.
20129         * modules/unictype/category-S-tests: Likewise.
20130         * modules/unictype/category-Sc-tests: Likewise.
20131         * modules/unictype/category-Sk-tests: Likewise.
20132         * modules/unictype/category-Sm-tests: Likewise.
20133         * modules/unictype/category-So-tests: Likewise.
20134         * modules/unictype/category-Z-tests: Likewise.
20135         * modules/unictype/category-Zl-tests: Likewise.
20136         * modules/unictype/category-Zp-tests: Likewise.
20137         * modules/unictype/category-Zs-tests: Likewise.
20138         * modules/unictype/category-and-not-tests: Likewise.
20139         * modules/unictype/category-and-tests: Likewise.
20140         * modules/unictype/category-byname-tests: Likewise.
20141         * modules/unictype/category-name-tests: Likewise.
20142         * modules/unictype/category-none-tests: Likewise.
20143         * modules/unictype/category-of-tests: Likewise.
20144         * modules/unictype/category-or-tests: Likewise.
20145         * modules/unictype/category-test-withtable-tests: Likewise.
20146         * modules/unictype/combining-class-tests: Likewise.
20147         * modules/unictype/ctype-alnum-tests: Likewise.
20148         * modules/unictype/ctype-alpha-tests: Likewise.
20149         * modules/unictype/ctype-blank-tests: Likewise.
20150         * modules/unictype/ctype-cntrl-tests: Likewise.
20151         * modules/unictype/ctype-digit-tests: Likewise.
20152         * modules/unictype/ctype-graph-tests: Likewise.
20153         * modules/unictype/ctype-lower-tests: Likewise.
20154         * modules/unictype/ctype-print-tests: Likewise.
20155         * modules/unictype/ctype-punct-tests: Likewise.
20156         * modules/unictype/ctype-space-tests: Likewise.
20157         * modules/unictype/ctype-upper-tests: Likewise.
20158         * modules/unictype/ctype-xdigit-tests: Likewise.
20159         * modules/unictype/decimal-digit-tests: Likewise.
20160         * modules/unictype/digit-tests: Likewise.
20161         * modules/unictype/mirror-tests: Likewise.
20162         * modules/unictype/numeric-tests: Likewise.
20163         * modules/unictype/property-alphabetic-tests: Likewise.
20164         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20165         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20166         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20167         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20168         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20169         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20170         * modules/unictype/property-bidi-control-tests: Likewise.
20171         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20172         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20173         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20174         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20175         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20176         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20177         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20178         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20179         * modules/unictype/property-bidi-pdf-tests: Likewise.
20180         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20181         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20182         * modules/unictype/property-byname-tests: Likewise.
20183         * modules/unictype/property-combining-tests: Likewise.
20184         * modules/unictype/property-composite-tests: Likewise.
20185         * modules/unictype/property-currency-symbol-tests: Likewise.
20186         * modules/unictype/property-dash-tests: Likewise.
20187         * modules/unictype/property-decimal-digit-tests: Likewise.
20188         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20189         * modules/unictype/property-deprecated-tests: Likewise.
20190         * modules/unictype/property-diacritic-tests: Likewise.
20191         * modules/unictype/property-extender-tests: Likewise.
20192         * modules/unictype/property-format-control-tests: Likewise.
20193         * modules/unictype/property-grapheme-base-tests: Likewise.
20194         * modules/unictype/property-grapheme-extend-tests: Likewise.
20195         * modules/unictype/property-grapheme-link-tests: Likewise.
20196         * modules/unictype/property-hex-digit-tests: Likewise.
20197         * modules/unictype/property-hyphen-tests: Likewise.
20198         * modules/unictype/property-id-continue-tests: Likewise.
20199         * modules/unictype/property-id-start-tests: Likewise.
20200         * modules/unictype/property-ideographic-tests: Likewise.
20201         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20202         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20203         * modules/unictype/property-ignorable-control-tests: Likewise.
20204         * modules/unictype/property-iso-control-tests: Likewise.
20205         * modules/unictype/property-join-control-tests: Likewise.
20206         * modules/unictype/property-left-of-pair-tests: Likewise.
20207         * modules/unictype/property-line-separator-tests: Likewise.
20208         * modules/unictype/property-logical-order-exception-tests: Likewise.
20209         * modules/unictype/property-lowercase-tests: Likewise.
20210         * modules/unictype/property-math-tests: Likewise.
20211         * modules/unictype/property-non-break-tests: Likewise.
20212         * modules/unictype/property-not-a-character-tests: Likewise.
20213         * modules/unictype/property-numeric-tests: Likewise.
20214         * modules/unictype/property-other-alphabetic-tests: Likewise.
20215         * modules/unictype/property-other-default-ignorable-code-point-tests:
20216         Likewise.
20217         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20218         * modules/unictype/property-other-id-continue-tests: Likewise.
20219         * modules/unictype/property-other-id-start-tests: Likewise.
20220         * modules/unictype/property-other-lowercase-tests: Likewise.
20221         * modules/unictype/property-other-math-tests: Likewise.
20222         * modules/unictype/property-other-uppercase-tests: Likewise.
20223         * modules/unictype/property-paired-punctuation-tests: Likewise.
20224         * modules/unictype/property-paragraph-separator-tests: Likewise.
20225         * modules/unictype/property-pattern-syntax-tests: Likewise.
20226         * modules/unictype/property-pattern-white-space-tests: Likewise.
20227         * modules/unictype/property-private-use-tests: Likewise.
20228         * modules/unictype/property-punctuation-tests: Likewise.
20229         * modules/unictype/property-quotation-mark-tests: Likewise.
20230         * modules/unictype/property-radical-tests: Likewise.
20231         * modules/unictype/property-sentence-terminal-tests: Likewise.
20232         * modules/unictype/property-soft-dotted-tests: Likewise.
20233         * modules/unictype/property-space-tests: Likewise.
20234         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20235         * modules/unictype/property-test-tests: Likewise.
20236         * modules/unictype/property-titlecase-tests: Likewise.
20237         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20238         * modules/unictype/property-unified-ideograph-tests: Likewise.
20239         * modules/unictype/property-uppercase-tests: Likewise.
20240         * modules/unictype/property-variation-selector-tests: Likewise.
20241         * modules/unictype/property-white-space-tests: Likewise.
20242         * modules/unictype/property-xid-continue-tests: Likewise.
20243         * modules/unictype/property-xid-start-tests: Likewise.
20244         * modules/unictype/property-zero-width-tests: Likewise.
20245         * modules/unictype/scripts-tests: Likewise.
20246         * modules/unictype/syntax-c-ident-tests: Likewise.
20247         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20248         * modules/unictype/syntax-java-ident-tests: Likewise.
20249         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20250         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20251         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20252         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20253         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20254         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20255         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20256         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20257         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20258         * modules/uniname/uniname-tests: Likewise.
20259         * modules/uninorm/canonical-decomposition-tests: Likewise.
20260         * modules/uninorm/compat-decomposition-tests: Likewise.
20261         * modules/uninorm/composition-tests: Likewise.
20262         * modules/uninorm/decomposing-form-tests: Likewise.
20263         * modules/uninorm/decomposition-tests: Likewise.
20264         * modules/uninorm/filter-tests: Likewise.
20265         * modules/uninorm/nfc-tests: Likewise.
20266         * modules/uninorm/nfd-tests: Likewise.
20267         * modules/uninorm/nfkc-tests: Likewise.
20268         * modules/uninorm/nfkd-tests: Likewise.
20269         * modules/uninorm/u8-normcmp-tests: Likewise.
20270         * modules/uninorm/u8-normcoll-tests: Likewise.
20271         * modules/uninorm/u16-normcmp-tests: Likewise.
20272         * modules/uninorm/u16-normcoll-tests: Likewise.
20273         * modules/uninorm/u32-normcmp-tests: Likewise.
20274         * modules/uninorm/u32-normcoll-tests: Likewise.
20275         * modules/unistdio/u8-asnprintf-tests: Likewise.
20276         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20277         * modules/unistdio/u8-vasprintf-tests: Likewise.
20278         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20279         * modules/unistdio/u8-vsprintf-tests: Likewise.
20280         * modules/unistdio/u16-asnprintf-tests: Likewise.
20281         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20282         * modules/unistdio/u16-vasprintf-tests: Likewise.
20283         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20284         * modules/unistdio/u16-vsprintf-tests: Likewise.
20285         * modules/unistdio/u32-asnprintf-tests: Likewise.
20286         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20287         * modules/unistdio/u32-vasprintf-tests: Likewise.
20288         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20289         * modules/unistdio/u32-vsprintf-tests: Likewise.
20290         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20291         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20292         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20293         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20294         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20295         * modules/unistr/u8-check-tests: Likewise.
20296         * modules/unistr/u8-chr-tests: Likewise.
20297         * modules/unistr/u8-cmp-tests: Likewise.
20298         * modules/unistr/u8-cmp2-tests: Likewise.
20299         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20300         * modules/unistr/u8-cpy-tests: Likewise.
20301         * modules/unistr/u8-mblen-tests: Likewise.
20302         * modules/unistr/u8-mbsnlen-tests: Likewise.
20303         * modules/unistr/u8-mbtouc-tests: Likewise.
20304         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20305         * modules/unistr/u8-mbtoucr-tests: Likewise.
20306         * modules/unistr/u8-move-tests: Likewise.
20307         * modules/unistr/u8-next-tests: Likewise.
20308         * modules/unistr/u8-prev-tests: Likewise.
20309         * modules/unistr/u8-set-tests: Likewise.
20310         * modules/unistr/u8-stpcpy-tests: Likewise.
20311         * modules/unistr/u8-stpncpy-tests: Likewise.
20312         * modules/unistr/u8-strcat-tests: Likewise.
20313         * modules/unistr/u8-strcmp-tests: Likewise.
20314         * modules/unistr/u8-strcoll-tests: Likewise.
20315         * modules/unistr/u8-strcpy-tests: Likewise.
20316         * modules/unistr/u8-strdup-tests: Likewise.
20317         * modules/unistr/u8-strlen-tests: Likewise.
20318         * modules/unistr/u8-strmblen-tests: Likewise.
20319         * modules/unistr/u8-strmbtouc-tests: Likewise.
20320         * modules/unistr/u8-strncat-tests: Likewise.
20321         * modules/unistr/u8-strncmp-tests: Likewise.
20322         * modules/unistr/u8-strncpy-tests: Likewise.
20323         * modules/unistr/u8-strnlen-tests: Likewise.
20324         * modules/unistr/u8-to-u16-tests: Likewise.
20325         * modules/unistr/u8-to-u32-tests: Likewise.
20326         * modules/unistr/u8-uctomb-tests: Likewise.
20327         * modules/unistr/u16-check-tests: Likewise.
20328         * modules/unistr/u16-chr-tests: Likewise.
20329         * modules/unistr/u16-cmp-tests: Likewise.
20330         * modules/unistr/u16-cmp2-tests: Likewise.
20331         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20332         * modules/unistr/u16-cpy-tests: Likewise.
20333         * modules/unistr/u16-mblen-tests: Likewise.
20334         * modules/unistr/u16-mbsnlen-tests: Likewise.
20335         * modules/unistr/u16-mbtouc-tests: Likewise.
20336         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20337         * modules/unistr/u16-mbtoucr-tests: Likewise.
20338         * modules/unistr/u16-move-tests: Likewise.
20339         * modules/unistr/u16-next-tests: Likewise.
20340         * modules/unistr/u16-prev-tests: Likewise.
20341         * modules/unistr/u16-set-tests: Likewise.
20342         * modules/unistr/u16-stpcpy-tests: Likewise.
20343         * modules/unistr/u16-stpncpy-tests: Likewise.
20344         * modules/unistr/u16-strcat-tests: Likewise.
20345         * modules/unistr/u16-strcmp-tests: Likewise.
20346         * modules/unistr/u16-strcoll-tests: Likewise.
20347         * modules/unistr/u16-strcpy-tests: Likewise.
20348         * modules/unistr/u16-strdup-tests: Likewise.
20349         * modules/unistr/u16-strlen-tests: Likewise.
20350         * modules/unistr/u16-strmblen-tests: Likewise.
20351         * modules/unistr/u16-strmbtouc-tests: Likewise.
20352         * modules/unistr/u16-strncat-tests: Likewise.
20353         * modules/unistr/u16-strncmp-tests: Likewise.
20354         * modules/unistr/u16-strncpy-tests: Likewise.
20355         * modules/unistr/u16-strnlen-tests: Likewise.
20356         * modules/unistr/u16-to-u32-tests: Likewise.
20357         * modules/unistr/u16-to-u8-tests: Likewise.
20358         * modules/unistr/u16-uctomb-tests: Likewise.
20359         * modules/unistr/u32-check-tests: Likewise.
20360         * modules/unistr/u32-chr-tests: Likewise.
20361         * modules/unistr/u32-cmp-tests: Likewise.
20362         * modules/unistr/u32-cmp2-tests: Likewise.
20363         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20364         * modules/unistr/u32-cpy-tests: Likewise.
20365         * modules/unistr/u32-mblen-tests: Likewise.
20366         * modules/unistr/u32-mbsnlen-tests: Likewise.
20367         * modules/unistr/u32-mbtouc-tests: Likewise.
20368         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20369         * modules/unistr/u32-mbtoucr-tests: Likewise.
20370         * modules/unistr/u32-move-tests: Likewise.
20371         * modules/unistr/u32-next-tests: Likewise.
20372         * modules/unistr/u32-prev-tests: Likewise.
20373         * modules/unistr/u32-set-tests: Likewise.
20374         * modules/unistr/u32-stpcpy-tests: Likewise.
20375         * modules/unistr/u32-stpncpy-tests: Likewise.
20376         * modules/unistr/u32-strcat-tests: Likewise.
20377         * modules/unistr/u32-strcmp-tests: Likewise.
20378         * modules/unistr/u32-strcoll-tests: Likewise.
20379         * modules/unistr/u32-strcpy-tests: Likewise.
20380         * modules/unistr/u32-strdup-tests: Likewise.
20381         * modules/unistr/u32-strlen-tests: Likewise.
20382         * modules/unistr/u32-strmblen-tests: Likewise.
20383         * modules/unistr/u32-strmbtouc-tests: Likewise.
20384         * modules/unistr/u32-strncat-tests: Likewise.
20385         * modules/unistr/u32-strncmp-tests: Likewise.
20386         * modules/unistr/u32-strncpy-tests: Likewise.
20387         * modules/unistr/u32-strnlen-tests: Likewise.
20388         * modules/unistr/u32-to-u16-tests: Likewise.
20389         * modules/unistr/u32-to-u8-tests: Likewise.
20390         * modules/unistr/u32-uctomb-tests: Likewise.
20391         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20392         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20393         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20394         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20395         * modules/uniwidth/u8-strwidth-tests: Likewise.
20396         * modules/uniwidth/u8-width-tests: Likewise.
20397         * modules/uniwidth/u16-strwidth-tests: Likewise.
20398         * modules/uniwidth/u16-width-tests: Likewise.
20399         * modules/uniwidth/u32-strwidth-tests: Likewise.
20400         * modules/uniwidth/u32-width-tests: Likewise.
20401         * modules/uniwidth/width-tests: Likewise.
20402
20403 2010-05-18  Richard Jones  <rjones@redhat.com>
20404
20405         doc: users.txt: list hivex
20406         * users.txt: Add hivex.
20407
20408 2010-05-18  Richard Jones  <rjones@redhat.com>
20409
20410         doc: users.txt: list febootstrap
20411         * users.txt: Add febootstrap.
20412
20413 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20414
20415         bootstrap: fix an error when gnulib is not used as a git submodule
20416         * build-aux/bootstrap (gnulib_path): If its length is zero then
20417         assign "gnulib" to it.
20418         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20419
20420 2010-05-16  Bruno Haible  <bruno@clisp.org>
20421
20422         Avoid autoconf warnings about AM_ICONV.
20423         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20424         2.64.
20425
20426 2010-05-16  Bruno Haible  <bruno@clisp.org>
20427
20428         absolute-header: Make the macro usable in more situations.
20429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20430         from gl_ABSOLUTE_HEADER.
20431         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20432
20433 2010-05-16  James Youngman  <jay@gnu.org>
20434
20435         doc: update users.txt
20436         * users.txt: Add CSSC.
20437
20438 2010-05-16  Jim Meyering  <meyering@redhat.com>
20439
20440         init.sh: fix an error in the previous change; add more comments
20441         * tests/init.sh: Compare exit code in loop against 9, not 2.
20442         Patch by Bruno Haible.
20443         Make the two tests more similar by adding an empty "then" clause.
20444         Add comments.
20445
20446         init.sh: avoid unnecessary shell re-exec
20447         * tests/init.sh: Improve the re-exec-required check to first test the
20448         current shell.  If it passes the test, do not search for a shell that
20449         does pass, and do not re-exec.  This test is particularly contorted to
20450         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20451         of $(...) evokes a syntax error and causes immediate shell exit with
20452         status 2.  Bruno Haible reported that the re-exec made it impossible
20453         to single-step through any init.sh-using script.
20454
20455 2010-05-16  Bruno Haible  <bruno@clisp.org>
20456
20457         Fix collision between gnulib's and libintl's printf replacements.
20458         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20459         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20460         (printf): When using GNU C, map the __printf__ function to rpl_printf
20461         via __asm__. When not using GNU C, define rpl_printf instead of
20462         __printf__.
20463         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20464         commit.
20465         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20466         commit.
20467         * m4/asm-underscore.m4: New file.
20468         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20469         * modules/stdio (Files): Add m4/asm-underscore.m4.
20470         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20471         Reported by Ben Pfaff.
20472
20473 2010-05-16  Bruno Haible  <bruno@clisp.org>
20474
20475         verify: Avoid skipping the test on openSUSE 11.0.
20476         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20477
20478 2010-05-13  Bruno Haible  <bruno@clisp.org>
20479
20480         Avoid useless warnings from G++.
20481         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20482         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20483         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20484
20485 2010-05-11  Jim Meyering  <meyering@redhat.com>
20486
20487         maint.mk: tweak preceding change
20488         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20489         regexps tighter by anchoring at EOL, and make the new group "shy"
20490         for slightly decreased overhead.
20491
20492 2010-05-11  Eric Blake  <eblake@redhat.com>
20493
20494         maint.mk: gnulib doesn't guarantee NSIG
20495         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20496
20497 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20498
20499         test-pwrite.c: Remove unused variable declaration.
20500         * tests/test-pwrite.c (main): Remove read_buf declaration.
20501
20502         Remove useless test-pwrite.sh file.
20503         * tests/test-pwrite.sh: Delete file.
20504         * modules/pwrite-tests: Remove references.
20505         Reported by Bruno Haible.
20506
20507 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20508
20509         init.sh: fix a typo
20510         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20511
20512 2010-05-10  Jim Meyering  <meyering@redhat.com>
20513
20514         maint.mk: avoid using a temporary file in the always-defined-macros check
20515         * top/maint.mk (.re-defmac): Remove rule.
20516         (gl_trap_): Remove definition.
20517         (sc_prohibit_always-defined_macros): Rewrite not to create and
20518         depend on a temporary file.  Instead, depend on GNU grep's ability
20519         to read a list of regular expressions from stdin when given "-f -".
20520
20521 2010-05-09  Bruno Haible  <bruno@clisp.org>
20522
20523         Update to GNU gettext 0.18, part 1.
20524         * m4/gettext.m4: Update to GNU gettext 0.18.
20525         * m4/intl.m4: Likewise.
20526         * m4/po.m4: Likewise.
20527         * modules/gettext (Files): Add m4/fcntl-o.m4.
20528         (configure.ac): Require gettext infrastructure from version 0.18.
20529
20530 2010-05-09  Jim Meyering  <meyering@redhat.com>
20531
20532         init.sh: enable MALLOC_PERTURB_
20533         * tests/init.sh: Enable glibc's malloc-perturbing option.
20534
20535         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20536         With my recent change in init.sh from the two-line form:
20537             -#   : ${srcdir=.}
20538             -#   . "$srcdir/init.sh"; path_prepend_ .
20539             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20540         I noticed that using the one-line form would cause this test
20541         to fail with a false-positive, or to stop working altogether,
20542         depending on whether help-version changed or all the tests did.
20543         * top/maint.mk (_hv_regex): Remove this definition.
20544         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20545         (_hv_regex_strong): Use a stronger regex to check for conformance.
20546         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20547         Give a separate diagnostic for lack of conforming use.
20548
20549         maint.mk: prohibit definition of symbols defined by gnulib
20550         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20551         definition of symbols defined by gnulib.
20552
20553 2010-05-09  Bruno Haible  <bruno@clisp.org>
20554
20555         acl: Avoid test failure on Cygwin-hosted mingw.
20556         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20557
20558 2010-05-09  Bruno Haible  <bruno@clisp.org>
20559
20560         error: Use system's fcntl function.
20561         * lib/error.c (fcntl): Undefine.
20562
20563 2010-05-09  Jim Meyering  <meyering@redhat.com>
20564
20565         verify: adjust formatting to be more consistent
20566         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20567         argument-list '('s, and after one comma.
20568
20569 2010-05-09  Bruno Haible  <bruno@clisp.org>
20570
20571         error: More reliable output on mingw.
20572         * lib/error.c: Include <windows.h>.
20573         (is_open): New function.
20574         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20575         defined.
20576
20577 2010-05-09  Bruno Haible  <bruno@clisp.org>
20578
20579         vasnprintf: Fix syntax errors in libintl build on mingw.
20580         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20581         pad_ourselves and prec_ourselves after use.
20582
20583 2010-05-08  Bruno Haible  <bruno@clisp.org>
20584
20585         * lib/config.charset: Update comments for Cygwin 1.7.
20586         * lib/localcharset.c: Likewise.
20587
20588 2010-05-07  Jim Meyering  <meyering@redhat.com>
20589
20590         init.sh: improve comments
20591         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20592         . "${srcdir=.}/init.sh"; path_prepend_ .
20593         Add a note about path_prepend_ and the alternative of using
20594         TESTS_ENVIRONMENT.
20595
20596 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20597
20598         exclude: Unescape hashed patterns in wildcard mode.
20599         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20600         to the hash list.
20601         * tests/test-exclude8.sh: New test case.
20602         * modules/exclude-tests: Add new test.
20603
20604 2010-05-05  Eric Blake  <eblake@redhat.com>
20605
20606         verify: automate tests
20607         * modules/verify-tests: New module.
20608         * tests/test-verify.sh: New file.
20609         * tests/test-verify.c: Guard each negative test with a unique id.
20610         Also avoid warning about unused left hand of comma expressions.
20611
20612 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20613
20614         Further improvements to verify.h, suggested by Eric Blake.
20615         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20616         the GL_* versions, to avoid collision with OpenGL.
20617         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20618         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20619         than testing merely whether it's defined.
20620
20621         Modify verify.h to pacify gcc -Wredundant_decls.
20622         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20623         These use the prefix "GL_" since they're likely to be useful elsewhere.
20624         We may need to break them out into a different .h file.
20625         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20626         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20627         of verify_function__.
20628
20629 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20630
20631         Tests for module pwrite.
20632         * modules/pwrite-tests: New file.
20633         * tests/test-pwrite.sh: New file.
20634         * tests/test-pwrite.c: New file.
20635
20636         New module pwrite.
20637         * lib/unistd.in.h (pwrite): New declaration.
20638         * lib/pwrite.c: New file, from glibc with modifications.
20639         * m4/pwrite.m4: New file.
20640         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20641         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20642         REPLACE_PWRITE.
20643         * modules/pwrite: New file.
20644         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20645         REPLACE_PWRITE.
20646         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20647         * doc/posix-functions/pwrite.texi: Mention the new module.
20648
20649 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20650
20651         pread: Update documentation.
20652         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20653
20654 2010-05-04  Eric Blake  <eblake@redhat.com>
20655
20656         docs: update cygwin progress
20657         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20658         this bug.
20659         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20660         Added in cygwin 1.7.2.
20661         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20662         Likewise.
20663         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20664         Likewise.
20665         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20666         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20667         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20668         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20669         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20670         Mention nproc module.
20671         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20672         bug in cygwin 1.7.5 addition.
20673         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20674         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20675         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20676         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20677         1.7.5.
20678         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20679         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20680         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20681         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20682         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20683         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20684         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20685         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20686         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20687         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20688         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20689         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20690         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20691         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20692         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20693         Likewise.
20694         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20695         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20696         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20697         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20698         Likewise.
20699         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20700         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20701         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20702         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20703         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20704         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20705         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20706         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20707         Likewise.
20708         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20709         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20710         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20711         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20712         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20713         Likewise.
20714         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20715         Likewise.
20716         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20717         Likewise.
20718         * doc/glibc-functions/xdrrec_endofrecord.texi
20719         (xdrrec_endofrecord): Likewise.
20720         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20721         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20722         Likewise.
20723         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20724         Likewise.
20725
20726 2010-05-04  Jim Meyering  <meyering@redhat.com>
20727
20728         gendocs.sh: make its "-s FILE" option more useful
20729         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20730         $PACKAGE to reflect the probably-different basename of "FILE".
20731
20732 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20733
20734         bootstrap: don't ignore download_po_files failure
20735         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20736         failure.
20737
20738 2010-05-03  Jim Meyering  <meyering@redhat.com>
20739
20740         maint.mk: allow to pass options to gendocs.sh
20741         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20742         (gendocs_options_): New overridable variable.
20743
20744         gnu-web-doc-update: don't ignore configure or build failure
20745         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20746
20747         announce-gen: backslash-escape '@'s in --help output
20748         * build-aux/announce-gen: Fix syntax errors.
20749
20750         maint.mk, announce-gen: allow project-specific announcement mail headers
20751         * top/maint.mk (translation_project_): Define default.
20752         (announcement_Cc_, announcement_mail_headers_): Likewise.
20753         (announcement): Invoke announce-gen with new --mail-headers option.
20754         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20755
20756         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20757         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20758         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20759         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20760         line in the "err2" output file when running "make check" in verbose
20761         mode (i.e., with set -x enabled).
20762
20763 2010-05-03  Bruno Haible  <bruno@clisp.org>
20764
20765         wctob: Fix for weird platforms.
20766         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20767         argument value.
20768
20769 2010-05-03  Jim Meyering  <meyering@redhat.com>
20770
20771         maint.mk: prohibit unwarranted use of <strings.h>
20772         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20773         strings.h in a file that does not also use strcasecmp, strncasecmp,
20774         ffs or ffsll.
20775
20776         maint.mk: remove obsolete comments
20777         * top/maint.mk: Remove stale, commented-out rules.
20778
20779 2010-05-02  Bruno Haible  <bruno@clisp.org>
20780
20781         wcwidth: Declare also when it's aliased.
20782         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20783         macro.
20784
20785 2010-05-02  Bruno Haible  <bruno@clisp.org>
20786
20787         Fix regression from 2010-04-25.
20788         * gnulib-tool (func_modules_transitive_closure): Check the status of
20789         all modules, not only of the tests that are of the form foo-tests where
20790         foo is a module.
20791
20792 2010-05-02  Bruno Haible  <bruno@clisp.org>
20793
20794         wctob: Work around nasty Cygwin 1.7.2 bug.
20795         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20796         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20797
20798 2010-05-01  Bruno Haible  <bruno@clisp.org>
20799
20800         fpurge: Sharper test.
20801         * tests/test-fpurge.c (main): Add one more ftell check.
20802         * modules/fpurge-tests (Depends-on): Add ftell.
20803         Suggested by Eric Blake.
20804
20805 2010-05-01  Bruno Haible  <bruno@clisp.org>
20806
20807         ftello: Another test.
20808         * tests/test-ftello3.c: New file.
20809         * modules/ftello-tests (Files): Add it.
20810         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20811         MOSTLYCLEANFILES.
20812
20813         ftell: Another test.
20814         * tests/test-ftell3.c: New file.
20815         * modules/ftell-tests (Files): Add it.
20816         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20817         MOSTLYCLEANFILES.
20818
20819 2010-05-01  Bruno Haible  <bruno@clisp.org>
20820
20821         ftell, ftello: Work around Solaris bug.
20822         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20823         * lib/ftello.c: Include stdio-impl.h.
20824         (ftello): On Solaris, when _IOWRT is set, compute the result without
20825         looking at _IOREAD.
20826         * modules/ftello (Files): Add lib/stdio-impl.h.
20827         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20828         * doc/posix-functions/ftello.texi: Likewise.
20829         Reported by Eric Blake.
20830
20831 2010-05-01  Bruno Haible  <bruno@clisp.org>
20832
20833         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20834         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20835         the _IOWRT flag is also set.
20836
20837 2010-05-01  Bruno Haible  <bruno@clisp.org>
20838
20839         Fix doc about a HP-UX stdio bug.
20840         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20841         * doc/posix-functions/ftello.texi: Likewise.
20842
20843 2010-05-01  Bruno Haible  <bruno@clisp.org>
20844
20845         lseek test: Fix failure on Solaris.
20846         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20847         output.
20848
20849 2010-04-30  Jim Meyering  <meyering@redhat.com>
20850
20851         bootstrap: don't ignore failure to generate po*/Makevars
20852         * build-aux/bootstrap (with_gettext): Don't ignore failure
20853         to create po/Makevars or runtime-po/Makevars.
20854
20855 2010-04-29  Eric Blake  <eblake@redhat.com>
20856
20857         headers: relax license to LGPLv2+
20858         * modules/fcntl-h (License): Relax license.
20859         * modules/getopt-posix (License): Likewise.
20860         * modules/locale (License): Likewise.
20861         * modules/math (License): Likewise.
20862         * modules/pty (License): Likewise.
20863         * modules/sched (License): Likewise.
20864         * modules/search (License): Likewise.
20865         * modules/spawn (License): Likewise.
20866         * modules/stdarg (License): Likewise.
20867         * modules/sysexits (License): Likewise.
20868
20869 2010-04-29  Jim Meyering  <meyering@redhat.com>
20870
20871         inttypes: relax license to LGPLv2+
20872         * modules/inttypes (License): Relax license.
20873
20874 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20875
20876         * top/maint.mk (indent): Run twice to produce idempotent results.
20877
20878 2010-04-28  Bruno Haible  <bruno@clisp.org>
20879
20880         getdate: Generate getdate.c in the source directory.
20881         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20882         MOSTLYCLEANFILES.
20883         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20884
20885 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20886
20887         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20888         is not declared as a const *; avoid warnings in that case.
20889
20890 2010-04-28  Eric Blake  <eblake@redhat.com>
20891
20892         canonicalize-lgpl: avoid compiler warning
20893         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20894         declaration' / 'extraneous semicolon' warning with some compilers.
20895         Reported by Andreas Gruenbacher.
20896
20897 2010-04-28  Jim Meyering  <meyering@redhat.com>
20898
20899         init.sh: ensure a more reliable exit status when exiting via trap
20900         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20901         Inspired by patches from Dmitry V. Levin.
20902         Also trap on signal 3 (SIGQUIT).
20903
20904 2010-04-27  Bruno Haible  <bruno@clisp.org>
20905
20906         Update doc about utimes().
20907         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20908         'utimens' module.
20909         Reported by Andreas Gruenbacher <agruen@suse.de>.
20910
20911 2010-04-27  Eric Blake  <eblake@redhat.com>
20912
20913         full-read, full-write: relax license
20914         * modules/full-read (License): Drop to LGPLv2+.
20915         * modules/full-write (License): Likewise.
20916         * modules/safe-read (License): Likewise.
20917         * modules/safe-write (License): Likewise.
20918
20919         pthread: mention library for linking
20920         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20921
20922 2010-04-27  Jim Meyering  <meyering@redhat.com>
20923
20924         maint.mk: fix a bug introduced in last change
20925         * top/maint.mk (gl_assured_headers_): Now that all names are on
20926         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20927         is not anchored to end of word, it should be adequate.
20928
20929         maint.mk: avoid side-effect in latest syntax-check
20930         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20931         to run commands via $(shell...), and hence to incur cost only when
20932         the new rule is actually run.
20933
20934         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20935         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20936         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20937         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20938         (gl_assured_headers_, az_, AZ_): Define.
20939         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20940
20941 2010-04-26  Jim Meyering  <jim@meyering.net>
20942             Bruno Haible  <bruno@clisp.org>
20943
20944         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20945         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20946         Prompted by an exchange with Gilles Espinasse.
20947
20948 2010-04-26  Jim Meyering  <meyering@redhat.com>
20949
20950         git-version-gen: aesthetic tweak
20951         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20952         so that the command remains on a single line.
20953
20954 2010-04-26  Eric Blake  <eblake@redhat.com>
20955
20956         git-version-gen: allow use on EBCDIC hosts
20957         * build-aux/git-version-gen (dirty): Use literal rather than tying
20958         ourselves to ascii.
20959         Reported by Steve Goetze.
20960
20961 2010-04-25  Bruno Haible  <bruno@clisp.org>
20962
20963         netdb: Add support for GNULIB_POSIXCHECK.
20964         * lib/netdb.in.h: Include warn-on-use.h.
20965         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20966         functions are used when GNULIB_POSIXCHECK is defined and the
20967         getaddrinfo module is not in use.
20968         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20969         freeaddrinfo, gai_strerror, getnameinfo are declared.
20970         * modules/netdb (Depends-on): Add warn-on-use.
20971         (Makefile.am): Include warn-on-use.h in netdb.h.
20972
20973 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20974
20975         build: avoid "make check" failure without .git/ directory
20976         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20977         there is no .git/ directory.
20978
20979 2010-04-25  Bruno Haible  <bruno@clisp.org>
20980
20981         ptsname: Fix misuse of ttyname_r.
20982         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20983         of errno.
20984
20985 2010-04-25  Bruno Haible  <bruno@clisp.org>
20986
20987         ttyname_r: Make it work on Solaris 10.
20988         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20989         if the system function has the POSIX declaration. Test whether the
20990         function fails if the buffer is less than 128 bytes large.
20991         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20992         system's ttyname_r function. Provide a reasonably large buffer.
20993         * modules/ttyname_r (Depends-on): Add extensions.
20994         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20995
20996 2010-04-25  Bruno Haible  <bruno@clisp.org>
20997
20998         Use the 'extensions' module for some more functions on Solaris.
20999         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21000         module.
21001         * doc/posix-functions/ctime_r.texi: Likewise.
21002         * doc/posix-functions/getgrgid_r.texi: Likewise.
21003         * doc/posix-functions/getgrnam_r.texi: Likewise.
21004         * doc/posix-functions/getpwnam_r.texi: Likewise.
21005         * doc/posix-functions/getpwuid_r.texi: Likewise.
21006         * doc/posix-functions/readdir_r.texi: Likewise.
21007         * doc/posix-functions/sigwait.texi: Likewise.
21008         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21009         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21010
21011 2010-04-25  Bruno Haible  <bruno@clisp.org>
21012
21013         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21015         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21016         * lib/ttyname_r.c: Include <limits.h>.
21017         (ttyname_r): Define using the system's ttyname_r function, if it exists
21018         and not on Solaris.
21019         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21020         set.
21021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21022         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21023         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21024         Reported by Simon Josefsson.
21025
21026 2010-04-25  Bruno Haible  <bruno@clisp.org>
21027
21028         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21029         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21030         * doc/posix-functions/ctime_r.texi: Likewise.
21031         * doc/posix-functions/getgrgid_r.texi: Likewise.
21032         * doc/posix-functions/getgrnam_r.texi: Likewise.
21033         * doc/posix-functions/getlogin_r.texi: Likewise.
21034         * doc/posix-functions/getpwnam_r.texi: Likewise.
21035         * doc/posix-functions/getpwuid_r.texi: Likewise.
21036         * doc/posix-functions/readdir_r.texi: Likewise.
21037         * doc/posix-functions/sigwait.texi: Likewise.
21038         * doc/posix-functions/ttyname_r.texi: Likewise.
21039         Reported by Simon Josefsson.
21040
21041 2010-04-25  Bruno Haible  <bruno@clisp.org>
21042
21043         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21044         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21045         also to --create-testdir.
21046         (func_acceptable): Don't consider the status of *-tests modules here.
21047         (func_modules_transitive_closure): Consider it here, before including a
21048         test module.
21049         (func_import, func_create_testdir): Set inc_all_direct_tests,
21050         inc_all_indirect_tests.
21051         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21052         --create-testdir and --create-megatestdir.
21053
21054 2010-04-25  Bruno Haible  <bruno@clisp.org>
21055
21056         gnulib-tool: Add --without-*-tests options.
21057         * gnulib-tool (func_usage): Document the --without-*-tests options.
21058         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21059         excl_unportable_tests): New variables.
21060         Fail if they are specified with --import or --update.
21061         (func_acceptable): Respect the excl_*_tests variables.
21062         (func_import): Set the excl_*_tests variables to empty.
21063
21064 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21065             Bruno Haible  <bruno@clisp.org>
21066
21067         Work around a MacOS X 10.4 bug with openpty.
21068         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21069         * tests/test-openpty.c (main): Close the master side explicitly.
21070
21071 2010-04-25  Bruno Haible  <bruno@clisp.org>
21072
21073         strnlen: Fix a C++ test error on MacOS X and Solaris.
21074         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21075         the function is not declared.
21076         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21077         Simon Josefsson.
21078
21079 2010-04-24  Bruno Haible  <bruno@clisp.org>
21080
21081         Avoid a gcc warning.
21082         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21083         of correct type for %08lx directive.
21084         Reported by Eric Blake.
21085
21086 2010-04-24  Bruno Haible  <bruno@clisp.org>
21087
21088         vasnprintf: Correct errno value in case of out-of-memory.
21089         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21090         or sprintf. Use the errno value from SNPRINTF or sprintf.
21091         Reported by Ian Beckwith <ianb@erislabs.net>.
21092
21093 2010-04-24  Bruno Haible  <bruno@clisp.org>
21094
21095         ansi-c++-opt: Find correct compiler when cross-compiling.
21096         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21097         AC_CHECK_PROGS.
21098         Reported by Simon Josefsson.
21099
21100 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21101
21102         vc-list-files: Add support for subversion
21103         * build-aux/vc-list-files: Use "svn list" to generate the list of
21104         files controlled by subversion.
21105
21106 2010-04-23  Jim Meyering  <meyering@redhat.com>
21107
21108         vc-list-files tests: convert to use init.sh
21109         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21110         path_prepend_.
21111         Use Exit, not exit.
21112         Use skip_ rather than open coding it.
21113         Remove trap set-up and compare definitions.
21114         * tests/test-vc-list-files-git.sh: Likewise.
21115         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21116
21117 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21118
21119         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21120         backup files.
21121
21122 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21123
21124         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21125
21126 2010-04-20  Eric Blake  <eblake@redhat.com>
21127
21128         tests: be robust to ignored SIGPIPE
21129         * tests/test-select-in.sh: Consume all output.
21130         * tests/test-lseek.sh: Check correct exit status, while avoiding
21131         EPIPE.
21132
21133 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21134             Bruno Haible  <bruno@clisp.org>
21135
21136         visibility: Don't use -fvisibility if it leads to a warning.
21137         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21138         yes, don't pretend that visibility works if it leads to a warning.
21139         Reported by Mike Gran <spk121@yahoo.com>.
21140
21141 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21142
21143         * build-aux/bootstrap: Use "git -h" for testing for supported options
21144         instead of "git --help".  The short-form option only shows a summary,
21145         and doesn't layout the full man page.  Grep for the full option name
21146         in the summary, too.
21147
21148 2010-04-19  Bruno Haible  <bruno@clisp.org>
21149
21150         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21151         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21152         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21153         mention of RELOCATABLE_STRIP.
21154         Reported by Sylvain Beucler <beuc@beuc.net>.
21155
21156 2010-04-19  Bruno Haible  <bruno@clisp.org>
21157
21158         * lib/diffseq.h: Fix typo in comment.
21159         Reported by Eric Blake.
21160
21161 2010-04-19  Bruno Haible  <bruno@clisp.org>
21162
21163         ioctl: Move autoconf macro to a .m4 file.
21164         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21165         * modules/ioctl (Files): Add it.
21166         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21167         Reported by Ian Beckwith <ianb@erislabs.net>.
21168
21169 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21170             Bruno Haible  <bruno@clisp.org>
21171
21172         diffseq: Accommodate use-case with abstract arrays.
21173         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21174         is not defined.
21175         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21176         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21177
21178 2010-04-18  Bruno Haible  <bruno@clisp.org>
21179
21180         * doc/posix-headers/stdbool.texi: More precise wording.
21181
21182 2010-04-17  Jim Meyering  <meyering@redhat.com>
21183
21184         maint.mk: use gnu-style indentation in an embedded perl script
21185         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21186         Rename variable: s/two/last_two_bytes/
21187
21188 2010-04-16  Eric Blake  <eblake@redhat.com>
21189
21190         test-stdbool: skip test that fails with Solaris CC
21191         * tests/test-stdbool.c (f): Skip test that causes compilation
21192         error under buggy C++ compiler.
21193         * lib/stdbool.in.h: Document the limitation.
21194         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21195
21196         setenv: allow compilation with C++
21197         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21198         register keyword.
21199
21200         stdint: allow test to pass with C++
21201         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21202
21203         getopt: allow compilation with C++
21204         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21205         struct.
21206         * lib/getopt.c (_getopt_internal_r): Use correct type.
21207         Reported by Dagobert Michelson, via Joel E. Denny.
21208
21209 2010-04-16  Bruno Haible  <bruno@clisp.org>
21210
21211         Override netdb.h always.
21212         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21213         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21214         Reported by Ludovic Courtès <ludo@gnu.org>.
21215
21216 2010-04-15  Bruno Haible  <bruno@clisp.org>
21217
21218         openpty: Fix mistake from 2010-03-21.
21219         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21220         Reported by Simon Josefsson.
21221
21222 2010-04-15  Eric Blake  <eblake@redhat.com>
21223
21224         test-forkpty: fix expected signature
21225         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21226         Reported by Simon Josefsson.
21227
21228 2010-04-15  Jim Meyering  <meyering@redhat.com>
21229
21230         maint.mk: texinfo_suffix_re_: correct the default regexp
21231         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21232
21233         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21234         make it configurable via texinfo_suffix_re_.
21235
21236 2010-04-14  Eric Blake  <eblake@redhat.com>
21237
21238         strtok_r: relax license to LGPLv2+
21239         * modules/strtok_r (License): Relax license.
21240         Reported by Matthias Bolte.
21241
21242 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21243
21244         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21245         version 1.4.4 by default instead of requiring the libgcrypt
21246         version used during build.  This makes it possible to use the
21247         application with older but still binary compatible libgcrypt
21248         versions.
21249
21250 2010-04-13  Eric Blake  <eblake@redhat.com>
21251
21252         getopt-gnu: match recent glibc fixes and posix ruling
21253         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21254         '+' handling, when requesting extensions.
21255         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21256         'W;' handling.
21257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21258         * doc/posix-functions/getopt.texi (getopt): Document this.
21259         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21260         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21261         Likewise.
21262
21263         getopt: merge bug fixes from glibc
21264         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21265         diagnostics.  Honor '+:' correctly.  Reject ';'.
21266
21267         getopt-posix: detect MacOS bug
21268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21269         optind when missing a required argument.
21270         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21271         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21272         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21273         Likewise.
21274
21275         getopt-posix: avoid spurious failure on Solaris
21276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21277         an indicator that setting optind=1 is sufficient for reset.
21278
21279         getopt-posix: avoid spurious failure on FreeBSD
21280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21281         in POSIX mode, since the m4 test uses it.
21282
21283         gnulib-tool: silence warning on BSD sh
21284         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21285
21286 2010-04-13  Jim Meyering  <meyering@redhat.com>
21287
21288         doc: users.txt: GNU patch now uses gnulib
21289         * users.txt: Add patch.
21290
21291 2010-04-12  Jim Meyering  <meyering@redhat.com>
21292
21293         maint.mk: generate more concise timing data for syntax-check rules
21294         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21295         " done" from each line that reports a syntax-check test duration.
21296
21297 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21298
21299         git-version-gen: use "git update-index..." rather than "git status"
21300         * build-aux/git-version-gen: Use git update-index --refresh, not
21301         "git status".  With some versions of git, "git status" would fail
21302         to update the index and result in an unwarranted "-dirty" suffix.
21303
21304 2010-04-11  Jim Meyering  <meyering@redhat.com>
21305
21306         openat: correct formatting (no semantic change)
21307         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21308         Suggested by Bruno Haible.
21309
21310 2010-04-11  Bruno Haible  <bruno@clisp.org>
21311
21312         Stricter declaration checking in testdirs.
21313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21314         If for_tests is true, augment AM_CPPFLAGS to define
21315         GNULIB_STRICT_CHECKING.
21316         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21317         GNULIB_STRICT_CHECKING is defined, verify that the function is
21318         declared.
21319
21320 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21321             Bruno Haible  <bruno@clisp.org>
21322
21323         libunistring: Improve configure output.
21324         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21325         Don't say "consider installing GNU libunistring" when checking again
21326         with libiconv.
21327
21328 2010-04-11  Bruno Haible  <bruno@clisp.org>
21329
21330         libunistring: Correct value of $LTLIBUNISTRING.
21331         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21332         correct the value of $LTLIBUNISTRING.
21333
21334 2010-04-11  Bruno Haible  <bruno@clisp.org>
21335
21336         havelib: Add static libraries to LIBS in the right order.
21337         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21338         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21339
21340 2010-04-11  Bruno Haible  <bruno@clisp.org>
21341
21342         libunistring: Detect libunistring also when it depends on libiconv.
21343         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21344         the second AC_LIB_HAVE_LINKFLAGS invocation.
21345
21346 2010-04-11  James Youngman  <jay@gnu.org>
21347
21348         close-stream: declare local scalars to be "const"
21349         * lib/close-stream.c (close_stream): Make boolean variables const
21350         to document the fact that we set but do not change them.
21351
21352 2010-04-11  Bruno Haible  <bruno@clisp.org>
21353
21354         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21355
21356 2010-04-11  Jim Meyering  <meyering@redhat.com>
21357
21358         maint.mk: don't include dist-check.mk
21359         * top/maint.mk: Remove bogus include directive.
21360
21361         maint.mk: improve empty-line-at-EOF check
21362         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21363         solution, rather than tail+Perl-based one.  The latter would read
21364         a few kilobytes from the end of each file, and did not handle empty
21365         files properly.
21366
21367         maint.mk: print the elapsed time for each syntax-check rule
21368         * top/maint.mk (sc_m_rules_): Save start time in a file.
21369         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21370         (local-check): Interpose the .z rules
21371
21372 2010-04-11  Jim Meyering  <meyering@redhat.com>
21373
21374         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21375         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21376         empty file with one that ends in an empty line.
21377
21378 2010-04-10  Bruno Haible  <bruno@clisp.org>
21379
21380         mkdir: Make it work on mingw64.
21381         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21382         * lib/mkdir.c: Update comment.
21383         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21384
21385 2010-04-10  Bruno Haible  <bruno@clisp.org>
21386
21387         Don't override improved macro from newer autoconf.
21388         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21389         autoconf >= 2.62.
21390         Reported by Joel E. Denny <jdenny@clemson.edu>.
21391
21392 2010-04-10  Jim Meyering  <meyering@redhat.com>
21393
21394         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21395         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21396
21397         maint.mk: correct a diagnostic
21398         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21399         in diagnostic; now use $prohibit.
21400
21401 2010-04-10  Bruno Haible  <address@hidden>
21402
21403         fchownat: Fix a C++ test error on Solaris 8.
21404         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21405         the function does not exist.
21406
21407 2010-04-10  Bruno Haible  <bruno@clisp.org>
21408
21409         vasnprintf: Add more tests.
21410         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21411         (test_function): Test converting an invalid wide string.
21412
21413         vasnprintf: Correct handling of unconvertible wide string arguments.
21414         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21415         VASNPRINTF.
21416         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21417         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21418         smaller than the expected maximum need for the directive. Set errno to
21419         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21420         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21422         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21423         * modules/vasnprintf (Files): Add m4/printf.m4.
21424         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21425
21426 2010-04-10  Bruno Haible  <bruno@clisp.org>
21427
21428         vasnprintf: Fix crash in %ls directive.
21429         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21430         string is passed as argument to %ls, with no precision and no width.
21431         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21432
21433 2010-04-10  Bruno Haible  <bruno@clisp.org>
21434
21435         vasnprintf: Fix multiple test failures on mingw.
21436         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21437         _snprintf, or snwprintf, not _snwprintf.
21438
21439 2010-04-10  Bruno Haible  <bruno@clisp.org>
21440
21441         write: Fix a C++ test error on mingw.
21442         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21443
21444 2010-04-10  Bruno Haible  <bruno@clisp.org>
21445
21446         vasnprintf test: Reduce code duplication.
21447         * tests/test-vasnprintf.c (test_function): New function, extracted from
21448         test_vasnprintf.
21449         (test_vasnprintf, test_asnprintf): Invoke it.
21450
21451 2010-04-10  Bruno Haible  <bruno@clisp.org>
21452
21453         strnlen: Fix warning in C++ mode on MacOS X.
21454         * lib/string.in.h (strnlen): Use the modern idiom.
21455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21456         defining strnlen as a macro already in <config.h>.
21457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21458         REPLACE_STRNLEN.
21459         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21460         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21461
21462 2010-04-08  James Youngman  <jay@gnu.org>
21463
21464         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21465         the example.
21466
21467 2010-04-09  Jim Meyering  <meyering@redhat.com>
21468
21469         maint.mk: print better diagnostic when there is no $(_hv_file)
21470         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21471         announce that when $(_hv_file) (aka help-version) does not exist.
21472
21473         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21474         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21475         not try to interpret its random input bytes.  Jarno Rajahalme reported
21476         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21477         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21478         (mktempd_): Likewise, just in case.
21479
21480         ftruncate: add two years to projected module removal date: 2012
21481         * m4/ftruncate.m4: Adjust comments.
21482
21483         ftruncate: mark module as obsolete; even MinGW provides it, now
21484         * modules/ftruncate (Status): Obsolete.
21485         (Notice): Say that.
21486         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21488
21489 2010-04-08  Bruno Haible  <bruno@clisp.org>
21490
21491         Fix side effects from tests-related modules.
21492         * modules/dprintf-posix (Comment): New section.
21493         * modules/fprintf-posix (Comment): Likewise.
21494         * modules/obstack-printf-posix (Comment): Likewise.
21495         * modules/printf-posix (Comment): Likewise.
21496         * modules/snprintf-posix (Comment): Likewise.
21497         * modules/sprintf-posix (Comment): Likewise.
21498         * modules/vasnprintf-posix (Comment): Likewise.
21499         * modules/vasprintf-posix (Comment): Likewise.
21500         * modules/vdprintf-posix (Comment): Likewise.
21501         * modules/vfprintf-posix (Comment): Likewise.
21502         * modules/vprintf-posix (Comment): Likewise.
21503         * modules/vsnprintf-posix (Comment): Likewise.
21504         * modules/vsprintf-posix (Comment): Likewise.
21505         * modules/xprintf-posix (Comment): Likewise.
21506         * modules/xvasprintf-posix (Comment): Likewise.
21507         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21508         * modules/floorf-tests (Depends-on): Likewise.
21509         * modules/round-tests (Depends-on): Likewise.
21510         * modules/roundf-tests (Depends-on): Likewise.
21511         * modules/trunc-tests (Depends-on): Likewise.
21512         * modules/truncf-tests (Depends-on): Likewise.
21513         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21514         'fprintf-posix' module is not present.
21515         * tests/test-floorf2.c (check): Likewise.
21516         * tests/test-trunc2.c (check): Likewise.
21517         * tests/test-truncf2.c (check): Likewise.
21518         * tests/test-round2.c (equal): Likewise.
21519         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21520
21521 2010-04-07  Karl Berry  <karl@gnu.org>
21522
21523         * config/srclist.txt,
21524         * config/srclistvars.sh,
21525         * config/srclist-update: doc fixes.
21526
21527 2010-04-07  Jim Meyering  <meyering@redhat.com>
21528
21529         maint.mk: add a PATH crosschecking syntax-check rule
21530         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21531         Useful if you use a test like the one in help-version (coreutils,
21532         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21533         printed by prog --version.
21534
21535 2010-04-06  Bruno Haible  <bruno@clisp.org>
21536
21537         Fix link error on mingw.
21538         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21539         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21540
21541 2010-04-06  Bruno Haible  <bruno@clisp.org>
21542
21543         Assume rmdir exists.
21544         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21545
21546 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21547
21548         doc: update users.txt
21549         * users.txt: Add gcal.
21550
21551 2010-04-06  Jim Meyering  <meyering@redhat.com>
21552
21553         init.sh: simply unset TMPDIR rather than risking env -i
21554         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21555         although it probably works fine on all Unix-based systems, some
21556         systems (Cygwin?) cannot tolerate a totally cleared environment.
21557         Suggestion from Eric Blake.
21558
21559 2010-04-06  Jim Meyering  <meyering@redhat.com>
21560
21561         init.sh: portability fix: use env's POSIX-specified -i option not -u
21562         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21563         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21564
21565 2010-04-05  Bruno Haible  <bruno@clisp.org>
21566
21567         btowc: Work around Cygwin 1.7.2 bug.
21568         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21569         does not map NUL to 0.
21570         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21571
21572 2010-04-05  Bruno Haible  <bruno@clisp.org>
21573
21574         Make the multithread modules work on Cygwin 1.7.2.
21575         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21576         imported symbols can be declared weak, so that it returns "no" on
21577         Cygwin 1.7.2.
21578
21579 2010-04-05  Bruno Haible  <bruno@clisp.org>
21580
21581         Use the module 'strncat'.
21582         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21583
21584         Tests for module 'strncat'.
21585         * modules/strncat-tests: New file.
21586         * tests/test-strncat.c: New file.
21587
21588         New module 'strncat'.
21589         * lib/string.in.h (strncat): New declaration.
21590         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21591         * m4/strncat.m4: New file, based on m4/memchr.m4.
21592         * modules/strncat: New file.
21593         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21594         is declared.
21595         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21596         REPLACE_STRNCAT.
21597         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21598         REPLACE_STRNCAT.
21599         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21600         module.
21601         * tests/test-string-c++.cc: Check signature of strncat.
21602
21603 2010-04-05  Jim Meyering  <meyering@redhat.com>
21604
21605         xstrtoumax-tests: convert to use init.sh
21606         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21607         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21608         Use Exit, not exit.
21609         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21610
21611         xstrtoimax-tests: convert to use init.sh
21612         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21613         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21614         Use Exit, not exit.
21615         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21616
21617 2010-04-05  Bruno Haible  <bruno@clisp.org>
21618
21619         sys_socket: Avoid #define replacements in C++ mode.
21620         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21621         warning to the function if possible, rather than #defining the symbol
21622         to a dysfunctional alias.
21623
21624 2010-04-05  Bruno Haible  <bruno@clisp.org>
21625
21626         fseeko: Fix C++ test error on mingw.
21627         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21628         gl_FUNC_FSEEKO.
21629         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21630         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21631         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21632         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21633
21634 2010-04-05  Bruno Haible  <bruno@clisp.org>
21635
21636         duplocale: Improve test output.
21637         * tests/test-duplocale.c (main): Print reason for skipped test.
21638
21639 2010-04-05  Bruno Haible  <bruno@clisp.org>
21640
21641         Assume rmdir exists.
21642         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21643         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21644
21645 2010-04-05  Bruno Haible  <bruno@clisp.org>
21646
21647         Fix link error on Solaris 8 with cc.
21648         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21649
21650 2010-04-05  Bruno Haible  <bruno@clisp.org>
21651
21652         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21653         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21654
21655 2010-04-05  Bruno Haible  <bruno@clisp.org>
21656
21657         vasprintf: Update documentation.
21658         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21659
21660 2010-04-05  Bruno Haible  <bruno@clisp.org>
21661
21662         ptsname: Improve test.
21663         * tests/test-ptsname.c (main): Also try the various master names of BSD
21664         systems.
21665
21666 2010-04-05  Bruno Haible  <bruno@clisp.org>
21667
21668         memchr: Avoid a possible C++ test error.
21669         * lib/string.in.h (memchr): Provide declaration if function is missing.
21670         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21671         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21673         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21674
21675 2010-04-05  Bruno Haible  <bruno@clisp.org>
21676
21677         strtok_r: Improve idiom.
21678         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21679         AC_LIBOBJ is used.
21680
21681 2010-04-05  Bruno Haible  <bruno@clisp.org>
21682
21683         strdup: Improve idiom.
21684         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21685         AC_LIBOBJ is used.
21686         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21687         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21688         when AC_LIBOBJ is used.
21689
21690 2010-04-05  Bruno Haible  <bruno@clisp.org>
21691
21692         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21693         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21694         don't set REPLACE_MBSINIT to 1.
21695         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21696         don't set REPLACE_MBRTOWC to 1.
21697         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21698         exist, don't set REPLACE_MBSRTOWCS to 1.
21699         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21700         exist, don't set REPLACE_MBSNRTOWCS to 1.
21701         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21702         don't set REPLACE_WCRTOMB to 1.
21703         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21704         exist, don't set REPLACE_WCSRTOMBS to 1.
21705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21706         exist, don't set REPLACE_WCSNRTOMBS to 1.
21707
21708 2010-04-05  Bruno Haible  <bruno@clisp.org>
21709
21710         ldexpl: Improve idiom.
21711         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21712         make sure to set HAVE_DECL_LDEXPL to 0.
21713
21714 2010-04-05  Jim Meyering  <meyering@redhat.com>
21715
21716         xstrtol-tests: convert to use init.sh
21717         * modules/xstrtol-tests (Files): Add tests/init.sh.
21718         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21719         Use Exit, not exit.
21720         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21721
21722         atexit-tests: convert to use init.sh
21723         * modules/atexit-tests (Files): Add tests/init.sh.
21724         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21725         Use Exit, not exit.
21726         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21727
21728         init.sh: fix typo
21729         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21730
21731         init.sh: make it easier for a test script to write to the tty, ...
21732         when using automake's parallel-tests mode.
21733         * tests/init.sh (stderr_fileno_): Define overridable variable.
21734         (warn_): New function, to use it.
21735         (fail_, skip_, framework_failure_): Use warn_.
21736
21737 2010-04-04  Bruno Haible  <bruno@clisp.org>
21738
21739         btowc: Avoid warning.
21740         * lib/btowc.c: Include <stdlib.h>.
21741         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21742
21743 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21744             Bruno Haible  <bruno@clisp.org>
21745
21746         wchar: Port to NetBSD 1.5.
21747         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21748         * lib/wctype.in.h (WEOF): Likewise.
21749
21750 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21751             Bruno Haible  <bruno@clisp.org>
21752
21753         Port extended stdio to NetBSD 1.5.
21754         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21755         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21756         older.
21757
21758 2010-04-04  Bruno Haible  <bruno@clisp.org>
21759
21760         string: Remove unused substitution.
21761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21762         HAVE_DECL_STRERROR.
21763         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21764
21765 2010-04-04  Bruno Haible  <bruno@clisp.org>
21766
21767         strtod: Avoid a possible C++ test error.
21768         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21769         set REPLACE_STRTOD.
21770
21771 2010-04-04  Bruno Haible  <bruno@clisp.org>
21772
21773         strerror: Update documentation.
21774         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21775
21776 2010-04-04  Bruno Haible  <bruno@clisp.org>
21777
21778         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21779         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21780         _GL_CXXALIAS_SYS_CAST.
21781
21782 2010-04-04  Bruno Haible  <bruno@clisp.org>
21783
21784         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21785         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21786         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21787         REPLACE_FREXPL to 1.
21788         * doc/posix-functions/frexpl.texi: Update documentation.
21789
21790 2010-04-04  Bruno Haible  <bruno@clisp.org>
21791
21792         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21793         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21794
21795 2010-04-04  Bruno Haible  <bruno@clisp.org>
21796
21797         Implement nanosleep for native Windows.
21798         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21799
21800 2010-04-04  Bruno Haible  <bruno@clisp.org>
21801
21802         math: Fix some C++ test errors on Solaris 8.
21803         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21804
21805 2010-04-04  Bruno Haible  <bruno@clisp.org>
21806
21807         math: Fix some C++ test errors on Cygwin.
21808         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21809         truncl): Provide declaration if the system does not have it.
21810         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21811         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21812         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21813         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21814         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21815         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21816         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21817         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21818         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21819         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21820         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21821         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21822         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21823         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21824         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21825         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21827         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21828         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21829         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21830         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21831         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21832
21833 2010-04-04  Bruno Haible  <bruno@clisp.org>
21834
21835         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21836         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21837         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21838         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21839         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21840         * m4/isinf.m4 (gl_ISINF): Likewise.
21841         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21842
21843 2010-04-04  Bruno Haible  <bruno@clisp.org>
21844
21845         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21846         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21847
21848 2010-04-04  Bruno Haible  <bruno@clisp.org>
21849
21850         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21851         * modules/tmpfile (configure.ac): Update.
21852
21853         tmpfile: Fix C++ test error on mingw.
21854         * lib/stdio.in.h (tmpfile): New declaration.
21855         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21856         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21857         * modules/tmpfile (Depends-on): Add stdio.
21858         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21859         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21860         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21861         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21862         REPLACE_TMPFILE.
21863         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21864
21865 2010-04-04  Bruno Haible  <bruno@clisp.org>
21866
21867         ioctl: Fix C++ test error on mingw.
21868         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21869         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21870         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21871
21872 2010-04-03  Bruno Haible  <bruno@clisp.org>
21873
21874         wcwidth: Fix C++ test error on mingw.
21875         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21877         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21878
21879 2010-04-03  Bruno Haible  <bruno@clisp.org>
21880
21881         nanosleep: Fix C++ test error on mingw.
21882         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21883         * lib/time.in.h (nanosleep): Use modern idiom.
21884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21885         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21886         REPLACE_NANOSLEEP to 1.
21887         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21888         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21889
21890 2010-04-03  Bruno Haible  <bruno@clisp.org>
21891
21892         strptime: Fix C++ test error on mingw.
21893         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21894         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21895         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21896         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21898         not REPLACE_STRPTIME.
21899         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21900         REPLACE_STRPTIME.
21901
21902 2010-04-03  Bruno Haible  <bruno@clisp.org>
21903
21904         timegm: Fix C++ test error on mingw.
21905         * lib/time.in.h (timegm): Use modern idiom.
21906         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21907         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21908         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21909         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21910
21911 2010-04-03  Bruno Haible  <bruno@clisp.org>
21912
21913         timegm: Assume declaration if function exists.
21914         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21915         if it exists. Don't clobber ac_cv_func_timegm.
21916
21917 2010-04-03  Bruno Haible  <bruno@clisp.org>
21918
21919         time_r: Fix C++ test error on mingw.
21920         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21921         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21922         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21923         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21924         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21925
21926 2010-04-03  Bruno Haible  <bruno@clisp.org>
21927
21928         time_r: Minor updates.
21929         * modules/time_r (Description): Mention the provided functions.
21930         * lib/time_r.c: Don't include <string.h>.
21931         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21932         * doc/posix-functions/localtime_r.texi: Likewise.
21933
21934 2010-04-03  Bruno Haible  <bruno@clisp.org>
21935
21936         time: Fix regression introduced on 2010-03-08.
21937         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21938         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21939
21940 2010-04-03  Jim Meyering  <meyering@redhat.com>
21941
21942         maint.mk: don't silently disable project-specific syntax-check rules
21943         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21944         that they need to convert their project-specific syntax-check rules
21945         to use the new _sc_search_regexp.
21946
21947 2010-04-03  Bruno Haible  <bruno@clisp.org>
21948
21949         fchdir: Fix regression introduced on 2010-03-08.
21950         * lib/unistd.in.h (fchdir): Fix declaration.
21951         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21953         REPLACE_FCHDIR.
21954         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21955         REPLACE_FCHDIR.
21956
21957 2010-04-03  Bruno Haible  <bruno@clisp.org>
21958
21959         getpagesize: Fix C++ test error on mingw.
21960         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21961         system does not declare the function.
21962         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21963         declared.
21964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21965         HAVE_DECL_GETPAGESIZE.
21966         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21967
21968 2010-04-03  Bruno Haible  <bruno@clisp.org>
21969
21970         stdio: Make C++ tests work on mingw.
21971         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21972         does not declare the function.
21973
21974 2010-04-03  Bruno Haible  <bruno@clisp.org>
21975
21976         ftello: Fix C++ test error on mingw.
21977         * lib/stdio.in.h (ftello): Use modern idiom.
21978         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21979         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21980         is missing and that it needs to be replaced.
21981         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21983         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21984
21985 2010-04-03  Bruno Haible  <bruno@clisp.org>
21986
21987         fseeko: Fix C++ test error on mingw.
21988         * lib/stdio.in.h (fseeko): Use modern idiom.
21989         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21991         is missing and that it needs to be replaced.
21992         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21994         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21995
21996 2010-04-03  Bruno Haible  <bruno@clisp.org>
21997
21998         mkstemp: Fix C++ test error on mingw.
21999         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22000         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22001         function is missing and that it needs to be replaced.
22002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22003         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22004
22005 2010-04-03  Bruno Haible  <bruno@clisp.org>
22006
22007         stpncpy: Fix C++ test error on mingw.
22008         * lib/string.in.h (stpncpy): Use modern idiom.
22009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22010         function is missing and that it needs to be replaced.
22011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22012         REPLACE_STPNCPY.
22013         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22014
22015 2010-04-03  Bruno Haible  <bruno@clisp.org>
22016
22017         sys_stat: Fix C++ test error on mingw.
22018         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22019         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22020
22021 2010-04-03  Bruno Haible  <bruno@clisp.org>
22022
22023         pty: Update doc.
22024         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22025
22026 2010-04-03  Bruno Haible  <bruno@clisp.org>
22027
22028         unistd: Fix C++ test error on mingw.
22029         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22030
22031 2010-04-03  Bruno Haible  <bruno@clisp.org>
22032
22033         Update doc regarding mingw.
22034         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22035         * doc/glibc-functions/login_tty.texi: Likewise.
22036         * doc/glibc-functions/forkpty.texi: Likewise.
22037
22038 2010-04-03  Bruno Haible  <bruno@clisp.org>
22039
22040         stdlib: Avoid compilation failure of c-strtold on mingw.
22041         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22042
22043 2010-04-03  Bruno Haible  <bruno@clisp.org>
22044
22045         locale: Make C++ tests work on Cygwin and mingw.
22046         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22047         cannot provide the function.
22048         Reported by Simon Josefsson.
22049
22050 2010-04-03  Bruno Haible  <bruno@clisp.org>
22051
22052         localename: Port to MacOS X 10.6.
22053         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22054         memory layout of the locales in MacOS X 10.6 as well.
22055         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22056
22057 2010-04-02  Bruno Haible  <bruno@clisp.org>
22058
22059         gnulib-tool: Ensure that long-running tests are executed last.
22060         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22061         running tests after the one for the other tests.
22062
22063 2010-04-02  Bruno Haible  <bruno@clisp.org>
22064
22065         gnulib-tool: Ensure the tests in the main directory are executed first.
22066         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22067         start with the current directory.
22068
22069 2010-04-02  Bruno Haible  <bruno@clisp.org>
22070
22071         Tests for module 'havelib', moved here from GNU gettext.
22072         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22073         modifications.
22074         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22075         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22076         with modifications.
22077         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22078         modifications.
22079         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22080         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22081         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22082         with modifications.
22083         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22084         with modifications.
22085         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22086         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22087         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22088         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22089         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22090         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22091         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22092         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22093         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22094         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22095         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22096         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22097         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22098         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22099         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22100         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22101         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22102         with modifications.
22103         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22104         with modifications.
22105         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22106         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22107         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22108         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22109         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22110         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22111         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22112         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22113         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22114         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22115         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22116         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22117         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22118         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22119         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22120         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22121         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22122         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22123         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22124         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22125         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22126         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22127         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22128         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22129         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22130         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22131         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22132         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22133         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22134         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22135         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22136         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22137         * tests/havelib/rpathx/rpathx.c: New file, from
22138         gettext/autoconf-lib-link.
22139         * tests/havelib/rpathx/Makefile.am: New file, from
22140         gettext/autoconf-lib-link.
22141         * tests/havelib/rpathx/configure.ac: New file, from
22142         gettext/autoconf-lib-link with modifications.
22143         * tests/havelib/rpathy/rpathy.c: New file, from
22144         gettext/autoconf-lib-link.
22145         * tests/havelib/rpathy/Makefile.am: New file, from
22146         gettext/autoconf-lib-link.
22147         * tests/havelib/rpathy/configure.ac: New file, from
22148         gettext/autoconf-lib-link with modifications.
22149         * tests/havelib/rpathz/rpathz.c: New file, from
22150         gettext/autoconf-lib-link.
22151         * tests/havelib/rpathz/Makefile.am: New file, from
22152         gettext/autoconf-lib-link.
22153         * tests/havelib/rpathz/configure.ac: New file, from
22154         gettext/autoconf-lib-link with modifications.
22155         * tests/havelib/rpathlx/usex.c: New file, from
22156         gettext/autoconf-lib-link.
22157         * tests/havelib/rpathlx/Makefile.am: New file, from
22158         gettext/autoconf-lib-link.
22159         * tests/havelib/rpathlx/configure.ac: New file, from
22160         gettext/autoconf-lib-link with modifications.
22161         * tests/havelib/rpathly/usey.c: New file, from
22162         gettext/autoconf-lib-link.
22163         * tests/havelib/rpathly/Makefile.am: New file, from
22164         gettext/autoconf-lib-link.
22165         * tests/havelib/rpathly/configure.ac: New file, from
22166         gettext/autoconf-lib-link with modifications.
22167         * tests/havelib/rpathlz/usez.c: New file, from
22168         gettext/autoconf-lib-link.
22169         * tests/havelib/rpathlz/Makefile.am: New file, from
22170         gettext/autoconf-lib-link.
22171         * tests/havelib/rpathlz/configure.ac: New file, from
22172         gettext/autoconf-lib-link with modifications.
22173         * tests/havelib/rpathlyx/usey.c: New file, from
22174         gettext/autoconf-lib-link.
22175         * tests/havelib/rpathlyx/Makefile.am: New file, from
22176         gettext/autoconf-lib-link.
22177         * tests/havelib/rpathlyx/configure.ac: New file, from
22178         gettext/autoconf-lib-link with modifications.
22179         * tests/havelib/rpathlzyx/usez.c: New file, from
22180         gettext/autoconf-lib-link.
22181         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22182         gettext/autoconf-lib-link.
22183         * tests/havelib/rpathlzyx/configure.ac: New file, from
22184         gettext/autoconf-lib-link with modifications.
22185         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22186         with modifications.
22187
22188 2010-04-02  Bruno Haible  <bruno@clisp.org>
22189
22190         gnulib-tool: Create distributed built sources also for the tests.
22191         * gnulib-tool (func_create_testdir): Also generate distributed built
22192         sources in the tests directory.
22193
22194 2010-04-02  Bruno Haible  <bruno@clisp.org>
22195
22196         gnulib-tool: Obey user's environment variables.
22197         * gnulib-tool (func_create_testdir): When creating built sources,
22198         respect the environment variables for autoconf, automake, etc. given by
22199         the user.
22200
22201 2010-04-02  Bruno Haible  <bruno@clisp.org>
22202
22203         gnulib-tool: Provide the value of --m4-base to modules.
22204         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22205         of gl_m4_base.
22206
22207 2010-04-02  Eric Blake  <eblake@redhat.com>
22208
22209         maint.mk: fix some fallout
22210         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22211         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22212
22213 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22214
22215         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22216         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22217         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22218         (sc_cast_of_x_alloc_return_value): Likewise.
22219         (sc_cast_of_alloca_return_value): Likewise.
22220         (sc_space_tab): Likewise.
22221         (sc_prohibit_atoi_atof): Likewise.
22222         (sc_prohibit_magic_number_exit): Likewise.
22223         (sc_error_exit_success): Likewise.
22224         (sc_file_system): Likewise.
22225         (sc_prohibit_have_config_h): Likewise.
22226         (sc_require_config_h): Likewise.
22227         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22228         (sc_obsolete_symbols): Likewise.
22229         (sc_changelog): Likewise.
22230         (sc_program_name): Likewise.
22231         (sc_the_the): Likewise.
22232         (sc_trailing_blank): Likewise.
22233         (sc_two_space_separator_in_usage): Likewise.
22234         (sc_useless_cpp_parens): Likewise.
22235         (sc_GPL_version): Likewise.
22236         (sc_GFDL_version): Likewise.
22237         (sc_texinfo_acronym): Likewise.
22238         (sc_prohibit_cvs_keyword): Likewise.
22239         (sc_prohibit_stat_st_blocks): Likewise.
22240         (sc_prohibit_S_IS_definition): Likewise.
22241         (sc_redundant_const): Likewise.
22242         (sc_makefile_TAB_only_indentation): Likewise.
22243         (sc_m4_quote_check): Likewise.
22244         (sc_makefile_path_separator_check): Likewise.
22245         (sc_copyright_check): Likewise.
22246         (sc_Wundef_boolean): Likewise.
22247         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22248
22249         maint.mk: match 0 or more whitespace-before-function-call '('
22250         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22251         that have zero or two-and-more spaces between the function name
22252         and the open parenthesis.
22253         (sc_error_message_warn_fatal): Likewise.
22254         (sc_error_message_uppercase): Likewise.
22255         (sc_error_message_period): Likewise.
22256
22257 2010-03-31  Eric Blake  <eblake@redhat.com>
22258
22259         maint.mk: check for [ as well as test
22260         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22261         Based on a libvirt report by Matthias Bolte.
22262
22263         gnumakefile: don't squelch _version output
22264         * top/GNUmakefile (_version): Create one-shot dependency rather
22265         than using $(shell) when version must be regenerated.
22266         (_autoreconf): Run verbosely, by default.
22267
22268         sys_time: avoid compiler warnings
22269         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22270         unconditional, fixing regression from 2010-03-29.
22271         Reported by Simon Josefsson.
22272
22273 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22274
22275         maint.mk: s/_header_without_use/_sc_header_without_use/
22276         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22277         (sc_prohibit_assert_without_use): Use the new name.
22278         (sc_prohibit_close_stream_without_use): Likewise.
22279         (sc_prohibit_getopt_without_use): Likewise.
22280         (sc_prohibit_quotearg_without_use): Likewise.
22281         (sc_prohibit_quote_without_use): Likewise.
22282         (sc_prohibit_long_options_without_use): Likewise.
22283         (sc_prohibit_inttostr_without_use): Likewise.
22284         (sc_prohibit_ignore_value_without_use): Likewise.
22285         (sc_prohibit_error_without_use): Likewise.
22286         (sc_prohibit_xalloc_without_use): Likewise.
22287         (sc_prohibit_hash_without_use): Likewise.
22288         (sc_prohibit_hash_pjw_without_use): Likewise.
22289         (sc_prohibit_safe_read_without_use): Likewise.
22290         (sc_prohibit_argmatch_without_use): Likewise.
22291         (sc_prohibit_canonicalize_without_use): Likewise.
22292         (sc_prohibit_root_dev_ino_without_use): Likewise.
22293         (sc_prohibit_openat_without_use): Likewise.
22294         (sc_prohibit_c_ctype_without_use): Likewise.
22295         (sc_prohibit_signal_without_use): Likewise.
22296         (sc_prohibit_intprops_without_use): Likewise.
22297
22298 2010-03-30  Eric Blake  <eblake@redhat.com>
22299
22300         maint: improve module indicators
22301         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22302         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22303         columns, and avoid extra macro expansion.
22304
22305         fdopendir: work around FreeBSD bug
22306         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22307         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22308         * modules/dirent (Makefile.am): Substitute it.
22309         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22310         declaration.
22311         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22312         fix.
22313         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22314
22315 2010-03-29  Bruno Haible  <bruno@clisp.org>
22316
22317         Emit #pragma system_header after the inclusion guard, not before.
22318         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22319         guard that spans the entire file, not before. This enables an
22320         optimization in GCC's preprocessor.
22321         * lib/ctype.in.h: Likewise.
22322         * lib/dirent.in.h: Likewise.
22323         * lib/errno.in.h: Likewise.
22324         * lib/float.in.h: Likewise.
22325         * lib/getopt.in.h: Likewise.
22326         * lib/iconv.in.h: Likewise.
22327         * lib/langinfo.in.h: Likewise.
22328         * lib/locale.in.h: Likewise.
22329         * lib/math.in.h: Likewise.
22330         * lib/netdb.in.h: Likewise.
22331         * lib/netinet_in.in.h: Likewise.
22332         * lib/pty.in.h: Likewise.
22333         * lib/sched.in.h: Likewise.
22334         * lib/se-selinux.in.h: Likewise.
22335         * lib/search.in.h: Likewise.
22336         * lib/spawn.in.h: Likewise.
22337         * lib/stdarg.in.h: Likewise.
22338         * lib/stdint.in.h: Likewise.
22339         * lib/string.in.h: Likewise.
22340         * lib/strings.in.h: Likewise.
22341         * lib/sys_file.in.h: Likewise.
22342         * lib/sys_ioctl.in.h: Likewise.
22343         * lib/sys_time.in.h: Likewise.
22344         * lib/sys_times.in.h: Likewise.
22345         * lib/sys_utsname.in.h: Likewise.
22346         * lib/sys_wait.in.h: Likewise.
22347         * lib/sysexits.in.h: Likewise.
22348         * lib/wctype.in.h: Likewise.
22349
22350 2010-03-28  James Youngman  <jay@gnu.org>
22351
22352         save-cwd: don't leak a file descriptor when the caller execs.
22353         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22354         saved file descriptor.
22355         * modules/save-cwd (Depends-on): Depend on cloexec.
22356
22357 2010-03-29  Bruno Haible  <bruno@clisp.org>
22358
22359         Remove vestiges of fts-lgpl module.
22360         * lib/fts_.h: Assume GNULIB_FTS is 1.
22361         * lib/fts.c: Likewise.
22362         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22363
22364 2010-03-28  Bruno Haible  <bruno@clisp.org>
22365
22366         Fix definition of tests witness macro.
22367         * gnulib-tool (func_import): Fix definition of witness macro.
22368
22369 2010-03-28  Bruno Haible  <bruno@clisp.org>
22370
22371         Fix ioctl's protoype on glibc systems.
22372         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22373         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22374         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22375         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22376         signature. If not, arrange to replace the ioctl function.
22377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22378         REPLACE_IOCTL.
22379         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22380         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22381         Reported by Ludovic Courtès <ludo@gnu.org>.
22382
22383 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22384
22385         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22386         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22387         made it so grep -r --include=GLOB* ... did not work.
22388
22389 2010-03-26  Jim Meyering  <meyering@redhat.com>
22390             Eric Blake  <eblake@redhat.com>
22391
22392         maint.mk: prohibit use of test's -o and -a operators
22393         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22394
22395 2010-03-28  Bruno Haible  <bruno@clisp.org>
22396
22397         Remove unused GNULIB_XYZ macro definitions.
22398         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22399         invocation.
22400
22401 2010-03-28  Bruno Haible  <bruno@clisp.org>
22402
22403         Mark privileged tests modules.
22404         * modules/idpriv-drop-tests (Status): New section.
22405         * modules/idpriv-droptemp-tests (Status): New section.
22406
22407 2010-03-28  Bruno Haible  <bruno@clisp.org>
22408
22409         Split C++ tests into separate tests modules.
22410         * modules/dirent-c++-tests: New file, extracted from
22411         modules/dirent-tests.
22412         * modules/dirent-tests: Depend on it.
22413         * modules/fcntl-h-c++-tests: New file, extracted from
22414         modules/fcntl-h-tests.
22415         * modules/fcntl-h-tests: Depend on it.
22416         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22417         * modules/glob-tests: Depend on it.
22418         * modules/iconv-h-c++-tests: New file, extracted from
22419         modules/iconv-h-tests.
22420         * modules/iconv-h-tests: Depend on it.
22421         * modules/langinfo-c++-tests: New file, extracted from
22422         modules/langinfo-tests.
22423         * modules/langinfo-tests: Depend on it.
22424         * modules/locale-c++-tests: New file, extracted from
22425         modules/locale-tests.
22426         * modules/locale-tests: Depend on it.
22427         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22428         * modules/math-tests: Depend on it.
22429         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22430         * modules/pty-tests: Depend on it.
22431         * modules/search-c++-tests: New file, extracted from
22432         modules/search-tests.
22433         * modules/search-tests: Depend on it.
22434         * modules/signal-c++-tests: New file, extracted from
22435         modules/signal-tests.
22436         * modules/signal-tests: Depend on it.
22437         * modules/spawn-c++-tests: New file, extracted from
22438         modules/spawn-tests.
22439         * modules/spawn-tests: Depend on it.
22440         * modules/stdio-c++-tests: New file, extracted from
22441         modules/stdio-tests.
22442         * modules/stdio-tests: Depend on it.
22443         * modules/stdlib-c++-tests: New file, extracted from
22444         modules/stdlib-tests.
22445         * modules/stdlib-tests: Depend on it.
22446         * modules/string-c++-tests: New file, extracted from
22447         modules/string-tests.
22448         * modules/string-tests: Depend on it.
22449         * modules/sys_ioctl-c++-tests: New file, extracted from
22450         modules/sys_ioctl-tests.
22451         * modules/sys_ioctl-tests: Depend on it.
22452         * modules/sys_select-c++-tests: New file, extracted from
22453         modules/sys_select-tests.
22454         * modules/sys_select-tests: Depend on it.
22455         * modules/sys_socket-c++-tests: New file, extracted from
22456         modules/sys_socket-tests.
22457         * modules/sys_socket-tests: Depend on it.
22458         * modules/sys_stat-c++-tests: New file, extracted from
22459         modules/sys_stat-tests.
22460         * modules/sys_stat-tests: Depend on it.
22461         * modules/sys_time-c++-tests: New file, extracted from
22462         modules/sys_time-tests.
22463         * modules/sys_time-tests: Depend on it.
22464         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22465         * modules/time-tests: Depend on it.
22466         * modules/unistd-c++-tests: New file, extracted from
22467         modules/unistd-tests.
22468         * modules/unistd-tests: Depend on it.
22469         * modules/wchar-c++-tests: New file, extracted from
22470         modules/wchar-tests.
22471         * modules/wchar-tests: Depend on it.
22472         * modules/wctype-c++-tests: New file, extracted from
22473         modules/wctype-tests.
22474         * modules/wctype-tests: Depend on it.
22475         Reported by Simon Josefsson.
22476
22477 2010-03-28  Bruno Haible  <bruno@clisp.org>
22478
22479         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22480         * gnulib-tool (func_exists_module): New function, extracted from
22481         func_verify_module.
22482         (func_verify_module): Use it.
22483         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22484         'foo' only if 'foo' exists.
22485         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22486         module.
22487
22488 2010-03-28  Bruno Haible  <bruno@clisp.org>
22489
22490         gnulib-tool: Add support for special categories of tests.
22491         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22492         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22493         (func_usage): Document them.
22494         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22495         inc_unportable_tests, inc_all_tests): New variables.
22496         (func_acceptable): Consider these variables.
22497         (func_modules_transitive_closure): Make it work when the 'Status' field
22498         consists of multiple words.
22499         (func_import): Store and restore the values of inc_cxx_tests,
22500         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22501         inc_all_tests in gnulib-comp.m4.
22502         (func_create_testdir): Set inc_all_tests to true.
22503         * doc/gnulib.texi (Extra tests modules): New section.
22504         Suggested by Jim Meyering.
22505
22506 2010-03-28  Bruno Haible  <bruno@clisp.org>
22507
22508         ansi-c++-opt: Allow turning off the C++ build by default.
22509         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22510         gl_CXX_CHOICE_DEFAULT_NO is defined.
22511         Requested by Eric Blake.
22512
22513 2010-03-28  Bruno Haible  <bruno@clisp.org>
22514
22515         unistd: Avoid #define replacements in C++ mode.
22516         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22517         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22518         setsockopt, shutdown, select): In C++, attach a warning to the function
22519         if possible, rather than #defining the symbol to a dysfunctional alias.
22520         Reported by John W. Eaton <jwe@gnu.org>.
22521
22522 2010-03-28  Bruno Haible  <bruno@clisp.org>
22523
22524         Fix link errors on mingw.
22525         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22526         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22527         $(LIBSOCKET).
22528         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22529         $(LIBSOCKET).
22530
22531 2010-03-28  Bruno Haible  <bruno@clisp.org>
22532             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22533
22534         lib-ignore: Determine different options for different compilers.
22535         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22536         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22537         Add comments.
22538         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22539         * NEWS: Mention the change.
22540
22541 2010-03-27  Bruno Haible  <bruno@clisp.org>
22542
22543         Remove unused GNULIB_XYZ macro definitions.
22544         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22545         * modules/fseek (configure.ac): Likewise.
22546         * modules/ioctl (configure.ac): Likewise.
22547         * modules/open (configure.ac): Likewise.
22548         * modules/stdlib-safer (configure.ac): Likewise.
22549
22550 2010-03-27  Bruno Haible  <bruno@clisp.org>
22551
22552         Add a remark about certain modules.
22553         * modules/malloc (Comment): New section.
22554         * modules/realloc (Comment): Likewise.
22555         * modules/sigpipe (Comment): Likewise.
22556
22557 2010-03-27  Bruno Haible  <bruno@clisp.org>
22558
22559         Resolve conflict between the two kinds of module indicators.
22560         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22561         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22562         * modules/canonicalize (configure.ac): Invoke
22563         gl_MODULE_INDICATOR_FOR_TESTS.
22564         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22565         GNULIB_XYZ.
22566         * tests/test-dirent-c++.cc: Likewise.
22567         * tests/test-dirent-safer.c: Likewise.
22568         * tests/test-dup2.c: Likewise.
22569         * tests/test-fchdir.c: Likewise.
22570         * tests/test-fcntl-h-c++.cc: Likewise.
22571         * tests/test-getopt.c: Likewise.
22572         * tests/test-getopt.h: Likewise.
22573         * tests/test-langinfo-c++.cc: Likewise.
22574         * tests/test-locale-c++.cc: Likewise.
22575         * tests/test-math-c++.cc: Likewise.
22576         * tests/test-pty-c++.cc: Likewise.
22577         * tests/test-search-c++.cc: Likewise.
22578         * tests/test-signal-c++.cc: Likewise.
22579         * tests/test-spawn-c++.cc: Likewise.
22580         * tests/test-stdio-c++.cc: Likewise.
22581         * tests/test-stdlib-c++.cc: Likewise.
22582         * tests/test-string-c++.cc: Likewise.
22583         * tests/test-sys_ioctl-c++.cc: Likewise.
22584         * tests/test-sys_select-c++.cc: Likewise.
22585         * tests/test-sys_socket-c++.cc: Likewise.
22586         * tests/test-sys_stat-c++.cc: Likewise.
22587         * tests/test-sys_time-c++.cc: Likewise.
22588         * tests/test-time-c++.cc: Likewise.
22589         * tests/test-unistd-c++.cc: Likewise.
22590         * tests/test-wchar-c++.cc: Likewise.
22591         * tests/uninorm/test-u8-nfc.c: Likewise.
22592         * tests/uninorm/test-u8-nfd.c: Likewise.
22593         * tests/uninorm/test-u8-nfkc.c: Likewise.
22594         * tests/uninorm/test-u8-nfkd.c: Likewise.
22595         * tests/uninorm/test-u16-nfc.c: Likewise.
22596         * tests/uninorm/test-u16-nfd.c: Likewise.
22597         * tests/uninorm/test-u16-nfkc.c: Likewise.
22598         * tests/uninorm/test-u16-nfkd.c: Likewise.
22599         * tests/uninorm/test-u32-nfc.c: Likewise.
22600         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22601         * tests/uninorm/test-u32-nfd.c: Likewise.
22602         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22603         * tests/uninorm/test-u32-nfkc.c: Likewise.
22604         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22605         * tests/uninorm/test-u32-nfkd.c: Likewise.
22606         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22607         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22608
22609 2010-03-27  Bruno Haible  <bruno@clisp.org>
22610
22611         Distinguish two kinds of module indicators.
22612         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22613         gl_MODULE_INDICATOR.
22614         (gl_MODULE_INDICATOR): New macro.
22615         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22616         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22617         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22618         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22619         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22620         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22621         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22622         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22623         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22624         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22625         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22626         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22628         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22629         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22630         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22631         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22632         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22633         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22634         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22635         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22636         * modules/cloexec (configure.ac): Likewise.
22637         * modules/getopt-gnu (configure.ac): Likewise.
22638         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22639         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22640         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22641         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22642
22643 2010-03-27  Bruno Haible  <bruno@clisp.org>
22644
22645         New module description field 'Comment'.
22646         * gnulib-tool: New option --extract-comment.
22647         (func_usage): Document it.
22648         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22649         (func_get_comment): New function.
22650         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22651
22652 2010-03-27  Bruno Haible  <bruno@clisp.org>
22653
22654         Addendum to 2010-02-07 commit.
22655         * gnulib-tool (func_usage): Document --extract-applicability option.
22656
22657 2010-03-27  Bruno Haible  <bruno@clisp.org>
22658
22659         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22660         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22661         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22662         rather than link errors.
22663
22664 2010-03-27  Bruno Haible  <bruno@clisp.org>
22665
22666         Avoid side effects from tests-related modules on the compilation of lib.
22667         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22668         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22669         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22670         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22671         macro.
22672         (func_import): Define a witness macro. Assign it a value that depends
22673         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22674         tests-related modules.
22675         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22676         Reported by Jim Meyering.
22677
22678 2010-03-27  Bruno Haible  <bruno@clisp.org>
22679
22680         Factorize common .m4 code.
22681         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22682         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22683         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22684         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22685         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22686         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22687         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22688         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22689         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22690         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22691         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22692         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22693         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22694         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22695         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22696         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22697         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22698         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22700         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22701         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22703         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22704         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22705         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22706         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22707         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22709         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22710         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22711         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22712         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22713
22714 2010-03-27  Bruno Haible  <bruno@clisp.org>
22715
22716         Fix a compilation error on Cygwin with g++ >= 4.3.
22717         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22718         if it is undefined or if we alias it to chmod.
22719         (lstat): Don't warn about the use of this function if it is undefined
22720         or if we alias it to stat.
22721         Reported by Simon Josefsson.
22722
22723 2010-03-27  Bruno Haible  <bruno@clisp.org>
22724
22725         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22726         * modules/getlogin (configure.ac): Update.
22727
22728         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22729         * modules/getlogin_r (configure.ac): Update.
22730
22731         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22733         * modules/inet_ntop (configure.ac): Update.
22734
22735         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22736         * modules/inet_pton (configure.ac): Update.
22737
22738         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22739         * modules/mbslen (configure.ac): Update.
22740
22741         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22742         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22743         * modules/forkpty (configure.ac): Update.
22744         * modules/openpty (configure.ac): Update.
22745
22746 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22747
22748         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22749         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22750
22751 2010-03-25  Eric Blake  <eblake@redhat.com>
22752
22753         maint: use pragma consistently across replacement headers
22754         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22755         * lib/dirent.in.h (system_header): Likewise.
22756         * lib/errno.in.h (system_header): Likewise.
22757         * lib/float.in.h (system_header): Likewise.
22758         * lib/getopt.in.h (system_header): Likewise.
22759         * lib/iconv.in.h (system_header): Likewise.
22760         * lib/inttypes.in.h (system_header): Likewise.
22761         * lib/langinfo.in.h (system_header): Likewise.
22762         * lib/locale.in.h (system_header): Likewise.
22763         * lib/math.in.h (system_header): Likewise.
22764         * lib/netdb.in.h (system_header): Likewise.
22765         * lib/netinet_in.in.h (system_header): Likewise.
22766         * lib/pty.in.h (system_header): Likewise.
22767         * lib/sched.in.h (system_header): Likewise.
22768         * lib/se-selinux.in.h (system_header): Likewise.
22769         * lib/search.in.h (system_header): Likewise.
22770         * lib/spawn.in.h (system_header): Likewise.
22771         * lib/stdarg.in.h (system_header): Likewise.
22772         * lib/stdint.in.h (system_header): Likewise.
22773         * lib/string.in.h (system_header): Likewise.
22774         * lib/strings.in.h (system_header): Likewise.
22775         * lib/sys_file.in.h (system_header): Likewise.
22776         * lib/sys_ioctl.in.h (system_header): Likewise.
22777         * lib/sys_socket.in.h (system_header): Likewise.
22778         * lib/sys_times.in.h (system_header): Likewise.
22779         * lib/sys_utsname.in.h (system_header): Likewise.
22780         * lib/sys_wait.in.h (system_header): Likewise.
22781         * lib/sysexits.in.h (system_header): Likewise.
22782         * lib/unistd.in.h (system_header): Likewise.
22783         * lib/wctype.in.h (system_header): Likewise.
22784
22785         arpa/inet: fix mingw compilation warning
22786         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22787         Reported by Matthew Bolte.
22788
22789 2010-03-25  Bruno Haible  <bruno@clisp.org>
22790
22791         Avoid collision between gnulib wrapper and libintl wrapper.
22792         * lib/printf.c (printf): Don't define if a printf wrapper is already
22793         defined in intl/printf.c.
22794         Reported by Michel Boaventura <michel@michelboaventura.com>.
22795
22796 2010-03-25  Bruno Haible  <bruno@clisp.org>
22797
22798         Use ANSI C.
22799         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22800
22801 2010-03-25  Bruno Haible  <bruno@clisp.org>
22802
22803         Minor formatting changes.
22804         * lib/acosl.c: Insert space before function argument list.
22805         * lib/argz.c: Likewise.
22806         * lib/asinl.c: Likewise.
22807         * lib/expl.c: Likewise.
22808         * lib/gen-uni-tables.c: Likewise.
22809         * lib/gettext.h: Likewise.
22810         * lib/glthread/lock.h: Likewise.
22811         * lib/tanl.c: Likewise.
22812         * lib/uniname/uniname.c: Likewise.
22813         * tests/test-idpriv-drop.c: Likewise.
22814         * tests/test-idpriv-droptemp.c: Likewise.
22815         * tests/test-lock.c: Likewise.
22816         * tests/test-tls.c: Likewise.
22817         * lib/argp-help.c: Insert space before function-like macro argument
22818         list.
22819         * lib/memcmp.c: Likewise.
22820         * tests/test-base64.c: Likewise.
22821         * lib/localename.c: Insert space before sizeof's argument list.
22822         * lib/safe-alloc.h: Likewise.
22823         * lib/file-set.h: Insert space before macro argument list.
22824         * tests/test-argp.c: Likewise.
22825         * lib/argp-namefrob.h: Insert space before function parameter list.
22826         * lib/getaddrinfo.c: Likewise.
22827         * lib/netdb.in.h: Likewise.
22828         * lib/parse-duration.h: Likewise.
22829         * lib/parse-duration.c: Likewise.
22830         * lib/poll.c: Likewise.
22831         * lib/select.c: Likewise.
22832         * lib/trim.h: Likewise.
22833         * tests/test-usleep.c: Likewise.
22834         * lib/ldexpl.c: Insert space before function parameter list and before
22835         function argument list.
22836         * lib/logl.c: Likewise.
22837         * lib/sqrtl.c: Likewise.
22838         * lib/trim.c: Likewise.
22839         * lib/cosl.c: Use GNU style indentation. Insert space before function
22840         argument list.
22841         * lib/sinl.c: Likewise.
22842         * lib/tsearch.c: Insert space after 'for'.
22843         Reported by Jim Meyering.
22844
22845 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22846
22847         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22848         config header before grepping, as it's not present before
22849         autoreconf/configure are run.  Reported by Simon Josefsson.
22850
22851 2010-03-23  Bruno Haible  <bruno@clisp.org>
22852
22853         pt_chown: Make it work with automake < 1.11.
22854         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22855         Reported by Simon Josefsson.
22856
22857 2010-03-23  Bruno Haible  <bruno@clisp.org>
22858
22859         pt_chown: Don't depend on GPLed modules.
22860         * lib/pt_chown.c: Don't include idpriv.h.
22861         (main): Don't drop privileges.
22862         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22863         Reported by Simon Josefsson.
22864
22865 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22866
22867         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22868         suggestions from karl@freefriends.org (Karl Berry).
22869
22870 2010-03-22  Eric Blake  <eblake@redhat.com>
22871
22872         gethostname: further tweaks
22873         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22874         are overriding gethostname.
22875         Suggested by Bruno Haible.
22876
22877 2010-03-21  Bruno Haible  <bruno@clisp.org>
22878
22879         Fix comments.
22880         * lib/forkpty.c (rpl_forkpty): Fix comment.
22881         * lib/openpty.c (rpl_openpty): Likewise.
22882         Reported by Eric Blake.
22883
22884 2010-03-22  Eric Blake  <eblake@redhat.com>
22885
22886         gethostname: fix build on mingw
22887         * lib/unistd.in.h (includes): Work around fact that mingw
22888         <winsock2.h> re-includes <unistd.h>, by avoiding any
22889         redeclarations if we are being included by <winsock2.h>.
22890         Reported by Matthias Bolte.
22891
22892 2010-03-21  Bruno Haible  <bruno@clisp.org>
22893
22894         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22895         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22896         modifications.
22897         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22898         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22899         provide the replacement.
22900         * modules/forkpty (Depends-on): Add openpty, login_tty.
22901         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22902         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22903         * doc/glibc-functions/forkpty.texi: More supported platforms.
22904         * config/srclist.txt: Add forkpty.c (commented).
22905
22906 2010-03-21  Bruno Haible  <bruno@clisp.org>
22907
22908         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22909         (Makefile.am): Verify that PTY_LIB is defined.
22910
22911         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22912
22913 2010-03-21  Bruno Haible  <bruno@clisp.org>
22914
22915         Tests for module 'login_tty'.
22916         * modules/login_tty-tests: New file.
22917         * tests/test-login_tty.c: New file.
22918
22919         New module 'login_tty'.
22920         * lib/login_tty.c: New file.
22921         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22922         * modules/login_tty: New file.
22923         * doc/glibc-functions/login_tty.texi: Mention the new module.
22924
22925 2010-03-21  Bruno Haible  <bruno@clisp.org>
22926
22927         login_tty: Documentation.
22928         * doc/glibc-functions/login_tty.texi: New file.
22929         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22930
22931 2010-03-21  Bruno Haible  <bruno@clisp.org>
22932
22933         pty: Consistent macro naming.
22934         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22935         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22936         * modules/pty (configure.ac): Update.
22937
22938 2010-03-21  Bruno Haible  <bruno@clisp.org>
22939
22940         Tests for openpty: Make stricter.
22941         * tests/test-openpty.c (main): Add test of canonical processing and
22942         erase.
22943         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22944
22945         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22946         * lib/openpty.c (openpty): New replacement function.
22947         * lib/pty.in.h: Include <termios.h>.
22948         (openpty): Update declaration. Add comments.
22949         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22950         is not declared, arrange to provide the replacement. Check for _getpty
22951         and posix_openpt.
22952         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22953         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22954         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22955         * modules/pty-tests (test_pty_c___LDADD): New variable.
22956         * doc/glibc-functions/openpty.texi: More supported platforms.
22957
22958 2010-03-21  Bruno Haible  <bruno@clisp.org>
22959
22960         setenv: Tweaks.
22961         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22962         the test program.
22963         * doc/posix-functions/setenv.texi: Update platforms list.
22964
22965 2010-03-21  Bruno Haible  <bruno@clisp.org>
22966
22967         New module 'unlockpt'.
22968         * lib/unlockpt.c: New file, from glibc with modifications.
22969         * m4/unlockpt.m4: New file.
22970         * modules/unlockpt: New file.
22971         * lib/stdlib.in.h (unlockpt): New declaration.
22972         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22973         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22974         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22975         HAVE_UNLOCKPT.
22976         * doc/posix-functions/unlockpt.texi: Mention the new module.
22977         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22978         * config/srclist.txt: Add unlockpt.c (commented).
22979
22980 2010-03-21  Jim Meyering  <meyering@redhat.com>
22981
22982         maint.mk: prohibit inclusion of "intprops.h" without use
22983         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22984
22985 2010-03-21  Bruno Haible  <bruno@clisp.org>
22986
22987         New module 'grantpt'.
22988         * lib/grantpt.c: New file, from glibc with modifications.
22989         * m4/grantpt.m4: New file.
22990         * modules/grantpt: New file.
22991         * lib/stdlib.in.h (grantpt): New declaration.
22992         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22993         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22994         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22995         HAVE_GRANTPT.
22996         * doc/posix-functions/grantpt.texi: Mention the new module.
22997         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22998         * config/srclist.txt: Add grantpt.c (commented).
22999
23000 2010-03-21  Bruno Haible  <bruno@clisp.org>
23001
23002         New module 'pt_chown'.
23003         * lib/pt_chown.c: New file, from glibc with modifications.
23004         * lib/pty-private.h: New file, from glibc with modifications.
23005         * modules/pt_chown: New file.
23006         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23007
23008 2010-03-21  Bruno Haible  <bruno@clisp.org>
23009
23010         Tests for module 'ptsname'.
23011         * modules/ptsname-tests: New file.
23012         * tests/test-ptsname.c: New file.
23013
23014         New module 'ptsname'.
23015         * lib/ptsname.c: New file, from glibc with modifications.
23016         * m4/ptsname.m4: New file.
23017         * modules/ptsname: New file.
23018         * lib/stdlib.in.h (ptsname): New declaration.
23019         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23020         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23021         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23022         HAVE_PTSNAME.
23023         * doc/posix-functions/ptsname.texi: Mention the new module.
23024         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23025         * config/srclist.txt: Add ptsname.c (commented).
23026
23027 2010-03-21  Bruno Haible  <bruno@clisp.org>
23028
23029         Tests for module 'ttyname_r'.
23030         * modules/ttyname_r-tests: New file.
23031         * tests/test-ttyname_r.c: New file.
23032
23033         New module 'ttyname_r'.
23034         * lib/ttyname_r.c: New file.
23035         * m4/ttyname_r.m4: New file.
23036         * modules/ttyname_r: New file.
23037         * lib/unistd.in.h (ttyname_r): New declaration.
23038         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23039         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23040         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23041         HAVE_TTYNAME_R.
23042         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23043         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23044
23045 2010-03-20  Bruno Haible  <bruno@clisp.org>
23046
23047         signal: Undefine macro definitions in C++ mode.
23048         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23049         sigfillset): Undefine macro definitions from the system header in C++
23050         mode.
23051         Reported by John W. Eaton <jwe@gnu.org>.
23052
23053 2010-03-20  Bruno Haible  <bruno@clisp.org>
23054
23055         Ensure no #include statements inside extern "C" { ... }.
23056         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23057         contain #include statements.
23058         * lib/time.in.h: Likewise.
23059
23060 2010-03-20  Bruno Haible  <bruno@clisp.org>
23061
23062         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23063         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23064         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23065         Reported by John W. Eaton <jwe@gnu.org>.
23066
23067 2010-03-20  Bruno Haible  <bruno@clisp.org>
23068
23069         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23070         Reported by Jim Meyering.
23071
23072 2010-03-20  Bruno Haible  <bruno@clisp.org>
23073
23074         pipe: Set errno upon failure.
23075         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23076         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23077         errno value in error message.
23078
23079 2010-03-20  Bruno Haible  <bruno@clisp.org>
23080             Jim Meyering  <meyering@redhat.com>
23081
23082         lchown: Avoid "unused variable" warning.
23083         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23084
23085 2010-03-20  Bruno Haible  <bruno@clisp.org>
23086
23087         Work around unlink() bug on MacOS X 10.5.6.
23088         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23089         attempting to unlink a parent directory.
23090         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23091         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23092         activate for the replacement function.
23093         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23094
23095 2010-03-20  Bruno Haible  <bruno@clisp.org>
23096
23097         Fix link errors on Solaris 8.
23098         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23099         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23100
23101 2010-03-19  Jim Meyering  <meyering@redhat.com>
23102
23103         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23104         The _LIBC implementation of build_range_exp correctly honors the
23105         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23106         However, the non-_LIBC implementation would ignore that syntax-bit
23107         flag and return REG_ERANGE unconditionally.
23108         This change makes it honor that flag.
23109         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23110         Make two pointer parameters "const".
23111         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23112         (parse_bracket_exp): Update caller.
23113
23114         regex.m4: correct the reversed range endpoint ([b-a]) test
23115         * m4/regex.m4: When requiring that [b-a] evoke failure,
23116         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23117         test pass once again for x86-based systems.
23118
23119 2010-03-19  Bruno Haible  <bruno@clisp.org>
23120
23121         scandir: Fix link error on Solaris 8.
23122         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23123         macros.
23124
23125 2010-03-19  Bruno Haible  <bruno@clisp.org>
23126
23127         getusershell: Fix documentation.
23128         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23129         module.
23130         * doc/glibc-functions/setusershell.texi: Likewise.
23131
23132         getusershell: Provide declaration, missing on Solaris 9.
23133         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23134         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23135         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23136         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23138         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23139         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23140         HAVE_GETUSERSHELL.
23141         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23142
23143 2010-03-19  Bruno Haible  <bruno@clisp.org>
23144
23145         wctype: Provide iswblank function.
23146         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23147         exists and is fine.
23148         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23149         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23150         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23151         * doc/posix-functions/iswblank.texi: Update.
23152
23153 2010-03-19  Bruno Haible  <bruno@clisp.org>
23154
23155         Tests of module 'pty' in C++ mode.
23156         * modules/pty-tests: New file.
23157         * tests/test-pty-c++.cc: New file.
23158         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23159
23160 2010-03-19  Eric Blake  <eblake@redhat.com>
23161
23162         logb: fix documentation
23163         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23164         1.5 declaration bug.
23165
23166         forkpty, openpty: prefer glibc's const-safe prototype
23167         * lib/forkpty.c (rpl_forkpty): New file.
23168         * lib/openpty.c (rpl_openpty): Likewise.
23169         * modules/forkpty (Files): Distribute it.
23170         * modules/openpty (Files): Likewise.
23171         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23172         check...
23173         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23174         replacement for for non-const BSD signature.
23175         * modules/pty (Makefile.am): Substitute witnesses.
23176         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23177         * tests/test-forkpty.c: Update signature check.
23178         * tests/test-openpty.c: Likewise.
23179         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23180         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23181
23182         forkpty, openpty: split functions into new modules
23183         * modules/pty (Makefile.am): Substitute new witnesses.
23184         (Libraries): Move library detection...
23185         * modules/forkpty: ...into new module.
23186         * modules/openpty: Another new module.
23187         * modules/pty-tests: Rename and split...
23188         * modules/forkpty-tests: ...to this...
23189         * modules/openpty-tests: ...and this.
23190         * tests/test-pty.c: Rename and split...
23191         * tests/test-forkpty.c: ...to this...
23192         * tests/test-openpty.c: ...and this.
23193         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23194         (gl_PTY): Split library searching...
23195         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23196         (gl_FORKPTY, gl_OPENPTY): New macros.
23197         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23198         * NEWS: Mention the split.
23199         * MODULES.html.sh (Misc): Document the modules.
23200         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23201         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23202
23203         pty: improve replacement header
23204         * lib/pty.in.h: New file.
23205         * modules/pty (Files): Ship it.
23206         (Makefile.am): Always build replacement.
23207         * m4/pty.m4: Rename...
23208         * m4/pty_h.m4: ...to this.
23209         (gl_PTY): Modernize setting of witness macros; update check of
23210         forkpty to take proper advantage of cache.
23211         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23212
23213         getopt: avoid compiler warning
23214         * lib/getopt.c (attribute_hidden): Remove unused macro.
23215
23216 2010-03-18  Bruno Haible  <bruno@clisp.org>
23217
23218         Fix link errors on Solaris 8.
23219         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23220         * modules/search-tests (test_search_c___LDADD): Likewise.
23221         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23222         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23223         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23224         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23225         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23226         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23227         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23228
23229 2010-03-18  Bruno Haible  <bruno@clisp.org>
23230
23231         Fix bug introduced on 2010-03-14.
23232         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23233         (gl_SPAWN_H): Require it.
23234         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23235         Reported by Simon Josefsson.
23236
23237 2010-03-18  Bruno Haible  <bruno@clisp.org>
23238
23239         Fix typo introduced on 2009-12-31.
23240         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23241         posix_spawn_file_actions_adddup2.
23242
23243 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23244         and Eric Blake  <eblake@redhat.com>
23245
23246         test-vc-list-files-git: make more robust
23247         * tests/test-vc-list-files-git.sh: Unset problematic environment
23248         variables.  Chain commands together.
23249
23250 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23251
23252         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23253         `AC_CHECK_DECL' invocation.
23254
23255 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23256
23257         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23258         appears before executable statements. Suggested by Petr Sumbera
23259         <Petr.Sumbera@Sun.COM>.
23260
23261 2010-03-14  Bruno Haible  <bruno@clisp.org>
23262
23263         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23264         portability problems. Instead use a simpler test.
23265         (main): Check that invalid arguments are rejected only on Linux.
23266
23267 2010-03-14  Bruno Haible  <bruno@clisp.org>
23268
23269         Fix bug introduced on 2009-12-31.
23270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23271         gl_PREREQ_SYS_H_WINSOCK2 always.
23272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23273         SYS_SOCKET_H variable.
23274         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23275         Update comments.
23276         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23277         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23278         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23279         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23280         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23281
23282 2010-03-14  Bruno Haible  <bruno@clisp.org>
23283
23284         Fix values returned by sinl, cosl.
23285         * lib/trigl.h: Add specification comments.
23286         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23287         that combines the values from the precomputed table with the values of
23288         the Chebyshev polynomials.
23289
23290 2010-03-14  Bruno Haible  <bruno@clisp.org>
23291
23292         Fix compilation error when modules 'posix_spawn[p]' are not used.
23293         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23294         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23295
23296 2010-03-14  Bruno Haible  <bruno@clisp.org>
23297
23298         Fix compilation error on mingw when module 'time_r' is not used.
23299         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23300         is 1.
23301         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23302         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23303         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23304         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23305
23306 2010-03-14  Bruno Haible  <bruno@clisp.org>
23307
23308         Fix compilation error with Sun C.
23309         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23310         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23311         instead of GCC specific ULONG_LONG_MAX.
23312         * lib/xstrtoll.c: Likewise.
23313         * lib/xstrtoull.c: Likewise.
23314
23315 2010-03-13  Bruno Haible  <bruno@clisp.org>
23316
23317         Allow the user to disable C++ code and tests.
23318         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23319         (gl_PROG_ANSI_CXX): Require it.
23320
23321 2010-03-13  Bruno Haible  <bruno@clisp.org>
23322
23323         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23324         cases.
23325
23326 2010-03-13  Bruno Haible  <bruno@clisp.org>
23327
23328         Test that gnulib does not break the standard C++ headers.
23329         * tests/test-locale-c++2.cc: New file.
23330         * modules/locale-tests (Files): Add it.
23331         (Makefile.am): Compile it for test-locale-c++.
23332         * tests/test-math-c++2.cc: New file.
23333         * modules/math-tests (Files): Add it.
23334         (Makefile.am): Compile it for test-math-c++.
23335         * tests/test-signal-c++2.cc: New file.
23336         * modules/signal-tests (Files): Add it.
23337         (Makefile.am): Compile it for test-signal-c++.
23338         * tests/test-stdio-c++2.cc: New file.
23339         * modules/stdio-tests (Files): Add it.
23340         (Makefile.am): Compile it for test-stdio-c++.
23341         * tests/test-stdlib-c++2.cc: New file.
23342         * modules/stdlib-tests (Files): Add it.
23343         (Makefile.am): Compile it for test-stdlib-c++.
23344         * tests/test-string-c++2.cc: New file.
23345         * modules/string-tests (Files): Add it.
23346         (Makefile.am): Compile it for test-string-c++.
23347         * tests/test-time-c++2.cc: New file.
23348         * modules/time-tests (Files): Add it.
23349         (Makefile.am): Compile it for test-time-c++.
23350         Reported by John W. Eaton <jwe@gnu.org>.
23351
23352 2010-03-13  Bruno Haible  <bruno@clisp.org>
23353
23354         * gnulib-tool (func_usage): Clarify which options are available for
23355         --create-testdir and --create-megatestdir.
23356
23357 2010-03-13  Bruno Haible  <bruno@clisp.org>
23358
23359         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23360         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23361         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23362         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23363         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23364         when appropriate.
23365         Reported by Jim Meyering.
23366
23367 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23368
23369         * gnulib-tool (func_import): Explain origin of code.
23370
23371 2010-03-12  Bruno Haible  <bruno@clisp.org>
23372
23373         Fix problem with automake's definition of CXXLINK.
23374         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23375         Reported by Simon Josefsson and Ludovic Courtès.
23376
23377 2010-03-12  Bruno Haible  <bruno@clisp.org>
23378
23379         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23380         stable releases.
23381
23382 2010-03-11  Bruno Haible  <bruno@clisp.org>
23383
23384         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23385         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23386         whether the system provides one variant or multiple variants of the
23387         function.
23388         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23389         C++ compilers.
23390         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23391         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23392         Reported by Jim Meyering.
23393
23394 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23395
23396         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23397
23398 2010-03-08  Bruno Haible  <bruno@clisp.org>
23399
23400         gnulib-tool: Add support for --libtool in --create-testdir.
23401         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23402         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23403
23404 2010-03-08  Eric Blake  <eblake@redhat.com>
23405
23406         gnulib-tool.texi: mention possibility of git submodule
23407         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23408         submodules.
23409         * doc/.gitignore: Ignore another generated file.
23410
23411 2010-03-08  Karl Berry  <karl@gnu.org>
23412
23413         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23414         of committing gnulib files while skipping others.
23415
23416 2010-03-07  Bruno Haible  <bruno@clisp.org>
23417
23418         Tests of module 'wctype' in C++ mode.
23419         * tests/test-wctype-c++.cc: New file.
23420         * modules/wctype-tests (Files): Add it and tests/signature.h.
23421         (Depends-on): Add ansi-c++-opt.
23422         (Makefile.am): Arrange to compile and run test-wctype-c++.
23423
23424         Tests of module 'wchar' in C++ mode.
23425         * tests/test-wchar-c++.cc: New file.
23426         * modules/wchar-tests (Files): Add it and tests/signature.h.
23427         (Depends-on): Add ansi-c++-opt.
23428         (Makefile.am): Arrange to compile and run test-wchar-c++.
23429         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23430         gl_MODULE_INDICATOR.
23431
23432         Tests of module 'unistd' in C++ mode.
23433         * tests/test-unistd-c++.cc: New file.
23434         * modules/unistd-tests (Files): Add it and tests/signature.h.
23435         (Depends-on): Add ansi-c++-opt.
23436         (Makefile.am): Arrange to compile and run test-unistd-c++.
23437         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23438         gl_MODULE_INDICATOR.
23439
23440         Tests of module 'time' in C++ mode.
23441         * tests/test-time-c++.cc: New file.
23442         * modules/time-tests (Files): Add it and tests/signature.h.
23443         (Depends-on): Add ansi-c++-opt.
23444         (Makefile.am): Arrange to compile and run test-time-c++.
23445         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23446
23447         Tests of module 'sys_time' in C++ mode.
23448         * tests/test-sys_time-c++.cc: New file.
23449         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23450         (Depends-on): Add ansi-c++-opt.
23451         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23452         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23453         gl_MODULE_INDICATOR.
23454
23455         Tests of module 'sys_stat' in C++ mode.
23456         * tests/test-sys_stat-c++.cc: New file.
23457         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23458         (Depends-on): Add ansi-c++-opt.
23459         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23460         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23461         gl_MODULE_INDICATOR.
23462
23463         Tests of module 'sys_socket' in C++ mode.
23464         * tests/test-sys_socket-c++.cc: New file.
23465         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23466         (Depends-on): Add ansi-c++-opt.
23467         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23468         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23469         gl_MODULE_INDICATOR.
23470
23471         Tests of module 'sys_select' in C++ mode.
23472         * tests/test-sys_select-c++.cc: New file.
23473         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23474         (Depends-on): Add ansi-c++-opt.
23475         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23476         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23477         gl_MODULE_INDICATOR.
23478
23479         Tests of module 'sys_ioctl' in C++ mode.
23480         * tests/test-sys_ioctl-c++.cc: New file.
23481         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23482         (Depends-on): Add ansi-c++-opt.
23483         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23484         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23485         gl_MODULE_INDICATOR.
23486
23487         Tests of module 'string' in C++ mode.
23488         * tests/test-string-c++.cc: New file.
23489         * modules/string-tests (Files): Add it and tests/signature.h.
23490         (Depends-on): Add ansi-c++-opt.
23491         (Makefile.am): Arrange to compile and run test-string-c++.
23492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23493         gl_MODULE_INDICATOR.
23494
23495         Tests of module 'stdlib' in C++ mode.
23496         * tests/test-stdlib-c++.cc: New file.
23497         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23498         (Depends-on): Add ansi-c++-opt.
23499         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23500         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23501         gl_MODULE_INDICATOR.
23502
23503         Tests of module 'stdio' in C++ mode.
23504         * tests/test-stdio-c++.cc: New file.
23505         * modules/stdio-tests (Files): Add it and tests/signature.h.
23506         (Depends-on): Add ansi-c++-opt.
23507         (Makefile.am): Arrange to compile and run test-stdio-c++.
23508         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23509         gl_MODULE_INDICATOR.
23510
23511         Tests of module 'spawn' in C++ mode.
23512         * tests/test-spawn-c++.cc: New file.
23513         * modules/spawn-tests (Files): Add it and tests/signature.h.
23514         (Depends-on): Add ansi-c++-opt.
23515         (Makefile.am): Arrange to compile and run test-spawn-c++.
23516         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23517         gl_MODULE_INDICATOR.
23518
23519         Tests of module 'signal' in C++ mode.
23520         * tests/test-signal-c++.cc: New file.
23521         * modules/signal-tests (Files): Add it and tests/signature.h.
23522         (Depends-on): Add ansi-c++-opt.
23523         (Makefile.am): Arrange to compile and run test-signal-c++.
23524         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23525         gl_MODULE_INDICATOR.
23526
23527         Tests of module 'search' in C++ mode.
23528         * tests/test-search-c++.cc: New file.
23529         * modules/search-tests (Files): Add it and tests/signature.h.
23530         (Depends-on): Add ansi-c++-opt.
23531         (Makefile.am): Arrange to compile and run test-search-c++.
23532         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23533         gl_MODULE_INDICATOR.
23534
23535         Tests of module 'math' in C++ mode.
23536         * tests/test-math-c++.cc: New file.
23537         * modules/math-tests (Files): Add it and tests/signature.h.
23538         (Depends-on): Add ansi-c++-opt.
23539         (Makefile.am): Arrange to compile and run test-math-c++.
23540         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23541
23542         Tests of module 'locale' in C++ mode.
23543         * tests/test-locale-c++.cc: New file.
23544         * modules/locale-tests (Files): Add it and tests/signature.h.
23545         (Depends-on): Add ansi-c++-opt.
23546         (Makefile.am): Arrange to compile and run test-locale-c++.
23547         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23548         gl_MODULE_INDICATOR.
23549
23550         Tests of module 'langinfo' in C++ mode.
23551         * tests/test-langinfo-c++.cc: New file.
23552         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23553         (Depends-on): Add ansi-c++-opt.
23554         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23555         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23556         gl_MODULE_INDICATOR.
23557
23558         Tests of module 'iconv-h' in C++ mode.
23559         * tests/test-iconv-h-c++.cc: New file.
23560         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23561         (Depends-on): Add ansi-c++-opt.
23562         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23563
23564         Tests of module 'glob' in C++ mode.
23565         * tests/test-glob-c++.cc: New file.
23566         * modules/glob-tests (Files): Add it.
23567         (Depends-on): Add ansi-c++-opt.
23568         (Makefile.am): Arrange to compile and run test-glob-c++.
23569
23570         Tests of module 'fcntl-h' in C++ mode.
23571         * tests/test-fcntl-h-c++.cc: New file.
23572         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23573         (Depends-on): Add ansi-c++-opt.
23574         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23575         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23576         gl_MODULE_INDICATOR.
23577
23578         Tests of module 'dirent' in C++ mode.
23579         * tests/test-dirent-c++.cc: New file.
23580         * modules/dirent-tests (Files): Add it and tests/signature.h.
23581         (Depends-on): Add ansi-c++-opt.
23582         (Makefile.am): Arrange to compile and run test-dirent-c++.
23583         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23584         gl_MODULE_INDICATOR.
23585
23586         New module 'ansi-c++-opt'.
23587         * modules/ansi-c++-opt: New file.
23588         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23589
23590         Document C++ namespace mode.
23591         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23592
23593         wctype: Avoid #define replacements in C++ mode.
23594         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23595         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23596         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23597         In C++, define a namespaced alias symbol.
23598         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23599         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23600         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23601         rule.
23602
23603         wchar: Avoid #define replacements in C++ mode.
23604         * lib/wchar.in.h: Include c++defs.h.
23605         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23606         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23607         symbol.
23608         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23609         * modules/wchar (Depends-on): Add c++defs.
23610         (Makefile.am): Update wchar.h rule.
23611
23612         unistd: Avoid #define replacements in C++ mode.
23613         * lib/unistd.in.h: Include c++defs.h.
23614         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23615         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23616         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23617         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23618         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23619         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23620         symbol.
23621         (environ): Update.
23622         * modules/unistd (Depends-on): Add c++defs.
23623         (Makefile.am): Update unistd.h rule.
23624
23625         time: Avoid #define replacements in C++ mode.
23626         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23627         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23628         define a namespaced alias symbol.
23629         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23630         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23631         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23632         * modules/time (Depends-on): Add c++defs, warn-on-use.
23633         (Makefile.am): Update time.h rule.
23634         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23635         * modules/nanosleep (configure.ac): Likewise.
23636         * modules/strptime (configure.ac): Likewise.
23637         * modules/timegm (configure.ac): Likewise.
23638
23639         sys_time: Avoid #define replacements in C++ mode.
23640         * lib/sys_time.in.h: Include c++defs.h.
23641         (gettimeofday): In C++, define a namespaced alias symbol.
23642         * modules/sys_time (Depends-on): Add c++defs.
23643         (Makefile.am): Update sys/time.h rule.
23644
23645         sys_stat: Avoid #define replacements in C++ mode.
23646         * lib/sys_stat.in.h: Include c++defs.h.
23647         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23648         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23649         namespaced alias symbol.
23650         In C++, define a namespaced alias symbol.
23651         * modules/sys_stat (Depends-on): Add c++defs.
23652         (Makefile.am): Update sys/stat.h rule.
23653
23654         sys_socket: Avoid #define replacements in C++ mode.
23655         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23656         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23657         definitions also when the system has a <sys/socket.h>.
23658         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23659         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23660         In C++, define a namespaced alias symbol.
23661         * modules/sys_socket (Depends-on): Add c++defs.
23662         (Makefile.am): Update sys/socket.h rule.
23663
23664         sys_select: Avoid #define replacements in C++ mode.
23665         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23666         definitions also when the system has a <sys/select.h>.
23667         (select): In C++, define a namespaced alias symbol.
23668         * modules/sys_select (Depends-on): Add c++defs.
23669         (Makefile.am): Update sys/select.h rule.
23670
23671         sys_ioctl: Avoid #define replacements in C++ mode.
23672         * lib/sys_ioctl.in.h: Include c++defs.h.
23673         (ioctl): In C++, define a namespaced alias symbol.
23674         * modules/sys_ioctl (Depends-on): Add c++defs.
23675         (Makefile.am): Update sys/ioctl.h rule.
23676
23677         string: Avoid #define replacements in C++ mode.
23678         * lib/string.in.h: Include c++defs.h.
23679         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23680         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23681         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23682         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23683         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23684         * modules/string (Depends-on): Add c++defs.
23685         (Makefile.am): Update string.h rule.
23686
23687         stdlib: Avoid #define replacements in C++ mode.
23688         * lib/stdlib.in.h: Include c++defs.h.
23689         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23690         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23691         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23692         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23693         symbol.
23694         * modules/stdlib (Depends-on): Add c++defs.
23695         (Makefile.am): Update stdlib.h rule.
23696
23697         stdio: Avoid #define replacements in C++ mode.
23698         * lib/stdio.in.h: Include c++defs.h.
23699         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23700         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23701         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23702         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23703         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23704         namespaced alias symbol.
23705         * modules/stdio (Depends-on): Add c++defs.
23706         (Makefile.am): Update stdio.h rule.
23707
23708         spawn: Avoid #define replacements in C++ mode.
23709         * lib/spawn.in.h: Include c++defs.h.
23710         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23711         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23712         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23713         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23714         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23715         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23716         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23717         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23718         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23719         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23720         In C++, define a namespaced alias symbol.
23721         * modules/spawn (Depends-on): Add c++defs.
23722         (Makefile.am): Update spawn.h rule.
23723
23724         signal: Avoid #define replacements in C++ mode.
23725         * lib/signal.in.h: Include c++defs.h.
23726         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23727         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23728         namespaced alias symbol.
23729         * modules/signal (Depends-on): Add c++defs.
23730         (Makefile.am): Update signal.h rule.
23731
23732         search: Avoid #define replacements in C++ mode.
23733         * lib/search.in.h: Include c++defs.h.
23734         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23735         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23736         symbol.
23737         * modules/search (Depends-on): Add c++defs.
23738         (Makefile.am): Update search.h rule.
23739
23740         math: Avoid #define replacements in C++ mode.
23741         * lib/math.in.h: Include c++defs.h.
23742         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23743         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23744         trunc, truncl): In C++, define a namespaced alias symbol.
23745         * modules/math (Depends-on): Add c++defs.
23746         (Makefile.am): Update math.h rule.
23747
23748         locale: Avoid #define replacements in C++ mode.
23749         * lib/locale.in.h: Include c++defs.h.
23750         (duplocale): In C++, define a namespaced alias symbol.
23751         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23752         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23753         * modules/locale (Depends-on): Add c++defs.
23754         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23755
23756         langinfo: Avoid #define replacements in C++ mode.
23757         * lib/langinfo.in.h: Include c++defs.h.
23758         (nl_langinfo): In C++, define a namespaced alias symbol.
23759         * modules/langinfo (Depends-on): Add c++defs.
23760         (Makefile.am): Update langinfo.h rule.
23761
23762         iconv-h: Avoid #define replacements in C++ mode.
23763         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23764         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23765         symbol.
23766         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23767         whenever iconv is present.
23768         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23769         (Makefile.am): Update iconv.h rule.
23770
23771         glob: Avoid #define replacements in C++ mode.
23772         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23773         (_gl_glob_errfunc_fn): New type.
23774         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23775         symbol.
23776         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23777         (Makefile.am): Update glob.h rule.
23778
23779         fcntl-h: Avoid #define replacements in C++ mode.
23780         * lib/fcntl.in.h: Include c++defs.h.
23781         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23782         * modules/fcntl-h (Depends-on): Add c++defs.
23783         (Makefile.am): Update fcntl.h rule.
23784
23785         dirent: Avoid #define replacements in C++ mode.
23786         * lib/dirent.in.h: Include c++defs.h.
23787         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23788         namespaced alias symbol.
23789         (dirfd): Update declaration.
23790         * modules/dirent (Depends-on): Add c++defs.
23791         (Makefile.am): Update dirent.h rule.
23792
23793         ctype: Make it usable in C++ code.
23794         * lib/ctype.in.h: Include c++defs.h.
23795         (isblank): Declare as extern "C".
23796         * modules/ctype (Depends-on): Add c++defs.
23797         (Makefile.am): Update ctype.h rule.
23798
23799         New module 'c++defs'.
23800         * modules/c++defs: New file.
23801         * build-aux/c++defs.h: New file.
23802         Reported by John W. Eaton <jwe@gnu.org>.
23803
23804 2010-03-07  Bruno Haible  <bruno@clisp.org>
23805
23806         logb: Provide missing declaration for Cygwin.
23807         * lib/math.in.h (logb): New declaration.
23808         * m4/logb.m4: New file.
23809         * modules/logb (Files): Add m4/logb.m4.
23810         (Depends-on): Add math.
23811         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23812         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23814         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23815         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23816
23817 2010-03-07  Bruno Haible  <bruno@clisp.org>
23818
23819         Fix test-cond link error.
23820         * tests/test-cond.c: Include <stdio.h>.
23821
23822 2010-03-07  Bruno Haible  <bruno@clisp.org>
23823
23824         Fix test-dirent-safer link error.
23825         * modules/dirent-safer-tests (Makefile.am): Define
23826         test_dirent_safer_LDADD.
23827
23828 2010-03-07  Bruno Haible  <bruno@clisp.org>
23829
23830         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23831         among default module list.
23832
23833 2010-03-07  Bruno Haible  <bruno@clisp.org>
23834
23835         Fix link error on platforms with GNU libiconv.
23836         * modules/unistr/u8-strcoll-tests (Makefile): Define
23837         test_u8_strcoll_LDADD.
23838         * modules/unistr/u16-strcoll-tests (Makefile): Define
23839         test_u16_strcoll_LDADD.
23840         * modules/unistr/u32-strcoll-tests (Makefile): Define
23841         test_u32_strcoll_LDADD.
23842
23843 2010-03-07  Bruno Haible  <bruno@clisp.org>
23844
23845         Use POSIX declarations for socket functions.
23846         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23847         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23848         rpl_sendto): Change declaration to match POSIX.
23849         * lib/connect.c (rpl_connect): Likewise.
23850         * lib/accept.c (rpl_accept): Likewise.
23851         * lib/bind.c (rpl_bind): Likewise.
23852         * lib/getpeername.c (rpl_getpeername): Likewise.
23853         * lib/getsockname.c (rpl_getsockname): Likewise.
23854         * lib/recv.c (rpl_recv): Likewise.
23855         * lib/send.c (rpl_send): Likewise.
23856         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23857         * lib/sendto.c (rpl_sendto): Likewise.
23858
23859 2010-03-06  Bruno Haible  <bruno@clisp.org>
23860
23861         Clarify access, euidaccess, faccessat.
23862         * doc/posix-functions/faccessat.texi: Mention security problem under
23863         "Other problems", not "Portability problems".
23864         * doc/posix-functions/access.texi: Likewise. Mention a related security
23865         problem.
23866         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23867         * lib/euidaccess.c: Add comments about platforms.
23868         * lib/unistd.in.h (access, euidaccess): Add warnings.
23869
23870 2010-03-07  Bruno Haible  <bruno@clisp.org>
23871
23872         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23873         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23874         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23875         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23876         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23877         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23878         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23879         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23880         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23881         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23882         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23883         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23884         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23885         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23886         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23887         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23888         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23889         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23890         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23891         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23892         Likewise.
23893         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23894         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23895         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23896         Likewise.
23897         * tests/test-spawn.c (main): Make it work when
23898         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23899
23900 2010-03-07  Bruno Haible  <bruno@clisp.org>
23901
23902         Fix incorrect Makefile.am generation in German locale.
23903         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23904         Execute sed command with character range in C locale.
23905
23906 2010-03-06  Bruno Haible  <bruno@clisp.org>
23907
23908         Tests for module 'iconv-h'.
23909         * modules/iconv-h-tests: New file.
23910         * tests/test-iconv-h.c: New file.
23911
23912         New module 'iconv-h'.
23913         * modules/iconv-h: New file.
23914         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23915         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23916         (configure.ac): Remove gl_ICONV_H.
23917         (Makefile.am): Remove rule for iconv.h.
23918
23919 2010-03-06  Bruno Haible  <bruno@clisp.org>
23920
23921         More consistent naming of *.m4 files.
23922         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23923         * modules/wctype (Files): Update.
23924
23925         More consistent naming of *.m4 files.
23926         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23927         * modules/wchar (Files): Update.
23928
23929 2010-03-06  Jim Meyering  <meyering@redhat.com>
23930
23931         euidaccess: relax license to LGPLv2+
23932         * modules/euidaccess (License): Relax to LGPLv2+.
23933
23934 2010-03-06  Bruno Haible  <bruno@clisp.org>
23935
23936         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23937         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23938         (Makefile.am): Augment lib_SOURCES instead.
23939
23940 2010-03-04  Jim Meyering  <meyering@redhat.com>
23941
23942         utime: remove obsolete module
23943         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23944         unnecessary for years, and has been marked as obsolete for 10 months.
23945         * modules/utime: Remove file.
23946         * lib/utime.c: Remove file.
23947         * m4/utime.m4: Remove file.
23948         * m4/utimes-null.m4: Remove file.
23949         * doc/posix-functions/utime.texi (utime): Remove reference to
23950         the module.  Move the sole "fixed by gnulib" item into the
23951         "problems not fixed by Gnulib" list.
23952         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23953
23954 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23955
23956         * modules/exit (License): Relax license to LGPLv2+.
23957         (Status): Mark as obsolete.
23958         * NEWS: Mention deprecated 'exit' module.
23959         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23960         of now obsolete 'exit'.
23961
23962 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23963
23964         fts-lgpl: remove unused module
23965         * modules/fts-lgpl: Remove.
23966         * MODULES.html.sh (func_all_modules): Adjust.
23967         * check-module (find_included_lib_files): Adjust.
23968         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23969
23970 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23971
23972         copy-acl: enhance Solaris ACL error handling
23973         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23974         * lib/set-mode-acl.c (qset_acl): Likewise.
23975
23976 2010-03-02  Bruno Haible  <bruno@clisp.org>
23977
23978         spawn: Don't override the system defined values on FreeBSD 8.
23979         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23980         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23981         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23982         if HAVE_POSIX_SPAWN is 1.
23983         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23984
23985 2010-03-01  Bruno Haible  <bruno@clisp.org>
23986
23987         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23988         regarding Automake.
23989
23990 2010-02-25  Bruno Haible  <bruno@clisp.org>
23991
23992         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23993         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23994         setting, not afterwards.
23995         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23996
23997 2010-02-24  Eric Blake  <eblake@redhat.com>
23998
23999         bootstrap, git-version-gen: use timestamp
24000         * build-aux/git-version-gen (scriptversion): Force UTC.
24001         * build-aux/bootstrap (scriptversion): New variable.
24002
24003         bootstrap: allow older git
24004         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24005         older than 1.6.4.  Requested by the libvirt project.
24006
24007 2010-02-23  Eric Blake  <eblake@redhat.com>
24008
24009         warn-on-use: work with old autoconf
24010         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24011         AS_VAR semantics of autoconf 2.60.
24012         Reported by Bruno Haible.
24013
24014         bootstrap: improve some comments
24015         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24016         clarification comments.
24017
24018         gettimeofday: provide correct function
24019         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24020         when replacement is declared, otherwise provide gettimeofday.
24021         Reported by Michael Goffioul.
24022
24023 2010-02-23  Jim Meyering  <meyering@redhat.com>
24024
24025         lib-ignore: relax license to "unlimited", not LGPLv2+
24026         * modules/lib-ignore (License): Relax to "unlimited".
24027
24028 2010-02-23  Jim Meyering  <meyering@redhat.com>
24029
24030         lib-ignore: relax license to LGPLv2+
24031         * modules/lib-ignore (License): Relax to LGPLv2+.
24032
24033 2010-02-22  Eric Blake  <eblake@redhat.com>
24034
24035         lseek: avoid bash 3.2 broken pipe bug
24036         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24037         warning from bash 3.2.
24038         Reported by Ben Pfaff, with analysis from Bruno Haible.
24039
24040         bootstrap: support non-FSF copyright holder
24041         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24042         bootstrap.conf override of COPYRIGHT_HOLDER.
24043         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24044
24045         bootstrap: interoperate with gettext 0.14.1
24046         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24047
24048         bootstrap: allow for alternate submodule location
24049         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24050         hardcoding submodule location.
24051         (gnulib_mk): Allow direct use of Makefile.am.
24052
24053         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24054         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24055         rather than reconfiguring where the submodule points.
24056
24057         gettimeofday: restore support for platforms that lack function
24058         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24059         replacement if function is missing.
24060         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24061         * modules/sys_time (Makefile.am): Substitute it.
24062         * lib/sys_time.in.h (gettimeofday): Check it.
24063         Reported by Michael Goffioul.
24064
24065 2010-02-21  Bruno Haible  <bruno@clisp.org>
24066
24067         * lib/stdio.in.h (obstack_printf): Fix typo.
24068
24069 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24070
24071         vc-list-files: use bzr ls's -R option
24072         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24073         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24074
24075 2010-02-21  Jim Meyering  <meyering@redhat.com>
24076
24077         init.sh: fix EXEEXT shims to work also for names like test-prog
24078         * tests/init.sh: Re-exec a better shell, when needed.
24079         If the current shell lacks support for posix $(...), an init.sh-using
24080         test will now try to find a shell that supports that.  If EXEEXT is
24081         nonempty, we also require support for hyphen-in-alias-name and shell
24082         substitutions like ${var#glob}.  Failure to find such a shell results
24083         in a skipped test.
24084
24085 2010-02-21  Bruno Haible  <bruno@clisp.org>
24086
24087         Really work around around "broken pipe" error message from bash 3.2.
24088         * gnulib-tool (func_reset_sigpipe): Remove function.
24089         (echo): In bash 3.2, define to a function that uses printf.
24090         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24091
24092 2010-02-20  Bruno Haible  <bruno@clisp.org>
24093
24094         Restore support for automake 1.9.6 with autoconf 2.61.
24095         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24096         Reported by James Youngman <jay@gnu.org>.
24097
24098 2010-02-20  Bruno Haible  <bruno@clisp.org>
24099
24100         Improve *printf warning condition.
24101         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24102         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24103         and the function is overridden due to SIGPIPE emulation.
24104
24105 2010-02-20  Bruno Haible  <bruno@clisp.org>
24106
24107         * lib/stdio.in.h: Tweak comments.
24108
24109 2010-02-19  Bruno Haible  <bruno@clisp.org>
24110
24111         Make it easier to find modules. New gnulib-tool option '--find'.
24112         * gnulib-tool: New option --find.
24113         (func_usage): Document it.
24114         (func_sanitize_modulelist): New function, extracted from
24115         func_all_modules.
24116         (func_all_modules): Invoke it.
24117         * doc/gnulib-tool.texi (Which modules?): New node.
24118
24119 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24120
24121         * lib/sys_select.in.h: Provide select replacement even if
24122         sys/select.h exists on a system, for Interix.
24123
24124 2010-02-18  Jim Meyering  <meyering@redhat.com>
24125
24126         init.sh: don't use $(...) just yet
24127         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24128         to accommodate e.g., Solaris' /bin/sh.
24129
24130 2010-02-17  Bruno Haible  <bruno@clisp.org>
24131
24132         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24133         Reported by Ludovic Courtès <ludo@gnu.org>.
24134
24135 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24136
24137         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24138         linking with -lintl.
24139
24140 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24141
24142         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24143         if not provided by the system's netdb.h.  Reported by
24144         ludo@gnu.org (Ludovic Courtès).
24145
24146 2010-02-15  Jim Meyering  <meyering@redhat.com>
24147
24148         init.sh: improve portability and efficiency
24149         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24150         "dummy" in a for loop.
24151         Use '!', not '^' to select the complement of a character set used
24152         in a "case" statement.
24153         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24154         Suggestions from Eric Blake.
24155
24156         init.sh: automatically accommodate programs with the .exe suffix
24157         Automatically arrange for an invocation of "prog" to execute the
24158         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24159         may use the simpler "prog", yet still work when built on a system
24160         that requires specifying the added suffix.
24161         Do this by constructing a function named "prog" that invokes
24162         "prog.exe" for each .exe file in selected directories.
24163         * tests/init.sh (find_exe_basenames_): New function.
24164         (create_exe_shim_functions_): New function.
24165         (path_prepend_): Use it.
24166
24167         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24168         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24169         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24170
24171 2010-02-14  Jim Meyering  <meyering@redhat.com>
24172
24173         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24174         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24175         (sc_prohibit_hash_pjw_without_use): New rule.
24176
24177         maint.mk: allow the default upload destination dir to be overridden
24178         * top/maint.mk (upload_dest_dir_): Define with a default that
24179         preserves the status quo.
24180         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24181         Reported by Peter Simons.
24182
24183         maint.mk: prohibit inclusion of "hash.h" without_use
24184         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24185
24186 2010-02-10  Jim Meyering  <meyering@redhat.com>
24187
24188         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24189         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24190
24191 2010-02-09  Eric Blake  <ebb9@byu.net>
24192         and Bruno Haible  <bruno@clisp.org>
24193
24194         obstack-printf-posix: ensure declaration
24195         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24196         extracted from gl_FUNC_OBSTACK_PRINTF.
24197         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24198         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24199         Likewise.
24200         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24201         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24202         0.
24203
24204 2010-02-08  Bruno Haible  <bruno@clisp.org>
24205
24206         gnulib-tool: Fix typo in 2010-02-07 commit.
24207         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24208         Reported by Eric Blake.
24209
24210 2010-02-07  Bruno Haible  <bruno@clisp.org>
24211
24212         gnulib-tool: Fix up caching patches.
24213         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24214         option --no-cache. Use associative arrays when supported by the shell.
24215         (sed_comments): New variable.
24216         (modcache): Renamed from do_cache.
24217         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24218         abbreviate unnecessarily.
24219         (have_associative): New variable.
24220         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24221         way also for ksh and zsh.
24222         (func_init_sed_convert_to_cache_statements): New function, extracted
24223         from func_cache_lookup_module. Add support for associative arrays.
24224         Don't set the c_MODULE_cached variable here. Ignore all lines before
24225         the first field header. Remove only the final newline, not all trailing
24226         newlines. Support empty fields correctly. Limit the use of 'eval' to
24227         assignments.
24228         (func_get_description, func_get_status, func_get_notice,
24229         func_get_applicability, func_get_filelist, func_get_dependencies,
24230         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24231         func_get_automake_snippet, func_get_include_directive,
24232         func_get_link_directive, func_get_license, func_get_maintainer):
24233         Update documentation. List the unoptimized code first. Add support for
24234         associative arrays. Limit the use of 'eval' to assignments.
24235         (func_get_applicability): Undo stylistic pessimisations.
24236         (func_get_automake_snippet, func_get_include_directive): Reduce code
24237         duplication.
24238         (func_modules_transitive_closure, func_modules_add_dummy,
24239         func_modules_notice, func_modules_to_filelist, func_add_file,
24240         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24241         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24242         func_create_testdir, func_create_megatestdir): Update documentation.
24243
24244 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24245
24246         * gnulib-tool (func_cache_lookup_module): Store the module name
24247         belonging to the cache variable; error out if two different
24248         module names map to the same cache variable name.
24249
24250 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24251
24252         gnulib-tool: Make caching optional.
24253         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24254         Update matching short versions of --no-changelog.
24255         (func_usage): Update.
24256         (sed_extract_cache_prog): Renamed from ...
24257         (sed_extract_prog): ... this; revert to old extraction script.
24258         (func_get_description, func_get_status)
24259         (func_get_notice, func_get_applicability, func_get_filelist)
24260         (func_get_dependencies, func_get_autoconf_early_snippet)
24261         (func_get_autoconf_snippet, func_get_automake_snippet)
24262         (func_get_include_directive, func_get_link_directive)
24263         (func_get_license, func_get_maintainer): If $do_cache is false,
24264         use old, non-caching extraction scripts.
24265         Suggestion by Bruno Haible.
24266
24267 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24268
24269         gnulib-tool: cache module metainformation.
24270         * gnulib-tool (sed_extract_prog): Match newline before each
24271         header, and rewrite header to a shell variable suffix.
24272         (func_cache_var, func_cache_lookup_module): New functions,
24273         to turn a module name into a cache variable prefix, and to
24274         look up and cache module metainformation.
24275         (func_get_description, func_get_status)
24276         (func_get_notice, func_get_applicability, func_get_filelist)
24277         (func_get_dependencies, func_get_autoconf_early_snippet)
24278         (func_get_autoconf_snippet, func_get_automake_snippet)
24279         (func_get_include_directive, func_get_link_directive)
24280         (func_get_license, func_get_maintainer): Use
24281         func_cache_lookup_module.
24282
24283 2010-02-07  Bruno Haible  <bruno@clisp.org>
24284
24285         fnctl: Fix missing dependency.
24286         * modules/fcntl (Depends-on): Add getdtablesize.
24287         Reported by John W. Eaton <jwe@gnu.org>.
24288
24289 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24290
24291         Argp: fix recognition of short alias options.
24292
24293         * lib/argp-parse.c (convert_options): Fix improper use of
24294         `|' between character values.
24295         * tests/test-argp.c (group1_option): New alias option
24296         --read (-r).
24297         (group1_parser): Special handling for 'r'.
24298         (test15): New test case.
24299         (test_fun): Add test15.
24300         * tests/test-argp-2.sh: Update expected --help and --usage
24301         outputs.
24302
24303 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24304
24305         * tests/test-argp.c: Fix indentation.
24306
24307 2010-02-04  Eric Blake  <ebb9@byu.net>
24308
24309         gettimeofday: expose type of second argument
24310         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24311         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24312         * tests/test-gettimeofday.c: Use it to silence warning.
24313         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24314         the issue.
24315
24316 2010-02-03  Jim Meyering  <meyering@redhat.com>
24317
24318         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24319         * lib/regcomp.c (TYPE_SIGNED): Define.
24320         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24321
24322         regcomp.c: avoid a new -Wshadow warning
24323         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24324
24325 2010-02-01  Jim Meyering  <meyering@redhat.com>
24326
24327         removing useless parentheses in cpp #define directives
24328         For motivation, see commit c0221df4, "define STREQ(a,b)
24329         consistently, removing useless parentheses"
24330         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24331         * lib/mountlist.c (MNT_IGNORE): Likewise.
24332         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24333
24334 2010-02-01  Eric Blake  <ebb9@byu.net>
24335
24336         sys_time: use link-warning
24337         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24338         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24339         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24340         * modules/sys_time (Depends-on): Add warn-on-use.
24341         (Makefile.am): Always build replacement.
24342         (configure.ac): Update substitutions.
24343         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24344         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24345         bother with SYS_TIME_H.
24346         * modules/gettimeofday (configure.ac): Declare indicator.
24347         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24348         in use.
24349
24350         closein-tests: silence compiler warning
24351         * tests/test-closein.c (main): Ignore fread result.
24352         * modules/closein-tests (Depends-on): Add ignore-value.
24353
24354         tests: silence warning about system return
24355         * tests/test-areadlink-with-size.c (main): Ignore system result.
24356         * tests/test-areadlink.c (main): Likewise.
24357         * tests/test-areadlinkat-with-size.c (main): Likewise.
24358         * tests/test-areadlinkat.c (main): Likewise.
24359         * tests/test-canonicalize-lgpl.c (main): Likewise.
24360         * tests/test-canonicalize.c (main): Likewise.
24361         * tests/test-chown.c (main): Likewise.
24362         * tests/test-fchownat.c (main): Likewise.
24363         * tests/test-fdutimensat.c (main): Likewise.
24364         * tests/test-fstatat.c (main): Likewise.
24365         * tests/test-futimens.c (main): Likewise.
24366         * tests/test-lchown.c (main): Likewise.
24367         * tests/test-link.c (main): Likewise.
24368         * tests/test-linkat.c (main): Likewise.
24369         * tests/test-lstat.c (main): Likewise.
24370         * tests/test-mkdir.c (main): Likewise.
24371         * tests/test-mkdirat.c (main): Likewise.
24372         * tests/test-mkfifo.c (main): Likewise.
24373         * tests/test-mkfifoat.c (main): Likewise.
24374         * tests/test-mknod.c (main): Likewise.
24375         * tests/test-readlink.c (main): Likewise.
24376         * tests/test-remove.c (main): Likewise.
24377         * tests/test-rename.c (main): Likewise.
24378         * tests/test-renameat.c (main): Likewise.
24379         * tests/test-rmdir.c (main): Likewise.
24380         * tests/test-symlink.c (main): Likewise.
24381         * tests/test-symlinkat.c (main): Likewise.
24382         * tests/test-unlink.c (main): Likewise.
24383         * tests/test-unlinkat.c (main): Likewise.
24384         * tests/test-utimens.c (main): Likewise.
24385         * tests/test-utimensat.c (main): Likewise.
24386         * modules/areadlink-tests (Depends-on): Add ignore-value.
24387         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24388         * modules/areadlinkat-tests (Depends-on): Likewise.
24389         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24390         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24391         * modules/canonicalize-tests (Depends-on): Likewise.
24392         * modules/chown-tests (Depends-on): Likewise.
24393         * modules/fdutimensat-tests (Depends-on): Likewise.
24394         * modules/futimens-tests (Depends-on): Likewise.
24395         * modules/lchown-tests (Depends-on): Likewise.
24396         * modules/link-tests (Depends-on): Likewise.
24397         * modules/linkat-tests (Depends-on): Likewise.
24398         * modules/lstat-tests (Depends-on): Likewise.
24399         * modules/mkdir-tests (Depends-on): Likewise.
24400         * modules/mkfifo-tests (Depends-on): Likewise.
24401         * modules/mkfifoat-tests (Depends-on): Likewise.
24402         * modules/mknod-tests (Depends-on): Likewise.
24403         * modules/openat-tests (Depends-on): Likewise.
24404         * modules/readlink-tests (Depends-on): Likewise.
24405         * modules/remove-tests (Depends-on): Likewise.
24406         * modules/rename-tests (Depends-on): Likewise.
24407         * modules/renameat-tests (Depends-on): Likewise.
24408         * modules/rmdir-tests (Depends-on): Likewise.
24409         * modules/symlink-tests (Depends-on): Likewise.
24410         * modules/symlinkat-tests (Depends-on): Likewise.
24411         * modules/unlink-tests (Depends-on): Likewise.
24412         * modules/utimens-tests (Depends-on): Likewise.
24413         * modules/utimensat-tests (Depends-on): Likewise.
24414
24415 2010-01-31  Bruno Haible  <bruno@clisp.org>
24416
24417         Perform the same test for many <math.h> functions.
24418         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24419         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24420         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24421         of gl_MATHFUNC.
24422         * modules/acos (configure.ac): Likewise.
24423         * modules/asin (configure.ac): Likewise.
24424         * modules/atan (configure.ac): Likewise.
24425         * modules/atan2 (configure.ac): Likewise.
24426         * modules/cbrt (configure.ac): Likewise.
24427         * modules/copysign (configure.ac): Likewise.
24428         * modules/cos (configure.ac): Likewise.
24429         * modules/cosh (configure.ac): Likewise.
24430         * modules/erf (configure.ac): Likewise.
24431         * modules/erfc (configure.ac): Likewise.
24432         * modules/exp (configure.ac): Likewise.
24433         * modules/fmod (configure.ac): Likewise.
24434         * modules/hypot (configure.ac): Likewise.
24435         * modules/j0 (configure.ac): Likewise.
24436         * modules/j1 (configure.ac): Likewise.
24437         * modules/jn (configure.ac): Likewise.
24438         * modules/lgamma (configure.ac): Likewise.
24439         * modules/log (configure.ac): Likewise.
24440         * modules/log10 (configure.ac): Likewise.
24441         * modules/log1p (configure.ac): Likewise.
24442         * modules/pow (configure.ac): Likewise.
24443         * modules/remainder (configure.ac): Likewise.
24444         * modules/sin (configure.ac): Likewise.
24445         * modules/sinh (configure.ac): Likewise.
24446         * modules/tan (configure.ac): Likewise.
24447         * modules/tanh (configure.ac): Likewise.
24448         * modules/y0 (configure.ac): Likewise.
24449         * modules/y1 (configure.ac): Likewise.
24450         * modules/yn (configure.ac): Likewise.
24451         Suggested by Paolo Bonzini.
24452
24453 2010-01-31  Bruno Haible  <bruno@clisp.org>
24454
24455         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24456
24457 2010-01-31  Bruno Haible  <bruno@clisp.org>
24458
24459         Work around getdelim() bug on FreeBSD 8.0.
24460         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24461         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24462         not work.
24463         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24464         is 1.
24465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24466         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24467         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24468         a non-zero size.
24469         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24470
24471 2010-01-31  Bruno Haible  <bruno@clisp.org>
24472
24473         Work around getline() bug on FreeBSD 8.0.
24474         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24475         and a non-zero size.
24476         * tests/test-getline.c (main): Likewise.
24477         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24478         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24479
24480 2010-01-28  Eric Blake  <ebb9@byu.net>
24481
24482         regex: fix build failure
24483         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24484         platforms.
24485
24486 2010-01-28  Jim Meyering  <meyering@redhat.com>
24487
24488         regex: do not ignore memory allocation failure
24489         * lib/regex_internal.c (create_cd_newstate): Detect
24490         re_node_set_init_copy failure.   Extracted from glibc commit
24491         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24492
24493         regex: sync more white-space changes from libc
24494         * lib/regex_internal.c: White-space only changes.
24495         * lib/regexec.c: Likewise.
24496
24497         regex: add many uses of __attribute_warn_unused_result__
24498         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24499         * lib/regexec.c: Likewise.
24500         Extracted from a messy glibc commit.
24501
24502         regcomp.c: spelling and merge-artifact from glibc
24503         * lib/regcomp.c: Merge remainder of glibc's
24504         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24505
24506         regcomp.c: sync white-space changes from glibc
24507         * lib/regcomp.c: Merge to accommodate white space
24508         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24509
24510         regcomp.c: do not ignore internal return values
24511         * lib/regcomp.c: Do not ignore internal return values.
24512         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24513         but without its white-space changes and spelling fixes.
24514
24515         regex_internal.h: define __attribute_warn_unused_result__
24516         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24517
24518         maint: add a syntax-check rule to check for vulnerable Makefile.in
24519         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24520
24521 2010-01-27  Jim Meyering  <meyering@redhat.com>
24522
24523         ncftpput-ftp: clean up spaces
24524         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24525         Remove trailing blanks.
24526
24527 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24528
24529         * build-aux/git-version-gen: Fix copyright statement.
24530         * build-aux/gnupload: Likewise.
24531         * tests/test-arcfour.c: Likewise.
24532         * tests/test-arctwo.c: Likewise.
24533         * tests/test-count-one-bits.c: Likewise.
24534         * tests/test-crc.c: Likewise.
24535         * tests/test-des.c: Likewise.
24536         * tests/test-gc-arcfour.c: Likewise.
24537         * tests/test-gc-arctwo.c: Likewise.
24538         * tests/test-gc-des.c: Likewise.
24539         * tests/test-gc-hmac-md5.c: Likewise.
24540         * tests/test-gc-hmac-sha1.c: Likewise.
24541         * tests/test-gc-md2.c: Likewise.
24542         * tests/test-gc-md4.c: Likewise.
24543         * tests/test-gc-md5.c: Likewise.
24544         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24545         * tests/test-gc-rijndael.c: Likewise.
24546         * tests/test-gc-sha1.c: Likewise.
24547         * tests/test-gc.c: Likewise.
24548         * tests/test-gethostname.c: Likewise.
24549         * tests/test-gettimeofday.c: Likewise.
24550         * tests/test-hash.c: Likewise.
24551         * tests/test-hmac-md5.c: Likewise.
24552         * tests/test-hmac-sha1.c: Likewise.
24553         * tests/test-md2.c: Likewise.
24554         * tests/test-md4.c: Likewise.
24555         * tests/test-md5.c: Likewise.
24556         * tests/test-memchr.c: Likewise.
24557         * tests/test-memchr2.c: Likewise.
24558         * tests/test-memcmp.c: Likewise.
24559         * tests/test-memmem.c: Likewise.
24560         * tests/test-memrchr.c: Likewise.
24561         * tests/test-rawmemchr.c: Likewise.
24562         * tests/test-read-file.c: Likewise.
24563         * tests/test-rijndael.c: Likewise.
24564         * tests/test-sockets.c: Likewise.
24565         * tests/test-strchrnul.c: Likewise.
24566         * tests/test-strstr.c: Likewise.
24567         * tests/test-strtod.c: Likewise.
24568         * build-aux/ncftpput-ftp: Likewise.
24569
24570 2010-01-26  Eric Blake  <ebb9@byu.net>
24571
24572         ignore-value: update recommended header name
24573         * modules/ignore-value (Include): Only use <> for headers that
24574         exist in glibc.
24575
24576 2010-01-26  Jim Meyering  <meyering@redhat.com>
24577
24578         test-userspec.c: avoid compiler warnings
24579         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24580         and "initialization discards qualifiers..." warnings.
24581         Put the first "uid" in its own scope, and make char* members "const".
24582
24583 2010-01-25  Bruno Haible  <bruno@clisp.org>
24584
24585         gnulib-tool: Make warning diagnostics consistent.
24586         * gnulib-tool (func_warning): New function.
24587         Use it everywhere where gnulib-tool produces output to stderr and it is
24588         not a fatal error.
24589
24590 2010-01-25  Bruno Haible  <bruno@clisp.org>
24591
24592         Fix test dependencies.
24593         * modules/xstrtol-tests (Depends-on): Add inttypes.
24594         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24595
24596 2010-01-25 Pádraig Brady <P@draigBrady.com>
24597
24598         syntax-check: detect incorrect boolean macro values in config.h
24599         * modules/maintainer-makefile (configure.ac): Parameterize the location
24600         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24601         The logic is from Eric Blake and the location indicated by Jim Meyering.
24602         Note the more natural CONFIG_HEADER name is prohibited by automake
24603         for backwards compatibility reasons.
24604         * top/maint.mk (sc_Wundef_boolean): New rule.
24605
24606 2010-01-25  Jim Meyering  <meyering@redhat.com>
24607
24608         bootstrap: detect MacOS 10.6's shasum, too
24609         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24610         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24611
24612 2010-01-23  Jim Meyering  <meyering@redhat.com>
24613
24614         xstrtoll: new module
24615         * modules/xstrtoll: New file.
24616         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24617         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24618         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24619         ./configure fails if you use this module and lack "long long".
24620         * modules/xstrtoll-tests: New module.
24621         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24622         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24623         new init.sh-based test framework.
24624
24625 2010-01-24  Bruno Haible  <bruno@clisp.org>
24626
24627         Tests for module 'yn'.
24628         * modules/yn-tests: New file.
24629         * tests/test-yn.c: New file.
24630
24631         Tests for module 'y1'.
24632         * modules/y1-tests: New file.
24633         * tests/test-y1.c: New file.
24634
24635         Tests for module 'y0'.
24636         * modules/y0-tests: New file.
24637         * tests/test-y0.c: New file.
24638
24639         Tests for module 'tanh'.
24640         * modules/tanh-tests: New file.
24641         * tests/test-tanh.c: New file.
24642
24643         Tests for module 'tan'.
24644         * modules/tan-tests: New file.
24645         * tests/test-tan.c: New file.
24646
24647         Tests for module 'sqrt'.
24648         * modules/sqrt-tests: New file.
24649         * tests/test-sqrt.c: New file.
24650
24651         Tests for module 'sinh'.
24652         * modules/sinh-tests: New file.
24653         * tests/test-sinh.c: New file.
24654
24655         Tests for module 'sin'.
24656         * modules/sin-tests: New file.
24657         * tests/test-sin.c: New file.
24658
24659         Tests for module 'rint'.
24660         * modules/rint-tests: New file.
24661         * tests/test-rint.c: New file.
24662
24663         Tests for module 'remainder'.
24664         * modules/remainder-tests: New file.
24665         * tests/test-remainder.c: New file.
24666
24667         Tests for module 'pow'.
24668         * modules/pow-tests: New file.
24669         * tests/test-pow.c: New file.
24670
24671         Tests for module 'nextafter'.
24672         * modules/nextafter-tests: New file.
24673         * tests/test-nextafter.c: New file.
24674
24675         Tests for module 'modf'.
24676         * modules/modf-tests: New file.
24677         * tests/test-modf.c: New file.
24678
24679         Tests for module 'logb'.
24680         * modules/logb-tests: New file.
24681         * tests/test-logb.c: New file.
24682
24683         Tests for module 'log1p'.
24684         * modules/log1p-tests: New file.
24685         * tests/test-log1p.c: New file.
24686
24687         Tests for module 'log10'.
24688         * modules/log10-tests: New file.
24689         * tests/test-log10.c: New file.
24690
24691         Tests for module 'log'.
24692         * modules/log-tests: New file.
24693         * tests/test-log.c: New file.
24694
24695         Tests for module 'lgamma'.
24696         * modules/lgamma-tests: New file.
24697         * tests/test-lgamma.c: New file.
24698
24699         Tests for module 'ldexp'.
24700         * modules/ldexp-tests: New file.
24701         * tests/test-ldexp.c: New file.
24702
24703         Tests for module 'jn'.
24704         * modules/jn-tests: New file.
24705         * tests/test-jn.c: New file.
24706
24707         Tests for module 'j1'.
24708         * modules/j1-tests: New file.
24709         * tests/test-j1.c: New file.
24710
24711         Tests for module 'j0'.
24712         * modules/j0-tests: New file.
24713         * tests/test-j0.c: New file.
24714
24715         Tests for module 'hypot'.
24716         * modules/hypot-tests: New file.
24717         * tests/test-hypot.c: New file.
24718
24719         Tests for module 'fmod'.
24720         * modules/fmod-tests: New file.
24721         * tests/test-fmod.c: New file.
24722
24723         Tests for module 'fabs'.
24724         * modules/fabs-tests: New file.
24725         * tests/test-fabs.c: New file.
24726
24727         Tests for module 'exp'.
24728         * modules/exp-tests: New file.
24729         * tests/test-exp.c: New file.
24730
24731         Tests for module 'erfc'.
24732         * modules/erfc-tests: New file.
24733         * tests/test-erfc.c: New file.
24734
24735         Tests for module 'erf'.
24736         * modules/erf-tests: New file.
24737         * tests/test-erf.c: New file.
24738
24739         Tests for module 'cosh'.
24740         * modules/cosh-tests: New file.
24741         * tests/test-cosh.c: New file.
24742
24743         Tests for module 'cos'.
24744         * modules/cos-tests: New file.
24745         * tests/test-cos.c: New file.
24746
24747         Tests for module 'copysign'.
24748         * modules/copysign-tests: New file.
24749         * tests/test-copysign.c: New file.
24750
24751         Tests for module 'cbrt'.
24752         * modules/cbrt-tests: New file.
24753         * tests/test-cbrt.c: New file.
24754
24755         Tests for module 'atan2'.
24756         * modules/atan2-tests: New file.
24757         * tests/test-atan2.c: New file.
24758
24759         Tests for module 'atan'.
24760         * modules/atan-tests: New file.
24761         * tests/test-atan.c: New file.
24762
24763         Tests for module 'asin'.
24764         * modules/asin-tests: New file.
24765         * tests/test-asin.c: New file.
24766
24767         Tests for module 'acos'.
24768         * modules/acos-tests: New file.
24769         * tests/test-acos.c: New file.
24770
24771 2010-01-24  Bruno Haible  <bruno@clisp.org>
24772
24773         Fix tests for common <math.h> functions.
24774         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24775         code snippet that references the function pointer, rather than merely
24776         calling the function. Substitute the FUNC_LIBM variable.
24777         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24778         * modules/acos (configure.ac): Likewise.
24779         * modules/asin (configure.ac): Likewise.
24780         * modules/atan (configure.ac): Likewise.
24781         * modules/atan2 (configure.ac): Likewise.
24782         * modules/cbrt (configure.ac): Likewise.
24783         * modules/copysign (configure.ac): Likewise.
24784         * modules/cos (configure.ac): Likewise.
24785         * modules/cosh (configure.ac): Likewise.
24786         * modules/erf (configure.ac): Likewise.
24787         * modules/erfc (configure.ac): Likewise.
24788         * modules/exp (configure.ac): Likewise.
24789         * modules/fabs (configure.ac): Likewise.
24790         * modules/fmod (configure.ac): Likewise.
24791         * modules/hypot (configure.ac): Likewise.
24792         * modules/j0 (configure.ac): Likewise.
24793         * modules/j1 (configure.ac): Likewise.
24794         * modules/jn (configure.ac): Likewise.
24795         * modules/ldexp (configure.ac): Likewise.
24796         * modules/lgamma (configure.ac): Likewise.
24797         * modules/log (configure.ac): Likewise.
24798         * modules/log10 (configure.ac): Likewise.
24799         * modules/log1p (configure.ac): Likewise.
24800         * modules/logb (configure.ac): Likewise.
24801         * modules/modf (configure.ac): Likewise.
24802         * modules/nextafter (configure.ac): Likewise.
24803         * modules/pow (configure.ac): Likewise.
24804         * modules/remainder (configure.ac): Likewise.
24805         * modules/rint (configure.ac): Likewise.
24806         * modules/sin (configure.ac): Likewise.
24807         * modules/sinh (configure.ac): Likewise.
24808         * modules/tan (configure.ac): Likewise.
24809         * modules/tanh (configure.ac): Likewise.
24810         * modules/y0 (configure.ac): Likewise.
24811         * modules/y1 (configure.ac): Likewise.
24812         * modules/yn (configure.ac): Likewise.
24813
24814 2010-01-24  Bruno Haible  <bruno@clisp.org>
24815
24816         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24817         * tests/test-acosl.c (x): New variable.
24818         (main): Store argument in x and fetch it from x.
24819         * tests/test-asinl.c (x): New variable.
24820         (main): Store argument in x and fetch it from x.
24821         * tests/test-atanl.c (x): New variable.
24822         (main): Store argument in x and fetch it from x.
24823         * tests/test-cosl.c (x): New variable.
24824         (main): Store argument in x and fetch it from x.
24825         * tests/test-expl.c (x): New variable.
24826         (main): Store argument in x and fetch it from x.
24827         * tests/test-logl.c (x): New variable.
24828         (main): Store argument in x and fetch it from x.
24829         * tests/test-sinl.c (x): New variable.
24830         (main): Store argument in x and fetch it from x.
24831         * tests/test-sqrtl.c (x): New variable.
24832         (main): Store argument in x and fetch it from x.
24833         * tests/test-tanl.c (x): New variable.
24834         (main): Store argument in x and fetch it from x.
24835
24836 2010-01-24  Bruno Haible  <bruno@clisp.org>
24837
24838         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24839         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24840         assignments to the initial TESTS_ENVIRONMENT.
24841         * doc/gnulib.texi (Unit test modules): Document it.
24842         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24843         TESTS_ENVIRONMENT.
24844         * modules/btowc-tests (Makefile.am): Likewise.
24845         * modules/c-stack-tests (Makefile.am): Likewise.
24846         * modules/c-strcase-tests (Makefile.am): Likewise.
24847         * modules/copy-file-tests (Makefile.am): Likewise.
24848         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24849         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24850         * modules/mbrtowc-tests (Makefile.am): Likewise.
24851         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24852         * modules/mbscasestr-tests (Makefile.am): Likewise.
24853         * modules/mbschr-tests (Makefile.am): Likewise.
24854         * modules/mbscspn-tests (Makefile.am): Likewise.
24855         * modules/mbsinit-tests (Makefile.am): Likewise.
24856         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24857         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24858         * modules/mbspbrk-tests (Makefile.am): Likewise.
24859         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24860         * modules/mbsrchr-tests (Makefile.am): Likewise.
24861         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24862         * modules/mbsspn-tests (Makefile.am): Likewise.
24863         * modules/mbsstr-tests (Makefile.am): Likewise.
24864         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24865         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24866         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24867         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24868         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24869         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24870         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24871         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24872         * modules/wcrtomb-tests (Makefile.am): Likewise.
24873         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24874         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24875         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24876         assignments from TESTS_ENVIRONMENT.
24877         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24878         augmentation.
24879         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24880         * modules/atexit-tests (Makefile.am): Likewise.
24881         * modules/binary-io-tests (Makefile.am): Likewise.
24882         * modules/closein-tests (Makefile.am): Likewise.
24883         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24884         * modules/exclude-tests (Makefile.am): Likewise.
24885         * modules/fflush-tests (Makefile.am): Likewise.
24886         * modules/fpending-tests (Makefile.am): Likewise.
24887         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24888         * modules/freadahead-tests (Makefile.am): Likewise.
24889         * modules/freadptr-tests (Makefile.am): Likewise.
24890         * modules/freadseek-tests (Makefile.am): Likewise.
24891         * modules/fseek-tests (Makefile.am): Likewise.
24892         * modules/fseeko-tests (Makefile.am): Likewise.
24893         * modules/ftell-tests (Makefile.am): Likewise.
24894         * modules/ftello-tests (Makefile.am): Likewise.
24895         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24896         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24897         * modules/lseek-tests (Makefile.am): Likewise.
24898         * modules/parse-duration-tests (Makefile.am): Likewise.
24899         * modules/perror-tests (Makefile.am): Likewise.
24900         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24901         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24902         * modules/pipe-tests (Makefile.am): Likewise.
24903         * modules/pread-tests (Makefile.am): Likewise.
24904         * modules/printf-posix-tests (Makefile.am): Likewise.
24905         * modules/select-tests (Makefile.am): Likewise.
24906         * modules/sigpipe-tests (Makefile.am): Likewise.
24907         * modules/tsearch-tests (Makefile.am): Likewise.
24908         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24909         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24910         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24911         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24912         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24913         * modules/version-etc-tests (Makefile.am): Likewise.
24914         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24915         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24916         * modules/xalloc-die-tests (Makefile.am): Likewise.
24917         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24918         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24919         * modules/xstrtol-tests (Makefile.am): Likewise.
24920         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24921         * modules/yesno-tests (Makefile.am): Likewise.
24922         Suggested by Jim Meyering.
24923
24924 2010-01-24  Bruno Haible  <bruno@clisp.org>
24925
24926         More documentation.
24927         * doc/gnulib.texi (Writing modules): New chapter.
24928         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24929         the new chapter.
24930
24931 2010-01-24  Jim Meyering  <meyering@redhat.com>
24932
24933         maint.mk: do not prepend "./" after filtering
24934         * top/maint.mk (_prepend_srcdir_prefix): New variable
24935         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24936         "./" when $(srcdir) is ".".
24937
24938         define STREQ(a,b) consistently, removing useless parentheses
24939         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24940         since the only risk is that "a" or "b" contains an unparenthesized
24941         comma, but if either did that, STREQ would have 3 or more arguments.
24942         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24943         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24944         * lib/hash-triple.c (STREQ): Likewise.
24945         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24946         * lib/getugroups.c (STREQ): Likewise.
24947
24948 2010-01-23  Jim Meyering  <meyering@redhat.com>
24949
24950         maint.mk: fix syntax-check in a non-srcdir build directory
24951         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24952         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24953
24954 2010-01-22  Jim Meyering  <meyering@redhat.com>
24955
24956         userspec: add unit tests
24957         * tests/test-userspec.c: New file.
24958         * modules/userspec-tests: Likewise.
24959
24960 2010-01-21  Jim Meyering  <meyering@redhat.com>
24961
24962         maint.mk: handle source file names containing "." robustly
24963         * top/maint.mk (_dot_escaped_srcdir): Define.
24964         (VC_LIST): Use it in LHS of sed substitution.
24965
24966 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24967
24968         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24969         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24970         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24971         from a non-srcdir build.
24972
24973 2010-01-20  Eric Blake  <ebb9@byu.net>
24974
24975         warn-on-use: use instead of link-warning
24976         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24977         * modules/unistd (Depends-on, Makefile.am): Likewise.
24978         * modules/arpa_inet (Depends-on): Replace link-warning with
24979         warn-on-use.
24980         (Makefile.am): Update rules accordingly.
24981         * modules/ctype (Depends-on, Makefile.am): Likewise.
24982         * modules/dirent (Depends-on, Makefile.am): Likewise.
24983         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24984         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24985         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24986         * modules/locale (Depends-on, Makefile.am): Likewise.
24987         * modules/math (Depends-on, Makefile.am): Likewise.
24988         * modules/search (Depends-on, Makefile.am): Likewise.
24989         * modules/signal (Depends-on, Makefile.am): Likewise.
24990         * modules/spawn (Depends-on, Makefile.am): Likewise.
24991         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24992         * modules/string (Depends-on, Makefile.am): Likewise.
24993         * modules/strings (Depends-on, Makefile.am): Likewise.
24994         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24995         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24996         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24997         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24998         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24999         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25000         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25001         * modules/wchar (Depends-on, Makefile.am): Likewise.
25002         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25003         should be poisoned.
25004         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25005         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25006         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25007         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25008         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25009         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25010         * m4/math_h.m4 (gl_MATH_H): Likewise.
25011         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25012         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25013         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25014         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25015         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25016         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25017         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25018         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25019         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25020         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25022         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25023         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25024         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25025         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25026         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25027         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25028         GL_LINK_WARNING.
25029         * lib/ctype.in.h: Likewise.
25030         * lib/dirent.in.h: Likewise.
25031         * lib/fcntl.in.h: Likewise.
25032         * lib/inttypes.in.h: Likewise.
25033         * lib/langinfo.in.h: Likewise.
25034         * lib/locale.in.h: Likewise.
25035         * lib/math.in.h: Likewise.
25036         * lib/search.in.h: Likewise.
25037         * lib/signal.in.h: Likewise.
25038         * lib/spawn.in.h: Likewise.
25039         * lib/stdio.in.h: Likewise.
25040         * lib/stdlib.in.h: Likewise.
25041         * lib/string.in.h: Likewise.
25042         * lib/strings.in.h: Likewise.
25043         * lib/sys_file.in.h: Likewise.
25044         * lib/sys_ioctl.in.h: Likewise.
25045         * lib/sys_select.in.h: Likewise.
25046         * lib/sys_socket.in.h: Likewise.
25047         * lib/sys_stat.in.h: Likewise.
25048         * lib/sys_times.in.h: Likewise.
25049         * lib/sys_utsname.in.h: Likewise.
25050         * lib/unistd.in.h: Likewise.
25051         * lib/wchar.in.h: Likewise.
25052
25053 2010-01-20  Bruno Haible  <bruno@clisp.org>
25054
25055         Avoid duplicate -lm.
25056         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25057         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25058         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25060         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25061         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25062         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25063         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25064         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25065         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25066         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25067         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25068         Reported by Paolo Bonzini.
25069
25070 2010-01-19  Bruno Haible  <bruno@clisp.org>
25071
25072         langinfo, nl_langinfo: Relicense under LGPLv2+.
25073         * modules/langinfo (License): Change to LGPLv2+.
25074         * modules/nl_langinfo (License): Likewise.
25075         Patch by David Lutterkort <lutter@redhat.com>.
25076
25077 2010-01-19  Bruno Haible  <bruno@clisp.org>
25078
25079         Avoid compilation error with cc on OSF/1 5.1.
25080         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25081         statement, not before.
25082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25083
25084 2010-01-18  Bruno Haible  <bruno@clisp.org>
25085
25086         Avoid a link error due to the __printf__ symbol.
25087         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25088         and 2.6.x.
25089         (__format__, __printf__): Remove definitions.
25090         * lib/argp-fmtstream.h: Likewise.
25091         * lib/argp.h: Likewise.
25092         * lib/error.h: Likewise.
25093         * lib/vasnprintf.h: Likewise.
25094         * lib/xprintf.h: Likewise.
25095         * lib/xvasprintf.h: Likewise.
25096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25097
25098 2010-01-18  Bruno Haible  <bruno@clisp.org>
25099
25100         Tests for module 'tanl'.
25101         * modules/tanl-tests: New file.
25102         * tests/test-tanl.c: New file.
25103
25104         Tests for module 'sqrtl'.
25105         * modules/sqrtl-tests: New file.
25106         * tests/test-sqrtl.c: New file.
25107
25108         Tests for module 'sinl'.
25109         * modules/sinl-tests: New file.
25110         * tests/test-sinl.c: New file.
25111
25112         Tests for module 'logl'.
25113         * modules/logl-tests: New file.
25114         * tests/test-logl.c: New file.
25115
25116         Tests for module 'expl'.
25117         * modules/expl-tests: New file.
25118         * tests/test-expl.c: New file.
25119
25120         Tests for module 'cosl'.
25121         * modules/cosl-tests: New file.
25122         * tests/test-cosl.c: New file.
25123
25124         Tests for module 'atanl'.
25125         * modules/atanl-tests: New file.
25126         * tests/test-atanl.c: New file.
25127
25128         Tests for module 'asinl'.
25129         * modules/asinl-tests: New file.
25130         * tests/test-asinl.c: New file.
25131
25132         Tests for module 'acosl'.
25133         * modules/acosl-tests: New file.
25134         * tests/test-acosl.c: New file.
25135
25136         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25137         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25138         tanl): Use the standard gnulib idiom.
25139         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25140         * lib/sinl.c: Likewise.
25141         * lib/tanl.c: Don't include trigl.c.
25142         (kernel_tanl): Make static.
25143         * lib/sincosl.c: Include trigl.h first.
25144         * lib/trigl.c: Likewise.
25145         * m4/acosl.m4: New file.
25146         * m4/asinl.m4: New file.
25147         * m4/atanl.m4: New file.
25148         * m4/cosl.m4: New file.
25149         * m4/expl.m4: New file.
25150         * m4/logl.m4: New file.
25151         * m4/sinl.m4: New file.
25152         * m4/sqrtl.m4: New file.
25153         * m4/tanl.m4: New file.
25154         * m4/mathl.m4: Remove file.
25155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25156         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25157         Don't initialize GNULIB_MATHL.
25158         * modules/acosl: New file.
25159         * modules/asinl: New file.
25160         * modules/atanl: New file.
25161         * modules/cosl: New file.
25162         * modules/expl: New file.
25163         * modules/logl: New file.
25164         * modules/sinl: New file.
25165         * modules/sqrtl: New file.
25166         * modules/tanl: New file.
25167         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25168         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25169         substitute GNULIB_MATHL.
25170         * modules/mathl: Rewritten.
25171         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25172         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25173         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25174         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25175         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25176         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25177         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25178         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25179         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25180
25181 2010-01-18  Bruno Haible  <bruno@clisp.org>
25182
25183         sqrt: Make gl_FUNC_SQRT requirable.
25184         * m4/sqrt.m4: New file.
25185         * modules/sqrt (Files): Add it.
25186         (configure.ac): Invoke gl_FUNC_SQRT.
25187
25188 2010-01-18  Bruno Haible  <bruno@clisp.org>
25189
25190         New modules for common <math.h> functions.
25191         * m4/mathfunc.m4: New file.
25192         * modules/acos: New file.
25193         * modules/asin: New file.
25194         * modules/atan: New file.
25195         * modules/atan2: New file.
25196         * modules/cbrt: New file.
25197         * modules/copysign: New file.
25198         * modules/cos: New file.
25199         * modules/cosh: New file.
25200         * modules/erf: New file.
25201         * modules/erfc: New file.
25202         * modules/exp: New file.
25203         * modules/fabs: New file.
25204         * modules/fmod: New file.
25205         * modules/hypot: New file.
25206         * modules/j0: New file.
25207         * modules/j1: New file.
25208         * modules/jn: New file.
25209         * modules/ldexp: New file.
25210         * modules/lgamma: New file.
25211         * modules/log: New file.
25212         * modules/log10: New file.
25213         * modules/log1p: New file.
25214         * modules/logb: New file.
25215         * modules/modf: New file.
25216         * modules/nextafter: New file.
25217         * modules/pow: New file.
25218         * modules/remainder: New file.
25219         * modules/rint: New file.
25220         * modules/sin: New file.
25221         * modules/sinh: New file.
25222         * modules/sqrt: New file.
25223         * modules/tan: New file.
25224         * modules/tanh: New file.
25225         * modules/y0: New file.
25226         * modules/y1: New file.
25227         * modules/yn: New file.
25228         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25229         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25230         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25231         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25232         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25233         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25234         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25235         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25236         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25237         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25238         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25239         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25240         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25241         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25242         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25243         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25244         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25245         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25246         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25247         * doc/posix-functions/log.texi: Mention the 'log' module.
25248         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25249         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25250         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25251         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25252         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25253         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25254         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25255         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25256         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25257         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25258         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25259         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25260         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25261         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25262         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25263         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25264
25265 2010-01-18  Jim Meyering  <meyering@redhat.com>
25266
25267         ignore-value: relax license to LGPLv2+
25268         * modules/ignore-value (License): Relax to LGPLv2+.
25269
25270         getdate: don't leak when TZ contains two or more '"'s
25271         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25272         double quote in TZ after the first one.
25273
25274         readtokens: do not leak internal token_lengths buffer
25275         * lib/readtokens.c (readtokens): Free the local, lengths,
25276         when the supplied "token_lengths" parameter is NULL.
25277
25278 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25279
25280         Fix a couple of missing LIBTHREAD link failures on AIX.
25281         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25282         $(LIBTHREAD).
25283         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25284
25285         Link test-poll against INET_PTON_LIB.
25286         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25287         for inet_pton on Solaris 10.
25288
25289 2010-01-17  Bruno Haible  <bruno@clisp.org>
25290
25291         unistdio/*-sprintf: Fix typo in module description.
25292         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25293         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25294         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25295         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25296         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25297         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25298         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25300
25301 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25302
25303         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25304         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25305         variables in shell case patterns, for AIX and HP-UX ksh.
25306
25307         Split large sed scripts, for HP-UX sed.
25308         * modules/stdio: Split sed scripts around 50 sed commands,
25309         to avoid HP-UX limit of 99 commands, in the near future.
25310         * modules/string: Likewise.
25311         * modules/unistd: Likewise.
25312
25313         gnulib-tool: avoid writing in the current directory.
25314         * gnulib-tool (func_emit_lib_Makefile_am)
25315         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25316         not in the current directory, so concurrent gnulib-tool
25317         instances do not interfere.
25318
25319 2010-01-16  Jim Meyering  <meyering@redhat.com>
25320
25321         doc: update users.txt
25322         * users.txt: Add grep.
25323         (diffutils, gzip): Update URLs.
25324
25325 2010-01-12  Bruno Haible  <bruno@clisp.org>
25326
25327         posix_spawn: Avoid test failure on Cygwin.
25328         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25329         characters.
25330         Reported by Simon Josefsson.
25331
25332 2010-01-12  Bruno Haible  <bruno@clisp.org>
25333
25334         * tests/test-cond.c (main): When skipping the test, show the reason.
25335
25336 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25337
25338         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25339
25340 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25341
25342         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25343         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25344
25345 2010-01-12  Eric Blake  <ebb9@byu.net>
25346
25347         build: guarantee AS_VAR_IF
25348         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25349         (gl_AS_VAR_IF): Move...
25350         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25351         Reported by Simon Josefsson.
25352
25353 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25354
25355         * lib/stdio.in.h: Fix typo.
25356
25357 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25358
25359         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25360         libgpg-error.
25361
25362 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25363
25364         * tests/test-xalloc-die.sh: Use $EXEEXT.
25365
25366 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25367             Bruno Haible  <bruno@clisp.org>
25368
25369         getlogin, getlogin_r: Avoid test failure.
25370         * tests/test-getlogin.c: Include <stdio.h>.
25371         (main): Skip the test when the function fails because stdin is not a
25372         tty.
25373         * tests/test-getlogin_r.c: Include <stdio.h>.
25374         (main): Skip the test when the function fails because stdin is not a
25375         tty.
25376
25377 2010-01-11  Eric Blake  <ebb9@byu.net>
25378
25379         tests: avoid more large file warnings
25380         * tests/test-fflush.c: Avoid warning about ftell use.
25381         * tests/test-fseek.c: Avoid warning about fseek use.
25382
25383 2010-01-10  Bruno Haible  <bruno@clisp.org>
25384
25385         nproc: Work better on Linux when /proc and /sys are not mounted.
25386         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25387         as lower bound when, on glibc/Linux systems,
25388         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25389         Suggested by Pádraig Brady <P@draigbrady.com>.
25390         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25391
25392         nproc: Refactor.
25393         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25394         extracted from num_processors.
25395         (num_processors): Call it.
25396
25397 2010-01-11  Jim Meyering  <meyering@redhat.com>
25398
25399         utimecmp: avoid new warning from upcoming gcc-4.5.0
25400         * lib/utimecmp.c (BILLION): Define using #define rather than an
25401         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25402
25403 2010-01-11  Eric Blake  <ebb9@byu.net>
25404
25405         math: add portability warnings for classification macros
25406         * modules/math (Depends-on): Add warn-on-use.
25407         (Makefile.am): Provide new substitutions.
25408         * m4/math_h.m4 (gl_MATH_H): Require inline.
25409         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25410         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25411         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25412         implement warnings.
25413
25414         unistd: warn on use of environ without module
25415         * modules/unistd (Depends-on): Add warn-on-use.
25416         (Makefile.am): Provide new substitutions.
25417         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25418         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25419
25420         stdio: warn on suspicious uses
25421         * modules/stdio (Depends-on): Add warn-on-use.
25422         (Makefile.am): Provide new substitutions.
25423         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25424         fseeko.
25425         * lib/stdio.in.h (gets): Always warn on use.
25426         (fseek, ftell): Adjust when warnings are issued, and honor
25427         _GL_NO_LARGE_FILES as a way to silence the warning.
25428         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25429         any warning about large file offsets.
25430         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25431         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25432         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25433         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25434         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25435         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25436         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25437         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25438
25439         warn-on-use: new module
25440         * modules/warn-on-use: New file.
25441         * build-aux/warn-on-use.h: Likewise.
25442         * m4/warn-on-use.m4: Likewise.
25443         * MODULES.html.sh (Support for building): Mention it.
25444
25445 2010-01-10  Bruno Haible  <bruno@clisp.org>
25446
25447         Tests for module 'unistr/u32-strdup'.
25448         * modules/unistr/u32-strdup-tests: New file.
25449         * tests/unistr/test-u32-strdup.c: New file.
25450
25451         Tests for module 'unistr/u16-strdup'.
25452         * modules/unistr/u16-strdup-tests: New file.
25453         * tests/unistr/test-u16-strdup.c: New file.
25454
25455         Tests for module 'unistr/u8-strdup'.
25456         * modules/unistr/u8-strdup-tests: New file.
25457         * tests/unistr/test-u8-strdup.c: New file.
25458         * tests/unistr/test-strdup.h: New file.
25459
25460         Tests for module 'unistr/u32-strncmp'.
25461         * modules/unistr/u32-strncmp-tests: New file.
25462         * tests/unistr/test-u32-strncmp.c: New file.
25463
25464         Tests for module 'unistr/u16-strncmp'.
25465         * modules/unistr/u16-strncmp-tests: New file.
25466         * tests/unistr/test-u16-strncmp.c: New file.
25467
25468         Tests for module 'unistr/u8-strncmp'.
25469         * modules/unistr/u8-strncmp-tests: New file.
25470         * tests/unistr/test-u8-strncmp.c: New file.
25471         * tests/unistr/test-strncmp.h: New file.
25472
25473         Tests for module 'unistr/u32-strcoll'.
25474         * modules/unistr/u32-strcoll-tests: New file.
25475         * tests/unistr/test-u32-strcoll.c: New file.
25476
25477         Tests for module 'unistr/u16-strcoll'.
25478         * modules/unistr/u16-strcoll-tests: New file.
25479         * tests/unistr/test-u16-strcoll.c: New file.
25480
25481         Tests for module 'unistr/u8-strcoll'.
25482         * modules/unistr/u8-strcoll-tests: New file.
25483         * tests/unistr/test-u8-strcoll.c: New file.
25484
25485         Tests for module 'unistr/u32-strcmp'.
25486         * modules/unistr/u32-strcmp-tests: New file.
25487         * tests/unistr/test-u32-strcmp.c: New file.
25488         * tests/unistr/test-u32-strcmp.h: New file.
25489
25490         Tests for module 'unistr/u16-strcmp'.
25491         * modules/unistr/u16-strcmp-tests: New file.
25492         * tests/unistr/test-u16-strcmp.c: New file.
25493         * tests/unistr/test-u16-strcmp.h: New file.
25494
25495         Tests for module 'unistr/u8-strcmp'.
25496         * modules/unistr/u8-strcmp-tests: New file.
25497         * tests/unistr/test-u8-strcmp.c: New file.
25498         * tests/unistr/test-u8-strcmp.h: New file.
25499         * tests/unistr/test-strcmp.h: New file.
25500
25501         Tests for module 'unistr/u32-strncat'.
25502         * modules/unistr/u32-strncat-tests: New file.
25503         * tests/unistr/test-u32-strncat.c: New file.
25504
25505         Tests for module 'unistr/u16-strncat'.
25506         * modules/unistr/u16-strncat-tests: New file.
25507         * tests/unistr/test-u16-strncat.c: New file.
25508
25509         Tests for module 'unistr/u8-strncat'.
25510         * modules/unistr/u8-strncat-tests: New file.
25511         * tests/unistr/test-u8-strncat.c: New file.
25512         * tests/unistr/test-strncat.h: New file.
25513
25514         Tests for module 'unistr/u32-strcat'.
25515         * modules/unistr/u32-strcat-tests: New file.
25516         * tests/unistr/test-u32-strcat.c: New file.
25517
25518         Tests for module 'unistr/u16-strcat'.
25519         * modules/unistr/u16-strcat-tests: New file.
25520         * tests/unistr/test-u16-strcat.c: New file.
25521
25522         Tests for module 'unistr/u8-strcat'.
25523         * modules/unistr/u8-strcat-tests: New file.
25524         * tests/unistr/test-u8-strcat.c: New file.
25525         * tests/unistr/test-strcat.h: New file.
25526
25527         Tests for module 'unistr/u32-stpncpy'.
25528         * modules/unistr/u32-stpncpy-tests: New file.
25529         * tests/unistr/test-u32-stpncpy.c: New file.
25530
25531         Tests for module 'unistr/u16-stpncpy'.
25532         * modules/unistr/u16-stpncpy-tests: New file.
25533         * tests/unistr/test-u16-stpncpy.c: New file.
25534
25535         Tests for module 'unistr/u8-stpncpy'.
25536         * modules/unistr/u8-stpncpy-tests: New file.
25537         * tests/unistr/test-u8-stpncpy.c: New file.
25538         * tests/unistr/test-stpncpy.h: New file.
25539
25540         Tests for module 'unistr/u32-strncpy'.
25541         * modules/unistr/u32-strncpy-tests: New file.
25542         * tests/unistr/test-u32-strncpy.c: New file.
25543
25544         Tests for module 'unistr/u16-strncpy'.
25545         * modules/unistr/u16-strncpy-tests: New file.
25546         * tests/unistr/test-u16-strncpy.c: New file.
25547
25548         Tests for module 'unistr/u8-strncpy'.
25549         * modules/unistr/u8-strncpy-tests: New file.
25550         * tests/unistr/test-u8-strncpy.c: New file.
25551         * tests/unistr/test-strncpy.h: New file.
25552
25553         Tests for module 'unistr/u32-stpcpy'.
25554         * modules/unistr/u32-stpcpy-tests: New file.
25555         * tests/unistr/test-u32-stpcpy.c: New file.
25556
25557         Tests for module 'unistr/u16-stpcpy'.
25558         * modules/unistr/u16-stpcpy-tests: New file.
25559         * tests/unistr/test-u16-stpcpy.c: New file.
25560
25561         Tests for module 'unistr/u8-stpcpy'.
25562         * modules/unistr/u8-stpcpy-tests: New file.
25563         * tests/unistr/test-u8-stpcpy.c: New file.
25564         * tests/unistr/test-stpcpy.h: New file.
25565
25566         Tests for module 'unistr/u32-strcpy'.
25567         * modules/unistr/u32-strcpy-tests: New file.
25568         * tests/unistr/test-u32-strcpy.c: New file.
25569
25570         Tests for module 'unistr/u16-strcpy'.
25571         * modules/unistr/u16-strcpy-tests: New file.
25572         * tests/unistr/test-u16-strcpy.c: New file.
25573
25574         Tests for module 'unistr/u8-strcpy'.
25575         * modules/unistr/u8-strcpy-tests: New file.
25576         * tests/unistr/test-u8-strcpy.c: New file.
25577         * tests/unistr/test-strcpy.h: New file.
25578
25579         Tests for module 'unistr/u32-strnlen'.
25580         * modules/unistr/u32-strnlen-tests: New file.
25581         * tests/unistr/test-u32-strnlen.c: New file.
25582
25583         Tests for module 'unistr/u16-strnlen'.
25584         * modules/unistr/u16-strnlen-tests: New file.
25585         * tests/unistr/test-u16-strnlen.c: New file.
25586
25587         Tests for module 'unistr/u8-strnlen'.
25588         * modules/unistr/u8-strnlen-tests: New file.
25589         * tests/unistr/test-u8-strnlen.c: New file.
25590         * tests/unistr/test-strnlen.h: New file.
25591
25592         Tests for module 'unistr/u32-strlen'.
25593         * modules/unistr/u32-strlen-tests: New file.
25594         * tests/unistr/test-u32-strlen.c: New file.
25595
25596         Tests for module 'unistr/u16-strlen'.
25597         * modules/unistr/u16-strlen-tests: New file.
25598         * tests/unistr/test-u16-strlen.c: New file.
25599
25600         Tests for module 'unistr/u8-strlen'.
25601         * modules/unistr/u8-strlen-tests: New file.
25602         * tests/unistr/test-u8-strlen.c: New file.
25603
25604         Tests for module 'unistr/u32-prev'.
25605         * modules/unistr/u32-prev-tests: New file.
25606         * tests/unistr/test-u32-prev.c: New file.
25607
25608         Tests for module 'unistr/u16-prev'.
25609         * modules/unistr/u16-prev-tests: New file.
25610         * tests/unistr/test-u16-prev.c: New file.
25611
25612         Tests for module 'unistr/u8-prev'.
25613         * modules/unistr/u8-prev-tests: New file.
25614         * tests/unistr/test-u8-prev.c: New file.
25615
25616         Tests for module 'unistr/u32-next'.
25617         * modules/unistr/u32-next-tests: New file.
25618         * tests/unistr/test-u32-next.c: New file.
25619
25620         Tests for module 'unistr/u16-next'.
25621         * modules/unistr/u16-next-tests: New file.
25622         * tests/unistr/test-u16-next.c: New file.
25623
25624         Tests for module 'unistr/u8-next'.
25625         * modules/unistr/u8-next-tests: New file.
25626         * tests/unistr/test-u8-next.c: New file.
25627
25628         Tests for module 'unistr/u32-strmbtouc'.
25629         * modules/unistr/u32-strmbtouc-tests: New file.
25630         * tests/unistr/test-u32-strmbtouc.c: New file.
25631
25632         Tests for module 'unistr/u16-strmbtouc'.
25633         * modules/unistr/u16-strmbtouc-tests: New file.
25634         * tests/unistr/test-u16-strmbtouc.c: New file.
25635
25636         Tests for module 'unistr/u8-strmbtouc'.
25637         * modules/unistr/u8-strmbtouc-tests: New file.
25638         * tests/unistr/test-u8-strmbtouc.c: New file.
25639
25640         Tests for module 'unistr/u32-strmblen'.
25641         * modules/unistr/u32-strmblen-tests: New file.
25642         * tests/unistr/test-u32-strmblen.c: New file.
25643
25644         Tests for module 'unistr/u16-strmblen'.
25645         * modules/unistr/u16-strmblen-tests: New file.
25646         * tests/unistr/test-u16-strmblen.c: New file.
25647
25648         Tests for module 'unistr/u8-strmblen'.
25649         * modules/unistr/u8-strmblen-tests: New file.
25650         * tests/unistr/test-u8-strmblen.c: New file.
25651
25652         Tests for module 'unistr/u32-cpy-alloc'.
25653         * modules/unistr/u32-cpy-alloc-tests: New file.
25654         * tests/unistr/test-u32-cpy-alloc.c: New file.
25655
25656         Tests for module 'unistr/u16-cpy-alloc'.
25657         * modules/unistr/u16-cpy-alloc-tests: New file.
25658         * tests/unistr/test-u16-cpy-alloc.c: New file.
25659
25660         Tests for module 'unistr/u8-cpy-alloc'.
25661         * modules/unistr/u8-cpy-alloc-tests: New file.
25662         * tests/unistr/test-u8-cpy-alloc.c: New file.
25663         * tests/unistr/test-cpy-alloc.h: New file.
25664
25665         Tests for module 'unistr/u32-mbsnlen'.
25666         * modules/unistr/u32-mbsnlen-tests: New file.
25667         * tests/unistr/test-u32-mbsnlen.c: New file.
25668
25669         Tests for module 'unistr/u16-mbsnlen'.
25670         * modules/unistr/u16-mbsnlen-tests: New file.
25671         * tests/unistr/test-u16-mbsnlen.c: New file.
25672
25673         Tests for module 'unistr/u8-mbsnlen'.
25674         * modules/unistr/u8-mbsnlen-tests: New file.
25675         * tests/unistr/test-u8-mbsnlen.c: New file.
25676
25677         Tests for module 'unistr/u32-chr'.
25678         * modules/unistr/u32-chr-tests: New file.
25679         * tests/unistr/test-u32-chr.c: New file.
25680
25681         Tests for module 'unistr/u16-chr'.
25682         * modules/unistr/u16-chr-tests: New file.
25683         * tests/unistr/test-u16-chr.c: New file.
25684
25685         Tests for module 'unistr/u8-chr'.
25686         * modules/unistr/u8-chr-tests: New file.
25687         * tests/unistr/test-u8-chr.c: New file.
25688         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25689
25690         Tests for module 'unistr/u32-cmp2'.
25691         * modules/unistr/u32-cmp2-tests: New file.
25692         * tests/unistr/test-u32-cmp2.c: New file.
25693
25694         Tests for module 'unistr/u16-cmp2'.
25695         * modules/unistr/u16-cmp2-tests: New file.
25696         * tests/unistr/test-u16-cmp2.c: New file.
25697
25698         Tests for module 'unistr/u8-cmp2'.
25699         * modules/unistr/u8-cmp2-tests: New file.
25700         * tests/unistr/test-u8-cmp2.c: New file.
25701         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25702
25703         Tests for module 'unistr/u32-cmp'.
25704         * modules/unistr/u32-cmp-tests: New file.
25705         * tests/unistr/test-u32-cmp.c: New file.
25706
25707         Tests for module 'unistr/u16-cmp'.
25708         * modules/unistr/u16-cmp-tests: New file.
25709         * tests/unistr/test-u16-cmp.c: New file.
25710
25711         Tests for module 'unistr/u8-cmp'.
25712         * modules/unistr/u8-cmp-tests: New file.
25713         * tests/unistr/test-u8-cmp.c: New file.
25714         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25715
25716         Tests for module 'unistr/u32-set'.
25717         * modules/unistr/u32-set-tests: New file.
25718         * tests/unistr/test-u32-set.c: New file.
25719
25720         Tests for module 'unistr/u16-set'.
25721         * modules/unistr/u16-set-tests: New file.
25722         * tests/unistr/test-u16-set.c: New file.
25723
25724         Tests for module 'unistr/u8-set'.
25725         * modules/unistr/u8-set-tests: New file.
25726         * tests/unistr/test-u8-set.c: New file.
25727         * tests/unistr/test-set.h: New file.
25728
25729         Tests for module 'unistr/u32-move'.
25730         * modules/unistr/u32-move-tests: New file.
25731         * tests/unistr/test-u32-move.c: New file.
25732
25733         Tests for module 'unistr/u16-move'.
25734         * modules/unistr/u16-move-tests: New file.
25735         * tests/unistr/test-u16-move.c: New file.
25736
25737         Tests for module 'unistr/u8-move'.
25738         * modules/unistr/u8-move-tests: New file.
25739         * tests/unistr/test-u8-move.c: New file.
25740         * tests/unistr/test-move.h: New file.
25741
25742         Tests for module 'unistr/u32-cpy'.
25743         * modules/unistr/u32-cpy-tests: New file.
25744         * tests/unistr/test-u32-cpy.c: New file.
25745
25746         Tests for module 'unistr/u16-cpy'.
25747         * modules/unistr/u16-cpy-tests: New file.
25748         * tests/unistr/test-u16-cpy.c: New file.
25749
25750         Tests for module 'unistr/u8-cpy'.
25751         * modules/unistr/u8-cpy-tests: New file.
25752         * tests/unistr/test-u8-cpy.c: New file.
25753         * tests/unistr/test-cpy.h: New file.
25754
25755 2010-01-09  Bruno Haible  <bruno@clisp.org>
25756
25757         Tests for module 'unistr/u32-uctomb'.
25758         * modules/unistr/u32-uctomb-tests: New file.
25759         * tests/unistr/test-u32-uctomb.c: New file.
25760
25761         Tests for module 'unistr/u16-uctomb'.
25762         * modules/unistr/u16-uctomb-tests: New file.
25763         * tests/unistr/test-u16-uctomb.c: New file.
25764
25765         Tests for module 'unistr/u8-uctomb'.
25766         * modules/unistr/u8-uctomb-tests: New file.
25767         * tests/unistr/test-u8-uctomb.c: New file.
25768
25769         Tests for module 'unistr/u32-mbtoucr'.
25770         * modules/unistr/u32-mbtoucr-tests: New file.
25771         * tests/unistr/test-u32-mbtoucr.c: New file.
25772
25773         Tests for module 'unistr/u16-mbtoucr'.
25774         * modules/unistr/u16-mbtoucr-tests: New file.
25775         * tests/unistr/test-u16-mbtoucr.c: New file.
25776
25777         Tests for module 'unistr/u8-mbtoucr'.
25778         * modules/unistr/u8-mbtoucr-tests: New file.
25779         * tests/unistr/test-u8-mbtoucr.c: New file.
25780
25781         Tests for module 'unistr/u32-mbtouc'.
25782         * modules/unistr/u32-mbtouc-tests: New file.
25783         * tests/unistr/test-u32-mbtouc.c: New file.
25784
25785         Tests for module 'unistr/u16-mbtouc'.
25786         * modules/unistr/u16-mbtouc-tests: New file.
25787         * tests/unistr/test-u16-mbtouc.c: New file.
25788
25789         Tests for module 'unistr/u8-mbtouc'.
25790         * modules/unistr/u8-mbtouc-tests: New file.
25791         * tests/unistr/test-u8-mbtouc.c: New file.
25792
25793         Tests for module 'unistr/u32-mbtouc-unsafe'.
25794         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25795         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25796         * tests/unistr/test-u32-mbtouc.h: New file.
25797
25798         Tests for module 'unistr/u16-mbtouc-unsafe'.
25799         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25800         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25801         * tests/unistr/test-u16-mbtouc.h: New file.
25802
25803         Tests for module 'unistr/u8-mbtouc-unsafe'.
25804         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25805         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25806         * tests/unistr/test-u8-mbtouc.h: New file.
25807
25808         Tests for module 'unistr/u32-mblen'.
25809         * modules/unistr/u32-mblen-tests: New file.
25810         * tests/unistr/test-u32-mblen.c: New file.
25811
25812         Tests for module 'unistr/u16-mblen'.
25813         * modules/unistr/u16-mblen-tests: New file.
25814         * tests/unistr/test-u16-mblen.c: New file.
25815
25816         Tests for module 'unistr/u8-mblen'.
25817         * modules/unistr/u8-mblen-tests: New file.
25818         * tests/unistr/test-u8-mblen.c: New file.
25819
25820         Tests for module 'unistr/u32-to-u16'.
25821         * modules/unistr/u32-to-u16-tests: New file.
25822         * tests/unistr/test-u32-to-u16.c: New file.
25823
25824         Tests for module 'unistr/u32-to-u8'.
25825         * modules/unistr/u32-to-u8-tests: New file.
25826         * tests/unistr/test-u32-to-u8.c: New file.
25827
25828         Tests for module 'unistr/u16-to-u32'.
25829         * modules/unistr/u16-to-u32-tests: New file.
25830         * tests/unistr/test-u16-to-u32.c: New file.
25831
25832         Tests for module 'unistr/u16-to-u8'.
25833         * modules/unistr/u16-to-u8-tests: New file.
25834         * tests/unistr/test-u16-to-u8.c: New file.
25835
25836         Tests for module 'unistr/u8-to-u32'.
25837         * modules/unistr/u8-to-u32-tests: New file.
25838         * tests/unistr/test-u8-to-u32.c: New file.
25839
25840         Tests for module 'unistr/u8-to-u16'.
25841         * modules/unistr/u8-to-u16-tests: New file.
25842         * tests/unistr/test-u8-to-u16.c: New file.
25843
25844         Tests for module 'unistr/u32-check'.
25845         * modules/unistr/u32-check-tests: New file.
25846         * tests/unistr/test-u32-check.c: New file.
25847
25848         Tests for module 'unistr/u16-check'.
25849         * modules/unistr/u16-check-tests: New file.
25850         * tests/unistr/test-u16-check.c: New file.
25851
25852         Tests for module 'unistr/u8-check'.
25853         * modules/unistr/u8-check-tests: New file.
25854         * tests/unistr/test-u8-check.c: New file.
25855
25856         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25857         (category_equals): New function.
25858         (main): Add more tests.
25859         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25860
25861         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25862
25863 2010-01-10  Bruno Haible  <bruno@clisp.org>
25864
25865         unistr/u*-strcoll: Try harder to distinguish different strings.
25866         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25867         compare s1 and s2 to see if they are different.
25868
25869 2010-01-10  Bruno Haible  <bruno@clisp.org>
25870
25871         unistr/u*-stpncpy: Fix the return value.
25872         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25873         description of the return value consistent with stpncpy in glibc.
25874         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25875         written non-NUL unit.
25876
25877 2010-01-10  Bruno Haible  <bruno@clisp.org>
25878
25879         unistr/u*-next: Add missing dependencies.
25880         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25881         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25882         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25883
25884 2010-01-10  Bruno Haible  <bruno@clisp.org>
25885
25886         unistr/u8-mbsnlen: Fix return value for incomplete character.
25887         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25888         u8_mblen.
25889         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25890         Remove unistr/u8-mblen.
25891         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25892         u16_mblen.
25893         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25894         Remove unistr/u16-mblen.
25895
25896 2010-01-10  Bruno Haible  <bruno@clisp.org>
25897
25898         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25899         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25900         Reported by Brian Gough <bjg@gnu.org> and
25901         Chris Clayton <chris2553@googlemail.com> via
25902         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25903
25904 2010-01-09  Bruno Haible  <bruno@clisp.org>
25905
25906         unistr/u16-to-u32: Reject invalid input.
25907         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25908         u16_mbtouc.
25909         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25910         Remove unistr/u16-mbtouc.
25911
25912         unistr/u16-to-u8: Reject invalid input.
25913         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25914         u16_mbtouc.
25915         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25916         Remove unistr/u16-mbtouc.
25917
25918         unistr/u8-to-u32: Reject invalid input.
25919         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25920         u8_mbtouc.
25921         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25922         Remove unistr/u8-mbtouc.
25923
25924         unistr/u8-to-u16: Reject invalid input.
25925         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25926         u8_mbtouc.
25927         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25928         Remove unistr/u8-mbtouc.
25929
25930 2010-01-09  Bruno Haible  <bruno@clisp.org>
25931
25932         Tests for module 'getlogin'.
25933         * modules/getlogin-tests: New file.
25934         * tests/test-getlogin.c: New file.
25935
25936         New module 'getlogin'.
25937         * lib/unistd.in.h (getlogin): New declaration.
25938         * lib/getlogin.c: New file.
25939         * m4/getlogin.m4: New file.
25940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25941         HAVE_GETLOGIN.
25942         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25943         HAVE_GETLOGIN.
25944         * modules/getlogin: New file.
25945         * doc/posix-functions/getlogin.texi: Mention the new module.
25946         Reported by John W. Eaton <jwe@gnu.org>.
25947
25948 2010-01-09  Bruno Haible  <bruno@clisp.org>
25949
25950         getlogin_r: Support for native Windows.
25951         * lib/getlogin_r.c: Include <windows.h>
25952         (getlogin_r): Implement for native Windows.
25953         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25954         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25955         via John W. Eaton <jwe@gnu.org>.
25956
25957 2010-01-09  Bruno Haible  <bruno@clisp.org>
25958
25959         getlogin_r: Small fixes.
25960         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25961         succeeds.
25962         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25963         before testing whether getlogin_r is declared. No need to set
25964         HAVE_DECL_GETLOGIN_R to 1.
25965         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25966
25967 2010-01-09  Bruno Haible  <bruno@clisp.org>
25968
25969         * lib/unistd.in.h (getlogin_r): Add comment.
25970
25971 2010-01-09  Bruno Haible  <bruno@clisp.org>
25972
25973         Tests for module 'getlogin_r'.
25974         * modules/getlogin_r-tests: New file.
25975         * tests/test-getlogin_r.c: New file.
25976
25977 2010-01-09  Jim Meyering  <meyering@redhat.com>
25978
25979         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25980         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25981         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25982
25983 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25984
25985         * lib/dup2.c (rpl_dup2): Improve comment.
25986
25987 2010-01-08  Eric Blake  <ebb9@byu.net>
25988
25989         maint.mk: allow packages to add makefile @@ exceptions
25990         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25991         (sc_makefile_check): Rename...
25992         (sc_makefile_at_at_check): ...to this, and use hook.
25993
25994         dup2: work around mingw bug
25995         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25996         Reported by Simon Josefsson.
25997
25998 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25999
26000         glob: Fix C++ compilation.
26001         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26002         C++.
26003
26004 2010-01-07  Bruno Haible  <bruno@clisp.org>
26005
26006         Fix indentation of wctype.in.h, broken since 2007-01-06.
26007         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26008
26009 2010-01-07  Bruno Haible  <bruno@clisp.org>
26010
26011         mbslen: Avoid collision with system function.
26012         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26013         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26014         * m4/mbslen.m4: New file.
26015         * modules/mbslen (Files): Add it.
26016         (configure.ac): Invoke gl_MBSLEN.
26017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26018         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26019         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26020         via Ian Beckwith <ianb@erislabs.net>.
26021
26022 2010-01-07  Bruno Haible  <bruno@clisp.org>
26023
26024         dirent: Document the last fix.
26025         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26026
26027 2010-01-07  Bruno Haible  <bruno@clisp.org>
26028
26029         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26030         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26031         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26032         va_list are defined.
26033         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26034         Reported by Eric Blake.
26035
26036 2010-01-07  Bruno Haible  <bruno@clisp.org>
26037
26038         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26039         * modules/xlist (Depends-on): Add 'list',
26040         * modules/xoset (Depends-on): Add 'oset'.
26041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26042
26043 2010-01-07  Bruno Haible  <bruno@clisp.org>
26044
26045         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26046         * doc/posix-functions/strncasecmp.texi: Likewise.
26047
26048 2010-01-07  Bruno Haible  <bruno@clisp.org>
26049
26050         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26051
26052 2010-01-07  John W. Eaton  <jwe@octave.org>
26053
26054         wctype: allow C++ use
26055         * lib/wctype.in.h: Add extern "C" block for C++.
26056
26057 2010-01-06  Eric Blake  <ebb9@byu.net>
26058
26059         maint.mk: detect incorrect GFDL usage
26060         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26061
26062 2010-01-06  Jim Meyering  <meyering@redhat.com>
26063         and Eric Blake  <ebb9@byu.net>
26064
26065         maint.mk: ignore multi-line copyright in NEWS
26066         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26067
26068 2010-01-06  Eric Blake  <ebb9@byu.net>
26069
26070         select: add missing dependency
26071         * modules/select-tests (Depends-on): Move sockets dependency...
26072         * modules/select (Depends-on): ...here.
26073         Reported by Ian Beckwith.
26074
26075         doc: regenerate INSTALL
26076         * doc/INSTALL: Reflect recent autoconf update.
26077         * doc/INSTALL.ISO: Likewise.
26078         * doc/INSTALL.UTF-8: Likewise.
26079
26080         pread: fix compilation on glibc
26081         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26082         Reported by Ralf Wildenhues.
26083
26084         dirent: fix test failure
26085         * lib/dirent.in.h (includes): Guarantee ino_t.
26086         Reported by Ralf Wildenhues.
26087
26088 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26089
26090         linkat, renameat: avoid bad free
26091         * lib/at-func2.c (at_func2): Fix typo.
26092         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26093
26094 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26095
26096         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26097         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26098         to avoid failure of symlink test later.
26099
26100 2010-01-06  Eric Blake  <ebb9@byu.net>
26101
26102         stdio, unistd: guarantee ssize_t
26103         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26104         2008 are exposed when needed.
26105         * lib/stdio.in.h (includes): Likewise.
26106         Reported by Ralf Wildenhues.
26107
26108 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26109
26110         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26111         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26112         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26113
26114 2010-01-06  Jim Meyering  <meyering@redhat.com>
26115
26116         readtokens: this module *does* require xalloc.h
26117         It uses only functions that were omitted by the old syntax-check rule.
26118         * lib/readtokens.c: Include "xalloc.h" once again.
26119         * modules/readtokens (Depends-on): Add xalloc.
26120         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26121
26122 2010-01-05  Eric Blake  <ebb9@byu.net>
26123
26124         maint: support 'make announcement' from a VPATH build
26125         * top/maint.mk (announcement): Look for correct NEWS file.
26126
26127 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26128
26129         utimens (fdutimens): ignore a negative FD, per contract
26130         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26131         when we have a valid file descriptor.  Otherwise, using a brand
26132         new glibc (with just-patched futimens that now fails with EBADF)
26133         would cause this function to fail with ENOSYS.
26134         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26135         See also http://bugzilla.redhat.com/552320.
26136
26137 2010-01-05  Eric Blake  <ebb9@byu.net>
26138
26139         strcase: document what it provides
26140         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26141         gnulib module.
26142         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26143         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26144
26145 2010-01-05  Jim Meyering  <meyering@redhat.com>
26146
26147         maint: remove useless inclusions of "xalloc.h"
26148         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26149         * lib/readtokens.c: Likewise.
26150         * lib/same.c: Likewise.
26151         * modules/getloadavg (Depends-on): Remove xalloc.
26152         * modules/readtokens: Likewise.
26153         * modules/same: Likewise.
26154
26155         maint.mk: include 4 more function names in alloca.h-checking regexp
26156         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26157         regexp.  Before, we would give a false-positive (saying alloca.h
26158         is included unnecessarily) when the only uses involved omitted symbols.
26159
26160         xalloc.h: use consistent formatting
26161         * lib/xalloc.h: Move declarations to start in the first column.
26162
26163 2010-01-05  Eric Blake  <ebb9@byu.net>
26164
26165         mkdir: avoid xalloc
26166         * lib/mkdir.c (includes): Drop unused header.
26167         Reported by John W. Eaton.
26168
26169 2010-01-04  Jim Meyering  <meyering@redhat.com>
26170
26171         nl_langinfo: avoid configure-time syntax error
26172         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26173         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26174         the empty string.  Don't let that provoke a shell syntax error.
26175
26176         regcomp, regexec, fnmatch: avoid array bounds read error
26177         * lib/regcomp.c (build_equiv_class): From glibc:
26178         Use only the low 24 bits of a findidx return value as an index
26179         into the weights array.  Patch by Ulrich Drepper:
26180         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26181         * lib/regexec.c (check_node_accept_bytes): Likewise.
26182         * lib/fnmatch_loop.c (FCT): Likewise.
26183
26184         regcomp: skip collseq lookup when there are no rules
26185         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26186         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26187
26188         regcomp: recognize ill-formed { } expressions
26189         * lib/regcomp.c (parse_dup_op): From glibc:
26190         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26191
26192         regcomp: fix typo in comment
26193         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26194         s/satisfy/satisfies/.
26195
26196         regcomp: sync from glibc: remove dead store
26197         * lib/regcomp.c (duplicate_node_closure): Remove useless
26198         search_duplicated_node call and dead store.
26199
26200         regcomp: sync from glibc; always use nl_langinfo
26201         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26202         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26203         * modules/regex (Depends-on): Add nl_langinfo.
26204
26205 2010-01-04  Eric Blake  <ebb9@byu.net>
26206
26207         fdopendir: fix configure test
26208         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26209
26210 2010-01-01  Bruno Haible  <bruno@clisp.org>
26211
26212         wchar: Remove unused configure check.
26213         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26214
26215 2010-01-01  Eric Blake  <ebb9@byu.net>
26216
26217         headers: make check of system header explicit
26218         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26219         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26220         ourselves.
26221         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26223         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26224         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26225         internals.
26226         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26227         missing.
26228         Suggested by Bruno Haible.
26229
26230 2010-01-01  Jim Meyering  <meyering@redhat.com>
26231
26232         ChangeLog: tweak to eliminate unnecessary copyright line
26233         * ChangeLog: Remove a copyright line that was mistakenly updated
26234         by today's update-copyright run.  Reported by Eric Blake.
26235
26236         test-update-copyright: don't let envvar setting cause test failure
26237         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26238
26239 2010-01-01  Bruno Haible  <bruno@clisp.org>
26240
26241         localename: Avoid gcc warning.
26242         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26243         function if it is not used.
26244
26245 2010-01-01  Jim Meyering  <meyering@redhat.com>
26246
26247         update nearly all FSF copyright year lists to include 2010
26248         Use the same procedure as for 2009, outlined in
26249         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26250
26251         version-etc: set COPYRIGHT_YEAR to 2010
26252         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26253
26254 2009-12-31  Eric Blake  <ebb9@byu.net>
26255
26256         doc: correct availability of cygwin 1.5.x getopt
26257         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26258         variables.
26259         * doc/posix-functions/opterr.texi (opterr): Likewise.
26260         * doc/posix-functions/optind.texi (optind): Likewise.
26261         * doc/posix-functions/optopt.texi (optopt): Likewise.
26262         * doc/posix-functions/tzname.texi (tzname): Likewise.
26263
26264         openat: update maintainer
26265         * modules/openat (Maintainer): Add myself.
26266
26267         utimens: avoid shadowing warning
26268         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26269         buffers into one, to avoid shadowing, as well as avoiding a
26270         redundant stat.
26271         Reported by Jim Meyering.
26272
26273         test-dup2: avoid compiler warning
26274         * tests/test-dup2.c (is_inheritable): Only define if used.
26275
26276 2010-01-01  Bruno Haible  <bruno@clisp.org>
26277
26278         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26279         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26280         defined, use wctomb instead of wcrtomb.
26281
26282 2010-01-01  Bruno Haible  <bruno@clisp.org>
26283
26284         iconv: Reject native Solaris iconv.
26285         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26286         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26287
26288 2009-12-31  Bruno Haible  <bruno@clisp.org>
26289
26290         * tests/test-signal.c (main): Remove test of 'SIG'.
26291
26292 2009-12-31  Bruno Haible  <bruno@clisp.org>
26293
26294         spawn: Fix incomplete fix.
26295         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26296         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26297         warnings for GNULIB_POSIXCHECK again.
26298         Reported by Eric Blake.
26299
26300 2009-12-31  Bruno Haible  <bruno@clisp.org>
26301
26302         Avoid namespace pollution on glibc systems.
26303         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26304         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26305         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26306         glibc systems.
26307
26308 2009-12-31  Bruno Haible  <bruno@clisp.org>
26309
26310         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26311         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26312         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26313         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26314         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26315         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26316         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26317
26318 2009-12-31  Bruno Haible  <bruno@clisp.org>
26319
26320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26321         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26322         afterwards.
26323
26324 2009-12-31  Bruno Haible  <bruno@clisp.org>
26325
26326         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26327         SYS_UTSNAME_H.
26328
26329 2009-12-31  Bruno Haible  <bruno@clisp.org>
26330
26331         spawn: Fix misapplied patch.
26332         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26333         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26334         warnings for GNULIB_POSIXCHECK.
26335
26336 2009-12-31  Bruno Haible  <bruno@clisp.org>
26337
26338         times: Update after sys_times changed.
26339         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26340         * modules/times (Files): Add it.
26341         (configure.ac): Invoke gl_FUNC_TIMES.
26342
26343 2009-12-31  Bruno Haible  <bruno@clisp.org>
26344
26345         Use AC_C_INLINE where necessary.
26346         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26347         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26349         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26350         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26351         * m4/mbiter.m4 (gl_MBITER): Likewise.
26352         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26353         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26354         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26355         * modules/u64 (configure.ac): Likewise.
26356
26357 2009-12-31  Bruno Haible  <bruno@clisp.org>
26358
26359         Use AC_C_INLINE instead of module 'inline' where possible.
26360         * modules/inline (Description): Clarify purpose.
26361         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26362         * modules/count-one-bits (Depends-on): Remove inline.
26363         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26364         * modules/openat (Depends-on): Remove inline.
26365         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26366         instead of depending on module 'inline'.
26367         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26368         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26369         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26370         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26371         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26372         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26373         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26374         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26375         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26376         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26377         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26378         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26379         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26380         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26381         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26382         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26383         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26384         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26385         Likewise.
26386         * modules/unictype/property-ascii-hex-digit (Depends-on,
26387         configure.ac): Likewise.
26388         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26389         configure.ac): Likewise.
26390         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26391         configure.ac): Likewise.
26392         * modules/unictype/property-bidi-block-separator (Depends-on,
26393         configure.ac): Likewise.
26394         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26395         configure.ac): Likewise.
26396         * modules/unictype/property-bidi-common-separator (Depends-on,
26397         configure.ac): Likewise.
26398         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26399         Likewise.
26400         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26401         configure.ac): Likewise.
26402         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26403         configure.ac): Likewise.
26404         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26405         configure.ac): Likewise.
26406         * modules/unictype/property-bidi-european-digit (Depends-on,
26407         configure.ac): Likewise.
26408         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26409         configure.ac): Likewise.
26410         * modules/unictype/property-bidi-left-to-right (Depends-on,
26411         configure.ac): Likewise.
26412         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26413         configure.ac): Likewise.
26414         * modules/unictype/property-bidi-other-neutral (Depends-on,
26415         configure.ac): Likewise.
26416         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26417         Likewise.
26418         * modules/unictype/property-bidi-segment-separator (Depends-on,
26419         configure.ac): Likewise.
26420         * modules/unictype/property-bidi-whitespace (Depends-on,
26421         configure.ac): Likewise.
26422         * modules/unictype/property-combining (Depends-on, configure.ac):
26423         Likewise.
26424         * modules/unictype/property-composite (Depends-on, configure.ac):
26425         Likewise.
26426         * modules/unictype/property-currency-symbol (Depends-on,
26427         configure.ac): Likewise.
26428         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26429         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26430         Likewise.
26431         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26432         configure.ac): Likewise.
26433         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26434         Likewise.
26435         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26436         Likewise.
26437         * modules/unictype/property-extender (Depends-on, configure.ac):
26438         Likewise.
26439         * modules/unictype/property-format-control (Depends-on, configure.ac):
26440         Likewise.
26441         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26442         Likewise.
26443         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26444         Likewise.
26445         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26446         Likewise.
26447         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26448         Likewise.
26449         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26450         Likewise.
26451         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26452         Likewise.
26453         * modules/unictype/property-id-start (Depends-on, configure.ac):
26454         Likewise.
26455         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26456         Likewise.
26457         * modules/unictype/property-ids-binary-operator (Depends-on,
26458         configure.ac): Likewise.
26459         * modules/unictype/property-ids-trinary-operator (Depends-on,
26460         configure.ac): Likewise.
26461         * modules/unictype/property-ignorable-control (Depends-on,
26462         configure.ac): Likewise.
26463         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26464         Likewise.
26465         * modules/unictype/property-join-control (Depends-on, configure.ac):
26466         Likewise.
26467         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26468         Likewise.
26469         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26470         Likewise.
26471         * modules/unictype/property-logical-order-exception (Depends-on,
26472         configure.ac): Likewise.
26473         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26474         Likewise.
26475         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26476         * modules/unictype/property-non-break (Depends-on, configure.ac):
26477         Likewise.
26478         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26479         Likewise.
26480         * modules/unictype/property-numeric (Depends-on, configure.ac):
26481         Likewise.
26482         * modules/unictype/property-other-alphabetic (Depends-on,
26483         configure.ac): Likewise.
26484         * modules/unictype/property-other-default-ignorable-code-point
26485         (Depends-on, configure.ac): Likewise.
26486         * modules/unictype/property-other-grapheme-extend (Depends-on,
26487         configure.ac): Likewise.
26488         * modules/unictype/property-other-id-continue (Depends-on,
26489         configure.ac): Likewise.
26490         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26491         Likewise.
26492         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26493         Likewise.
26494         * modules/unictype/property-other-math (Depends-on, configure.ac):
26495         Likewise.
26496         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26497         Likewise.
26498         * modules/unictype/property-paired-punctuation (Depends-on,
26499         configure.ac): Likewise.
26500         * modules/unictype/property-paragraph-separator (Depends-on,
26501         configure.ac): Likewise.
26502         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26503         Likewise.
26504         * modules/unictype/property-pattern-white-space (Depends-on,
26505         configure.ac): Likewise.
26506         * modules/unictype/property-private-use (Depends-on, configure.ac):
26507         Likewise.
26508         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26509         Likewise.
26510         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26511         Likewise.
26512         * modules/unictype/property-radical (Depends-on, configure.ac):
26513         Likewise.
26514         * modules/unictype/property-sentence-terminal (Depends-on,
26515         configure.ac): Likewise.
26516         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26517         Likewise.
26518         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26519         * modules/unictype/property-terminal-punctuation (Depends-on,
26520         configure.ac): Likewise.
26521         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26522         Likewise.
26523         * modules/unictype/property-unassigned-code-value (Depends-on,
26524         configure.ac): Likewise.
26525         * modules/unictype/property-unified-ideograph (Depends-on,
26526         configure.ac): Likewise.
26527         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26528         Likewise.
26529         * modules/unictype/property-variation-selector (Depends-on,
26530         configure.ac): Likewise.
26531         * modules/unictype/property-white-space (Depends-on, configure.ac):
26532         Likewise.
26533         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26534         Likewise.
26535         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26536         Likewise.
26537         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26538         Likewise.
26539         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26540         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26541         Likewise.
26542
26543 2009-12-31  Bruno Haible  <bruno@clisp.org>
26544
26545         Remove unnecessary AC_C_INLINE invocation.
26546         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26547         since 2009-08-21.
26548
26549 2009-12-31  Jim Meyering  <meyering@redhat.com>
26550
26551         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26552         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26553         With this change, we can all remove the gpg_key_ID = ... definition
26554         from our respective cfg.mk files.
26555
26556         maint.mk: create announcement template in ~/, not in /tmp
26557         * top/maint.mk (emit_upload_commands): Adjust.
26558         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26559         Remove temporary file, .ci-msg.
26560
26561 2009-12-31  Eric Blake  <ebb9@byu.net>
26562
26563         link-warning: always build headers with link warnings
26564         * modules/arpa_inet (Makefile.am): Always build replacement
26565         header.
26566         * modules/ctype (Makefile.am): Likewise.
26567         * modules/dirent (Makefile.am): Likewise.
26568         * modules/inttypes (Makefile.am): Likewise.
26569         * modules/langinfo (Makefile.am): Likewise.
26570         * modules/locale (Makefile.am): Likewise.
26571         * modules/spawn (Makefile.am): Likewise.
26572         * modules/sys_file (Makefile.am): Likewise.
26573         * modules/sys_ioctl (Makefile.am): Likewise.
26574         * modules/sys_select (Makefile.am): Likewise.
26575         * modules/sys_socket (Makefile.am): Likewise.
26576         * modules/sys_times (Makefile.am): Likewise.
26577         * modules/sys_utsname (Makefile.am): Likewise.
26578         * modules/sys_wait (Makefile.am): Likewise.
26579         * modules/wchar (Makefile.am): Likewise.
26580         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26581         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26582         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26583         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26584         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26585         Likewise.
26586         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26587         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26588         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26589         Likewise.
26590         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26591         Likewise.
26592         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26594         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26596         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26598         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26599         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26600         (gl_WCHAR_H_DEFAULTS): Likewise.
26601
26602 2009-12-31  Eric Blake  <ebb9@byu.net>
26603
26604         signal, spawn: use link warnings
26605         * lib/signal.in.h (sigset_t): Make unconditional.
26606         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26607         (sigpending, sigprocmask, sigaction): Add link warnings.
26608         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26609         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26610         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26611         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26612         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26613         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26614         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26615         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26616         (posix_spawn_file_actions_destroy)
26617         (posix_spawn_file_actions_addopen)
26618         (posix_spawn_file_actions_addclose)
26619         (posix_spawn_file_actions_adddup2): Likewise.
26620         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26621         * tests/test-signal.c (main): Enhance test.
26622
26623         spawn: improve wrapper support
26624         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26625         (gl_SPAWN_H_DEFAULTS): New defaults.
26626         * modules/spawn (Makefile.am): Substitute them.
26627         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26628         Only declare if missing or broken.
26629
26630         sys_times, sys_utsname: use include_next
26631         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26632         header.
26633         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26635         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26636         * modules/sys_times (Depends-on): Add include_next.
26637         (Makefile.am): Substitute additional values.
26638         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26639         * lib/sys_times.in.h (includes): Include native header, if
26640         available.
26641         * lib/sys_utsname.in.h (includes): Likewise.
26642         * tests/test-sys_times.c (main): Enhance test.
26643
26644         fdutimensat: revert prior patch
26645         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26646         utimens.h.
26647         Reported by Bruno Haible.
26648
26649 2009-12-30  Eric Blake  <ebb9@byu.net>
26650
26651         sys_wait: drop link-warning dependency
26652         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26653         link-warning efforts.
26654         * lib/sys_wait.in.h: Likewise.
26655
26656         fdutimensat: remove bogus dependency
26657         * modules/fdutimensat (Depends-on): Drop inline.
26658
26659         unistd: fix typo
26660         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26661
26662 2009-12-30  Bruno Haible  <bruno@clisp.org>
26663
26664         Fix compilation error with Solaris cc.
26665         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26666         * lib/unicase/u16-is-invariant.c: Likewise.
26667         * lib/unicase/u32-is-invariant.c: Likewise.
26668         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26669
26670 2009-12-30  Bruno Haible  <bruno@clisp.org>
26671
26672         Fix test crash.
26673         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26674         locales.
26675         Reported by Simon Josefsson <simon@josefsson.org>.
26676
26677 2009-12-30  Bruno Haible  <bruno@clisp.org>
26678
26679         Fix compilation error on most platforms.
26680         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26681         Reported by Simon Josefsson <simon@josefsson.org>
26682         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26683
26684 2009-12-30  Eric Blake  <ebb9@byu.net>
26685
26686         futimens, utimensat: work around ntfs-3g bug
26687         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26688         a ctime bug is present, and expand workaround to cover ntfs-3g.
26689         * lib/utimens.c (fdutimens, lutimens): Likewise.
26690         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26691         (validate_timespec): Adjust return value.
26692         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26693         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26694         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26695
26696 2009-12-29  Eric Blake  <ebb9@byu.net>
26697
26698         link-warning: make usage consistent
26699         * modules/ctype (Depends-on): Add link-warning.
26700         (Makefile.am): Update rules accordingly.
26701         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26702         * modules/locale (Depends-on, Makefile.am): Likewise.
26703         * modules/sys_file (Makefile.am): Likewise.
26704         * modules/getopt-posix (Makefile.am): Delete unused link warning
26705         efforts.
26706         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26707         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26708         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26709         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26710
26711         stdio: remove unused variables
26712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26713         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26714         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26715
26716         tests: test more substitute headers
26717         * modules/ctype-tests: New file.
26718         * modules/dirent-tests: Likewise.
26719         * modules/spawn-tests: Likewise.
26720         * modules/sys_file-tests: Likewise.
26721         * modules/sys_ioctl-tests: Likewise.
26722         * modules/sys_wait-tests: Likewise.
26723         * tests/test-ctype.c: Likewise.
26724         * tests/test-dirent.c: Likewise.
26725         * tests/test-spawn.c: Likewise.
26726         * tests/test-sys_file.c: Likewise.
26727         * tests/test-sys_ioctl.c: Likewise.
26728         * tests/test-sys_wait.c: Likewise.
26729         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26730         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26731         whether or not flock is in use.
26732
26733         tests: remove License section from module
26734         * modules/arpa_inet-tests: Remove unneeded section.
26735         * modules/byteswap-tests: Likewise.
26736         * modules/ceilf-tests: Likewise.
26737         * modules/ceill-tests: Likewise.
26738         * modules/crypto/des-tests: Likewise.
26739         * modules/crypto/gc-arcfour-tests: Likewise.
26740         * modules/crypto/gc-arctwo-tests: Likewise.
26741         * modules/crypto/gc-des-tests: Likewise.
26742         * modules/crypto/gc-hmac-md5-tests: Likewise.
26743         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26744         * modules/crypto/gc-md2-tests: Likewise.
26745         * modules/crypto/gc-md4-tests: Likewise.
26746         * modules/crypto/gc-md5-tests: Likewise.
26747         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26748         * modules/crypto/gc-rijndael-tests: Likewise.
26749         * modules/crypto/gc-sha1-tests: Likewise.
26750         * modules/crypto/gc-tests: Likewise.
26751         * modules/crypto/md2-tests: Likewise.
26752         * modules/crypto/md4-tests: Likewise.
26753         * modules/fcntl-h-tests: Likewise.
26754         * modules/floorf-tests: Likewise.
26755         * modules/floorl-tests: Likewise.
26756         * modules/frexp-nolibm-tests: Likewise.
26757         * modules/frexp-tests: Likewise.
26758         * modules/frexpl-nolibm-tests: Likewise.
26759         * modules/frexpl-tests: Likewise.
26760         * modules/getaddrinfo-tests: Likewise.
26761         * modules/inttypes-tests: Likewise.
26762         * modules/isfinite-tests: Likewise.
26763         * modules/isinf-tests: Likewise.
26764         * modules/ldexpl-tests: Likewise.
26765         * modules/locale-tests: Likewise.
26766         * modules/math-tests: Likewise.
26767         * modules/netdb-tests: Likewise.
26768         * modules/netinet_in-tests: Likewise.
26769         * modules/printf-frexp-tests: Likewise.
26770         * modules/printf-frexpl-tests: Likewise.
26771         * modules/priv-set-tests: Likewise.
26772         * modules/random_r-tests: Likewise.
26773         * modules/round-tests: Likewise.
26774         * modules/roundf-tests: Likewise.
26775         * modules/roundl-tests: Likewise.
26776         * modules/search-tests: Likewise.
26777         * modules/select-tests: Likewise.
26778         * modules/signal-tests: Likewise.
26779         * modules/stdbool-tests: Likewise.
26780         * modules/stddef-tests: Likewise.
26781         * modules/stdint-tests: Likewise.
26782         * modules/stdio-tests: Likewise.
26783         * modules/stdlib-tests: Likewise.
26784         * modules/string-tests: Likewise.
26785         * modules/strings-tests: Likewise.
26786         * modules/sys_select-tests: Likewise.
26787         * modules/sys_socket-tests: Likewise.
26788         * modules/sys_stat-tests: Likewise.
26789         * modules/sys_time-tests: Likewise.
26790         * modules/sys_utsname-tests: Likewise.
26791         * modules/sysexits-tests: Likewise.
26792         * modules/time-tests: Likewise.
26793         * modules/trunc-tests: Likewise.
26794         * modules/truncf-tests: Likewise.
26795         * modules/truncl-tests: Likewise.
26796         * modules/tsearch-tests: Likewise.
26797         * modules/unistd-tests: Likewise.
26798         * modules/wchar-tests: Likewise.
26799         * modules/wctype-tests: Likewise.
26800
26801         tests: fix license on several tests
26802         * tests/test-des.c: Update to GPLv3+.
26803         * tests/test-flock.c: Likewise.
26804         * tests/test-fsync.c: Likewise.
26805         * tests/test-futimens.h: Likewise.
26806         * tests/test-gc-arcfour.c: Likewise.
26807         * tests/test-gc-arctwo.c: Likewise.
26808         * tests/test-gc-des.c: Likewise.
26809         * tests/test-gc-hmac-md5.c: Likewise.
26810         * tests/test-gc-hmac-sha1.c: Likewise.
26811         * tests/test-gc-md2.c: Likewise.
26812         * tests/test-gc-md4.c: Likewise.
26813         * tests/test-gc-md5.c: Likewise.
26814         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26815         * tests/test-gc-rijndael.c: Likewise.
26816         * tests/test-gc-sha1.c: Likewise.
26817         * tests/test-gc.c: Likewise.
26818         * tests/test-getcwd.c: Likewise.
26819         * tests/test-link.c: Likewise.
26820         * tests/test-link.h: Likewise.
26821         * tests/test-lutimens.h: Likewise.
26822         * tests/test-md2.c: Likewise.
26823         * tests/test-md4.c: Likewise.
26824         * tests/test-mkdir.h: Likewise.
26825         * tests/test-rename.c: Likewise.
26826         * tests/test-rename.h: Likewise.
26827         * tests/test-safe-alloc.c: Likewise.
26828         * tests/test-utimens-common.h: Likewise.
26829         * tests/test-utimens.h: Likewise.
26830
26831         maint: sync license texts
26832         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26833         * doc/gpl-3.0.texi: Revert copyright year update.
26834         * doc/lgpl-3.0.texi: Likewise.
26835
26836 2009-12-29  Jim Meyering  <meyering@redhat.com>
26837
26838         update nearly all FSF copyright year lists to include 2009
26839         The files named by the following are exempted:
26840             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26841               test -f "$dst" && { echo "$dst"; continue; }
26842               test -d "$dst" || continue
26843               echo "$dst"/$(basename "$src")
26844             done > exempt
26845             git ls-files tests/unictype >> exempt
26846         In the remaining files, convert to all-interval notation if
26847         - there is already at least one year interval like 2000-2003
26848         - the file is maintained by me
26849         - the file is in lib/uni*/, where that style already prevails
26850         Otherwise, use update-copyright's default.
26851
26852 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26853         and Eric Blake  <ebb9@byu.net>
26854
26855         tests: don't require debug system() to pass
26856         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26857         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26858         * tests/test-unlink.h (test_unlink_func): Likewise.
26859         * tests/test-fstatat.c (main): ...into callers.
26860         * tests/test-lstat.c (main): Likewise.
26861         * tests/test-rmdir.c (main): Likewise.
26862         * tests/test-unlink.c (main): Likewise.
26863         * tests/test-unlinkat.c (main): Likewise.
26864         * tests/test-areadlink-with-size.c (main): Don't require a
26865         debug-only system call to pass, aiding cross-testing to mingw.
26866         * tests/test-areadlink.c (main): Likewise.
26867         * tests/test-areadlinkat-with-size.c (main): Likewise.
26868         * tests/test-areadlinkat.c (main): Likewise.
26869         * tests/test-canonicalize-lgpl.c (main): Likewise.
26870         * tests/test-canonicalize.c (main): Likewise.
26871         * tests/test-chown.c (main): Likewise.
26872         * tests/test-fchownat.c (main): Likewise.
26873         * tests/test-lchown.c (main): Likewise.
26874         * tests/test-fdutimensat.c (main): Likewise.
26875         * tests/test-futimens.c (main): Likewise.
26876         * tests/test-link.c (main): Likewise.
26877         * tests/test-linkat.c (main): Likewise.
26878         * tests/test-mkdir.c (main): Likewise.
26879         * tests/test-mkdirat.c (main): Likewise.
26880         * tests/test-mkfifo.c (main): Likewise.
26881         * tests/test-mkfifoat.c (main): Likewise.
26882         * tests/test-mknod.c (main): Likewise.
26883         * tests/test-readlink.c (main): Likewise.
26884         * tests/test-remove.c (main): Likewise.
26885         * tests/test-rename.c (main): Likewise.
26886         * tests/test-renameat.c (main): Likewise.
26887         * tests/test-symlink.c (main): Likewise.
26888         * tests/test-symlinkat.c (main): Likewise.
26889         * tests/test-utimens.c (main): Likewise.
26890         * tests/test-utimensat.c (main): Likewise.
26891
26892 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26893
26894         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26895         on $(UNUSED_PARAMETER_H) to avoid build failure.
26896
26897 2009-12-28  Jim Meyering  <meyering@redhat.com>
26898
26899         update-copyright: you may specify a max. line length other than 72
26900         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26901
26902         maint: use consistent FSF copyright line syntax
26903         * lib/posixtm.c: Add missing comma in FSF copyright line.
26904         * lib/posixtm.h: Likewise.
26905         * lib/getugroups.c: Add missing ", Inc.".
26906
26907         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26908         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26909         FSF copyright line.  Remove trailing blanks.
26910
26911 2009-12-28  Eric Blake  <ebb9@byu.net>
26912
26913         test-dup2: reduce dependencies
26914         * modules/cloexec (Configure.ac): Set witness.
26915         * modules/dup2-tests (Depends-on): Drop cloexec.
26916         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26917         not present.
26918         Suggested by Bruno Haible.
26919
26920 2009-12-26  Bruno Haible  <bruno@clisp.org>
26921
26922         Remove an unneeded dependency.
26923         * modules/fseterr (Depends-on): Remove dup2.
26924
26925 2009-12-26  Eric Blake  <ebb9@byu.net>
26926
26927         tests: use macros.h in more places
26928         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26929         (ASSERT_STREAM): Provide default of stderr.
26930         * tests/test-dirent-safer.c: Include macros.h, using alternate
26931         stream for assertions.
26932         * tests/test-dup-safer.c: Likewise.
26933         * tests/test-freopen-safer.c: Likewise.
26934         * tests/test-getopt.c: Likewise.
26935         * tests/test-openat-safer.c: Likewise.
26936         * tests/test-pipe.c: Likewise.
26937         * tests/test-popen-safer.c: Likewise.
26938         * modules/dirent-safer-tests (Files): Include macros.h.
26939         * modules/unistd-safer-tests (Files): Likewise.
26940         * modules/freopen-safer-tests (Files): Likewise.
26941         * modules/getopt-posix-tests (Files): Likewise.
26942         * modules/openat-safer-tests (Files): Likewise.
26943         * modules/pipe-tests (Files): Likewise.
26944
26945 2009-12-26  Bruno Haible  <bruno@clisp.org>
26946
26947         javacomp: Portability fix.
26948         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26949         that it also works on Solaris.
26950
26951 2009-12-26  Bruno Haible  <bruno@clisp.org>
26952
26953         localename: Fix storage allocation of gl_locale_name_thread's result.
26954         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26955         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26956         all platforms that have 'uselocale'.
26957         (gl_locale_name_thread_unsafe): New function, extracted from
26958         gl_locale_name_thread.
26959         (gl_locale_name_thread): Call struniq on all platforms that have
26960         'uselocale'.
26961         * tests/test-localename.c (test_locale_name_thread): Check that the
26962         resulting strings are permanently allocated.
26963         * modules/localename-tests (Depends-on): Add strdup.
26964
26965 2009-12-26  Bruno Haible  <bruno@clisp.org>
26966
26967         * tests/test-localename.c (categories): Fill in the strings.
26968
26969 2009-12-26  Jim Meyering  <meyering@redhat.com>
26970
26971         isdir: complete the removal of m4/isdir.m4
26972         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26973
26974         isdir: clean up, since at least grep still uses it
26975         * lib/isdir.c: Include "isdir.h".
26976         (S_ISDIR): Remove now-unneeded definition.
26977         * modules/isdir (Files): Add lib/isdir.h.
26978         * lib/isdir.h: New file, with declaration.
26979         * m4/isdir.m4: Remove file -- unneeded.
26980
26981 2009-12-25  Bruno Haible  <bruno@clisp.org>
26982
26983         selinux-h: Make generated .h files standalone.
26984         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26985         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26986         * lib/se-selinux.in.h: Likewise.
26987         * modules/selinux-h (Depends-on): Add unused-parameter.
26988         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26989         selinux/selinux.h and selinux/context.h.
26990         Suggested by Eric Blake.
26991
26992 2009-12-25  Bruno Haible  <bruno@clisp.org>
26993
26994         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26995         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26996         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26997         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26998         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26999
27000 2009-12-24  Bruno Haible  <bruno@clisp.org>
27001
27002         openat: Fix warning.
27003         * lib/openat-proc.c: Include <unistd.h>.
27004
27005 2009-12-24  Bruno Haible  <bruno@clisp.org>
27006
27007         New module 'unused-parameter'.
27008         * build-aux/unused-parameter.h: New file, extracted from earlier
27009         gnulib-common.m4.
27010         * modules/unused-parameter: New file.
27011         * lib/unistr.h: Include unused-parameter.h.
27012         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27013         _GL_UNUSED.
27014         * modules/unistr/base (Depends-on): Add unused-parameter.
27015
27016 2009-12-24  Bruno Haible  <bruno@clisp.org>
27017
27018         Add missing dependencies to 'extensions' module.
27019         * m4/extensions.m4: Add comment.
27020         * modules/accept4 (Depends-on): Add extensions.
27021         * modules/dup3 (Depends-on): Likewise.
27022         * modules/fcntl (Depends-on): Likewise.
27023         * modules/futimens (Depends-on): Likewise.
27024         * modules/mknod (Depends-on): Likewise.
27025         * modules/pipe2 (Depends-on): Likewise.
27026         * modules/stat-time (Depends-on): Likewise.
27027         * modules/strcasestr-simple (Depends-on): Likewise.
27028         * modules/strsignal (Depends-on): Likewise.
27029         * modules/utimensat (Depends-on): Likewise.
27030         * modules/localcharset (Depends-on): Likewise. Needed because of
27031         gl_FCNTL_O_FLAGS.
27032         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27033         AC_TYPE_MBSTATE_T.
27034         * modules/wcsnrtombs (Depends-on): Likewise.
27035         * modules/wcsrtombs (Depends-on): Likewise.
27036
27037 2009-12-24  Bruno Haible  <bruno@clisp.org>
27038
27039         binary-io: Avoid gcc warning due to SET_BINARY.
27040         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27041         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27042
27043 2009-12-24  Bruno Haible  <bruno@clisp.org>
27044
27045         Avoid future namespace pollution on glibc systems.
27046         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27047         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27048         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27049         glibc systems.
27050
27051 2009-12-24  Bruno Haible  <bruno@clisp.org>
27052
27053         Refactor common macros used in tests.
27054         * tests/macros.h: New file.
27055         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27056         and/or <stdlib.h>, if appropriate.
27057         (ASSERT, SIZEOF): Remove macros.
27058         * tests/test-areadlink-with-size.c: Likewise.
27059         * tests/test-areadlinkat.c: Likewise.
27060         * tests/test-areadlinkat-with-size.c: Likewise.
27061         * tests/test-argmatch.c: Likewise.
27062         * tests/test-argv-iter.c: Likewise.
27063         * tests/test-array-mergesort.c: Likewise.
27064         * tests/test-array_list.c: Likewise.
27065         * tests/test-array_oset.c: Likewise.
27066         * tests/test-avltree_list.c: Likewise.
27067         * tests/test-avltree_oset.c: Likewise.
27068         * tests/test-avltreehash_list.c: Likewise.
27069         * tests/test-base64.c: Likewise.
27070         * tests/test-binary-io.c: Likewise.
27071         * tests/test-bitrotate.c: Likewise.
27072         * tests/test-btowc.c: Likewise.
27073         * tests/test-byteswap.c: Likewise.
27074         * tests/test-c-ctype.c: Likewise.
27075         * tests/test-c-stack.c: Likewise.
27076         * tests/test-c-strcasecmp.c: Likewise.
27077         * tests/test-c-strcasestr.c: Likewise.
27078         * tests/test-c-strncasecmp.c: Likewise.
27079         * tests/test-c-strstr.c: Likewise.
27080         * tests/test-canonicalize-lgpl.c: Likewise.
27081         * tests/test-canonicalize.c: Likewise.
27082         * tests/test-carray_list.c: Likewise.
27083         * tests/test-ceilf1.c: Likewise.
27084         * tests/test-ceilf2.c: Likewise.
27085         * tests/test-ceill.c: Likewise.
27086         * tests/test-chown.c: Likewise.
27087         * tests/test-cloexec.c: Likewise.
27088         * tests/test-copy-acl.c: Likewise.
27089         * tests/test-copy-file.c: Likewise.
27090         * tests/test-count-one-bits.c: Likewise.
27091         * tests/test-dprintf-posix.c: Likewise.
27092         * tests/test-dup2.c: Likewise.
27093         * tests/test-dup3.c: Likewise.
27094         * tests/test-duplocale.c: Likewise.
27095         * tests/test-fbufmode.c: Likewise.
27096         * tests/test-fchdir.c: Likewise.
27097         * tests/test-fchownat.c: Likewise.
27098         * tests/test-fcntl-safer.c: Likewise.
27099         * tests/test-fcntl.c: Likewise.
27100         * tests/test-fdopendir.c: Likewise.
27101         * tests/test-fdutimensat.c: Likewise.
27102         * tests/test-fflush2.c: Likewise.
27103         * tests/test-file-has-acl.c: Likewise.
27104         * tests/test-filevercmp.c: Likewise.
27105         * tests/test-flock.c: Likewise.
27106         * tests/test-floorf1.c: Likewise.
27107         * tests/test-floorf2.c: Likewise.
27108         * tests/test-floorl.c: Likewise.
27109         * tests/test-fnmatch.c: Likewise.
27110         * tests/test-fopen.h: Likewise.
27111         * tests/test-fpending.c: Likewise.
27112         * tests/test-fprintf-posix.c: Likewise.
27113         * tests/test-fpurge.c: Likewise.
27114         * tests/test-freadable.c: Likewise.
27115         * tests/test-freadahead.c: Likewise.
27116         * tests/test-freading.c: Likewise.
27117         * tests/test-freadptr.c: Likewise.
27118         * tests/test-freadptr2.c: Likewise.
27119         * tests/test-freadseek.c: Likewise.
27120         * tests/test-freopen.c: Likewise.
27121         * tests/test-frexp.c: Likewise.
27122         * tests/test-frexpl.c: Likewise.
27123         * tests/test-fseek.c: Likewise.
27124         * tests/test-fseeko.c: Likewise.
27125         * tests/test-fstatat.c: Likewise.
27126         * tests/test-fstrcmp.c: Likewise.
27127         * tests/test-fsync.c: Likewise.
27128         * tests/test-ftell.c: Likewise.
27129         * tests/test-ftello.c: Likewise.
27130         * tests/test-func.c: Likewise.
27131         * tests/test-futimens.c: Likewise.
27132         * tests/test-fwritable.c: Likewise.
27133         * tests/test-fwriting.c: Likewise.
27134         * tests/test-getcwd.c: Likewise.
27135         * tests/test-getdate.c: Likewise.
27136         * tests/test-getdelim.c: Likewise.
27137         * tests/test-getdtablesize.c: Likewise.
27138         * tests/test-getgroups.c: Likewise.
27139         * tests/test-getline.c: Likewise.
27140         * tests/test-getndelim2.c: Likewise.
27141         * tests/test-glob.c: Likewise.
27142         * tests/test-hash.c: Likewise.
27143         * tests/test-i-ring.c: Likewise.
27144         * tests/test-iconv-utf.c: Likewise.
27145         * tests/test-iconv.c: Likewise.
27146         * tests/test-idpriv-drop.c: Likewise.
27147         * tests/test-idpriv-droptemp.c: Likewise.
27148         * tests/test-inet_ntop.c: Likewise.
27149         * tests/test-inet_pton.c: Likewise.
27150         * tests/test-isblank.c: Likewise.
27151         * tests/test-isfinite.c: Likewise.
27152         * tests/test-isinf.c: Likewise.
27153         * tests/test-isnan.c: Likewise.
27154         * tests/test-isnand.h: Likewise.
27155         * tests/test-isnanf.h: Likewise.
27156         * tests/test-isnanl.h: Likewise.
27157         * tests/test-lchown.c: Likewise.
27158         * tests/test-ldexpl.c: Likewise.
27159         * tests/test-link.c: Likewise.
27160         * tests/test-linkat.c: Likewise.
27161         * tests/test-linked_list.c: Likewise.
27162         * tests/test-linkedhash_list.c: Likewise.
27163         * tests/test-localename.c: Likewise.
27164         * tests/test-lseek.c: Likewise.
27165         * tests/test-lstat.c: Likewise.
27166         * tests/test-mbmemcasecmp.c: Likewise.
27167         * tests/test-mbmemcasecoll.c: Likewise.
27168         * tests/test-mbrtowc.c: Likewise.
27169         * tests/test-mbscasecmp.c: Likewise.
27170         * tests/test-mbscasestr1.c: Likewise.
27171         * tests/test-mbscasestr2.c: Likewise.
27172         * tests/test-mbscasestr3.c: Likewise.
27173         * tests/test-mbscasestr4.c: Likewise.
27174         * tests/test-mbschr.c: Likewise.
27175         * tests/test-mbscspn.c: Likewise.
27176         * tests/test-mbsinit.c: Likewise.
27177         * tests/test-mbsncasecmp.c: Likewise.
27178         * tests/test-mbsnrtowcs.c: Likewise.
27179         * tests/test-mbspbrk.c: Likewise.
27180         * tests/test-mbspcasecmp.c: Likewise.
27181         * tests/test-mbsrchr.c: Likewise.
27182         * tests/test-mbsrtowcs.c: Likewise.
27183         * tests/test-mbsspn.c: Likewise.
27184         * tests/test-mbsstr1.c: Likewise.
27185         * tests/test-mbsstr2.c: Likewise.
27186         * tests/test-mbsstr3.c: Likewise.
27187         * tests/test-memchr.c: Likewise.
27188         * tests/test-memchr2.c: Likewise.
27189         * tests/test-memcmp.c: Likewise.
27190         * tests/test-memmem.c: Likewise.
27191         * tests/test-memrchr.c: Likewise.
27192         * tests/test-mkdir.c: Likewise.
27193         * tests/test-mkdirat.c: Likewise.
27194         * tests/test-mkfifo.c: Likewise.
27195         * tests/test-mkfifoat.c: Likewise.
27196         * tests/test-mknod.c: Likewise.
27197         * tests/test-nanosleep.c: Likewise.
27198         * tests/test-nl_langinfo.c: Likewise.
27199         * tests/test-obstack-printf.c: Likewise.
27200         * tests/test-open.c: Likewise.
27201         * tests/test-openat.c: Likewise.
27202         * tests/test-pipe-filter-gi1.c: Likewise.
27203         * tests/test-pipe-filter-gi2-main.c: Likewise.
27204         * tests/test-pipe-filter-ii1.c: Likewise.
27205         * tests/test-pipe-filter-ii2-main.c: Likewise.
27206         * tests/test-pipe2.c: Likewise.
27207         * tests/test-popen.h: Likewise.
27208         * tests/test-posixtm.c: Likewise.
27209         * tests/test-pread.c: Likewise.
27210         * tests/test-printf-frexp.c: Likewise.
27211         * tests/test-printf-frexpl.c: Likewise.
27212         * tests/test-printf-posix.c: Likewise.
27213         * tests/test-priv-set.c: Likewise.
27214         * tests/test-quotearg.c: Likewise.
27215         * tests/test-random_r.c: Likewise.
27216         * tests/test-rawmemchr.c: Likewise.
27217         * tests/test-rbtree_list.c: Likewise.
27218         * tests/test-rbtree_oset.c: Likewise.
27219         * tests/test-rbtreehash_list.c: Likewise.
27220         * tests/test-readlink.c: Likewise.
27221         * tests/test-remove.c: Likewise.
27222         * tests/test-rename.c: Likewise.
27223         * tests/test-renameat.c: Likewise.
27224         * tests/test-rmdir.c: Likewise.
27225         * tests/test-round1.c: Likewise.
27226         * tests/test-roundf1.c: Likewise.
27227         * tests/test-roundl.c: Likewise.
27228         * tests/test-safe-alloc.c: Likewise.
27229         * tests/test-sameacls.c: Likewise.
27230         * tests/test-set-mode-acl.c: Likewise.
27231         * tests/test-setenv.c: Likewise.
27232         * tests/test-sigaction.c: Likewise.
27233         * tests/test-signbit.c: Likewise.
27234         * tests/test-sleep.c: Likewise.
27235         * tests/test-snprintf-posix.c: Likewise.
27236         * tests/test-snprintf.c: Likewise.
27237         * tests/test-sprintf-posix.c: Likewise.
27238         * tests/test-stat-time.c: Likewise.
27239         * tests/test-stat.c: Likewise.
27240         * tests/test-strcasestr.c: Likewise.
27241         * tests/test-strchrnul.c: Likewise.
27242         * tests/test-strerror.c: Likewise.
27243         * tests/test-striconv.c: Likewise.
27244         * tests/test-striconveh.c: Likewise.
27245         * tests/test-striconveha.c: Likewise.
27246         * tests/test-strsignal.c: Likewise.
27247         * tests/test-strstr.c: Likewise.
27248         * tests/test-strtod.c: Likewise.
27249         * tests/test-strverscmp.c: Likewise.
27250         * tests/test-symlink.c: Likewise.
27251         * tests/test-symlinkat.c: Likewise.
27252         * tests/test-trunc1.c: Likewise.
27253         * tests/test-trunc2.c: Likewise.
27254         * tests/test-truncf1.c: Likewise.
27255         * tests/test-truncf2.c: Likewise.
27256         * tests/test-truncl.c: Likewise.
27257         * tests/test-uname.c: Likewise.
27258         * tests/test-unlink.c: Likewise.
27259         * tests/test-unlinkat.c: Likewise.
27260         * tests/test-unsetenv.c: Likewise.
27261         * tests/test-usleep.c: Likewise.
27262         * tests/test-utimens.c: Likewise.
27263         * tests/test-utimensat.c: Likewise.
27264         * tests/test-vasnprintf-posix.c: Likewise.
27265         * tests/test-vasnprintf-posix2.c: Likewise.
27266         * tests/test-vasnprintf.c: Likewise.
27267         * tests/test-vasprintf-posix.c: Likewise.
27268         * tests/test-vasprintf.c: Likewise.
27269         * tests/test-vdprintf-posix.c: Likewise.
27270         * tests/test-vfprintf-posix.c: Likewise.
27271         * tests/test-vprintf-posix.c: Likewise.
27272         * tests/test-vsnprintf-posix.c: Likewise.
27273         * tests/test-vsnprintf.c: Likewise.
27274         * tests/test-vsprintf-posix.c: Likewise.
27275         * tests/test-wcrtomb.c: Likewise.
27276         * tests/test-wcsnrtombs.c: Likewise.
27277         * tests/test-wcsrtombs.c: Likewise.
27278         * tests/test-wctype.c: Likewise.
27279         * tests/test-wcwidth.c: Likewise.
27280         * tests/test-xfprintf-posix.c: Likewise.
27281         * tests/test-xmemdup0.c: Likewise.
27282         * tests/test-xprintf-posix.c: Likewise.
27283         * tests/test-xvasprintf.c: Likewise.
27284         * tests/unicase/test-locale-language.c: Likewise.
27285         * tests/unicase/test-mapping-part1.h: Likewise.
27286         * tests/unicase/test-predicate-part1.h: Likewise.
27287         * tests/unicase/test-u8-casecmp.c: Likewise.
27288         * tests/unicase/test-u8-casecoll.c: Likewise.
27289         * tests/unicase/test-u8-casefold.c: Likewise.
27290         * tests/unicase/test-u8-is-cased.c: Likewise.
27291         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27292         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27293         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27294         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27295         * tests/unicase/test-u8-tolower.c: Likewise.
27296         * tests/unicase/test-u8-totitle.c: Likewise.
27297         * tests/unicase/test-u8-toupper.c: Likewise.
27298         * tests/unicase/test-u16-casecmp.c: Likewise.
27299         * tests/unicase/test-u16-casecoll.c: Likewise.
27300         * tests/unicase/test-u16-casefold.c: Likewise.
27301         * tests/unicase/test-u16-is-cased.c: Likewise.
27302         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27303         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27304         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27305         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27306         * tests/unicase/test-u16-tolower.c: Likewise.
27307         * tests/unicase/test-u16-totitle.c: Likewise.
27308         * tests/unicase/test-u16-toupper.c: Likewise.
27309         * tests/unicase/test-u32-casecmp.c: Likewise.
27310         * tests/unicase/test-u32-casecoll.c: Likewise.
27311         * tests/unicase/test-u32-casefold.c: Likewise.
27312         * tests/unicase/test-u32-is-cased.c: Likewise.
27313         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27314         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27315         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27316         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27317         * tests/unicase/test-u32-tolower.c: Likewise.
27318         * tests/unicase/test-u32-totitle.c: Likewise.
27319         * tests/unicase/test-u32-toupper.c: Likewise.
27320         * tests/unicase/test-ulc-casecmp.c: Likewise.
27321         * tests/unicase/test-ulc-casecoll.c: Likewise.
27322         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27323         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27324         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27325         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27326         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27327         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27328         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27329         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27330         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27331         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27332         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27333         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27334         * tests/unictype/test-bidi_byname.c: Likewise.
27335         * tests/unictype/test-bidi_name.c: Likewise.
27336         * tests/unictype/test-bidi_of.c: Likewise.
27337         * tests/unictype/test-bidi_test.c: Likewise.
27338         * tests/unictype/test-block_list.c: Likewise.
27339         * tests/unictype/test-block_of.c: Likewise.
27340         * tests/unictype/test-block_test.c: Likewise.
27341         * tests/unictype/test-categ_and.c: Likewise.
27342         * tests/unictype/test-categ_and_not.c: Likewise.
27343         * tests/unictype/test-categ_byname.c: Likewise.
27344         * tests/unictype/test-categ_name.c: Likewise.
27345         * tests/unictype/test-categ_none.c: Likewise.
27346         * tests/unictype/test-categ_of.c: Likewise.
27347         * tests/unictype/test-categ_or.c: Likewise.
27348         * tests/unictype/test-categ_test_withtable.c: Likewise.
27349         * tests/unictype/test-combining.c: Likewise.
27350         * tests/unictype/test-decdigit.c: Likewise.
27351         * tests/unictype/test-digit.c: Likewise.
27352         * tests/unictype/test-mirror.c: Likewise.
27353         * tests/unictype/test-numeric.c: Likewise.
27354         * tests/unictype/test-pr_byname.c: Likewise.
27355         * tests/unictype/test-pr_test.c: Likewise.
27356         * tests/unictype/test-predicate-part1.h: Likewise.
27357         * tests/unictype/test-scripts.c: Likewise.
27358         * tests/unictype/test-sy_c_ident.c: Likewise.
27359         * tests/unictype/test-sy_java_ident.c: Likewise.
27360         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27361         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27362         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27363         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27364         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27365         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27366         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27367         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27368         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27369         * tests/uninorm/test-compat-decomposition.c: Likewise.
27370         * tests/uninorm/test-composition.c: Likewise.
27371         * tests/uninorm/test-decomposing-form.c: Likewise.
27372         * tests/uninorm/test-decomposition.c: Likewise.
27373         * tests/uninorm/test-u8-nfc.c: Likewise.
27374         * tests/uninorm/test-u8-nfd.c: Likewise.
27375         * tests/uninorm/test-u8-nfkc.c: Likewise.
27376         * tests/uninorm/test-u8-nfkd.c: Likewise.
27377         * tests/uninorm/test-u8-normcmp.c: Likewise.
27378         * tests/uninorm/test-u8-normcoll.c: Likewise.
27379         * tests/uninorm/test-u16-nfc.c: Likewise.
27380         * tests/uninorm/test-u16-nfd.c: Likewise.
27381         * tests/uninorm/test-u16-nfkc.c: Likewise.
27382         * tests/uninorm/test-u16-nfkd.c: Likewise.
27383         * tests/uninorm/test-u16-normcmp.c: Likewise.
27384         * tests/uninorm/test-u16-normcoll.c: Likewise.
27385         * tests/uninorm/test-u32-nfc.c: Likewise.
27386         * tests/uninorm/test-u32-nfd.c: Likewise.
27387         * tests/uninorm/test-u32-nfkc.c: Likewise.
27388         * tests/uninorm/test-u32-nfkd.c: Likewise.
27389         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27390         * tests/uninorm/test-u32-normcmp.c: Likewise.
27391         * tests/uninorm/test-u32-normcoll.c: Likewise.
27392         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27393         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27394         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27395         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27396         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27397         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27398         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27399         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27400         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27401         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27402         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27403         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27404         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27405         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27406         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27407         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27408         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27409         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27410         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27411         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27412         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27413         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27414         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27415         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27416         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27417         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27418         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27419         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27420         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27421         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27422         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27423         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27424         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27425         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27426         * tests/uniwidth/test-u8-width.c: Likewise.
27427         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27428         * tests/uniwidth/test-u16-width.c: Likewise.
27429         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27430         * tests/uniwidth/test-u32-width.c: Likewise.
27431         * tests/uniwidth/test-uc_width.c: Likewise.
27432         * tests/uniwidth/test-uc_width2.c: Likewise.
27433         * modules/acl-tests (Files): Add tests/macros.h.
27434         * modules/areadlink-tests (Files): Likewise.
27435         * modules/areadlink-with-size-tests (Files): Likewise.
27436         * modules/areadlinkat-tests (Files): Likewise.
27437         * modules/areadlinkat-with-size-tests (Files): Likewise.
27438         * modules/argmatch-tests (Files): Likewise.
27439         * modules/argv-iter-tests (Files): Likewise.
27440         * modules/array-list-tests (Files): Likewise.
27441         * modules/array-mergesort-tests (Files): Likewise.
27442         * modules/array-oset-tests (Files): Likewise.
27443         * modules/avltree-list-tests (Files): Likewise.
27444         * modules/avltree-oset-tests (Files): Likewise.
27445         * modules/avltreehash-list-tests (Files): Likewise.
27446         * modules/base64-tests (Files): Likewise.
27447         * modules/binary-io-tests (Files): Likewise.
27448         * modules/bitrotate-tests (Files): Likewise.
27449         * modules/btowc-tests (Files): Likewise.
27450         * modules/byteswap-tests (Files): Likewise.
27451         * modules/c-ctype-tests (Files): Likewise.
27452         * modules/c-stack-tests (Files): Likewise.
27453         * modules/c-strcase-tests (Files): Likewise.
27454         * modules/c-strcasestr-tests (Files): Likewise.
27455         * modules/c-strstr-tests (Files): Likewise.
27456         * modules/canonicalize-lgpl-tests (Files): Likewise.
27457         * modules/canonicalize-tests (Files): Likewise.
27458         * modules/carray-list-tests (Files): Likewise.
27459         * modules/ceilf-tests (Files): Likewise.
27460         * modules/ceill-tests (Files): Likewise.
27461         * modules/chown-tests (Files): Likewise.
27462         * modules/cloexec-tests (Files): Likewise.
27463         * modules/copy-file-tests (Files): Likewise.
27464         * modules/count-one-bits-tests (Files): Likewise.
27465         * modules/dprintf-posix-tests (Files): Likewise.
27466         * modules/dup2-tests (Files): Likewise.
27467         * modules/dup3-tests (Files): Likewise.
27468         * modules/duplocale-tests (Files): Likewise.
27469         * modules/fbufmode-tests (Files): Likewise.
27470         * modules/fchdir-tests (Files): Likewise.
27471         * modules/fcntl-safer-tests (Files): Likewise.
27472         * modules/fcntl-tests (Files): Likewise.
27473         * modules/fdopendir-tests (Files): Likewise.
27474         * modules/fdutimensat-tests (Files): Likewise.
27475         * modules/fflush-tests (Files): Likewise.
27476         * modules/filevercmp-tests (Files): Likewise.
27477         * modules/flock-tests (Files): Likewise.
27478         * modules/floorf-tests (Files): Likewise.
27479         * modules/floorl-tests (Files): Likewise.
27480         * modules/fnmatch-tests (Files): Likewise.
27481         * modules/fopen-safer-tests (Files): Likewise.
27482         * modules/fopen-tests (Files): Likewise.
27483         * modules/fpending-tests (Files): Likewise.
27484         * modules/fprintf-posix-tests (Files): Likewise.
27485         * modules/fpurge-tests (Files): Likewise.
27486         * modules/freadable-tests (Files): Likewise.
27487         * modules/freadahead-tests (Files): Likewise.
27488         * modules/freading-tests (Files): Likewise.
27489         * modules/freadptr-tests (Files): Likewise.
27490         * modules/freadseek-tests (Files): Likewise.
27491         * modules/freopen-tests (Files): Likewise.
27492         * modules/frexp-nolibm-tests (Files): Likewise.
27493         * modules/frexp-tests (Files): Likewise.
27494         * modules/frexpl-nolibm-tests (Files): Likewise.
27495         * modules/frexpl-tests (Files): Likewise.
27496         * modules/fseek-tests (Files): Likewise.
27497         * modules/fseeko-tests (Files): Likewise.
27498         * modules/fstrcmp-tests (Files): Likewise.
27499         * modules/fsync-tests (Files): Likewise.
27500         * modules/ftell-tests (Files): Likewise.
27501         * modules/ftello-tests (Files): Likewise.
27502         * modules/func-tests (Files): Likewise.
27503         * modules/futimens-tests (Files): Likewise.
27504         * modules/fwritable-tests (Files): Likewise.
27505         * modules/fwriting-tests (Files): Likewise.
27506         * modules/getcwd-tests (Files): Likewise.
27507         * modules/getdate-tests (Files): Likewise.
27508         * modules/getdelim-tests (Files): Likewise.
27509         * modules/getdtablesize-tests (Files): Likewise.
27510         * modules/getgroups-tests (Files): Likewise.
27511         * modules/getline-tests (Files): Likewise.
27512         * modules/getndelim2-tests (Files): Likewise.
27513         * modules/glob-tests (Files): Likewise.
27514         * modules/hash-tests (Files): Likewise.
27515         * modules/i-ring-tests (Files): Likewise.
27516         * modules/iconv-tests (Files): Likewise.
27517         * modules/iconv_open-utf-tests (Files): Likewise.
27518         * modules/idpriv-drop-tests (Files): Likewise.
27519         * modules/idpriv-droptemp-tests (Files): Likewise.
27520         * modules/inet_ntop-tests (Files): Likewise.
27521         * modules/inet_pton-tests (Files): Likewise.
27522         * modules/isblank-tests (Files): Likewise.
27523         * modules/isfinite-tests (Files): Likewise.
27524         * modules/isinf-tests (Files): Likewise.
27525         * modules/isnan-tests (Files): Likewise.
27526         * modules/isnand-nolibm-tests (Files): Likewise.
27527         * modules/isnand-tests (Files): Likewise.
27528         * modules/isnanf-nolibm-tests (Files): Likewise.
27529         * modules/isnanf-tests (Files): Likewise.
27530         * modules/isnanl-nolibm-tests (Files): Likewise.
27531         * modules/isnanl-tests (Files): Likewise.
27532         * modules/lchown-tests (Files): Likewise.
27533         * modules/ldexpl-tests (Files): Likewise.
27534         * modules/link-tests (Files): Likewise.
27535         * modules/linkat-tests (Files): Likewise.
27536         * modules/linked-list-tests (Files): Likewise.
27537         * modules/linkedhash-list-tests (Files): Likewise.
27538         * modules/localename-tests (Files): Likewise.
27539         * modules/lseek-tests (Files): Likewise.
27540         * modules/lstat-tests (Files): Likewise.
27541         * modules/mbmemcasecmp-tests (Files): Likewise.
27542         * modules/mbmemcasecoll-tests (Files): Likewise.
27543         * modules/mbrtowc-tests (Files): Likewise.
27544         * modules/mbscasecmp-tests (Files): Likewise.
27545         * modules/mbscasestr-tests (Files): Likewise.
27546         * modules/mbschr-tests (Files): Likewise.
27547         * modules/mbscspn-tests (Files): Likewise.
27548         * modules/mbsinit-tests (Files): Likewise.
27549         * modules/mbsncasecmp-tests (Files): Likewise.
27550         * modules/mbsnrtowcs-tests (Files): Likewise.
27551         * modules/mbspbrk-tests (Files): Likewise.
27552         * modules/mbspcasecmp-tests (Files): Likewise.
27553         * modules/mbsrchr-tests (Files): Likewise.
27554         * modules/mbsrtowcs-tests (Files): Likewise.
27555         * modules/mbsspn-tests (Files): Likewise.
27556         * modules/mbsstr-tests (Files): Likewise.
27557         * modules/memchr-tests (Files): Likewise.
27558         * modules/memchr2-tests (Files): Likewise.
27559         * modules/memcmp-tests (Files): Likewise.
27560         * modules/memmem-tests (Files): Likewise.
27561         * modules/memrchr-tests (Files): Likewise.
27562         * modules/mkdir-tests (Files): Likewise.
27563         * modules/mkfifo-tests (Files): Likewise.
27564         * modules/mkfifoat-tests (Files): Likewise.
27565         * modules/mknod-tests (Files): Likewise.
27566         * modules/nanosleep-tests (Files): Likewise.
27567         * modules/nl_langinfo-tests (Files): Likewise.
27568         * modules/obstack-printf-tests (Files): Likewise.
27569         * modules/open-tests (Files): Likewise.
27570         * modules/openat-tests (Files): Likewise.
27571         * modules/pipe-filter-gi-tests (Files): Likewise.
27572         * modules/pipe-filter-ii-tests (Files): Likewise.
27573         * modules/pipe2-tests (Files): Likewise.
27574         * modules/popen-safer-tests (Files): Likewise.
27575         * modules/popen-tests (Files): Likewise.
27576         * modules/posixtm-tests (Files): Likewise.
27577         * modules/pread-tests (Files): Likewise.
27578         * modules/printf-frexp-tests (Files): Likewise.
27579         * modules/printf-frexpl-tests (Files): Likewise.
27580         * modules/printf-posix-tests (Files): Likewise.
27581         * modules/priv-set-tests (Files): Likewise.
27582         * modules/quotearg-tests (Files): Likewise.
27583         * modules/random_r-tests (Files): Likewise.
27584         * modules/rawmemchr-tests (Files): Likewise.
27585         * modules/rbtree-list-tests (Files): Likewise.
27586         * modules/rbtree-oset-tests (Files): Likewise.
27587         * modules/rbtreehash-list-tests (Files): Likewise.
27588         * modules/readlink-tests (Files): Likewise.
27589         * modules/remove-tests (Files): Likewise.
27590         * modules/rename-tests (Files): Likewise.
27591         * modules/renameat-tests (Files): Likewise.
27592         * modules/rmdir-tests (Files): Likewise.
27593         * modules/round-tests (Files): Likewise.
27594         * modules/roundf-tests (Files): Likewise.
27595         * modules/roundl-tests (Files): Likewise.
27596         * modules/safe-alloc-tests (Files): Likewise.
27597         * modules/setenv-tests (Files): Likewise.
27598         * modules/sigaction-tests (Files): Likewise.
27599         * modules/signbit-tests (Files): Likewise.
27600         * modules/sleep-tests (Files): Likewise.
27601         * modules/snprintf-posix-tests (Files): Likewise.
27602         * modules/snprintf-tests (Files): Likewise.
27603         * modules/sprintf-posix-tests (Files): Likewise.
27604         * modules/stat-tests (Files): Likewise.
27605         * modules/stat-time-tests (Files): Likewise.
27606         * modules/strcasestr-tests (Files): Likewise.
27607         * modules/strchrnul-tests (Files): Likewise.
27608         * modules/strerror-tests (Files): Likewise.
27609         * modules/striconv-tests (Files): Likewise.
27610         * modules/striconveh-tests (Files): Likewise.
27611         * modules/striconveha-tests (Files): Likewise.
27612         * modules/strsignal-tests (Files): Likewise.
27613         * modules/strstr-tests (Files): Likewise.
27614         * modules/strtod-tests (Files): Likewise.
27615         * modules/strverscmp-tests (Files): Likewise.
27616         * modules/symlink-tests (Files): Likewise.
27617         * modules/symlinkat-tests (Files): Likewise.
27618         * modules/trunc-tests (Files): Likewise.
27619         * modules/truncf-tests (Files): Likewise.
27620         * modules/truncl-tests (Files): Likewise.
27621         * modules/uname-tests (Files): Likewise.
27622         * modules/unicase/cased-tests (Files): Likewise.
27623         * modules/unicase/ignorable-tests (Files): Likewise.
27624         * modules/unicase/locale-language-tests (Files): Likewise.
27625         * modules/unicase/tolower-tests (Files): Likewise.
27626         * modules/unicase/totitle-tests (Files): Likewise.
27627         * modules/unicase/toupper-tests (Files): Likewise.
27628         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27629         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27630         * modules/unicase/u8-casefold-tests (Files): Likewise.
27631         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27632         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27633         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27634         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27635         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27636         * modules/unicase/u8-tolower-tests (Files): Likewise.
27637         * modules/unicase/u8-totitle-tests (Files): Likewise.
27638         * modules/unicase/u8-toupper-tests (Files): Likewise.
27639         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27640         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27641         * modules/unicase/u16-casefold-tests (Files): Likewise.
27642         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27643         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27644         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27645         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27646         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27647         * modules/unicase/u16-tolower-tests (Files): Likewise.
27648         * modules/unicase/u16-totitle-tests (Files): Likewise.
27649         * modules/unicase/u16-toupper-tests (Files): Likewise.
27650         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27651         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27652         * modules/unicase/u32-casefold-tests (Files): Likewise.
27653         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27654         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27655         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27656         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27657         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27658         * modules/unicase/u32-tolower-tests (Files): Likewise.
27659         * modules/unicase/u32-totitle-tests (Files): Likewise.
27660         * modules/unicase/u32-toupper-tests (Files): Likewise.
27661         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27662         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27663         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27664         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27665         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27666         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27667         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27668         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27669         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27670         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27671         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27672         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27673         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27674         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27675         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27676         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27677         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27678         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27679         * modules/unictype/block-list-tests (Files): Likewise.
27680         * modules/unictype/block-of-tests (Files): Likewise.
27681         * modules/unictype/block-test-tests (Files): Likewise.
27682         * modules/unictype/category-C-tests (Files): Likewise.
27683         * modules/unictype/category-Cc-tests (Files): Likewise.
27684         * modules/unictype/category-Cf-tests (Files): Likewise.
27685         * modules/unictype/category-Cn-tests (Files): Likewise.
27686         * modules/unictype/category-Co-tests (Files): Likewise.
27687         * modules/unictype/category-Cs-tests (Files): Likewise.
27688         * modules/unictype/category-L-tests (Files): Likewise.
27689         * modules/unictype/category-Ll-tests (Files): Likewise.
27690         * modules/unictype/category-Lm-tests (Files): Likewise.
27691         * modules/unictype/category-Lo-tests (Files): Likewise.
27692         * modules/unictype/category-Lt-tests (Files): Likewise.
27693         * modules/unictype/category-Lu-tests (Files): Likewise.
27694         * modules/unictype/category-M-tests (Files): Likewise.
27695         * modules/unictype/category-Mc-tests (Files): Likewise.
27696         * modules/unictype/category-Me-tests (Files): Likewise.
27697         * modules/unictype/category-Mn-tests (Files): Likewise.
27698         * modules/unictype/category-N-tests (Files): Likewise.
27699         * modules/unictype/category-Nd-tests (Files): Likewise.
27700         * modules/unictype/category-Nl-tests (Files): Likewise.
27701         * modules/unictype/category-No-tests (Files): Likewise.
27702         * modules/unictype/category-P-tests (Files): Likewise.
27703         * modules/unictype/category-Pc-tests (Files): Likewise.
27704         * modules/unictype/category-Pd-tests (Files): Likewise.
27705         * modules/unictype/category-Pe-tests (Files): Likewise.
27706         * modules/unictype/category-Pf-tests (Files): Likewise.
27707         * modules/unictype/category-Pi-tests (Files): Likewise.
27708         * modules/unictype/category-Po-tests (Files): Likewise.
27709         * modules/unictype/category-Ps-tests (Files): Likewise.
27710         * modules/unictype/category-S-tests (Files): Likewise.
27711         * modules/unictype/category-Sc-tests (Files): Likewise.
27712         * modules/unictype/category-Sk-tests (Files): Likewise.
27713         * modules/unictype/category-Sm-tests (Files): Likewise.
27714         * modules/unictype/category-So-tests (Files): Likewise.
27715         * modules/unictype/category-Z-tests (Files): Likewise.
27716         * modules/unictype/category-Zl-tests (Files): Likewise.
27717         * modules/unictype/category-Zp-tests (Files): Likewise.
27718         * modules/unictype/category-Zs-tests (Files): Likewise.
27719         * modules/unictype/category-and-not-tests (Files): Likewise.
27720         * modules/unictype/category-and-tests (Files): Likewise.
27721         * modules/unictype/category-byname-tests (Files): Likewise.
27722         * modules/unictype/category-name-tests (Files): Likewise.
27723         * modules/unictype/category-none-tests (Files): Likewise.
27724         * modules/unictype/category-of-tests (Files): Likewise.
27725         * modules/unictype/category-or-tests (Files): Likewise.
27726         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27727         * modules/unictype/combining-class-tests (Files): Likewise.
27728         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27729         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27730         * modules/unictype/ctype-blank-tests (Files): Likewise.
27731         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27732         * modules/unictype/ctype-digit-tests (Files): Likewise.
27733         * modules/unictype/ctype-graph-tests (Files): Likewise.
27734         * modules/unictype/ctype-lower-tests (Files): Likewise.
27735         * modules/unictype/ctype-print-tests (Files): Likewise.
27736         * modules/unictype/ctype-punct-tests (Files): Likewise.
27737         * modules/unictype/ctype-space-tests (Files): Likewise.
27738         * modules/unictype/ctype-upper-tests (Files): Likewise.
27739         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27740         * modules/unictype/decimal-digit-tests (Files): Likewise.
27741         * modules/unictype/digit-tests (Files): Likewise.
27742         * modules/unictype/mirror-tests (Files): Likewise.
27743         * modules/unictype/numeric-tests (Files): Likewise.
27744         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27745         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27746         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27747         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27748         Likewise.
27749         * modules/unictype/property-bidi-block-separator-tests (Files):
27750         Likewise.
27751         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27752         Likewise.
27753         * modules/unictype/property-bidi-common-separator-tests (Files):
27754         Likewise.
27755         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27756         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27757         Likewise.
27758         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27759         Likewise.
27760         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27761         Likewise.
27762         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27763         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27764         Likewise.
27765         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27766         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27767         Likewise.
27768         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27769         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27770         * modules/unictype/property-bidi-segment-separator-tests (Files):
27771         Likewise.
27772         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27773         * modules/unictype/property-byname-tests (Files): Likewise.
27774         * modules/unictype/property-combining-tests (Files): Likewise.
27775         * modules/unictype/property-composite-tests (Files): Likewise.
27776         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27777         * modules/unictype/property-dash-tests (Files): Likewise.
27778         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27779         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27780         Likewise.
27781         * modules/unictype/property-deprecated-tests (Files): Likewise.
27782         * modules/unictype/property-diacritic-tests (Files): Likewise.
27783         * modules/unictype/property-extender-tests (Files): Likewise.
27784         * modules/unictype/property-format-control-tests (Files): Likewise.
27785         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27786         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27787         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27788         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27789         * modules/unictype/property-hyphen-tests (Files): Likewise.
27790         * modules/unictype/property-id-continue-tests (Files): Likewise.
27791         * modules/unictype/property-id-start-tests (Files): Likewise.
27792         * modules/unictype/property-ideographic-tests (Files): Likewise.
27793         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27794         * modules/unictype/property-ids-trinary-operator-tests (Files):
27795         Likewise.
27796         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27797         * modules/unictype/property-iso-control-tests (Files): Likewise.
27798         * modules/unictype/property-join-control-tests (Files): Likewise.
27799         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27800         * modules/unictype/property-line-separator-tests (Files): Likewise.
27801         * modules/unictype/property-logical-order-exception-tests (Files):
27802         Likewise.
27803         * modules/unictype/property-lowercase-tests (Files): Likewise.
27804         * modules/unictype/property-math-tests (Files): Likewise.
27805         * modules/unictype/property-non-break-tests (Files): Likewise.
27806         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27807         * modules/unictype/property-numeric-tests (Files): Likewise.
27808         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27809         * modules/unictype/property-other-default-ignorable-code-point-tests
27810         (Files): Likewise.
27811         * modules/unictype/property-other-grapheme-extend-tests (Files):
27812         Likewise.
27813         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27814         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27815         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27816         * modules/unictype/property-other-math-tests (Files): Likewise.
27817         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27818         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27819         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27820         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27821         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27822         * modules/unictype/property-private-use-tests (Files): Likewise.
27823         * modules/unictype/property-punctuation-tests (Files): Likewise.
27824         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27825         * modules/unictype/property-radical-tests (Files): Likewise.
27826         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27827         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27828         * modules/unictype/property-space-tests (Files): Likewise.
27829         * modules/unictype/property-terminal-punctuation-tests (Files):
27830         Likewise.
27831         * modules/unictype/property-test-tests (Files): Likewise.
27832         * modules/unictype/property-titlecase-tests (Files): Likewise.
27833         * modules/unictype/property-unassigned-code-value-tests (Files):
27834         Likewise.
27835         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27836         * modules/unictype/property-uppercase-tests (Files): Likewise.
27837         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27838         * modules/unictype/property-white-space-tests (Files): Likewise.
27839         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27840         * modules/unictype/property-xid-start-tests (Files): Likewise.
27841         * modules/unictype/property-zero-width-tests (Files): Likewise.
27842         * modules/unictype/scripts-tests (Files): Likewise.
27843         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27844         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27845         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27846         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27847         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27848         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27849         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27850         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27851         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27852         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27853         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27854         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27855         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27856         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27857         * modules/uninorm/composition-tests (Files): Likewise.
27858         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27859         * modules/uninorm/decomposition-tests (Files): Likewise.
27860         * modules/uninorm/filter-tests (Files): Likewise.
27861         * modules/uninorm/nfc-tests (Files): Likewise.
27862         * modules/uninorm/nfd-tests (Files): Likewise.
27863         * modules/uninorm/nfkc-tests (Files): Likewise.
27864         * modules/uninorm/nfkd-tests (Files): Likewise.
27865         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27866         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27867         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27868         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27869         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27870         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27871         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27872         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27873         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27874         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27875         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27876         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27877         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27878         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27879         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27880         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27881         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27882         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27883         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27884         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27885         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27886         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27887         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27888         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27889         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27890         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27891         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27892         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27893         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27894         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27895         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27896         * modules/uniwidth/u8-width-tests (Files): Likewise.
27897         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27898         * modules/uniwidth/u16-width-tests (Files): Likewise.
27899         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27900         * modules/uniwidth/u32-width-tests (Files): Likewise.
27901         * modules/uniwidth/width-tests (Files): Likewise.
27902         * modules/unlink-tests (Files): Likewise.
27903         * modules/unsetenv-tests (Files): Likewise.
27904         * modules/usleep-tests (Files): Likewise.
27905         * modules/utimens-tests (Files): Likewise.
27906         * modules/utimensat-tests (Files): Likewise.
27907         * modules/vasnprintf-posix-tests (Files): Likewise.
27908         * modules/vasnprintf-tests (Files): Likewise.
27909         * modules/vasprintf-posix-tests (Files): Likewise.
27910         * modules/vasprintf-tests (Files): Likewise.
27911         * modules/vdprintf-posix-tests (Files): Likewise.
27912         * modules/vfprintf-posix-tests (Files): Likewise.
27913         * modules/vprintf-posix-tests (Files): Likewise.
27914         * modules/vsnprintf-posix-tests (Files): Likewise.
27915         * modules/vsnprintf-tests (Files): Likewise.
27916         * modules/vsprintf-posix-tests (Files): Likewise.
27917         * modules/wcrtomb-tests (Files): Likewise.
27918         * modules/wcsnrtombs-tests (Files): Likewise.
27919         * modules/wcsrtombs-tests (Files): Likewise.
27920         * modules/wctype-tests (Files): Likewise.
27921         * modules/wcwidth-tests (Files): Likewise.
27922         * modules/xmemdup0-tests (Files): Likewise.
27923         * modules/xprintf-posix-tests (Files): Likewise.
27924         * modules/xvasprintf-tests (Files): Likewise.
27925
27926 2009-12-24  Eric Blake  <ebb9@byu.net>
27927
27928         test-nanosleep: fix typo
27929         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27930         patch.
27931         Reported by Bruno Haible.
27932
27933 2009-12-24  Bruno Haible  <bruno@clisp.org>
27934
27935         Reduce namespace pollution on glibc systems.
27936         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27937         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27938         systems.
27939         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27940         <getopt.h> on glibc systems.
27941         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27942         systems.
27943         * lib/fcntl.c: Include <unistd.h> here instead.
27944
27945 2009-12-24  Bruno Haible  <bruno@clisp.org>
27946
27947         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27948
27949 2009-12-24  Eric Blake  <ebb9@byu.net>
27950
27951         tests: add signature checks
27952         * tests/signature.h (SIGNATURE_CHECK): New file.
27953         * modules/atexit-tests (Files): Use it.
27954         * modules/btowc-tests (Files): Likewise.
27955         * modules/canonicalize-lgpl-tests (Files): Likewise.
27956         * modules/ceilf-tests (Files): Likewise.
27957         * modules/ceill-tests (Files): Likewise.
27958         * modules/chown-tests (Files): Likewise.
27959         * modules/dprintf-posix-tests (Files): Likewise.
27960         * modules/dup2-tests (Files): Likewise.
27961         * modules/dup3-tests (Files): Likewise.
27962         * modules/duplocale-tests (Files): Likewise.
27963         * modules/fchdir-tests (Files): Likewise.
27964         * modules/fcntl-tests (Files): Likewise.
27965         * modules/fdopendir-tests (Files): Likewise.
27966         * modules/fflush-tests (Files): Likewise.
27967         * modules/flock-tests (Files): Likewise.
27968         * modules/floorf-tests (Files): Likewise.
27969         * modules/floorl-tests (Files): Likewise.
27970         * modules/fnmatch-tests (Files): Likewise.
27971         * modules/fopen-tests (Files): Likewise.
27972         * modules/fprintf-posix-tests (Files): Likewise.
27973         * modules/freopen-tests (Files): Likewise.
27974         * modules/frexp-nolibm-tests (Files): Likewise.
27975         * modules/frexp-tests (Files): Likewise.
27976         * modules/frexpl-nolibm-tests (Files): Likewise.
27977         * modules/frexpl-tests (Files): Likewise.
27978         * modules/fseek-tests (Files): Likewise.
27979         * modules/fseeko-tests (Files): Likewise.
27980         * modules/fsync-tests (Files): Likewise.
27981         * modules/ftell-tests (Files): Likewise.
27982         * modules/ftello-tests (Files): Likewise.
27983         * modules/futimens-tests (Files): Likewise.
27984         * modules/getaddrinfo-tests (Files): Likewise.
27985         * modules/getcwd-tests (Files): Likewise.
27986         * modules/getdelim-tests (Files): Likewise.
27987         * modules/getdtablesize-tests (Files): Likewise.
27988         * modules/getgroups-tests (Files): Likewise.
27989         * modules/gethostname-tests (Files): Likewise.
27990         * modules/getline-tests (Files): Likewise.
27991         * modules/getopt-posix-tests (Files): Likewise.
27992         * modules/gettimeofday-tests (Files): Likewise.
27993         * modules/glob-tests (Files): Likewise.
27994         * modules/iconv-tests (Files): Likewise.
27995         * modules/inet_ntop-tests (Files): Likewise.
27996         * modules/inet_pton-tests (Files): Likewise.
27997         * modules/isblank-tests (Files): Likewise.
27998         * modules/lchown-tests (Files): Likewise.
27999         * modules/ldexpl-tests (Files): Likewise.
28000         * modules/link-tests (Files): Likewise.
28001         * modules/linkat-tests (Files): Likewise.
28002         * modules/lseek-tests (Files): Likewise.
28003         * modules/lstat-tests (Files): Likewise.
28004         * modules/mbrtowc-tests (Files): Likewise.
28005         * modules/mbsinit-tests (Files): Likewise.
28006         * modules/mbsnrtowcs-tests (Files): Likewise.
28007         * modules/mbsrtowcs-tests (Files): Likewise.
28008         * modules/memchr-tests (Files): Likewise.
28009         * modules/memcmp-tests (Files): Likewise.
28010         * modules/memmem-tests (Files): Likewise.
28011         * modules/memrchr-tests (Files): Likewise.
28012         * modules/mkdir-tests (Files): Likewise.
28013         * modules/mkfifo-tests (Files): Likewise.
28014         * modules/mkfifoat-tests (Files): Likewise.
28015         * modules/mknod-tests (Files): Likewise.
28016         * modules/nanosleep-tests (Files): Likewise.
28017         * modules/nl_langinfo-tests (Files): Likewise.
28018         * modules/obstack-printf-tests (Files): Likewise.
28019         * modules/open-tests (Files): Likewise.
28020         * modules/openat-tests (Files): Likewise.
28021         * modules/perror-tests (Files): Likewise.
28022         * modules/pipe2-tests (Files): Likewise.
28023         * modules/poll-tests (Files): Likewise.
28024         * modules/popen-tests (Files): Likewise.
28025         * modules/posix_spawn-tests (Files): Likewise.
28026         * modules/posix_spawnp-tests (Files): Likewise.
28027         * modules/pread-tests (Files): Likewise.
28028         * modules/printf-posix-tests (Files): Likewise.
28029         * modules/pty-tests (Files): Likewise.
28030         * modules/random_r-tests (Files): Likewise.
28031         * modules/rawmemchr-tests (Files): Likewise.
28032         * modules/readlink-tests (Files): Likewise.
28033         * modules/remove-tests (Files): Likewise.
28034         * modules/rename-tests (Files): Likewise.
28035         * modules/renameat-tests (Files): Likewise.
28036         * modules/rmdir-tests (Files): Likewise.
28037         * modules/round-tests (Files): Likewise.
28038         * modules/roundf-tests (Files): Likewise.
28039         * modules/roundl-tests (Files): Likewise.
28040         * modules/select-tests (Files): Likewise.
28041         * modules/setenv-tests (Files): Likewise.
28042         * modules/sigaction-tests (Files): Likewise.
28043         * modules/sleep-tests (Files): Likewise.
28044         * modules/snprintf-posix-tests (Files): Likewise.
28045         * modules/snprintf-tests (Files): Likewise.
28046         * modules/sprintf-posix-tests (Files): Likewise.
28047         * modules/stat-tests (Files): Likewise.
28048         * modules/strcasestr-tests (Files): Likewise.
28049         * modules/strchrnul-tests (Files): Likewise.
28050         * modules/strerror-tests (Files): Likewise.
28051         * modules/strsignal-tests (Files): Likewise.
28052         * modules/strstr-tests (Files): Likewise.
28053         * modules/strtod-tests (Files): Likewise.
28054         * modules/strverscmp-tests (Files): Likewise.
28055         * modules/symlink-tests (Files): Likewise.
28056         * modules/symlinkat-tests (Files): Likewise.
28057         * modules/times-tests (Files): Likewise.
28058         * modules/trunc-tests (Files): Likewise.
28059         * modules/truncf-tests (Files): Likewise.
28060         * modules/truncl-tests (Files): Likewise.
28061         * modules/tsearch-tests (Files): Likewise.
28062         * modules/uname-tests (Files): Likewise.
28063         * modules/unlink-tests (Files): Likewise.
28064         * modules/unsetenv-tests (Files): Likewise.
28065         * modules/usleep-tests (Files): Likewise.
28066         * modules/utimensat-tests (Files): Likewise.
28067         * modules/vasprintf-tests (Files): Likewise.
28068         * modules/vdprintf-posix-tests (Files): Likewise.
28069         * modules/vfprintf-posix-tests (Files): Likewise.
28070         * modules/vprintf-posix-tests (Files): Likewise.
28071         * modules/vsnprintf-posix-tests (Files): Likewise.
28072         * modules/vsnprintf-tests (Files): Likewise.
28073         * modules/vsprintf-posix-tests (Files): Likewise.
28074         * modules/wcrtomb-tests (Files): Likewise.
28075         * modules/wcsnrtombs-tests (Files): Likewise.
28076         * modules/wcsrtombs-tests (Files): Likewise.
28077         * modules/wcwidth-tests (Files): Likewise.
28078         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28079         * tests/test-isinf.c (isinf): Likewise.
28080         * tests/test-isnan.c (isnan): Likewise.
28081         * tests/test-signbit.c (signbit): Likewise.
28082         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28083         declaration, either as macro or with correct signature.
28084         (select): Ensure function under test is declared with correct
28085         signature in correct header.
28086         * tests/test-atexit.c (atexit): Likewise.
28087         * tests/test-btowc.c (btowc): Likewise.
28088         * tests/test-canonicalize-lgpl.c (realpath)
28089         (canonicalize_file_name): Likewise.
28090         * tests/test-ceilf1.c (ceilf): Likewise.
28091         * tests/test-ceill.c (ceill): Likewise.
28092         * tests/test-chown.c (chown): Likewise.
28093         * tests/test-dprintf-posix.c (dprintf): Likewise.
28094         * tests/test-dup2.c (dup2): Likewise.
28095         * tests/test-dup3.c (dup3): Likewise.
28096         * tests/test-duplocale.c (duplocale): Likewise.
28097         * tests/test-fchdir.c (fchdir): Likewise.
28098         * tests/test-fchownat.c (fchownat): Likewise.
28099         * tests/test-fcntl.c (fcntl): Likewise.
28100         * tests/test-fdopendir.c (fdopendir): Likewise.
28101         * tests/test-fflush.c (fflush): Likewise.
28102         * tests/test-flock.c (flock): Likewise.
28103         * tests/test-floorf1.c (floorf): Likewise.
28104         * tests/test-floorl.c (floorl): Likewise.
28105         * tests/test-fnmatch.c (fnmatch): Likewise.
28106         * tests/test-fopen.c (fopen): Likewise.
28107         * tests/test-fprintf-posix.c (fprintf): Likewise.
28108         * tests/test-freopen.c (freopen): Likewise.
28109         * tests/test-frexp.c (frexp): Likewise.
28110         * tests/test-frexpl.c (frexpl): Likewise.
28111         * tests/test-fseek.c (fseek): Likewise.
28112         * tests/test-fseeko.c (fseeko): Likewise.
28113         * tests/test-fstatat.c (fstatat): Likewise.
28114         * tests/test-fsync.c (fsync): Likewise.
28115         * tests/test-ftell.c (ftell): Likewise.
28116         * tests/test-ftello.c (ftello): Likewise.
28117         * tests/test-futimens.c (futimens): Likewise.
28118         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28119         (gai_strerror): Likewise.
28120         * tests/test-getcwd.c (getcwd): Likewise.
28121         * tests/test-getdelim.c (getdelim): Likewise.
28122         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28123         * tests/test-getgroups.c (getgroups): Likewise.
28124         * tests/test-gethostname.c (gethostname): Likewise.
28125         * tests/test-getline.c (getline): Likewise.
28126         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28127         Likewise.
28128         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28129         * tests/test-glob.c (glob, globfree): Likewise.
28130         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28131         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28132         * tests/test-inet_pton.c (inet_pton): Likewise.
28133         * tests/test-isblank.c (isblank): Likewise.
28134         * tests/test-lchown.c (lchown): Likewise.
28135         * tests/test-ldexpl.c (ldexpl): Likewise.
28136         * tests/test-link.c (link): Likewise.
28137         * tests/test-linkat.c (linkat): Likewise.
28138         * tests/test-lseek.c (lseek): Likewise.
28139         * tests/test-lstat.c (lstat): Likewise.
28140         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28141         * tests/test-mbsinit.c (mbsinit): Likewise.
28142         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28143         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28144         * tests/test-memchr.c (memchr): Likewise.
28145         * tests/test-memcmp.c (memcmp): Likewise.
28146         * tests/test-memmem.c (memmem): Likewise.
28147         * tests/test-memrchr.c (memrchr): Likewise.
28148         * tests/test-mkdir.c (mkdir): Likewise.
28149         * tests/test-mkdirat.c (mkdirat): Likewise.
28150         * tests/test-mkfifo.c (mkfifo): Likewise.
28151         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28152         * tests/test-mknod.c (mknod): Likewise.
28153         * tests/test-nanosleep.c (nanosleep): Likewise.
28154         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28155         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28156         Likewise.
28157         * tests/test-open.c (open): Likewise.
28158         * tests/test-openat.c (openat): Likewise.
28159         * tests/test-perror.c (perror): Likewise.
28160         * tests/test-pipe2.c (pipe2): Likewise.
28161         * tests/test-poll.c (poll): Likewise.
28162         * tests/test-popen.c (popen, pclose): Likewise.
28163         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28164         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28165         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28166         (posix_spawn_file_actions_destroy)
28167         (posix_spawn_file_actions_addclose)
28168         (posix_spawn_file_actions_addopen)
28169         (posix_spawn_file_actions_adddup2): Likewise.
28170         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28171         * tests/test-pread.c (pread): Likewise.
28172         * tests/test-printf-posix.c (printf): Likewise.
28173         * tests/test-pty.c (openpty, forkpty): Likewise.
28174         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28175         (random_r): Likewise.
28176         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28177         * tests/test-readlink.c (readlink): Likewise.
28178         * tests/test-remove.c (remove): Likewise.
28179         * tests/test-rename.c (rename): Likewise.
28180         * tests/test-renameat.c (renameat): Likewise.
28181         * tests/test-rmdir.c (rmdir): Likewise.
28182         * tests/test-round1.c (round): Likewise.
28183         * tests/test-roundf1.c (roundf): Likewise.
28184         * tests/test-roundl.c (roundl): Likewise.
28185         * tests/test-setenv.c (setenv): Likewise.
28186         * tests/test-sigaction.c (sigaction): Likewise.
28187         * tests/test-sleep.c (sleep): Likewise.
28188         * tests/test-snprintf.c (snprintf): Likewise.
28189         * tests/test-sprintf-posix.c (sprintf): Likewise.
28190         * tests/test-stat.c (stat): Likewise.
28191         * tests/test-stpncpy.c (stpncpy): Likewise.
28192         * tests/test-strcasestr.c (strcasestr): Likewise.
28193         * tests/test-strchrnul.c (strchrnul): Likewise.
28194         * tests/test-strerror.c (strerror): Likewise.
28195         * tests/test-strsignal.c (strsignal): Likewise.
28196         * tests/test-strstr.c (strstr): Likewise.
28197         * tests/test-strtod.c (strtod): Likewise.
28198         * tests/test-strverscmp.c (strverscmp): Likewise.
28199         * tests/test-symlink.c (symlink): Likewise.
28200         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28201         * tests/test-times.c (times): Likewise.
28202         * tests/test-trunc1.c (trunc): Likewise.
28203         * tests/test-truncf1.c (truncf): Likewise.
28204         * tests/test-truncl.c (truncl): Likewise.
28205         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28206         Likewise.
28207         * tests/test-uname.c (uname): Likewise.
28208         * tests/test-unlink.c (unlink): Likewise.
28209         * tests/test-unlinkat.c (unlinkat): Likewise.
28210         * tests/test-unsetenv.c (unsetenv): Likewise.
28211         * tests/test-usleep.c (usleep): Likewise.
28212         * tests/test-utimensat.c (utimensat): Likewise.
28213         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28214         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28215         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28216         * tests/test-vprintf-posix.c (vprintf): Likewise.
28217         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28218         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28219         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28220         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28221         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28222         * tests/test-wcwidth.c (wcwidth): Likewise.
28223
28224         build: pull in conditional headers during GNULIB_POSIXCHECK
28225         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28226         definitions from any conditionally-included headers.
28227         * lib/stdlib.in.h (includes): Likewise.
28228         * lib/unistd.in.h (includes): Likewise.
28229
28230 2009-12-24  Bruno Haible  <bruno@clisp.org>
28231
28232         * tests/test-argv-iter.c: Include header file being tested immediately
28233         after config.h.
28234         * tests/test-base64.c: Likewise.
28235         * tests/test-flock.c: Likewise.
28236         * tests/test-fsync.c: Likewise.
28237         * tests/test-getdate.c: Likewise.
28238         * tests/test-getndelim2.c: Likewise.
28239         * tests/test-isfinite.c: Likewise.
28240         * tests/test-isinf.c: Likewise.
28241         * tests/test-strerror.c: Likewise.
28242         * tests/test-strsignal.c: Likewise.
28243
28244 2009-12-23  Eric Blake  <ebb9@byu.net>
28245
28246         unistd: work around cygwin bug
28247         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28248         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28249         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28250
28251 2009-12-23  Bruno Haible  <bruno@clisp.org>
28252
28253         localename: More tests.
28254         * tests/test-localename.c (SIZEOF): New macro.
28255         (categories): New variable.
28256         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28257         test_locale_name_default): Add test w.r.t. thread locale.
28258         (test_locale_name_thread): New function.
28259         (main): Invoke it.
28260
28261         localename: Make aware of thread locale.
28262         * lib/localename.h (gl_locale_name_thread): New declaration.
28263         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28264         behaviour with respect to thread locale.
28265         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28266         <langinfo.h>, glthread/lock.h.
28267         (SIZE_BITS): New macro.
28268         (string_hash): New function.
28269         (struct hash_node): New type.
28270         (HASH_TABLE_SIZE): New macro.
28271         (struniq_hash_table, struniq_lock): New variables.
28272         (struniq): New function.
28273         (gl_locale_name_thread): New function.
28274         (gl_locale_name): Invoke it.
28275         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28276         * modules/localename (Depends-on): Add lock.
28277         Reported by Mike Gran <spk121@yahoo.com>.
28278
28279 2009-12-23  Eric Blake  <ebb9@byu.net>
28280
28281         va-args: new module
28282         * modules/va-args: New file.
28283         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28284         * MODULES.html.sh (Core language properties): Mention it.
28285
28286         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28287         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28288         named alias for __attribute__((__unused__)).
28289         * lib/chown.c: Update client.
28290         * lib/fchmodat.c: Likewise.
28291         * lib/fts.c: Likewise.
28292         * lib/getdate.y: Likewise.
28293         * lib/getgroups.c: Likewise.
28294         * lib/getopt.c: Likewise.
28295         * lib/getugroups.c: Likewise.
28296         * lib/mkdir.c: Likewise.
28297         * lib/mkfifo.c: Likewise.
28298         * lib/mkfifoat.c: Likewise.
28299         * lib/mknod.c: Likewise.
28300         * lib/mknodat.c: Likewise.
28301         * lib/readlink.c: Likewise.
28302         * lib/se-context.in.h: Likewise.
28303         * lib/se-selinux.in.h: Likewise.
28304         * lib/sockets.c: Likewise.
28305         * lib/symlink.c: Likewise.
28306         * lib/symlinkat.c: Likewise.
28307         * lib/unicodeio.c: Likewise.
28308         * lib/unistr.h: Likewise.
28309         * tests/test-areadlink.c: Likewise.
28310         * tests/test-areadlinkat.c: Likewise.
28311         * tests/test-filenamecat.c: Likewise.
28312         * tests/test-fseeko.c: Likewise.
28313         * tests/test-ftello.c: Likewise.
28314         * tests/test-getdate.c: Likewise.
28315         * tests/test-getgroups.c: Likewise.
28316         * tests/test-gethostname.c: Likewise.
28317         * tests/test-quotearg.c: Likewise.
28318         * tests/test-version-etc.c: Likewise.
28319         * tests/test-xalloc-die.c: Likewise.
28320         * tests/test-xfprintf-posix.c: Likewise.
28321         * tests/test-xprintf-posix.c: Likewise.
28322         * tests/test-xvasprintf.c: Likewise.
28323
28324         tests: avoid compiler warnings
28325         * tests/test-fcntl.c (main): Delete unused parameters.
28326         * tests/test-freopen-safer.c (main): Likewise.
28327         * tests/test-xalloc-die.c (main): Mark unused parameters.
28328         * tests/test-fseeko.c (main): Likewise.
28329         * tests/test-ftello.c (main): Likewise.
28330         * tests/test-nanosleep.c (main): Avoid declaration warning.
28331         * tests/test-sleep.c (main): Likewise.
28332         * tests/test-unsetenv.c (main): Silence warning about string
28333         literal.
28334         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28335
28336 2009-12-23  Bruno Haible  <bruno@clisp.org>
28337
28338         * tests/test-localename.c (test_locale_name): New function, extracted
28339         from main. Also test mixed situations.
28340         (test_locale_name_posix, test_locale_name_environ,
28341         test_locale_name_default): New functions.
28342         (main): Invoke them all.
28343         * modules/localename-tests (configure.ac): Test for newlocale.
28344
28345 2009-12-23  Bruno Haible  <bruno@clisp.org>
28346
28347         unistd: Ensure getcwd gets declared before being overridden.
28348         * lib/unistd.in.h: Conditionally include <io.h>.
28349
28350 2009-12-22  Bruno Haible  <bruno@clisp.org>
28351
28352         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28353         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28354         (gl_WCHAR_H): Invoke it.
28355         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28356         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28357         Reported by Karl Berry <karl@freefriends.org>.
28358
28359 2009-12-22  Eric Blake  <ebb9@byu.net>
28360
28361         math, unistd: avoid redundant includes
28362         * lib/math.in.h (isnan): No need to re-include <math.h>.
28363         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28364
28365         getsubopt: work around cygwin bug
28366         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28367         avoid conflicting with system getsubopt.
28368         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28369         bug.
28370
28371         getopt: synchronize from glibc
28372         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28373         parameter order.  Adjust all callers.
28374         (_getopt_internal_r, main): Adjust quoting in error messages.
28375         Drop considerations for outdated POSIX 1003.2 error message.
28376         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28377         callers.
28378         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28379
28380         test-getopt: test stderr behavior
28381         * modules/getopt-posix-tests (Depends-on): Add dup2.
28382         * tests/test-getopt.c (ASSERT): Avoid stderr.
28383         (main): Move stderr to a temporary file.
28384         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28385         Instead, add parameter to inform caller if output occurred.
28386         (test_getopt): Adjust all existing tests to expect silence, and
28387         add new tests of leading ":".
28388         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28389         glibc shortcomings with leading "-:" or "+:" in optstring.
28390         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28391         Likewise.
28392         * doc/posix-functions/getopt.texi (getopt): Likewise.
28393
28394         test-getopt: enhance test
28395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28396         supports optind=0.
28397         * tests/test-getopt.c (OPTIND_MIN): Move...
28398         * tests/test-getopt.h (OPTIND_MIN): ...here.
28399         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28400         Require that optind=0 works, since modern BSD supports it in
28401         addition to optreset, and since coreutils expects it.
28402         (test_getopt_long_only): New test.
28403         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28404         glibc shortcomings with 'W;', and enforcement of optind=0.
28405         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28406         Likewise.
28407
28408 2009-12-21  Bruno Haible  <bruno@clisp.org>
28409
28410         localename: Improvements for MacOS X and Cygwin.
28411         * lib/localename.h (gl_locale_name_environ): New declaration.
28412         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28413         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28414         (gl_locale_name_posix): Invoke it.
28415         (gl_locale_name_default): Add comments. Use Windows native API also on
28416         Cygwin.
28417
28418 2009-12-21  Bruno Haible  <bruno@clisp.org>
28419
28420         Update list of Win32 locale ids.
28421         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28422         (LANG_SAMI): Renamed from LANG_SAAMI.
28423         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28424         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28425         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28426         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28427         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28428         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28429         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28430         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28431         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28432         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28433         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28434         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28435         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28436         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28437         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28438         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28439         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28440         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28441         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28442         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28443         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28444         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28445         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28446         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28447         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28448         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28449         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28450         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28451         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28452         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28453         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28454         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28455         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28456         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28457         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28458         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28459         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28460         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28461         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28462         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28463         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28464         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28465         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28466         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28467         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28468         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28469         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28470         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28471         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28472         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28473         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28474         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28475         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28476         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28477         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28478         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28479         Add more languages and countries for Sami, Sorbian. Add more countries
28480         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28481         for Pashto. Change country for Syriac, Tswana.
28482
28483 2009-12-21  Eric Blake  <ebb9@byu.net>
28484
28485         test-utimens: avoid spurious failure
28486         * tests/test-chown.h (nap): Factor...
28487         * tests/nap.h: ...into new file.
28488         * tests/test-lchown.h (nap): Avoid duplication.
28489         * tests/test-utimens-common.h (nap): Use shared implementation,
28490         necessary on file systems with 1-second resolution.
28491         * modules/chown-tests (Files): Include new file.
28492         * modules/fdutimensat-tests (Files): Likewise.
28493         * modules/futimens-tests (Files): Likewise.
28494         * modules/lchown-tests (Files): Likewise.
28495         * modules/openat-tests (Files): Likewise.
28496         * modules/utimens-tests (Files): Likewise.
28497         * modules/utimensat-tests (Files): Likewise.
28498
28499 2009-12-19  Eric Blake  <ebb9@byu.net>
28500
28501         futimens, utimensat: work around Linux bug
28502         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28503         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28504         * lib/utimensat.c (rpl_utimensat): Work around it.
28505         * lib/futimens.c (rpl_futimens): Adjust comment.
28506
28507         utimens: work around Linux ctime bug
28508         * lib/utimens.c (detect_ctime_bug): New helper function.
28509         (update_timespec): Differentiate between workaround needed for
28510         this bug vs. what is needed for systems that lack utimensat.
28511         (fdutimens, lutimens): Work around bug.
28512
28513         utimens: check for ctime update
28514         * tests/test-utimens-common.h (check_ctime): Define.
28515         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28516         * tests/test-futimens.h (test_futimens): Likewise.
28517         * tests/test-lutimens.h (test_lutimens): Likewise.
28518         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28519         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28520
28521 2009-12-19  Bruno Haible  <bruno@clisp.org>
28522
28523         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28524         * tests/test-dprintf-posix2.sh: New file.
28525         * tests/test-dprintf-posix2.c: New file.
28526         * modules/dprintf-posix-tests (Files): Add them.
28527         (configure.ac): Check for getrlimit and setrlimit.
28528         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28529
28530 2009-12-19  Bruno Haible  <bruno@clisp.org>
28531
28532         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28533         * tests/test-fprintf-posix3.sh: New file.
28534         * tests/test-fprintf-posix3.c: New file.
28535         * modules/fprintf-posix-tests (Files): Add them.
28536         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28537
28538 2009-12-19  Eric Blake  <ebb9@byu.net>
28539
28540         dirfd: fix prototype
28541         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28542         * lib/dirfd.c (dirfd): Likewise.
28543
28544         canonicalize: reduce memory usage
28545         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28546         allocation to size.
28547         Reported by Solar Designer <solar@openwall.com>.
28548
28549 2009-12-19  Bruno Haible  <bruno@clisp.org>
28550
28551         New module attribute 'Applicability'.
28552         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28553         * gnulib-tool: New option --extract-applicability.
28554         (func_usage): Document it.
28555         (sed_extract_prog): Recognize it.
28556         (func_get_applicability): New function.
28557         (func_import): Generalize handling of 'link-warning' module.
28558         * modules/link-warning (Applicability): New section.
28559         * modules/arg-nonnull (Applicability): New section.
28560         Repoted by Simon Josefsson <simon@josefsson.org>.
28561
28562 2009-12-19  Bruno Haible  <bruno@clisp.org>
28563
28564         fflush: tweak
28565         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28566         * lib/fseeko.c (rpl_fseeko): Likewise.
28567
28568 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28569
28570         * lib/gl_list.h: Fix typo in comment.
28571
28572 2009-12-16  Eric Blake  <ebb9@byu.net>
28573
28574         fcntl: use to simplify other modules
28575         * modules/cloexec (Depends-on): Add fcntl.
28576         * modules/fchdir (Depends-on): Likewise.
28577         * modules/fd-safer-flag (Depends-on): Likewise.
28578         * modules/unistd-safer (Depends-on): Likewise.
28579         * modules/dup3 (configure.ac): Set module indicator.
28580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28581         missing.
28582         * lib/fchdir.c (_gl_register_dup): Fix comment.
28583         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28584         * lib/dup-safer.c (dup_safer): Likewise.
28585         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28586         * lib/dup3.c (dup3): Likewise.
28587         * tests/test-fchdir.c (main): Enhance test.
28588         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28589
28590         fcntl: port portions of fcntl to mingw
28591         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28592         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28593         replacement for mingw.
28594         * modules/fcntl (Description): Update.
28595         (Depends-on): Add dup2.
28596         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28597         * modules/fcntl-h (Makefile.am): Substitute it.
28598         * lib/fcntl.in.h (fcntl): Update declaration.
28599         (F_DUPFD, F_GETFD): New macros, when needed.
28600         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28601         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28602         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28603         we now guarantee.
28604
28605         fcntl: work around cygwin bug in F_DUPFD
28606         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28607         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28608         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28609         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28610         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28611
28612         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28613         * modules/fcntl (Files): List new files.
28614         (configure.ac): Run a test.
28615         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28616         * lib/fcntl.c (rpl_fcntl): Likewise.
28617         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28618         (gl_FCNTL_H): Always replace fcntl.h.
28619         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28620         * lib/fcntl.in.h (fcntl): Declare replacement.
28621         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28622         needed, plus a witness.
28623         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28624         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28625         * tests/test-fcntl.c: New file.
28626         * modules/fcntl-tests: Likewise.
28627
28628         binary-io: avoid potential compilation warning
28629         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28630         directives.
28631
28632         fflush: avoid compilation error on NetBSD
28633         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28634         between off_t and fpos_t, since the latter is sometimes a struct.
28635         * lib/fseeko.c (rpl_fseeko): Likewise.
28636         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28637
28638 2009-12-15  Eric Blake  <ebb9@byu.net>
28639
28640         fcntl-h, stdio, sys_ioctl: fix declarations
28641         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28642         function must not take arguments.
28643         * lib/sys_ioctl.in.h (ioctl): Likewise.
28644         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28645         (open): Add a link warning.
28646
28647 2009-12-15  Jim Meyering  <meyering@redhat.com>
28648
28649         areadlink, areadlink-with-size: relax license to LGPLv2+
28650         * modules/areadlink (License): Relax to LGPLv2+.
28651         * modules/areadlink-with-size (License): Likewise.
28652
28653 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28654             Bruno Haible  <bruno@clisp.org>
28655
28656         *printf: Fix memory leak.
28657         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28658         * lib/vfprintf.c (vfprintf): Likewise.
28659         * lib/dprintf.c (dprintf): Likewise.
28660         * lib/vdprintf.c (vdprintf): Likewise.
28661
28662 2009-12-14  Eric Blake  <ebb9@byu.net>
28663
28664         accept4: adjust module dependencies
28665         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28666
28667         utimens: one more try at avoiding compiler warning
28668         * lib/utimens.c (lutimens): Lower scope of result.
28669
28670 2009-12-13  Bruno Haible  <bruno@clisp.org>
28671
28672         Move the malloc checking from module 'list' to new module 'xlist'.
28673         * modules/xlist: New file.
28674         * lib/gl_xlist.h: New file.
28675         * lib/gl_xlist.c: New file.
28676         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28677         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28678         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28679         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28680         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28681         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28682         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28683         gl_sortedlist_nx_add): New declarations.
28684         (struct gl_list_implementation): Rename and change methods accordingly.
28685         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28686         (gl_list_nx_create): Renamed from gl_list_create.
28687         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28688         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28689         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28690         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28691         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28692         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28693         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28694         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28695         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28696         gl_list_create_empty.
28697         (gl_list_nx_create): Renamed from gl_list_create.
28698         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28699         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28700         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28701         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28702         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28703         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28704         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28705         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28706         * lib/gl_array_list.c: Don't include xalloc.h.
28707         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28708         NULL upon out-of-memory.
28709         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28710         out-of-memory.
28711         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28712         Change return type to 'int'.
28713         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28714         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28715         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28716         upon out-of-memory.
28717         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28718         upon out-of-memory.
28719         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28720         upon out-of-memory.
28721         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28722         upon out-of-memory.
28723         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28724         out-of-memory.
28725         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28726         Update.
28727         (gl_array_list_implementation): Update.
28728         * lib/gl_carray_list.c: Don't include xalloc.h.
28729         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28730         Return NULL upon out-of-memory.
28731         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28732         out-of-memory.
28733         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28734         Change return type to 'int'.
28735         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28736         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28737         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28738         upon out-of-memory.
28739         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28740         upon out-of-memory.
28741         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28742         out-of-memory.
28743         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28744         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28745         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28746         Update.
28747         (gl_carray_list_implementation): Update.
28748         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28749         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28750         gl_linked_create_empty. Return NULL upon out-of-memory.
28751         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28752         out-of-memory.
28753         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28754         Change return type to 'int'. Return -1 upon out-of-memory.
28755         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28756         out-of-memory.
28757         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28758         upon out-of-memory.
28759         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28760         upon out-of-memory.
28761         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28762         NULL upon out-of-memory.
28763         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28764         upon out-of-memory.
28765         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28766         out-of-memory.
28767         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28768         Update.
28769         * lib/gl_linked_list.c: Don't include xalloc.h.
28770         (gl_linked_list_implementation): Update.
28771         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28772         (add_to_bucket): Change return type to 'int'.
28773         (gl_linkedhash_list_implementation): Update.
28774         * lib/gl_anytree_list1.h (free_subtree): New function.
28775         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28776         gl_tree_create_empty. Return NULL upon out-of-memory.
28777         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28778         Change return type to 'int'. Return -1 upon out-of-memory.
28779         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28780         out-of-memory.
28781         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28782         (gl_tree_remove_node): New function, moved here from
28783         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28784         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28785         Update.
28786         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28787         malloc, not xmalloc. Return NULL upon out-of-memory.
28788         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28789         out-of-memory.
28790         (gl_tree_remove_node_from_tree): New function, extracted from
28791         gl_tree_remove_node.
28792         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28793         upon out-of-memory.
28794         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28795         out-of-memory.
28796         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28797         upon out-of-memory.
28798         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28799         upon out-of-memory.
28800         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28801         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28802         not xmalloc. Return NULL upon out-of-memory.
28803         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28804         out-of-memory.
28805         (gl_tree_remove_node_from_tree): New function, extracted from
28806         gl_tree_remove_node.
28807         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28808         upon out-of-memory.
28809         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28810         out-of-memory.
28811         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28812         upon out-of-memory.
28813         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28814         upon out-of-memory.
28815         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28816         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28817         gl_anytree_list1.h before gl_anyavltree_list2.h.
28818         (gl_avltree_list_implementation): Update.
28819         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28820         gl_anytree_list1.h before gl_anyavltree_list2.h.
28821         (gl_rbtree_list_implementation): Update.
28822         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28823         Change return type to 'int'. Return -1 upon out-of-memory. Use
28824         __builtin_expect.
28825         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28826         (gl_avltreehash_list_implementation): Update.
28827         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28828         (gl_rbtreehash_list_implementation): Update.
28829         * modules/array-list (Depends-on): Remove xalloc.
28830         * modules/carray-list (Depends-on): Likewise.
28831         * modules/linked-list (Depends-on): Likewise.
28832         * modules/linkedhash-list (Depends-on): Likewise.
28833         * modules/avltree-list (Depends-on): Likewise.
28834         * modules/rbtree-list (Depends-on): Likewise.
28835         * modules/avltreehash-list (Depends-on): Likewise.
28836         * modules/rbtreehash-list (Depends-on): Likewise.
28837
28838         * modules/xsublist: New file.
28839         * lib/gl_xsublist.h: New file.
28840         * lib/gl_xsublist.c: New file.
28841         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28842         (gl_sublist_nx_create): New declaration.
28843         * lib/gl_sublist.c: Don't include xalloc.h.
28844         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28845         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28846         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28847         Change return type to 'int'. Return -1 upon out-of-memory.
28848         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28849         upon out-of-memory.
28850         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28851         NULL upon out-of-memory.
28852         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28853         upon out-of-memory.
28854         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28855         NULL upon out-of-memory.
28856         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28857         NULL upon out-of-memory.
28858         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28859         upon out-of-memory.
28860         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28861         (gl_sublist_list_implementation): Update.
28862         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28863         upon out-of-memory.
28864         * modules/sublist (Depends-on): Remove xalloc.
28865
28866         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28867         * tests/test-carray_list.c: Likewise.
28868         * tests/test-linked_list.c: Likewise.
28869         * tests/test-linkedhash_list.c: Likewise.
28870         * tests/test-avltree_list.c: Likewise.
28871         * tests/test-rbtree_list.c: Likewise.
28872         * tests/test-avltreehash_list.c: Likewise.
28873         * tests/test-rbtreehash_list.c: Likewise.
28874         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28875         * modules/carray-list-tests (Makefile.am): Likewise.
28876         * modules/linked-list-tests (Makefile.am): Likewise.
28877         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28878         * modules/avltree-list-tests (Makefile.am): Likewise.
28879         * modules/rbtree-list-tests (Makefile.am): Likewise.
28880         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28881         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28882
28883         * NEWS: Mention the changes.
28884
28885         * lib/clean-temp.c: Include gl_xlist.h.
28886         * modules/clean-temp (Depends-on): Add xlist.
28887
28888         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28889         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28890
28891         * tests/test-array_oset.c: Include gl_xlist.h.
28892         * modules/array-oset-tests (Depends-on): Add xlist.
28893
28894         Reported by José E. Marchesi <jemarch@gnu.org>.
28895
28896 2009-12-13  Bruno Haible  <bruno@clisp.org>
28897
28898         Move the malloc checking from module 'oset' to new module 'xoset'.
28899         * modules/xoset: New file.
28900         * lib/gl_xoset.h: New file.
28901         * lib/gl_xoset.c: New file.
28902         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28903         declarations.
28904         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28905         (struct gl_oset_implementation): Rename and change methods accordingly.
28906         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28907         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28908         'int'. Mark as __warn_unused_result__.
28909         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28910         gl_oset_create_empty.
28911         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28912         'int'.
28913         * lib/gl_array_oset.c: Don't include xalloc.h.
28914         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28915         malloc, not xmalloc.
28916         (grow): Change return type to 'int'. Don't call xalloc_die.
28917         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28918         to 'int'.
28919         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28920         'int'.
28921         (gl_array_oset_implementation): Update.
28922         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28923         gl_tree_create_empty.
28924         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28925         'int'.
28926         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28927         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28928         xmalloc.
28929         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28930         not xmalloc.
28931         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28932         xmalloc.
28933         (gl_avltree_oset_implementation): Update.
28934         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28935         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28936         xmalloc.
28937         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28938         not xmalloc.
28939         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28940         xmalloc.
28941         (gl_rbtree_oset_implementation): Update.
28942         * modules/array-oset (Depends-on): Remove xalloc.
28943         * modules/avltree-oset (Depends-on): Likewise.
28944         * modules/rbtree-oset (Depends-on): Likewise.
28945         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28946         * tests/test-avltree_oset.c: Likewise.
28947         * tests/test-rbtree_oset.c: Likewise.
28948         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28949         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28950         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28951         * NEWS: Mention the change.
28952
28953 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28954
28955         maint.mk: allow a project to override release-prep commands
28956         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28957         commands into a new rule.
28958         (release-prep): New rule.
28959         (release-prep-hook): New overridable variable.
28960
28961 2009-12-13  Bruno Haible  <bruno@clisp.org>
28962
28963         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28964
28965 2009-12-13  Jim Meyering  <meyering@redhat.com>
28966
28967         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28968         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28969
28970 2009-12-12  Bruno Haible  <bruno@clisp.org>
28971
28972         duplocale: Tweak.
28973         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28974
28975 2009-12-12  Karl Berry  <karl@gnu.org>
28976
28977         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28978
28979 2009-12-12  Bruno Haible  <bruno@clisp.org>
28980
28981         * m4/po.m4: Undo incorrect untabification.
28982
28983 2009-12-12  Bruno Haible  <bruno@clisp.org>
28984
28985         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28986         * modules/c-strtod (Depends-on): Add locale.
28987         * modules/c-strtold (Depends-on): Likewise.
28988
28989 2009-12-12  Bruno Haible  <bruno@clisp.org>
28990
28991         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28992
28993 2009-12-11  Eric Blake  <ebb9@byu.net>
28994
28995         setenv: relax requirement in light of POSIX ruling
28996         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28997         not NULL.
28998         * tests/test-setenv.c (main): Relax test.
28999         * tests/test-unsetenv.c (main): Likewise.
29000         * doc/posix-functions/setenv.texi (setenv): Document this.
29001         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29002
29003 2009-12-11  Bruno Haible  <bruno@clisp.org>
29004
29005         New module 'fd-safer-flag'.
29006         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29007         * lib/dup-safer.c (dup_safer_flag): Remove function.
29008         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29009         * lib/fd-safer.c (fd_safer_flag): Remove function.
29010         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29011         * modules/cloexec (configure.ac): Drop indicator macro.
29012         * modules/fd-safer-flag: New file.
29013         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29014         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29015         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29016
29017 2009-12-11  Bruno Haible  <bruno@clisp.org>
29018
29019         Tests for module 'nl_langinfo'.
29020         * modules/nl_langinfo-tests: New file.
29021         * tests/test-nl_langinfo.sh: New file.
29022         * tests/test-nl_langinfo.c: New file.
29023
29024         New module 'nl_langinfo'.
29025         * lib/nl_langinfo.c: New file.
29026         * m4/nl_langinfo.m4: New file.
29027         * modules/nl_langinfo: New file.
29028         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29029
29030 2009-12-11  Bruno Haible  <bruno@clisp.org>
29031
29032         Tests for module 'langinfo'.
29033         * modules/langinfo-tests: New file.
29034         * tests/test-langinfo.c: New file.
29035
29036         New module 'langinfo'.
29037         * lib/langinfo.in.h: New file.
29038         * m4/langinfo_h.m4: New file.
29039         * modules/langinfo: New file.
29040         * doc/posix-headers/langinfo.texi: Mention the new module.
29041
29042 2009-12-11  Bruno Haible  <bruno@clisp.org>
29043
29044         * lib/config.charset: Untabify.
29045
29046 2009-12-11  Bruno Haible  <bruno@clisp.org>
29047
29048         * modules/unistd-safer (configure.ac): Drop indicator macro.
29049
29050 2009-12-11  Bruno Haible  <bruno@clisp.org>
29051
29052         Move pipe2-safer code to its own file.
29053         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29054         * lib/pipe-safer.c (pipe2_safer): Remove function.
29055         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29056         (Makefile.am): Add it to lib_SOURCES.
29057
29058 2009-12-10  Bruno Haible  <bruno@clisp.org>
29059
29060         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29061
29062 2009-12-10  Bruno Haible  <bruno@clisp.org>
29063
29064         Declare which arguments expect non-NULL values, for GCC and clang.
29065         * build-aux/arg-nonnull.h: New file.
29066         * modules/arg-nonnull: New file.
29067         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29068         (inet_ntop, inet_pton): Use it.
29069         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29070         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29071         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29072         (open, openat): Use it.
29073         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29074         (fnmatch): Use it.
29075         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29076         (getopt, getopt_long, getopt_long_only): Use it.
29077         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29078         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29079         Use it.
29080         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29081         (iconv_open): Use it.
29082         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29083         (strtoimax, strtoumax): Use it.
29084         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29085         (duplocale): Use it.
29086         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29087         (frexp, frexpl): Use it.
29088         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29089         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29090         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29091         (tsearch, tfind, tdelete, twalk): Use it.
29092         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29093         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29094         sigpending): Use it.
29095         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29096         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29097         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29098         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29099         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29100         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29101         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29102         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29103         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29104         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29105         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29106         Use it.
29107         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29108         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29109         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29110         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29111         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29112         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29113         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29114         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29115         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29116         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29117         strtoull, unsetenv): Use it.
29118         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29119         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29120         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29121         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29122         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29123         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29124         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29125         (strcasecmp, strncasecmp): Use it.
29126         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29127         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29128         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29129         rpl_setsockopt): Use it.
29130         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29131         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29132         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29133         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29134         (gettimeofday): Use it.
29135         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29136         (times): Use it.
29137         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29138         (uname): Use it.
29139         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29140         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29141         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29142         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29143         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29144         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29145         unlinkat, write): Use it.
29146         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29147         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29148         * lib/argv-iter.h: Include arg-nonnull.h.
29149         (_ATTRIBUTE_NONNULL_): Remove macro.
29150         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29151         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29152         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29153         optimization.
29154         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29155         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29156         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29157         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29158         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29159         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29160         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29161         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29162         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29163         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29164         * modules/dirent (Depends-on): Add arg-nonnull.
29165         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29166         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29167         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29168         * modules/fnmatch (Depends-on): Add arg-nonnull.
29169         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29170         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29171         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29172         * modules/glob (Depends-on): Add arg-nonnull.
29173         (Makefile.am): Insert arg-nonnull.h into glob.h.
29174         * modules/iconv_open (Depends-on): Add arg-nonnull.
29175         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29176         * modules/inttypes (Depends-on): Add arg-nonnull.
29177         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29178         * modules/locale (Depends-on): Add arg-nonnull.
29179         (Makefile.am): Insert arg-nonnull.h into locale.h.
29180         * modules/math (Depends-on): Add arg-nonnull.
29181         (Makefile.am): Insert arg-nonnull.h into math.h.
29182         * modules/netdb (Depends-on): Add arg-nonnull.
29183         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29184         * modules/search (Depends-on): Add arg-nonnull.
29185         (Makefile.am): Insert arg-nonnull.h into search.h.
29186         * modules/signal (Depends-on): Add arg-nonnull.
29187         (Makefile.am): Insert arg-nonnull.h into signal.h.
29188         * modules/spawn (Depends-on): Add arg-nonnull.
29189         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29190         * modules/stdio (Depends-on): Add arg-nonnull.
29191         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29192         * modules/stdlib (Depends-on): Add arg-nonnull.
29193         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29194         * modules/string (Depends-on): Add arg-nonnull.
29195         (Makefile.am): Insert arg-nonnull.h into string.h.
29196         * modules/strings (Depends-on): Add arg-nonnull.
29197         (Makefile.am): Insert arg-nonnull.h into strings.h.
29198         * modules/sys_socket (Depends-on): Add arg-nonnull.
29199         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29200         * modules/sys_stat (Depends-on): Add arg-nonnull.
29201         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29202         * modules/sys_time (Depends-on): Add arg-nonnull.
29203         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29204         * modules/sys_times (Depends-on): Add arg-nonnull.
29205         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29206         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29207         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29208         * modules/time (Depends-on): Add arg-nonnull.
29209         (Makefile.am): Insert arg-nonnull.h into time.h.
29210         * modules/unistd (Depends-on): Add arg-nonnull.
29211         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29212         * modules/wchar (Depends-on): Add arg-nonnull.
29213         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29214         * modules/argv-iter (Depends-on): Add arg-nonnull.
29215         * tests/test-canonicalize.c (null_ptr): New function.
29216         (main): Use it.
29217         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29218         (main): Use it.
29219         * tests/test-memmem.c (null_ptr): New function.
29220         (main): Use it.
29221         Reported by Jim Meyering.
29222
29223 2009-12-10  Bruno Haible  <bruno@clisp.org>
29224
29225         Use spaces for indentation, not tabs.
29226         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29227         * m4/*.m4: Untabify.
29228         * build-aux/*.h: Untabify.
29229         * tests/**/*.[hc]: Untabify.
29230         * README: New section "Indent with spaces, not TABs", based on
29231         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29232         * NEWS: Mention the change.
29233
29234 2009-12-10  Bruno Haible  <bruno@clisp.org>
29235
29236         pty test: Fix link error.
29237         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29238         test_pty_LDADD.
29239
29240 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29241
29242         * modules/pty: New file.
29243         * modules/pty-tests: New file.
29244         * m4/pty.m4: New file.
29245         * tests/test-pty.c: New file.
29246         * doc/glibc-headers/pty.texi: Modified.
29247         * doc/glibc-functions/forkpty.texi: Modified.
29248         * doc/glibc-functions/openpty.texi: Modified.
29249
29250 2009-12-10  Bruno Haible  <bruno@clisp.org>
29251
29252         Avoid syntax error in C++ mode.
29253         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29254
29255 2009-12-10  Bruno Haible  <bruno@clisp.org>
29256
29257         Use sed with option -e.
29258         * gnulib-tool (func_version, func_emit_copyright_notice,
29259         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29260         option -e to sed.
29261         * modules/link-warning (Makefile.am): Likewise.
29262
29263 2009-12-10  Jim Meyering  <meyering@redhat.com>
29264
29265         mgetgroups: do not write bytes beyond end of malloc'd buffer
29266         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29267         username, we call getgroups with a one-element-shorter buffer,
29268         but still told it the length was original, max_n_groups.
29269
29270 2009-12-09  Eric Blake  <ebb9@byu.net>
29271
29272         cloexec: relax license
29273         * modules/cloexec (Maintainer): Add myself.
29274         (License): Use LGPL, not GPL.
29275
29276         link-warning: optimize generation
29277         * modules/link-warning (Makefile.am): Reduce process usage.
29278
29279 2009-12-09  Bruno Haible  <bruno@clisp.org>
29280
29281         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29282         workaround was added on 2009-11-17.
29283
29284 2009-12-09  Jim Meyering  <meyering@redhat.com>
29285             Bruno Haible  <bruno@clisp.org>
29286
29287         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29288         * modules/link-warning (Makefile.am): Make the comment-removing sed
29289         command more robust in the face of bootstrap-prepended comment lines.
29290
29291 2009-12-09  Bruno Haible  <bruno@clisp.org>
29292
29293         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29294         most one group.
29295
29296 2009-12-09  Simon Josefsson <simon@josefsson.org>
29297             Bruno Haible  <bruno@clisp.org>
29298
29299         * build-aux/link-warning.h: Add copyright notice.
29300         * modules/link-warning (Makefile.am): Generate link-warning.h from
29301         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29302         * NEWS: Mention change in link-warning module.
29303         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29304         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29305         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29306         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29307         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29308         * modules/math (Makefile.am): Add dependency to math.h.
29309         * modules/search (Makefile.am): Add dependency to search.h.
29310         * modules/signal (Makefile.am): Add dependency to signal.h.
29311         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29312         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29313         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29314         * modules/string (Makefile.am): Add dependency to string.h.
29315         * modules/strings (Makefile.am): Add dependency to strings.h.
29316         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29317         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29318         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29319         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29320         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29321         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29322         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29323         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29324         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29325
29326 2009-12-09  Bruno Haible  <bruno@clisp.org>
29327
29328         fchdir: Optimize away rpl_fstat when possible.
29329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29330         REPLACE_OPEN_DIRECTORY.
29331         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29332
29333 2009-12-09  Bruno Haible  <bruno@clisp.org>
29334
29335         * lib/fchdir.c: Update comment.
29336
29337 2009-12-09  Bruno Haible  <bruno@clisp.org>
29338
29339         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29340
29341 2009-12-08  Eric Blake  <ebb9@byu.net>
29342
29343         fchdir: avoid memory leak on re-registration.
29344         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29345
29346 2009-12-08  Jim Meyering  <meyering@redhat.com>
29347
29348         init.sh: avoid Solaris 10 /bin/sh portability problem
29349         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29350         sourced script:
29351           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29352           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29353           bar
29354         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29355         and two tests used that idiom.
29356         * tests/init.sh: Update suggested usage comments.
29357         (path_prepend_): New function, to be used in place
29358         of the --src-path=DIR option.
29359         (setup_): Move PATH-prepending code into path_prepend_.
29360         * tests/test-pread.sh: Adapt to new usage.
29361         * tests/test-xalloc-die.sh: Likewise.
29362
29363 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29364
29365         * doc/gnulib.texi (Glibc pty.h): Add.
29366         * doc/glibc-functions/forkpty.texi: Add.
29367         * doc/glibc-functions/openpty.texi: Add.
29368         Suggested by Bruno Haible.
29369
29370 2009-12-08  Eric Blake  <ebb9@byu.net>
29371
29372         fchdir: fix logic bugs
29373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29374         * tests/test-fchdir.c (main): Enhance test.
29375         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29376         is in use.
29377
29378         dup2: fix logic bugs
29379         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29380         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29381         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29382         exists.
29383         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29384
29385 2009-12-07  Eric Blake  <ebb9@byu.net>
29386
29387         unlink: fix m4 detection
29388         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29389
29390         unistd-safer: add unit test
29391         * modules/unistd-safer-tests: New file.
29392         * tests/test-dup-safer.c: Likewise.
29393         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29394         * tests/test-dup2.c (setmode): Likewise.
29395         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29396
29397         cloexec: preserve text vs. binary across dup_cloexec
29398         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29399         mode.
29400         * modules/dup2-tests (Depends-on): Add binary-io.
29401         * modules/cloexec-tests (Depends-on): Likewise.
29402         * tests/test-dup2.c (setmode, is_mode): New helpers.
29403         (main): Add tests that translation mode is preserved.
29404         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29405         Reported by Bruno Haible.
29406
29407         mgetgroups: reduce duplicate listings
29408         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29409         resulting array.
29410         * tests/test-chown.h (test_chown): Simplify client.
29411         * tests/test-lchown.h (test_lchown): Likewise.
29412
29413 2009-12-06  Bruno Haible  <bruno@clisp.org>
29414
29415         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29416         value.
29417
29418 2009-12-06  Bruno Haible  <bruno@clisp.org>
29419
29420         * lib/progname.c: Include stdio.h, stdlib.h.
29421         (set_program_name): Reject a NULL argument.
29422
29423 2009-12-05  Eric Blake  <ebb9@byu.net>
29424
29425         pipe2-safer: new module
29426         * modules/pipe2-safer: New file.
29427         * lib/unistd-safer.h (pipe2_safer): New prototype.
29428         * lib/unistd--.h (pipe2): New wrapper.
29429         * lib/pipe-safer.c (pipe2_safer): New function.
29430         * modules/pipe (Depends-on): Add pipe2-safer.
29431         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29432
29433         stdlib-safer: preserve cloexec flag for mkostemp[s]
29434         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29435         fd_safer_flag.
29436
29437         unistd-safer: allow preservation of cloexec status via flag
29438         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29439         prototypes.
29440         * lib/dup-safer.c (dup_safer_flag): New function.
29441         * lib/fd-safer.c (fd_safer_flag): Likewise.
29442         * modules/cloexec (configure.ac): Set witness.
29443
29444         test-dup2: enhance test
29445         * modules/dup2-tests (Depends-on): Add cloexec.
29446         * tests/test-dup2.c (main): Enhance test.
29447
29448         cloexec: add dup_cloexec
29449         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29450         header and comments.
29451         * lib/cloexec.c (set_cloexec_flag): Add comments.
29452         (dup_cloexec): New function, with mingw implementation borrowed
29453         from...
29454         * lib/w32spawn.h (dup_noinherit): ...here.
29455         * modules/execute (Depends-on): Add cloexec.
29456         * modules/pipe (Depends-on): Likewise.
29457         * modules/cloexec (Depends-on): Add dup2.
29458         * modules/cloexec-tests (Files): New file.
29459         * tests/test-cloexec.c: Likewise.
29460
29461         test-xalloc-die: fix test for mingw
29462         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29463         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29464         directory and .exe suffix off argv[0] output.
29465
29466         test-fseeko: fix test for mingw
29467         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29468         than undefining fseek, so test will pass on mingw.
29469
29470 2009-12-05  Bruno Haible  <bruno@clisp.org>
29471
29472         * lib/progname.h (set_program_name): Clarify specification.
29473         * lib/progname.c (set_program_name): Likewise.
29474         Reported by Jim Meyering.
29475
29476 2009-12-05  Jim Meyering  <meyering@redhat.com>
29477
29478         maint.mk: backslash-escape parens in default regexp
29479         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29480         backslash-escape the literal parentheses.
29481
29482         maint.mk: news-date-check: use grep -E
29483         * top/maint.mk (today): Define a Make variable, not a...
29484         (news-date-check): ...shell variable.
29485         (news-date-regexp): Use the Make variable.
29486         Use grep's -E option.  Change the failing diagnostic to mention
29487         the variable, $(news-date-regexp).
29488
29489 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29490
29491         maintainer-makefile: allow customization of NEWS entry format
29492         * top/maint.mk (news-date-regexp): New overridable variable.
29493         (news-date-check): Use it.
29494
29495 2009-12-04  Eric Blake  <ebb9@byu.net>
29496
29497         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29498         * lib/mgetgroups.h (xgetgroups): New prototype.
29499         * lib/mgetgroups.c (xgetgroups): New wrapper.
29500         (mgetgroups): Handle ENOSYS.
29501         * modules/mgetgroups (Depends-on): Add realloc.
29502         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29503
29504         mgetgroups: avoid argument promotion issues with -1
29505         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29506         for invalid gid_t.
29507         * tests/test-chown.h (getegid, test_chown): Likewise.
29508         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29509
29510 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29511
29512         exclude: Fix header file problems.
29513         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29514
29515 2009-12-01  Jim Meyering  <meyering@redhat.com>
29516
29517         fts: fts_open: do not let an empty string cause immediate failure
29518         This is required in support of GNU rm, for which the command
29519         "rm A '' B" must process and remove both A and B, in spite of
29520         the empty string argument.
29521         * lib/fts.c (fts_open): Do not let the presence of an empty string
29522         cause fts_open to fail immediately.  Most fts-using tools must be
29523         able to process all arguments, in order, and can be expected to
29524         diagnose such arguments themselves.
29525
29526 2009-11-30  Eric Blake  <ebb9@byu.net>
29527
29528         utimens: fix compilation error
29529         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29530         Declare variable at right scope.
29531
29532 2009-11-29  Jim Meyering  <meyering@redhat.com>
29533
29534         bootstrap: handle perl-5.11's changed --version output
29535         * build-aux/bootstrap (get_version): Handle perl separately,
29536         since perl-5.11's --version output is different.
29537
29538 2009-11-28  Jim Meyering  <meyering@redhat.com>
29539
29540         userspec: depend on the inttostr module, too
29541         * modules/userspec (Depends-on): Add inttostr.
29542
29543         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29544         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29545         number of MAXUID when it evaluates to (uid_t) -1.
29546         Likewise for group ID.  Reported by Matt McCutchen in
29547         <http://savannah.gnu.org/bugs/?28113>
29548
29549         userspec: reformat to use spaces, not TABs
29550         * lib/userspec.c: Expand TABs to spaces.
29551         Add Emacs' "indent-tabs-mode: nil" hint.
29552
29553 2009-11-27  Eric Blake  <ebb9@byu.net>
29554
29555         getopt-gnu: flush out another BSD bug
29556         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29557         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29558         flush out BSD bug.
29559         * tests/test-getopt.h (test_getopt): End lists with NULL.
29560         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29561         (test_getopt_long_posix): Enhance test.
29562         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29563         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29564         getopt-gnu.
29565         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29566         Likewise.
29567
29568 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29569
29570         * modules/idpriv-droptemp-tests (Notice): Fix text.
29571
29572 2009-11-27  Jim Meyering  <meyering@redhat.com>
29573
29574         test-xalloc-die: avoid spurious failure due to libtool argv difference
29575         In a libtool-enabled project, this test would fail due to a difference
29576         in the emitted program name, e.g.,
29577         -test-xalloc-die: memory exhausted
29578         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29579         Use program to avoid that.
29580         * modules/xalloc-die-tests (Depends-on): Add progname.
29581         * tests/test-xalloc-die.c: Include progname.h".
29582         (program_name): Remove decl.
29583         (main): Call set_program_name.
29584         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29585
29586 2009-11-26  Richard Jones  <rjones@redhat.com>
29587
29588         w32sock: leave win32 error in place.
29589         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29590
29591 2009-11-26  Eric Blake  <ebb9@byu.net>
29592
29593         init.sh: suggest to use skip_ and fail_ functions in comments
29594         * tests/init.sh: Add a sentence.
29595
29596 2009-11-25  Bruno Haible  <bruno@clisp.org>
29597
29598         init.sh: add documentation in comments
29599         * tests/init.sh: Add some developer and user documentation.
29600
29601 2009-11-26  Jim Meyering  <meyering@redhat.com>
29602
29603         init.sh: accommodate even those who specify bogus srcdir manually
29604         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29605         configure-time tests to be sanitized, so that there is no need to
29606         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29607         (with no double quotes) suffices.  However, since tests may be
29608         invoked manually, and since you may explicitly set srcdir to the
29609         name of a directory containing spaces, do quote its uses here.
29610         * tests/test-pread.sh: Likewise.
29611         Suggested by Bruno Haible.
29612
29613         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29614         * tests/test-pread.sh: Write no data into the pipe, because
29615         test-pread actually reads none.  This avoids a diagnostic,
29616         "bash: echo: write error: Broken pipe", that arises in the unusual
29617         event something is ignoring SIGPIPE, and might be interpreted
29618         as some sort of failure.  Reported by Bruno Haible.
29619
29620 2009-11-25  Jim Meyering  <meyering@redhat.com>
29621
29622         test-pread: cover failure with ESPIPE and EINVAL
29623         * tests/test-pread.c (main): Test for failure, too.
29624         * tests/test-pread.sh: Invoke with stdin on a pipe.
29625         Suggested by Eric Blake.
29626
29627         pread: improvement and fix
29628         * modules/pread (Depends-on): Depend on lseek, for portability to
29629         e.g., mingw.  Suggested by Eric Blake.
29630         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29631
29632         unistd.in.h: correct declaration of pread
29633         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29634         Reported by Richard W.M. Jones.
29635
29636         test-pread.sh: distribute the test script
29637         * modules/pread-tests (Files): Include test-pread.sh.
29638
29639         test-pread.sh: clean up
29640         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29641         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29642         That is unnecessary, since it's always ".".
29643         Suggestion from Eric Blake.
29644
29645         test-pread.sh: make executable
29646         * tests/test-pread.sh: Set executable bit.
29647         Reported by Eric Blake.
29648
29649         correct typo in test-pread.sh
29650         * tests/test-pread.sh: Add #! line.
29651
29652         test pread
29653         * tests/test-pread.c: New file.
29654         * tests/test-pread.sh: Likewise.
29655         * modules/pread-tests: Likewise.
29656
29657         pread: new module
29658         * modules/pread: New file.
29659         * lib/unistd.in.h (pread): Define/declare.
29660         * lib/pread.c (pread): New file.
29661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29662         * modules/unistd (Makefile.am): Substitute witnesses.
29663         * doc/posix-functions/pread.texi (pread): Update.
29664         * MODULES.html.sh: Add pread.
29665
29666 2009-11-25  Jim Meyering  <meyering@redhat.com>
29667
29668         tests/init.sh: new file to be used via most *.sh tests
29669         * tests/init.sh: New file.
29670
29671 2009-11-25  Eric Blake  <ebb9@byu.net>
29672
29673         utimens: work around older Linux failure with symlinks
29674         * lib/utimens.c (lutimensat_works_really): New variable.
29675         (fdutimens, lutimens): Use it to manage kernels that support
29676         nanosecond times on files, but not on symlinks.
29677         Reported by OndÅ™ej Vašík.
29678
29679         utimes: fix configure grammar
29680         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29681
29682 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29683
29684         regex: Fix fastmap for multibyte character ranges.
29685         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29686         characters when a multibyte character range is included.
29687
29688 2009-11-22  Andy Wingo  <wingo@pobox.com>
29689
29690         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29691         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29692
29693 2009-11-24  Bruno Haible  <bruno@clisp.org>
29694
29695         doc: Most *_l functions exist in MacOS X 10.5.
29696         * doc/posix-functions/duplocale.texi: Update platforms list.
29697         * doc/posix-functions/freelocale.texi: Likewise.
29698         * doc/posix-functions/newlocale.texi: Likewise.
29699         * doc/posix-functions/uselocale.texi: Likewise.
29700         * doc/posix-functions/isalnum_l.texi: Likewise.
29701         * doc/posix-functions/isalpha_l.texi: Likewise.
29702         * doc/posix-functions/isblank_l.texi: Likewise.
29703         * doc/posix-functions/iscntrl_l.texi: Likewise.
29704         * doc/posix-functions/isdigit_l.texi: Likewise.
29705         * doc/posix-functions/isgraph_l.texi: Likewise.
29706         * doc/posix-functions/islower_l.texi: Likewise.
29707         * doc/posix-functions/isprint_l.texi: Likewise.
29708         * doc/posix-functions/ispunct_l.texi: Likewise.
29709         * doc/posix-functions/isspace_l.texi: Likewise.
29710         * doc/posix-functions/isupper_l.texi: Likewise.
29711         * doc/posix-functions/iswalnum_l.texi: Likewise.
29712         * doc/posix-functions/iswalpha_l.texi: Likewise.
29713         * doc/posix-functions/iswblank_l.texi: Likewise.
29714         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29715         * doc/posix-functions/iswctype_l.texi: Likewise.
29716         * doc/posix-functions/iswdigit_l.texi: Likewise.
29717         * doc/posix-functions/iswgraph_l.texi: Likewise.
29718         * doc/posix-functions/iswlower_l.texi: Likewise.
29719         * doc/posix-functions/iswprint_l.texi: Likewise.
29720         * doc/posix-functions/iswpunct_l.texi: Likewise.
29721         * doc/posix-functions/iswspace_l.texi: Likewise.
29722         * doc/posix-functions/iswupper_l.texi: Likewise.
29723         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29724         * doc/posix-functions/isxdigit_l.texi: Likewise.
29725         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29726         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29727         * doc/posix-functions/strcoll_l.texi: Likewise.
29728         * doc/posix-functions/strfmon_l.texi: Likewise.
29729         * doc/posix-functions/strftime_l.texi: Likewise.
29730         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29731         * doc/posix-functions/strxfrm_l.texi: Likewise.
29732         * doc/posix-functions/tolower_l.texi: Likewise.
29733         * doc/posix-functions/toupper_l.texi: Likewise.
29734         * doc/posix-functions/towctrans_l.texi: Likewise.
29735         * doc/posix-functions/towlower_l.texi: Likewise.
29736         * doc/posix-functions/towupper_l.texi: Likewise.
29737         * doc/posix-functions/wcscoll_l.texi: Likewise.
29738         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29739         * doc/posix-functions/wctrans_l.texi: Likewise.
29740         * doc/posix-functions/wctype_l.texi: Likewise.
29741         * doc/glibc-functions/strptime_l.texi: Likewise.
29742         * doc/glibc-functions/strtod_l.texi: Likewise.
29743         * doc/glibc-functions/strtof_l.texi: Likewise.
29744         * doc/glibc-functions/strtol_l.texi: Likewise.
29745         * doc/glibc-functions/strtold_l.texi: Likewise.
29746         * doc/glibc-functions/strtoll_l.texi: Likewise.
29747         * doc/glibc-functions/strtoul_l.texi: Likewise.
29748         * doc/glibc-functions/strtoull_l.texi: Likewise.
29749         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29750         * doc/glibc-functions/wcstod_l.texi: Likewise.
29751         * doc/glibc-functions/wcstof_l.texi: Likewise.
29752         * doc/glibc-functions/wcstol_l.texi: Likewise.
29753         * doc/glibc-functions/wcstold_l.texi: Likewise.
29754         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29755         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29756         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29757
29758 2009-11-24  Bruno Haible  <bruno@clisp.org>
29759
29760         duplocale: Fix logic bug.
29761         * lib/duplocale.c: Don't include <langinfo.h>.
29762         (_NL_LOCALE_NAME): Remove macro.
29763         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29764         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29765
29766 2009-11-23  Jim Meyering  <meyering@redhat.com>
29767
29768         test-update-copyright: don't hard-code /usr/bin/perl
29769         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29770         perl to print the current year.  Gilles Espinasse reported that
29771         the replaced use of perl was hard-coded as /usr/bin/perl.
29772
29773 2009-11-23  Bruno Haible  <bruno@clisp.org>
29774
29775         duplocale: Add support for glibc 2.3.x.
29776         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29777
29778 2009-11-22  Bruno Haible  <bruno@clisp.org>
29779
29780         vasnprintf: Tiny optimization.
29781         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29782         MacOS X.
29783
29784 2009-11-22  Bruno Haible  <bruno@clisp.org>
29785
29786         Tests for module 'duplocale'.
29787         * modules/duplocale-tests: New file.
29788         * tests/test-duplocale.c: New file.
29789
29790         New module 'duplocale'.
29791         * m4/duplocale.m4: New file.
29792         * lib/locale.in.h (duplocale): New declaration.
29793         * lib/duplocale.c: New file.
29794         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29795         gl_LOCALE_H_DEFAULTS): New macros.
29796         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29797         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29798         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29799         REPLACE_DUPLOCALE.
29800         * modules/duplocale: New file.
29801         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29802
29803 2009-11-22  Bruno Haible  <bruno@clisp.org>
29804
29805         * modules/locale-tests (configure.ac): Test for newlocale function.
29806         * tests/test-locale.c: When the system has extended locale functions,
29807         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29808
29809         locale: Make locale_t available when possible.
29810         * lib/locale.in.h: Include <xlocale.h> when it exists.
29811         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29812         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29813         * modules/locale (Depends-on): Add extensions.
29814         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29815         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29816
29817 2009-11-22  Bruno Haible  <bruno@clisp.org>
29818
29819         Add comments.
29820         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29821         invocation.
29822         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29823         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29824         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29825
29826 2009-11-22  Bruno Haible  <bruno@clisp.org>
29827
29828         error: account for the possibility of freopen (stdout).
29829         * lib/error.c: Include <unistd.h>.
29830         (flush_stdout): New function, extracted from error and error_at_line.
29831         Determine stdout's fd dynamically.
29832         (error, error_at_line): Invoke flush_stdout.
29833         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29834         * modules/error (Depends-on): Add unistd.
29835
29836 2009-11-22  Bruno Haible  <bruno@clisp.org>
29837
29838         diffseq: Add comment.
29839         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29840
29841 2009-11-22  Jim Meyering  <meyering@redhat.com>
29842
29843         c-stack: avoid defining an unused static function
29844         * lib/c-stack.c (find_stack_direction): Do not define this function
29845         when it will not be used.
29846
29847         diffseq: avoid spurious gcc warnings
29848         * lib/diffseq.h (IF_LINT2): Define.
29849         (compareseq): Use it to initialize two members of "part".
29850         This avoids two used-uninitialized warnings.
29851
29852 2009-11-21  Jim Meyering  <meyering@redhat.com>
29853
29854         c-stack: avoid "ignoring return value of `write'" warning
29855         * lib/c-stack.c: Include "ignore-value.h".
29856         (die): Explicitly ignore each write return value.
29857         * modules/c-stack (Depends-on): Add ignore-value.
29858
29859 2009-11-21  Bruno Haible  <bruno@clisp.org>
29860
29861         diffseq: reduce scope of variable 'best'.
29862         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29863         variable, earlier used for two different purposes.
29864
29865 2009-11-21  Jim Meyering  <meyering@redhat.com>
29866
29867         diffseq: remove useless assignment to "best"
29868         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29869         assignment.  At that point "best" is already guaranteed to be zero.
29870
29871 2009-11-20  Eric Blake  <ebb9@byu.net>
29872
29873         build: mention ftp redirector in release announcements
29874         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29875         values that used to come from cfg.mk; mention FTP redirect URL.
29876         * build-aux/announce-gen: Mention the mirror list.
29877         Suggested by Karl Berry.
29878
29879         nanosleep: improve port to mingw
29880         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29882         LIB_NANOSLEEP, but only when needed.
29883         * modules/select (Link): Document LIBSOCKET.
29884         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29885         enough.
29886
29887         nanosleep: work around cygwin bug
29888         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29889         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29890         bug.
29891         (getnow): Delete, not needed.
29892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29893         LIB_CLOCK_GETTIME.
29894         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29895         clock-time, gettime.
29896         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29897         bug.
29898         * modules/nanosleep-tests: New test.
29899         * tests/test-nanosleep.c: New file.
29900
29901         sleep: work around cygwin bug
29902         * lib/sleep.c (rpl_sleep): Work around the bug.
29903         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29904         (gl_PREREQ_SLEEP): Delete unused macro.
29905         * modules/sleep (Depends-on): Add verify.
29906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29907         * modules/unistd (Makefile.am): Substitute witness.
29908         * lib/unistd.in.h (sleep): Update prototype.
29909         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29910         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29911         * modules/sleep-tests (Depends-on): Check for alarm.
29912
29913 2009-11-20  Jim Meyering  <meyering@redhat.com>
29914
29915         maint.mk: improve sc_prohibit_magic_number_exit
29916         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29917         so it does not match uses like System.exit(1).
29918         Add comments showing how to correct all offenders.
29919
29920 2009-11-19  Eric Blake  <ebb9@byu.net>
29921
29922         xalloc-die-tests: add missing library
29923         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29924
29925         test-xvasprintf: silence compiler warnings
29926         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29927         empty string from gcc.
29928
29929 2009-11-19  Jim Meyering  <meyering@redhat.com>
29930
29931         xfreopen: new module, from coreutils
29932         * modules/xfreopen: New module.
29933         * lib/xfreopen.c: New file.
29934         * lib/xfreopen.h: New file.
29935         * MODULES.html.sh (File stream based Input/Output"): Add it.
29936
29937 2009-11-19  Eric Blake  <ebb9@byu.net>
29938
29939         manywarnings: depend on warnings
29940         * modules/manywarnings (Depends-on): Add warnings.
29941
29942         build: avoid compiler warnings
29943         * lib/select.c (rpl_select): Delete unused variable.
29944         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29945
29946 2009-11-18  Eric Blake  <ebb9@byu.net>
29947
29948         tests: avoid false negative with --with-packager
29949         * tests/test-version-etc.sh: Discard packager information.
29950         * tests/test-argp-version-etc-1.sh: Likewise.
29951         Reported by Mike Frysinger.
29952
29953         utimens: fix regression on Solaris
29954         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29955         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29956         can only change fd timestamps via futimesat.  Instead, use an
29957         additional witness macro to avoid BSD bug.
29958         Reported by Jim Meyering.
29959
29960 2009-11-17  Eric Blake  <ebb9@byu.net>
29961
29962         usleep: use it to simplify tests
29963         * modules/stat-time-tests (Depends-on): Add usleep.
29964         (configure.ac): Drop usleep check.
29965         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29966         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29967         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29968         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29969         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29970         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29971         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29972         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29973         Likewise.
29974         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29975         * tests/test-lchown.h (nap): Likewise.
29976         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29977         * tests/test-stat-time.c (nap): Likewise.
29978         * tests/test-utimens-common.h (nap): Update comments.
29979
29980         usleep: new module
29981         * modules/usleep: New file.
29982         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29983         * lib/usleep.c (usleep): Likewise.
29984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29985         * modules/unistd (Makefile.am): Substitute witnesses.
29986         * lib/unistd.in.h (usleep): Add declaration.
29987         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29988         * MODULES.html.sh (Date and time): Likewise.
29989         * modules/usleep-tests (Depends-on): New test.
29990         * tests/test-usleep.c: New file.
29991
29992         chown: work around OpenBSD bug
29993         * lib/chown.c (rpl_chown): Work around the bug.
29994         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29995         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29996         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29997         * modules/chown (Depends-on): Add stdbool.
29998         * modules/lchown (Depends-on): Likewise.
29999         * doc/posix-functions/chown.texi (chown): Document the bug.
30000         * doc/posix-functions/lchown.texi (lchown): Likewise.
30001         * tests/test-lchown.h (test_chown): Relax test.
30002
30003         mkstemp: avoid conflict with C++ keyword template
30004         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30005         * lib/mkostemp.c (mkostemp): Likewise.
30006         * lib/mkostemps.c (mkostemps): Likewise.
30007         * lib/mkstemp.c (mkstemp): Likewise.
30008         * lib/mkstemps.c (mkstemps): Likewise.
30009
30010         xalloc-die-tests: optimize
30011         * tests/test-xalloc-die.sh: Reduce number of processes.
30012
30013 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30014
30015         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30016         patch from ludo@gnu.org (Ludovic Courtès).
30017
30018 2009-11-17  Jim Meyering  <meyering@redhat.com>
30019
30020         version-etc: use proper license string
30021         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30022         * modules/version-etc-fsf: Likewise.
30023
30024 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30025
30026         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30027         printed to stdout.  Deal with EOL differences.
30028
30029 2009-11-17  Eric Blake  <ebb9@byu.net>
30030
30031         unsetenv: work around Solaris bug
30032         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30033         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30034         Reported by Jim Meyering.
30035
30036         vasnprintf: avoid compiler warnings
30037         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30038         variables.
30039         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30040
30041 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30042
30043         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30044         settings since xalloc-die is no longer the self test,
30045         xalloc-die.sh is.
30046
30047 2009-11-17  Jim Meyering  <meyering@redhat.com>
30048
30049         test-xalloc-die.sh: make the code agree with the commit log
30050         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30051         at the end, just in case you happen to have a test-xalloc-die
30052         program in some other PATH directory.
30053
30054         test-xalloc-die.sh: fix a portability bug
30055         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30056         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30057         Otherwise, argv[0] (as often seen in diagnostics) would be too
30058         system-dependent, sometimes with, and sometimes without the leading "./".
30059
30060         version-etc-fsf: relax license to LGPLv3+
30061         * modules/version-etc-fsf (License): Relax license.
30062
30063 2009-11-16  Eric Blake  <ebb9@byu.net>
30064
30065         xalloc-die-tests: avoid printing null pointer
30066         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30067         shell script.
30068         * tests/test-xalloc-die.c (program_name): Declare.
30069         * tests/test-xalloc-die.sh (tmpfiles): New file.
30070
30071         setenv, unsetenv: work around various bugs
30072         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30073         (setenv) [HAVE_SETENV]: Work around bugs.
30074         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30075         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30076         for bugs.
30077         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30078         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30080         * modules/stdlib (Makefile.am): Update substitutions.
30081         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30082         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30083         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30084         * modules/setenv-tests: New test.
30085         * modules/unsetenv-tests: Likewise.
30086         * tests/test-setenv.c: New file.
30087         * tests/test-unsetenv.c: Likewise.
30088
30089 2009-11-16  Jim Meyering  <meyering@redhat.com>
30090
30091         version-etc: relax license to LGPLv3+
30092         * modules/version-etc (License): Relax license.
30093
30094         better AC_REQUIRE expanded-before-required-warning avoidance
30095         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30096         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30097         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30098         which is no longer needed.
30099
30100 2009-11-16  Eric Blake  <ebb9@byu.net>
30101
30102         test-freading: clean up temporary file
30103         * tests/test-freading.c (main): Remove file on success, and use
30104         ASSERT more liberally.
30105         Reported by Jim Meyering.
30106
30107 2009-11-16  Jim Meyering  <meyering@redhat.com>
30108
30109         avoid new AC_REQUIRE expanded-before-required warnings
30110         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30111         merely using it.
30112         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30113         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30114
30115 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30116
30117         * tests/test-xalloc-die.c: New file.
30118         * modules/xalloc-die-tests: New file.
30119         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30120         XFAIL_TESTS so it can be appended by modules.
30121
30122 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30123
30124         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30125         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30126
30127 2009-11-14  Eric Blake  <ebb9@byu.net>
30128
30129         fnmatch: avoid compiler warning
30130         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30131         to silence compiler warning about mismatch signedness in ?:.
30132         Reported by Robert Millan.
30133
30134         intprops: add double-inclusion guard
30135         * lib/intprops.h: Allow idempotent includes.
30136         Suggested by Bruce Korb.
30137
30138         openat: detect Solaris fchownat bug
30139         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30140         penalizing glibc chownat when only lchownat is broken.
30141         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30142         trailing slash bugs.
30143         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30144         * modules/openat-tests (Files): Include more files.
30145         (Depends-on): Add mgetgroups, sleep, stat-time.
30146         (configure.ac): Add additional checks.
30147         (Makefile.am): Build new test.
30148         * tests/test-fchownat.c: New file.
30149
30150         lchown: detect Solaris and FreeBSD bug
30151         * lib/lchown.c (rpl_lchown): Work around bug.
30152         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30154         * modules/unistd (Makefile.am): Populate it.
30155         * lib/unistd.in.h (lchown): Update declaration.
30156         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30157         * modules/lchown-tests: New file.
30158         * tests/test-lchown.h (test_lchown): Likewise.
30159         * tests/test-lchown.c (main): Likewise.
30160
30161         chown: detect Solaris and FreeBSD bug
30162         * lib/chown.c (rpl_chown): Work around bug.
30163         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30164         (gl_PREREQ_CHOWN): Delete.
30165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30166         * modules/unistd (Makefile.am): Populate it.
30167         * lib/unistd.in.h (chown): Update declaration.
30168         * lib/lchown.c (chown): Update client.
30169         * modules/lchown (Depends-on): Add lstat.
30170         * doc/posix-functions/chown.texi (chown): Document the bug.
30171         * doc/posix-functions/getgroups.texi (getgroups): Document
30172         getgroups pitfall.
30173         * modules/chown-tests: New file.
30174         * tests/test-chown.h (test_chown): Likewise.
30175         * tests/test-chown.c (main): Likewise.
30176
30177 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30178
30179         gnulib-tool: correctly detect absence of m4 directories
30180         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30181
30182 2009-11-14  Jim Meyering  <meyering@redhat.com>
30183
30184         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30185         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30186
30187 2009-11-14  John W. Eaton  <jwe@gnu.org>
30188
30189         strftime.h: wrap funtion declaration in extern "C" block
30190         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30191
30192 2009-11-13  Eric Blake  <ebb9@byu.net>
30193
30194         getgroups: avoid compiler warning
30195         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30196
30197         getgroups: work around FreeBSD bug
30198         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30199         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30200         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30201         * tests/test-getgroups.c (main): Fix buffer overrun.
30202
30203         getgroups: avoid compilation failure
30204         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30205         * modules/getgroups (Depends-on): Add stdint.
30206
30207 2009-11-13  Jim Meyering  <meyering@redhat.com>
30208
30209         test-getgroups: avoid compilation failure
30210         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30211
30212 2009-11-13  Eric Blake  <ebb9@byu.net>
30213
30214         mgetgroups: new module, taken from coreutils
30215         * modules/mgetgroups: New file.
30216         * lib/mgetgroups.h: Likewise.
30217         * lib/mgetgroups.c (mgetgroups): Likewise.
30218         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30219         * MODULES.html.sh (Users and groups): Mention it.
30220
30221         getgroups: don't expose GETGROUPS_T to user
30222         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30223         an element at a time if GETGROUPS_T is wrong size.
30224         * lib/getugroups.h (getugroups): Change signature.
30225         * lib/unistd.in.h (getgroups): Likewise.
30226         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30227         signature needs fixing.
30228         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30229         AC_TYPE_GETGROUPS.
30230         * modules/group-member (Depends-on): Add getgroups.
30231         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30232         (group_member): Rely on getgroups replacement.
30233         * lib/getugroups.c (getugroups): Use gid_t.
30234         * tests/test-getgroups.c (main): Likewise.
30235         * NEWS: Mention the signature change.
30236         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30237         problem with signature.
30238         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30239         GETGROUPS_T is still useful for setgroups.
30240
30241         getgroups, getugroups: provide stubs for mingw
30242         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30243         * lib/getugroups.c (getugroups): Likewise.
30244         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30245         function.  Modernize replacement scheme.
30246         (gl_PREREQ_GETGROUPS): Delete.
30247         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30248         * modules/getgroups (configure.ac): Declare witness.
30249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30250         * modules/unistd (Depends-on): Substitute witness.
30251         * lib/unistd.in.h (getgroups): Declare replacement.
30252
30253         getgroups: avoid calling exit
30254         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30255         drop xalloc.
30256         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30257         dependencies.
30258         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30259         exiting, in the rare case of malloc failure.
30260
30261         getgroups: fix logic error
30262         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30263         has more than 20 groups.
30264         * modules/getgroups-tests: New test.
30265         * tests/test-getgroups.c: New file.
30266
30267 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30268
30269         * tests/test-base64.c: Improve.
30270
30271 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30272
30273         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30274         Blake <ebb9@byu.net>.
30275
30276 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30277
30278         * tests/test-xvasprintf.c: Add %s%s related checks.
30279
30280 2009-11-12  Eric Blake  <ebb9@byu.net>
30281
30282         version-etc: match standards.texi style
30283         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30284         and use <> only for URLs.
30285
30286 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30287
30288         fts: do not fail on a submount during traversal
30289         * lib/fts.c (fts_build): Read the stat info again after opening
30290         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30291         Original report at http://bugzilla.redhat.com/501848.
30292
30293 2009-11-12  Jim Meyering  <meyering@redhat.com>
30294
30295         bootstrap: sync from coreutils
30296         * build-aux/bootstrap (bootstrap_epilogue): New function.
30297         Use git_modules_config in one more place.  This make bootstrap's
30298         --gnulib-srcdir option more useful for testing.
30299
30300         bootstrap: generalize autoheader check
30301         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30302         AC_CONFIG_HEADERS.
30303
30304 2009-11-11  Eric Blake  <ebb9@byu.net>
30305
30306         mkfifoat: use new modules for Solaris and BSD bugs
30307         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30308         * lib/mkfifoat.c (mknodat): Split...
30309         * lib/mknodat.c (mknodat): ...into new file.
30310         * modules/mkfifoat (Files): Ship new file.
30311         (Depends-on): Add mkfifo, mknod.
30312         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30313         (Depends-on): Add symlink.
30314         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30315         redundant with test_mkfifo.h.
30316         (do_mkfifoat, do_mknodat): New helpers.
30317
30318         mknod: new module
30319         * modules/mknod: New file.
30320         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30321         * lib/mknod.c (mknod): Likewise.
30322         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30323         defaults.
30324         * modules/sys_stat (Makefile.am): Substitute them.
30325         * lib/sys_stat.in.h (mknod): Declare replacement.
30326         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30327         Document it.
30328         * doc/posix-functions/mknod.texi (mknod): Likewise.
30329         * modules/mknod-tests: New test.
30330         * tests/test-mknod.c: Likewise.
30331
30332         mkfifo: new module
30333         * modules/mkfifo: New file.
30334         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30335         * lib/mkfifo.c (mkfifo): Likewise.
30336         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30337         defaults.
30338         * modules/sys_stat (Makefile.am): Substitute them.
30339         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30340         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30341         Document it.
30342         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30343         * modules/mkfifo-tests: New test.
30344         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30345         from test-mkfifoat.c.
30346         * tests/test-mkfifo.c: New file.
30347
30348         readlink: detect FreeBSD bug
30349         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30350         slash on symlink.
30351         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30352         * tests/test-readlink.h (test_readlink): Enhance test.
30353
30354         symlink: detect FreeBSD bug
30355         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30356         slash on symlink.
30357         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30358         * tests/test-symlink.h (test_symlink): Enhance test.
30359
30360 2009-11-10  Eric Blake  <ebb9@byu.net>
30361
30362         link: detect FreeBSD bug
30363         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30364         symlink.
30365         * doc/posix-functions/link.texi (link): Document the bug.
30366         * tests/test-link.h (test_link): Enhance test.
30367         * tests/test-linkat.c (main): Update caller.
30368
30369         unlink, remove: detect FreeBSD bug
30370         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30371         slash on symlink.
30372         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30373         * doc/posix-functions/remove.texi (remove): Likewise.
30374         * tests/test-unlink.h (test_unlink): Enhance test.
30375         * tests/test-remove.c (main): Likewise.
30376
30377 2009-11-09  Eric Blake  <ebb9@byu.net>
30378
30379         rename: detect FreeBSD bug
30380         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30381         slash on symlink.
30382         * modules/renameat-tests (Depends-on): Add filenamecat.
30383         * tests/test-rename.h (test_rename): Allow one more errno.
30384         * tests/test-renameat.c (main): Likewise.
30385         * doc/posix-functions/rename.texi (rename): Document the bug.
30386
30387         open: detect FreeBSD bug
30388         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30389         symlink.
30390         * doc/posix-functions/open.texi (open): Document the bug.
30391         * doc/posix-functions/utimes.texi (utimes): Likewise.
30392         * tests/test-open.h (test_open): Add parameters, and test symlink
30393         handling.
30394         * tests/test-open.c (main): Adjust caller.
30395         * tests/test-fcntl-safer.c (main): Likewise.
30396         * modules/open-tests (Depends-on): Add stdbool, symlink.
30397         * modules/fcntl-safer-tests (Depends-on): Likewise.
30398         * tests/test-openat.c (main): Add test-open tests.
30399
30400         stat: detect FreeBSD bug
30401         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30402         symlink.
30403         * doc/posix-functions/stat.texi (stat): Document the bug.
30404         * tests/test-stat.h (test_stat_func): Add argument.
30405         * tests/test-stat.c (main): Adjust caller.
30406         * tests/test-fstatat.c (main): Likewise.
30407         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30408         Reported by Jim Meyering.
30409
30410 2009-11-09  James Youngman  <jay@gnu.org>
30411
30412         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30413         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30414
30415 2009-11-08  Jim Meyering  <meyering@redhat.com>
30416
30417         utimens: remove invalid futimesat call
30418         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30419         It used the file descriptor of the target file as the DIR_FD
30420         parameter and NULL as the file name.  That caused failure with
30421         errno == EFAULT on FreeBSD-8.0-rc2
30422
30423 2009-11-07  Eric Blake  <ebb9@byu.net>
30424
30425         fflush, freadseek: use fseeko, not fseek
30426         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30427         (clear_ungetc_buffer): Avoid potential problems on large files.
30428         * lib/freadseek.c (freadseek): Likewise.
30429         * modules/freadseek (Depends-on): Add fseeko.
30430         * modules/fseek (configure.ac): Set a witness.
30431         * tests/test-fflush.c (main): Use fseeko.
30432         * tests/test-fpurge.c (fseek): Disable link warning.
30433         * tests/test-freadable.c (fseek): Likewise.
30434         * tests/test-freading.c (fseek): Likewise.
30435         * tests/test-fseeko.c (fseek): Likewise.
30436         * tests/test-ftell.c (fseek): Likewise.
30437         * tests/test-ftello.c (fseek): Likewise.
30438         * tests/test-fwritable.c (fseek): Likewise.
30439         * tests/test-fwriting.c (fseek): Likewise.
30440
30441 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30442
30443         * modules/memchr (Depends-on): Drop getpagesize dependency.
30444
30445 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30446
30447         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30448         Reported by Ludovic Courtès.
30449         * build-aux/pmccabe2html: Improve example usage.
30450         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30451
30452 2009-11-06  Jim Meyering  <meyering@redhat.com>
30453
30454         do-release-commit-and-tag: New module.
30455         Automate the release-commit and tag process.
30456         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30457         * modules/do-release-commit-and-tag: New file.
30458         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30459
30460 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30461
30462         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30463         because test-select.c uses inet_pton.
30464
30465 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30466
30467         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30468         GETADDRINFO_LIB.  Bump serial number.
30469         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30470         Suggested by Eric Blake <ebb9@byu.net>.
30471
30472 2009-11-05  Eric Blake  <ebb9@byu.net>
30473
30474         strtod: detect darwin bug
30475         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30476         Reported by Leo Davis.
30477
30478         freopen-safer: new module
30479         * modules/freopen-safer: New module.
30480         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30481         * lib/freopen-safer.c (freopen_safer): New file.
30482         * lib/stdio-safer.h (freopen_safer): New declaration.
30483         * lib/stdio--.h (freopen): New override.
30484         * MODULES.html.sh (File stream based Input/Output): Mention it.
30485         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30486         freopen-safer module.
30487         * doc/posix-functions/stderr.texi (stderr): Likewise.
30488         * doc/posix-functions/stdin.texi (stdin): Likewise.
30489         * doc/posix-functions/stdout.texi (stdout): Likewise.
30490         * modules/freopen-safer-tests: New test.
30491         * tests/test-reopen-safer.c: New file.
30492
30493 2009-11-05  Jim Meyering  <meyering@redhat.com>
30494
30495         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30496         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30497
30498 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30499
30500         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30501
30502 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30503
30504         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30505
30506 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30507
30508         Fix link error.
30509         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30510         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30511
30512 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30513
30514         * tests/test-func.c: Also test value of __func__.
30515
30516 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30517
30518         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30519         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30520
30521 2009-11-05  Bruno Haible  <bruno@clisp.org>
30522
30523         Fix link error.
30524         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30525         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30526         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30527
30528 2009-11-05  Bruno Haible  <bruno@clisp.org>
30529
30530         Tests for module 'inet_pton'.
30531         * modules/inet_pton-tests: New file.
30532         * tests/test-inet_pton.c: New file.
30533
30534 2009-11-05  Bruno Haible  <bruno@clisp.org>
30535
30536         Tests for module 'inet_ntop'.
30537         * modules/inet_ntop-tests: New file.
30538         * tests/test-inet_ntop.c: New file.
30539
30540 2009-11-04  Eric Blake  <ebb9@byu.net>
30541
30542         stdlib-safer: wrap all mkstemp variants
30543         * modules/mkostemp (configure.ac): Set witness.
30544         * modules/mkostemps (configure.ac): Likewise.
30545         * modules/mkstemps (configure.ac): Likewise.
30546         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30547         (mkstemps_safer): Wrap more functions.
30548         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30549         wrapping.
30550         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30551         (mkstemps_safer): Implement the wrappers.
30552
30553         mkstemps, mkostemps: new modules
30554         * modules/mkostemps: New module.
30555         * modules/mkstemps: Likewise.
30556         * lib/mkostemps.c (mkostemps): New file.
30557         * lib/mkstemps.c (mkstemps): Likewise.
30558         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30559         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30561         * modules/stdlib (Makefile.am): Substitute them.
30562         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30563         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30564         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30565         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30566         * MODULES.html.sh (File system functions): Mention them.
30567
30568         tempname: resync from glibc
30569         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30570         same values for __GT_FILE as glibc.  Abort even when assertions
30571         are disabled.
30572         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30573         match its value otherwise.  Allow idempotent inclusion.
30574         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30575         * lib/mkostemp.c (mkostemp): Likewise.
30576         * lib/mkstemp.c (mkstemp): Likewise.
30577         * lib/tmpfile.c (tmpfile): Likewise.
30578         * NEWS: Document this.
30579
30580         utimens: fix use of futimens on older Linux
30581         * lib/utimens.c (fdutimens): Use updated, rather than original,
30582         timespec to avoid bug in older Linux kernel.
30583         Reported by Simon Josefsson.
30584
30585 2009-11-04  Bruno Haible  <bruno@clisp.org>
30586
30587         Make num_processors more flexible and consistent.
30588         * lib/nproc.h (enum nproc_query): New type.
30589         (num_processors): Add a 'query' argument.
30590         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30591         (num_processors): Add a 'query' argument. Test the value of the
30592         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30593         mingw, count the number of CPUs available for the current process.
30594         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30595         Check for sched_getaffinity and sched_getaffinity_np.
30596         * modules/nproc (Depends-on): Add c-ctype, extensions.
30597         * NEWS: Mention the change.
30598
30599 2009-11-03  Bruno Haible  <bruno@clisp.org>
30600
30601         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30602
30603 2009-11-03  Jim Meyering  <meyering@redhat.com>
30604
30605         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30606         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30607         if it is defined.
30608
30609 2009-11-02  Eric Blake  <ebb9@byu.net>
30610
30611         mktime, timegm: share common declaration
30612         * lib/mktime-internal.h: New file.
30613         * lib/mktime.c: Use it rather than open-coding a declaration.
30614         * lib/timegm.c: Likewise.
30615         * modules/mktime (Files): Ship it.
30616         * modules/timegm (Files): Likewise.
30617         Suggested by Bruno Haible.
30618
30619         test-update-copyright: update test to match script changes
30620         * tests/test-update-copyright.sh: Avoid hard-coding perl
30621         location.  Don't update *.bak created by earlier runs.
30622
30623 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30624             Simon Josefsson  <simon@josefsson.org>
30625             Bruno Haible  <bruno@clisp.org>
30626
30627         Fix link error on Solaris 8.
30628         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30629         also in libnsl. Define also INET_PTON_LIB.
30630         * modules/inet_pton (Link): New section.
30631
30632 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30633             Bruno Haible  <bruno@clisp.org>
30634
30635         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30636         * modules/inet_ntop (Link): New section.
30637         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30638
30639 2009-11-02  Eric Blake  <ebb9@byu.net>
30640
30641         maint: avoid compiler warnings in m4 macros
30642         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30643         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30644
30645 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30646
30647         * m4/pmccabe2html.m4: Remove file.
30648         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30649         function.  Change maintainer.
30650         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30651         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30652         Courtès).
30653
30654 2009-10-31  Eric Blake  <ebb9@byu.net>
30655
30656         fseeko: fix m4 regression
30657         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30658         regression from 2009-10-27.
30659         Reported by Ralf Wildenhues.
30660
30661 2009-10-31  Jim Meyering  <meyering@redhat.com>
30662
30663         inttostr: aesthetics and improved (compile-time) safety
30664         Define inttype_is_signed rather than inttype_is_unsigned,
30665         since the sole use is via "#if inttype_is_signed".
30666         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30667         inttype_is_unsigned.
30668         * lib/offtostr.c (inttype_is_signed): Likewise.
30669         * lib/uinttostr.c (inttype_is_signed): Likewise.
30670         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30671         * lib/inttostr.c (inttostr): Use verify to cross-check the
30672         inttype_is_signed value and the signedness of the actual type.
30673         * modules/inttostr (Depends-on): Add verify.
30674
30675 2009-10-30  Eric Blake  <ebb9@byu.net>
30676
30677         build: avoid compiler warnings
30678         * lib/fchmodat.c (lchmod): Mark unused variables.
30679         * lib/getopt.c (_getopt_initialize): Likewise.
30680         * lib/mktime.c (__mktime_internal): Provide prototype.
30681         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30682         older gcc that do not understand #pragma GCC diagnostic.
30683         * lib/uinttostr.c (inttype_is_unsigned): Define.
30684         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30685
30686 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30687
30688         stat: fix compilation on AIX
30689         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30690         only see struct stat64.
30691
30692 2009-10-30  Eric Blake  <ebb9@byu.net>
30693
30694         exclude: make more robust
30695         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30696         rather than masking a coding bug.
30697         Suggested by Bruno Haible.
30698
30699 2009-10-30  Jim Meyering  <meyering@redhat.com>
30700
30701         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30702         Rather than putting #!/usr/bin/perl on the first line,
30703         start with a variant of what's recommended by "man perlrun" that
30704         invokes the first "perl" program from your shell's search path.
30705         * build-aux/gitlog-to-changelog: Replace #!... as above.
30706         Add a "Local Variables" perl mode setting.
30707         Prompted by a patch from Ludovic Courtès.
30708         Improved by Eric Blake.
30709         * build-aux/useless-if-before-free: Likewise.
30710         * build-aux/announce-gen: Likewise.
30711         * build-aux/update-copyright: Likewise.
30712
30713 2009-10-29  Eric Blake  <ebb9@byu.net>
30714
30715         filenamecat-lgpl: adjust clients
30716         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30717         filenamecat.
30718         * modules/renameat (Depends-on): Likewise.
30719
30720         filenamecat: split into filenamecat-lgpl
30721         * modules/filenamecat-lgpl: New module.
30722         * modules/filenamecat (Files): Move library-safe files into
30723         filenamecat-lgpl.
30724         (Depends-on): Add filenamecat-lgpl.
30725         (configure.ac): Declare witness.
30726         * lib/filenamecat.h (file_name_concat): Only declare when using
30727         GPL module.
30728         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30729         Move...
30730         * lib/filenamecat-lgpl.c: ...into new file.
30731         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30732         (gl_FILE_NAME_CONCAT): Use it.
30733         * MODULES.html.sh (File system functions): Mention new module.
30734
30735         argp: avoid memory leak
30736         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30737         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30738         base_name, since the latter malloc()s and can call exit().
30739         Leak introduced 2006-07-03.
30740
30741         dirname-lgpl: adjust clients that don't need full dirname
30742         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30743         * modules/filenamecat (Depends-on): Likewise.
30744         * modules/linkat (Depends-on): Likewise.
30745         * modules/mkancesdirs (Depends-on): Likewise.
30746         * modules/mkdir (Depends-on): Likewise.
30747         * modules/openat (Depends-on): Likewise.
30748         * modules/savewd (Depends-on): Likewise.
30749         * modules/rename (Depends-on): Likewise.
30750         (License): Relax license.
30751         * modules/mkdir-tests (Depends-on): Drop progname.
30752         (Makefile.am): Delete unneeded LDADD.
30753         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30754
30755         dirname: split into dirname-lgpl
30756         * modules/dirname-lgpl: New module.
30757         * modules/dirname (Files): Move library-safe files into
30758         dirname-lgpl.
30759         (Depends-on): Add dirname-lgpl.
30760         (configure.ac): Declare witness.
30761         * modules/double-slash-root (License): Relax license.
30762         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30763         module.
30764         * lib/dirname.c (dir_len, mdir_name): Move...
30765         * lib/dirname-lgpl.c: ...into new file.
30766         * lib/basename.c (last_component, base_len): Move...
30767         * lib/basename-lgpl.c: ...into new file.
30768         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30769         (gl_DIRNAME): Use it.
30770         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30771         Mention new module.
30772         * modules/dirname-tests (Depends-on): Add progname.
30773         * tests/test-dirname.c (program_name): Delete.
30774
30775         mkdir: make safe for libraries
30776         * modules/mkdir (Depends-on): Drop xalloc.
30777         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30778         exit.
30779
30780         tests: avoid some compiler warnings
30781         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30782         literals.
30783         * tests/test-memchr.c (main): Avoid type mismatch.
30784         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30785         * tests/test-base64.c (main): Likewise.
30786         * tests/test-getdelim.c (main): Likewise.
30787         * tests/test-gethostname.c (main): Likewise.
30788         * tests/test-getline.c (main): Likewise.
30789         * tests/test-netinet_in.c (main): Likewise.
30790         * tests/test-select.c (open_server_socket, main): Likewise.
30791         * tests/test-select-stdin.c (main): Likewise.
30792         * tests/test-sockets.c (main): Likewise.
30793         * tests/test-strsignal.c (main): Likewise.
30794         * tests/test-sys_select.c (main): Likewise.
30795         * tests/test-sys_socket.c (main): Likewise.
30796         * tests/test-u64.c (main): Likewise.
30797         * tests/test-xfprintf-posix.c (main): Likewise.
30798         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30799
30800         sockets: avoid compiler warning
30801         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30802
30803         maint: detect usage(1) and other suspicious exits
30804         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30805
30806 2009-10-29  Jim Meyering  <meyering@redhat.com>
30807
30808         timespec: long-to-int truncation could make timespec_cmp malfunction
30809         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30810         a multiple of 2^32 nanoseconds as no difference.
30811
30812 2009-10-28  Jim Meyering  <meyering@redhat.com>
30813
30814         fprintftime: wrap macro code argument in "do {...} while(0)"
30815         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30816         cpy macro must be a statement that can be followed by a semicolon.
30817         Now that the else clause contains a comment and is hence longer
30818         than one line, I require curly braces.  That in turn requires
30819         that we wrap this code block in the standard do...while(0).
30820
30821         fprintftime: remove stray semicolon from previous change
30822         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30823
30824         fprintftime: avoid a warning about ignored fwrite return value
30825         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30826         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30827         that is unsafe.
30828         * modules/fprintftime (Depends-on): Add ignore-value.
30829
30830         exclude: avoid an unwarranted warning
30831         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30832
30833 2009-10-27  Eric Blake  <ebb9@byu.net>
30834
30835         fseek: avoid compilation failure when fflush is replaced
30836         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30837         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30838         module is in use.
30839         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30840         module is not in use; since REPLACE_FSEEK worked otherwise.
30841         (GNULIB_FTELLO): Likewise for ftell.
30842         Reported by Ian Beckwith and others.
30843
30844 2009-10-27  Bruno Haible  <bruno@clisp.org>
30845
30846         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30847         Reported by Jim Meyering.
30848
30849 2009-10-27  Jim Meyering  <jim@meyering.net>
30850             Bruno Haible  <bruno@clisp.org>
30851
30852         Avoid warning despite dropping the return value of fwrite.
30853         * lib/unicodeio.c: Include ignore-value.h.
30854         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30855         * modules/unicodeio (Depends-on): Add ignore-value.
30856
30857 2009-10-26  Eric Blake  <ebb9@byu.net>
30858
30859         areadlinkat: fix fallback path
30860         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30861         pointer and zero.
30862
30863 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30864
30865         Use a better IO block size for modern systems
30866         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30867         * lib/md2.c: Likewise.
30868         * lib/md4.c: Likewise.
30869         * lib/md5.c: Likewise.
30870         * lib/sha1.c: Likewise.
30871         * lib/sha256.c: Likewise.
30872         * lib/sha512.c: Likewise.
30873
30874 2009-10-22  Eric Blake  <ebb9@byu.net>
30875
30876         tests: avoid several compiler warnings
30877         * tests/test-getcwd.c (main): Avoid buffer underflow.
30878         * tests/test-getdate.c (main): String literals are not safe with
30879         putenv, so use setenv.  Declare unused argument.
30880         * modules/getdate-tests (Depends-on): Add setenv.
30881         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30882         problems with string literals in char *.
30883         * tests/test-hash.c (main): Avoid shadowing declaration.
30884         (insert_new): Treat string literals as char const *.
30885         * tests/test-getopt.h (test_getopt): Likewise.
30886         (getopt_loop): Alter types to minimize casting elsewhere.
30887         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30888         (test_getopt_long_posix): Likewise.
30889         (do_getopt_long): Add wrapper to minimize casting.
30890         * tests/test-atexit.c (clear_temp_file): Use void.
30891         * tests/test-areadlink-with-size.c (main): Declare unused
30892         arguments.
30893         * tests/test-areadlink.c (main): Likewise.
30894         * tests/test-areadlinkat-with-size.c (main): Likewise.
30895         * tests/test-areadlinkat.c (main): Likewise.
30896         * tests/test-canonicalize-lgpl.c (main): Likewise.
30897         * tests/test-canonicalize.c (main): Likewise.
30898         * tests/test-dirent-safer.c (main): Likewise.
30899         * tests/test-dirname.c (main): Likewise.
30900         * tests/test-dup2.c (main): Likewise.
30901         * tests/test-fchdir.c (main): Likewise.
30902         * tests/test-fcntl-h.c (main): Likewise.
30903         * tests/test-fcntl-safer.c (main): Likewise.
30904         * tests/test-fdopendir.c (main): Likewise.
30905         * tests/test-fdutimensat.c (main): Likewise.
30906         * tests/test-fflush.c (main): Likewise.
30907         * tests/test-filenamecat.c (main): Likewise.
30908         * tests/test-filevercmp.c (main): Likewise.
30909         * tests/test-fopen-safer.c (main): Likewise.
30910         * tests/test-fopen.c (main): Likewise.
30911         * tests/test-fpending.c (main): Likewise.
30912         * tests/test-fpurge.c (main): Likewise.
30913         * tests/test-freading.c (main): Likewise.
30914         * tests/test-fstatat.c (main): Likewise.
30915         * tests/test-fsync.c (main): Likewise.
30916         * tests/test-futimens.c (main): Likewise.
30917         * tests/test-getndelim2.c (main): Likewise.
30918         * tests/test-gettimeofday.c (main): Likewise.
30919         * tests/test-getopt.c (main): Likewise.
30920         * tests/test-i-ring.c (main): Likewise.
30921         * tests/test-inttypes.c (main): Likewise.
30922         * tests/test-link.c (main): Likewise.
30923         * tests/test-lstat.c (main): Likewise.
30924         * tests/test-math.c (main): Likewise.
30925         * tests/test-md5.c (main): Likewise.
30926         * tests/test-memchr2.c (main): Likewise.
30927         * tests/test-memrchr.c (main): Likewise.
30928         * tests/test-mkdir.c (main): Likewise.
30929         * tests/test-mkdirat.c (main): Likewise.
30930         * tests/test-mkfifoat.c (main): Likewise.
30931         * tests/test-open.c (main): Likewise.
30932         * tests/test-openat-safer.c (main): Likewise.
30933         * tests/test-openat.c (main): Likewise.
30934         * tests/test-quotearg.c (main): Likewise.
30935         * tests/test-rawmemchr.c (main): Likewise.
30936         * tests/test-readlink.c (main): Likewise.
30937         * tests/test-remove.c (main): Likewise.
30938         * tests/test-rename.c (main): Likewise.
30939         * tests/test-renameat.c (main): Likewise.
30940         * tests/test-rmdir.c (main): Likewise.
30941         * tests/test-sha1.c (main): Likewise.
30942         * tests/test-signal.c (main): Likewise.
30943         * tests/test-sigaction.c (main): Likewise.
30944         * tests/test-stat.c (main): Likewise.
30945         * tests/test-stat-time.c (main): Likewise.
30946         * tests/test-stddef.c (main): Likewise.
30947         * tests/test-stdint.c (main): Likewise.
30948         * tests/test-stdio.c (main): Likewise.
30949         * tests/test-stdlib.c (main): Likewise.
30950         * tests/test-strchrnul.c (main): Likewise.
30951         * tests/test-strerror.c (main): Likewise.
30952         * tests/test-string.c (main): Likewise.
30953         * tests/test-strtod.c (main): Likewise.
30954         * tests/test-strverscmp.c (main): Likewise.
30955         * tests/test-symlink.c (main): Likewise.
30956         * tests/test-symlinkat.c (main): Likewise.
30957         * tests/test-sys_stat.c (main): Likewise.
30958         * tests/test-sys_time.c (main): Likewise.
30959         * tests/test-time.c (main): Likewise.
30960         * tests/test-unistd.c (main): Likewise.
30961         * tests/test-unlink.c (main): Likewise.
30962         * tests/test-unlinkat.c (main): Likewise.
30963         * tests/test-utimens.c (main): Likewise.
30964         * tests/test-utimensat.c (main): Likewise.
30965         * tests/test-version-etc.c (main): Likewise.
30966         * tests/test-wchar.c (main): Likewise.
30967         * tests/test-wctype.c (main): Likewise.
30968         * tests/test-xprintf-posix.c (main): Likewise.
30969         * tests/test-posixtm.c (main): Likewise.
30970         (STREQ): Delete unused macro.
30971         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30972         shadowed variables.
30973         * tests/test-memchr.c (main): Likewise.
30974
30975 2009-10-21  Eric Blake  <ebb9@byu.net>
30976
30977         areadlinkat: avoid failure on older glibc
30978         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30979         rather than mis-comparing 0 against FUNC_RESULT of char*.
30980
30981 2009-10-21  Bruno Haible  <bruno@clisp.org>
30982
30983         * modules/stpncpy (License): Relicense under LGPLv2+.
30984         Reported by David Lutterkort <lutter@redhat.com>.
30985
30986 2009-10-20  Eric Blake  <ebb9@byu.net>
30987
30988         utimensat: work around Solaris 9 bug
30989         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30990         has trailing slash bugs.
30991         * tests/test-lutimens.h (test_lutimens): Enhance test.
30992         * tests/test-utimens.h (test_utimens): Likewise.
30993         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30994         * doc/posix-functions/utimes.texi (utimes): Likewise.
30995         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30996         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30997         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30998         * doc/posix-functions/futimens.texi (futimens): Likewise.
30999
31000         fdutimensat: new module
31001         * modules/fdutimensat: New file.
31002         * lib/fdutimensat.c (fdutimensat): Likewise.
31003         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31004         * MODULES.html.sh (File system functions): Mention module.
31005         * modules/fdutimensat-tests: New test.
31006         * tests/test-fdutimensat.c: Likewise.
31007
31008         doc: regenerate INSTALL
31009         * doc/INSTALL: Reflect recent autoconf update.
31010         * doc/INSTALL.ISO: Likewise.
31011         * doc/INSTALL.UTF-8: Likewise.
31012
31013 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31014
31015         acl: warn if ACL support is not detected
31016         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31017
31018 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31019
31020         * lib/nproc.h: Add extern "C" block for C++.
31021
31022 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31023             Bruno Haible  <bruno@clisp.org>
31024
31025         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31026         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31027         * doc/posix-functions/isalpha.texi: Likewise.
31028         * doc/posix-functions/isblank.texi: Likewise.
31029         * doc/posix-functions/iscntrl.texi: Likewise.
31030         * doc/posix-functions/isdigit.texi: Likewise.
31031         * doc/posix-functions/isgraph.texi: Likewise.
31032         * doc/posix-functions/islower.texi: Likewise.
31033         * doc/posix-functions/isprint.texi: Likewise.
31034         * doc/posix-functions/ispunct.texi: Likewise.
31035         * doc/posix-functions/isspace.texi: Likewise.
31036         * doc/posix-functions/isupper.texi: Likewise.
31037         * doc/posix-functions/isxdigit.texi: Likewise.
31038
31039 2009-10-18  Bruno Haible  <bruno@clisp.org>
31040
31041         Tests for module 'isblank'.
31042         * modules/isblank-tests: New file.
31043         * tests/test-isblank.c: New file.
31044
31045         New module 'isblank'.
31046         * lib/isblank.c: New file.
31047         * m4/isblank.m4: New file.
31048         * modules/isblank: New file.
31049         * doc/posix-functions/isblank.texi: Mention the new module.
31050
31051 2009-10-18  Bruno Haible  <bruno@clisp.org>
31052
31053         New module 'ctype'.
31054         * lib/ctype.in.h: New file.
31055         * m4/ctype.m4: New file.
31056         * modules/ctype: New file.
31057         * doc/posix-headers/ctype.texi: Mention the new module.
31058
31059 2009-10-18  Jim Meyering  <meyering@redhat.com>
31060
31061         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31062         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31063         right after its initialization, rather than farther down.
31064         Keeping these in close proximity makes it easier to ensure
31065         that each such variable is initialized.  E.g.,
31066
31067             LIB_CLOCK_GETTIME=
31068             AC_SUBST([LIB_CLOCK_GETTIME])
31069
31070         This change also increments these serial numbers.
31071         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31072         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31074
31075 2009-10-18  Bruno Haible  <bruno@clisp.org>
31076
31077         Don't let environment variables perturb build.
31078         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31079         (gl_PREREQ_GETHRXTIME): ... not here.
31080
31081 2009-10-18  Bruno Haible  <bruno@clisp.org>
31082
31083         Avoid symlink attack in localcharset module.
31084         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31085         (O_NOFOLLOW): Define fallback.
31086         (get_charset_aliases): Don't open the file if it is a symbolic link.
31087         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31088         gl_FCNTL_H.
31089         (gl_FCNTL_H): Require it.
31090         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31091         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31092         Reported by Fergal Glynn <fglynn@veracode.com>.
31093
31094 2009-10-18  Bruno Haible  <bruno@clisp.org>
31095
31096         Implement nproc for mingw.
31097         * lib/nproc.c: Include <windows.h>
31098         (num_processors): On native Windows platforms, try GetSystemInfo.
31099
31100 2009-10-18  Bruno Haible  <bruno@clisp.org>
31101
31102         Implement nproc for IRIX.
31103         * lib/nproc.c: Include <sys/sysmp.h>.
31104         (num_processors): On IRIX systems, try sysmp.
31105         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31106
31107 2009-10-18  Bruno Haible  <bruno@clisp.org>
31108
31109         Implement nproc for HP-UX.
31110         * lib/nproc.c: Include <sys/pstat.h>
31111         (num_processors): On HP-UX systems, try pstat_getdynamic.
31112         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31113         pstat_getdynamic.
31114
31115 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31116             Bruno Haible  <bruno@clisp.org>
31117
31118         Implement nproc for NetBSD, OpenBSD.
31119         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31120         (ARRAY_SIZE): New macro.
31121         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31122         * m4/nproc.m4: New file.
31123         * modules/nproc (Files): Add m4/nproc.m4.
31124         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31125         (Makefile.am): Instead, augment lib_SOURCES.
31126
31127 2009-10-18  Bruno Haible  <bruno@clisp.org>
31128
31129         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31130         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31131         sys/param.h.
31132
31133 2009-10-16  Eric Blake  <ebb9@byu.net>
31134
31135         utimensat: new module
31136         * modules/utimensat: New file.
31137         * lib/utimensat.c (utimensat): Likewise.
31138         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31139         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31140         so we can work around Linux bugs.
31141         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31142         * modules/sys_stat (Makefile.am): Substitute them.
31143         * lib/sys_stat.in.h (utimensat): Declare it.
31144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31145         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31146         * modules/utimensat-tests: New test.
31147         * tests/test-utimensat.c: Likewise.
31148
31149         utimens: let lutimens work on non-symlinks
31150         * lib/utimens.c (lutimens): Fall back to utimens rather than
31151         failing with ENOSYS, when file is not a symlink.
31152         (utimens): Reduce redirection.
31153         * tests/test-lutimens.h (test_lutimens): Update test to cover
31154         non-symlinks.
31155         * tests/test-utimens.h (test_utimens): Update test to cover
31156         symlinks.
31157         * tests/test-utimens.c (main): Update caller.
31158
31159         utimens: cache whether utimensat syscall works
31160         * lib/utimens.c (utimensat_works_really): New cache variable.
31161         (fdutimens, lutimens): Use it to avoid failing syscall.
31162
31163         test-stat-time, test-utimens: improve portability
31164         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31165         ext4 on alpha, and for cygwin.
31166         * tests/test-utimens-common.h: New file.
31167         (nap): Factor delays into single function.
31168         * tests/test-lutimens.h (test_lutimens): Use new header.
31169         * tests/test-futimens.h (test_futimens): Likewise.
31170         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31171         timestamps to occur from same machine, as was done previously for
31172         test_utimens.
31173         * modules/utimens-tests (Files): Ship new file.
31174         * modules/futimens-tests (Files): Likewise.
31175         Reported in part by Jim Meyering.
31176
31177         sys_stat: sort replacement declarations
31178         * lib/sys_stat.in.h: Sort declarations.
31179         * lib/futimens.c (futimens): Fix typo.
31180
31181 2009-10-15  Jim Meyering  <meyering@redhat.com>
31182
31183         don't let environment settings perturb build
31184         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31185         could cause a configure-time and/or build-time malfunction.
31186         Typically, a configure-time function-in-library test is performed
31187         via code like this:
31188
31189           LIB_VAR=
31190           AC_SUBST([LIB_VAR])
31191           prefix_saved_LIBS=$LIBS
31192             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31193                        [test "$ac_cv_search_FUNC" = "none required" ||
31194                         LIB_VAR=$ac_cv_search_FUNC])
31195           LIBS=$prefix_saved_LIBS
31196
31197         However, in each of the files affected by this change, the LIB_VAR=
31198         initialization was omitted.  Thus, when set in the environment, its
31199         value would propagate into generated Makefiles when FUNC is not found
31200         in LIB_NAME.
31201         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31202         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31204
31205 2009-10-14  Eric Blake  <ebb9@byu.net>
31206
31207         fchdir: avoid infinite recursion in mingw
31208         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31209         recursing.
31210
31211         test-stat-time: port to mingw
31212         * tests/test-stat-time.c (force_unlink): Return a value.
31213         (test_ctime) [W32]: Fix compilation error.
31214         (nap): Don't call usleep with too large an argument.  Use
31215         force_unlink.
31216         * doc/pastposix-functions/usleep.texi (usleep): Document the
31217         portability issue.
31218
31219 2009-10-13  Jim Meyering  <meyering@redhat.com>
31220
31221         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31222         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31223         * modules/pipe-filter-ii: Likewise.
31224         * modules/sys_socket-tests: Likewise.
31225         * modules/tsearch-tests: Likewise.
31226         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31227         (check): Depend on it.
31228
31229 2009-10-12  Eric Blake  <ebb9@byu.net>
31230
31231         utimens-tests: port to NFS file systems
31232         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31233         comparisons to avoid spurious failures from timestamp drift
31234         between NFS machines.
31235
31236 2009-10-12  Eric Blake  <ebb9@byu.net>
31237
31238         stat-time-tests: minor cleanups
31239         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31240         * tests/test-stat-time.c (nap): Separate assignment from call.
31241         Suggested by Paolo Bonzini and Bruno Haible.
31242
31243         sys_stat: guarantee struct timespec
31244         * lib/sys_stat.in.h (includes): Always include <time.h>
31245         * modules/sys_stat (Depends-on): Add time.
31246         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31247         mode_t permission values.
31248         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31249         get at subsecond timestamps.
31250
31251 2009-10-10  Eric Blake  <ebb9@byu.net>
31252
31253         futimens: new module
31254         * modules/futimens: New file.
31255         * lib/futimens.c (futimens): Likewise.
31256         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31257         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31258         we can work around Linux bugs.
31259         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31260         * modules/sys_stat (Makefile.am): Substitute them.
31261         * lib/sys_stat.in.h (futimens): Declare it.
31262         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31263         * doc/posix-functions/futimens.texi (futimens): Likewise.
31264         * modules/futimens-tests: New test.
31265         * tests/test-futimens.c: Likewise.
31266
31267         utimens: introduce fdutimens
31268         * lib/utimens.h (fdutimens): New prototype.
31269         * lib/utimens.c (gl_futimens): Move guts...
31270         (fdutimens): ...to new interface.
31271         * tests/test-utimens.c (do_fdutimens): Use it.
31272
31273         utimens: add UTIME_NOW and UTIME_OMIT support
31274         * lib/utimens.c (validate_timespec, update_timespec): New helper
31275         functions.
31276         (gl_futimens, lutimens): Use them.
31277         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31278         stdbool, sys_stat.
31279         (Link): Mention resulting library dependency.
31280         * modules/utimecmp (Link): Likewise.
31281         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31282         (Makefile.am): Pick up library dependency.
31283         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31284         definition.
31285         * tests/test-sys_stat.c: Test the definitions.
31286         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31287         * NEWS: Document library dependency.
31288
31289         utimecmp: support symlink timestamps
31290         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31291         hashing when possible.  Use pathconf when available.
31292         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31293         * modules/utimecmp (Depends-on): Add lstat.
31294
31295         utimens: add lutimens interface
31296         * lib/utimens.c (lutimens): New function.
31297         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31298         * lib/utimens.h (lutimens): Declare new interface.
31299         * tests/test-utimens.c (main): Enhance test.
31300         * tests/test-lutimens.h (test_lutimens): New file.
31301         * modules/utimens-tests (Files): Distribute it.
31302         (Depends-on): Add symlink.
31303         (configure.ac): Check for usleep.
31304
31305         utimens: validate futimens usage
31306         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31307         fewer syscalls on failure later on.  Avoid compiler warning on
31308         mingw.
31309         * modules/utimens (Depends-on): Add dup2.
31310
31311         utimens: add test
31312         * modules/utimens-tests: New test.
31313         * tests/test-utimens.h: New file.
31314         * tests/test-futimens.h: Likewise.
31315         * tests/test-utimens.c: Likewise.
31316
31317         doc: mention timestamp portability issues
31318         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31319         instead.
31320         * doc/posix-functions/utime.texi (utime): Likewise.
31321         * doc/posix-functions/utimes.texi (utimes): Likewise.
31322         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31323         instead.
31324         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31325         module.
31326         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31327         Mention weakness with symlink timestamps.
31328         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31329         to utimensat/futimens instead.
31330         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31331
31332         test-dup2: enhance test
31333         * tests/test-dup2.c (main): Also check AT_FDCWD.
31334
31335         test-stat-time: avoid more spurious failures
31336         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31337         xfs; and avoid race if the two timestamps cross quantization edge.
31338
31339         relocatable: prefer 'file system' over 'filesystem'
31340         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31341         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31342         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31343         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31344         * lib/relocatable.c (compute_curr_prefix): Likewise.
31345
31346 2009-10-10  Jim Meyering  <meyering@redhat.com>
31347
31348         stat-time-tests: check for the usleep function
31349         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31350
31351 2009-10-10  Bruno Haible  <bruno@clisp.org>
31352
31353         * modules/xnanosleep: Put the Link section after the Include section.
31354
31355 2009-10-09  Eric Blake  <ebb9@byu.net>
31356
31357         dup2: work around FreeBSD 6.1 bug
31358         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31359         * doc/posix-functions/dup2.texi (dup2): Document it.
31360         Reported by Nelson H. F. Beebe and Jim Meyering.
31361
31362         test-stat-time: port to buggy NFS clients
31363         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31364         (test_ctime): Also skip test if mtime and ctime are skewed.
31365
31366         maint: prefer 'file system' over 'filesystem'
31367         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31368         * doc/posix-functions/lstat.texi (lstat): Likewise.
31369         * lib/file-has-acl.c (file_has_acl): Likewise.
31370         * lib/fwriteerror.c [TEST]: Likewise.
31371         * tests/test-areadlink.h (test_areadlink): Likewise.
31372         * tests/test-areadlinkat-with-size.c (main): Likewise.
31373         * tests/test-areadlinkat.c (main): Likewise.
31374         * tests/test-canonicalize-lgpl.c (main): Likewise.
31375         * tests/test-canonicalize.c (main): Likewise.
31376         * tests/test-fstatat.c (main): Likewise.
31377         * tests/test-linkat.c (main): Likewise.
31378         * tests/test-lstat.h (test_lstat_func): Likewise.
31379         * tests/test-mkdir.h (test_mkdir): Likewise.
31380         * tests/test-readlink.h (test_readlink): Likewise.
31381         * tests/test-remove.c (main): Likewise.
31382         * tests/test-rename.h (test_rename): Likewise.
31383         * tests/test-renameat.c (main): Likewise.
31384         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31385         * tests/test-symlink.h (test_symlink): Likewise.
31386         * tests/test-symlinkat.c (main): Likewise.
31387         * tests/test-unlink.h (test_unlink_func): Likewise.
31388         * tests/test-unlinkat.c (main): Likewise.
31389
31390         maint: make realtime library usage explicit
31391         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31392         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31393         * modules/settime (Link): Likewise.
31394         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31395
31396         test-stat-time: speed up execution
31397         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31398         warning on mingw.
31399         (nap): New helper function.
31400         (prepare_test): Use it to reduce sleep time.
31401         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31402         execution.
31403         * modules/stat-time-tests (configure.ac): Check for usleep.
31404
31405 2009-10-09  Jim Meyering  <meyering@redhat.com>
31406
31407         selinux-h: always use getfilecon wrappers
31408         * lib/getfilecon.c: New file.
31409         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31410         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31411         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31412         (fgetfilecon): Provide a stub.
31413         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31414         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31415         file unconditionally.
31416         When <selinux/selinux.h> is found, arrange to use wrappers.
31417         * modules/selinux-h (Files): Add getfilecon.c.
31418         (Makefile.am): Substitute include-next-related bits
31419         into the now-always-generated selinux/selinux.h file.
31420         * doc/glibc-functions/lgetfilecon.texi: New file.
31421         * doc/glibc-functions/fgetfilecon.texi: New file.
31422         * doc/glibc-functions/getfilecon.texi: New file.
31423         * doc/glibc-functions/getfilecon-desc.texi: New file.
31424         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31425         which to pull in the new files.
31426         * MODULES.html.sh (Misc): Add selinux-h.
31427
31428 2009-10-08  Jim Meyering  <meyering@redhat.com>
31429
31430         unistd: fix comment typo
31431         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31432
31433 2009-10-08  Eric Blake  <ebb9@byu.net>
31434
31435         areadlink: use SIZE_MAX consistently
31436         * modules/areadlink (Depends-on): Add stdint.
31437         * modules/areadlink-with-size (Depends-on): Likewise.
31438         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31439         gives NULL; drop sys/types, since unistd gives size_t; and add
31440         stdint for SIZE_MAX.
31441         (SIZE_MAX): Rely on headers.
31442         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31443         and add stdint.
31444         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31445         (SIZE_MAX): Likewise.
31446         (INITIAL_BUF_SIZE): Turn into enum.
31447         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31448
31449 2009-10-08  Jim Meyering  <meyering@redhat.com>
31450
31451         areadlinkat: avoid compilation failure
31452         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31453         Fix typo in comment.
31454
31455 2009-10-07  Eric Blake  <ebb9@byu.net>
31456
31457         areadlinkat-with-size: new module
31458         * modules/areadlinkat-with-size: New module.
31459         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31460         * lib/areadlink.h (areadlinkat): Declare it.
31461         * MODULES.html.sh (File system functions): Mention it.
31462         * modules/areadlinkat-with-size-tests: New test.
31463         * tests/test-areadlinkat-with-size.c: New file.
31464
31465         xreadlinkat: new module
31466         * modules/xreadlinkat: New module.
31467         * lib/xreadlinkat.c (xreadlinkat): New file.
31468         * lib/xreadlink.h (xreadlinkat): Declare it.
31469         * MODULES.html.sh (File system functions): Mention it.
31470
31471         areadlinkat: new module
31472         * lib/at-func.c (FUNC_FAIL): New define.
31473         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31474         * modules/areadlinkat: New module.
31475         * lib/linkat.c (areadlinkat): Move...
31476         * lib/areadlinkat.c (areadlinkat): ...to new file.
31477         * lib/areadlink.h (areadlinkat): Declare it.
31478         * modules/linkat (Depends-on): Add areadlinkat.
31479         * MODULES.html.sh (File system functions): Mention it.
31480         * modules/areadlinkat-tests: New test.
31481         * tests/test-areadlinkat.c: New file.
31482
31483         areadlink, areadlink-with-size: add tests
31484         * modules/areadlink-tests: New test.
31485         * modules/areadlink-with-size-tests: Likewise.
31486         * tests/test-areadlink.h: New file.
31487         * tests/test-areadlink.c: Likewise.
31488         * tests/test-areadlink-with-size.c: Likewise.
31489
31490         maint: minor cleanups
31491         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31492         _UNUSED_PARAMETER_ instead.
31493         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31494         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31495         * modules/linkat-tests (Files): Distribute test-link.h.
31496
31497         openat, utimens: whitespace cleanup
31498         * lib/openat.c: Prefer space throughout, rather than mix of 8
31499         spaces vs. tabs.
31500         * lib/at-func.c: Likewise.
31501         * lib/utimens.c: Likewise.
31502
31503         openat: avoid using wrong fd
31504         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31505         working directory chooses same fd.
31506         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31507
31508         mkdir, mkdirat: fix cygwin 1.5.x bug
31509         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31510         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31511         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31512         bug.
31513         (gl_PREREQ_MKDIR): Delete unused macro.
31514         * modules/mkdir (Files): Track file rename.
31515         (configure.ac): Update macro name.
31516         * modules/openat (Depends-on): Add mkdir.
31517         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31518
31519         mkdir, mkdirat: add tests
31520         * modules/mkdir-tests: New test.
31521         * tests/test-mkdir.h: New file.
31522         * tests/test-mkdir.c: Likewise.
31523         * tests/test-mkdirat.c: Likewise.
31524         * modules/openat-tests (Files): Add new files.
31525         (Makefile.am): Run new test.
31526
31527 2009-10-06  Eric Blake  <ebb9@byu.net>
31528
31529         doc: tweak *at function documentation
31530         * doc/posix-functions/faccessat.texi (faccessat): Mention
31531         known issue with replacement.
31532         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31533         * doc/posix-functions/linkat.texi (linkat): Likewise.
31534         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31535         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31536         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31537         * doc/posix-functions/renameat.texi (renameat): Likewise.
31538         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31539
31540         openat: fix GNU/Hurd bug in unlinkat
31541         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31542         broken.
31543         * doc/posix-functions/unlink.texi (unlink): Document this.
31544         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31545
31546         fdopendir: fix GNU/Hurd bug
31547         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31548         allowing non-directory fds.
31549         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31550         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31551         * modules/dirent (Makefile.am): Substitute it.
31552         * lib/dirent.in.h (fdopendir): Declare replacement.
31553         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31554         * tests/test-fdopendir.c (main): Test something other than
31555         /dev/null, since on Hurd that behaves like a directory.
31556
31557         test-symlink: port to GNU/Hurd
31558         * tests/test-symlink.h (test_symlink): Relax expected errno.
31559
31560         doc: tweak more cygwin information
31561         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31562         now compatible with glibc.
31563         * doc/posix-functions/getopt.texi (getopt): Likewise.
31564
31565         getopt-gnu: add another test
31566         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31567         guarantee behavior relied on by m4.
31568         * tests/test-getopt.c (main): Use it.
31569         * modules/getopt-posix-tests (Depends-on): Add setenv.
31570         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31571
31572         getopt: fix compilation on darwin
31573         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31574         include.
31575         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31576         Reported by Ludovic Courtès.
31577
31578 2009-10-06  Bruno Haible  <bruno@clisp.org>
31579
31580         * modules/size_max (Description): Discourage its use.
31581         Reported by Simon Josefsson.
31582
31583 2009-10-06  Jim Meyering  <meyering@redhat.com>
31584
31585         linkat: avoid compilation failure
31586         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31587
31588 2009-10-05  Eric Blake  <ebb9@byu.net>
31589
31590         linkat: support Linux 2.6.17
31591         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31592         linkat on Linux, but allow cache variable override.
31593         * lib/linkat.c (rpl_linkat): Define override.
31594         * modules/linkat (Depends-on): Add symlinkat.
31595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31596         * modules/unistd (Makefile.am): Substitute it.
31597         * lib/unistd.in.h (linkat): Declare replacement.
31598         Reported by Pádraig Brady.
31599
31600         quotearg: port test to systems with C.UTF-8 locale
31601         * tests/test-quotearg.c (struct result_strings): Add another
31602         member, differentiating between C.ASCII and C.UTF-8 handling.
31603         (compare_strings): Add parameter.
31604         (main): Adjust all callers.
31605
31606         getopt: avoid clash with FreeBSD _getopt_internal
31607         * lib/getopt.in.h (_getopt_internal): Override the name.
31608         * lib/getopt_int.h (includes): Pick up any overrides.
31609         Reported by Reuben Thomas.
31610
31611         hash: allow C89 compilation
31612         * lib/hash.c (check_tuning): Move declaration before statement.
31613         Reported by Reuben Thomas.
31614
31615 2009-10-05  Karl Berry  <karl@gnu.org>
31616
31617         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31618
31619 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31620             Bruno Haible  <bruno@clisp.org>
31621
31622         * lib/uname.c (uname): Use a table-driven algorithm to compute
31623         Windows NT versions.
31624
31625 2009-10-04  Bruno Haible  <bruno@clisp.org>
31626
31627         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31628         program_invocation_short_name.
31629         * modules/progname (configure.ac): Test for presence of
31630         program_invocation_short_name.
31631         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31632
31633 2009-10-04  Bruno Haible  <bruno@clisp.org>
31634
31635         * lib/progname.c (set_program_name): Fix comment.
31636         Reported by Jim Meyering.
31637
31638 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31639             Bruno Haible  <bruno@clisp.org>
31640
31641         * lib/uname.c: Include <string.h>.
31642         (uname): Do only one call to GetVersionEx in the common case.
31643
31644 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31645             Bruno Haible  <bruno@clisp.org>
31646
31647         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31648         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31649         (uname): Add support for Windows CE and various non-x86 CPU types.
31650
31651 2009-10-03  Bruno Haible  <bruno@clisp.org>
31652
31653         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31654         invocation to tests/configure.ac.
31655         Reported by Ian Beckwith <ianb@erislabs.net>.
31656
31657 2009-10-02  Eric Blake  <ebb9@byu.net>
31658
31659         fchdir: avoid compiler warning
31660         * lib/fchdir.c (canonicalize_file_name)
31661         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31662
31663         test-open: support mingw errno values
31664         * tests/test-open.h (test_open): Relax test.
31665         * tests/test-fopen.h (test_fopen): Likewise.
31666         * tests/test-openat-safer.c (main): Likewise.
31667
31668         open: fix opening directory on mingw
31669         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31670
31671         test-open: on GNU/Hurd, /dev/null is a directory
31672         * tests/test-fopen.h (main): Rename...
31673         (test_fopen): ...to this.  Use a guaranteed non-directory when
31674         confirming open behavior on trailing slash.
31675         * tests/test-openat-safer.c (main): Likewise.
31676         * tests/test-open.h (main): Likewise....
31677         (test_open): ...to this.
31678         * tests/test-fopen.c (main): Adjust caller.
31679         * tests/test-fopen-safer.c (main): Likewise.
31680         * tests/test-open.c (main): Likewise.
31681         * tests/test-fcntl-safer.c (main): Likewise.
31682         Reported by Samuel Thibault.
31683
31684         rename, fchdir: don't ignore chdir failure
31685         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31686         * lib/rename.c (rpl_rename) [W32]: Likewise.
31687         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31688         an empty destination directory if source cannot be renamed,
31689         although there is still possibility for failure.
31690         * doc/posix-functions/rename.texi (rename): Document the race.
31691         Reported by Jim Meyering.
31692
31693         maint: cleanup whitespace in recent commits
31694         * lib/rename.c (rpl_rename): Remove tabs.
31695         * tests/test-link.h (test_link): Likewise.
31696         * lib/fchdir.c (get_name): Likewise.
31697         Reported by Jim Meyering.
31698
31699 2009-10-02  Ben Pfaff  <blp@gnu.org>
31700
31701         relocatable-prog-wrapper: Add missing dependency on
31702         double-slash-root.
31703         * modules/relocatable-prog-wrapper: Add dependency.
31704         Reported by Ian Beckwith <ianb@erislabs.net>.
31705
31706 2009-10-02  Eric Blake  <ebb9@byu.net>
31707
31708         renameat: fix Solaris bugs
31709         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31710         needed fixing.
31711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31712         * modules/stdio (Makefile.am): Substitute it.
31713         * lib/stdio.in.h (renameat): Declare replacement.
31714         * lib/renameat.c (rpl_renameat): Implement fix.
31715
31716         renameat: new module
31717         * modules/renameat: New file.
31718         * lib/renameat.c (renameat): Likewise.
31719         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31721         * modules/stdio (Makefile.am): Substitute them.
31722         * lib/stdio.in.h (renameat): Declare it.
31723         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31724         * doc/posix-functions/renameat.texi (renameat): Likewise.
31725         * modules/renameat-tests: New test.
31726         * tests/test-renameat.c: Likewise.
31727
31728         rename: fix mingw bugs
31729         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31730         directory overwrite bugs.
31731
31732         rename: fix another cygwin 1.5 bug
31733         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31734         checks.
31735         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31736         unnecessary cygwin workarounds.  Also work around bug with moving
31737         full directory onto an empty one.
31738         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31739
31740         rename-dest-slash: merge into rename module
31741         * modules/rename-dest-slash (Status): Mark obsolete.
31742         (Depends-on): Add rename.
31743         (Files): Let rename do it all.
31744         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31745         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31746         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31747         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31748         * lib/rename.c (rpl_rename): Update comments.
31749
31750         rename: fix cygwin 1.5.x bugs
31751         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31752         * lib/rename.c (rpl_rename): Work around them.
31753         * modules/rename (Depends-on): Add same-inode.
31754
31755         rename: fix Solaris 10 bug
31756         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31757         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31758         was the only bug.
31759
31760         rename: fix Solaris 9 bug
31761         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31762         on non-directory.  Avoid calling exit.
31763         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31764         strdup.
31765         * modules/rename-tests (Depends-on): Drop lstat.
31766         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31767         (gl_PREREQ_RENAME): Delete unused macro.
31768
31769         rename-dest-slash: fix NetBSD bug
31770         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31771         links.
31772         * modules/rename-dest-slash (Depends-on): Add same-inode.
31773
31774         rename-tests: new test, exposes several platform bugs
31775         * modules/rename-tests: New file.
31776         * tests/test-rename.h: Likewise.
31777         * tests/test-rename.c: Likewise.
31778         * doc/posix-functions/rename.texi (rename): Improve documentation,
31779         including bugs that will eventually be fixed in gnulib.
31780
31781 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31782
31783         * lib/uname.c: Include <stdlib.h>
31784         (uname): Assume version info is available.
31785
31786 2009-10-02  Jim Meyering  <meyering@redhat.com>
31787
31788         gnu-web-doc-update: correct --help output
31789         * build-aux/gnu-web-doc-update: Make --help output relevant.
31790
31791         gnu-web-doc-update: add standard options
31792         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31793
31794         gnu-web-doc-update: New module.
31795         Use this script to automatically update the on-line web documentation
31796         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31797         * modules/gnu-web-doc-update: New file, from coreutils.
31798         * build-aux/gnu-web-doc-update: New script.
31799
31800 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31801
31802         link: LoadLibrary is not needed.
31803         * lib/link.c: Use GetModuleHandle.
31804
31805 2009-10-01  Eric Blake  <ebb9@byu.net>
31806
31807         getopt: bump serial number
31808         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31809         change.
31810
31811         tests: tighten link, rmdir, and remove tests
31812         * tests/test-link.h (includes): No need to use <config.h> here.
31813         Clean up if directory hard link was created, otherwise test for
31814         trailing '.'.
31815         * tests/test-linkat.c (main): Simplify.
31816         * tests/test-remove.c (main): Enhance test for trailing '.'.
31817         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31818
31819 2009-10-01  Jim Meyering  <meyering@redhat.com>
31820
31821         maint.mk: requiring "make major" was annoying, for a "minor" release.
31822         What is intended is "stable", to contrast with alpha and beta,
31823         so require "make stable", not "make major".
31824         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31825         (get_tool_versions): Likewise.
31826         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31827
31828 2009-09-30  Ben Pfaff  <blp@gnu.org>
31829
31830         Fix broken build of replacement for Windows tmpfile().
31831         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31832         flags argument added along with the 'mkostemp' module.
31833
31834 2009-09-28  Bruno Haible  <bruno@clisp.org>
31835
31836         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31837         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31838         to 'remove_elt'.
31839         (gl_list_remove): Update.
31840         * lib/gl_list.c (gl_list_remove): Update.
31841         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31842         to 'remove_elt'.
31843         (gl_oset_remove): Update.
31844         * lib/gl_list.c (gl_oset_remove): Update.
31845         Reported by Eric Blake.
31846
31847 2009-09-28  Eric Blake  <ebb9@byu.net>
31848
31849         doc: mention yet more cygwin 1.7 status
31850         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31851         cygwin.
31852         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31853         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31854
31855         argp: fix test failure
31856         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31857         that are not upper-case.  Pass correct range to tolower.
31858
31859 2009-09-27  Jim Meyering  <meyering@redhat.com>
31860
31861         test-yesno: work around sparc-dash here-document infelicity
31862         Without this change, the literal \177 byte in a here document
31863         would make dash 0.5.5.1-3 access uninitialized memory.
31864         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31865         Instead, use a marker, "@", and filter through tr to create the desired
31866         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31867
31868 2009-09-27  Bruno Haible  <bruno@clisp.org>
31869
31870         Disable untested support for new flavours of ACLs on AIX.
31871         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31872         progress.
31873         * lib/set-mode-acl.c (qset_acl): Likewise.
31874
31875 2008-12-07  Bruno Haible  <bruno@clisp.org>
31876
31877         Add support for new flavours of ACLs on AIX. (Untested.)
31878         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31879         (file_has_acl): Add support for newer AIX.
31880         * lib/set-mode-acl.c (qset_acl): Likewise.
31881         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31882         Rainer Tammer <tammer@tammer.net>.
31883
31884 2009-09-26  Eric Blake  <ebb9@byu.net>
31885
31886         argp: fix compilation of getopt
31887         * lib/getopt.in.h (includes): Use different guard than glibc.
31888         Reported by Sergey Poznyakoff.
31889
31890         doc: mention more cygwin 1.7 status
31891         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31892         bug.
31893         * doc/posix-functions/execl.texi (execl): Likewise.
31894         * doc/posix-functions/execle.texi (execle): Likewise.
31895         * doc/posix-functions/execlp.texi (execlp): Likewise.
31896         * doc/posix-functions/execv.texi (execv): Likewise.
31897         * doc/posix-functions/execve.texi (execve): Likewise.
31898         * doc/posix-functions/execvp.texi (execvp): Likewise.
31899         * doc/glibc-functions/canonicalize_file_name.texi
31900         (canonicalize_file_name): Cygwin 1.7 now provides this.
31901         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31902         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31903         on AT_SYMLINK_NOFOLLOW.
31904
31905 2009-09-24  Eric Blake  <ebb9@byu.net>
31906
31907         test-linkat: make test more robust
31908         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31909
31910         getopt: fix inclusion guards for cygwin
31911         * modules/getopt-posix (Depends-on): Add include-next.
31912         (Makefile.am): Substitute more items in replacement header.
31913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31914         <getopt.h>.
31915         * lib/getopt.in.h (includes): Use split inclusion guard, and
31916         prefer <getopt.h> over include <unistd.h> when one is present.
31917         (option): Also override name of 'struct option'.
31918
31919         same-inode: revert prior change; it is not yet ready
31920         * NEWS: Undo mention of this change.
31921         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31922         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31923         * lib/cycle-check.c (cycle_check): Likewise.
31924         * lib/same.c (same_name): Likewise.
31925         * lib/at-func2.c (at_func2): Likewise.
31926
31927 2009-09-23  Eric Blake  <ebb9@byu.net>
31928
31929         linkat: new module
31930         * modules/linkat: New file.
31931         * lib/at-func2.c (at_func2): Likewise.
31932         * lib/linkat.c (linkat): Likewise.
31933         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31934         * lib/openat-priv.h (at_func2): Add declaration.
31935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31936         * modules/unistd (Makefile.am): Substitute them.
31937         * lib/unistd.in.h (linkat): Declare it.
31938         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31939         * doc/posix-functions/linkat.texi (linkat): Likewise.
31940         * doc/posix-functions/link.texi (link): Tweak wording.
31941         * tests/test-link.c (main): Move guts...
31942         * tests/test-link.h (test_link): ...into new file.
31943         * modules/linkat-tests: New test.
31944         * tests/test-linkat.c: Likewise.
31945         * modules/link-tests (Files): Ship new file.
31946         (Depends-on): Add stdbool.
31947
31948         dirname: add library-safe mdir_name
31949         * lib/dirname.h (mdir_name): New prototype.
31950         * lib/dirname.c (dir_name): Move guts...
31951         (mdir_name): ...to new function that avoids xalloc_die.
31952
31953         fchdir: another mingw fix
31954         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31955         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31956         on mingw (where it has not yet been ported), and make it optional
31957         elsewhere.
31958         (_gl_register_fd): Use it.
31959
31960         same-inode: make SAME_INODE tri-state, to port to mingw
31961         * NEWS: Mention this change.
31962         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31963         st_ino always being 0.
31964         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31965         * lib/cycle-check.c (cycle_check): Likewise.
31966         * lib/same.c (same_name): Likewise.
31967
31968         lstat: avoid mingw compilation error
31969         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31970         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31971         lstat ourselves.
31972         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31973         was adequate.
31974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31975         the checks for lstat.
31976         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31977
31978         link: fix test failure on Solaris 9
31979         * lib/link.c (rpl_link): Don't assume link will catch bogus
31980         trailing slash on source.
31981
31982         test-symlinkat: enhance test
31983         * tests/test-readlink.c (main): Move guts...
31984         * tests/test-readlink.h (test_readlink): ...into new file.
31985         * tests/test-symlink.c (main): Move guts...
31986         * tests/test-symlink.h (test_symlink): ...into new file.
31987         * tests/test-symlinkat.c (main): Use new files for further
31988         coverage.
31989         (do_symlink, do_readlink): New helper functions.
31990         * modules/symlink-tests (Files): Ship new file.
31991         (Depends-on): Add stdbool.
31992         * modules/readlink-tests (Files): Ship new file.
31993         (Depends-on): Add stdbool.
31994         * modules/symlinkat-tests (Files): Use new files.
31995
31996 2009-09-23  Eric Blake  <ebb9@byu.net>
31997
31998         readlink: document portability issue with symlink length
31999         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32000         systems have bogus st_size on symlinks, and mention the
32001         areadlink-with-size module.
32002         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32003         * doc/posix-functions/readlink.texi (readlink): Mention the
32004         areadlink module, and ERANGE failure.
32005         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32006         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32007
32008         readlink: fix Solaris 9 bug with trailing slash
32009         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32010         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32011         * doc/posix-functions/readlink.texi (readlink): Document this.
32012         * modules/readlink-tests: New test.
32013         * tests/test-readlink.c: Likewise.
32014
32015         readlink: fix cygwin 1.5.x bug with return type
32016         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32017         * lib/unistd.in.h (readlink): Use ssize_t.
32018         * lib/readlink.c (readlink): Likewise.
32019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32020         * modules/unistd (Makefile.am): Substitute it.
32021         * lib/unistd.in.h (readlink): Declare replacement.
32022         * doc/posix-functions/readlink.texi (readlink): Document this.
32023
32024         symlink: use throughout gnulib
32025         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32026         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32027         symlink is not used.
32028         * modules/symlinkat (Depends-on): Add symlink.
32029         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32030         * modules/canonicalize-tests (Depends-on): Likewise.
32031         * modules/lstat-tests (Depends-on): Likewise.
32032         * modules/openat-tests (Depends-on): Likewise.
32033         * modules/remove-tests (Depends-on): Likewise.
32034         * modules/rmdir-tests (Depends-on): Likewise.
32035         * modules/unlink-tests (Depends-on): Likewise.
32036         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32037         * tests/test-canonicalize.c (symlink): Likewise.
32038         * tests/test-fstatat.c (symlink): Likewise.
32039         * tests/test-lstat.c (symlink): Likewise.
32040         * tests/test-remove.c (symlink): Likewise.
32041         * tests/test-rmdir.c (symlink): Likewise.
32042         * tests/test-unlink.c (symlink): Likewise.
32043         * tests/test-unlinkat.c (symlink): Likewise.
32044
32045         symlink: new module, for Solaris 9 bug
32046         * modules/symlink: New file.
32047         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32048         * lib/symlink.c: Likewise.
32049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32050         * modules/unistd (Makefile.am): Substitute them.
32051         * lib/unistd.in.h (symlink): Declare replacement.
32052         * MODULES.html.sh (File system functions): Mention it.
32053         * doc/posix-functions/symlink.texi (symlink): Likewise.
32054         * modules/symlink-tests: New test.
32055         * tests/test-symlink.c: Likewise.
32056
32057 2009-09-23  Bruno Haible  <bruno@clisp.org>
32058
32059         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32060         when needed.
32061         Test case: gnulib-tool --import --with-tests atexit inttypes.
32062         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32063
32064 2009-09-23  Bruno Haible  <bruno@clisp.org>
32065
32066         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32067         subcommand, not in a subshell.
32068
32069 2009-09-22  Eric Blake  <ebb9@byu.net>
32070
32071         unistd: sort replacement declarations
32072         * lib/unistd.in.h: Sort declarations.
32073
32074         open, openat: minor optimization
32075         * lib/open.c (open): If open succeeded, len is non-zero.
32076         * lib/openat.c (rpl_openat): Likewise.
32077
32078         link-follow: ensure correct result
32079         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32080         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32081         distinguish between possible failures.
32082
32083 2009-09-21  Eric Blake  <ebb9@byu.net>
32084
32085         fts: avoid compiler warning
32086         * lib/fts.c (dirent_inode_sort_may_be_useful)
32087         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32088
32089 2009-09-19  Bruno Haible  <bruno@clisp.org>
32090
32091         * lib/progreloc.c (canonicalize_file_name): New declaration.
32092
32093 2009-09-19  Eric Blake  <ebb9@byu.net>
32094
32095         link: fix quoting
32096         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32097
32098         openat: fix openat bugs on Solaris 9
32099         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32100         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32101         * modules/openat (Depends-on): Add open.
32102         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32103         * modules/fcntl-h (Makefile.am): Substitute it.
32104         * lib/fcntl.in.h (openat): Declare replacement.
32105         * doc/posix-functions/openat.texi (openat): Document this.
32106
32107         openat: move fstatat and unlinkat into correct files
32108         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32109         compiled.
32110         * lib/openat.c (fstatat, unlinkat): Move...
32111         * lib/fstatat.c (fstatat): ...into correct files.
32112         * lib/unlinkat.c (unlinkat): Likewise.
32113
32114         openat: fix unlinkat bugs on Solaris 9
32115         * lib/unlinkat.c (unlinkat): New file.
32116         * modules/openat (Depends-on): Add unlink.
32117         (Files): Distribute it.
32118         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32119         trailing slash behavior is broken.
32120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32121         * modules/unistd (Makefile.am): Substitute it.
32122         * lib/unistd.in.h (unlinkat): Declare replacement.
32123         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32124
32125         openat: fix fstatat bugs on Solaris 9
32126         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32127         stat.
32128         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32129
32130         test-unlinkat: enhance test, to expose Solaris 9 bug
32131         * tests/test-unlink.c (main): Factor guts...
32132         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32133         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32134         * tests/test-rmdir.c (main): Adjust caller.
32135         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32136         (unlinker): New helper function.
32137         (rmdirat): Enhance check.
32138         * modules/rmdir-tests (Depends-on): Add stdbool.
32139         * modules/unlink-tests (Depends-on): Likewise.
32140         (Files): Add test-unlink.h.
32141         * modules/openat-tests (Files): Likewise.
32142         (Depends-on): Add unlinkdir.
32143
32144         test-fstatat: new test, to expose Solaris 9 bugs
32145         * tests/test-stat.c (main): Factor guts...
32146         * tests/test-stat.h (test_stat_func): ...into new file.
32147         * tests/test-lstat.c (main): Factor guts...
32148         * tests/test-lstat.h (test_lstat_func): ...into new file.
32149         * tests/test-fstatat.c: New file.
32150         * modules/stat-tests (Files): Add test-stat.h.
32151         * modules/lstat-tests (Files): Add test-lstat.h.
32152         (Depends-on): Add stdbool.
32153         * modules/openat-tests (Depends-on): Add pathmax.
32154         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32155         (Makefile.am): Run new test.
32156
32157         remove: new module, for mingw and Solaris 9 bugs
32158         * modules/remove: New file.
32159         * lib/remove.c: Likewise.
32160         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32162         * modules/stdio (Makefile.am): Use them.
32163         * lib/stdio.in.h (remove): Declare replacement.
32164         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32165         * doc/posix-functions/remove.texi (remove): Likewise.
32166         * modules/remove-tests: New test.
32167         * tests/test-remove.c: Likewise.
32168
32169         unlink: new module, for Solaris 9 bug
32170         * modules/unlink: New file.
32171         * lib/unlink.c: Likewise.
32172         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32174         * modules/unistd (Makefile.am): Use them.
32175         * lib/unistd.in.h (stat): Declare replacement.
32176         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32177         * doc/posix-functions/unlink.texi (unlink): Likewise.
32178         * modules/unlink-tests: New test.
32179         * tests/test-unlink.c: Likewise.
32180
32181         lstat: fix Solaris 9 bug
32182         * lib/lstat.c (lstat): Also check for trailing slash on
32183         non-symlink, non-directories.  Use stat module to simplify logic.
32184         * doc/posix-functions/lstat.texi (lstat): Document it.
32185         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32186         (configure.ac): Check for symlink.
32187         * tests/test-lstat.c (main): Add more tests.
32188
32189         stat: add as dependency to other modules
32190         * modules/chown (Depends-on): Add stat.
32191         * modules/euidaccess (Depends-on): Likewise.
32192         * modules/fchdir (Depends-on): Likewise.
32193         * modules/isdir (Depends-on): Likewise.
32194         * modules/link (Depends-on): Likewise.
32195         * modules/lstat (Depends-on): Likewise.
32196         * modules/mkdir-p (Depends-on): Likewise.
32197         * modules/modechange (Depends-on): Likewise.
32198         * modules/open (Depends-on): Likewise.
32199         * modules/readlink (Depends-on): Likewise.
32200         * modules/same (Depends-on): Likewise.
32201
32202         stat: fix Solaris 9 bug
32203         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32204         slash.
32205         * lib/stat.c (rpl_stat): Work around it.
32206         * doc/posix-functions/stat.texi (stat): Update documentation.
32207
32208         stat: new module, for mingw bug
32209         * modules/stat: New file.
32210         * lib/stat.c: Likewise.
32211         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32212         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32213         * modules/sys_stat (Makefile.am): Use them.
32214         * lib/sys_stat.in.h (stat): Declare replacement.
32215         * lib/openat.c (fstatat): Deal with lstat and stat being function
32216         macros.
32217         * modules/openat (Depends-on): Add inline.
32218         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32219         * doc/posix-functions/stat.texi (stat): Likewise.
32220         * modules/stat-tests: New test.
32221         * tests/test-stat.c: Likewise.
32222
32223 2009-09-19  Jim Meyering  <meyering@redhat.com>
32224
32225         syntax-check: detect unnecessary inclusion of canonicalize.h
32226         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32227
32228 2009-09-19  Eric Blake  <ebb9@byu.net>
32229
32230         canonicalize-lgpl: adjust clients to use correct header
32231         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32232         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32233         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32234         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32235         * lib/progreloc.c (includes): Likewise.
32236
32237 2009-09-19  Jim Meyering  <meyering@redhat.com>
32238
32239         test-posixtm.c: correct a comment
32240         * tests/test-posixtm.c: Correct first-line comment.
32241         Spotted by Eric Blake.
32242
32243 2009-09-16  Jim Meyering  <meyering@redhat.com>
32244
32245         posixtm-tests: make T const-correct; add a test case
32246         * tests/test-posixtm.c (T): Declare const.
32247         Add a test for -(2^31+1).
32248         Remove useless can-succeed-only-in-2002 test.
32249
32250         posixtm-tests: adjust the sole failing test
32251         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32252         expected output matches what mktime now produces.  Cross-checked via
32253         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32254
32255         posixtm: move #ifdef'd tests into a new module
32256         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32257         * tests/test-posixtm.c: ... this new file.
32258         * modules/posixtm-tests: New module.
32259
32260 2009-09-19  Eric Blake  <ebb9@byu.net>
32261
32262         openat: simplify use of at-func.c
32263         * lib/at-func.c (includes): Include prerequisites here, to
32264         simplify requirements on client files.
32265         * lib/openat-priv.h: Add double-inclusion guard.
32266         * lib/faccessat.c (includes): Simplify.
32267         * lib/fchmodat.c (includes): Likewise.
32268         * lib/fchownat.c (includes): Likewise.
32269         * lib/mkdirat.c (includes): Likewise.
32270         * lib/mkfifoat.c (includes): Likewise.
32271         * lib/symlinkat.c (includes): Likewise.
32272
32273         openat: allow return of fd 0
32274         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32275         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32276         unistd-safer.
32277         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32278         <fcntl.h>; this module does not leak fds.
32279         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32280         must be allowed to return 0, leaving openat_safer to add the
32281         safety.
32282         (openat_permissive): Avoid writing to just-opened fd 2 if
32283         restoring the current directory fails.
32284         * lib/openat-die.c (openat_restore_fail): Add comment.
32285         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32286         (save_cwd): Guarantee safe fd, but without use of open_safer.
32287         * tests/test-openat.c: New test.
32288         * modules/openat-tests (Files, Makefile.am): Distribute and build
32289         new file.
32290
32291         relocatable-prog-wrapper: fix build
32292         * modules/relocatable-prog-wrapper (Files): Update name of
32293         canonicalize m4 file, broken on 2009-09-17.
32294         Reported by emad hajjar <aleppos@hotmail.com>.
32295
32296 2009-09-19  Bruno Haible  <bruno@clisp.org>
32297
32298         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32299         * lib/safe-alloc.c: Likewise.
32300         Reported by Ian Beckwith <ianb@erislabs.net>.
32301
32302 2009-09-18  Bruno Haible  <bruno@clisp.org>
32303
32304         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32305         Reported by <erobles@sensacd.com.mx>.
32306
32307 2009-09-17  Eric Blake  <ebb9@byu.net>
32308
32309         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32310         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32311         slashes when checking if last component is missing.
32312         * tests/test-canonicalize.c (main): Test this.
32313
32314         canonicalize, canonicalize-lgpl: honor // if distinct from /
32315         * modules/canonicalize (Files): Add double-slash-root.m4.
32316         * modules/canonicalize-lgpl (Files): Likewise.
32317         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32318         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32319         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32320         fallback definition.
32321         (canonicalize_filename_mode): Use it to protect //.
32322         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32323         (__realpath): Likewise.
32324         * tests/test-canonicalize.c (main): Test this.
32325         * tests/test-canonicalize-lgpl.c (main): Likewise.
32326         * modules/canonicalize-tests (Depends-on): Add same-inode.
32327         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32328
32329         canonicalize-lgpl: fix glibc bug with trailing slash
32330         * m4/canonicalize-lgpl.m4: Move contents...
32331         * m4/canonicalize.m4: ...here.
32332         (gl_CANONICALIZE_LGPL): Factor realpath check...
32333         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32334         glibc 2.3.5 bug, fixed 2005-04-27.
32335         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32336         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32337         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32338         * modules/canonicalize-lgpl (Files): Manage file rename.
32339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32340         * modules/stdlib (Makefile.am): Substitute witness.
32341         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32342         is needed.
32343         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32344         replacement is required.
32345         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32346         * doc/glibc-functions/canonicalize_file_name.texi
32347         (canonicalize_file_name): Document this.
32348         * doc/posix-functions/realpath.texi (realpath): Likewise.
32349
32350         canonicalize-lgpl: reject non-directory with trailing slash
32351         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32352         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32353         catches failures in glibc 2.3.5.
32354         * tests/test-canonicalize.c (main): Likewise.
32355
32356         canonicalize-lgpl: use native realpath if it works
32357         * lib/canonicalize-lgpl.c (realpath): Guard with
32358         FUNC_REALPATH_WORKS.
32359         * lib/stdlib.in.h (realpath): Make declaration optional based on
32360         HAVE_REALPATH.
32361         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32362         native realpath works.
32363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32364         * modules/stdlib (Makefile.am): Substitute witness.
32365
32366         canonicalize, canonicalize-lgpl: use <stdlib.h>
32367         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32368         (Include): Mention <stdlib.h>.
32369         (configure.ac): Mention functions we provide.
32370         * modules/canonicalize (configure.ac): Likewise.
32371         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32372         realpath if canonicalize_file_name is missing.
32373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32374         * modules/stdlib (Makefile.am): Substitute witnesses.
32375         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32376         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32377         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32378         * NEWS: Document this.
32379         * doc/glibc-functions/canonicalize_file_name.texi
32380         (canonicalize_file_name): Likewise.
32381         * doc/posix-functions/realpath.texi (realpath): Likewise.
32382         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32383
32384         test-canonicalize: consolidate into single C program
32385         * tests/test-canonicalize.sh: Delete; move setup into...
32386         * tests/test-canonicalize.c (main): ...the program, making it
32387         easier to run in debugger.  Add some tests.
32388         * modules/canonicalize-tests (Files): Remove unused file.
32389         (Depends-on): Add progname.
32390         (configure.ac, Makefile.am): Simplify.
32391
32392         test-canonicalize-lgpl: consolidate into single C program
32393         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32394         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32395         easier to run in debugger.  Add some tests.
32396         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32397         (configure.ac, Makefile.am): Simplify.
32398
32399         canonicalize: avoid resolvepath
32400         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32401         unnecessary checks.
32402         * lib/canonicalize.c (includes): Simplify.
32403         (canonicalize_file_name): Drop resolvepath implementation.
32404         * modules/canonicalize (Depends-on): Drop filenamecat.
32405
32406         canonicalize: don't lose errno
32407         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32408         over calls to free.
32409
32410         canonicalize: simplify errno handling
32411         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32412         assignment.
32413
32414         canonicalize, canonicalize-lgpl: update module dependencies
32415         * modules/canonicalize (Depends-on): Add extensions, lstat,
32416         pathmax, stdlib.
32417         (Files): Drop pathmax.h.
32418         (configure.ac): Adjust macro name.
32419         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32420         lstat, stdlib, sys_stat.
32421         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32422         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32423         extensions.
32424         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32425         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32426         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32427         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32428         declaration, if available.
32429         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32430         we can rely on the readlink module.
32431         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32432         (includes): Use <unistd.h> unconditionally.
32433
32434 2009-09-17  Eric Blake  <ebb9@byu.net>
32435
32436         maint: make Include sections of modules consistent
32437         * modules/alloca: Use only header name; no need to list #include.
32438         * modules/alloca-opt: Likewise.
32439         * modules/arpa_inet: Likewise.
32440         * modules/canon-host: Likewise.
32441         * modules/configmake: Likewise.
32442         * modules/dirent: Likewise.
32443         * modules/eealloc: Likewise.
32444         * modules/environ: Likewise.
32445         * modules/fchdir: Likewise.
32446         * modules/fcntl: Likewise.
32447         * modules/fcntl-h: Likewise.
32448         * modules/gethrxtime: Likewise.
32449         * modules/gettime: Likewise.
32450         * modules/ignore-value: Likewise.
32451         * modules/inet_ntop: Likewise.
32452         * modules/inet_pton: Likewise.
32453         * modules/inttypes: Likewise.
32454         * modules/isnand-nolibm: Likewise.
32455         * modules/isnanf-nolibm: Likewise.
32456         * modules/mbchar: Likewise.
32457         * modules/mbfile: Likewise.
32458         * modules/mbiter: Likewise.
32459         * modules/mbuiter: Likewise.
32460         * modules/netdb: Likewise.
32461         * modules/netinet_in: Likewise.
32462         * modules/nproc: Likewise.
32463         * modules/pagealign_alloc: Likewise.
32464         * modules/poll: Likewise.
32465         * modules/printf-frexp: Likewise.
32466         * modules/pthread: Likewise.
32467         * modules/putenv: Likewise.
32468         * modules/random_r: Likewise.
32469         * modules/relocatable-prog: Likewise.
32470         * modules/search: Likewise.
32471         * modules/select: Likewise.
32472         * modules/selinux-h: Likewise.
32473         * modules/settime: Likewise.
32474         * modules/signal: Likewise.
32475         * modules/size_max: Likewise.
32476         * modules/socklen: Likewise.
32477         * modules/ssize_t: Likewise.
32478         * modules/stdarg: Likewise.
32479         * modules/stdbool: Likewise.
32480         * modules/stddef: Likewise.
32481         * modules/stdint: Likewise.
32482         * modules/stdio: Likewise.
32483         * modules/stdlib: Likewise.
32484         * modules/string: Likewise.
32485         * modules/strings: Likewise.
32486         * modules/sys_file: Likewise.
32487         * modules/sys_ioctl: Likewise.
32488         * modules/sys_select: Likewise.
32489         * modules/sys_socket: Likewise.
32490         * modules/sys_stat: Likewise.
32491         * modules/sys_time: Likewise.
32492         * modules/sys_times: Likewise.
32493         * modules/sys_utsname: Likewise.
32494         * modules/sys_wait: Likewise.
32495         * modules/sysexits: Likewise.
32496         * modules/time: Likewise.
32497         * modules/times: Likewise.
32498         * modules/tmpfile: Likewise.
32499         * modules/trim: Likewise.
32500         * modules/unistd: Likewise.
32501         * modules/wchar: Likewise.
32502         * modules/wctype: Likewise.
32503
32504 2009-09-17  Bruno Haible  <bruno@clisp.org>
32505
32506         Make getdate.y compile on QNX and NetBSD 5 / i386.
32507         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32508         TIME_T_FITS_IN_LONG_INT.
32509         * lib/getdate.y (long_time_t): New type.
32510         (relative_time): Change type of 'seconds' field to long_time_t.
32511         (get_date): Update types of local variables. Check against overflow
32512         during conversion from long_time_t to time_t.
32513         Reported by Matt Kraai <kraai@ftbfs.org>
32514         and Hasso Tepper <hasso@netbsd.org>.
32515
32516 2009-09-17  Bruno Haible  <bruno@clisp.org>
32517
32518         * modules/COPYING: Update copyright years.
32519         * modules/README: Likeiwse.
32520         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32521         Reported by Ian Beckwith <ianb@erislabs.net>.
32522
32523 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32524
32525         * users.txt: Update references for gnuit package.
32526
32527 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32528
32529         * m4/getdelim.m4: Fix typo in copyright line.
32530
32531 2009-09-17  Bruno Haible  <bruno@clisp.org>
32532
32533         * lib/atoll.c: Use the standard header with GPL copyright.
32534         * lib/argz.in.h: Likewise.
32535         * lib/glob.c: Likewise.
32536         * lib/glob-libc.h: Likewise.
32537         * lib/random_r.c: Likewise.
32538         * lib/siglist.h: Likewise.
32539         * lib/strsignal.c: Likewise.
32540         Reported by Ian Beckwith <ianb@erislabs.net>.
32541
32542 2009-09-17  Eric Blake  <ebb9@byu.net>
32543
32544         rmdir: ensure correct dependency order
32545         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32546
32547 2009-09-17  Bruno Haible  <bruno@clisp.org>
32548
32549         Disable assertion that fails on NetBSD 5 / i386.
32550         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32551         Reported by Sam Steingold <sds@gnu.org>
32552         and Hasso Tepper <hasso@netbsd.org>.
32553
32554 2009-09-16  Eric Blake  <ebb9@byu.net>
32555
32556         unlinkdir: port to mingw
32557         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32558         on which no one can unlink a directory.
32559
32560         stdlib: sort witness names
32561         * modules/stdlib (Makefile.am): Sort replacements.
32562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32563         * lib/stdlib.in.h: Likewise.
32564
32565         parse-duration-tests: avoid link failure
32566         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32567         LIBINTL.
32568         Reported by Tom G. Christensen.
32569
32570         openat-tests: ensure unlinkat behaves like rmdir
32571         * tests/test-rmdir.c (main): Factor guts...
32572         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32573         * modules/rmdir-tests (Files): Ship new file.
32574         * modules/openat-tests: New test.
32575         * tests/test-unlinkat.c: Likewise.
32576
32577         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32578         * modules/rmdir-errno (Status, Notice): Now obsolete.
32579
32580         rmdir: work around cygwin 1.5.x and mingw bugs
32581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32582         * lib/rmdir.c (rmdir): Work around it.
32583         * modules/rmdir (Status, Notice): No longer obsolete.
32584         (Files): Add dos.m4.
32585         (Depends-on): Add unistd.
32586         (configure.ac): Set witnesses.
32587         (License): Relax to LGPLv2+.
32588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32589         * modules/unistd (Makefile.am): Substitute witnesses.
32590         * lib/unistd.in.h (rmdir): Declare replacement.
32591         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32592         * modules/rmdir-tests: New tests.
32593         * tests/test-rmdir.c: Likewise.
32594
32595 2009-09-15  Eric Blake  <ebb9@byu.net>
32596
32597         fchdir: improve use of replacement functions
32598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32599         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32600         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32601         REPLACE_CLOSEDIR.
32602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32603         * modules/sys_stat (Makefile.am): Substitute correct witness.
32604         * modules/dirent (Makefile.am): Likewise.
32605         * modules/unistd (Makefile.am): Likewise.
32606         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32607         * lib/unistd.in.h (dup): Likewise.
32608         * lib/sys_stat.in.h (fstat): Likewise.
32609
32610         maint: ignore gnulib-tool temp files
32611         * .gitignore: Ignore files created during gnulib-tool --test.
32612
32613 2009-09-13  Jim Meyering  <meyering@redhat.com>
32614
32615         posixtm: don't reject a time that specify "60" as the number of seconds
32616         * lib/posixtm.c (posixtime): The code to reject invalid dates
32617         would also reject a time specified with the .60 suffix.
32618         But POSIX allows that, in order to accommodate leap seconds.
32619         So don't reject it.
32620         (main): Adjust tests accordingly.
32621         * modules/posixtm (Depends-on): Add stpcpy.
32622
32623 2009-09-11  Jim Meyering  <meyering@redhat.com>
32624
32625         announce-gen: include [$release_type] in emitted Subject:
32626         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32627         e.g., [stable] in the emitted Subject: line.
32628
32629 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32630
32631         Remove obsolete macros from several modules.
32632         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32633         obsolete Autoconf macros with their modern counterparts.
32634         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32635         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32636         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32637         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32638         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32639         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32641         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32642         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32643         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32644         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32646         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32647         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32648         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32649         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32650         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32651         * m4/time_r.m4 (gl_TIME_R): Likewise.
32652         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32653         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32654         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32655
32656         Fix copyright header in build-aux scripts.
32657         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32658         recommendation.
32659         * build-aux/ncftpput-ftp: Likewise.
32660         * build-aux/update-copyright: Likewise.
32661
32662 2009-09-09  Eric Blake  <ebb9@byu.net>
32663
32664         test-link: allow Linux choice of errno
32665         * tests/test-link.c (main): Relax test for alternate error.
32666
32667         strndup: fix improper m4 caching
32668         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32669         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32670         (gl_PREREQ_STRNDUP): Delete.
32671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32672         * modules/string (Makefile.am): Substitute it.
32673         * lib/string.in.h (strndup): Modernize prototype.
32674
32675         getcwd: port to mingw
32676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32677         different from the POSIX assumptions made throughout the getcwd
32678         module; fortunately, the mingw getcwd does not need replacement.
32679         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32680         * modules/getcwd-tests: New test.
32681         * tests/test-getcwd.c: Likewise.
32682
32683         link: fix platform bugs
32684         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32685         * lib/link.c (link): Work around them.  Fix related mingw bug.
32686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32687         * modules/unistd (Makefile.am): Substitute it.
32688         * lib/unistd.in.h (link): Declare replacement.
32689         * doc/posix-functions/link.texi (link): Document this.
32690         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32691
32692         test-link: consolidate into single C program, test more cases
32693         * tests/test-link.sh: Delete.
32694         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32695         at least Cygwin and Solaris.
32696         * modules/link-tests (Files): Remove unused file.
32697         (Depends-on): Add errno, sys_stat.
32698         (Makefile.am): Simplify.
32699
32700 2009-09-08  Bruno Haible  <bruno@clisp.org>
32701
32702         Work around towlower, towupper bug on mingw.
32703         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32704         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32705         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32706         * doc/posix-functions/towupper.texi: Likewise.
32707         Reported by Eric Blake.
32708
32709 2009-09-08  Jim Meyering  <meyering@redhat.com>
32710
32711         build: don't try to run autoheader if we don't use it
32712         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32713         is not used in configure.ac.
32714
32715 2009-09-08  Eric Blake  <ebb9@byu.net>
32716
32717         euidaccess: fix compilation error
32718         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32719
32720         rawmemchr: relax license
32721         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32722         okay.
32723         Reported by Jim Meyering.
32724
32725         mkfifoat: new module
32726         * modules/mkfifoat: New file.
32727         * lib/mkfifoat.c: Likewise.
32728         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32730         * modules/sys_stat (Makefile.am): Use them.
32731         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32732         * MODULES.html.sh (File system functions): Mention module.
32733         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32734         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32735         * modules/mkfifoat-tests: New test.
32736         * tests/test-mkfifoat.c: Likewise.
32737
32738         strchrnul: relax license
32739         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32740         okay.
32741         Reported by Jim Meyering.
32742
32743 2009-09-08  Eric Blake  <ebb9@byu.net>
32744
32745         fstatat: fix compilation on Solaris
32746         * lib/fstatat.c (includes): Add fcntl.h.
32747         Reported by Pádraig Brady.
32748
32749 2009-09-07  Eric Blake  <ebb9@byu.net>
32750
32751         rename: modernize replacement
32752         * modules/rename (Depends-on): Add stdio.
32753         (configure.ac): Declare witness.
32754         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32755         stdio take care of replacement.
32756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32757         * modules/stdio (Makefile.am): Substitute them.
32758         * lib/stdio.in.h (rename): Declare replacement.
32759         * lib/rename.c (includes): Allow cross-compilation to non-windows
32760         machines.
32761         * doc/posix-functions/rename.texi (rename): Improve
32762         documentation.
32763
32764         stdio: sort witness names
32765         * modules/stdio (Makefile.am): Sort replacements.
32766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32767         * lib/stdio.in.h: Likewise.
32768
32769         getcwd: minor cleanups
32770         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32771         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32772
32773         openat: provide more convenience names
32774         * modules/faccessat (configure.ac): Add C witness.
32775         * lib/unistd.in.h (readlinkat): Fix typo.
32776         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32777         convenience wrappers.
32778         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32779         wrappers in syntax checks.
32780
32781 2009-09-06  Eric Blake  <ebb9@byu.net>
32782
32783         doc: fix comments in recent patches
32784         * lib/faccessat.c: Mention correct function.
32785         * lib/fchmodat.c: Likewise.
32786         * lib/fchownat.c: Likewise.
32787         * lib/symlinkat.c: Likewise.
32788         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32789         constants.
32790
32791         faccessat, symlinkat: continue cleanup of previous patch
32792         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32793         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32794         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32796         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32797         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32798         set.
32799
32800 2009-09-06  Bruno Haible  <bruno@clisp.org>
32801
32802         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32803         (fstatat): Declare if GNULIB_FSTATAT is set.
32804         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32805         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32806         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32807         * modules/fcntl-h (Files): Remove m4/openat.m4.
32808         * modules/sys_stat (Files): Remove m4/openat.m4.
32809         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32810         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32811         * modules/unistd (Files): Remove m4/openat.m4.
32812         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32813         GNULIB_OPENAT.
32814         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32815         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32816         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32817         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32818         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32819         gl_OPENAT_DEFAULTS.
32820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32821         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32822         Don't require gl_OPENAT_DEFAULTS.
32823         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32824         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32825         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32826         (gl_OPENAT_DEFAULTS): Remove macro.
32827
32828 2009-09-06  Bruno Haible  <bruno@clisp.org>
32829
32830         * modules/openat (configure.ac): Remove unneeded witness.
32831
32832 2009-09-06  Bruno Haible  <bruno@clisp.org>
32833
32834         Set errno to ENOSYS when a function is entirely unsupported.
32835         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32836         EOPNOTSUPP.
32837         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32838         * modules/chown (Depends-on): Remove errno.
32839
32840 2009-09-06  Bruno Haible  <bruno@clisp.org>
32841
32842         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32843
32844 2009-09-06  Bruno Haible  <bruno@clisp.org>
32845
32846         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32847
32848 2009-09-06  Ben Pfaff  <blp@gnu.org>
32849             Bruno Haible  <bruno@clisp.org>
32850
32851         Work around a glibc bug in strtok_r.
32852         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32853         Undefine if UNDEFINE_STRTOK_R is set.
32854         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32856         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32858         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32859         UNDEFINE_STRTOK_R.
32860         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32861
32862 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32863
32864         exclude: minor fix
32865         * lib/exclude.c: Include wctype.h
32866
32867 2009-09-06  Akim Demaille  <demaille@gostai.com>
32868
32869         bootstrap: improve error message
32870         * build-aux/bootstrap (find_tool): Upon failure, report the list
32871         of candidates.
32872         Honor the initial value of the envvar.
32873
32874 2009-09-05  Eric Blake  <ebb9@byu.net>
32875
32876         symlinkat: new module
32877         * modules/symlinkat: New file.
32878         * lib/symlinkat.c: Likewise.
32879         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32881         * modules/unistd (Makefile.am): Use them.
32882         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32883         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32884         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32885         * MODULES.html.sh (File system functions): Mention module.
32886         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32887         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32888         * modules/symlinkat-tests: New test.
32889         * tests/test-symlinkat.c: Likewise.
32890
32891         test-openat-safer: add more checks
32892         * tests/test-openat-safer.c (main): Check more code paths.
32893
32894 2009-09-05  Jim Meyering  <meyering@redhat.com>
32895
32896         syntax-check: detect unnecessary inclusion of openat.h
32897         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32898
32899 2009-09-05  Bruno Haible  <bruno@clisp.org>
32900
32901         Support towlower, towupper.
32902         * doc/posix-functions/towlower.texi: Mention module wctype.
32903         * doc/posix-functions/towupper.texi: Likewise.
32904         * lib/wctype.in.h (towlower, towupper): New functions.
32905         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32906         (ASSERT): New macro.
32907         (e): New variable.
32908         (main): Test also towlower, towupper. Test WEOF argument.
32909         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32910
32911 2009-09-05  Bruno Haible  <bruno@clisp.org>
32912
32913         Fix conversion behaviour when the input is invalid.
32914         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32915         mark occurring in first pass of indirect conversion.
32916         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32917         input.
32918         Found by clang's static analyzer.
32919
32920 2009-09-05  Bruno Haible  <bruno@clisp.org>
32921
32922         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32923         where direct conversion is possible.
32924
32925 2009-09-04  Eric Blake  <ebb9@byu.net>
32926
32927         openat: fail with ENOENT on empty name
32928         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32929         buffer.
32930
32931         link-follow: fix logic bug in prior patch
32932         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32933         reversed sense of yes and no in prior patch.  Avoid confusing
32934         compilation failure with desired semantics.
32935
32936         link-follow: accomodate mingw and cross-compilation
32937         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32938         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32939         cross-compilation results to -1, to make linkat easier to
32940         implement when cross-compiling.  Trivially support mingw.
32941         * modules/link-follow (configure.ac): Call new name.
32942         * NEWS: Mention this.
32943
32944 2009-09-03  Eric Blake  <ebb9@byu.net>
32945
32946         faccessat: compile replacement
32947         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32948         needed.
32949
32950         fts: fix compilation error
32951         * lib/fts.c (includes): Re-add "openat.h", for
32952         openat_needs_fchdir.
32953
32954         faccessat: new module
32955         * modules/faccessat: New file.
32956         * lib/faccessat.c: Likewise.
32957         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32959         * modules/unistd (Makefile.am): Use it.
32960         * lib/unistd.in.h (faccessat): Declare it.
32961         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32962         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32963         * MODULES.html.sh (File system functions): Mention it.
32964         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32965         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32966
32967         euidaccess: prefer POSIX over non-standard implementation
32968         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32969         * lib/euidaccess.c (euidaccess): Use it if available.
32970
32971         openat: make template easier to use
32972         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32973         AT_FUNC_F2 to be undefined.
32974         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32975         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32976         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32977         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32978         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32979         Likewise.
32980         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32981         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32982         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32983         Likewise.
32984
32985         openat: declare in POSIX headers
32986         * NEWS: Mention this.
32987         * modules/openat (configure.ac): Declare witnesses.
32988         (Depends-on): Add fcntl-h, sys_stat, unistd.
32989         (Include): Mention correct headers.
32990         * modules/fcntl-h (Depends-on): Add link-warning.
32991         (Files): Add openat.m4.
32992         (Makefile.am): Substitute witnesses.
32993         * modules/sys_stat (Files, Makefile.am): Likewise.
32994         * modules/unistd (Files, Makefile.am): Likewise.
32995         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32996         (gl_OPENAT_DEFAULTS): New macro.
32997         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32999         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33000         (SYS_STAT_H): Remove unused variable.
33001         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33002         * lib/fcntl--.h (includes): Remove unneeded header.
33003         * lib/openat-safer.c (includes): Likewise.
33004         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33005         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33006         appropriate headers.
33007         (__OPENAT_PREFIX): Delete.
33008         * lib/fcntl.in.h (openat): Provide declaration.
33009         (AT_FDCWD): Fix Solaris bug.
33010         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33011         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33012         * lib/fchmodat.c (includes):  Adjust to find declaration.
33013         * lib/fchownat.c (includes): Likewise.
33014         * lib/mkdirat.c (includes): Likewise.
33015         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33016         still visible.
33017
33018 2009-09-02  Eric Blake  <ebb9@byu.net>
33019
33020         errno: use consistently
33021         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33022         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33023         * lib/canonicalize.c (ELOOP): Likewise.
33024         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33025         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33026         * lib/lchown.c (EOPNOTSUPP): Likewise.
33027         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33028         * lib/savewd.c (ESTALE): Likewise.
33029         * lib/settime.c (ENOSYS): Likewise.
33030         * lib/utimens.c (ENOSYS): Likewise.
33031         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33032         * lib/chdir-safer.c (ELOOP): Likewise.
33033         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33034         * modules/c-stack (Depends-on): Add errno.
33035         * modules/canonicalize (Depends-on): Likewise.
33036         * modules/chdir-safer (Depends-on): Likewise.
33037         * modules/fdopendir (Depends-on): Likewise.
33038         * modules/inet_ntop (Depends-on): Likewise.
33039         * modules/inet_pton (Depends-on): Likewise.
33040         * modules/lchown (Depends-on): Likewise.
33041         * modules/openat (Depends-on): Likewise.
33042         * modules/savewd (Depends-on): Likewise.
33043         * modules/settime (Depends-on): Likewise.
33044         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33045
33046         fts: avoid leaking fds
33047         * modules/fts (Depends-on): Add cloexec.
33048         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33049         flag.
33050
33051         fts: make directory fds more robust
33052         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33053         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33054
33055         backupfile, chdir-long, fts, savedir: make safer
33056         * lib/backupfile.c (includes): Use "dirent--.h", since
33057         numbered_backup can write to stderr during readdir.
33058         * lib/savedir.c (includes): Likewise.
33059         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33060         emulation can write to stderr on failure.
33061         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33062         * lib/getcwd.c: Document why opendir_safer is unused.
33063         * lib/glob.c: Likewise.
33064         * lib/scandir.c: Likewise.
33065         * lib/openat-proc.c: Likewise, for open_safer.
33066         * modules/backupfile (Depends-on): Add dirent-safer.
33067         * modules/savedir (Depends-on): Likewise.
33068         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33069         * modules/chdir-long (Depends-on): Add openat-safer.
33070
33071         openat-safer: new module
33072         * modules/openat-safer: New file.
33073         * lib/openat-safer.c: Likewise.
33074         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33075         * lib/fcntl-safer.h (openat_safer): Declare.
33076         * lib/fcntl--.h (openat): Override.
33077         * MODULES.html.sh (File descriptor based I/O): Mention it.
33078         * lib/openat.h: Add double-inclusion guards.
33079         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33080         "fcntl--.h", so we can implement openat.
33081         * modules/openat-safer-tests: New test.
33082         * tests/test-openat-safer.c: New file.
33083
33084         dirent-safer: new module
33085         * modules/dirent-safer: New file.
33086         * lib/dirent--.h: Likewise.
33087         * lib/dirent-safer.h: Likewise.
33088         * lib/opendir-safer.c: Likewise.
33089         * m4/dirent-safer.m4: Likewise.
33090         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33091         * modules/dirent-safer-tests: New test.
33092         * tests/test-dirent-safer.c: New file.
33093         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33094
33095         fdopendir: optimize on mingw
33096         * lib/unistd.in.h (_gl_directory_name): New prototype.
33097         * lib/fchdir.c (_gl_directory_name): Implement it.
33098         (fchdir): Use it to simplify implementation.
33099         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33100         fchdir, when available, to avoid calling [f]chdir().
33101
33102         fdopendir: split into its own module
33103         * lib/openat.c (fdopendir): Move...
33104         * lib/fdopendir.c: ...into new file.
33105         * modules/fdopendir: New module.
33106         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33107         * modules/openat (Depends-on): Add fdopendir.
33108         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33109         fdopendir here.
33110         * modules/savedir (Depends-on): Only need fdopendir, not full
33111         openat.
33112         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33113         * lib/openat.h (fdopendir): Drop prototype.
33114         * lib/dirent.in.h (fdopendir): Provide prototype.
33115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33116         * modules/dirent (Makefile.am): Substitute them.
33117         * MODULES.html.sh (File system functions): Mention it.
33118         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33119         * modules/fdopendir-tests: New file.
33120         * tests/test-fdopendir.c: Likewise.
33121
33122         fchdir: use more consistent macro convention
33123         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33124         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33125         REPLACE_FCHDIR, rather than relying on config.h macros.
33126         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33127         inside a single make-time REPLACE_FCHDIR block, rather than using
33128         the config.h FCHDIR_REPLACEMENT.
33129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33130         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33131         Manage fstat replacement.
33132         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33133         REPLACE_FCHDIR.
33134         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33135         (Makefile.am): Substitute REPLACE_FCHDIR.
33136         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33137         FCHDIR_REPLACEMENT.
33138         * lib/dup-safer.c (dup_safer): Likewise.
33139         * lib/dup2.c (rpl_dup2): Likewise.
33140         * lib/dup3.c (rpl_dup3): Likewise.
33141         * lib/open.c (rpl_open): Likewise.
33142
33143         fchdir: simplify error handling, and support dup3
33144         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33145         stdbool, malloc-posix, realloc-posix.
33146         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33147         (ensure_dirs_slot): Return false on allocation failure.
33148         (rpl_dup2): Delete.
33149         (_gl_register_dup): New function.
33150         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33151         (_gl_register_fd): Close fd on allocation failure.
33152         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33153         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33154         prototype.
33155         (rpl_dup2_fchdir): Delete prototype.
33156         * lib/open.c (open): Update caller.
33157         * lib/dup2.c (dup2): Track fchdir metadata.
33158         * lib/dup3.c (dup3): Likewise.
33159         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33161
33162 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33163
33164         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33165         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33166         don't pass arguments to AC_OUTPUT.
33167
33168 2009-09-02  Bruno Haible  <bruno@clisp.org>
33169
33170         * modules/mkdtemp (License): Relicense under LGPLv2+.
33171         Reported by Paolo Bonzini.
33172
33173 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33174
33175         Replace uses of obsolete autoconf macros in Jim's modules.
33176         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33177         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33178         can evoke a warning from autoconf when run with -Wobsolete
33179         enabled.  They were declared obsolete for good reasons (see
33180         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33181         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33182         should not continue using the deprecated macros.
33183         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33184         obsolete Autoconf macros with modern counterparts.
33185         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33186         * m4/dos.m4 (gl_AC_DOS): Likewise.
33187         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33188         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33189         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33190         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33191         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33192         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33193         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33194         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33195         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33196         Likewise.
33197         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33198         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33199         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33200         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33201         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33202         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33203
33204 2009-09-01  Eric Blake  <ebb9@byu.net>
33205
33206         fchdir: fix off-by-one bug in previous patch
33207         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33208         (_gl_unregister_fd): Delete useless if.
33209
33210 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33211
33212         maint.mk: sort the list of syntax-check rules
33213         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33214         easier to get a sense of progress when the rules are run sequentially
33215         and take a long time.
33216
33217 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33218
33219         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33220         * modules/netinet_in: Likewise.
33221         * modules/sys_file: Likewise.
33222         * modules/sys_ioctl: Likewise.
33223         * modules/sys_select: Likewise.
33224         * modules/sys_socket: Likewise.
33225         * modules/sys_stat: Likewise.
33226         * modules/sys_time: Likewise.
33227         * modules/sys_times: Likewise.
33228         * modules/sys_utsname: Likewise.
33229         * modules/sys_wait: Likewise.
33230
33231 2009-09-01  Jim Meyering  <meyering@redhat.com>
33232
33233         fts: help ensure that return values are not ignored
33234         * lib/fts_.h (__GNUC_PREREQ): Define.
33235         (__attribute_warn_unused_result__): Define.
33236         (fts_children, fts_close, fts_open, fts_read): Declare with
33237         __attribute_warn_unused_result__.
33238
33239         fts: fts_close now fails also when closing a dir file descriptor fails
33240         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33241         and propagate to caller, along with errno.
33242
33243         announce-gen: correct formatting in --help output
33244         * build-aux/announce-gen (usage): Move the one-line description in
33245         --help output "up", to where it belongs, just after Usage:.
33246
33247 2009-08-31  Eric Blake  <ebb9@byu.net>
33248
33249         fchdir: port to mingw
33250         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33251         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33252         opened, then use a substitute.
33253         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33254         replacement.
33255         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33256         (_gl_register_fd): No need to check stat if open already filters
33257         all directories.
33258         (fchdir): Fix error condition to match POSIX.
33259         * modules/fchdir (Depends-on): Add sys_stat.
33260         * doc/posix-functions/open.texi (open): Document the limitation.
33261         * modules/fchdir-tests: New file.
33262         * tests/test-fchdir.c: Likewise.
33263
33264         canonicalize: allow cross-testing from cygwin to mingw
33265         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33266         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33267         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33268         Likewise.
33269         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33270         target does not support symlinks.
33271         * tests/test-canonicalize-lgpl.sh: Likewise.
33272
33273         chown: avoid compilation warning on mingw
33274         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33275         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33276         mingw.
33277         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33278         * modules/chown (Depends-on): Add errno.
33279
33280 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33281
33282         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33283         command.
33284
33285 2009-08-31  Jim Meyering  <meyering@redhat.com>
33286
33287         canonicalize: remove useless initialization
33288         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33289         initialization of local, "end".
33290
33291 2009-08-30  Bruno Haible  <bruno@clisp.org>
33292
33293         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33294         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33295         ENOSYS.
33296
33297 2009-08-30  Bruno Haible  <bruno@clisp.org>
33298
33299         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33300         /usr/xpg4/bin/tr when it exists.
33301         * tests/test-pipe-filter-gi1.sh: Likewise.
33302
33303 2009-08-30  Bruno Haible  <bruno@clisp.org>
33304
33305         Work around deficient /usr/bin/id program on Solaris.
33306         * tests/test-file-has-acl.sh (ID): New variable.
33307         * tests/test-set-mode-acl.sh (ID): Likewise.
33308         * tests/test-copy-acl.sh (ID): Likewise.
33309         * tests/test-copy-file.sh (ID): Likewise.
33310
33311 2009-08-30  Bruno Haible  <bruno@clisp.org>
33312
33313         New module 'xstriconveh'.
33314         * lib/xstriconveh.h: New file.
33315         * lib/xstriconveh.c: New file.
33316         * modules/xstriconveh: New file.
33317
33318 2009-08-30  Bruno Haible  <bruno@clisp.org>
33319
33320         Make it easier to use mem_cd_iconveh.
33321         * lib/striconveh.h (iconveh_t): New type.
33322         (iconveh_open, iconveh_close): New declarations.
33323         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33324         with a single 'const iconveh_t *' argument.
33325         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33326         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33327         with a single 'const iconveh_t *' argument.
33328         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33329         * tests/test-striconveh.c (main): Update.
33330         * NEWS: Mention the change.
33331
33332 2009-08-30  Bruno Haible  <bruno@clisp.org>
33333
33334         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33335         problem.
33336
33337 2009-08-30  Bruno Haible  <bruno@clisp.org>
33338
33339         Work around iconv_open problem on Solaris.
33340         * lib/iconv_open-solaris.gperf: New file.
33341         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33342         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33343         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33344         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33345         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33346         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33347
33348 2009-08-29  Jim Meyering  <meyering@redhat.com>
33349
33350         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33351         * top/maint.mk (cvs-check): Remove target; it was just an alias
33352         to the better-named vc-diff-check.
33353         (maintainer-distcheck): Remove rule.  It was used only from
33354         the (alpha/beta/major) target, and all of its commands but one
33355         were coreutils-specific.
33356         (vc-dist): Remove rule.
33357         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33358         Run vc-diff-check, not vc-dist.
33359         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33360
33361 2009-08-27  Bruno Haible  <bruno@clisp.org>
33362
33363         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33364         of 0.
33365
33366 2009-08-27  Bruno Haible  <bruno@clisp.org>
33367
33368         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33369         compilers.
33370         * doc/func.texi: Document the SunPRO C bug.
33371
33372 2009-08-27  Bruno Haible  <bruno@clisp.org>
33373
33374         Fix link error on Solaris.
33375         * tests/test-parse-duration.c (xstrdup): Remove function.
33376
33377 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33378
33379         ignore-value: handle pointer types, too
33380         * lib/ignore-value.h (__attribute__): Remove definition.
33381         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33382         of a more concise and more-often effective "(void) i" statement.
33383         (ignore_ptr): New function to suppress warnings from functions that
33384         return pointers, and to make it explicit that one function doesn't
33385         handle all cases.
33386
33387 2009-08-25  Bruno Haible  <bruno@clisp.org>
33388
33389         dup2: work around a Linux bug.
33390         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33391         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33392         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33393         Reported by Simon Josefsson.
33394
33395 2009-08-25  Jim Meyering  <meyering@redhat.com>
33396
33397         libguestfs uses gnulib
33398         * users.txt: Add libguestfs.
33399
33400 2009-08-24  Eric Blake  <ebb9@byu.net>
33401
33402         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33403         * lib/pipe2.c (includes): Add binary-io.h.
33404         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33405
33406 2009-08-24  Bruno Haible  <bruno@clisp.org>
33407
33408         Tolerate declared but missing accept4 syscall.
33409         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33410         available.
33411         * lib/sys_socket.in.h (accept4): If the function is already present,
33412         override it.
33413         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33414         * modules/accept4 (Makefile.am): Compile accept4.c always.
33415         Reported by Paolo Bonzini and Eric Blake.
33416
33417 2009-08-23  Bruno Haible  <bruno@clisp.org>
33418
33419         New module 'accept4'.
33420         * lib/sys_socket.in.h (accept4): New declaration.
33421         * lib/accept4.c: New file.
33422         * m4/accept4.m4: New file.
33423         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33424         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33425         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33426         HAVE_ACCEPT4.
33427         * modules/accept4: New file.
33428         * doc/glibc-functions/accept4.texi: Mention the new module.
33429
33430 2009-08-24  Jim Meyering  <meyering@redhat.com>
33431
33432         progname: also set global program_invocation_name, when possible
33433         Before this change, a libtool-enabled program that calls glibc's
33434         error function would report the program name as
33435         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33436         * modules/progname (configure.ac): Check for a declaration of
33437         program_invocation_name.
33438         * lib/progname.c:  Include <errno.h>.
33439         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33440         Set program_invocation_name.
33441
33442 2009-08-23  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/dup3.c: Include <string.h>.
33445
33446 2009-08-23  Bruno Haible  <bruno@clisp.org>
33447
33448         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33449         * lib/pipe2.c (pipe2): Likewise.
33450         Suggested by Eric Blake.
33451
33452 2009-08-23  Bruno Haible  <bruno@clisp.org>
33453
33454         Tolerate declared but missing dup3 syscall.
33455         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33456         * lib/unistd.in.h (dup3): If the function is already present,
33457         override it.
33458         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33459         * modules/dup3 (Makefile.am): Compile dup3.c always.
33460         Reported by Paolo Bonzini.
33461
33462 2009-08-23  Bruno Haible  <bruno@clisp.org>
33463
33464         Tolerate declared but missing pipe2 syscall.
33465         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33466         available.
33467         * lib/unistd.in.h (pipe2): If the function is already present,
33468         override it.
33469         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33470         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33471         Reported by Paolo Bonzini.
33472
33473 2009-08-23  Bruno Haible  <bruno@clisp.org>
33474
33475         * lib/pipe2.c (pipe2): Move #ifs inside function.
33476
33477 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33478
33479         quotearg: document limitations of quote_these_too
33480         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33481         those limitations are created.
33482         * lib/quotearg.h (set_char_quoting): Document that digits and
33483         letters that are special after backslash are not permitted.
33484         (quotearg_char): Cross-reference set_char_quoting documentation.
33485
33486 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33487
33488         quotearg: implement custom_quoting_style
33489         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33490         right_quote fields.
33491         (set_custom_quoting): New public function.
33492         (quotearg_buffer_restyled): Add left_quote and right_quote
33493         arguments, handle them very much like locale quoting, and update
33494         all uses.
33495         (quotearg_n_custom): New public function.
33496         (quotearg_n_custom_mem): New public function.
33497         (quotearg_custom): New public function.
33498         (quotearg_custom_mem): New public function.
33499         * lib/quotearg.h: Prototype and document new public functions.
33500         (enum quoting_style): For escape_quoting_style and
33501         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33502         ignored even though they're otherwise like c_quoting_style.
33503         Add custom_quoting_style member and document with comparison to
33504         clocale_quoting_style.
33505         * tests/test-quotearg.c (custom_quotes): New array.
33506         (custom_results): New array.
33507         (main): Extend to test custom quoting.
33508
33509 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33510
33511         quotearg: fix right quote escaping when it's in quote_these_too
33512         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33513         quote, be sure to prepend only one backslash.
33514         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33515         (main): Test it.
33516
33517 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33518
33519         quotearg-tests: test escaping of embedded locale quotes
33520         * tests/test-quotearg.c (struct result_strings): Add member for
33521         new input.
33522         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33523         (inputs): Add new input.
33524         (results_g): Add expected results.
33525         (flag_results): Likewise.
33526         (locale_results): Likewise.
33527         (compare_strings): Check those.
33528
33529 2009-08-23  Bruno Haible  <bruno@clisp.org>
33530
33531         Tests for module 'dup3'.
33532         * modules/dup3-tests: New file.
33533         * tests/test-dup3.c: New file.
33534
33535         New module 'dup3'.
33536         * lib/unistd.in.h (dup3): New declaration.
33537         * lib/dup3.c: New file.
33538         * m4/dup3.m4: New file.
33539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33540         HAVE_DUP3.
33541         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33542         * modules/dup3: New file.
33543         * doc/glibc-functions/dup3.texi: Mention the new module.
33544
33545 2009-08-23  Bruno Haible  <bruno@clisp.org>
33546
33547         Tweak the dup2 test.
33548         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33549         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33550         the test file is still empty. Fix argument order of lseek.
33551
33552 2009-08-23  Bruno Haible  <bruno@clisp.org>
33553
33554         Avoid test link errors when the modules getopt-gnu, gettext are used.
33555         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33557
33558 2009-08-23  Bruno Haible  <bruno@clisp.org>
33559
33560         Fix getdtablesize() on mingw.
33561         * lib/getdtablesize.c (getdtablesize): Implement differently.
33562         * lib/unistd.in.h (getdtablesize): Improve comment.
33563
33564 2009-08-23  Bruno Haible  <bruno@clisp.org>
33565
33566         New module 'mkostemp'.
33567         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33568         * lib/stdlib.in.h (mksotemp): New declaration.
33569         * lib/mkostemp.c: New file, from glibc with modifications.
33570         * lib/tempname.h (GT_FILE): Remove outdated comment.
33571         (gen_tempname): Add flags argument.
33572         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33573         (__GT_FILE): Map to 1.
33574         (small_open, large_open): Remove macros.
33575         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33576         * lib/mkstemp.c (mkstemp): Update.
33577         * lib/mkdtemp.c (mkdtemp): Likewise.
33578         * m4/mkostemp.m4: New file.
33579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33580         HAVE_MKOSTEMP.
33581         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33582         HAVE_MKOSTEMP.
33583         * modules/mkostemp: New file, based on modules/mkstemp.
33584         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33585         * NEWS: Mention the change.
33586
33587 2009-08-23  Bruno Haible  <bruno@clisp.org>
33588
33589         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33590         Reported by Eric Blake.
33591
33592 2009-08-23  Bruno Haible  <bruno@clisp.org>
33593
33594         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33595         Reported by Eric Blake.
33596
33597 2009-08-23  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33600         * modules/pipe2 (Depends-on): Likewise.
33601
33602 2009-08-23  Eric Blake  <ebb9@byu.net>
33603
33604         fcntl-h: add O_TTY_INIT support
33605         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33606         * tests/test-fcntl-h.c (o): Test it.
33607         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33608
33609         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33610         * modules/fcntl: Move <fcntl.h> header replacement...
33611         * modules/fcntl-h: ...to new name, so as not to collide with
33612         like-named function.
33613         * tests/test-fcntl.c: Rename...
33614         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33615         * modules/fcntl-tests: Rename...
33616         * modules/fcntl-h-tests: ...to this.  Update test file name.
33617         * modules/chdir-long (Depends-on): Update clients.
33618         * modules/chdir-safer (Depends-on): Likewise.
33619         * modules/fcntl-safer (Depends-on): Likewise.
33620         * modules/fts (Depends-on): Likewise.
33621         * modules/mkancesdirs (Depends-on): Likewise.
33622         * modules/mkdir-p (Depends-on): Likewise.
33623         * modules/open (Depends-on): Likewise.
33624         * modules/savewd (Depends-on): Likewise.
33625         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33626         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33627
33628 2009-08-22  Bruno Haible  <bruno@clisp.org>
33629
33630         * modules/binary-io (License): Relicense under LGPL.
33631         * modules/pipe2 (License): Likewise.
33632
33633 2009-08-22  Bruno Haible  <bruno@clisp.org>
33634
33635         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33636         return value.
33637         * lib/pipe-filter-gi.c (filter_init): Likewise.
33638         Reported by Eric Blake.
33639
33640 2009-08-22  Bruno Haible  <bruno@clisp.org>
33641
33642         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33643         * modules/pipe (Depends-on): Add pipe2.
33644
33645 2009-08-22  Bruno Haible  <bruno@clisp.org>
33646
33647         Tests for module 'pipe2'.
33648         * modules/pipe2-tests: New file.
33649         * tests/test-pipe2.c: New file.
33650
33651         New module 'pipe2'.
33652         * lib/unistd.in.h (pipe2): New declaration.
33653         * lib/pipe2.c: New file.
33654         * m4/pipe2.m4: New file.
33655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33656         HAVE_PIPE2.
33657         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33658         * modules/pipe2: New file.
33659         * doc/glibc-functions/pipe2.texi: Mention the new module.
33660
33661 2009-08-22  Bruno Haible  <bruno@clisp.org>
33662
33663         Reference some new glibc functions.
33664         * doc/glibc-functions/accept4.texi: New file.
33665         * doc/glibc-functions/dup3.texi: New file.
33666         * doc/glibc-functions/mkostemp.texi: New file.
33667         * doc/glibc-functions/pipe2.texi: New file.
33668         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33669         (Glibc sys/socket.h): Refer to accept4.
33670         (Glibc unistd.h): Refer to dup3, pipe2.
33671         Reported by Eric Blake.
33672
33673 2009-08-22  Jim Meyering  <meyering@redhat.com>
33674             Bruno Haible  <bruno@clisp.org>
33675
33676         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33677         This makes it so packages using automake-1.11's silent-rules option
33678         can print e.g., a single "GEN    configmake.h" line, rather than
33679         the 30+ statements that perform the job.  If you want to see the
33680         actual commands, you can still run "make V=1".
33681         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33682         so that make output is abbreviated when those variables are defined
33683         appropriately.
33684         * modules/argz: Likewise.
33685         * modules/arpa_inet: Likewise.
33686         * modules/byteswap: Likewise.
33687         * modules/configmake: Likewise.
33688         * modules/dirent: Likewise.
33689         * modules/errno: Likewise.
33690         * modules/fcntl: Likewise.
33691         * modules/float: Likewise.
33692         * modules/fnmatch: Likewise.
33693         * modules/getopt-posix: Likewise.
33694         * modules/glob: Likewise.
33695         * modules/iconv_open: Likewise.
33696         * modules/inttypes: Likewise.
33697         * modules/localcharset: Likewise.
33698         * modules/locale: Likewise.
33699         * modules/math: Likewise.
33700         * modules/netdb: Likewise.
33701         * modules/netinet_in: Likewise.
33702         * modules/poll: Likewise.
33703         * modules/posix_spawnp-tests: Likewise.
33704         * modules/sched: Likewise.
33705         * modules/search: Likewise.
33706         * modules/selinux-h: Likewise.
33707         * modules/signal: Likewise.
33708         * modules/spawn: Likewise.
33709         * modules/stdarg: Likewise.
33710         * modules/stdbool: Likewise.
33711         * modules/stddef: Likewise.
33712         * modules/stdint: Likewise.
33713         * modules/stdio: Likewise.
33714         * modules/stdlib: Likewise.
33715         * modules/string: Likewise.
33716         * modules/strings: Likewise.
33717         * modules/sys_file: Likewise.
33718         * modules/sys_ioctl: Likewise.
33719         * modules/sys_select: Likewise.
33720         * modules/sys_socket: Likewise.
33721         * modules/sys_stat: Likewise.
33722         * modules/sys_time: Likewise.
33723         * modules/sys_times: Likewise.
33724         * modules/sys_utsname: Likewise.
33725         * modules/sys_wait: Likewise.
33726         * modules/sysexits: Likewise.
33727         * modules/time: Likewise.
33728         * modules/unistd: Likewise.
33729         * modules/wchar: Likewise.
33730         * modules/wctype: Likewise.
33731
33732 2009-08-22  Jim Meyering  <meyering@redhat.com>
33733
33734         announce-gen: detect write failure
33735         * build-aux/announce-gen: Add Coda at end.
33736         Remove equivalent-but-more-verbose block at top.
33737
33738 2009-08-19  Akim Demaille  <demaille@gostai.com>
33739
33740         bootstrap: --help to stdout.
33741         * bootstrap (usage): Don't send --help to stderr.
33742         Use a here doc instead of a long string.
33743
33744 2009-08-21  Eric Blake  <ebb9@byu.net>
33745
33746         test-popen-safer: split from test-popen
33747         * tests/test-popen.c (main): Move...
33748         * tests/test-popen.h: ...into new file.
33749         * tests/test-popen-safer2.c: New file.
33750         * modules/popen-tests (Files): Add test-popen.h.
33751         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33752         Suggested by Bruno Haible.
33753
33754         test-fcntl-safer: split from test-open
33755         * tests/test-open.c (main): Move...
33756         * tests/test-open.h: ...into new file.
33757         * tests/test-fcntl-safer.c: New file.
33758         * modules/open-tests (Files): Add test-open.h.
33759         * modules/fcntl-safer-tests: New file.
33760         Suggested by Bruno Haible.
33761
33762         test-fopen-safer: split from test-fopen
33763         * tests/test-fopen.c (main): Move...
33764         * tests/test-fopen.h: ...into new file.
33765         * tests/test-fopen-safer.c: New file.
33766         * modules/fopen-tests (Files): Add test-fopen.h.
33767         * modules/fopen-safer-tests: New file.
33768         Suggested by Bruno Haible.
33769
33770 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33771
33772         popen-safer: test O_CLOEXEC at run-time.
33773         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33774
33775 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33776
33777         fcntl: move more flags to the header
33778         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33779         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33780         * lib/fcntl.in.h: Do both things here.
33781
33782 2009-08-21  Jim Meyering  <meyering@redhat.com>
33783
33784         consistently remove $@-t before redirecting to it
33785         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33786         * modules/alloca-opt: Likewise.
33787         * modules/byteswap: Likewise.
33788         * modules/fnmatch: Likewise.
33789         * modules/getopt-posix: Likewise.
33790         * modules/glob: Likewise.
33791         * modules/poll: Likewise.
33792         * modules/posix_spawnp-tests: Likewise.
33793         * modules/sys_socket: Likewise.
33794         * modules/sysexits: Likewise.
33795
33796 2009-08-21  Eric Blake  <ebb9@byu.net>
33797
33798         popen: simplify access to original popen
33799         * lib/popen.c (rpl_popen): No need to worry about popen being a
33800         macro.
33801         Reported by Bruno Haible.
33802
33803 2009-08-20  Eric Blake  <ebb9@byu.net>
33804
33805         build: avoid some compiler warnings
33806         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33807         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33808         type.
33809         (new_exclude_segment, excluded_file_pattern_p)
33810         (excluded_file_name_p): Reduce scope.
33811         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33812         old-style declaration.
33813
33814 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33815
33816         * tests/test-exclude1.sh: Handle Windows EOL.
33817         * tests/test-exclude2.sh: Likewise.
33818         * tests/test-exclude3.sh: Likewise.
33819         * tests/test-exclude4.sh: Likewise.
33820         * tests/test-exclude5.sh: Likewise.
33821         * tests/test-exclude6.sh: Likewise.
33822         * tests/test-exclude7.sh: Likewise.
33823
33824 2009-08-19  Akim Demaille  <demaille@gostai.com>
33825
33826         bootstrap: find sha1sum when named gsha1sum.
33827         * bootstrap (find_tool): New.
33828         ($SHA1SUM): New.
33829         Use it.
33830
33831 2009-08-20  Jim Meyering  <meyering@redhat.com>
33832
33833         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33834         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33835         expression that converts "." in a file name to "\." in the resulting
33836         regexp.  Start with a dummy statement, so that prior shell variable
33837         definitions are expanded portably.  Reported by Simon Josefsson.
33838
33839 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33840
33841         Fix polling for writeability of a screen buffer.
33842         * lib/poll.c: Distinguish input and screen buffers for the
33843         Win32 implementation.
33844         * lib/select.c: Likewise.
33845
33846 2009-08-19  Eric Blake  <ebb9@byu.net>
33847
33848         popen-safer: prevent popen from clobbering std descriptors
33849         * modules/popen-safer: New file.
33850         * lib/popen-safer.c: Likewise.
33851         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33852         * lib/stdio--.h (popen): Provide override.
33853         * lib/stdio-safer.h (popen_safer): Provide declaration.
33854         * tests/test-popen.c (includes): Partially test this.
33855         * modules/popen-safer-tests: New file, for more tests.
33856         * tests/test-popen-safer.c: Likewise.
33857         * MODULES.html.sh (file stream based Input/Output): Mention it.
33858
33859         tests: test some of the *-safer modules
33860         * modules/fopen-safer (Depends-on): Add fopen.
33861         * modules/fcntl-safer (Depends-on): Add fcntl.
33862         * modules/stdlib-safer (Depends-on): Add stdlib.
33863         (configure.ac): Set indicator.
33864         * modules/unistd-safer (configure.ac): Likewise.
33865         * modules/tmpfile-safer (configure.ac): Likewise.
33866         (Depends-on): Add tmpfile.
33867         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33868         active.
33869         * tests/test-fopen.c (includes): Test safer versions when they are
33870         in use.
33871         * tests/test-open.c (includes): Likewise.
33872
33873         popen: fix cygwin 1.5 bug when stdin closed
33874         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33875         * modules/popen: New file.
33876         * modules/popen-tests: Likewise.
33877         * tests/test-popen.c: Likewise.
33878         * m4/popen.m4: Likewise.
33879         * lib/popen.c: Likewise.
33880         * lib/stdio.in.h (popen): New declaration.
33881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33882         * modules/stdio (Makefile.am): Likewise.
33883         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33884
33885 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33886
33887         maint.mk: give full control over update-copyright exclusions
33888         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33889         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33890         (update-copyright): Don't force inclusion of top-level
33891         ChangeLog.  Don't force exclusion of all COPYING files, but make
33892         them the default exclusion instead.
33893
33894 2009-08-16  Bruno Haible  <bruno@clisp.org>
33895
33896         Fix test failures on Solaris 10.
33897         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33898         tests when Solaris iconv() is used.
33899         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33900         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33901         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33902         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33903         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33904
33905 2009-08-16  Bruno Haible  <bruno@clisp.org>
33906
33907         Fix test failures on Solaris 10.
33908         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33909         'tr' program and pass it as first argument.
33910         * tests/test-pipe-filter-gi1.sh: Likewise.
33911         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33912         program as first argument.
33913         * tests/test-pipe-filter-gi1.c (main): Likewise.
33914
33915 2009-08-16  Eric Blake  <ebb9@byu.net>
33916
33917         fpurge: fix previous commits
33918         * modules/fpurge (Makefile.am): Make replacement conditional,
33919         partially reverting 2007-04-29 change; missed in previous
33920         attempt.
33921         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33922         is missing.
33923
33924 2009-08-16  Bruno Haible  <bruno@clisp.org>
33925
33926         Clarify fpurge's effect on the file position.
33927         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33928         * tests/test-fpurge.c (main): Make a second pass for checking the file
33929         position.
33930
33931 2009-08-16  Bruno Haible  <bruno@clisp.org>
33932
33933         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33934         declaration of fpurge is missing.
33935         * tests/test-fpurge.c (main): Check that the file has not more contents
33936         than expected. Close the file before removing it.
33937
33938 2009-08-15  Eric Blake  <ebb9@byu.net>
33939
33940         fpurge: don't wrap working cygwin implementation
33941         * lib/fpurge.c (fpurge): Fix comment typo.
33942         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33943         1.7 to avoid replacement.
33944         * tests/test-fpurge.c (main): Enhance test.
33945
33946 2009-08-15  Eric Blake  <ebb9@byu.net>
33947         and Jim Meyering  <meyering@redhat.com>
33948
33949         test-update-copyright: skip if perl is insufficient
33950         * tests/test-update-copyright.sh: Failure to run maintainer tool
33951         should not cause testsuite failure on cygwin 1.5.
33952
33953 2009-08-14  Eric Blake  <ebb9@byu.net>
33954
33955         doc: mention more functions added in cygwin 1.7.0
33956         * doc/posix-headers/limits.texi (limits.h): Update for recent
33957         cygwin additions.
33958         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33959         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33960         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33961         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33962         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33963
33964 2009-08-14  Eric Blake  <ebb9@byu.net>
33965
33966         maint.mk: simplify update-copyright rule
33967         * top/maint.mk (update-copyright-local): Delete, and document how
33968         to do it in cfg.mk instead.
33969         (update-copyright-exclude-regexp): Delete, and document how to do
33970         it in .x-update-copyright instead.
33971         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33972         exclude ChangeLog.
33973
33974 2009-08-14  Bruno Haible  <bruno@clisp.org>
33975
33976         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33977
33978 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33979
33980         maint.mk: support update-copyright-env
33981         * top/maint.mk (update-copyright-env): Define place-holder.
33982         (update-copyright): Expand $(update-copyright-env) before
33983         invoking update-copyright.
33984
33985 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33986
33987         update-copyright: implement forced reformatting
33988         * build-aux/update-copyright: Implement and document
33989         UPDATE_COPYRIGHT_FORCE.
33990         * tests/test-update-copyright.sh: Test it.
33991
33992 2009-08-14  Eric Blake  <ebb9@byu.net>
33993         and Bruno Haible  <bruno@clisp.org>
33994
33995         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33996         * tests/test-locale.c: Revert previous patch related to NULL.
33997         * tests/test-stdio.c: Likewise.
33998         * tests/test-stdlib.c: Likewise.
33999         * tests/test-string.c: Likewise.
34000         * tests/test-unistd.c: Likewise.
34001         * modules/time-tests (Depends-on): Add verify.
34002         * modules/wchar-tests (Depends-on): Likewise.
34003         * tests/test-time.c: Test for NULL compliance.
34004         * tests/test-wchar.c: Likewise.
34005         * modules/locale (Depends-on): Add stddef.
34006         * modules/stdio (Depends-on): Likewise.
34007         * modules/stdlib (Depends-on): Likewise.
34008         * modules/string (Depends-on): Likewise.
34009         * modules/time (Depends-on): Likewise.
34010         * modules/unistd (Depends-on): Likewise.
34011         * modules/wchar (Depends-on): Likewise.
34012         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34013         * lib/stdlib.in.h (includes): Likewise.
34014         * lib/string.in.h (includes): Likewise.
34015         * lib/time.in.h (includes): Likewise.
34016         * lib/unistd.in.h (includes): Likewise.
34017         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34018         replaced.
34019         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34020         * m4/stddef_h.m4: New file.
34021         * modules/stddef: Likewise.
34022         * lib/stddef.in.h: Likewise.
34023         * modules/stddef-tests: Likewise.
34024         * tests/test-stddef.c: Likewise.
34025         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34026         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34027         * doc/posix-headers/locale.texi (locale.h): Likewise.
34028         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34029         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34030         * doc/posix-headers/string.texi (string.h): Likewise.
34031         * doc/posix-headers/time.texi (time.h): Likewise.
34032         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34033         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34034
34035 2009-08-14  Eric Blake  <ebb9@byu.net>
34036
34037         doc: improve git diff of texinfo files
34038         * .gitattributes: Add rule for *.texi files, with hint on how to
34039         use it.
34040         Copied from m4, and based on a report by Bruno Haible.
34041
34042 2009-08-14  Bruno Haible  <bruno@clisp.org>
34043
34044         Disable multithread support by default on Cygwin 1.5.x for real.
34045         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34046
34047 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34048
34049         update-copyright: much ado about intervals
34050         * build-aux/update-copyright: Implement and document
34051         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34052         of copyright year intervals.
34053         Also, document UPDATE_COPYRIGHT_YEAR.
34054         * tests/test-update-copyright.sh: Test it.
34055
34056         update-copyright: convert 2-digit to 4-digit years
34057         * build-aux/update-copyright: Implement and document.
34058         * tests/test-update-copyright.sh: Update.
34059
34060 2009-08-14  Jim Meyering  <meyering@redhat.com>
34061
34062         test-exclude: avoid coreutils "make check" failure
34063         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34064         just as in test-argmatch.c.
34065
34066 2009-08-13  Eric Blake  <ebb9@byu.net>
34067
34068         test-dup2: fix bad assumption
34069         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34070         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34071
34072         test-version-etc: fix CRLF portability issue
34073         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34074         recognize \r.
34075         * tests/test-argp-version-etc-1.sh: Likewise.
34076
34077         getopt: update client modules
34078         * modules/argp (Depends-on): Use getopt-gnu.
34079         * modules/git-merge-changelog (Depends-on): Likewise.
34080         * modules/long-options (Depends-on): Likewise.
34081         * modules/xstrtol (Depends-on): Likewise.
34082
34083 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34084
34085         * tests/test-version-etc.sh: Don't fail on different
34086         project/version.  Don't fail on CRLF differences.  Rewrite to use
34087         multiple -e instead of multiple sed forks, suggested by Eric Blake
34088         <ebb9@byu.net>.
34089         * tests/test-argp-version-etc-1.sh: Likewise.
34090
34091 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34092
34093         * tests/test-version-etc.sh: Don't fail on different
34094         project/version.
34095
34096 2009-08-12  Bruno Haible  <bruno@clisp.org>
34097
34098         Tests for modules 'getopt-posix', 'getopt-gnu'.
34099         * modules/getopt-posix-tests: New file.
34100         * tests/test-getopt.c: New file.
34101         * tests/test-getopt.h: New file.
34102         * tests/test-getopt_long.h: New file.
34103
34104         New modules 'getopt-posix', 'getopt-gnu'.
34105         * modules/getopt-gnu: New file, renamed from modules/getopt.
34106         * modules/getopt-posix: New file.
34107         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34108         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34109         (gl_GETOPT): Remove macro.
34110         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34111         Disable the test against BSD systems that declare optreset. Test
34112         against mingw bug. Test against lack of support of optional arguments
34113         on many platforms.
34114         * doc/glibc-headers/getopt.texi: Update module name and list of
34115         relevant platforms.
34116         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34117         'getopt-gnu' and more portability problems.
34118         * NEWS: Mention the changes.
34119
34120 2009-08-12  Bruno Haible  <bruno@clisp.org>
34121
34122         Ensure that optarg etc. get declared by <unistd.h>.
34123         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34124         AC_USE_SYSTEM_EXTENSIONS.
34125         * modules/getopt (Depends-on): Add 'extensions'.
34126
34127 2009-08-12  Bruno Haible  <bruno@clisp.org>
34128
34129         Avoid test link errors.
34130         * modules/pipe-filter-ii-tests (Makefile.am): Define
34131         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34132         * modules/pipe-filter-gi-tests (Makefile.am): Define
34133         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34135
34136 2009-08-12  Bruno Haible  <bruno@clisp.org>
34137
34138         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34139         gl_GETOPT_SUBSTITUTE before.
34140         (gl_GETOPT): Use it.
34141         * m4/argp.m4 (gl_ARGP): Update.
34142         Reported by Sergey Poznyakoff.
34143
34144         * m4/getopt.m4: Reorder macros.
34145         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34146         (gl_GETOPT_SUBSTITUTE): Remove macro.
34147
34148 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34149
34150         Minor improvement in gitlog-to-changelog
34151
34152         * build-aux/gitlog-to-changelog: New option `--format' makes
34153         output format string configurable.
34154
34155 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34156
34157         Optimize exclude: use hash tables for non-wildcard patterns.
34158
34159         * lib/exclude.c: Include hash.h and mbuiter.h
34160         (struct exclude_pattern, exclude_segment): New data types.
34161         (struct exclude): Rewrite.
34162         (fnmatch_pattern_has_wildcards): New function.
34163         (new_exclude_segment, free_exclude_segment): New functions.
34164         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34165         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34166         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34167         * modules/exclude: Depend on hash and mbuiter.
34168
34169         * modules/exclude-tests: New file.
34170         * tests/test-exclude.c: New file.
34171         * tests/test-exclude1.sh: New file.
34172         * tests/test-exclude2.sh: New file.
34173         * tests/test-exclude3.sh: New file.
34174         * tests/test-exclude4.sh: New file.
34175         * tests/test-exclude5.sh: New file.
34176         * tests/test-exclude6.sh: New file.
34177         * tests/test-exclude7.sh: New file.
34178
34179 2009-08-12  Bruno Haible  <bruno@clisp.org>
34180
34181         Ensure that getopt() gets declared by <unistd.h>.
34182         * lib/unistd.in.h: Conditionally include getopt.h.
34183         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34184         Set GNULIB_UNISTD_H_GETOPT.
34185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34186         GNULIB_UNISTD_H_GETOPT.
34187         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34188
34189 2009-08-12  Bruno Haible  <bruno@clisp.org>
34190
34191         Clarify logic.
34192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34193         gl_replace_getopt instead of GETOPT_H.
34194
34195 2009-08-12  Bruno Haible  <bruno@clisp.org>
34196
34197         * m4/getopt.m4: Add comments.
34198
34199 2009-08-12  Bruno Haible  <bruno@clisp.org>
34200
34201         Disable multithread support by default on Cygwin 1.5.x.
34202         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34203         set gl_use_threads=no if not specified otherwise.
34204
34205 2009-08-11  Bruno Haible  <bruno@clisp.org>
34206
34207         Avoid compilation error on NetBSD 5.0.
34208         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34209         * tests/test-stdio.c: Likewise.
34210         * tests/test-stdlib.c: Likewise.
34211         * tests/test-string.c: Likewise.
34212         * tests/test-unistd.c: Likewise.
34213         Reported by Greg Troxel <gdt@ir.bbn.com>
34214         at <https://savannah.gnu.org/support/?106973>.
34215
34216 2009-08-11  Bruno Haible  <bruno@clisp.org>
34217
34218         * modules/dup2-tests (Depends-on): Remove close.
34219
34220         Undo 2009-07-19 commit.
34221         * modules/acl-tests (Depends-on): Remove close.
34222         * modules/binary-io-tests (Depends-on): Likewise.
34223         * modules/closein-tests (Depends-on): Likewise.
34224         * modules/flock-tests (Depends-on): Likewise.
34225         * modules/fsync-tests (Depends-on): Likewise.
34226         * modules/lseek-tests (Depends-on): Likewise.
34227         * modules/pipe-tests (Depends-on): Likewise.
34228         * modules/posix_spawn-tests (Depends-on): Likewise.
34229         * modules/posix_spawnp-tests (Depends-on): Likewise.
34230         * modules/stat-time-tests (Depends-on): Likewise.
34231         * modules/yesno-tests (Depends-on): Likewise.
34232
34233 2009-08-10  Bruno Haible  <bruno@clisp.org>
34234
34235         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34236
34237 2009-08-10  Bruno Haible  <bruno@clisp.org>
34238
34239         Fix a gcc warning.
34240         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34241
34242 2009-08-10  Bruno Haible  <bruno@clisp.org>
34243
34244         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34245         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34246         not only the first time.
34247         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34248         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34249         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34250         is 1, not only the the first time.
34251
34252 2009-08-10  Bruno Haible  <bruno@clisp.org>
34253
34254         Make it possible to use module 'gethostname' without module 'close'.
34255         * lib/unistd.in.h (close): Evoke a link error only if
34256         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34258         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34259         * modules/unistd (Makefile.am): Substitute
34260         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34261         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34262         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34264         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34265         * modules/sys_ioctl (Makefile.am): Substitute
34266         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34267         * modules/socket (configure.ac): On native Windows, set
34268         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34269         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34270         Reported by Sam Steingold <sds@gnu.org>.
34271
34272 2009-08-10  Bruno Haible  <bruno@clisp.org>
34273
34274         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34275         * modules/ioctl (configure.ac): Likewise.
34276
34277 2009-08-10  Bruno Haible  <bruno@clisp.org>
34278
34279         Avoid collision between gnulib wrapper and libintl wrapper.
34280         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34281         already defined in intl/printf.c.
34282         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34283         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34284
34285 2009-08-09  Bruno Haible  <bruno@clisp.org>
34286
34287         Make <sys/select.h> really self-contained, also on Solaris 10.
34288         * lib/sys_select.in.h: Include <string.h>.
34289         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34290         Solaris 10 problem.
34291         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34292         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34293         Reported by Jim Meyering.
34294
34295 2009-08-09  Bruno Haible  <bruno@clisp.org>
34296
34297         Avoid warnings from 'aclocal' that are due to a use of macro name
34298         AM_XGETTEXT_OPTION that is not defined in automake.
34299         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34300         automake.
34301         * modules/error (configure.ac): Likewise.
34302         * modules/propername (configure.ac): Likewise.
34303         * modules/vasprintf (configure.ac): Likewise.
34304         * modules/verror (configure.ac): Likewise.
34305         * modules/xprintf (configure.ac): Likewise.
34306         * modules/xvasprintf (configure.ac): Likewise.
34307
34308 2009-08-08  Bruno Haible  <bruno@clisp.org>
34309
34310         Avoid compilation error in C++ mode.
34311         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34312         Reported by Sam Steingold <sds@gnu.org>.
34313
34314 2009-08-08  Bruno Haible  <bruno@clisp.org>
34315
34316         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34317         for the various Unix platforms.
34318         * doc/posix-headers/limits.texi: Update platforms list regarding
34319         HOST_NAME_MAX.
34320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34321
34322 2009-08-07  Jim Meyering  <meyering@redhat.com>
34323
34324         selinux-at: fix typo in a comment
34325         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34326         Spotted by Paolo Bonzini.
34327
34328         selinux-at: remove redundant m4 code, add documentation
34329         * modules/selinux-at (configure.ac): Remove redundant code.
34330         LIB_SELINUX is already set via the dependent module, selinux-h.
34331         (Include): Add quotes around selinux-at.h.
34332         * lib/selinux-at.h: Add documentation.
34333         Reported by Bruno Haible in
34334         http://marc.info/?l=gnulib-bug&m=124958988300749
34335
34336 2009-08-07  Bruno Haible  <bruno@clisp.org>
34337
34338         Avoid link error on MacOS X 10.3 and 10.4.
34339         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34340         on non-ELF systems.
34341         * lib/argp-pv.c (argp_program_version): Likewise.
34342         Reported by Simon Josefsson.
34343
34344 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34345
34346         * tests/test-version-etc.sh: Use $EXEEXT.
34347
34348 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34349
34350         update-copyright: update documentation to point to maint.mk
34351         * build-aux/update-copyright: Here.
34352
34353 2009-08-06  Jim Meyering  <meyering@redhat.com>
34354
34355         maint.mk: support update-copyright-local
34356         * top/maint.mk (update-copyright-local): Define place-holder.
34357         (update-copyright): Depend on $(update-copyright-local).
34358
34359 2009-08-06  Jim Meyering  <meyering@redhat.com>
34360
34361         selinux-at: new module
34362         Initially written for coreutils, this module will soon be
34363         used by findutils, too.
34364         * MODULES.html.sh [Misc]: Add selinux-at.
34365         * lib/selinux-at.h: New file, from coreutils.
34366         * lib/selinux-at.c: Likewise.
34367         * modules/selinux-at: Likewise.
34368         (License): Change from LGPL to GPL, since it depends
34369         on the GPL'd openat module.
34370
34371         doc: update README
34372         * README: Remove references to cogito.
34373         Remove cvs-repo-updating instructions from 2007.
34374         Don't imply that CVS is better if you have limited disk space.
34375
34376 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34377
34378         update-copyright: support C-style comments
34379         * build-aux/update-copyright: Implement and document.
34380         * tests/test-update-copyright.sh: Test.
34381
34382 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34383
34384         update-copyright: support omitted "(C)"
34385         * build-aux/update-copyright: Implement and document.  Also,
34386         allow variable whitespace before "(C)".
34387         * tests/test-update-copyright.sh: Test.
34388
34389 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34390
34391         update-copyright: don't trip on non-FSF copyright statements
34392         * build-aux/update-copyright: Fix so that the first correctly
34393         formatted FSF copyright statement is recognized no matter what
34394         appears before it.  Update documentation.
34395         * tests/test-update-copyright.sh: Test that.
34396
34397 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34398
34399         update-copyright: clean up code a little
34400         * build-aux/update-copyright: Append "_re" to the name of any
34401         variable holding a regular expression.
34402         Replace "old" and "new" with "stmt" in variable names.
34403         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34404         handled correctly.
34405         Format code more consistently.
34406
34407 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34408
34409         update-copyright-tests: improve portability
34410         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34411         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34412
34413 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34414
34415         update-copyright: support @copyright{} and &copy;
34416         * build-aux/update-copyright: Implement and document.
34417         * tests/test-update-copyright.sh: Test.
34418
34419 2009-08-04  Jim Meyering  <meyering@redhat.com>
34420
34421         update-copyright-tests: correctly test EOL=\r\n handling
34422         * tests/test-update-copyright.sh: Put \r at the end of some lines
34423         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34424
34425         maint.mk: make update-copyright exclusion list more configurable
34426         * top/maint.mk (update-copyright): Default to excluding COPYING,
34427         but allow an override, in case someone does want to update that file.
34428
34429         maint.mk: don't update copyright date in COPYING
34430         * top/maint.mk (update-copyright): Exclude COPYING.
34431
34432         maint.mk: add a copyright-updating rule
34433         * top/maint.mk (update-copyright): New rule.
34434         Derived from coreutils/Makefile.am.
34435
34436         update-copyright: rename some variables
34437         * build-aux/update-copyright: Rename a few variables for clarity.
34438         Tweak syntax.  List Joel E. Denny as coauthor.
34439
34440 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34441
34442         update-copyright: fix bug for 2-digit last year and add tests
34443         * build-aux/update-copyright: Fix bug.
34444         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34445         specified.
34446         * modules/update-copyright-tests: New
34447         * tests/test-update-copyright.sh: New.
34448
34449 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34450
34451         update-copyright: handle leading tabs in line prefix
34452         * build-aux/update-copyright: Count leading tabs as 8 spaces
34453         when computing margin.  This helps with the formatting of
34454         ChangeLogs, for example.
34455         Fix documentation a little.
34456
34457 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34458
34459         update-copyright: support EOL=\r\n
34460         * build-aux/update-copyright: Implement that.
34461
34462 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34463
34464         update-copyright: automatically format copyright statements
34465         * build-aux/update-copyright: Implement that.
34466         Also, be a little more predictable and safer by always failing
34467         when the full copyright format is not perfectly recognized as an
34468         unbroken whole.  Discussed at
34469         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34470         Rewrite documentation.
34471
34472 2009-08-03  Bruno Haible  <bruno@clisp.org>
34473
34474         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34475
34476 2009-08-02  Bruno Haible  <bruno@clisp.org>
34477
34478         Tests for module 'uname'.
34479         * modules/uname-tests: New file.
34480         * tests/test-uname.c: New file.
34481
34482         New module 'uname'.
34483         * lib/uname.c: New file.
34484         * m4/uname.m4: New file.
34485         * modules/uname: New file.
34486         * doc/posix-functions/uname.texi: Mention the new module.
34487
34488 2009-08-02  Bruno Haible  <bruno@clisp.org>
34489
34490         Tests for module 'sys_utsname'.
34491         * modules/sys_utsname-tests: New file.
34492         * tests/test-sys_utsname.c: New file.
34493
34494         New module 'sys_utsname'.
34495         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34496         * m4/sys_utsname_h.m4: New file.
34497         * modules/sys_utsname: New file.
34498         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34499
34500 2009-08-02  Bruno Haible  <bruno@clisp.org>
34501
34502         Implicitly initialize the sockets library.
34503         * lib/gethostname.c: Include sockets.h.
34504         (rpl_gethostname): Invoke gl_sockets_startup.
34505         * lib/socket.c: Include sockets.h.
34506         (rpl_socket): Invoke gl_sockets_startup.
34507         * modules/gethostname (Depends-on): Add sockets.
34508         * modules/socket (Depends-on): Likewise.
34509         * tests/test-poll.c: Don't include sockets.h.
34510         (main): Don't invoke gl_sockets_startup.
34511         * tests/test-select.c: Don't include sockets.h.
34512         (main): Don't invoke gl_sockets_startup.
34513
34514 2009-08-02  Bruno Haible  <bruno@clisp.org>
34515
34516         Allow multiple calls to gl_sockets_startup.
34517         * lib/sockets.c (initialized_sockets_version): New variable.
34518         (gl_sockets_startup): Do nothing if already called for this or a higher
34519         version.
34520         (gl_sockets_cleanup): Reset initialized_sockets_version.
34521
34522 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34523
34524         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34525         different project/version.
34526
34527 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34528             Bruno Haible  <bruno@clisp.org>
34529
34530         Tests for module 'pipe-filter-gi'.
34531         * modules/pipe-filter-gi-tests: New file.
34532         * tests/test-pipe-filter-gi1.sh: New file.
34533         * tests/test-pipe-filter-gi1.c: New file.
34534         * tests/test-pipe-filter-gi2.sh: New file.
34535         * tests/test-pipe-filter-gi2-main.c: New file.
34536         * tests/test-pipe-filter-gi2-child.c: New file.
34537
34538         New module 'pipe-filter-gi'.
34539         * lib/pipe-filter-gi.c: New file.
34540         * modules/pipe-filter-gi: New file.
34541
34542 2009-08-02  Bruno Haible  <bruno@clisp.org>
34543             Paolo Bonzini  <bonzini@gnu.org>
34544
34545         Tests for module 'pipe-filter-ii'.
34546         * modules/pipe-filter-ii-tests: New file.
34547         * tests/test-pipe-filter-ii1.sh: New file.
34548         * tests/test-pipe-filter-ii1.c: New file.
34549         * tests/test-pipe-filter-ii2.sh: New file.
34550         * tests/test-pipe-filter-ii2-main.c: New file.
34551         * tests/test-pipe-filter-ii2-child.c: New file.
34552
34553         New module 'pipe-filter-ii'.
34554         * lib/pipe-filter.h: New file.
34555         * lib/pipe-filter-ii.c: New file.
34556         * lib/pipe-filter-aux.h: New file.
34557         * modules/pipe-filter-ii: New file.
34558
34559 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34560
34561         * lib/gc-libgcrypt.c: Change copyright to FSF.
34562         * lib/gc-gnulib.c: Likewise.
34563
34564 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34565
34566         * lib/gethostname.c: Include limits.h.
34567
34568 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34569             Bruno Haible  <bruno@clisp.org>
34570
34571         Ensure HOST_NAME_MAX as part of the gethostname module.
34572         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34573         define also HOST_NAME_MAX.
34574         * tests/test-gethostname.c: Include <limits.h>.
34575         (main): Check also HOST_NAME_MAX.
34576         * doc/posix-headers/limits.texi: Document the mingw problem.
34577
34578 2009-08-02  Bruno Haible  <bruno@clisp.org>
34579
34580         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34581         Add comments.
34582
34583 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34584
34585         * lib/gethostname.c: Add Windows wrapper.
34586         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34587         * modules/gethostname: Depend on sys_socket & errno, for also
34588         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34589         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34590
34591 2009-07-31  Jim Meyering  <meyering@redhat.com>
34592
34593         getloadavg: fix symbol name in comment
34594         * lib/getloadavg.c: Correct a typo I introduced when adding
34595         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34596         Matt Kraai spotted the problem.
34597
34598 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34599
34600         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34601         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34602         code also if ! defined N_NAME_POINTER.
34603         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34604         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34605         but the n_name member is a 12-byte array.
34606
34607 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34608
34609         update-copyright: generalize comment handling
34610         * build-aux/update-copyright: Handle copyright statements
34611         within more comment styles.
34612         Document usage.
34613         Report any file with an external copyright holder or parse failure.
34614
34615 2009-07-29  Jim Meyering  <meyering@redhat.com>
34616
34617         mktime: correct setting of REPLACE_MKTIME
34618         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34619
34620         update-copyright: new module
34621         * modules/update-copyright: New file.
34622         * build-aux/update-copyright: New file.
34623         * MODULES.html.sh (maint+release support): Add update-copyright.
34624
34625 2009-07-27  Bruno Haible  <bruno@clisp.org>
34626
34627         Fix compilation error when <ctime> is used and mktime is replaced.
34628         * lib/time.in.h (mktime): New declaration.
34629         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34630         REPLACE_MKTIME instead of defining mktime in config.h.
34631         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34632         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34633         Reported by Ross McFarland <rwmcfa1@neces.com>.
34634
34635 2009-07-27  Bruno Haible  <bruno@clisp.org>
34636
34637         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34638         Reported by Matt Kraai <mkraai@beckman.com>.
34639
34640 2009-07-25  Jim Meyering  <meyering@redhat.com>
34641
34642         maint.mk: avoid warnings about missing files
34643         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34644         diagnostic when .prev-version does not exist.
34645         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34646         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34647         nonexistent cfg.mk.
34648         Suggestions from Simon Josefsson.
34649
34650 2009-07-25  Bruno Haible  <bruno@clisp.org>
34651
34652         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34653         defined as macros. Needed on QNX 6.4.1.
34654         Reported by Matt Kraai <mkraai@beckman.com>.
34655
34656 2009-07-23  Jim Meyering  <meyering@redhat.com>
34657
34658         maint.mk: invoke "make dist" with a working value of XZ_OPT
34659         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34660
34661 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34662
34663         Make fseeko.c compile on QNX.
34664         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34665
34666 2009-07-22  Peter Simons  <simons@cryp.to>
34667
34668         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34669         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34670         * lib/md4.h: Likewise.
34671         * lib/md5.h: Likewise.
34672         * lib/sha1.h: Likewise.
34673         * lib/sha256.h: Likewise.
34674         * lib/sha512.h: Likewise.
34675
34676         tests-sha1: don't assign literal string to 'char *' variable
34677         * tests/test-sha1.c (main): Declare locals with "const" to match
34678         attributes of the right hand side.
34679
34680 2009-07-21  Eric Blake  <ebb9@byu.net>
34681
34682         dup2: fix more mingw problems
34683         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34684         fd to itself.
34685         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34686         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34687         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34688         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34689         care of mingw bugs.
34690
34691 2009-07-21  Jim Meyering  <meyering@redhat.com>
34692
34693         vc-list-files: avoid failure when /bin/sh is dash
34694         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34695         On some Debian based systems, /bin/sh is a symlink to dash, and running
34696         this command would omit the "/" following each 'tests' prefix:
34697           dash -x build-aux/vc-list-files -C . tests
34698         That is because bash and dash work differently:
34699           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34700           bash ok
34701           dash odd
34702
34703 2009-07-21  Eric Blake  <ebb9@byu.net>
34704
34705         dup2-tests: test previous patch
34706         * modules/dup2-tests: New file.
34707         * tests/test-dup2.c: Likewise.
34708         * tests/test-open.c (main): Avoid unspecified behavior.
34709         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34710         test.
34711
34712         dup2: work around mingw and cygwin 1.5 bug
34713         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34715         * modules/unistd (Makefile.am): Substitute it.
34716         * lib/unistd.in.h (dup2): Declare the replacement.
34717         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34718         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34719         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34720         * modules/execute (Depends-on): Add dup2.
34721         * modules/fseterr (Depends-on): Likewise.
34722         * modules/pipe (Depends-on): Likewise.
34723         * modules/posix_spawn-internal (Depends-on): Likewise.
34724
34725 2009-07-21  Bruno Haible  <bruno@clisp.org>
34726
34727         * modules/.gitattributes: New file.
34728
34729 2009-07-20  Bruno Haible  <bruno@clisp.org>
34730
34731         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34732         (main): Use it.
34733
34734 2009-07-20  Eric Blake  <ebb9@byu.net>
34735
34736         test-pipe: make a bit more robust.
34737         * tests/test-pipe.c (myerr): Allow error messages regardless of
34738         what we do to stderr.
34739         (test_pipe): Rearrange to avoid deadlock.
34740         (child_main): Try a larger read, to ensure we avoided deadlock.
34741         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34742         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34743         if misused.
34744
34745 2009-07-19  Jim Meyering  <meyering@redhat.com>
34746
34747         fts: avoid false-positive cycle-detection
34748         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34749         for each new command line argument.
34750
34751 2009-07-19  Bruno Haible  <bruno@clisp.org>
34752
34753         Fix build error on mingw with the modules sys_select and unistd.
34754         * modules/acl-tests (Depends-on): Add close.
34755         * modules/binary-io-tests (Depends-on): Likewise.
34756         * modules/closein-tests (Depends-on): Likewise.
34757         * modules/flock-tests (Depends-on): Likewise.
34758         * modules/fsync-tests (Depends-on): Likewise.
34759         * modules/lseek-tests (Depends-on): Likewise.
34760         * modules/pipe-tests (Depends-on): Likewise.
34761         * modules/posix_spawn-tests (Depends-on): Likewise.
34762         * modules/posix_spawnp-tests (Depends-on): Likewise.
34763         * modules/stat-time-tests (Depends-on): Likewise.
34764         * modules/yesno-tests (Depends-on): Likewise.
34765
34766 2009-07-19  Bruno Haible  <bruno@clisp.org>
34767
34768         Unify conditionals.
34769         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34770         macros, not at the compiler macros.
34771         * lib/pipe.c: Likewise.
34772         * lib/execute.c: Likewise.
34773         * lib/spawni.c: Likewise.
34774
34775 2009-07-19  Bruno Haible  <bruno@clisp.org>
34776
34777         Fix handling of closed stdin/stdout/stderr on mingw.
34778         * lib/w32spawn.h: Include unistd.h.
34779         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34780         file descriptor with O_NOINHERIT flag.
34781         (fd_safer_noinherit): New function, based on fd-safer.c.
34782         (dup_safer_noinherit): New function, based on dup-safer.c.
34783         (undup_safer_noinherit): New function.
34784         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34785         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34786         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34787         instead of fd_safer.
34788         * tests/test-pipe.c: Include <windows.h>.
34789         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34790         result.
34791
34792         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34793         from main.
34794         (test_pipe): Pass an extra argument for disambiguation.
34795         (main): Invoke parent_main or child_main.
34796
34797         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34798         consistently.
34799
34800 2009-07-18  Eric Blake  <ebb9@byu.net>
34801
34802         test-pipe: fix mingw build
34803         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34804
34805 2009-07-18  Bruno Haible  <bruno@clisp.org>
34806
34807         * modules/pipe-tests (Makefile.am): Fix typo.
34808
34809 2009-07-18  Eric Blake  <ebb9@byu.net>
34810
34811         error: fix mingw build
34812         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34813         Reported by Bruno Haible.
34814
34815         error: avoid undefined use of stdout
34816         * lib/error.c (error, error_at_line): Check that fd 1 is open
34817         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34818         is handling faults and the close_stdout module wants to report the
34819         detection of closed stdout as an error.
34820
34821 2009-07-17  Eric Blake  <ebb9@byu.net>
34822
34823         pipe: be robust in face of closed fds
34824         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34825         should cause child to misbehave.
34826         * modules/pipe-tests: New module.
34827         * tests/test-pipe.c: New file.
34828         * tests/test-pipe.sh: New file.
34829         Reported by Akim Demaille.
34830
34831 2009-07-14  Bruno Haible  <bruno@clisp.org>
34832
34833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34834         Reported by anonymous kc.
34835
34836 2009-07-07  Jim Meyering  <meyering@redhat.com>
34837
34838         maint.mk: don't look for translatable strings in *.m4 or *.mk
34839         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34840         when searching for translatable strings.
34841
34842 2009-07-05  Jim Meyering  <meyering@redhat.com>
34843
34844         remove superfluous parentheses in STREQ definition
34845         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34846         * lib/getugroups.c (STREQ): Likewise.
34847         * lib/fnmatch.c (STREQ): Likewise.
34848         Spotted by Bruno Haible.
34849
34850 2009-07-04  Jim Meyering  <meyering@redhat.com>
34851
34852         argv-iter: new module
34853         * MODULES.html.sh: Add argv-iter.
34854         * lib/argv-iter.c, lib/argv-iter.h: New files.
34855         * modules/argv-iter: New file.
34856         * modules/argv-iter-tests: New file.
34857         * tests/test-argv-iter.c: Test it.
34858
34859 2009-07-04  Bruno Haible  <bruno@clisp.org>
34860
34861         Fix assertion.
34862         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34863         contains more exact copies of a given entry than file2, leave the extra
34864         copies unpaired rather than aborting.
34865         Reported by Eric Blake.
34866
34867 2009-07-02  Bruno Haible  <bruno@clisp.org>
34868
34869         Speedup git-merge-changelog for git cherry-pick.
34870         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34871         (entries_mapping_get): New function, extracted from compute_mapping.
34872         (entries_mapping_reverse_get): New function.
34873         (compute_mapping): Add a 'full' argument. Return the result in a
34874         'struct entries_mapping'.
34875         (main): Update. Access the mappings through entries_mapping_get.
34876         Reported by Eric Blake.
34877
34878 2009-07-02  Bruno Haible  <bruno@clisp.org>
34879
34880         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34881         best_i.
34882
34883 2009-07-02  Bruno Haible  <bruno@clisp.org>
34884
34885         Speed up approximate search for matching ChangeLog entries.
34886         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34887         argument. Call fstrcmp_bounded instead of fstrcmp.
34888         (compute_mapping, try_split_merged_entry, main): Update callers.
34889
34890 2009-07-02  Bruno Haible  <bruno@clisp.org>
34891
34892         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34893
34894 2009-06-30  Bruno Haible  <bruno@clisp.org>
34895
34896         Reduce the number of uc_is_cased calls.
34897         * lib/unicase.h (casing_suffix_context_t): Add
34898         'first_char_except_ignorable' field.
34899         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34900         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34901         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34902         Update initializer.
34903         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34904         case-ignorable characters.
34905         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34906         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34907         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34908         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34909         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34910
34911 2009-06-30  Bruno Haible  <bruno@clisp.org>
34912
34913         Tests for module 'unicase/ignorable'.
34914         * modules/unicase/ignorable-tests: New file.
34915         * tests/unicase/test-ignorable.c: New file, generated by
34916         gen-uni-tables.
34917
34918         Tests for module 'unicase/cased'.
34919         * modules/unicase/cased-tests: New file.
34920         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34921         * tests/unicase/test-predicate-part1.h: New file, derived from
34922         tests/unictype/test-predicate-part1.h.
34923         * tests/unicase/test-predicate-part2.h: New file, same as
34924         tests/unictype/test-predicate-part2.h.
34925
34926         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34927         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34928         (output_casing_properties): New function.
34929         (main): Call it.
34930         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34931         * lib/unicase/cased.c: Include unictype/bitmap.h.
34932         (uc_is_cased): Define through a bitmap lookup.
34933         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34934         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34935         (uc_is_case_ignorable): Define through a bitmap lookup.
34936         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34937         lib/unictype/bitmap.h.
34938         (Depends-on): Add inline. Clean up.
34939         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34940         lib/unictype/bitmap.h.
34941         (Depends-on): Add inline. Clean up.
34942         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34943         recognition.
34944         * tests/unicase/test-u16-tolower.c (main): Likewise.
34945         * tests/unicase/test-u32-tolower.c (main): Likewise.
34946
34947 2009-06-30  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34950         * lib/unicase/u16-casemap.c: Likewise.
34951         * lib/unicase/u32-casemap.c: Likewise.
34952
34953 2009-06-29  Bruno Haible  <bruno@clisp.org>
34954
34955         Define u32_casefold as a wrapper around u32_ct_casefold.
34956         * lib/unicase/u32-casefold.c: Update.
34957         * modules/unicase/u32-casefold (Depends-on): Add
34958         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34959         unicase/empty-suffix-context. Clean up.
34960
34961         Define u16_casefold as a wrapper around u16_ct_casefold.
34962         * lib/unicase/u16-casefold.c: Update.
34963         * modules/unicase/u16-casefold (Depends-on): Add
34964         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34965         unicase/empty-suffix-context. Clean up.
34966
34967         Define u8_casefold as a wrapper around u8_ct_casefold.
34968         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34969         * lib/unicase/u8-casefold.c: Update.
34970         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34971         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34972
34973         Define u32_totitle as a wrapper around u32_ct_totitle.
34974         * lib/unicase/u32-totitle.c: Update.
34975         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34976         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34977
34978         Define u16_totitle as a wrapper around u16_ct_totitle.
34979         * lib/unicase/u16-totitle.c: Update.
34980         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34981         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34982
34983         Define u8_totitle as a wrapper around u8_ct_totitle.
34984         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34985         functions.
34986         (FUNC): Delegate to U_CT_TOTITLE.
34987         * lib/unicase/u8-totitle.c: Update.
34988         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34989         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34990
34991         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34992         invocation.
34993         * modules/unicase/u32-tolower (Depends-on): Add
34994         unicase/empty-prefix-context, unicase/empty-suffix-context.
34995
34996         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34997         invocation.
34998         * modules/unicase/u16-tolower (Depends-on): Add
34999         unicase/empty-prefix-context, unicase/empty-suffix-context.
35000
35001         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35002         * modules/unicase/u8-tolower (Depends-on): Add
35003         unicase/empty-prefix-context, unicase/empty-suffix-context.
35004
35005         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35006         invocation.
35007         * modules/unicase/u32-toupper (Depends-on): Add
35008         unicase/empty-prefix-context, unicase/empty-suffix-context.
35009
35010         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35011         invocation.
35012         * modules/unicase/u16-toupper (Depends-on): Add
35013         unicase/empty-prefix-context, unicase/empty-suffix-context.
35014
35015         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35016         * modules/unicase/u8-toupper (Depends-on): Add
35017         unicase/empty-prefix-context, unicase/empty-suffix-context.
35018
35019         New module 'unicase/u32-ct-casefold'.
35020         * lib/unicase/u32-ct-casefold.c: New file.
35021         * modules/unicase/u32-ct-casefold: New file.
35022
35023         New module 'unicase/u16-ct-casefold'.
35024         * lib/unicase/u16-ct-casefold.c: New file.
35025         * modules/unicase/u16-ct-casefold: New file.
35026
35027         New module 'unicase/u8-ct-casefold'.
35028         * lib/unicase/u8-ct-casefold.c: New file.
35029         * lib/unicase/u-ct-casefold.h: New file, derived from
35030         lib/unicase/u-casefold.h.
35031         * modules/unicase/u8-ct-casefold: New file.
35032
35033         New module 'unicase/u32-ct-totitle'.
35034         * lib/unicase/u32-ct-totitle.c: New file.
35035         * modules/unicase/u32-ct-totitle: New file.
35036
35037         New module 'unicase/u16-ct-totitle'.
35038         * lib/unicase/u16-ct-totitle.c: New file.
35039         * modules/unicase/u16-ct-totitle: New file.
35040
35041         New module 'unicase/u8-ct-totitle'.
35042         * lib/unicase/u8-ct-totitle.c: New file.
35043         * lib/unicase/u-ct-totitle.h: New file, derived from
35044         lib/unicase/u-totitle.h.
35045         * modules/unicase/u8-ct-totitle: New file.
35046
35047         New module 'unicase/u32-ct-tolower'.
35048         * lib/unicase/u32-ct-tolower.c: New file.
35049         * modules/unicase/u32-ct-tolower: New file.
35050
35051         New module 'unicase/u16-ct-tolower'.
35052         * lib/unicase/u16-ct-tolower.c: New file.
35053         * modules/unicase/u16-ct-tolower: New file.
35054
35055         New module 'unicase/u8-ct-tolower'.
35056         * lib/unicase/u8-ct-tolower.c: New file.
35057         * modules/unicase/u8-ct-tolower: New file.
35058
35059         New module 'unicase/u32-ct-toupper'.
35060         * lib/unicase/u32-ct-toupper.c: New file.
35061         * modules/unicase/u32-ct-toupper: New file.
35062
35063         New module 'unicase/u16-ct-toupper'.
35064         * lib/unicase/u16-ct-toupper.c: New file.
35065         * modules/unicase/u16-ct-toupper: New file.
35066
35067         New module 'unicase/u8-ct-toupper'.
35068         * lib/unicase/u8-ct-toupper.c: New file.
35069         * modules/unicase/u8-ct-toupper: New file.
35070
35071         Add context arguments to u*_casemap functions.
35072         * lib/unicase/unicasemap.h: Include unicase.h.
35073         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35074         suffix_context arguments.
35075         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35076         functions.
35077         (FUNC): Add prefix_context and suffix_context arguments. Use
35078         uc_is_cased and uc_is_case_ignorable.
35079         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35080         * lib/unicase/u16-casemap.c: Likewise.
35081         * lib/unicase/u32-casemap.c: Likewise.
35082         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35083         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35084         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35085         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35086         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35087         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35088
35089         New module 'unicase/u32-suffix-context'.
35090         * lib/unicase/u32-suffix-context.c: New file.
35091         * modules/unicase/u32-suffix-context: New file.
35092
35093         New module 'unicase/u16-suffix-context'.
35094         * lib/unicase/u16-suffix-context.c: New file.
35095         * modules/unicase/u16-suffix-context: New file.
35096
35097         New module 'unicase/u8-suffix-context'.
35098         * lib/unicase/u8-suffix-context.c: New file.
35099         * lib/unicase/u-suffix-context.h: New file.
35100         * modules/unicase/u8-suffix-context: New file.
35101
35102         New module 'unicase/empty-suffix-context'.
35103         * lib/unicase/empty-suffix-context.c: New file.
35104         * modules/unicase/empty-suffix-context: New file.
35105
35106         New module 'unicase/u32-prefix-context'.
35107         * lib/unicase/u32-prefix-context.c: New file.
35108         * modules/unicase/u32-prefix-context: New file.
35109
35110         New module 'unicase/u16-prefix-context'.
35111         * lib/unicase/u16-prefix-context.c: New file.
35112         * modules/unicase/u16-prefix-context: New file.
35113
35114         New module 'unicase/u8-prefix-context'.
35115         * lib/unicase/u8-prefix-context.c: New file.
35116         * lib/unicase/u-prefix-context.h: New file.
35117         * lib/unicase/context.h: New file.
35118         * modules/unicase/u8-prefix-context: New file.
35119
35120         New module 'unicase/empty-prefix-context'.
35121         * lib/unicase/empty-prefix-context.c: New file.
35122         * modules/unicase/empty-prefix-context: New file.
35123
35124         New module 'unicase/ignorable'.
35125         * lib/unicase/ignorable.c: New file.
35126         * modules/unicase/ignorable: New file.
35127
35128         New module 'unicase/cased'.
35129         * lib/unicase/caseprop.h: New file.
35130         * lib/unicase/cased.c: New file.
35131         * modules/unicase/cased: New file.
35132
35133         New functions for case mapping of substrings.
35134         * lib/unicase.h (casing_prefix_context_t): New type.
35135         (unicase_empty_prefix_context): New variable.
35136         (u8_casing_prefix_context, u16_casing_prefix_context,
35137         u32_casing_prefix_context, u8_casing_prefixes_context,
35138         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35139         declarations.
35140         (casing_suffix_context_t): New type.
35141         (unicase_empty_suffix_context): New variable.
35142         (u8_casing_suffix_context, u16_casing_suffix_context,
35143         u32_casing_suffix_context, u8_casing_suffixes_context,
35144         u16_casing_suffixes_context, u32_casing_suffixes_context,
35145         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35146         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35147         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35148         declarations.
35149
35150 2009-06-28  Jim Meyering  <meyering@redhat.com>
35151
35152         boostrap: indent only with spaces
35153         * build-aux/bootstrap: Indent only with spaces, never TABs.
35154
35155         bootstrap: split long lines
35156         * build-aux/bootstrap: Keep line length < 80.
35157
35158         bootstrap: sync from coreutils
35159         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35160         just as autoreconf does.  Verify a list of prerequisite
35161         package-name,version-number pairs if defined in bootstrap.conf.
35162         Refer to README-prereq, if prerequisites are not satisfied.
35163
35164 2009-06-27  Eric Blake  <ebb9@byu.net>
35165
35166         tests: add test for bogus NULL definition
35167         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35168         * tests/test-stdlib.c: Likewise.
35169         * tests/test-string.c: Likewise.
35170         * tests/test-locale.c: Likewise.
35171         * tests/test-unistd.c: Likewise.
35172         * modules/stdio-tests (Depends-on): Add verify.
35173         * modules/stdlib-tests (Depends-on): Likewise.
35174         * modules/string-tests (Depends-on): Likewise.
35175         * modules/locale-tests (Depends-on): Likewise.
35176         * modules/unistd-tests (Depends-on): Likewise.
35177
35178 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35179
35180         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35181         self-explaining comment.
35182         * m4/selinux-selinux-h: Update serial.
35183         (gl_LIBSELINUX): New macro, adding a warning for missing development
35184         packages to code extracted from...
35185         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35186         Add warning for missing development packages here, too.
35187
35188 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35189
35190         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35191
35192 2009-06-25  Eric Blake  <ebb9@byu.net>
35193
35194         version-etc: fix regression
35195         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35196         gcc.
35197         (version_etc): Use it, to catch bugs with trailing NULL.
35198         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35199         (version_etc_va): Fix logic bug.
35200         * modules/version-etc-tests: Add test.
35201         * tests/test-version-etc.c: New file.
35202         * tests/test-version-etc.sh: Likewise.
35203
35204 2009-06-25  Sam Steingold  <sds@gnu.org>
35205
35206         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35207         mbtowc declaration.
35208
35209 2009-06-25  Eric Blake  <ebb9@byu.net>
35210
35211         fpurge: migrate into <stdio.h>
35212         * lib/fpurge.h: Delete...
35213         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35214         * lib/fpurge.c (fpurge): Change declaring header.
35215         * modules/fpurge (Files): Drop deleted file.
35216         (Depends-on): Add stdio.
35217         (configure.ac): Set witness.
35218         * modules/stdio (Makefile.am): Support fpurge macros.
35219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35220         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35221         * lib/fflush.c: Update client.
35222         * tests/test-fpurge.c: Likewise.
35223         * NEWS: Mention the change.
35224
35225 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35226
35227         * lib/argp-version-etc.c (program_authors): Add const
35228         qualifier.
35229         * lib/version-etc.c: Fix typos in the comments.
35230         * modules/argp-version-etc: Depends on version-etc.
35231
35232 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35233
35234         argp-version-etc: new module.
35235
35236         * lib/argp-version-etc.c: New file.
35237         * lib/argp-version-etc.h: New file.
35238         * modules/argp-version-etc: New file.
35239         * modules/argp-version-etc-tests: New file.
35240         * tests/test-argp-version-etc.c: New test.
35241         * tests/test-argp-version-etc-1.sh: New test.
35242
35243 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35244
35245         Provide additional interfaces and documentation for version-etc
35246         module.
35247
35248         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35249         interfaces.
35250         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35251         prototypes.
35252
35253 2009-06-24  Bruno Haible  <bruno@clisp.org>
35254
35255         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35256         HAVE_LIB${NAME} macro.
35257         Reported by Sam Steingold <sds@gnu.org>.
35258
35259 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35260
35261         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35262         needed.
35263
35264 2009-06-21  Bruno Haible  <bruno@clisp.org>
35265
35266         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35267         work.
35268         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35269         together with LIB${NAME}, LTLIB${NAME}.
35270         Reported by Sam Steingold <sds@gnu.org>.
35271
35272 2009-06-20  Jim Meyering  <meyering@redhat.com>
35273
35274         tests: make sc_require_test_exit_idiom more generic
35275         * top/maint.mk (Exit_witness_file): New overridable variable.
35276         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35277         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35278
35279 2009-06-19  Jim Meyering  <meyering@redhat.com>
35280
35281         hash: reverse order of src/dst parameters in an internal interface
35282         * lib/hash.c (transfer_entries): Reverse order of parameters to
35283         put DST before SRC.  Adjust callers.
35284
35285         tests: test-hash: avoid wholesale duplication
35286         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35287         Instead, use a loop and add a single conditional.
35288
35289         tests: test-hash: allow seed selection via a command line argument
35290         * tests/test-hash.c (get_seed): New function.
35291         (main): Use it.
35292
35293 2009-06-19  Eric Blake  <ebb9@byu.net>
35294
35295         hash: avoid memory leak on allocation failure
35296         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35297         failure.  Factor repeated algorithm...
35298         (transfer_entries): ...into new helper routine.
35299         (hash_delete): React to hash_rehash return value.
35300
35301         hash: reduce memory pressure in hash_rehash no-op case
35302         * lib/hash.c (next_prime): Avoid overflow.
35303         (hash_initialize): Factor bucket size computation...
35304         (compute_bucket_size): ...into new helper function.
35305         (hash_rehash): Use new function and open coding to reduce memory
35306         pressure, and avoid a memory leak in USE_OBSTACK code.
35307         Reported by Jim Meyering.
35308
35309 2009-06-18  Eric Blake  <ebb9@byu.net>
35310
35311         hash: make rotation more obvious
35312         * modules/hash (Depends-on): Add bitrotate and stdint.
35313         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35314         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35315         (SIZE_MAX): Rely on headers for definition.
35316         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35317         (raw_hasher): Use rotr_sz.
35318         Suggested by Jim Meyering.
35319
35320         hash: fix memory leak in last patch
35321         * lib/hash.c (hash_rehash): Avoid memory leak.
35322
35323         hash: avoid no-op rehashing
35324         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35325
35326         hash: provide default callback functions
35327         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35328         (hash_initialize): Use them as defaults.
35329         * tests/test-hash.c (main): Test this.
35330
35331         hash: minor optimization
35332         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35333         when possible.
35334         (hash_initialize): Document this promise.
35335         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35336         * tests/test-hash.c (hash_compare_strings): Test this.
35337
35338 2009-06-18  Bruno Haible  <bruno@clisp.org>
35339
35340         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35341         going to be replaced anyway.
35342
35343 2009-06-18  Bruno Haible  <bruno@clisp.org>
35344
35345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35346         in one place.
35347         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35348         be replaced anyway.
35349
35350 2009-06-18  Eric Blake  <ebb9@byu.net>
35351
35352         hash: check for resize before insertion
35353         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35354         threshold before insertion, so that a pathological hash_rehash
35355         that fills every bucket can still trigger another rehash.
35356
35357 2009-06-18  Jim Meyering  <meyering@redhat.com>
35358
35359         hash-tests: add a loop around the small tests
35360         * tests/test-hash.c (main): Repeat small tests with selected
35361         small initial table sizes.
35362
35363 2009-06-17  Eric Blake  <ebb9@byu.net>
35364
35365         hash: minor cleanups
35366         * lib/hash.h (hash_entry): Make opaque, by moving...
35367         * lib/hash.c (hash_entry): ...here.
35368         (hash_insert): Clarify restrictions on what can be inserted.
35369         (hash_get_next): Clarify when it is safe to remove an element
35370         during traversal.
35371         (check_tuning): Skip verification when tuning is known safe.
35372         (hash_initialize): Clarify restrictions on tuning.
35373
35374 2009-06-17  Jim Meyering  <jim@meyering.net>
35375         and Eric Blake  <ebb9@byu.net>
35376
35377         hash-tests: new module
35378         * modules/hash-tests: New file.
35379         * tests/test-hash.c: New file.
35380
35381 2009-06-17  Eric Blake  <ebb9@byu.net>
35382
35383         strstr-simple: document new module
35384         * MODULES.html.sh: Document new module.
35385
35386         strstr, strcasestr: replace on platforms with broken memchr
35387         * modules/strstr: Split into...
35388         * modules/strstr-simple: ...new module that does not care about
35389         performance, but does care about glibc bug.
35390         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35391         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35392         if platform memchr is broken, per Debian bug 521737.
35393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35394         memchr.
35395         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35396         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35397         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35398         * modules/mountlist (Depends-on): Add strstr-simple.
35399         * modules/gen-uni-tables (Depends-on): Likewise.
35400         * modules/argz (Depends-on): Add strstr.
35401
35402 2009-06-17  Bruno Haible  <bruno@clisp.org>
35403
35404         * modules/posix_spawn-internal (Depends-on): Add errno.
35405
35406 2009-06-17  Bruno Haible  <bruno@clisp.org>
35407
35408         Define missing ESTALE on Interix 3.5.
35409         * lib/errno.in.h (ESTALE): Assign a value if missing.
35410         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35412         missing.
35413         * doc/posix-headers/errno.texi: Mention the Interix bug.
35414         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35415
35416 2009-06-15  Eric Blake  <ebb9@byu.net>
35417
35418         memchr, memchr2: add valgrind exception
35419         * lib/memchr.valgrind: New file.
35420         * lib/memchr2.valgrind: New file.
35421         * modules/memchr (Files): Distribute valgrind file.
35422         * modules/memchr2 (Files): Likewise.
35423
35424         docs: memchr is no longer obsolete
35425         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35426         * lib/string.in.h (memchr): Simplify logic.
35427
35428 2009-06-14  Jim Meyering  <meyering@redhat.com>
35429
35430         link-follow: fix the "checking..." message to not mention trailing slash
35431         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35432         never considered trailing slashes.
35433
35434 2009-06-14  Bruno Haible  <bruno@clisp.org>
35435
35436         * m4/memchr.m4: Mention also the bug on IA-64.
35437         * doc/posix-functions/memchr.texi: Likewise.
35438
35439 2009-06-12  Eric Blake  <ebb9@byu.net>
35440
35441         memchr: detect broken x86_64 and alpha implementations
35442         * modules/memchr-tests (Depends-on): Move mmap detection...
35443         * modules/memchr (Depends-on): ...here.
35444         (configure.ac): Set indicator.
35445         * lib/string.in.h (memchr): Declare replacement.
35446         * modules/string (Makefile.am): Trigger replacement.
35447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35448         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35449         bugs.
35450         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35451         * modules/getpagesize (License): Relax license.
35452
35453 2009-06-11  Bruno Haible  <bruno@clisp.org>
35454
35455         * lib/idpriv.h: Add more references.
35456
35457 2009-06-08  Bruno Haible  <bruno@clisp.org>
35458
35459         Tests for module 'idpriv-droptemp'.
35460         * modules/idpriv-droptemp-tests: New file.
35461         * tests/test-idpriv-droptemp.sh: New file.
35462         * tests/test-idpriv-droptemp.su.sh: New file.
35463         * tests/test-idpriv-droptemp.c: New file.
35464
35465         New module 'idpriv-droptemp'.
35466         * lib/idpriv-droptemp.c: New file.
35467         * modules/idpriv-droptemp: New file.
35468
35469 2009-06-08  Bruno Haible  <bruno@clisp.org>
35470
35471         Tests for module 'idpriv-drop'.
35472         * modules/idpriv-drop-tests: New file.
35473         * tests/test-idpriv-drop.sh: New file.
35474         * tests/test-idpriv-drop.su.sh: New file.
35475         * tests/test-idpriv-drop.c: New file.
35476
35477         New module 'idpriv-drop'.
35478         * lib/idpriv.h: New file.
35479         * lib-idpriv-drop.c: New file.
35480         * m4/idpriv.m4: New file.
35481         * modules/idpriv-drop: New file.
35482
35483 2009-06-08  Bruno Haible  <bruno@clisp.org>
35484
35485         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35492
35493 2009-06-08  Eric Blake  <ebb9@byu.net>
35494
35495         test-strstr: use memory fence, when possible
35496         * tests/test-strstr.c (main): Use memory fence, in order to be
35497         more likely to trigger Debian bug 521737.
35498         * modules/strstr-tests (Files): Pull in additional files.
35499
35500         memchr: no longer obsolete, for wider field testing
35501         * modules/memchr (Status, Notice): Delete, this module is no
35502         longer obsolete.
35503         * modules/vasnprintf (Depends-on): Add memchr.
35504
35505 2009-06-07  Jim Meyering  <meyering@redhat.com>
35506
35507         hash: declare some functions with the warn_unused_result attribute
35508         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35509
35510 2009-06-07  Bruno Haible  <bruno@clisp.org>
35511
35512         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35513         Reported by Eric Blake.
35514
35515 2009-06-06  Eric Blake  <ebb9@byu.net>
35516
35517         test-alignof: fix typo with long double
35518         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35519         compiler error.
35520
35521 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35522
35523         Escape non-texinfo { and }s.
35524         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35525         markup error.
35526
35527 2009-06-04  Jim Meyering  <meyering@redhat.com>
35528
35529         gitlog-to-changelog: don't infloop on an empty commit log
35530         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35531         Reported by Boris Petersen <transacid@centerim.org>.
35532
35533 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35534
35535         version-etc: extend for packagers
35536         Add three new configure options, intended for packagers:
35537           --with-packager="packager name"
35538           --with-packager-version="packager-specific version"
35539           --with-packager-bug-reports="packager bug reporting"
35540         An example with coreutils:
35541           $ ./configure \
35542             --with-packager=Gentoo \
35543             --with-packager-bug-report=http://bugs.gentoo.org/ \
35544             --with-packager-version="patchset 1.6"
35545           $ ./src/ls --version | head -n2
35546           ls (GNU coreutils) 7.1-dirty
35547           Packaged by Gentoo (patchset 1.6)
35548         Note that the bug reporting info via --help doesn't show up because
35549         coreutils uses its own custom emit_bug_reporting_address() implementation
35550         in src/system.h.  If it didn't, it'd look like:
35551           $ ./src/ls --help | tail -n4
35552           Report bugs to <bug-coreutils@gnu.org>.
35553           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35554           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35555           General help using GNU software: <http://www.gnu.org/gethelp/>.
35556         * lib/version-etc.c: Print new information, if provided.
35557         * m4/version-etc.m4: New file.
35558         * modules/version-etc (Files): Add m4/version-etc.m4.
35559         (configure.ac): Add gl_VERSION_ETC.
35560
35561 2009-05-31  Bruno Haible  <bruno@clisp.org>
35562
35563         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35564         and 'int64_t'.
35565         * modules/alignof-tests (Dependencies): Add stdint.
35566         Reported by Eric Blake.
35567
35568 2009-05-31  Bruno Haible  <bruno@clisp.org>
35569
35570         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35571         restriction due to compiler bugs.
35572         Reported by Eric Blake.
35573
35574 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35575             Bruno Haible  <bruno@clisp.org>
35576
35577         Fix test-alignof failure.
35578         * lib/alignof.h (alignof_slot): New macro.
35579         (alignof_type): New macro, with the same semantics as the previous
35580         'alignof'.
35581         (alignof): Alias to alignof_slot.
35582         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35583         check that the results are usable as constant expressions.
35584
35585 2009-05-31  Bruno Haible  <bruno@clisp.org>
35586
35587         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35588         * tests/test-memchr.c (main): Check that memchr does not read past the
35589         first occurrence of the byte.
35590         * tests/test-strstr.c (main): Update comment.
35591         Suggested by Eric Blake.
35592
35593 2009-05-30  Bruno Haible  <bruno@clisp.org>
35594
35595         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35596         detail how to use dumpbin.
35597         Reported by David Byron <dbyron@dbyron.com>.
35598
35599 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35600
35601         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35602
35603 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35604
35605         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35606
35607 2009-05-28  Bruno Haible  <bruno@clisp.org>
35608
35609         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35610         build-aux/ files.
35611
35612 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35613
35614         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35615
35616 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35617
35618         * gnulib-tool (sed_transform_main_lib_file)
35619         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35620         regexps.
35621
35622 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35623
35624         * tests/test-strstr.c: Add another self-test.
35625         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35626         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35627
35628 2009-05-23  Bruno Haible  <bruno@clisp.org>
35629
35630         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35631         change.
35632
35633 2009-05-21  Bruno Haible  <bruno@clisp.org>
35634
35635         Simplify use of mode_t varargs.
35636         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35637         uses 'mode_t' or 'int'.
35638         * lib/openat.c (openat): Likewise.
35639         * lib/open-safer.c (open_safer): Likewise.
35640         * m4/mode_t.m4: New file.
35641         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35642         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35643         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35644         * modules/open (Files): Add m4/mode_t.m4.
35645         * modules/openat (Files): Likewise.
35646         * modules/fcntl-safer (Files): Likewise.
35647         Suggested by Eric Blake.
35648
35649 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35650
35651         * doc/glibc-functions/fallocate.texi: New file.
35652         * doc/gnulib.texi: Include it.
35653
35654 2009-05-21  Eric Blake  <ebb9@byu.net>
35655             Bruno Haible  <bruno@clisp.org>
35656
35657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35658         invocations.
35659         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35660
35661 2009-05-21  Eric Blake  <ebb9@byu.net>
35662             Bruno Haible  <bruno@clisp.org>
35663
35664         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35665         include_next. Fix of 2008-11-20 commit.
35666         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35667         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35668         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35669         NEXT_MATH_H.
35670         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35671         instead of NEXT_MATH_H.
35672
35673 2009-05-21  Bruno Haible  <bruno@clisp.org>
35674
35675         Avoid redefinition warnings for SIZE_MAX.
35676         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35677         Reported by Simon Josefsson.
35678
35679 2009-05-21  Bruno Haible  <bruno@clisp.org>
35680
35681         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35682         AC_CACHE_VAL.
35683
35684 2009-05-20  Bruno Haible  <bruno@clisp.org>
35685
35686         Make zeroptr.h work on mingw.
35687         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35688         mprotect.
35689         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35690         * modules/memchr2-tests (configure.ac): Likewise.
35691         * modules/memcmp-tests (configure.ac): Likewise.
35692         * modules/memmem-tests (configure.ac): Likewise.
35693         * modules/memrchr-tests (configure.ac): Likewise.
35694         Reported by Simon Josefsson.
35695
35696 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35697
35698         * tests/test-glob.c: Include string.h for strcmp prototype.
35699
35700 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35701
35702         * modules/getdelim (Depends-on): Add explicit stdint, although it
35703         was implicitly already pulled in via realloc-posix.
35704         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35705
35706 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35707
35708         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35709         G. Christensen" <tgc@jupiterrise.com>.
35710         * m4/sys_socket_h.m4: Check for sa_family_t.
35711         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35712         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35713         * tests/test-sys_socket.c: Check that sa_family_t works.
35714
35715 2009-05-18  Eric Blake  <ebb9@byu.net>
35716
35717         maint.mk: allow gnulib_dir in VPATH build
35718         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35719
35720 2009-05-15  Jim Meyering  <meyering@redhat.com>
35721
35722         maint.mk: Give gnulib_dir a default definition.
35723         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35724         Thus, most packages no longer need to specify this variable in cfg.mk
35725
35726 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35727
35728         rename.m4: fix typos that would make non-mingw cross-configure fail
35729         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35730
35731 2009-05-13  Eric Blake  <ebb9@byu.net>
35732
35733         mmap-anon: avoid out-of-order autoconf expansion
35734         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35735         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35736         * modules/memchr-tests (Depends-on): Add extensions.
35737         * modules/memchr2-tests (Depends-on): Add extensions.
35738         * modules/memcmp-tests (Depends-on): Add extensions.
35739         * modules/memmem-tests (Depends-on): Add extensions.
35740         * modules/memrchr-tests (Depends-on): Add extensions.
35741
35742 2009-05-13  Bruno Haible  <bruno@clisp.org>
35743
35744         Make some tests ISO C 99 compliant.
35745         * tests/zerosize-ptr.h: New file.
35746         * tests/test-memchr.c: Include zerosize-ptr.h.
35747         (main): Use a zero-size object pointer instead of NULL.
35748         * tests/test-memchr2.c: Include zerosize-ptr.h.
35749         (main): Use a zero-size object pointer instead of NULL.
35750         * tests/test-memcmp.c: Include zerosize-ptr.h.
35751         (main): Use a zero-size object pointer instead of NULL.
35752         * tests/test-memmem.c: Include zerosize-ptr.h.
35753         (main): Use a zero-size object pointer instead of NULL.
35754         * tests/test-memrchr.c: Include zerosize-ptr.h.
35755         (main): Use a zero-size object pointer instead of NULL.
35756         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35757         m4/mmap-anon.m4.
35758         (Depends-on): Add getpagesize.
35759         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35760         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35761         m4/mmap-anon.m4.
35762         (Depends-on): Add getpagesize.
35763         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35764         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35765         m4/mmap-anon.m4.
35766         (Depends-on): Add getpagesize.
35767         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35768         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35769         m4/mmap-anon.m4.
35770         (Depends-on): Add getpagesize.
35771         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35772         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35773         m4/mmap-anon.m4.
35774         (Depends-on): Add getpagesize.
35775         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35776
35777 2009-05-12  Bruno Haible  <bruno@clisp.org>
35778
35779         Tests for module 'alignof'.
35780         * modules/alignof-tests: New file.
35781         * tests/test-alignof.c: New file.
35782
35783 2009-05-12  Bruno Haible  <bruno@clisp.org>
35784
35785         Fix alignof macro.
35786         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35787         vendor compilers that are always correct.
35788
35789 2009-05-12  Bruno Haible  <bruno@clisp.org>
35790
35791         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35792         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35793         not whether its fully works.
35794
35795 2009-05-12  Bruno Haible  <bruno@clisp.org>
35796
35797         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35798
35799 2009-05-12  Jim Meyering  <meyering@redhat.com>
35800
35801         * top/maint.mk: Adjust backslash alignment.
35802
35803 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35804
35805         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35806
35807 2009-05-11  Eric Blake  <ebb9@byu.net>
35808
35809         argp: avoid undefined behavior
35810         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35811         macros.
35812
35813 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35814
35815         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35816         user.name to prevent git commit from complaining.
35817
35818 2009-05-10  Bruno Haible  <bruno@clisp.org>
35819
35820         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35821         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35822         it rewrites every file name only once.
35823         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35824
35825 2009-05-08  Bruno Haible  <bruno@clisp.org>
35826
35827         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35828         instead of 'max'.
35829
35830 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35831
35832         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35833         sockaddr_storage test.
35834
35835 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35836
35837         * modules/sys_socket (Makefile.am): Substitute
35838         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35839         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35840         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35841         * tests/test-sys_socket.c: Check sockaddr_storage.
35842
35843 2009-05-08  Bruno Haible  <bruno@clisp.org>
35844
35845         New module 'alignof'.
35846         * lib/alignof.h: New file.
35847         * modules/alignof: New file.
35848
35849 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35850             Bruno Haible  <bruno@clisp.org>
35851
35852         Fix test-file-has-acl on FreeBSD.
35853         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35854         mask is implicitly added.
35855         * tests/test-file-has-acl.c: Include <signal.h>.
35856         (main): Terminate the test after 5 seconds.
35857         * modules/acl-tests (configure.ac): Check for alarm function.
35858
35859 2009-05-04  Bruno Haible  <bruno@clisp.org>
35860
35861         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35862         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35863         * modules/errno (configure.ac): Drop AC_REQUIRE.
35864         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35865         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35866
35867 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35868
35869         * modules/glob-tests: New module.
35870         * tests/test-glob.c: Add.
35871
35872 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35873
35874         * modules/fnmatch-tests: New module.
35875         * tests/test-fnmatch.c: Add.
35876
35877 2009-05-04  Eric Blake  <ebb9@byu.net>
35878
35879         maint: make the new no-submodule-changes rule VPATH-safe
35880         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35881
35882 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35883             Bruno Haible  <bruno@clisp.org>
35884
35885         acl: Fix infinite loop on FreeBSD.
35886         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35887         of return value from acl_get_entry.
35888         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35889         Likewise.
35890
35891 2009-05-03  Bruno Haible  <bruno@clisp.org>
35892
35893         * lib/acl-internal.h (acl_entries): Clarify return value.
35894         * lib/acl_entries.c (acl_entries): Likewise.
35895
35896 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35897
35898         Bug fix in acl module.
35899         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35900
35901 2009-05-03  Bruno Haible  <bruno@clisp.org>
35902
35903         Create gperf-generated file in the source dir, not in the build dir.
35904         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35905         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35906         * modules/unicase/locale-language (unicase/locale-languages.h):
35907         Likewise.
35908         * modules/unicase/special-casing (unicase/special-casing-table.h):
35909         Likewise.
35910         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35911         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35912         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35913         Reported by Ralf Wildenhues.
35914
35915 2009-05-03  Bruno Haible  <bruno@clisp.org>
35916
35917         * modules/fnmatch (Description, configure.ac): Taken from
35918         fnmatch-posix.
35919         * modules/fnmatch-posix: Turn into a symbolic reference to the
35920         'fnmatch' module, and deprecate.
35921         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35922
35923 2009-05-03  Bruno Haible  <bruno@clisp.org>
35924
35925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35926         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35927         Reported by Ralf Wildenhues.
35928
35929 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35930
35931         * m4/fnmatch.m4: Fix fnmatch re-define.
35932
35933 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35934
35935         priv-set: new module and tests; adapt write-any-file
35936         * lib/priv-set.c: New file.
35937         * lib/priv-set.h: New file.
35938         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35939         * lib/write-any-file.c: Simplify by using priv-set module.
35940         * m4/priv-set.m4: New file.
35941         * modules/priv-set: New file.
35942         * modules/unlinkdir: Add dependency on priv-set module.
35943         * modules/write-any-file: Likewise.
35944
35945         Tests for module 'priv-set'.
35946         * modules/priv-set-tests: New file.
35947         * tests/test-priv-set.c: New file.
35948
35949 2009-05-03  Jim Meyering  <meyering@redhat.com>
35950             Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35953         use the converted UTF-8 variant of the name instead.
35954
35955 2009-05-03  Jim Meyering  <meyering@redhat.com>
35956
35957         tests: tighten some getdate tests
35958         * tests/test-getdate.c (main): Tighten tests: require equality,
35959         not just greater than.  Set TZ envvar to UTC0.
35960
35961 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35962
35963         getdate: correctly interpret "next monday" when run on a Monday
35964         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35965         that e.g., "next tues" (when run on a tuesday) results in a date
35966         that is one week in the future, and not today's date.
35967         I.e., add a week when the wday is the same as the current one.
35968         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35969         and earlier by Martin Bernreuther and Jan Minář.
35970         * tests/test-getdate.c (main): Check that "next DAY" is always in
35971         the future and that "last DAY" is always in the past.
35972
35973 2009-05-02  Jim Meyering  <meyering@redhat.com>
35974
35975         build: ensure that a release build fails when a submodule is unclean
35976         * top/maint.mk (no-submodule-changes): New rule.
35977         (alpha beta major): Depend on it.
35978
35979 2009-05-02  Bruno Haible  <bruno@clisp.org>
35980
35981         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35982         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35983         shell variable gl_fnmatch_required to detect which variant is
35984         requested.
35985         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35986         gl_FUNC_FNMATCH_POSIX.
35987         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35988         exclude fnmatch-posix.
35989
35990 2009-05-02  Bruno Haible  <bruno@clisp.org>
35991
35992         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35993         * modules/mbsrtowcs (License): Change to LGPLv2+.
35994         * modules/strnlen1 (License): Likewise.
35995         Reported by Simon Josefsson.
35996
35997 2009-05-02  Bruno Haible  <bruno@clisp.org>
35998
35999         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36000         "cross".
36001         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36002         gnulib-tool was called with option --source-base=lib.
36003
36004 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36005
36006         Use automake *-local hooks without commands, for extensibility.
36007         * modules/localcharset (Makefile.am): Rename install-exec-local
36008         rule to install-exec-localcharset, and make it a prerequisite of
36009         install-exec-local.  Likewise, rename the uninstall-local rule to
36010         uninstall-localcharset, and make it a prerequisite of the former.
36011
36012 2009-05-01  Bruno Haible  <bruno@clisp.org>
36013
36014         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36015         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36016         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36018         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36019         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36020         m4/locale-zh.m4, m4/codeset.m4.
36021
36022         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36023         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36024         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36025         m4/locale-zh.m4.
36026
36027         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36028         REPLACE_WCRTOMB if mbstate_t must be replaced.
36029         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36030         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36031
36032 2009-05-01  Bruno Haible  <bruno@clisp.org>
36033
36034         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36035         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36036         dngettext, dcngettext, textdomain, bindtextdomain,
36037         bind_textdomain_codeset): Undefine before redefining.
36038
36039 2009-04-30  Bruno Haible  <bruno@clisp.org>
36040
36041         Fix bug introduced on 2009-04-25.
36042         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36043         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36044         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36045         is defined.
36046         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36047         is defined.
36048         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36049         is defined.
36050         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36051
36052 2009-04-28  Bruno Haible  <bruno@clisp.org>
36053
36054         Comment tweaks.
36055         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36056         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36057         * lib/unicase.h (u*_casexfrm): Likewise.
36058         Reported by Paolo Bonzini.
36059
36060 2009-04-28  Bruno Haible  <bruno@clisp.org>
36061
36062         Fix a compilation error.
36063         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36064         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36065         Reported by Jim Meyering.
36066
36067 2009-04-27  Bruno Haible  <bruno@clisp.org>
36068
36069         New module 'libunistring'.
36070         * modules/libunistring: New file.
36071         * m4/libunistring.m4: New file.
36072         * MODULES.html.sh (Unicode string functions): Add it.
36073
36074 2009-04-27  Eric Blake  <ebb9@byu.net>
36075
36076         maint.mk: allow package-specific header to provide <config.h>
36077         * top/maint.mk (sc_require_config_h): New variable.
36078         (sc_require_config_h, sc_require_config_h_first): Use it.
36079
36080 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36081
36082         * top/maint.mk (sc_avoid_if_before_free): Except
36083         useless-if-before-free script.
36084
36085 2009-04-27  Eric Blake  <ebb9@byu.net>
36086
36087         maintainer-makefile: depend on all required helper scripts
36088         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36089         useless-if-before-free.
36090         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36091         version, rather than assuming gnulib checkout is available.
36092         Reported by Simen Josefsson.
36093
36094 2009-04-26  Bruno Haible  <bruno@clisp.org>
36095
36096         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36097         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36098         "../" or "..".
36099
36100 2009-04-26  Bruno Haible  <bruno@clisp.org>
36101
36102         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36103         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36104         AC_LIB_HAVE_LINKFLAGS.
36105
36106 2009-04-26  Bruno Haible  <bruno@clisp.org>
36107
36108         Simplify calling convention of u*_conv_from_encoding.
36109         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36110         u32_conv_from_encoding): Expect a resultbuf argument and return the
36111         result directly as a pointer.
36112         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36113         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36114         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36115         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36116         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36117         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36118         Update.
36119         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36120         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36121         * lib/vasnprintf.c (VASNPRINTF): Update.
36122         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36123         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36124         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36125         * NEWS: Mention the change.
36126
36127 2009-04-26  Bruno Haible  <bruno@clisp.org>
36128
36129         Simplify calling convention of u*_conv_to_encoding.
36130         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36131         u32_conv_to_encoding): Expect a resultbuf argument and return the
36132         result directly as a pointer.
36133         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36134         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36135         freeing scaled_offsets if mem_iconveha failed.
36136         * lib/unicase/u-casexfrm.h (FUNC): Update.
36137         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36138         * lib/vasnprintf.c (VASNPRINTF): Update.
36139         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36140         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36141         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36142         * NEWS: Mention the change.
36143
36144 2009-04-26  Bruno Haible  <bruno@clisp.org>
36145
36146         Avoid test failures on AIX and OSF/1.
36147         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36148         malloc(0).
36149         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36150         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36151         Likewise.
36152         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36153         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36154         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36155         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36156         * doc/posix-functions/malloc.texi: Document the portability problem
36157         related to malloc(0).
36158
36159 2009-04-26  Bruno Haible  <bruno@clisp.org>
36160
36161         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36162         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36163         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36164
36165 2009-04-25  Bruno Haible  <bruno@clisp.org>
36166
36167         Avoid link error when creating a namespace clean library.
36168         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36169         as macro with arguments if already defined as an alias.
36170         * lib/signbitf.c (gl_signbitf): Don't undefine.
36171         * lib/signbitd.c (gl_signbitd): Don't undefine.
36172         * lib/signbitl.c (gl_signbitl): Don't undefine.
36173
36174 2009-04-25  Jim Meyering  <meyering@redhat.com>
36175
36176         vc-list-files: fix another quoting bug
36177         * build-aux/vc-list-files: Avoid sed backslash expansion
36178         of pathological directory names.
36179
36180 2009-04-25  Eric Blake  <ebb9@byu.net>
36181
36182         vc-list-files: fix shell quoting error
36183         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36184         timestamp.
36185
36186 2009-04-25  Jim Meyering  <meyering@redhat.com>
36187
36188         vc-list-files: restore lost functionality with subdir argument
36189         * build-aux/vc-list-files: When given a non-"." sub-directory
36190         argument, substitute the $dir/ prefix back onto each resulting name.
36191         Otherwise, coreutils' root_tests check would fail.
36192
36193 2009-04-24  Eric Blake  <ebb9@byu.net>
36194
36195         vc-list-files: ignore git symlinks
36196         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36197         than ls-files, to ignore git symlinks.
36198
36199         maint.mk: import improvements from m4
36200         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36201         (move_if_change): Delete unused macro.
36202         (news-date-check, vc-diff-check): Support VPATH builds.
36203         (announcement): Likewise.  Split --bootstrap-tools list...
36204         (boostrap-tools): ...into separate list, which can be overridden
36205         in cfg.mk.
36206         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36207         requiring dependency on useless-if-before-free module.
36208         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36209         Support VPATH builds.
36210
36211 2009-04-24  Jim Meyering  <meyering@redhat.com>
36212
36213         maint.mk: remove coreutils-specific rules and variables
36214         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36215         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36216         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36217
36218         maint.mk: remove obsolete rule
36219         * top/maint.mk (rel-check): Remove rule.
36220         (WGET, WGETFLAGS): Remove now-unused variables.
36221
36222 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36223
36224         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36225         consistency.
36226
36227         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36228         '$(PATH_SEPARATOR)' instead of ':'.
36229
36230 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36231
36232         * lib/getopt1.c (main): Use 'const' for static array.
36233
36234 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36235
36236         * top/maint.mk: Sync with coreutils.
36237         * NEWS: Explain incompatibilities.
36238
36239 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36240             Bruno Haible  <bruno@clisp.org>
36241
36242         Fix cross-compilation results.
36243         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36244         statement, as third argument of AC_TRY_RUN.
36245         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36246         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36247         Likewise.
36248         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36249         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36250         Likewise.
36251         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36253         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36254
36255 2009-04-20  Bruno Haible  <bruno@clisp.org>
36256
36257         Avoid test failure on mingw.
36258         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36259
36260 2009-04-20  Bruno Haible  <bruno@clisp.org>
36261
36262         Avoid compilation error on mingw.
36263         * modules/localename-tests (Depends-on): Add locale.
36264
36265 2009-04-19  Bruno Haible  <bruno@clisp.org>
36266
36267         Support for building a shared library on Windows platforms.
36268         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36269         (main): Test the presence of UNINORM_NFC here.
36270         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36271         (main): Test the presence of UNINORM_NFD here.
36272         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36273         (main): Test the presence of UNINORM_NFKC here.
36274         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36275         (main): Test the presence of UNINORM_NFKD here.
36276
36277 2009-04-19  Bruno Haible  <bruno@clisp.org>
36278
36279         Avoid a compiler warning.
36280         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36281         Change type of variable 'sequence'.
36282
36283 2009-04-19  Bruno Haible  <bruno@clisp.org>
36284
36285         * modules/configmake (Makefile.am): When the contents of configmake.h
36286         does not change, arrange to preserve its modification time.
36287
36288 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36289
36290         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36291         gettext domain.
36292
36293 2009-04-16  Jim Meyering  <meyering@redhat.com>
36294
36295         useless-if-before-free: improve conversion code
36296         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36297         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36298
36299 2009-04-14  Bruno Haible  <bruno@clisp.org>
36300
36301         * modules/fcntl (Depends-on): Add extensions.
36302         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36303
36304 2009-04-12  Ben Pfaff  <blp@gnu.org>
36305
36306         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36307         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36308
36309 2009-03-20  Ben Pfaff  <blp@gnu.org>
36310
36311         Make rename replace existing destinations on Windows.
36312         * m4/rename.m4: Add test for Mingw.
36313         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36314         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36315         * doc/posix-functions/rename.texi: Document.
36316
36317 2009-04-10  Bruno Haible  <bruno@clisp.org>
36318
36319         New include file "iconveh.h".
36320         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36321         * lib/striconveh.h: Include it.
36322         (enum iconv_ilseq_handler): Remove definition.
36323         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36324         striconveh.h.
36325         * lib/striconveha.c: Include striconveh.h.
36326         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36327         * modules/striconveh (Files): Add lib/iconveh.h.
36328         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36329         lib/striconveh.h.
36330
36331 2009-04-10  Bruno Haible  <bruno@clisp.org>
36332
36333         * lib/uniconv.h: Update comment.
36334
36335 2009-04-10  Bruno Haible  <bruno@clisp.org>
36336
36337         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36338         always.
36339         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36340         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36341         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36342         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36343         "unistring-notinline.h", so that the function gets defined always.
36344         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36345         * lib/unistr/u8-uctomb.c: Likewise.
36346         * lib/unistr/u16-mbtouc.c: Likewise.
36347         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36348         * lib/unistr/u16-uctomb.c: Likewise.
36349         * lib/unistr/u32-mbtouc.c: Likewise.
36350         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36351         * lib/unistr/u32-uctomb.c: Likewise.
36352
36353 2009-04-10  Bruno Haible  <bruno@clisp.org>
36354
36355         Mark 'utime' obsolete.
36356         * modules/utime (Status, Notice): New sections.
36357         Suggested by Jim Meyering.
36358
36359         Fix cross-compile guess for utime test.
36360         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36361         autoconf.
36362         * doc/posix-functions/utime.texi: Give more precisions.
36363         Reported by Jan <ipif@ymail.com>.
36364
36365 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36366
36367         filevercmp: correct today's change
36368         * lib/filevercmp.c: Also handle coreutils' test inputs.
36369         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36370
36371         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36372         for reporting it.
36373         * lib/filevercmp.c: Special handle for "", "." and "..".
36374         * tests/test-filevercmp.c: Enlarge the set suite.
36375
36376 2009-04-07  Jim Meyering  <meyering@redhat.com>
36377
36378         useless-if-before-free: show how to remove braced useless free, too
36379         * build-aux/useless-if-before-free: still only in a comment, though.
36380
36381 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36382
36383         maint.mk: import changes to syntax-check macros from coreutils
36384         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36385         Use them in the relevant macros.
36386
36387 2009-04-06  Bruno Haible  <bruno@clisp.org>
36388
36389         Fix unportable use of bit-fields.
36390         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36391         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36392         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36393
36394 2009-04-06  Bruno Haible  <bruno@clisp.org>
36395
36396         Avoid test failures on AIX and OSF/1.
36397         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36398         that malloc(0) = NULL.
36399         * tests/unicase/test-u8-tolower.c (check): Likewise.
36400         * tests/unicase/test-u8-totitle.c (check): Likewise.
36401         * tests/unicase/test-u8-toupper.c (check): Likewise.
36402         * tests/unicase/test-u16-casefold.c (check): Likewise.
36403         * tests/unicase/test-u16-tolower.c (check): Likewise.
36404         * tests/unicase/test-u16-totitle.c (check): Likewise.
36405         * tests/unicase/test-u16-toupper.c (check): Likewise.
36406         * tests/unicase/test-u32-casefold.c (check): Likewise.
36407         * tests/unicase/test-u32-tolower.c (check): Likewise.
36408         * tests/unicase/test-u32-totitle.c (check): Likewise.
36409         * tests/unicase/test-u32-toupper.c (check): Likewise.
36410         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36411         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36412         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36413         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36414         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36415         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36416         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36417         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36418         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36419         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36420         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36421         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36422
36423 2009-04-05  Bruno Haible  <bruno@clisp.org>
36424
36425         Work around an autoconf limitation.
36426         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36427         comment line if it would be longer than 3 KB.
36428
36429 2009-04-05  Bruno Haible  <bruno@clisp.org>
36430
36431         Avoid test failure with libiconv-1.13.
36432         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36433         of the expected test results.
36434
36435 2009-04-05  Bruno Haible  <bruno@clisp.org>
36436
36437         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36438         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36439         that it should be installed.
36440
36441 2009-04-05  Bruno Haible  <bruno@clisp.org>
36442
36443         * gnulib-tool: New option --copy-file.
36444         (func_usage): Document it.
36445         (func_dest_tmpfilename): Moved out of func_import.
36446         (func_add_file, func_update_file): New functions, extracted from
36447         func_import.
36448         (func_import): Update.
36449
36450 2009-04-05  Karl Berry  <karl@gnu.org>
36451
36452         * README: prominently mention gnulib-tool.
36453         Rearrange sections so getting the code is near the top.
36454
36455 2009-04-05  Bruno Haible  <bruno@clisp.org>
36456
36457         * lib/unicase.h: Mention u*_cmp2.
36458         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36459         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36460         * lib/unicase/ulc-casecmp.c: Likewise.
36461         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36462         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36463         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36464         unistr/u8-cmp.
36465         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36466         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36467         unistr/u16-cmp.
36468         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36469         unistr/u32-cmp.
36470
36471         * lib/uninorm.h: Mention u*_cmp2.
36472         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36473         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36474         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36475         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36476         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36477         unistr/u8-cmp.
36478         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36479         unistr/u16-cmp.
36480         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36481         unistr/u32-cmp.
36482
36483         New module 'unistr/u32-cmp2'.
36484         * lib/unistr/u32-cmp2.c: New file.
36485         * modules/unistr/u32-cmp2: New file.
36486
36487         New module 'unistr/u16-cmp2'.
36488         * lib/unistr/u16-cmp2.c: New file.
36489         * modules/unistr/u16-cmp2: New file.
36490
36491         New module 'unistr/u8-cmp2'.
36492         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36493         * lib/unistr/u8-cmp2.c: New file.
36494         * lib/unistr/u-cmp2.h: New file.
36495         * modules/unistr/u8-cmp2: New file.
36496
36497 2009-04-05  Bruno Haible  <bruno@clisp.org>
36498
36499         * lib/unictype.h (uc_property_is_valid): New macro.
36500         * tests/unictype/test-pr_byname.c (main): Use it.
36501
36502         * lib/unistr.h: Doc fixes.
36503         * lib/uniconv.h: Doc fixes.
36504         * lib/unictype.h: Doc fixes.
36505
36506 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36507
36508         Port coreutils 7.2 to Solaris 8.
36509
36510         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36511         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36512         for Solaris 8.  This is a bit of a hack, as it means it's the
36513         caller's responsibility to add -lnsl if needed, but most likely it
36514         won't be needed since only getaddrinfo uses this and getaddrinfo
36515         isn't needed on Solaris 8.
36516
36517         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36518         problem to Solaris 8 encountered with coreutils 7.2, which
36519         resulted in a message "fnmatch.c:292: warning: passing argument 4
36520         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36521         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36522
36523 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36524
36525         * m4/ld-version-script.m4: Add FIXME comment.
36526
36527 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36528
36529         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36530         SOVERSION variable.
36531
36532 2009-04-02  Bruno Haible  <bruno@clisp.org>
36533
36534         * Makefile (info, html, dvi, pdf): Combine the rules.
36535         Suggested by Jim Meyering.
36536
36537 2009-04-01  Bruno Haible  <bruno@clisp.org>
36538
36539         * Makefile (info, html, dvi, pdf): New targets.
36540         Reported by Reuben Thomas <rrt@sc3d.org>.
36541
36542 2009-04-01  Bruno Haible  <bruno@clisp.org>
36543
36544         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36545         can be put into PATH.
36546         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36547
36548 2009-04-01  Bruno Haible  <bruno@clisp.org>
36549
36550         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36551
36552 2009-04-01  Bruno Haible  <bruno@clisp.org>
36553
36554         Rename module 'visibility'.
36555         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36556         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36557         * doc/gnulib.texi: Update.
36558         * MODULES.html.sh (Misc): Update.
36559         * NEWS: Mention the change.
36560
36561 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36562
36563         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36564         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36565         Eric Blake <ebb9@byu.net> for review.
36566         * MODULES.html.sh: Add lib-msvc-compat.
36567         * doc/gnulib.texi: Link to new section.
36568         * m4/ld-output-def.m4: New file.
36569         * doc/ld-output-def.texi: New file.
36570
36571 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36572
36573         Rename ld-version-script to lib-symbol-versions.  Suggested by
36574         Bruno Haible <bruno@clisp.org>.
36575         * modules/ld-version-script: Renamed to lib-symbol-versions.
36576         * doc/ld-version-script.texi: Fix module name.
36577         * MODULES.html.sh: Add lib-symbol-versions.
36578
36579 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36580
36581         * modules/u64-tests: New file.
36582         * tests/test-u64.c: New file.
36583
36584 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36585
36586         * MODULES.html.sh: Mention u64.
36587         * modules/u64: New module.
36588         * modules/crypto/sha512: Depend on u64 module instead of providing
36589         u64.h.
36590
36591 2009-03-27  Eric Blake  <ebb9@byu.net>
36592
36593         test-strerror: make debugging EAI_SYSTEM easier
36594         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36595         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36596         failure was EAI_SYSTEM.
36597
36598 2009-03-25  Bruno Haible  <bruno@clisp.org>
36599
36600         Fix a problem with --enable-relocatable on Solaris 7.
36601         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36602         since 2008-02-24.
36603
36604 2009-03-25  Eric Blake  <ebb9@byu.net>
36605
36606         test-sockets: avoid gcc warning
36607         * tests/test-sockets.c (main): Silence compiler warning.
36608
36609 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36610
36611         New modules nproc, pthread, contributed by Glen Lenker.
36612
36613         * MODULES.html.sh: Add pthread, nproc.
36614         * lib/nproc.c: New file.
36615         * lib/nproc.h: New file.
36616         * lib/pthread.in.h: New file.
36617         * m4/pthread.m4: New file.
36618         * modules/nproc: New file.
36619         * modules/pthread: New file.
36620
36621 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36622
36623         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36624         New variable.
36625
36626 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36627
36628         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36629         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36630         * tests/test-filevercmp.c: Add tests for backup suffixes.
36631
36632 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36633
36634         * modules/stdlib (Depends-on): Add stdint, needed when defining
36635         struct random_data on, for example, HP-UX 10.20.  Reported by
36636         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36637
36638 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36639
36640         * lib/readline.c (readline): Call fflush on stdout after printing
36641         prompt.
36642
36643 2009-03-20  Bruno Haible  <bruno@clisp.org>
36644
36645         Remove dependency from 'close' module to -lws2_32 on native Windows.
36646         * lib/close-hook.h: New file.
36647         * lib/close-hook.c: New file.
36648         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36649         w32sock.h.
36650         (_gl_close_fd_maybe_socket): Remove function.
36651         (rpl_close): Invoke execute_all_close_hooks instead of
36652         _gl_close_fd_maybe_socket.
36653         * lib/sockets.c: Include close-hook.h, w32sock.h.
36654         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36655         (close_sockets_hook): New variable.
36656         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36657         (gl_sockets_cleanup): Unregister it.
36658         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36659         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36660         * modules/close-hook: New file.
36661         * modules/close (Files): Remove lib/w32sock.h.
36662         (Depends-on): Add close-hook.
36663         (Link): Remove section.
36664         * modules/sockets (Files): Add lib/w32sock.h.
36665         (Depends-on): Add close-hook.
36666         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36667         invocation.
36668         * NEWS: Mention that LIB_CLOSE is gone.
36669
36670 2009-03-23  Eric Blake  <ebb9@byu.net>
36671
36672         signal-tests: test previous patch
36673         * tests/test-signal.c: New file.
36674         * modules/signal-tests: Likewise.
36675
36676         signal.h: always support 'volatile sig_atomic_t'
36677         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36678         (gl_SIGNAL_H_DEFAULTS): Add a default.
36679         * modules/signal (Makefile.am): Substitute if needed.
36680         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36681         users can blindly add volatile.
36682         * doc/posix-headers/signal.texi (signal.h): Document it.
36683         Reported by Matthew Woehlke.
36684
36685 2009-03-23  Jim Meyering  <meyering@redhat.com>
36686
36687         pathmax: PATH_MAX: use pathconf only when available
36688         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36689         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36690         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36691         This avoids a link failure in a PSP cross-compilation environment
36692         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36693
36694         * lib/vasnprintf.c (divide): Fix typo in comment.
36695
36696 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36697
36698         * gnulib-tool (func_filter_filelist): Fix comment.
36699
36700 2009-03-20  Bruno Haible  <bruno@clisp.org>
36701
36702         Make sockets.h self-contained.
36703         * lib/sockets.c: Include sockets.h first.
36704         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36705
36706 2009-03-19  Eric Blake  <ebb9@byu.net>
36707
36708         doc: mention more functions added in cygwin 1.7.0
36709         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36710         addition.
36711         * doc/posix-functions/log2f.texi: Likewise.
36712
36713 2009-03-19  Jim Meyering  <meyering@redhat.com>
36714
36715         fsusage: avoid syntax error due to statement-before-declaration
36716         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36717         after all declarations.  Reported by Matthew Woehlke in
36718         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36719
36720 2009-03-18  Eric Blake  <ebb9@byu.net>
36721
36722         build-aux/compile: sync from automake
36723         * build-aux/compile: New file, from automake.
36724         * config/srclist.txt: Mention build-aux/compile.
36725
36726 2009-03-17  Bruno Haible  <bruno@clisp.org>
36727
36728         * lib/git-merge-changelog.c: Fix typo in comment.
36729         Reported by Reuben Thomas <rrt@sc3d.org>.
36730
36731 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36732
36733         * m4/regex.m4: update and improve help for
36734         --without-included-regex.
36735
36736 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36737
36738         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36739         failure on missing include files.
36740
36741 2009-03-17  Eric Blake  <ebb9@byu.net>
36742
36743         doc: mention more functions added in cygwin 1.7.0
36744         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36745         addition.
36746         * doc/posix-functions/fwscanf.texi: Likewise.
36747         * doc/posix-functions/swprintf.texi: Likewise.
36748         * doc/posix-functions/swscanf.texi: Likewise.
36749         * doc/posix-functions/vfwprintf.texi: Likewise.
36750         * doc/posix-functions/vfwscanf.texi: Likewise.
36751         * doc/posix-functions/vswprintf.texi: Likewise.
36752         * doc/posix-functions/vswscanf.texi: Likewise.
36753         * doc/posix-functions/vwprintf.texi: Likewise.
36754         * doc/posix-functions/vwscanf.texi: Likewise.
36755         * doc/posix-functions/wcscasecmp.texi: Likewise.
36756         * doc/posix-functions/wcsdup.texi: Likewise.
36757         * doc/posix-functions/wcsftime.texi: Likewise.
36758         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36759         * doc/posix-functions/wprintf.texi: Likewise.
36760         * doc/posix-functions/wscanf.texi: Likewise.
36761         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36762
36763 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36764
36765         maint.mk: really add $(AM_MAKEFLAGS)
36766         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36767         was inadvertently omitted in the last commit.
36768         Spotted by Bruno Haible.
36769
36770         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36771         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36772         $(AM_MAKEFLAGS)' rather than plain `make'.
36773
36774         gnulib-tool: execute $MAKE not make
36775         * gnulib-tool: Default $MAKE to 'make'.
36776         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36777         than make.  Initialize $MAKE in the do-autobuild script.
36778
36779         gnulib-tool: use $MAKE not make in generated files
36780         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36781         make, in generated files.  Initialize $MAKE in the do-autobuild
36782         script.
36783
36784         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36785
36786         GNUmakefile: disable parallelism only for multiple, recursive targets
36787         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36788         additions in the Makefile.
36789         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36790         by Automake.
36791         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36792         are listed on the command line and at least one of them is
36793         listed in $(ALL_RECURSIVE_TARGETS).
36794
36795 2009-03-14  Bruno Haible  <bruno@clisp.org>
36796
36797         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36798         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36799         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36800         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36801         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36802         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36803         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36804         unistr/u8-uctomb.
36805         * modules/unistr/u8-strchr (Depends-on): Likewise.
36806         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36807         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36808         unistr/u16-uctomb.
36809         * modules/unistr/u16-strchr (Depends-on): Likewise.
36810         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36811
36812 2009-03-12  Bruno Haible  <bruno@clisp.org>
36813
36814         Work around select() bug on Interix 3.5.
36815         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36816         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36817         * m4/select.m4: New file.
36818         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36819         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36820         * modules/select (Files): Add m4/select.m4.
36821         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36822         * modules/nanosleep (Depends-on): Add select.
36823         * modules/poll (Depends-on): Likewise.
36824         * doc/posix-functions/select.texi: Mention the Interix bug.
36825         Reported by Markus Duft <mduft@gentoo.org>.
36826
36827         * lib/select.c: Renamed from lib/winsock-select.c.
36828         * modules/select (Files): Add lib/select.c, remove
36829         lib/winsock-select.c.
36830         (configure.ac): Update.
36831
36832 2009-03-12  Jim Meyering  <meyering@redhat.com>
36833
36834         avoid gcc warnings about unused macro definitions
36835         * lib/readtokens.c (STREQ): Remove unused definition.
36836         * lib/xmalloc.c (SIZE_MAX): Likewise.
36837         * lib/openat-die.c (N_): Likewise.
36838         * lib/mountlist.c (SIZE_MAX): Remove definition.
36839         Instead, include <stdint.h>.
36840         * lib/readutmp.c: Likewise.
36841         * modules/readutmp (Depends-on): Add stdint.
36842         * modules/mountlist (Depends-on): Add stdint.
36843         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36844
36845 2009-03-10  Bruno Haible  <bruno@clisp.org>
36846
36847         Tests for module 'mbmemcasecoll'.
36848         * modules/mbmemcasecoll-tests: New file.
36849         * tests/test-mbmemcasecoll1.sh: New file.
36850         * tests/test-mbmemcasecoll2.sh: New file.
36851         * tests/test-mbmemcasecoll3.sh: New file.
36852         * tests/test-mbmemcasecoll.c: New file.
36853
36854         New module 'mbmemcasecoll'.
36855         * lib/mbmemcasecoll.h: New file.
36856         * lib/mbmemcasecoll.c: New file.
36857         * modules/mbmemcasecoll: New file.
36858
36859         * tests/test-mbmemcasecmp.h: New file, extracted from
36860         tests/test-mbmemcasecmp.c.
36861         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36862         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36863         (main): Update.
36864         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36865
36866 2009-03-09  Bruno Haible  <bruno@clisp.org>
36867
36868         Tests for module 'mbmemcasecmp'.
36869         * modules/mbmemcasecmp-tests: New file.
36870         * tests/test-mbmemcasecmp1.sh: New file.
36871         * tests/test-mbmemcasecmp2.sh: New file.
36872         * tests/test-mbmemcasecmp3.sh: New file.
36873         * tests/test-mbmemcasecmp.c: New file.
36874
36875         New module 'mbmemcasecmp'.
36876         * lib/mbmemcasecmp.h: New file.
36877         * lib/mbmemcasecmp.c: New file.
36878         * modules/mbmemcasecmp: New file.
36879
36880 2009-03-09  Bruno Haible  <bruno@clisp.org>
36881
36882         Tests for module 'unicase/ulc-casecoll'.
36883         * modules/unicase/ulc-casecoll-tests: New file.
36884         * tests/unicase/test-ulc-casecoll1.sh: New file.
36885         * tests/unicase/test-ulc-casecoll2.sh: New file.
36886         * tests/unicase/test-ulc-casecoll.c: New file.
36887
36888         New module 'unicase/ulc-casecoll'.
36889         * lib/unicase.h (ulc_casecoll): New declaration.
36890         * lib/unicase/ulc-casecoll.c: New file.
36891         * modules/unicase/ulc-casecoll: New file.
36892
36893         New module 'unicase/ulc-casexfrm'.
36894         * lib/unicase.h (ulc_casexfrm): New declaration.
36895         * lib/unicase/ulc-casexfrm.c: New file.
36896         * modules/unicase/ulc-casexfrm: New file.
36897
36898 2009-03-09  Bruno Haible  <bruno@clisp.org>
36899
36900         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36901         invocations.
36902
36903         * m4/mbscasecmp.m4: Remove file.
36904         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36905         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36906
36907         * m4/mbscasestr.m4: Remove file.
36908         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36909         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36910
36911         * m4/mbschr.m4: Remove file.
36912         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36913         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36914
36915         * m4/mbscspn.m4: Remove file.
36916         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36917         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36918
36919         * m4/mbslen.m4: Remove file.
36920         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36921         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36922
36923         * m4/mbsncasecmp.m4: Remove file.
36924         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36925         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36926
36927         * m4/mbsnlen.m4: Remove file.
36928         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36929         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36930
36931         * m4/mbspbrk.m4: Remove file.
36932         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36933         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36934
36935         * m4/mbspcasecmp.m4: Remove file.
36936         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36937         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36938
36939         * m4/mbsrchr.m4: Remove file.
36940         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36941         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36942
36943         * m4/mbssep.m4: Remove file.
36944         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36945         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36946
36947         * m4/mbsspn.m4: Remove file.
36948         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36949         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36950
36951         * m4/mbsstr.m4: Remove file.
36952         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36953         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36954
36955         * m4/mbstok_r.m4: Remove file.
36956         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36957         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36958
36959         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36960
36961         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36962         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36963
36964         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36965
36966 2009-03-08  Bruno Haible  <bruno@clisp.org>
36967
36968         Tests for module 'unicase/ulc-casecmp'.
36969         * modules/unicase/ulc-casecmp-tests: New file.
36970         * tests/unicase/test-ulc-casecmp1.sh: New file.
36971         * tests/unicase/test-ulc-casecmp2.sh: New file.
36972         * tests/unicase/test-ulc-casecmp.c: New file.
36973
36974         New module 'unicase/ulc-casecmp'.
36975         * lib/unicase.h (ulc_casecmp): New declaration.
36976         * lib/unicase/ulc-casecmp.c: New file.
36977         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36978         'const SRC_UNIT *'.
36979         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36980         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36981         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36982         * modules/unicase/ulc-casecmp: New file.
36983
36984         Tests for module 'unicase/u32-is-cased'.
36985         * modules/unicase/u32-is-cased-tests: New file.
36986         * tests/unicase/test-u32-is-cased.c: New file.
36987
36988         Tests for module 'unicase/u16-is-cased'.
36989         * modules/unicase/u16-is-cased-tests: New file.
36990         * tests/unicase/test-u16-is-cased.c: New file.
36991
36992         Tests for module 'unicase/u8-is-cased'.
36993         * modules/unicase/u8-is-cased-tests: New file.
36994         * tests/unicase/test-u8-is-cased.c: New file.
36995         * tests/unicase/test-is-cased.h: New file.
36996
36997         New module 'unicase/u32-is-cased'.
36998         * lib/unicase/u32-is-cased.c: New file.
36999         * modules/unicase/u32-is-cased: New file.
37000
37001         New module 'unicase/u16-is-cased'.
37002         * lib/unicase/u16-is-cased.c: New file.
37003         * modules/unicase/u16-is-cased: New file.
37004
37005         New module 'unicase/u8-is-cased'.
37006         * lib/unicase/u8-is-cased.c: New file.
37007         * lib/unicase/u-is-cased.h: New file.
37008         * modules/unicase/u8-is-cased: New file.
37009
37010         Tests for module 'unicase/u32-is-casefolded'.
37011         * modules/unicase/u32-is-casefolded-tests: New file.
37012         * tests/unicase/test-u32-is-casefolded.c: New file.
37013
37014         Tests for module 'unicase/u16-is-casefolded'.
37015         * modules/unicase/u16-is-casefolded-tests: New file.
37016         * tests/unicase/test-u16-is-casefolded.c: New file.
37017
37018         Tests for module 'unicase/u8-is-casefolded'.
37019         * modules/unicase/u8-is-casefolded-tests: New file.
37020         * tests/unicase/test-u8-is-casefolded.c: New file.
37021         * tests/unicase/test-is-casefolded.h: New file.
37022
37023         New module 'unicase/u32-is-casefolded'.
37024         * lib/unicase/u32-is-casefolded.c: New file.
37025         * modules/unicase/u32-is-casefolded: New file.
37026
37027         New module 'unicase/u16-is-casefolded'.
37028         * lib/unicase/u16-is-casefolded.c: New file.
37029         * modules/unicase/u16-is-casefolded: New file.
37030
37031         New module 'unicase/u8-is-casefolded'.
37032         * lib/unicase/u8-is-casefolded.c: New file.
37033         * modules/unicase/u8-is-casefolded: New file.
37034
37035         Tests for module 'unicase/u32-is-titlecase'.
37036         * modules/unicase/u32-is-titlecase-tests: New file.
37037         * tests/unicase/test-u32-is-titlecase.c: New file.
37038
37039         Tests for module 'unicase/u16-is-titlecase'.
37040         * modules/unicase/u16-is-titlecase-tests: New file.
37041         * tests/unicase/test-u16-is-titlecase.c: New file.
37042
37043         Tests for module 'unicase/u8-is-titlecase'.
37044         * modules/unicase/u8-is-titlecase-tests: New file.
37045         * tests/unicase/test-u8-is-titlecase.c: New file.
37046         * tests/unicase/test-is-titlecase.h: New file.
37047
37048         New module 'unicase/u32-is-titlecase'.
37049         * lib/unicase/u32-is-titlecase.c: New file.
37050         * modules/unicase/u32-is-titlecase: New file.
37051
37052         New module 'unicase/u16-is-titlecase'.
37053         * lib/unicase/u16-is-titlecase.c: New file.
37054         * modules/unicase/u16-is-titlecase: New file.
37055
37056         New module 'unicase/u8-is-titlecase'.
37057         * lib/unicase/u8-is-titlecase.c: New file.
37058         * modules/unicase/u8-is-titlecase: New file.
37059
37060         Tests for module 'unicase/u32-is-lowercase'.
37061         * modules/unicase/u32-is-lowercase-tests: New file.
37062         * tests/unicase/test-u32-is-lowercase.c: New file.
37063
37064         Tests for module 'unicase/u16-is-lowercase'.
37065         * modules/unicase/u16-is-lowercase-tests: New file.
37066         * tests/unicase/test-u16-is-lowercase.c: New file.
37067
37068         Tests for module 'unicase/u8-is-lowercase'.
37069         * modules/unicase/u8-is-lowercase-tests: New file.
37070         * tests/unicase/test-u8-is-lowercase.c: New file.
37071         * tests/unicase/test-is-lowercase.h: New file.
37072
37073         New module 'unicase/u32-is-lowercase'.
37074         * lib/unicase/u32-is-lowercase.c: New file.
37075         * modules/unicase/u32-is-lowercase: New file.
37076
37077         New module 'unicase/u16-is-lowercase'.
37078         * lib/unicase/u16-is-lowercase.c: New file.
37079         * modules/unicase/u16-is-lowercase: New file.
37080
37081         New module 'unicase/u8-is-lowercase'.
37082         * lib/unicase/u8-is-lowercase.c: New file.
37083         * modules/unicase/u8-is-lowercase: New file.
37084
37085         Tests for module 'unicase/u32-is-uppercase'.
37086         * modules/unicase/u32-is-uppercase-tests: New file.
37087         * tests/unicase/test-u32-is-uppercase.c: New file.
37088
37089         Tests for module 'unicase/u16-is-uppercase'.
37090         * modules/unicase/u16-is-uppercase-tests: New file.
37091         * tests/unicase/test-u16-is-uppercase.c: New file.
37092
37093         Tests for module 'unicase/u8-is-uppercase'.
37094         * modules/unicase/u8-is-uppercase-tests: New file.
37095         * tests/unicase/test-u8-is-uppercase.c: New file.
37096         * tests/unicase/test-is-uppercase.h: New file.
37097
37098         New module 'unicase/u32-is-uppercase'.
37099         * lib/unicase/u32-is-uppercase.c: New file.
37100         * modules/unicase/u32-is-uppercase: New file.
37101
37102         New module 'unicase/u16-is-uppercase'.
37103         * lib/unicase/u16-is-uppercase.c: New file.
37104         * modules/unicase/u16-is-uppercase: New file.
37105
37106         New module 'unicase/u8-is-uppercase'.
37107         * lib/unicase/u8-is-uppercase.c: New file.
37108         * modules/unicase/u8-is-uppercase: New file.
37109
37110         New module 'unicase/u32-is-invariant'.
37111         * lib/unicase/u32-is-invariant.c: New file.
37112         * modules/unicase/u32-is-invariant: New file.
37113
37114         New module 'unicase/u16-is-invariant'.
37115         * lib/unicase/u16-is-invariant.c: New file.
37116         * modules/unicase/u16-is-invariant: New file.
37117
37118         New module 'unicase/u8-is-invariant'.
37119         * lib/unicase/u8-is-invariant.c: New file.
37120         * lib/unicase/invariant.h: New file.
37121         * lib/unicase/u-is-invariant.h: New file.
37122         * modules/unicase/u8-is-invariant: New file.
37123
37124         Tests for module 'unicase/u32-casecoll'.
37125         * modules/unicase/u32-casecoll-tests: New file.
37126         * tests/unicase/test-u32-casecoll.c: New file.
37127
37128         Tests for module 'unicase/u16-casecoll'.
37129         * modules/unicase/u16-casecoll-tests: New file.
37130         * tests/unicase/test-u16-casecoll.c: New file.
37131
37132         Tests for module 'unicase/u8-casecoll'.
37133         * modules/unicase/u8-casecoll-tests: New file.
37134         * tests/unicase/test-u8-casecoll.c: New file.
37135
37136         New module 'unicase/u32-casecoll'.
37137         * lib/unicase/u32-casecoll.c: New file.
37138         * modules/unicase/u32-casecoll: New file.
37139
37140         New module 'unicase/u16-casecoll'.
37141         * lib/unicase/u16-casecoll.c: New file.
37142         * modules/unicase/u16-casecoll: New file.
37143
37144         New module 'unicase/u8-casecoll'.
37145         * lib/unicase/u8-casecoll.c: New file.
37146         * lib/unicase/u-casecoll.h: New file.
37147         * modules/unicase/u8-casecoll: New file.
37148
37149         New module 'unicase/u32-casexfrm'.
37150         * lib/unicase/u32-casexfrm.c: New file.
37151         * modules/unicase/u32-casexfrm: New file.
37152
37153         New module 'unicase/u16-casexfrm'.
37154         * lib/unicase/u16-casexfrm.c: New file.
37155         * modules/unicase/u16-casexfrm: New file.
37156
37157         New module 'unicase/u8-casexfrm'.
37158         * lib/unicase/u8-casexfrm.c: New file.
37159         * lib/unicase/u-casexfrm.h: New file.
37160         * modules/unicase/u8-casexfrm: New file.
37161
37162         Tests for module 'unicase/u32-casecmp'.
37163         * modules/unicase/u32-casecmp-tests: New file.
37164         * tests/unicase/test-u32-casecmp.c: New file.
37165
37166         Tests for module 'unicase/u16-casecmp'.
37167         * modules/unicase/u16-casecmp-tests: New file.
37168         * tests/unicase/test-u16-casecmp.c: New file.
37169
37170         Tests for module 'unicase/u8-casecmp'.
37171         * modules/unicase/u8-casecmp-tests: New file.
37172         * tests/unicase/test-u8-casecmp.c: New file.
37173         * tests/unicase/test-casecmp.h: New file.
37174
37175         New module 'unicase/u32-casecmp'.
37176         * lib/unicase/u32-casecmp.c: New file.
37177         * modules/unicase/u32-casecmp: New file.
37178
37179         New module 'unicase/u16-casecmp'.
37180         * lib/unicase/u16-casecmp.c: New file.
37181         * modules/unicase/u16-casecmp: New file.
37182
37183         New module 'unicase/u8-casecmp'.
37184         * lib/unicase/u8-casecmp.c: New file.
37185         * lib/unicase/u-casecmp.h: New file.
37186         * modules/unicase/u8-casecmp: New file.
37187
37188         Tests for module 'unicase/u32-casefold'.
37189         * modules/unicase/u32-casefold-tests: New file.
37190         * tests/unicase/test-u32-casefold.c: New file.
37191
37192         Tests for module 'unicase/u16-casefold'.
37193         * modules/unicase/u16-casefold-tests: New file.
37194         * tests/unicase/test-u16-casefold.c: New file.
37195
37196         Tests for module 'unicase/u8-casefold'.
37197         * modules/unicase/u8-casefold-tests: New file.
37198         * tests/unicase/test-u8-casefold.c: New file.
37199
37200         New module 'unicase/u32-casefold'.
37201         * lib/unicase/u32-casefold.c: New file.
37202         * modules/unicase/u32-casefold: New file.
37203
37204         New module 'unicase/u16-casefold'.
37205         * lib/unicase/u16-casefold.c: New file.
37206         * modules/unicase/u16-casefold: New file.
37207
37208         New module 'unicase/u8-casefold'.
37209         * lib/unicase/u8-casefold.c: New file.
37210         * lib/unicase/u-casefold.h: New file.
37211         * modules/unicase/u8-casefold: New file.
37212
37213         New module 'unicase/tocasefold'.
37214         * lib/unicase/casefold.h: New file.
37215         * lib/unicase/tocasefold.c: New file.
37216         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37217         * modules/unicase/tocasefold: New file.
37218
37219         Tests for module 'unicase/u32-totitle'.
37220         * modules/unicase/u32-totitle-tests: New file.
37221         * tests/unicase/test-u32-totitle.c: New file.
37222
37223         Tests for module 'unicase/u16-totitle'.
37224         * modules/unicase/u16-totitle-tests: New file.
37225         * tests/unicase/test-u16-totitle.c: New file.
37226
37227         Tests for module 'unicase/u8-totitle'.
37228         * modules/unicase/u8-totitle-tests: New file.
37229         * tests/unicase/test-u8-totitle.c: New file.
37230
37231         New module 'unicase/u32-totitle'.
37232         * lib/unicase/u32-totitle.c: New file.
37233         * modules/unicase/u32-totitle: New file.
37234
37235         New module 'unicase/u16-totitle'.
37236         * lib/unicase/u16-totitle.c: New file.
37237         * modules/unicase/u16-totitle: New file.
37238
37239         New module 'unicase/u8-totitle'.
37240         * lib/unicase/u8-totitle.c: New file.
37241         * lib/unicase/u-totitle.h: New file.
37242         * modules/unicase/u8-totitle: New file.
37243
37244         Tests for module 'unicase/u32-tolower'.
37245         * modules/unicase/u32-tolower-tests: New file.
37246         * tests/unicase/test-u32-tolower.c: New file.
37247
37248         Tests for module 'unicase/u16-tolower'.
37249         * modules/unicase/u16-tolower-tests: New file.
37250         * tests/unicase/test-u16-tolower.c: New file.
37251
37252         Tests for module 'unicase/u8-tolower'.
37253         * modules/unicase/u8-tolower-tests: New file.
37254         * tests/unicase/test-u8-tolower.c: New file.
37255
37256         New module 'unicase/u32-tolower'.
37257         * lib/unicase/u32-tolower.c: New file.
37258         * modules/unicase/u32-tolower: New file.
37259
37260         New module 'unicase/u16-tolower'.
37261         * lib/unicase/u16-tolower.c: New file.
37262         * modules/unicase/u16-tolower: New file.
37263
37264         New module 'unicase/u8-tolower'.
37265         * lib/unicase/u8-tolower.c: New file.
37266         * modules/unicase/u8-tolower: New file.
37267
37268         Tests for module 'unicase/u32-toupper'.
37269         * modules/unicase/u32-toupper-tests: New file.
37270         * tests/unicase/test-u32-toupper.c: New file.
37271
37272         Tests for module 'unicase/u16-toupper'.
37273         * modules/unicase/u16-toupper-tests: New file.
37274         * tests/unicase/test-u16-toupper.c: New file.
37275
37276         Tests for module 'unicase/u8-toupper'.
37277         * modules/unicase/u8-toupper-tests: New file.
37278         * tests/unicase/test-u8-toupper.c: New file.
37279
37280         New module 'unicase/u32-toupper'.
37281         * lib/unicase/u32-toupper.c: New file.
37282         * modules/unicase/u32-toupper: New file.
37283
37284         New module 'unicase/u16-toupper'.
37285         * lib/unicase/u16-toupper.c: New file.
37286         * modules/unicase/u16-toupper: New file.
37287
37288         New module 'unicase/u8-toupper'.
37289         * lib/unicase/u8-toupper.c: New file.
37290         * modules/unicase/u8-toupper: New file.
37291
37292         New module 'unicase/u32-casemap'.
37293         * lib/unicase/u32-casemap.c: New file.
37294         * modules/unicase/u32-casemap: New file.
37295
37296         New module 'unicase/u16-casemap'.
37297         * lib/unicase/u16-casemap.c: New file.
37298         * modules/unicase/u16-casemap: New file.
37299
37300         New module 'unicase/u8-casemap'.
37301         * lib/unicase/unicasemap.h: New file.
37302         * lib/unicase/u8-casemap.c: New file.
37303         * lib/unicase/u-casemap.h: New file.
37304         * modules/unicase/u8-casemap: New file.
37305
37306         New module 'unicase/special-casing'.
37307         * lib/unicase/special-casing.h: New file.
37308         * lib/unicase/special-casing.c: New file.
37309         * lib/unicase/special-casing-table.gperf: New file, generated by
37310         gen-uni-tables.c.
37311         * modules/unicase/special-casing: New file.
37312
37313         Tests for module 'unicase/locale-language'.
37314         * modules/unicase/locale-language-tests: New file.
37315         * tests/unicase/test-locale-language.sh: New file.
37316         * tests/unicase/test-locale-language.c: New file.
37317
37318         New module 'unicase/locale-language'.
37319         * lib/unicase/locale-language.c: New file.
37320         * lib/unicase/locale-languages.gperf: New file.
37321         * modules/unicase/locale-language: New file.
37322
37323         Generate more tables for case conversion and case folding.
37324         * lib/gen-uni-tables.c (SCC_*): New enum items.
37325         (struct special_casing_rule): New type.
37326         (casing_rules, num_casing_rules, allocated_casing_rules): New
37327         variables.
37328         (add_casing_rule, fill_casing_rules): New functions.
37329         (struct casefold_rule): New type.
37330         (casefolding_rules, num_casefolding_rules,
37331         allocated_casefolding_rules): New variables.
37332         (fill_casefolding_rules): New function.
37333         (unicode_casefold): New variable.
37334         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37335         sort_casing_rules, output_casing_rules): New functions.
37336         (main): Accept to more arguments: SpecialCasing.txt and
37337         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37338         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37339         Output mapping for casefolding.
37340
37341         * lib/unicase.h: Include stdbool.h, uninorm.h.
37342         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37343         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37344         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37345         arguments.
37346         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37347         resultp arguments.
37348         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37349         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37350         resultp arguments.
37351         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37352         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37353         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37354         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37355         declarations.
37356         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37357
37358 2009-03-08  Bruno Haible  <bruno@clisp.org>
37359
37360         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37361         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37362         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37363         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37364
37365 2009-03-07  Bruno Haible  <bruno@clisp.org>
37366
37367         Adjust u*_normcmp, u*_normcoll API.
37368         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37369         u16_normcoll, u32_normcoll): Change failure conventions.
37370         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37371         errno and return -1.
37372         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37373
37374 2009-03-07  Bruno Haible  <bruno@clisp.org>
37375
37376         Tests for module 'uninorm/u32-normcoll'.
37377         * modules/uninorm/u32-normcoll-tests: New file.
37378         * tests/uninorm/test-u32-normcoll.c: New file.
37379
37380         Tests for module 'uninorm/u16-normcoll'.
37381         * modules/uninorm/u16-normcoll-tests: New file.
37382         * tests/uninorm/test-u16-normcoll.c: New file.
37383
37384         Tests for module 'uninorm/u8-normcoll'.
37385         * modules/uninorm/u8-normcoll-tests: New file.
37386         * tests/uninorm/test-u8-normcoll.c: New file.
37387
37388 2009-03-07  Bruno Haible  <bruno@clisp.org>
37389
37390         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37391         tests/uninorm/test-u32-normcmp.c.
37392         * tests/uninorm/test-u32-normcmp.c: Include it.
37393         (test_nonascii): New function, extracted from main. Add some more
37394         tests.
37395         (main): Invoke test_ascii and test_nonascii.
37396         * modules/uninorm/u32-normcmp-tests (Files): Add
37397         tests/uninorm/test-u32-normcmp.h.
37398         (Depends-on): Remove uninorm/u32-normcmp.
37399
37400         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37401         tests/uninorm/test-u16-normcmp.c.
37402         * tests/uninorm/test-u16-normcmp.c: Include it.
37403         (test_nonascii): New function, extracted from main. Add some more
37404         tests.
37405         (main): Invoke test_ascii and test_nonascii.
37406         * modules/uninorm/u16-normcmp-tests (Files): Add
37407         tests/uninorm/test-u16-normcmp.h.
37408         (Depends-on): Remove uninorm/u16-normcmp.
37409
37410         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37411         tests/uninorm/test-u8-normcmp.c.
37412         * tests/uninorm/test-u8-normcmp.c: Include it.
37413         (test_nonascii): New function, extracted from main. Add some more
37414         tests.
37415         (main): Invoke test_ascii and test_nonascii.
37416         * modules/uninorm/u8-normcmp-tests (Files): Add
37417         tests/uninorm/test-u8-normcmp.h.
37418         (Depends-on): Remove uninorm/u8-normcmp.
37419
37420 2009-03-07  Bruno Haible  <bruno@clisp.org>
37421
37422         New module 'uninorm/u32-normcoll'.
37423         * lib/uninorm/u32-normcoll.c: New file.
37424         * modules/uninorm/u32-normcoll: New file.
37425
37426         New module 'uninorm/u16-normcoll'.
37427         * lib/uninorm/u16-normcoll.c: New file.
37428         * modules/uninorm/u16-normcoll: New file.
37429
37430         New module 'uninorm/u8-normcoll'.
37431         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37432         declarations.
37433         * lib/uninorm/u8-normcoll.c: New file.
37434         * lib/uninorm/u-normcoll.h: New file.
37435         * modules/uninorm/u8-normcoll: New file.
37436
37437         New module 'uninorm/u32-normxfrm'.
37438         * lib/uninorm/u32-normxfrm.c: New file.
37439         * modules/uninorm/u32-normxfrm: New file.
37440
37441         New module 'uninorm/u16-normxfrm'.
37442         * lib/uninorm/u16-normxfrm.c: New file.
37443         * modules/uninorm/u16-normxfrm: New file.
37444
37445         New module 'uninorm/u8-normxfrm'.
37446         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37447         declarations.
37448         * lib/uninorm/u8-normxfrm.c: New file.
37449         * lib/uninorm/u-normxfrm.h: New file.
37450         * modules/uninorm/u8-normxfrm: New file.
37451
37452 2009-03-07  Bruno Haible  <bruno@clisp.org>
37453
37454         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37455         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37456         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37457
37458 2009-03-07  Bruno Haible  <bruno@clisp.org>
37459
37460         New module 'memxfrm'.
37461         * lib/memxfrm.h: New file.
37462         * lib/memxfrm.c: New file.
37463         * modules/memxfrm: New file.
37464
37465 2009-03-07  Bruno Haible  <bruno@clisp.org>
37466
37467         New module 'memcmp2'.
37468         * lib/memcmp2.h: New file.
37469         * lib/memcmp2.c: New file.
37470         * modules/memcmp2: New file.
37471
37472 2009-03-07  Bruno Haible  <bruno@clisp.org>
37473
37474         Tests for module 'uninorm/decomposing-form'.
37475         * modules/uninorm/decomposing-form-tests: New file.
37476         * tests/uninorm/test-decomposing-form.c: New file.
37477
37478         New module 'uninorm/decomposing-form'.
37479         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37480         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37481         Add 'decomposing_variant' field.
37482         * lib/uninorm/decomposing-form.c: New file.
37483         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37484         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37485         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37486         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37487         * modules/uninorm/decomposing-form: New file.
37488         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37489         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37490
37491 2009-03-07  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37494         strings.
37495
37496 2009-03-06  Bruno Haible  <bruno@clisp.org>
37497
37498         Tests for module 'uninorm/u32-normcmp'.
37499         * tests/uninorm/test-u32-normcmp.c: New file.
37500         * modules/uninorm/u32-normcmp-tests: New file.
37501
37502         Tests for module 'uninorm/u16-normcmp'.
37503         * tests/uninorm/test-u16-normcmp.c: New file.
37504         * modules/uninorm/u16-normcmp-tests: New file.
37505
37506         Tests for module 'uninorm/u8-normcmp'.
37507         * tests/uninorm/test-u8-normcmp.c: New file.
37508         * modules/uninorm/u8-normcmp-tests: New file.
37509
37510         New module 'uninorm/u32-normcmp'.
37511         * lib/uninorm/u32-normcmp.c: New file.
37512         * modules/uninorm/u32-normcmp: New file.
37513
37514         New module 'uninorm/u16-normcmp'.
37515         * lib/uninorm/u16-normcmp.c: New file.
37516         * modules/uninorm/u16-normcmp: New file.
37517
37518         New module 'uninorm/u8-normcmp'.
37519         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37520         declarations.
37521         * lib/uninorm/u8-normcmp.c: New file.
37522         * lib/uninorm/u-normcmp.h: New file.
37523         * modules/uninorm/u8-normcmp: New file.
37524
37525 2009-03-06  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37528         Reported by Eric Blake.
37529
37530 2009-03-06  Eric Blake  <ebb9@byu.net>
37531             Bruno Haible  <bruno@clisp.org>
37532
37533         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37534         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37535         condition.
37536         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37537         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37538         condition.
37539         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37540
37541 2009-03-06  Eric Blake  <ebb9@byu.net>
37542
37543         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37544         to avoid compiler warnings.
37545         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37546
37547 2009-03-05  Bruno Haible  <bruno@clisp.org>
37548
37549         * tests/test-ftell.c (main): Disable test beyond end of file on
37550         FreeMiNT.
37551         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37552
37553 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37554
37555         * lib/filevercmp.c: Move hidden files up in ordering.
37556         * tests/test-filevercmp.c: Add tests for hidden files.
37557
37558 2009-03-04  Bruno Haible  <bruno@clisp.org>
37559
37560         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37561         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37562         AM_CFLAGS.
37563         Reported by Simon Josefsson.
37564
37565 2009-03-03  Bruno Haible  <bruno@clisp.org>
37566
37567         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37568         Reported by Simon Josefsson.
37569
37570         * doc/ld-version-script.texi: Update node reference.
37571
37572 2009-03-03  Bruno Haible  <bruno@clisp.org>
37573
37574         * modules/visibility (License): Change to 'unlimited'.
37575         Suggested by Simon Josefsson.
37576
37577 2009-03-03  Jim Meyering  <meyering@redhat.com>
37578
37579         unlinkdir: cannot_unlink_dir may modify process state
37580         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37581         it's neither thread-safe nor appropriate for use in a library.
37582
37583 2009-03-03  Eric Blake  <ebb9@byu.net>
37584
37585         test-closein: silence test under Darwin
37586         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37587         care if it dies from EPIPE or EBADF.
37588
37589 2009-03-03  Bruno Haible  <bruno@clisp.org>
37590
37591         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37592         earlier.
37593         * doc/visibility.texi: Fix @node and @section.
37594
37595 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37596
37597         * doc/gnulib.texi: Link to sections for ld version script and
37598         visibility.
37599         * doc/visibility.texi: Add @node and @section.
37600         * modules/ld-version-script: New module.
37601         * m4/ld-version-script.m4: New file.
37602         * doc/ld-version-script.texi: New file.
37603
37604 2009-03-02  David Lutterkort  <lutter@redhat.com>
37605
37606         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37608
37609 2009-03-02  Bruno Haible  <bruno@clisp.org>
37610
37611         * doc/visibility.texi: Mention libtool's -export-symbols option.
37612
37613 2009-03-02  Jim Meyering  <meyering@redhat.com>
37614
37615         announce-gen: new option: --no-print-checksums
37616         * build-aux/announce-gen (usage): Describe it.
37617         (print_checksums): Print a newline here, not in the [*] footnote.
37618         (main): Honor it.
37619
37620 2009-03-01  Bruno Haible  <bruno@clisp.org>
37621
37622         Use socklen_t in the native Windows replacements prototypes.
37623         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37624         instead of 'int'.
37625         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37626         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37627         * modules/getsockopt (Depends-on): Add socklen.
37628         * modules/setsockopt (Depends-on): Add socklen.
37629
37630 2009-03-01  Bruno Haible  <bruno@clisp.org>
37631
37632         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37633         least 4.2.
37634
37635 2009-03-01  Eric Blake  <ebb9@byu.net>
37636             Bruno Haible  <bruno@clisp.org>
37637
37638         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37639         error messages.
37640         * lib/wait-process.c (wait_subprocess): Omit error message about
37641         deadly signal sent to the child of termsigp != NULL.
37642
37643 2009-03-01  Eric Blake  <ebb9@byu.net>
37644
37645         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37646
37647 2009-03-01  Bruno Haible  <bruno@clisp.org>
37648
37649         Avoid a gcc warning.
37650         * tests/test-sched.c (b): Make global.
37651         Reported by Eric Blake.
37652
37653 2009-01-19  Martin Lambers  <marlam@marlam.de>
37654
37655         Provide POSIX semantics for socket timeout options on W32.
37656         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37657         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37658         * modules/setsockopt: Depend on sys_time module for struct timeval.
37659         * modules/getsockopt: Depend on sys_time module for struct timeval.
37660
37661 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37662
37663         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37664         __USE_GNU, for consistency with netdb.in.h.
37665         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37666
37667 2009-03-01  Bruno Haible  <bruno@clisp.org>
37668
37669         More support for FreeMiNT.
37670         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37671         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37672
37673 2009-03-01  Bruno Haible  <bruno@clisp.org>
37674
37675         More support for FreeMiNT.
37676         * lib/fpurge.c (fpurge): Correct last commit.
37677         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37678
37679 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37680
37681         Fix unportable awk script in vc-list-files.
37682         * build-aux/vc-list-files: In the replacement awk script, use
37683         substr with a second argument of 1, not zero.
37684         Report by Simon Josefsson.
37685
37686 2009-02-28  Bruno Haible  <bruno@clisp.org>
37687
37688         More support for FreeMiNT.
37689         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37690         to FreeMiNT today.
37691         * lib/fwriting.c (fwriting): Likewise.
37692         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37693
37694 2009-02-28  Bruno Haible  <bruno@clisp.org>
37695
37696         * tests/test-freadseek.c (main): Disable test beyond end of file on
37697         FreeMiNT.
37698         * tests/test-ftello.c (main): Likewise.
37699         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37700
37701 2009-02-28  Bruno Haible  <bruno@clisp.org>
37702
37703         Add tentative support for FreeMiNT.
37704         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37705         * lib/fpurge.c (fpurge): Likewise.
37706         * lib/freadable.c (freadable): Likewise.
37707         * lib/freading.c (freading): Likewise.
37708         * lib/freadptr.c (freadptr): Likewise.
37709         * lib/freadseek.c (freadptrinc): Likewise.
37710         * lib/fseeko.c (rpl_fseeko): Likewise.
37711         * lib/fseterr.c (fseterr): Likewise.
37712         * lib/fwritable.c (fwritable): Likewise.
37713         * lib/fwriting.c (fwriting): Likewise.
37714         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37715         Hourihane.
37716         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37717
37718 2009-02-28  Bruno Haible  <bruno@clisp.org>
37719
37720         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37721         SIGCHLD.
37722         Reported by Jim Meyering.
37723
37724 2009-02-28  Bruno Haible  <bruno@clisp.org>
37725
37726         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37727         Mention the results of these tests on various platforms.
37728         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37729         order.
37730         * doc/posix-functions/printf.texi: Likewise.
37731         * doc/posix-functions/snprintf.texi: Likewise.
37732         * doc/posix-functions/sprintf.texi: Likewise.
37733         * doc/posix-functions/vfprintf.texi: Likewise.
37734         * doc/posix-functions/vprintf.texi: Likewise.
37735         * doc/posix-functions/vsnprintf.texi: Likewise.
37736         * doc/posix-functions/vsprintf.texi: Likewise.
37737         * doc/glibc-functions/obstack_printf.texi: Likewise.
37738         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37739
37740 2009-02-28  Bruno Haible  <bruno@clisp.org>
37741
37742         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37743         Reported by Loïc Minier <lool@dooz.org>.
37744
37745 2009-02-27  Bruno Haible  <bruno@clisp.org>
37746
37747         * gnulib-tool (func_import): Make the sed expression used to create the
37748         sed script for updating the .gitignore file POSIX compliant.
37749         Reported by Eric Blake.
37750
37751 2009-02-27  Bruno Haible  <bruno@clisp.org>
37752
37753         * gnulib-tool (sed): Don't alias as "sed --posix".
37754         Reported by Eric Blake.
37755
37756 2009-02-27  Bruno Haible  <bruno@clisp.org>
37757
37758         Avoid test link errors.
37759         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37760         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37761         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37762         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37764
37765 2009-02-27  Bruno Haible  <bruno@clisp.org>
37766
37767         Avoid spurious "(cached)" in configure output.
37768         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37769         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37770         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37771         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37772         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37773         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37774         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37775         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37776         Reported by Eric Blake.
37777
37778 2009-02-27  Eric Blake  <ebb9@byu.net>
37779
37780         printf: fix regression in previous patch
37781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37782
37783 2009-02-27  Bruno Haible  <bruno@clisp.org>
37784
37785         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37786         value.
37787         * lib/stdint.in.h: Likewise.
37788         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37789
37790 2009-02-27  Eric Blake  <ebb9@byu.net>
37791
37792         doc: mention more functions added in cygwin 1.7.0
37793         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37794         addition.
37795         * doc/posix-functions/open_wmemstream.texi: Likewise.
37796         * doc/posix-functions/wcsnlen.texi: Likewise.
37797         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37798         * doc/posix-functions/wcstod.texi: Likewise.
37799         * doc/posix-functions/wcstof.texi: Likewise.
37800         * doc/posix-functions/wcstoimax.texi: Likewise.
37801         * doc/posix-functions/wcstok.texi: Likewise.
37802         * doc/posix-functions/wcstoumax.texi: Likewise.
37803
37804         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37806         * doc/posix-functions/fprintf.texi: Update.
37807         * doc/posix-functions/printf.texi: Update.
37808         * doc/posix-functions/snprintf.texi: Update.
37809         * doc/posix-functions/sprintf.texi: Update.
37810         * doc/posix-functions/vfprintf.texi: Update.
37811         * doc/posix-functions/vprintf.texi: Update.
37812         * doc/posix-functions/vsnprintf.texi: Update.
37813         * doc/posix-functions/vsprintf.texi: Update.
37814         * doc/glibc-functions/obstack_printf.texi: Update.
37815         * doc/glibc-functions/obstack_vprintf.texi: Update.
37816
37817 2009-02-26  Eric Blake  <ebb9@byu.net>
37818
37819         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37820         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37821         compilation bug by using runtime conversion.
37822         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37823         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37824         * modules/ceill-tests (Files): Use nan.h.
37825         * modules/floorl-tests (Files): Likewise.
37826         * modules/frexpl-tests (Files): Likewise.
37827         * modules/isnanl-tests (Files): Likewise.
37828         * modules/ldexpl-tests (Files): Likewise.
37829         * modules/roundl-tests (Files): Likewise.
37830         * modules/truncl-tests (Files): Likewise.
37831         * tests/test-ceill.c (main): Use a working NaN.
37832         * tests/test-floorl.c (main): Likewise.
37833         * tests/test-frexpl.c (main): Likewise.
37834         * tests/test-isnan.c (test_long_double): Likewise.
37835         * tests/test-isnanl.h (main): Likewise.
37836         * tests/test-ldexpl.h (main): Likewise.
37837         * tests/test-roundl.h (main): Likewise.
37838         * tests/test-truncl.h (main): Likewise.
37839         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37840
37841 2009-02-26  Eric Blake  <ebb9@byu.net>
37842             Bruno Haible  <bruno@clisp.org>
37843
37844         Work around a *printf bug with %ls on Solaris.
37845         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37846         precision is specified, sprintf stops converting the wide string
37847         argument when the number of bytes that have been produced by this
37848         conversion equals or exceeds the precision.
37849         * doc/posix-functions/fprintf.texi: Update.
37850         * doc/posix-functions/printf.texi: Update.
37851         * doc/posix-functions/snprintf.texi: Update.
37852         * doc/posix-functions/sprintf.texi: Update.
37853         * doc/posix-functions/vfprintf.texi: Update.
37854         * doc/posix-functions/vprintf.texi: Update.
37855         * doc/posix-functions/vsnprintf.texi: Update.
37856         * doc/posix-functions/vsprintf.texi: Update.
37857         * doc/glibc-functions/obstack_printf.texi: Update.
37858         * doc/glibc-functions/obstack_vprintf.texi: Update.
37859
37860 2009-02-26  Eric Blake  <ebb9@byu.net>
37861
37862         stdlib: favor compiler check of random.h
37863         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37864         to avoid an ObjC random.h installed by Swarm.
37865
37866 2009-02-26  Bruno Haible  <bruno@clisp.org>
37867
37868         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37869         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37870         Reported by Gary V. Vaughan <gary@gnu.org>.
37871
37872 2009-02-26  Bruno Haible  <bruno@clisp.org>
37873
37874         Fix *printf behaviour regarding the %ls directive.
37875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37876         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37877         NEED_PRINTF_DIRECTIVE_LS.
37878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37879         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37881         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37882         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37883         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37884         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37887         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37889         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37893         * doc/posix-functions/fprintf.texi: Update.
37894         * doc/posix-functions/printf.texi: Update.
37895         * doc/posix-functions/snprintf.texi: Update.
37896         * doc/posix-functions/sprintf.texi: Update.
37897         * doc/posix-functions/vfprintf.texi: Update.
37898         * doc/posix-functions/vprintf.texi: Update.
37899         * doc/posix-functions/vsnprintf.texi: Update.
37900         * doc/posix-functions/vsprintf.texi: Update.
37901         * doc/glibc-functions/obstack_printf.texi: Update.
37902         * doc/glibc-functions/obstack_vprintf.texi: Update.
37903         Reported by Eric Blake.
37904
37905 2009-02-25  Bruno Haible  <bruno@clisp.org>
37906
37907         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37908         with known value.
37909         Reported by Gary V. Vaughan <gary@gnu.org>.
37910
37911 2009-02-25  Bruno Haible  <bruno@clisp.org>
37912
37913         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37914         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37915         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37916         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37917         Reported by Gary V. Vaughan <gary@gnu.org>.
37918
37919 2009-02-25  Bruno Haible  <bruno@clisp.org>
37920
37921         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37922         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37923         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37924         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37925         Reported by Gary V. Vaughan <gary@gnu.org>.
37926
37927 2009-02-25  Eric Blake  <ebb9@byu.net>
37928
37929         tests: skip fseek/ftell tests if ungetc is broken
37930         * m4/ungetc.m4: New file.
37931         * modules/fseek-tests: Split test, so ungetc dependency is
37932         separate from rest of test.
37933         * modules/fseeko-tests: Likewise.
37934         * modules/ftell-tests: Likewise.
37935         * modules/ftello-tests: Likewise.
37936         * tests/test-fseek.c (main): Isolate ungetc dependency.
37937         * tests/test-fseeko.c (main): Likewise.
37938         * tests/test-ftell.c (main): Likewise.
37939         * tests/test-ftello.c (main): Likewise.
37940         * tests/test-fseek2.sh: New file.
37941         * tests/test-fseeko2.sh: Likewise.
37942         * tests/test-ftell2.sh: Likewise.
37943         * tests/test-ftello2.sh: Likewise.
37944
37945 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37946
37947         test-getaddrinfo: fix usage of skip return code 77
37948         * tests/test-gettaddrinfo.c: Return skip code 77 only
37949         for first occurance of skip (4x77 is not 77)
37950
37951 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37952
37953         strtod: avoid C99 decl-after-statement
37954         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37955
37956 2009-02-24  Eric Blake  <ebb9@byu.net>
37957
37958         strtod: detect HP-UX 11.31 bug
37959         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37960         Reported by Gary V. Vaughan.
37961
37962 2009-02-23  Bruno Haible  <bruno@clisp.org>
37963
37964         Fix invalid read past end of memory block.
37965         * lib/vasnprintf.c (DCHAR_SET): Define.
37966         (local_wcslen): Define only when needed.
37967         (local_strnlen, local_wcsnlen): New functions.
37968         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37969         directives that involve a conversion ourselves.
37970         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37971         wcsnlen, mbrtowc, wcrtomb.
37972         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37973         * tests/test-vasprintf-posix.c (test_function): Likewise.
37974         * tests/test-snprintf-posix.h (test_function): Likewise.
37975         * tests/test-sprintf-posix.h (test_function): Likewise.
37976         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37977
37978 2009-02-22  Bruno Haible  <bruno@clisp.org>
37979
37980         Implement new clarified decomposition of Hangul syllables.
37981         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37982         of type LTV, return only a pairwise decomposition.
37983         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37984         Likewise.
37985         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37986         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37987         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37988
37989 2009-02-22  Bruno Haible  <bruno@clisp.org>
37990
37991         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37992         zero-length results and shrink excess allocated memory.
37993         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37994         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37995         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37996         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37997         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37998         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37999         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38000         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38001         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38002         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38003         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38004         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38005
38006 2009-02-21  Bruno Haible  <bruno@clisp.org>
38007
38008         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38009         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38010         spaces after a period. Put a space between a macro name and its
38011         argument list. Trivial rewordings.
38012         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38013         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38014         (main): Return 0 explicitly.
38015
38016 2009-02-21  Bruno Haible  <bruno@clisp.org>
38017
38018         Tests for module 'uninorm/filter'.
38019         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38020         * modules/uninorm/filter-tests: New file.
38021
38022         New module 'uninorm/filter'.
38023         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38024         uninorm_filter_flush, uninorm_filter_free): New declarations.
38025         * lib/uninorm/uninorm-filter.c: New file.
38026         * modules/uninorm/filter: New file.
38027
38028 2009-02-21  Bruno Haible  <bruno@clisp.org>
38029
38030         Tests for module 'uninorm/nfkc'.
38031         * tests/uninorm/test-nfkc.c: New file.
38032         * tests/uninorm/test-u8-nfkc.c: New file.
38033         * tests/uninorm/test-u16-nfkc.c: New file.
38034         * tests/uninorm/test-u32-nfkc.c: New file.
38035         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38036         * tests/uninorm/test-u32-nfkc-big.c: New file.
38037         * modules/uninorm/nfkc-tests: New file.
38038
38039         New module 'uninorm/nfkc'.
38040         * lib/uninorm/nfkc.c: New file.
38041         * modules/uninorm/nfkc: New file.
38042
38043         Tests for module 'uninorm/nfkd'.
38044         * tests/uninorm/test-nfkd.c: New file.
38045         * tests/uninorm/test-u8-nfkd.c: New file.
38046         * tests/uninorm/test-u16-nfkd.c: New file.
38047         * tests/uninorm/test-u32-nfkd.c: New file.
38048         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38049         * tests/uninorm/test-u32-nfkd-big.c: New file.
38050         * modules/uninorm/nfkd-tests: New file.
38051
38052         New module 'uninorm/nfkd'.
38053         * lib/uninorm/nfkd.c: New file.
38054         * modules/uninorm/nfkd: New file.
38055
38056         Tests for module 'uninorm/nfc'.
38057         * tests/uninorm/test-nfc.c: New file.
38058         * tests/uninorm/test-u8-nfc.c: New file.
38059         * tests/uninorm/test-u16-nfc.c: New file.
38060         * tests/uninorm/test-u32-nfc.c: New file.
38061         * tests/uninorm/test-u32-nfc-big.sh: New file.
38062         * tests/uninorm/test-u32-nfc-big.c: New file.
38063         * modules/uninorm/nfc-tests: New file.
38064
38065         New module 'uninorm/nfc'.
38066         * lib/uninorm/nfc.c: New file.
38067         * modules/uninorm/nfc: New file.
38068
38069         Tests for module 'uninorm/nfd'.
38070         * tests/uninorm/test-nfd.c: New file.
38071         * tests/uninorm/test-u8-nfd.c: New file.
38072         * tests/uninorm/test-u16-nfd.c: New file.
38073         * tests/uninorm/test-u32-nfd.c: New file.
38074         * tests/uninorm/test-u32-nfd-big.sh: New file.
38075         * tests/uninorm/test-u32-nfd-big.c: New file.
38076         * tests/uninorm/test-u32-normalize-big.h: New file.
38077         * tests/uninorm/test-u32-normalize-big.c: New file.
38078         * tests/uninorm/NormalizationTest.txt: New file, created from
38079         Unicode 5.1.0 NormalizationTest.txt.
38080         * modules/uninorm/nfd-tests: New file.
38081
38082         New module 'uninorm/nfd'.
38083         * lib/uninorm/nfd.c: New file.
38084         * modules/uninorm/nfd: New file.
38085
38086         New module 'uninorm/u32-normalize'.
38087         * lib/uninorm/u32-normalize.c: New file.
38088         * modules/uninorm/u32-normalize: New file.
38089
38090         New module 'uninorm/u16-normalize'.
38091         * lib/uninorm/u16-normalize.c: New file.
38092         * modules/uninorm/u16-normalize: New file.
38093
38094         New module 'uninorm/u8-normalize'.
38095         * lib/uninorm/u8-normalize.c: New file.
38096         * lib/uninorm/normalize-internal.h: New file.
38097         * lib/uninorm/u-normalize-internal.h: New file.
38098         * modules/uninorm/u8-normalize: New file.
38099
38100         New module 'uninorm/decompose-internal'.
38101         * lib/uninorm/decompose-internal.c: New file.
38102         * modules/uninorm/decompose-internal: New file.
38103
38104         Tests for module 'uninorm/composition'.
38105         * tests/uninorm/test-composition.c: New file.
38106         * modules/uninorm/composition-tests: New file.
38107
38108         New module 'uninorm/composition'.
38109         * lib/uninorm/composition.c: New file.
38110         * lib/uninorm/composition-table.gperf: New file, generated by
38111         gen-uni-tables.
38112         * modules/uninorm/composition: New file.
38113
38114         Tests for module 'uninorm/compat-decomposition'.
38115         * tests/uninorm/test-compat-decomposition.c: New file.
38116         * modules/uninorm/compat-decomposition-tests: New file.
38117
38118         New module 'uninorm/compat-decomposition'.
38119         * lib/uninorm/decompose-internal.h: New file.
38120         * lib/uninorm/compat-decomposition.c: New file.
38121         * modules/uninorm/compat-decomposition: New file.
38122
38123         Tests for module 'uninorm/canonical-decomposition'.
38124         * tests/uninorm/test-canonical-decomposition.c: New file.
38125         * modules/uninorm/canonical-decomposition-tests: New file.
38126
38127         New module 'uninorm/canonical-decomposition'.
38128         * lib/uninorm/canonical-decomposition.c: New file.
38129         * modules/uninorm/canonical-decomposition: New file.
38130
38131         Tests for module 'uninorm/decomposition'.
38132         * tests/uninorm/test-decomposition.c: New file.
38133         * modules/uninorm/decomposition-tests: New file.
38134
38135         New module 'uninorm/decomposition'.
38136         * lib/uninorm/decomposition.c: New file.
38137         * modules/uninorm/decomposition: New file.
38138
38139         New module 'uninorm/decomposition-table'.
38140         * lib/uninorm/decomposition-table.h: New file.
38141         * lib/uninorm/decomposition-table.c: New file.
38142         * lib/uninorm/decomposition-table1.h: New file, generated by
38143         gen-uni-tables.
38144         * lib/uninorm/decomposition-table2.h: New file, generated by
38145         gen-uni-tables.
38146         * modules/uninorm/decomposition-table: New file.
38147
38148         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38149         (UC_DECOMP_*): New enumeration items.
38150         (get_decomposition): New function.
38151         (struct decomp_table): New type.
38152         (output_decomposition, output_decomposition_tables): New functions.
38153         (unicode_composition_exclusions): New variable.
38154         (fill_composition_exclusions, debug_output_composition_tables): New
38155         functions.
38156         (main): Accept one more argument. Invoke fill_composition_exclusions.
38157         Output decomposition and composition tables.
38158
38159         New module 'uninorm/base'.
38160         * lib/uninorm.h: New file.
38161         * lib/unictype.h: Update comment.
38162         * modules/uninorm/base: New file.
38163
38164 2009-02-21  David Lutterkort  <lutter@redhat.com>
38165
38166         Tests for module 'safe-alloc'.
38167         * tests/test-safe-alloc.c: New file.
38168         * modules/safe-alloc-tests: New file.
38169
38170         New module 'safe-alloc'.
38171         * lib/safe-alloc.h: New file.
38172         * lib/safe-alloc.c: New file.
38173         * m4/safe-alloc.m4: New file.
38174         * modules/safe-alloc: New file.
38175         * doc/safe-alloc.texi: New file.
38176         * doc/gnulib.texi: Include it.
38177         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38178         safe-alloc.
38179
38180 2009-02-18  Bruno Haible  <bruno@clisp.org>
38181
38182         Fix link error on non-glibc systems.
38183         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38184         variable.
38185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38186
38187 2009-02-18  Jim Meyering  <meyering@redhat.com>
38188
38189         fts: avoid used-uninitialized error due to recent change
38190         * lib/fts.c (fts_read): Guard uses of the new member,
38191         parent->fts_n_dirs_remaining, since it's not relevant for
38192         the parent of a directory specified on the command-line.
38193
38194 2009-02-17  James Youngman  <jay@gnu.org>
38195             Bruno Haible  <bruno@clisp.org>
38196
38197         * m4/include_next.m4: Reformulate comment.
38198
38199 2009-02-16  Jim Meyering  <meyering@redhat.com>
38200
38201         fts: add #if guards so that the fts_lgpl module still builds
38202         * lib/fts.c: Guard just-added hash-table-using parts with
38203         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38204         Reported by Simon Josefsson.
38205
38206 2009-02-15  Bruno Haible  <bruno@clisp.org>
38207
38208         * modules/array-mergesort-tests: New file.
38209         * tests/test-array-mergesort.c: New file.
38210
38211         New module 'array-mergesort'.
38212         * modules/array-mergesort: New file.
38213         * lib/array-mergesort.h: New file.
38214
38215 2009-02-15  Bruno Haible  <bruno@clisp.org>
38216
38217         Fix 2009-02-07 commit.
38218         * lib/gen-uni-tables.c (output_predicate, output_category,
38219         output_combclass, output_bidi_category, output_decimal_digit,
38220         output_digit, output_numeric, output_mirror, output_scripts,
38221         output_ident_category, output_simple_mapping): Fix format directives.
38222         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38223
38224 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38225
38226         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38227         fixes are available from IBM.
38228
38229 2009-02-13  Jim Meyering  <meyering@redhat.com>
38230
38231         fts: arrange not to stat non-directories in more cases
38232         This makes GNU find (when it doesn't need to stat each file)
38233         *much* more efficient at traversing reiserfs file systems.
38234         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38235         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38236         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38237         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38238         (leaf_optimization_applies): New function.
38239         (LCO_hash, LCO_compare): New helper functions.
38240         (link_count_optimize_ok): New function.
38241         (fts_stat): Initialize new member (if dir).
38242         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38243         we've just stat'ed a directory.  Skip the stat call when possible.
38244         ---
38245         Note this AFS-related exchange:
38246         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38247         and note find's pioctl call in find/fstype.c.
38248         But that is necessary only if you want to enable the
38249         optimization for AFS, and for now, I don't.
38250
38251         fts: move a function definition "up" (no semantic change)
38252         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38253         "up" to precede upcoming use of a related function.
38254
38255 2009-02-11  Jim Meyering  <meyering@redhat.com>
38256
38257         fts: correct internal computation of nlinks (optimization-related)
38258         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38259         whether the current entry is a directory, so don't test it.
38260
38261 2009-02-10  Bruno Haible  <bruno@clisp.org>
38262
38263         Tests for module 'uniwbrk/ulc-wordbreaks'.
38264         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38265         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38266         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38267
38268         Tests for module 'uniwbrk/u32-wordbreaks'.
38269         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38270         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38271
38272         Tests for module 'uniwbrk/u16-wordbreaks'.
38273         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38274         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38275
38276         Tests for module 'uniwbrk/u8-wordbreaks'.
38277         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38278         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38279
38280 2009-02-10  Bruno Haible  <bruno@clisp.org>
38281
38282         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38283         property.
38284         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38285         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38286         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38287
38288 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38289
38290         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38291         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38292
38293 2009-02-10  Bruno Haible  <bruno@clisp.org>
38294
38295         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38296         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38297         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38298         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38299         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38300         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38301
38302 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38303
38304         * lib/sockets.h (gl_fd_to_handle): New function.
38305
38306         * tests/test-sockets.c: Call gl_fd_to_handle.
38307
38308 2009-02-09  Bruno Haible  <bruno@clisp.org>
38309
38310         * doc/havelib.texi: Document the conventions on bi-arch systems.
38311
38312 2009-02-08  Bruno Haible  <bruno@clisp.org>
38313
38314         Document the AC_LIB_LINKFLAGS macro.
38315         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38316         * doc/gnulib.texi: Include it.
38317
38318 2009-02-08  Bruno Haible  <bruno@clisp.org>
38319
38320         Fix wrong order of sections, compared to TOC.
38321         * doc/gnulib.texi: Include relocatable-maint.texi after the
38322         "Regular expressions" node, not before.
38323
38324 2009-02-08  Bruno Haible  <bruno@clisp.org>
38325
38326         Tests for module 'unicase/totitle'.
38327         * modules/unicase/totitle-tests: New file.
38328
38329         Tests for module 'unicase/tolower'.
38330         * modules/unicase/tolower-tests: New file.
38331
38332         Tests for module 'unicase/toupper'.
38333         * modules/unicase/toupper-tests: New file.
38334         * tests/unicase/test-mapping-part1.h: New file.
38335         * tests/unicase/test-mapping-part2.h: New file.
38336
38337         New module 'unicase/totitle'.
38338         * modules/unicase/totitle: New file.
38339         * lib/unicase/totitle.c: New file.
38340
38341         New module 'unicase/tolower'.
38342         * modules/unicase/tolower: New file.
38343         * lib/unicase/tolower.c: New file.
38344
38345         New module 'unicase/toupper'.
38346         * modules/unicase/toupper: New file.
38347         * lib/unicase/toupper.c: New file.
38348         * lib/unicase/simple-mapping.h: New file.
38349
38350         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38351         (mapping_table): New structure.
38352         (output_simple_mapping): New function.
38353         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38354         * modules/gen-uni-tables (Description): Update.
38355         * lib/unicase/toupper.h: New file, automatically generated by
38356         gen-uni-tables.
38357         * lib/unicase/tolower.h: New file, automatically generated by
38358         gen-uni-tables.
38359         * lib/unicase/totitle.h: New file, automatically generated by
38360         gen-uni-tables.
38361         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38362         gen-uni-tables.
38363         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38364         gen-uni-tables.
38365         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38366         gen-uni-tables.
38367
38368         New module 'unicase/base'.
38369         * modules/unicase/base: New file.
38370         * lib/unicase.h: New file.
38371
38372 2009-02-08  Bruno Haible  <bruno@clisp.org>
38373
38374         New module 'uniwbrk/ulc-wordbreaks'.
38375         * modules/uniwbrk/ulc-wordbreaks: New file.
38376         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38377
38378         New module 'uniwbrk/u32-wordbreaks'.
38379         * modules/uniwbrk/u32-wordbreaks: New file.
38380         * lib/uniwbrk/u32-wordbreaks.c: New file.
38381
38382         New module 'uniwbrk/u16-wordbreaks'.
38383         * modules/uniwbrk/u16-wordbreaks: New file.
38384         * lib/uniwbrk/u16-wordbreaks.c: New file.
38385
38386         New module 'uniwbrk/u8-wordbreaks'.
38387         * modules/uniwbrk/u8-wordbreaks: New file.
38388         * lib/uniwbrk/u8-wordbreaks.c: New file.
38389         * lib/uniwbrk/u-wordbreaks.h: New file.
38390
38391         New module 'uniwbrk/table'.
38392         * modules/uniwbrk/table: New file.
38393         * lib/uniwbrk/wbrktable.h: New file.
38394         * lib/uniwbrk/wbrktable.c: New file.
38395
38396         New module 'uniwbrk/wordbreak-property'.
38397         * modules/uniwbrk/wordbreak-property: New file.
38398         * lib/uniwbrk/wordbreak-property.c: New file.
38399
38400         * lib/gen-uni-tables.c (WBP_*): New enum items.
38401         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38402         (unicode_org_wbp): New variable.
38403         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38404         New functions.
38405         (wbp_table): New structure.
38406         (output_wbp, output_wbrk_tables): New functions.
38407         (main): Accept additional argument. Invoke fill_org_wbp,
38408         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38409         output_wbrk_tables.
38410         * modules/gen-uni-tables (Description): Update.
38411         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38412         gen-uni-tables.
38413
38414         New module 'uniwbrk/base'.
38415         * modules/uniwbrk/base: New file.
38416         * lib/uniwbrk.h: New file.
38417
38418 2009-02-08  Bruno Haible  <bruno@clisp.org>
38419
38420         Update to Unicode 5.1.0.
38421         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38422         U+2185..U+2188.
38423         (is_property_default_ignorable_code_point): Don't include characters
38424         of category Cc or Cs and not-a-characters.
38425         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38426         U+0D79, U+109E, U+109F, U+A60C.
38427         * lib/unictype/bidi_of.h: Regenerated.
38428         * lib/unictype/blocks.h: Regenerated.
38429         * lib/unictype/categ_C.h: Regenerated.
38430         * lib/unictype/categ_Cf.h: Regenerated.
38431         * lib/unictype/categ_Cn.h: Regenerated.
38432         * lib/unictype/categ_L.h: Regenerated.
38433         * lib/unictype/categ_Ll.h: Regenerated.
38434         * lib/unictype/categ_Lm.h: Regenerated.
38435         * lib/unictype/categ_Lo.h: Regenerated.
38436         * lib/unictype/categ_Lu.h: Regenerated.
38437         * lib/unictype/categ_M.h: Regenerated.
38438         * lib/unictype/categ_Mc.h: Regenerated.
38439         * lib/unictype/categ_Me.h: Regenerated.
38440         * lib/unictype/categ_Mn.h: Regenerated.
38441         * lib/unictype/categ_N.h: Regenerated.
38442         * lib/unictype/categ_Nd.h: Regenerated.
38443         * lib/unictype/categ_Nl.h: Regenerated.
38444         * lib/unictype/categ_No.h: Regenerated.
38445         * lib/unictype/categ_P.h: Regenerated.
38446         * lib/unictype/categ_Pd.h: Regenerated.
38447         * lib/unictype/categ_Pe.h: Regenerated.
38448         * lib/unictype/categ_Pf.h: Regenerated.
38449         * lib/unictype/categ_Pi.h: Regenerated.
38450         * lib/unictype/categ_Po.h: Regenerated.
38451         * lib/unictype/categ_Ps.h: Regenerated.
38452         * lib/unictype/categ_S.h: Regenerated.
38453         * lib/unictype/categ_Sk.h: Regenerated.
38454         * lib/unictype/categ_Sm.h: Regenerated.
38455         * lib/unictype/categ_So.h: Regenerated.
38456         * lib/unictype/categ_of.h: Regenerated.
38457         * lib/unictype/combining.h: Regenerated.
38458         * lib/unictype/ctype_alnum.h: Regenerated.
38459         * lib/unictype/ctype_alpha.h: Regenerated.
38460         * lib/unictype/ctype_graph.h: Regenerated.
38461         * lib/unictype/ctype_lower.h: Regenerated.
38462         * lib/unictype/ctype_print.h: Regenerated.
38463         * lib/unictype/ctype_punct.h: Regenerated.
38464         * lib/unictype/ctype_upper.h: Regenerated.
38465         * lib/unictype/decdigit.h: Regenerated.
38466         * lib/unictype/digit.h: Regenerated.
38467         * lib/unictype/mirror.h: Regenerated.
38468         * lib/unictype/numeric.h: Regenerated.
38469         * lib/unictype/pr_alphabetic.h: Regenerated.
38470         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38471         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38472         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38473         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38474         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38475         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38476         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38477         * lib/unictype/pr_combining.h: Regenerated.
38478         * lib/unictype/pr_dash.h: Regenerated.
38479         * lib/unictype/pr_decimal_digit.h: Regenerated.
38480         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38481         * lib/unictype/pr_deprecated.h: Regenerated.
38482         * lib/unictype/pr_diacritic.h: Regenerated.
38483         * lib/unictype/pr_extender.h: Regenerated.
38484         * lib/unictype/pr_format_control.h: Regenerated.
38485         * lib/unictype/pr_grapheme_base.h: Regenerated.
38486         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38487         * lib/unictype/pr_grapheme_link.h: Regenerated.
38488         * lib/unictype/pr_id_continue.h: Regenerated.
38489         * lib/unictype/pr_id_start.h: Regenerated.
38490         * lib/unictype/pr_ideographic.h: Regenerated.
38491         * lib/unictype/pr_ignorable_control.h: Regenerated.
38492         * lib/unictype/pr_lowercase.h: Regenerated.
38493         * lib/unictype/pr_math.h: Regenerated.
38494         * lib/unictype/pr_numeric.h: Regenerated.
38495         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38496         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38497         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38498         * lib/unictype/pr_other_id_continue.h: Regenerated.
38499         * lib/unictype/pr_other_lowercase.h: Regenerated.
38500         * lib/unictype/pr_other_math.h: Regenerated.
38501         * lib/unictype/pr_punctuation.h: Regenerated.
38502         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38503         * lib/unictype/pr_soft_dotted.h: Regenerated.
38504         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38505         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38506         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38507         * lib/unictype/pr_uppercase.h: Regenerated.
38508         * lib/unictype/pr_xid_continue.h: Regenerated.
38509         * lib/unictype/pr_xid_start.h: Regenerated.
38510         * lib/unictype/pr_zero_width.h: Regenerated.
38511         * lib/unictype/scripts.h: Regenerated.
38512         * lib/unictype/scripts_byname.gperf: Regenerated.
38513         * lib/unictype/sy_java_ident.h: Regenerated.
38514         * lib/unilbrk/lbrkprop1.h: Regenerated.
38515         * lib/unilbrk/lbrkprop2.h: Regenerated.
38516         * tests/unictype/test-categ_C.c: Regenerated.
38517         * tests/unictype/test-categ_Cf.c: Regenerated.
38518         * tests/unictype/test-categ_Cn.c: Regenerated.
38519         * tests/unictype/test-categ_L.c: Regenerated.
38520         * tests/unictype/test-categ_Ll.c: Regenerated.
38521         * tests/unictype/test-categ_Lm.c: Regenerated.
38522         * tests/unictype/test-categ_Lo.c: Regenerated.
38523         * tests/unictype/test-categ_Lu.c: Regenerated.
38524         * tests/unictype/test-categ_M.c: Regenerated.
38525         * tests/unictype/test-categ_Mc.c: Regenerated.
38526         * tests/unictype/test-categ_Me.c: Regenerated.
38527         * tests/unictype/test-categ_Mn.c: Regenerated.
38528         * tests/unictype/test-categ_N.c: Regenerated.
38529         * tests/unictype/test-categ_Nd.c: Regenerated.
38530         * tests/unictype/test-categ_Nl.c: Regenerated.
38531         * tests/unictype/test-categ_No.c: Regenerated.
38532         * tests/unictype/test-categ_P.c: Regenerated.
38533         * tests/unictype/test-categ_Pd.c: Regenerated.
38534         * tests/unictype/test-categ_Pe.c: Regenerated.
38535         * tests/unictype/test-categ_Pf.c: Regenerated.
38536         * tests/unictype/test-categ_Pi.c: Regenerated.
38537         * tests/unictype/test-categ_Po.c: Regenerated.
38538         * tests/unictype/test-categ_Ps.c: Regenerated.
38539         * tests/unictype/test-categ_S.c: Regenerated.
38540         * tests/unictype/test-categ_Sk.c: Regenerated.
38541         * tests/unictype/test-categ_Sm.c: Regenerated.
38542         * tests/unictype/test-categ_So.c: Regenerated.
38543         * tests/unictype/test-ctype_alnum.c: Regenerated.
38544         * tests/unictype/test-ctype_alpha.c: Regenerated.
38545         * tests/unictype/test-ctype_graph.c: Regenerated.
38546         * tests/unictype/test-ctype_lower.c: Regenerated.
38547         * tests/unictype/test-ctype_print.c: Regenerated.
38548         * tests/unictype/test-ctype_punct.c: Regenerated.
38549         * tests/unictype/test-ctype_upper.c: Regenerated.
38550         * tests/unictype/test-decdigit.h: Regenerated.
38551         * tests/unictype/test-digit.h: Regenerated.
38552         * tests/unictype/test-numeric.h: Regenerated.
38553         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38554         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38555         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38556         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38557         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38558         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38559         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38560         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38561         * tests/unictype/test-pr_combining.c: Regenerated.
38562         * tests/unictype/test-pr_dash.c: Regenerated.
38563         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38564         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38565         * tests/unictype/test-pr_deprecated.c: Regenerated.
38566         * tests/unictype/test-pr_diacritic.c: Regenerated.
38567         * tests/unictype/test-pr_extender.c: Regenerated.
38568         * tests/unictype/test-pr_format_control.c: Regenerated.
38569         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38570         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38571         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38572         * tests/unictype/test-pr_id_continue.c: Regenerated.
38573         * tests/unictype/test-pr_id_start.c: Regenerated.
38574         * tests/unictype/test-pr_ideographic.c: Regenerated.
38575         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38576         * tests/unictype/test-pr_lowercase.c: Regenerated.
38577         * tests/unictype/test-pr_math.c: Regenerated.
38578         * tests/unictype/test-pr_numeric.c: Regenerated.
38579         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38580         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38581         Regenerated.
38582         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38583         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38584         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38585         * tests/unictype/test-pr_other_math.c: Regenerated.
38586         * tests/unictype/test-pr_punctuation.c: Regenerated.
38587         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38588         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38589         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38590         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38591         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38592         * tests/unictype/test-pr_uppercase.c: Regenerated.
38593         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38594         * tests/unictype/test-pr_xid_start.c: Regenerated.
38595         * tests/unictype/test-pr_zero_width.c: Regenerated.
38596
38597         Update to Unicode 5.1.0.
38598         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38599         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38600         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38601         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38602         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38603         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38604         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38605         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38606         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38607         (nonspacing_table_ind): Update.
38608         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38609
38610         Update to Unicode 5.1.0.
38611         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38612         code transform.
38613         * lib/uniname/uniname.c (unicode_character_name,
38614         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38615         * lib/uniname/uninames.h: Regenerated.
38616         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38617
38618 2009-02-07  Bruno Haible  <bruno@clisp.org>
38619
38620         Merge gen-ctype and gen-lbrk into a single program.
38621         * lib/gen-uni-tables.c: New file, incorporating
38622         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38623         Add directory prefixes to the names of the generated files.
38624         * lib/unictype/gen-ctype.c: Remove file.
38625         * lib/unilbrk/gen-lbrk.c: Remove file.
38626         * modules/gen-uni-tables: New file.
38627         * modules/unictype/gen-ctype: Remove file.
38628         * modules/unilbrk/gen-lbrk: Remove file.
38629
38630 2009-02-07  Bruno Haible  <bruno@clisp.org>
38631
38632         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38633
38634         New module 'unistr/u32-strcoll'.
38635         * modules/unistr/u32-strcoll: New file.
38636         * lib/unistr/u32-strcoll.c: New file.
38637
38638         New module 'unistr/u16-strcoll'.
38639         * modules/unistr/u16-strcoll: New file.
38640         * lib/unistr/u16-strcoll.c: New file.
38641
38642         New module 'unistr/u8-strcoll'.
38643         * modules/unistr/u8-strcoll: New file.
38644         * lib/unistr/u8-strcoll.c: New file.
38645         * lib/unistr/u-strcoll.h: New file.
38646
38647 2009-02-07  Bruno Haible  <bruno@clisp.org>
38648
38649         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38650         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38651         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38652         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38653         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38654         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38655
38656 2009-02-07  Bruno Haible  <bruno@clisp.org>
38657
38658         Make 64-bit clean.
38659         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38660         output_combclass, output_bidi_category, output_decimal_digit,
38661         output_digit, output_numeric, output_mirror, output_scripts,
38662         output_ident_category): Use proper width specifier in format strings.
38663
38664 2009-02-07  Bruno Haible  <bruno@clisp.org>
38665
38666         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38667         failure behaviour.
38668
38669 2009-02-07  Jim Meyering  <meyering@redhat.com>
38670
38671         regex: avoid compilation failure with upcoming gcc-4.4
38672         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38673         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38674         "... error: integer overflow in preprocessor expression".
38675
38676 2009-02-05  Ben Pfaff  <blp@gnu.org>
38677
38678         Fix link errors on Windows when close module is used.
38679         * modules/close: Add $(LIB_CLOSE) to Link section.
38680         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38681         $(LIB_CLOSE) on Windows.
38682
38683 2009-02-05  Jim Meyering  <meyering@redhat.com>
38684
38685         still avoid unused-parameter warnings, but do it cleanly
38686         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38687         (get_fs_usage): Cast to void instead.
38688         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38689         (dev_from_mount_options, read_file_system_list): Cast to void.
38690         Prompted by Bruno Haible.
38691
38692 2009-02-04  Jim Meyering  <meyering@redhat.com>
38693
38694         fsusage.c: correct copyright year
38695         * lib/fsusage.c: Reflect year in which the change is pushed into
38696
38697         avoid misc. warnings
38698         * lib/fsusage.c (UNUSED_PARAM): Define.
38699         (get_fs_usage): Mark parameter "disk" as unused.
38700         * lib/getugroups.c (getgrent): Use "void" in prototype.
38701         * lib/mountlist.c: Mark unused parameters.
38702         (read_file_system_list): Declare a local with "const".
38703         * lib/nanosleep.c (getnow): Declare static.
38704         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38705
38706         dirfd: set errno upon failure
38707         * lib/dirfd.c: Include <errno.h>.
38708         Set errno to ENOTSUP when returning -1.
38709         * modules/dirfd (Depends-on): Add errno.
38710         Suggested by John Kodis <kodis@comcast.net>.
38711
38712 2009-02-01  Bruno Haible  <bruno@clisp.org>
38713
38714         Don't assume sizeof (long) >= sizeof (void *).
38715         * lib/memcmp.c: Include stdint.h.
38716         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38717         srcp2 to 'const byte *'.
38718         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38719         types to uintptr_t.
38720         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38721         * modules/memcmp (Depends-on): Add stdint.
38722         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38723
38724 2009-01-30  Eric Blake  <ebb9@byu.net>
38725
38726         fix more require-before-expand issues
38727         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38728         expand, AC_PROG_AWK.
38729         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38730
38731 2009-01-28  Eric Blake  <ebb9@byu.net>
38732
38733         version-etc: use consistent URL formatting
38734         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38735         Improve formatting.  Use fputs for string without %.
38736
38737 2009-01-28  Jim Meyering  <meyering@redhat.com>
38738
38739         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38740         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38741         "underquoted definition of NAME" from autoconf-2.59.
38742
38743 2009-01-28  Bruno Haible  <bruno@clisp.org>
38744
38745         * doc/gnulib.texi: Add "Obsolete modules" to index.
38746
38747 2009-01-28  Jim Meyering  <meyering@redhat.com>
38748
38749         useless-if-before-free: recognize more variants
38750         * build-aux/useless-if-before-free: Also recognize e.g.,
38751         if (NULL != p) free (p);
38752
38753 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38754
38755         test-getaddrinfo: skip (don't fail) this test when there's no network
38756         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38757         on the presumption that it means you lack network access.
38758
38759 2009-01-26  Jim Meyering  <meyering@redhat.com>
38760
38761         fflush: avoid warnings on modern systems
38762         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38763         pos and result, into scopes where they're used.
38764
38765 2009-01-26  Eric Blake  <ebb9@byu.net>
38766
38767         Silence warning reintroduced by recent extensions patch.
38768         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38769         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38770         autoconf.
38771
38772         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38773         * m4/00gnulib.m4: New file.
38774         * gnulib-tool (func_get_filelist): Always use it.
38775         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38776         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38777
38778 2009-01-25  Bruno Haible  <bruno@clisp.org>
38779
38780         Make test-quotearg work on MacOS X and AIX.
38781         * tests/test-quotearg.sh: New file.
38782         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38783         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38784         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38785         include <libintl.h>.
38786         (fake_locale): Remove variable.
38787         (gettext, dgettext, dcgettext): Remove functions.
38788         (main): Instead of setting a fake locale, set a real locale. Call
38789         textdomain and bindtextdomain.
38790         * modules/quotearg-tests (Files): Add the new files.
38791         (Depends-on): Add gettext, setenv, unsetenv.
38792         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38793         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38794         Augment TESTS_ENVIRONMENT.
38795
38796 2009-01-25  Bruno Haible  <bruno@clisp.org>
38797
38798         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38799         fr_FR.ISO8859-1 locale on MacOS X.
38800         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38801         ja_JP.eucJP locale on MacOS X.
38802         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38803         zh_CN.GB18030 locale on MacOS X.
38804
38805 2009-01-25  Bruno Haible  <bruno@clisp.org>
38806
38807         Avoid link errors on MacOS X 10.3.
38808         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38809         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38810
38811 2009-01-25  Bruno Haible  <bruno@clisp.org>
38812
38813         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38814         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38815         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38816         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38817         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38818         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38819         posix_spawnattr_init, posix_spawnattr_setsigmask,
38820         posix_spawnattr_setflags, posix_spawnattr_destroy.
38821
38822         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38823         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38824         * modules/execute (Files): Remove m4/posix_spawn.m4.
38825         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38826         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38827         posix_spawnattr_init, posix_spawnattr_setsigmask,
38828         posix_spawnattr_setflags, posix_spawnattr_destroy.
38829
38830 2009-01-25  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/glthread/threadlib.c: Include <stdlib.h>.
38833
38834 2009-01-25  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/glthread/threadlib.c (dummy): New declaration.
38837
38838 2009-01-25  Bruno Haible  <bruno@clisp.org>
38839
38840         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38841         multibyte characters also for the GB18030 encoding. Don't crash when
38842         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38843
38844 2009-01-25  Bruno Haible  <bruno@clisp.org>
38845
38846         Avoid redefining 'struct random_data' on OSF/1 5.1.
38847         * lib/stdlib.in.h: Include <random.h> if it exists.
38848         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38849         HAVE_RANDOM_H. Include <random.h> when testing whether
38850         'struct random_data' exists.
38851         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38852
38853 2009-01-25  Bruno Haible  <bruno@clisp.org>
38854
38855         Don't install charset.alias on MacOS X >= 10.3.
38856         * lib/localcharset.c (DARWIN7): New macro.
38857         (get_charset_aliases): Hardcode the result for Darwin7.
38858         * modules/localcharset (install-exec-local): Don't install
38859         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38860
38861 2009-01-25  Bruno Haible  <bruno@clisp.org>
38862
38863         Don't install charset.alias on mingw and Cygwin.
38864         * modules/localcharset (install-exec-local): Don't install
38865         charset.alias on mingw and Cygwin, if the file does not yet exist.
38866         The result for these platforms is hardcoded in localcharset.c.
38867
38868 2009-01-25  Bruno Haible  <bruno@clisp.org>
38869
38870         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38872         before requiring AC_USE_SYSTEM_EXTENSIONS.
38873
38874 2009-01-25  Jim Meyering  <meyering@redhat.com>
38875
38876         c-strtod: avoid warnings
38877         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38878         "assignment discards qualifiers from pointer target type" warnings.
38879
38880 2009-01-24  Bruno Haible  <bruno@clisp.org>
38881
38882         Add support for non-UTF-8 locales on MacOS X.
38883         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38884         canonical encodings. For Darwin 7 and newer, don't map traditional
38885         encodings to UTF-8.
38886         Reported by Vincent Lefevre <vincent@vinc17.org>
38887         at <http://savannah.gnu.org/bugs/?25235>.
38888
38889 2009-01-24  Bruno Haible  <bruno@clisp.org>
38890
38891         * doc/gnulib.texi (Obsolete modules): New section.
38892         Reported by Mike Frysinger <vapier@gentoo.org>.
38893
38894 2009-01-24  Bruno Haible  <bruno@clisp.org>
38895
38896         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38897         (%.dvi): New rule.
38898
38899 2009-01-24  Bruno Haible  <bruno@clisp.org>
38900
38901         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38902         Reported by Eric Blake.
38903
38904 2009-01-24  Bruno Haible  <bruno@clisp.org>
38905
38906         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38907         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38908         Reported by Gary V. Vaughan <gary@gnu.org>.
38909
38910 2009-01-24  Bruno Haible  <bruno@clisp.org>
38911
38912         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38913
38914 2009-01-23  Bruno Haible  <bruno@clisp.org>
38915
38916         Make c-strtod, c-strtold usable in libraries.
38917         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38918         (C_STRTOD): Call strdup instead of xstrdup.
38919         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38920         * modules/c-strtold (Depends-on): Likewise.
38921         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38922         * NEWS: Mention the change.
38923         Reported by Michael Gold <mgold@ncf.ca>.
38924
38925 2009-01-23  Jim Meyering  <meyering@redhat.com>
38926
38927         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38928         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38929         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38930
38931 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38932
38933         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38934         GNU CoreUtils.
38935         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38936         * modules/version-etc (Description): Update.
38937
38938 2009-01-22  Bruno Haible  <bruno@clisp.org>
38939
38940         Cache the C locale object.
38941         * lib/c-strtod.c (c_locale_cache): New variable.
38942         (c_locale): New function.
38943         (C_STRTOD): Use it, and don't call freelocale.
38944         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38945         Suggested by Paolo Bonzini.
38946
38947 2009-01-21  Bruno Haible  <bruno@clisp.org>
38948
38949         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38950         conditions other than overflow.
38951
38952 2009-01-21  Bruno Haible  <bruno@clisp.org>
38953
38954         * lib/c-strtod.c: Include errno.h.
38955         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38956         value from STRTOD_L and STRTOD.
38957
38958 2009-01-21  Bruno Haible  <bruno@clisp.org>
38959         and Jim Meyering  <meyering@redhat.com>
38960
38961         nanosleep: skip configure test (fail it) for apple universal builds
38962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38963         universal builds, assume that nanosleep does not work.
38964         * modules/nanosleep (Depends-on): Add multiarch.
38965
38966         mktime: skip configure test (fail it) for apple universal builds
38967         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38968         universal builds, assume that mktime does not work.
38969         * modules/mktime (Depends-on): Add multiarch.
38970
38971 2009-01-21  Eric Blake  <ebb9@byu.net>
38972
38973         multiarch: avoid expand-before-require warning
38974         * modules/multiarch (configure.ac): Require, rather than expand,
38975         gl_MULTIARCH.
38976         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38977         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38978         enforce that all clients require it.  Partial reversion of
38979         2008-12-29 patch.
38980
38981         error: avoid expand-before-require warning
38982         * modules/errno (configure.ac): Require, rather than expand,
38983         gl_HEADER_ERRNO_H.
38984         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38985         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38986         enforce that all clients require it.
38987
38988         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38989         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38990         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38991         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38992
38993 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38994
38995         Revert:
38996         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38997
38998         regex: do not depend on obsolete modules.
38999         * modules/regex: Remove memcmp and memmove.
39000
39001 2009-01-20  Bruno Haible  <bruno@clisp.org>
39002
39003         Make the 'link' module link on Windows NT 4.
39004         * lib/link.c (_WIN32_WINNT): Don't define.
39005         (CreateHardLinkFuncType): New type.
39006         (CreateHardLinkFunc, initialized): New variables.
39007         (initialize): New function.
39008         (link): Invoke CreateHardLink indirectly through the function pointer.
39009
39010 2009-01-20  Bruno Haible  <bruno@clisp.org>
39011
39012         Fix compilation failure on mingw.
39013         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39014
39015 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39016
39017         * doc/c-strtod.texi: Mention a couple of restrictions.
39018
39019 2009-01-20  Jim Meyering  <meyering@redhat.com>
39020
39021         gettimeofday: move more declarations out of functions
39022         * lib/gettimeofday.c: Move extern declarations of tzset and
39023         gmtime out of containing functions.  Prompted by Bruno Haible.
39024
39025 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39026
39027         regex: do not depend on obsolete modules.
39028         * modules/regex: Remove memcmp and memmove.
39029
39030 2009-01-19  Bruno Haible  <bruno@clisp.org>
39031
39032         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39033         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39034         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39035         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39036         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39037
39038 2009-01-19  Bruno Haible  <bruno@clisp.org>
39039
39040         * tests/test-link.c: Include <errno.h>.
39041         (main): Exit with code 77 when a hard link cannot be created due to
39042         the file system.
39043         * tests/test-link.sh: Skip test when a hard link cannot be created due
39044         to the file system.
39045         Suggested by Eric Blake.
39046
39047 2009-01-19  Martin Lambers  <marlam@marlam.de>
39048
39049         * modules/link-tests: New file.
39050         * tests/test-link.sh: New file.
39051         * tests/test-link.c: New file.
39052
39053 2009-01-19  Eric Blake  <ebb9@byu.net>
39054
39055         doc: mention another function added in cygwin 1.7.0
39056         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39057         Another new function in cygwin 1.7.
39058
39059 2009-01-19  Bruno Haible  <bruno@clisp.org>
39060
39061         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39062         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39063         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39064         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39065         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39066         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39067         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39068         * m4/md4.m4 (gl_MD4): Likewise.
39069         * m4/md5.m4 (gl_MD5): Likewise.
39070         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39071         * m4/sha1.m4 (gl_SHA1): Likewise.
39072         * m4/sha256.m4 (gl_SHA256): Likewise.
39073         * m4/sha512.m4 (gl_SHA512): Likewise.
39074
39075 2009-01-19  Bruno Haible  <bruno@clisp.org>
39076
39077         * modules/uniname/uniname-tests (Depends-on): Add progname.
39078         * tests/uniname/test-uninames.c: Include progname.h.
39079         (main): Call set_program_name.
39080
39081         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39082         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39083         (main): Call set_program_name.
39084
39085         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39086         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39087         (main): Call set_program_name.
39088
39089         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39090         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39091         (main): Call set_program_name.
39092
39093         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39094         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39095         (main): Call set_program_name.
39096
39097         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39098         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39099         (main): Call set_program_name.
39100
39101         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39102         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39103         (main): Call set_program_name.
39104
39105         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39106         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39107         (main): Call set_program_name.
39108
39109         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39110         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39111         (main): Call set_program_name.
39112
39113 2009-01-19  Eric Blake  <ebb9@byu.net>
39114
39115         test-unistd: test previous patch
39116         * tests/test-unistd.c: Test *_FILENO macros.
39117
39118         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39119         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39120         Guarantee a definition.
39121         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39122         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39123         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39124         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39125         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39126         Likewise.
39127         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39128         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39129         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39130         Likewise.
39131         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39132         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39133         (STDERR_FILENO): Likewise.
39134         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39135         (STDERR_FILENO): Likewise.
39136         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39137         (STDERR_FILENO): Likewise.
39138         Reported by Elbert Pol.
39139
39140 2009-01-19  Eric Blake  <ebb9@byu.net>
39141
39142         doc: mention more functions added in cygwin 1.7.0
39143         * doc/posix-functions/abort.texi (abort): Update wording related
39144         to cygwin.
39145         * doc/posix-functions/daylight.texi (daylight): Likewise.
39146         * doc/posix-functions/optarg.texi (optarg): Likewise.
39147         * doc/posix-functions/optarg.texi (opterr): Likewise.
39148         * doc/posix-functions/optarg.texi (optind): Likewise.
39149         * doc/posix-functions/optarg.texi (optopt): Likewise.
39150         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39151         worked in 1.5.x, and was withdrawn in 1.7.
39152         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39153         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39154         cygwin versions.
39155         * doc/posix-functions/perror.texi (perror): Likewise.
39156         * doc/posix-functions/printf.texi (printf): Likewise.
39157         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39158         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39159         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39160         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39161         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39162         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39163         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39164         Likewise.
39165         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39166         Likewise.
39167         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39168         this function.
39169         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39170         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39171         Likewise.
39172         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39173         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39174         * doc/posix-functions/confstr.texi (confstr): Likewise.
39175         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39176         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39177         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39178         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39179         * doc/posix-functions/fputws.texi (fputws): Likewise.
39180         * doc/posix-functions/fwide.texi (fwide): Likewise.
39181         * doc/posix-functions/getwc.texi (getwc): Likewise.
39182         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39183         * doc/posix-functions/putwc.texi (putwc): Likewise.
39184         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39185         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39186         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39187         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39188         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39189         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39190         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39191         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39192         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39193         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39194         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39195
39196 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39197
39198         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39199         * lib/ioctl.c: Include <sys/ioctl.h>.
39200
39201 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39202
39203         * modules/getdate-tests (Depends-on): Add progname.
39204         * tests/test-getdate.c: Use progname module, to avoid link errors
39205         on non-glibc systems.
39206
39207 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39208
39209         * modules/filenamecat-tests (Depends-on): Add progname.
39210         * modules/fstrcmp-tests (Depends-on): Likewise.
39211
39212         * tests/test-filenamecat.c: Use progname module, to avoid link
39213         errors on non-glibc systems.
39214         * tests/test-fstrcmp.c: Likewise.
39215
39216 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39217
39218         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39219         * lib/gettimeofday.c: Move extern declaration out of function.
39220
39221 2009-01-18  Bruno Haible  <bruno@clisp.org>
39222
39223         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39224         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39225         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39226
39227 2009-01-18  Bruno Haible  <bruno@clisp.org>
39228
39229         * lib/strftime.c (MEMPCPY): Remove unused macro.
39230         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39231
39232 2009-01-18  Martin Lambers  <marlam@marlam.de>
39233
39234         New module 'link'.
39235         * lib/unistd.in.h (link): New declaration.
39236         * lib/link.c: New file.
39237         * m4/link.m4: New file.
39238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39239         HAVE_LINK.
39240         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39241         * modules/link: New file.
39242         * doc/posix-functions/link.texi: Mention the new module.
39243
39244 2009-01-18  Bruno Haible  <bruno@clisp.org>
39245
39246         * tests/test-avltree_list.c (main): Call set_program_name.
39247         * tests/test-avltree_oset.c (main): Likewise.
39248         * tests/test-obstack-printf.c: Include progname.h.
39249         (main): Call set_program_name.
39250         * tests/test-quotearg.c: Include progname.h.
39251         (main): Call set_program_name.
39252         * tests/test-xmemdup0.c: Include progname.h.
39253         (main): Call set_program_name.
39254
39255 2009-01-18  Bruno Haible  <bruno@clisp.org>
39256
39257         New module 'alphasort'.
39258         * lib/dirent.in.h (alphasort): New declaration.
39259         * lib/alphasort.c: New file, from glibc with modifications.
39260         * m4/alphasort.m4: New file.
39261         * modules/alphasort: New file.
39262         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39263         HAVE_ALPHASORT.
39264         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39265         HAVE_ALPHASORT.
39266         * doc/posix-functions/alphasort.texi: Mention the new module and the
39267         portability problems.
39268
39269 2009-01-18  Bruno Haible  <bruno@clisp.org>
39270
39271         New module 'scandir'.
39272         * lib/dirent.in.h (scandir): New declaration.
39273         * lib/scandir.c: New file, from glibc with modifications.
39274         * m4/scandir.m4: New file.
39275         * modules/scandir: New file.
39276         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39277         HAVE_SCANDIR.
39278         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39279         HAVE_SCANDIR.
39280         * doc/posix-functions/scandir.texi: Mention the new module and the
39281         portability problems.
39282
39283 2009-01-17  Bruno Haible  <bruno@clisp.org>
39284
39285         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39286         Update documentation.
39287         (func_remove_suffix): Escape all dots in the suffix. Update
39288         documentation.
39289         (func_filter_filelist): Update documentation.
39290         Reported by Ralf Wildenhues.
39291
39292 2009-01-17  Bruno Haible  <bruno@clisp.org>
39293
39294         * modules/dprintf-posix-tests: New file.
39295         * tests/test-dprintf-posix.sh: New file.
39296         * tests/test-dprintf-posix.c: New file.
39297
39298         New modules 'dprintf', 'dprintf-posix'.
39299         * lib/stdio.in.h (dprintf): New declaration.
39300         * lib/dprintf.c: New file.
39301         * m4/dprintf.m4: New file.
39302         * m4/dprintf-posix.m4: New file.
39303         * modules/dprintf: New file.
39304         * modules/dprintf-posix: New file.
39305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39306         HAVE_DPRINTF, REPLACE_DPRINTF.
39307         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39308         HAVE_DPRINTF, REPLACE_DPRINTF.
39309         * doc/posix-functions/dprintf.texi: Mention the new modules.
39310
39311 2009-01-17  Bruno Haible  <bruno@clisp.org>
39312
39313         * modules/vdprintf-posix-tests: New file.
39314         * tests/test-vdprintf-posix.sh: New file.
39315         * tests/test-vdprintf-posix.c: New file.
39316
39317         New modules 'vdprintf', 'vdprintf-posix'.
39318         * lib/stdio.in.h (vdprintf): New declaration.
39319         * lib/vdprintf.c: New file.
39320         * m4/vdprintf.m4: New file.
39321         * m4/vdprintf-posix.m4: New file.
39322         * modules/vdprintf: New file.
39323         * modules/vdprintf-posix: New file.
39324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39325         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39326         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39327         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39328         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39329
39330 2009-01-17  Bruno Haible  <bruno@clisp.org>
39331
39332         Fix replacement of fopen on mingw.
39333         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39334         mingw.
39335
39336 2009-01-17  Bruno Haible  <bruno@clisp.org>
39337
39338         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39339         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39340
39341 2009-01-17  Bruno Haible  <bruno@clisp.org>
39342
39343         Avoid test-fflush2.sh failure on mingw.
39344         * tests/test-fflush2.c: Include binary-io.h.
39345         (main): Put standard input into binary mode.
39346         * modules/fflush-tests (Depends-on): Add binary-io.
39347
39348 2009-01-17  Bruno Haible  <bruno@clisp.org>
39349
39350         * lib/wchar.in.h: In another particular situation, include only the
39351         system's <wchar.h> file.
39352         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39353         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39354         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39355
39356 2009-01-17  Bruno Haible  <bruno@clisp.org>
39357
39358         Support for stripping executables in --enable-relocatable.
39359         * build-aux/install-reloc: Expect one more argument, or an environment
39360         variable RELOC_STRIP_PROG. If set, strip the destination program and
39361         its wrapper.
39362         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39363         RELOC_STRIP_PROG.
39364         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39365         to set RELOCATABLE_STRIP.
39366         * NEWS: Mention the new Makefile requirement.
39367
39368 2009-01-17  Bruno Haible  <bruno@clisp.org>
39369
39370         * build-aux/install-reloc: Remove debugging information left over by
39371         C compiler on MacOS X.
39372
39373 2009-01-17  Bruno Haible  <bruno@clisp.org>
39374
39375         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39376         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39377         _NSGetExecutablePath.
39378
39379 2009-01-16  Jim Meyering  <meyering@redhat.com>
39380
39381         strerror: avoid warnings about discarding "const"
39382         * lib/strerror.c (rpl_strerror): Instead of returning a const
39383         string from each and every "case", use a variable, and add a single
39384         cast after the switch.
39385
39386 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39387
39388         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39389
39390 2009-01-16  Bruno Haible  <bruno@clisp.org>
39391
39392         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39393         array initializer syntax that also works in C++ mode.
39394         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39395
39396 2009-01-16  Jim Meyering  <meyering@redhat.com>
39397
39398         poll: suppress a warning
39399         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39400         to ignore "...unsigned expression < 0 is always false" warnings.
39401
39402 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39403
39404         poll: remove declarations of unused variables
39405         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39406         sockbuf and optlen.
39407
39408 2009-01-15  Bruno Haible  <bruno@clisp.org>
39409
39410         Make fflush-after-ungetc POSIX compliant on BSD systems.
39411         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39412         (clear_ungetc_buffer): Implement also for other systems.
39413         (rpl_fflush): On glibc systems, invoke
39414         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39415         clear_ungetc_buffer after fetching the stream's position, not before.
39416
39417 2009-01-15  Bruno Haible  <bruno@clisp.org>
39418
39419         Make fflush-after-ungetc POSIX compliant on glibc systems.
39420         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39421         after ungetc.
39422         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39423         (rpl_fflush): On glibc systems, simply call the system's fflush
39424         function after clearing the ungetc buffer.
39425         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39426         Instead, lseek only to the end of file, then use the system's fseeko
39427         for the rest. On glibc systems, reset the EOF indicator bit.
39428
39429 2009-01-15  Jim Meyering  <meyering@redhat.com>
39430
39431         openmp.m4: revert quote-adding change, for portability to older autoconf
39432         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39433         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39434         Simon Josefsson noticed the problem when using autoconf-2.61.
39435
39436 2009-01-15  Bruno Haible  <bruno@clisp.org>
39437
39438         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39439         * tests/test-fflush2.c (ASSERT): Always fail.
39440         (main): Add two tests for fflush() after ungetc(), taking into account
39441         the Austin Group's clarification.
39442         Suggested by Eric Blake.
39443
39444 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39445
39446         mktime.m4: remove K&R-style function prototypes
39447         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39448         for the Sun C++ compiler.
39449
39450 2009-01-14  Bruno Haible  <bruno@clisp.org>
39451
39452         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39453         while including <wchar.h>.
39454         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39455         the system's <wchar.h> file.
39456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39457
39458 2009-01-14  Bruno Haible  <bruno@clisp.org>
39459
39460         * m4/csharp.m4: Don't mention gettext on the serial number line.
39461         * m4/csharpexec.m4: Likewise.
39462         * m4/eaccess.m4: Likewise.
39463         * m4/javaexec.m4: Likewise.
39464         * m4/sig_atomic_t.m4: Likewise.
39465         * m4/tmpdir.m4: Likewise.
39466         * m4/intldir.m4: Bump gettext version.
39467         * m4/lib-ld.m4: Likewise.
39468
39469 2009-01-14  Bruno Haible  <bruno@clisp.org>
39470
39471         * lib/progname.c (set_program_name): Add more comments.
39472         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39473
39474 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39475
39476         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39477         were sys/stat.h does not define it.
39478
39479 2009-01-14  Jim Meyering  <meyering@redhat.com>
39480
39481         many *.m4 files: improve m4 quoting
39482         99% of this change was performed by running the following commands:
39483         git ls-files | grep '\.m4$' | xargs perl -pi \
39484           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39485           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39486           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39487           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39488         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39489         The remainder were to add Copyright dates, increment serial numbers,
39490         undo some changes in comments, exclude m4/intl.m4, and add quotes
39491         around the "1" in ",1" where the unusual spacing prohibited the
39492         above regexps from doing the job.  For more details, see
39493         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39494         * m4/acl.m4: Modified.
39495         * m4/afs.m4: Likewise.
39496         * m4/alloca.m4: Likewise.
39497         * m4/argp.m4: Likewise.
39498         * m4/argz.m4: Likewise.
39499         * m4/atexit.m4: Likewise.
39500         * m4/bison-i18n.m4: Likewise.
39501         * m4/bison.m4: Likewise.
39502         * m4/byteswap.m4: Likewise.
39503         * m4/c-stack.m4: Likewise.
39504         * m4/c-strtod.m4: Likewise.
39505         * m4/calloc.m4: Likewise.
39506         * m4/canonicalize-lgpl.m4: Likewise.
39507         * m4/chown.m4: Likewise.
39508         * m4/clock_time.m4: Likewise.
39509         * m4/codeset.m4: Likewise.
39510         * m4/copy-file.m4: Likewise.
39511         * m4/csharp.m4: Likewise.
39512         * m4/csharpcomp.m4: Likewise.
39513         * m4/csharpexec.m4: Likewise.
39514         * m4/d-ino.m4: Likewise.
39515         * m4/d-type.m4: Likewise.
39516         * m4/dirfd.m4: Likewise.
39517         * m4/double-slash-root.m4: Likewise.
39518         * m4/eaccess.m4: Likewise.
39519         * m4/eealloc.m4: Likewise.
39520         * m4/environ.m4: Likewise.
39521         * m4/errno_h.m4: Likewise.
39522         * m4/euidaccess.m4: Likewise.
39523         * m4/execute.m4: Likewise.
39524         * m4/fatal-signal.m4: Likewise.
39525         * m4/fchdir.m4: Likewise.
39526         * m4/fcntl_h.m4: Likewise.
39527         * m4/fileblocks.m4: Likewise.
39528         * m4/filenamecat.m4: Likewise.
39529         * m4/findprog.m4: Likewise.
39530         * m4/flexmember.m4: Likewise.
39531         * m4/fnmatch.m4: Likewise.
39532         * m4/fopen.m4: Likewise.
39533         * m4/fpending.m4: Likewise.
39534         * m4/fprintf-posix.m4: Likewise.
39535         * m4/free.m4: Likewise.
39536         * m4/frexp.m4: Likewise.
39537         * m4/frexpl.m4: Likewise.
39538         * m4/fsusage.m4: Likewise.
39539         * m4/ftruncate.m4: Likewise.
39540         * m4/gc-camellia.m4: Likewise.
39541         * m4/gc-random.m4: Likewise.
39542         * m4/gc.m4: Likewise.
39543         * m4/getaddrinfo.m4: Likewise.
39544         * m4/getcwd-abort-bug.m4: Likewise.
39545         * m4/getcwd-path-max.m4: Likewise.
39546         * m4/getdate.m4: Likewise.
39547         * m4/getdomainname.m4: Likewise.
39548         * m4/getgroups.m4: Likewise.
39549         * m4/gethostname.m4: Likewise.
39550         * m4/gethrxtime.m4: Likewise.
39551         * m4/getline.m4: Likewise.
39552         * m4/getloadavg.m4: Likewise.
39553         * m4/getndelim2.m4: Likewise.
39554         * m4/getpass.m4: Likewise.
39555         * m4/gettext.m4: Likewise.
39556         * m4/gettime.m4: Likewise.
39557         * m4/gettimeofday.m4: Likewise.
39558         * m4/gnulib-common.m4: Likewise.
39559         * m4/group-member.m4: Likewise.
39560         * m4/host-os.m4: Likewise.
39561         * m4/iconv.m4: Likewise.
39562         * m4/iconv_open.m4: Likewise.
39563         * m4/inet_ntop.m4: Likewise.
39564         * m4/inet_pton.m4: Likewise.
39565         * m4/inline.m4: Likewise.
39566         * m4/intldir.m4: Likewise.
39567         * m4/intlmacosx.m4: Likewise.
39568         * m4/intmax.m4: Likewise.
39569         * m4/intmax_t.m4: Likewise.
39570         * m4/inttypes.m4: Likewise.
39571         * m4/inttypes_h.m4: Likewise.
39572         * m4/inttypes-pri.m4: Likewise.
39573         * m4/isapipe.m4: Likewise.
39574         * m4/isnand.m4: Likewise.
39575         * m4/isnanf.m4: Likewise.
39576         * m4/isnanl.m4: Likewise.
39577         * m4/javacomp.m4: Likewise.
39578         * m4/javaexec.m4: Likewise.
39579         * m4/jm-winsz1.m4: Likewise.
39580         * m4/jm-winsz2.m4: Likewise.
39581         * m4/lchown.m4: Likewise.
39582         * m4/lcmessage.m4: Likewise.
39583         * m4/ldexpl.m4: Likewise.
39584         * m4/lib-ld.m4: Likewise.
39585         * m4/lib-link.m4: Likewise.
39586         * m4/libsigsegv.m4: Likewise.
39587         * m4/link-follow.m4: Likewise.
39588         * m4/localcharset.m4: Likewise.
39589         * m4/locale-fr.m4: Likewise.
39590         * m4/locale-ja.m4: Likewise.
39591         * m4/locale-tr.m4: Likewise.
39592         * m4/locale-zh.m4: Likewise.
39593         * m4/lock.m4: Likewise.
39594         * m4/longlong.m4: Likewise.
39595         * m4/ls-mntd-fs.m4: Likewise.
39596         * m4/lstat.m4: Likewise.
39597         * m4/malloc.m4: Likewise.
39598         * m4/mathl.m4: Likewise.
39599         * m4/mbrtowc.m4: Likewise.
39600         * m4/mbstate_t.m4: Likewise.
39601         * m4/mbswidth.m4: Likewise.
39602         * m4/memchr.m4: Likewise.
39603         * m4/memcmp.m4: Likewise.
39604         * m4/memcpy.m4: Likewise.
39605         * m4/memmem.m4: Likewise.
39606         * m4/memmove.m4: Likewise.
39607         * m4/mempcpy.m4: Likewise.
39608         * m4/memrchr.m4: Likewise.
39609         * m4/memset.m4: Likewise.
39610         * m4/minmax.m4: Likewise.
39611         * m4/mkdir-slash.m4: Likewise.
39612         * m4/mkdtemp.m4: Likewise.
39613         * m4/mktime.m4: Likewise.
39614         * m4/mmap-anon.m4: Likewise.
39615         * m4/mountlist.m4: Likewise.
39616         * m4/nanosleep.m4: Likewise.
39617         * m4/nls.m4: Likewise.
39618         * m4/nocrash.m4: Likewise.
39619         * m4/open.m4: Likewise.
39620         * m4/openat.m4: Likewise.
39621         * m4/openmp.m4: Likewise.
39622         * m4/pathmax.m4: Likewise.
39623         * m4/perl.m4: Likewise.
39624         * m4/physmem.m4: Likewise.
39625         * m4/pipe.m4: Likewise.
39626         * m4/po.m4: Likewise.
39627         * m4/poll.m4: Likewise.
39628         * m4/posixtm.m4: Likewise.
39629         * m4/posixver.m4: Likewise.
39630         * m4/printf-frexp.m4: Likewise.
39631         * m4/printf-frexpl.m4: Likewise.
39632         * m4/printf-posix.m4: Likewise.
39633         * m4/printf-posix-rpl.m4: Likewise.
39634         * m4/printf.m4: Likewise.
39635         * m4/progtest.m4: Likewise.
39636         * m4/putenv.m4: Likewise.
39637         * m4/readline.m4: Likewise.
39638         * m4/readlink.m4: Likewise.
39639         * m4/readutmp.m4: Likewise.
39640         * m4/realloc.m4: Likewise.
39641         * m4/regex.m4: Likewise.
39642         * m4/relocatable.m4: Likewise.
39643         * m4/relocatable-lib.m4: Likewise.
39644         * m4/rename-dest-slash.m4: Likewise.
39645         * m4/rename.m4: Likewise.
39646         * m4/rmdir-errno.m4: Likewise.
39647         * m4/rmdir.m4: Likewise.
39648         * m4/roundf.m4: Likewise.
39649         * m4/roundl.m4: Likewise.
39650         * m4/rpmatch.m4: Likewise.
39651         * m4/save-cwd.m4: Likewise.
39652         * m4/selinux-selinux-h.m4: Likewise.
39653         * m4/setenv.m4: Likewise.
39654         * m4/settime.m4: Likewise.
39655         * m4/sig2str.m4: Likewise.
39656         * m4/sig_atomic_t.m4: Likewise.
39657         * m4/signalblocking.m4: Likewise.
39658         * m4/signbit.m4: Likewise.
39659         * m4/sigpipe.m4: Likewise.
39660         * m4/sockets.m4: Likewise.
39661         * m4/sockpfaf.m4: Likewise.
39662         * m4/st_dm_mode.m4: Likewise.
39663         * m4/stat-time.m4: Likewise.
39664         * m4/stdbool.m4: Likewise.
39665         * m4/stdint.m4: Likewise.
39666         * m4/stdint_h.m4: Likewise.
39667         * m4/stpcpy.m4: Likewise.
39668         * m4/stpncpy.m4: Likewise.
39669         * m4/strcase.m4: Likewise.
39670         * m4/strchrnul.m4: Likewise.
39671         * m4/strcspn.m4: Likewise.
39672         * m4/strdup.m4: Likewise.
39673         * m4/strftime.m4: Likewise.
39674         * m4/strndup.m4: Likewise.
39675         * m4/strnlen.m4: Likewise.
39676         * m4/strpbrk.m4: Likewise.
39677         * m4/strptime.m4: Likewise.
39678         * m4/strsep.m4: Likewise.
39679         * m4/strtod.m4: Likewise.
39680         * m4/strtoimax.m4: Likewise.
39681         * m4/strtok_r.m4: Likewise.
39682         * m4/strtol.m4: Likewise.
39683         * m4/strtoll.m4: Likewise.
39684         * m4/strtoul.m4: Likewise.
39685         * m4/strtoull.m4: Likewise.
39686         * m4/strtoumax.m4: Likewise.
39687         * m4/strverscmp.m4: Likewise.
39688         * m4/threadlib.m4: Likewise.
39689         * m4/timegm.m4: Likewise.
39690         * m4/tm_gmtoff.m4: Likewise.
39691         * m4/tmpdir.m4: Likewise.
39692         * m4/tmpfile.m4: Likewise.
39693         * m4/tzset.m4: Likewise.
39694         * m4/uintmax_t.m4: Likewise.
39695         * m4/unlinkdir.m4: Likewise.
39696         * m4/unlocked-io.m4: Likewise.
39697         * m4/uptime.m4: Likewise.
39698         * m4/userspec.m4: Likewise.
39699         * m4/utimbuf.m4: Likewise.
39700         * m4/utime.m4: Likewise.
39701         * m4/utimes-null.m4: Likewise.
39702         * m4/utimes.m4: Likewise.
39703         * m4/vararrays.m4: Likewise.
39704         * m4/vasnprintf.m4: Likewise.
39705         * m4/vfprintf-posix.m4: Likewise.
39706         * m4/vprintf-posix.m4: Likewise.
39707         * m4/wait-process.m4: Likewise.
39708         * m4/wchar_t.m4: Likewise.
39709         * m4/wint_t.m4: Likewise.
39710         * m4/write-any-file.m4: Likewise.
39711         * m4/yield.m4: Likewise.
39712
39713 2009-01-13  Bruno Haible  <bruno@clisp.org>
39714
39715         Avoid test-copy-file.sh failures when ACL support insufficient.
39716         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39717         TESTS_ENVIRONMENT.
39718         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39719         Reported by Jim Meyering.
39720
39721 2009-01-13  Bruno Haible  <bruno@clisp.org>
39722
39723         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39724         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39725         * modules/unistdio/u8-printf-parse (Files): Likewise.
39726         * modules/unistdio/u32-printf-parse (Files): Likewise.
39727         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39728
39729 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39730
39731         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39732         and m4/inttypes_h.m4 too.
39733
39734 2009-01-12  Eric Blake  <ebb9@byu.net>
39735
39736         tests: IRIX 6.2 cc can't compile -0.0 into .data
39737         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39738         rather than at compile-time.
39739         * tests/test-floorl.c (minus_zero): Likewise.
39740         * tests/test-frexpl.c (minus_zero): Likewise.
39741         * tests/test-isnan.c (minus_zerol): Likewise.
39742         * tests/test-isnanl.h (minus_zero): Likewise.
39743         * tests/test-ldexpl.c (minus_zero): Likewise.
39744         * tests/test-roundl.c (minus_zero): Likewise.
39745         * tests/test-signbit.c (minus_zerol): Likewise.
39746         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39747         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39748         * tests/test-truncl.c (minus_zero): Likewise.
39749         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39750         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39751         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39752
39753 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39754
39755         regex: fix glibc bug 9697
39756         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39757         handling.
39758
39759 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39760
39761         regex: fix glibc bug 697
39762         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39763         being NULL also if there are no backreferences.
39764
39765 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39766
39767         regex: merge glibc changes
39768         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39769         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39770         re_string_skip_chars, re_string_reconstruct): Likewise.
39771         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39772
39773 2009-01-07  Jim Meyering  <meyering@redhat.com>
39774
39775         poll: filter through cppi
39776         * lib/poll.c: Indent cpp directives to reflect nesting.
39777
39778 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39779
39780         poll: don't return uninitialized
39781         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39782
39783 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39784
39785         avoid compile failure on AIX 6.1
39786         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39787         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39788
39789 2009-01-04  Jim Meyering  <meyering@redhat.com>
39790
39791         remove duplicate inclusion of <stdio.h>
39792         * tests/test-fprintf-posix.c: Likewise.
39793         * tests/test-printf-posix.c: Likewise.
39794         * tests/test-snprintf-posix.c: Likewise.
39795         * tests/test-sprintf-posix.c: Likewise.
39796         * tests/test-vasprintf-posix.c: Likewise.
39797         * tests/test-vfprintf-posix.c: Likewise.
39798         * tests/test-vprintf-posix.c: Likewise.
39799         * tests/test-vsnprintf-posix.c: Likewise.
39800         * tests/test-vsprintf-posix.c: Likewise.
39801
39802 2009-01-03  Jim Meyering  <meyering@redhat.com>
39803
39804         gnulib-tool: fix sed-based filtering
39805         * gnulib-tool (func_filter_filelist): Remove extra backslash
39806         in sed_fff_filter definition.
39807
39808 2009-01-02  Jim Meyering  <meyering@redhat.com>
39809
39810         strftime: avoid compilation failure on Solaris 2.6
39811         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39812         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39813         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39814         be available.  Reported by Tom G. Christensen.  Details in
39815         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39816
39817 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39818             Bruno Haible  <bruno@clisp.org>
39819
39820         Speed up gnulib-tool by doing more string processing through shell
39821         built-ins.
39822         * gnulib-tool (fast_func_append): New variable.
39823         (func_remove_prefix, func_remove_suffix): New functions.
39824         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39825         (func_filter_filelist): New function.
39826         (func_get_dependencies): Use func_remove_suffix instead of sed.
39827         (func_get_automake_snippet): Use func_filter_filelist instead of a
39828         subshell and sed invocation.
39829
39830 2009-01-01  Bruno Haible  <bruno@clisp.org>
39831
39832         Fix a security bug.
39833         * gnulib-tool (func_import, import, update): Don't allow the characters
39834         '"', '$', '`', '\' in macro arguments that become part of commands that
39835         are evaluated.
39836
39837 2009-01-01  Bruno Haible  <bruno@clisp.org>
39838
39839         * gnulib-tool (func_reset_sigpipe): Add more comments.
39840
39841 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39842
39843         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39844         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39845         already know the answer.
39846
39847 2009-01-01  Jim Meyering  <meyering@redhat.com>
39848
39849         * lib/version-etc.c (version_etc_va): Update copyright year.
39850
39851 2008-12-30  Bruno Haible  <bruno@clisp.org>
39852
39853         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39854         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39855         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39856
39857 2008-12-29  Eric Blake  <ebb9@byu.net>
39858
39859         multiarch: avoid autoconf AC_REQUIRE bug
39860         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39861         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39862         2.63 and older.
39863         Reported by Bruno Haible, and analyzed in
39864         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39865
39866 2008-12-29  Bruno Haible  <bruno@clisp.org>
39867
39868         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39869         files in subdirectories correctly.
39870         Reported by Ralf Wildenhues.
39871
39872 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39873
39874         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39875         rather than 'join FILE -', for Solaris join.
39876
39877 2008-12-29  Bruno Haible  <bruno@clisp.org>
39878
39879         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39880         quoting.
39881         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39882         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39883         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39884         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39885         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39886         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39887         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39888         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39889         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39890         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39891         * m4/nls.m4 (AM_NLS): Likewise.
39892         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39893         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39894         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39895         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39896         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39897         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39898         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39899         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39900         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39901         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39902         * m4/xsize.m4 (gl_XSIZE): Likewise.
39903         Suggested by Jim Meyering.
39904
39905 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39906
39907         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39908         * lib/parse-duration.c: use a switch instead of cascading if's.
39909
39910 2008-12-29  Eric Blake  <ebb9@byu.net>
39911
39912         wchar.h: supply WEOF on Irix 5.3
39913         * lib/wchar.in.h (wint_t): Also supply WEOF.
39914         * lib/wctype.in.h (wint_t): Likewise.
39915         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39916         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39917         Reported by Tom G. Christensen.
39918
39919 2008-12-26  Bruno Haible  <bruno@clisp.org>
39920
39921         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39922         i486, i586, i686.
39923
39924 2008-12-26  Bruno Haible  <bruno@clisp.org>
39925
39926         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39927
39928 2008-12-26  Bruno Haible  <bruno@clisp.org>
39929
39930         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39931         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39932         not __STDC_CONSTANT_MACROS.
39933         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39934
39935 2008-12-25  Bruno Haible  <bruno@clisp.org>
39936
39937         Add support for universal builds to vasnprintf.
39938         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39939         universal builds, guess no.
39940         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39941         * modules/vasprintf-posix (Depends-on): Likewise.
39942         * modules/fprintf-posix (Depends-on): Likewise.
39943         * modules/vfprintf-posix (Depends-on): Likewise.
39944         * modules/snprintf-posix (Depends-on): Likewise.
39945         * modules/vsnprintf-posix (Depends-on): Likewise.
39946         * modules/sprintf-posix (Depends-on): Likewise.
39947         * modules/vsprintf-posix (Depends-on): Likewise.
39948         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39950         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39951         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39952         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39953         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39954         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39955
39956         Add support for universal builds to <inttypes.h>.
39957         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39958         _SCNu64_PREFIX): In Apple
39959         universal builds, define directly, using _LP64.
39960         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39961         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39962         * modules/inttypes (Depends-on): Add multiarch.
39963         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39964
39965         Add support for universal builds to <stdint.h>.
39966         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39967         universal builds, define directly, using _LP64.
39968         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39969         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39970         and size_t.
39971         * modules/stdint (Depends-on): Add multiarch.
39972         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39973
39974         New module 'multiarch'.
39975         * modules/multiarch: New file.
39976         * m4/multiarch.m4: New file.
39977
39978 2008-12-25  Bruno Haible  <bruno@clisp.org>
39979
39980         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39981
39982 2008-12-25  Bruno Haible  <bruno@clisp.org>
39983
39984         * modules/btowc (License): Relicense under LGPLv2+.
39985         * modules/mbsinit (License): Likewise.
39986         * modules/mbrtowc (License): Likewise.
39987         * modules/wcrtomb (License): Likewise.
39988         * modules/streq (License): Likewise.
39989         Reported by David Lutterkort <lutter@redhat.com>.
39990
39991 2008-12-23  Bruno Haible  <bruno@clisp.org>
39992
39993         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39994
39995 2008-12-23  Bruno Haible  <bruno@clisp.org>
39996
39997         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39999         GETADDRINFO_LIB, not in LIBS.
40000         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40001         * modules/canon-host (Link): Likewise.
40002         * NEWS: Mention the change.
40003         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40004         GETADDRINFO_LIB.
40005
40006 2008-12-22  Bruno Haible  <bruno@clisp.org>
40007
40008         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40009         * doc/posix-functions/iswalpha_l.texi: Likewise.
40010         * doc/posix-functions/iswblank_l.texi: Likewise.
40011         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40012         * doc/posix-functions/iswctype_l.texi: Likewise.
40013         * doc/posix-functions/iswdigit_l.texi: Likewise.
40014         * doc/posix-functions/iswgraph_l.texi: Likewise.
40015         * doc/posix-functions/iswlower_l.texi: Likewise.
40016         * doc/posix-functions/iswprint_l.texi: Likewise.
40017         * doc/posix-functions/iswpunct_l.texi: Likewise.
40018         * doc/posix-functions/iswspace_l.texi: Likewise.
40019         * doc/posix-functions/iswupper_l.texi: Likewise.
40020         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40021         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40022         * doc/posix-functions/open_wmemstream.texi: Likewise.
40023         * doc/posix-functions/swscanf.texi: Likewise.
40024         * doc/posix-functions/towctrans_l.texi: Likewise.
40025         * doc/posix-functions/towlower.texi: Likewise.
40026         * doc/posix-functions/towlower_l.texi: Likewise.
40027         * doc/posix-functions/towupper.texi: Likewise.
40028         * doc/posix-functions/towupper_l.texi: Likewise.
40029         * doc/posix-functions/vfwprintf.texi: Likewise.
40030         * doc/posix-functions/vfwscanf.texi: Likewise.
40031         * doc/posix-functions/vswscanf.texi: Likewise.
40032         * doc/posix-functions/vwprintf.texi: Likewise.
40033         * doc/posix-functions/vwscanf.texi: Likewise.
40034         * doc/posix-functions/wcpcpy.texi: Likewise.
40035         * doc/posix-functions/wcpncpy.texi: Likewise.
40036         * doc/posix-functions/wcscasecmp.texi: Likewise.
40037         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40038         * doc/posix-functions/wcscoll_l.texi: Likewise.
40039         * doc/posix-functions/wcsdup.texi: Likewise.
40040         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40041         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40042         * doc/posix-functions/wcsnlen.texi: Likewise.
40043         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40044         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40045         * doc/posix-functions/wctrans_l.texi: Likewise.
40046         * doc/posix-functions/wctype_l.texi: Likewise.
40047         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40048         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40049         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40050         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40051         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40052         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40053         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40054         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40055         * doc/glibc-functions/wcschrnul.texi: Likewise.
40056         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40057         * doc/glibc-functions/wcstod_l.texi: Likewise.
40058         * doc/glibc-functions/wcstof_l.texi: Likewise.
40059         * doc/glibc-functions/wcstol_l.texi: Likewise.
40060         * doc/glibc-functions/wcstold_l.texi: Likewise.
40061         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40062         * doc/glibc-functions/wcstoq.texi: Likewise.
40063         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40064         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40065         * doc/glibc-functions/wcstouq.texi: Likewise.
40066         * doc/glibc-functions/wmempcpy.texi: Likewise.
40067
40068 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40069             Eric Blake  <ebb9@byu.net>
40070             Paolo Bonzini  <bonzini@gnu.org>
40071             Bruno Haible  <bruno@clisp.org>
40072
40073         Make c-stack work on Haiku.
40074         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40075         (c_stack_action): Use SA_ONSTACK flag.
40076
40077 2008-12-22  Bruno Haible  <bruno@clisp.org>
40078
40079         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40080
40081 2008-12-22  Bruno Haible  <bruno@clisp.org>
40082
40083         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40084         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40085         being overridden.
40086         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40087         New macros.
40088         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40090         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40091         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40092
40093 2008-12-22  Bruno Haible  <bruno@clisp.org>
40094
40095         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40096         from test code.
40097
40098 2008-12-22  Eric Blake  <ebb9@byu.net>
40099
40100         Avoid gcc warnings on cygwin.
40101         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40102         Avoid unused variable.
40103         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40104         Likewise.
40105
40106 2008-12-22  Bruno Haible  <bruno@clisp.org>
40107
40108         Remove HAVE_MBRTOWC conditionals.
40109         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40110         (mbscasecmp): Assume mbrtowc function.
40111         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40112         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40113         * lib/mbschr.c: Include mbuiter.h unconditionally.
40114         (mbschr): Assume mbrtowc function.
40115         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40116         (mbscspn): Assume mbrtowc function.
40117         * lib/mbslen.c: Include mbuiter.h unconditionally.
40118         (mbslen): Assume mbrtowc function.
40119         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40120         (mbsncasecmp): Assume mbrtowc function.
40121         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40122         (mbsnlen): Assume mbrtowc function.
40123         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40124         (mbspbrk): Assume mbrtowc function.
40125         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40126         (mbspcasecmp): Assume mbrtowc function.
40127         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40128         (mbsrchr): Assume mbrtowc function.
40129         * lib/mbssep.c: Include mbuiter.h unconditionally.
40130         (mbssep): Assume mbrtowc function.
40131         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40132         (mbsspn): Assume mbrtowc function.
40133         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40134         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40135         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40136         (mbstok_r): Assume mbrtowc function.
40137         * lib/propername.c: Include mbuiter.h unconditionally.
40138         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40139         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40140         (trim2): Assume mbrtowc function.
40141         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40142         (mbsnwidth): Assume mbrtowc function.
40143         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40144         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40145         fallback definitions.
40146         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40147
40148 2008-12-22  Bruno Haible  <bruno@clisp.org>
40149
40150         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40151
40152 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40153
40154         * modules/regex: Request emulations for the mb*/wc* functions we need.
40155         * m4/regex.m4: Don't look for those functions here.
40156         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40157
40158 2008-12-22  Bruno Haible  <bruno@clisp.org>
40159
40160         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40161
40162 2008-12-21  Bruno Haible  <bruno@clisp.org>
40163
40164         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40165         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40166         (Include): Remove conditionalization.
40167         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40168         (Include): Remove conditionalization.
40169         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40170         (Include): Remove conditionalization.
40171         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40172         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40173         * NEWS: Mention the change.
40174         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40175         via Sergey Poznyakoff <gray@gnu.org.ua>.
40176
40177 2008-12-21  Bruno Haible  <bruno@clisp.org>
40178
40179         * MODULES.html.sh (Extended multibyte and wide character utilities
40180         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40181         wcrtomb, wcsrtombs.
40182         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40183         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40184         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40185         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40186
40187 2008-12-21  Bruno Haible  <bruno@clisp.org>
40188
40189         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40190
40191 2008-12-21  Bruno Haible  <bruno@clisp.org>
40192
40193         * modules/wcsnrtombs-tests: New file.
40194         * tests/test-wcsnrtombs1.sh: New file.
40195         * tests/test-wcsnrtombs2.sh: New file.
40196         * tests/test-wcsnrtombs3.sh: New file.
40197         * tests/test-wcsnrtombs4.sh: New file.
40198         * tests/test-wcsnrtombs.c: New file.
40199
40200         New module 'wcsnrtombs'.
40201         * lib/wchar.in.h (wcsnrtombs): New declaration.
40202         * lib/wcsnrtombs.c: New file.
40203         * lib/wcsrtombs-state.c: New file.
40204         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40205         (internal_state): Remove variable.
40206         * m4/wcsnrtombs.m4: New file.
40207         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40208         compilation units.
40209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40210         HAVE_WCSNRTOMBS.
40211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40212         HAVE_WCSNRTOMBS.
40213         * modules/wcsnrtombs: New file.
40214         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40215         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40216
40217 2008-12-21  Bruno Haible  <bruno@clisp.org>
40218
40219         * modules/wcsrtombs-tests: New file.
40220         * tests/test-wcsrtombs1.sh: New file.
40221         * tests/test-wcsrtombs2.sh: New file.
40222         * tests/test-wcsrtombs3.sh: New file.
40223         * tests/test-wcsrtombs4.sh: New file.
40224         * tests/test-wcsrtombs.c: New file.
40225
40226         New module 'wcsrtombs'.
40227         * lib/wchar.in.h (wcsrtombs): New declaration.
40228         * lib/wcsrtombs.c: New file.
40229         * m4/wcsrtombs.m4: New file.
40230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40231         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40233         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40234         * modules/wcsrtombs: New file.
40235         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40236         bugs.
40237
40238 2008-12-21  Bruno Haible  <bruno@clisp.org>
40239
40240         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40241         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40242         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40243         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40244         if not correct.
40245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40246         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40247         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40248         m4/locale-zh.m4, m4/codeset.m4.
40249         * doc/posix-functions/wcrtomb.texi: Document the bug.
40250
40251 2008-12-21  Bruno Haible  <bruno@clisp.org>
40252
40253         Work around a btowc() bug on IRIX 6.5.
40254         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40255         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40256         REPLACE_WTOBC if not.
40257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40258         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40259         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40260
40261 2008-12-21  Bruno Haible  <bruno@clisp.org>
40262
40263         * modules/wcrtomb-tests: New file.
40264         * tests/test-wcrtomb.sh: New file.
40265         * tests/test-wcrtomb.c: New file.
40266
40267         New module 'wcrtomb'.
40268         * lib/wchar.in.h (wcrtomb): New declaration.
40269         * lib/wcrtomb.c: New file.
40270         * m4/wcrtomb.m4: New file.
40271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40272         HAVE_WCRTOMB.
40273         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40274         HAVE_WCRTOMB.
40275         * modules/wcrtomb: New file.
40276         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40277
40278 2008-12-21  Bruno Haible  <bruno@clisp.org>
40279
40280         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40281         * modules/mbsrtowcs (Files): Likewise.
40282         * modules/wctob (Files): Likewise.
40283         * modules/c-strcase-tests (Files): Likewise.
40284         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40285         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40286         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40287         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40288         * modules/vasnprintf-posix-tests (Files): Likewise.
40289
40290 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40291
40292         gitlog-to-changelog: pass all command-line arguments to git-log
40293         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40294         it is sometimes convenient to filter the commits in various ways.
40295         gitlog-to-changelog only allows --since to specify a start date,
40296         but git-log itself supports many other filtering mechanisms.
40297         At the moment, I want to filter by branch name.  Rather than
40298         adding a --branch option to gitlog-to-changelog, it seems more
40299         flexible to simply pass all options directly to git-log and let
40300         git do the work.  Notice that this effectively makes --since a
40301         redundant option for gitlog-to-changelog, but removing it would
40302         require current usage to change since calls would then require
40303         an additional '--'.
40304
40305 2008-12-21  Bruno Haible  <bruno@clisp.org>
40306
40307         * modules/mbsnrtowcs-tests: New file.
40308         * tests/test-mbsnrtowcs1.sh: New file.
40309         * tests/test-mbsnrtowcs2.sh: New file.
40310         * tests/test-mbsnrtowcs3.sh: New file.
40311         * tests/test-mbsnrtowcs4.sh: New file.
40312         * tests/test-mbsnrtowcs.c: New file.
40313
40314         New module 'mbsnrtowcs'.
40315         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40316         * lib/mbsnrtowcs.c: New file.
40317         * lib/mbsrtowcs-state.c: New file.
40318         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40319         (internal_state): Remove variable.
40320         * m4/mbsnrtowcs.m4: New file.
40321         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40322         compilation units.
40323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40324         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40325         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40326         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40327         * modules/mbsnrtowcs: New file.
40328         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40329         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40330         portability problem.
40331
40332 2008-12-21  Bruno Haible  <bruno@clisp.org>
40333
40334         Work around mbsrtowcs bug.
40335         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40336         (gl_FUNC_MBSRTOWCS): Invoke it.
40337         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40338         m4/locale-zh.m4.
40339         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40340
40341 2008-12-21  Bruno Haible  <bruno@clisp.org>
40342
40343         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40344
40345 2008-12-21  Bruno Haible  <bruno@clisp.org>
40346
40347         Update doc for AIX.
40348         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40349         16-bit wchar_t type.
40350         * doc/posix-functions/btowc.texi: Likewise.
40351         * doc/posix-functions/fgetwc.texi: Likewise.
40352         * doc/posix-functions/fgetws.texi: Likewise.
40353         * doc/posix-functions/fputwc.texi: Likewise.
40354         * doc/posix-functions/fputws.texi: Likewise.
40355         * doc/posix-functions/fwide.texi: Likewise.
40356         * doc/posix-functions/fwprintf.texi: Likewise.
40357         * doc/posix-functions/fwscanf.texi: Likewise.
40358         * doc/posix-functions/getwchar.texi: Likewise.
40359         * doc/posix-functions/getwc.texi: Likewise.
40360         * doc/posix-functions/iswalnum.texi: Likewise.
40361         * doc/posix-functions/iswalpha.texi: Likewise.
40362         * doc/posix-functions/iswblank.texi: Likewise.
40363         * doc/posix-functions/iswcntrl.texi: Likewise.
40364         * doc/posix-functions/iswctype.texi: Likewise.
40365         * doc/posix-functions/iswdigit.texi: Likewise.
40366         * doc/posix-functions/iswgraph.texi: Likewise.
40367         * doc/posix-functions/iswlower.texi: Likewise.
40368         * doc/posix-functions/iswprint.texi: Likewise.
40369         * doc/posix-functions/iswpunct.texi: Likewise.
40370         * doc/posix-functions/iswspace.texi: Likewise.
40371         * doc/posix-functions/iswupper.texi: Likewise.
40372         * doc/posix-functions/iswxdigit.texi: Likewise.
40373         * doc/posix-functions/mbrtowc.texi: Likewise.
40374         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40375         * doc/posix-functions/mbstowcs.texi: Likewise.
40376         * doc/posix-functions/mbtowc.texi: Likewise.
40377         * doc/posix-functions/putwchar.texi: Likewise.
40378         * doc/posix-functions/putwc.texi: Likewise.
40379         * doc/posix-functions/swprintf.texi: Likewise.
40380         * doc/posix-functions/tolower.texi: Likewise.
40381         * doc/posix-functions/toupper.texi: Likewise.
40382         * doc/posix-functions/towctrans.texi: Likewise.
40383         * doc/posix-functions/ungetwc.texi: Likewise.
40384         * doc/posix-functions/vswprintf.texi: Likewise.
40385         * doc/posix-functions/wcrtomb.texi: Likewise.
40386         * doc/posix-functions/wcscat.texi: Likewise.
40387         * doc/posix-functions/wcschr.texi: Likewise.
40388         * doc/posix-functions/wcscmp.texi: Likewise.
40389         * doc/posix-functions/wcscoll.texi: Likewise.
40390         * doc/posix-functions/wcscpy.texi: Likewise.
40391         * doc/posix-functions/wcscspn.texi: Likewise.
40392         * doc/posix-functions/wcsftime.texi: Likewise.
40393         * doc/posix-functions/wcslen.texi: Likewise.
40394         * doc/posix-functions/wcsncat.texi: Likewise.
40395         * doc/posix-functions/wcsncmp.texi: Likewise.
40396         * doc/posix-functions/wcsncpy.texi: Likewise.
40397         * doc/posix-functions/wcspbrk.texi: Likewise.
40398         * doc/posix-functions/wcsrchr.texi: Likewise.
40399         * doc/posix-functions/wcsrtombs.texi: Likewise.
40400         * doc/posix-functions/wcsspn.texi: Likewise.
40401         * doc/posix-functions/wcsstr.texi: Likewise.
40402         * doc/posix-functions/wcstod.texi: Likewise.
40403         * doc/posix-functions/wcstof.texi: Likewise.
40404         * doc/posix-functions/wcstoimax.texi: Likewise.
40405         * doc/posix-functions/wcstok.texi: Likewise.
40406         * doc/posix-functions/wcstold.texi: Likewise.
40407         * doc/posix-functions/wcstoll.texi: Likewise.
40408         * doc/posix-functions/wcstol.texi: Likewise.
40409         * doc/posix-functions/wcstombs.texi: Likewise.
40410         * doc/posix-functions/wcstoull.texi: Likewise.
40411         * doc/posix-functions/wcstoul.texi: Likewise.
40412         * doc/posix-functions/wcstoumax.texi: Likewise.
40413         * doc/posix-functions/wcswidth.texi: Likewise.
40414         * doc/posix-functions/wcsxfrm.texi: Likewise.
40415         * doc/posix-functions/wctob.texi: Likewise.
40416         * doc/posix-functions/wctomb.texi: Likewise.
40417         * doc/posix-functions/wctrans.texi: Likewise.
40418         * doc/posix-functions/wctype.texi: Likewise.
40419         * doc/posix-functions/wcwidth.texi: Likewise.
40420         * doc/posix-functions/wmemchr.texi: Likewise.
40421         * doc/posix-functions/wmemcmp.texi: Likewise.
40422         * doc/posix-functions/wmemcpy.texi: Likewise.
40423         * doc/posix-functions/wmemmove.texi: Likewise.
40424         * doc/posix-functions/wmemset.texi: Likewise.
40425         * doc/posix-functions/wprintf.texi: Likewise.
40426         * doc/posix-functions/wscanf.texi: Likewise.
40427
40428 2008-12-21  Bruno Haible  <bruno@clisp.org>
40429
40430         Update doc for HP-UX 11.11.
40431         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40432         in HP-UX version 11.00, not in all versions of HP-UX 11.
40433         * doc/posix-functions/fwide.texi: Likewise.
40434         * doc/posix-functions/fwprintf.texi: Likewise.
40435         * doc/posix-functions/fwscanf.texi: Likewise.
40436         * doc/posix-functions/inet_ntop.texi: Likewise.
40437         * doc/posix-functions/inet_pton.texi: Likewise.
40438         * doc/posix-functions/mbrlen.texi: Likewise.
40439         * doc/posix-functions/mbrtowc.texi: Likewise.
40440         * doc/posix-functions/mbsinit.texi: Likewise.
40441         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40442         * doc/posix-functions/swprintf.texi: Likewise.
40443         * doc/posix-functions/swscanf.texi: Likewise.
40444         * doc/posix-functions/towctrans.texi: Likewise.
40445         * doc/posix-functions/vfwprintf.texi: Likewise.
40446         * doc/posix-functions/vswprintf.texi: Likewise.
40447         * doc/posix-functions/vwprintf.texi: Likewise.
40448         * doc/posix-functions/wcrtomb.texi: Likewise.
40449         * doc/posix-functions/wcsrtombs.texi: Likewise.
40450         * doc/posix-functions/wcsstr.texi: Likewise.
40451         * doc/posix-functions/wctob.texi: Likewise.
40452         * doc/posix-functions/wctrans.texi: Likewise.
40453         * doc/posix-functions/wmemchr.texi: Likewise.
40454         * doc/posix-functions/wmemcmp.texi: Likewise.
40455         * doc/posix-functions/wmemcpy.texi: Likewise.
40456         * doc/posix-functions/wmemmove.texi: Likewise.
40457         * doc/posix-functions/wmemset.texi: Likewise.
40458         * doc/posix-functions/wprintf.texi: Likewise.
40459         * doc/posix-functions/wscanf.texi: Likewise.
40460
40461 2008-12-21  Bruno Haible  <bruno@clisp.org>
40462
40463         Work around a portability problem.
40464         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40465         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40466
40467 2008-12-20  Bruno Haible  <bruno@clisp.org>
40468
40469         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40470         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40471         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40473         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40474
40475         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40476         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40477         set.
40478         (GNULIB_defined_mbstate_t): New macro.
40479         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40480         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40481         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40482         reuses the system's mbrtowc function but works around the bugs.
40483         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40484         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40485         macros.
40486         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40487         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40488         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40489         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40490         REPLACE_MBSINIT if mbsinit needs to be overridden.
40491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40492         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40493         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40494         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40495         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40496         m4/locale-zh.m4.
40497         (Depends): Add mbsinit.
40498         * modules/mbsinit (Depends): Add mbrtowc.
40499         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40500
40501 2008-12-20  Bruno Haible  <bruno@clisp.org>
40502
40503         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40504         so that there are no conversion errors on AIX.
40505         * tests/test-mbsrtowcs.c (main): LIkewise.
40506
40507 2008-12-20  Bruno Haible  <bruno@clisp.org>
40508
40509         Work around wctob bug on Solaris <= 9.
40510         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40511         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40513         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40514         * modules/wctob (Files): Add m4/locale-fr.m4.
40515         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40516
40517 2008-12-20  Bruno Haible  <bruno@clisp.org>
40518
40519         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40520         /dev/null.
40521         * tests/test-select-in.sh: Likewise.
40522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40523
40524 2008-12-20  Bruno Haible  <bruno@clisp.org>
40525
40526         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40527         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40528         Cygwin 1.5.x.
40529
40530 2008-12-20  Bruno Haible  <bruno@clisp.org>
40531
40532         Ensure mbstate_t is defined on HP-UX 11.11.
40533         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40534         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40535         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40536         AC_USE_SYSTEM_EXTENSIONS.
40537         * modules/fnmatch (Depends-on): Add extensions.
40538         * modules/mbrlen (Depends-on): Likewise.
40539         * modules/mbrtowc (Depends-on): Likewise.
40540         * modules/mbsinit (Depends-on): Likewise.
40541         * modules/mbsrtowcs (Depends-on): Likewise.
40542         * modules/mbswidth (Depends-on): Likewise.
40543         * modules/quotearg (Depends-on): Likewise.
40544         * modules/strftime (Depends-on): Likewise.
40545
40546 2008-12-20  Bruno Haible  <bruno@clisp.org>
40547
40548         Ensure wctob is declared on IRIX 6.5.
40549         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40550         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40551         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40553         of HAVE_WCTOB.
40554         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40555         HAVE_WCTOB.
40556         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40557
40558 2008-12-19  Bruno Haible  <bruno@clisp.org>
40559
40560         * modules/mbsrtowcs-tests: New file.
40561         * tests/test-mbsrtowcs1.sh: New file.
40562         * tests/test-mbsrtowcs2.sh: New file.
40563         * tests/test-mbsrtowcs3.sh: New file.
40564         * tests/test-mbsrtowcs4.sh: New file.
40565         * tests/test-mbsrtowcs.c: New file.
40566
40567         New module 'mbsrtowcs'.
40568         * lib/wchar.in.h (mbsrtowcs): New declaration.
40569         * lib/mbsrtowcs.c: New file.
40570         * m4/mbsrtowcs.m4: New file.
40571         * modules/mbsrtowcs: New file.
40572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40573         HAVE_MBSRTOWCS.
40574         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40575         HAVE_MBSRTOWCS.
40576         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40577
40578 2008-12-19  Bruno Haible  <bruno@clisp.org>
40579
40580         New module 'mbrlen'.
40581         * lib/wchar.in.h (mbrlen): New declaration.
40582         * lib/mbrlen.c: New file.
40583         * m4/mbrlen.m4: New file.
40584         * modules/mbrlen: New file.
40585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40586         HAVE_MBRLEN.
40587         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40588         HAVE_MBRLEN.
40589         * doc/posix-functions/mbrlen.texi: Document the new module.
40590
40591 2008-12-19  Bruno Haible  <bruno@clisp.org>
40592
40593         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40594         * modules/mbrtowc (Depends-on): Add verify.
40595         Suggested by Paul Eggert.
40596
40597 2008-12-18  Bruno Haible  <bruno@clisp.org>
40598
40599         * modules/mbsinit-tests: New file.
40600         * tests/test-mbsinit.sh: New file.
40601         * tests/test-mbsinit.c: New file.
40602
40603 2008-12-18  Bruno Haible  <bruno@clisp.org>
40604
40605         * modules/mbrtowc-tests: New file.
40606         * tests/test-mbrtowc1.sh: New file.
40607         * tests/test-mbrtowc2.sh: New file.
40608         * tests/test-mbrtowc3.sh: New file.
40609         * tests/test-mbrtowc4.sh: New file.
40610         * tests/test-mbrtowc.c: New file.
40611
40612         New module 'mbrtowc'.
40613         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40614         mbsinit and mbrtowc.
40615         (mbrtowc): New declaration.
40616         * lib/mbrtowc.c: New file.
40617         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40618         * modules/mbrtowc: New file.
40619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40620         HAVE_MBRTOWC.
40621         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40622         HAVE_MBRTOWC.
40623         * doc/posix-functions/mbrtowc.texi: Document the new module.
40624
40625 2008-12-18  Bruno Haible  <bruno@clisp.org>
40626
40627         New module 'wctob'.
40628         * lib/wchar.in.h (wctob): New declaration.
40629         * lib/wctob.c: New file.
40630         * m4/wctob.m4: New file.
40631         * modules/wctob: New file.
40632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40633         HAVE_WCTOB.
40634         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40635         * doc/posix-functions/wctob.texi: Document the new module.
40636
40637 2008-12-18  Bruno Haible  <bruno@clisp.org>
40638
40639         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40640         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40641
40642 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40643
40644         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40645         G. Christensen" <tgc@jupiterrise.com>.
40646
40647         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40648         G. Christensen" <tgc@jupiterrise.com>.
40649
40650         * lib/flock.c: Need to include string.h.  Reported by "Tom
40651         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40652         <ebb9@byu.net>.
40653
40654 2008-12-18  Bruno Haible  <bruno@clisp.org>
40655
40656         * m4/locale-ja.m4: New file, from GNU gettext.
40657
40658 2008-12-17  Bruno Haible  <bruno@clisp.org>
40659
40660         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40661         Suggested by Eric Blake.
40662
40663 2008-12-17  Bruno Haible  <bruno@clisp.org>
40664
40665         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40666
40667 2008-12-17  Bruno Haible  <bruno@clisp.org>
40668
40669         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40670         * modules/mbsinit (Depends-on): Add verify.
40671         Suggested by Paul Eggert.
40672
40673 2008-12-17  Bruno Haible  <bruno@clisp.org>
40674
40675         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40676         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40677         gl_FUNC_MBRTOWC.
40678         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40679         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40680         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40681         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40682         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40683         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40684         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40685         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40686         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40687         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40688         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40689         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40690         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40691         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40692         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40693         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40694         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40695         * modules/trim (configure.ac): Likewise.
40696
40697 2008-12-17  Bruno Haible  <bruno@clisp.org>
40698
40699         * modules/btowc-tests: New file.
40700         * tests/test-btowc1.sh: New file.
40701         * tests/test-btowc2.sh: New file.
40702         * tests/test-btowc.c: New file.
40703
40704         New module 'btowc'.
40705         * lib/wchar.in.h (btowc): New declaration.
40706         * lib/btowc.c: New file.
40707         * m4/btowc.m4: New file.
40708         * modules/btowc: New file.
40709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40710         HAVE_BTOWC.
40711         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40712         * doc/posix-functions/btowc.texi: Document the new module.
40713
40714 2008-12-17  Bruno Haible  <bruno@clisp.org>
40715
40716         New module 'mbsinit'.
40717         * lib/wchar.in.h (mbsinit): New declaration.
40718         * lib/mbsinit.c: New file.
40719         * m4/mbsinit.m4: New file.
40720         * modules/mbsinit: New file.
40721         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40722         HAVE_MBSINIT.
40723         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40724         HAVE_MBSINIT.
40725         * doc/posix-functions/mbsinit.texi: Document the new module.
40726
40727 2008-12-16  Bruno Haible  <bruno@clisp.org>
40728
40729         * lib/unistd.in.h: Add comment.
40730         * tests/test-environ.c: Don't include <stdlib.h>.
40731
40732 2008-12-16  Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/parse-duration.h (parse_duration): Document return value
40735         convention.
40736         * lib/parse-duration.c: Include specification header first. Add
40737         comments.
40738         (_): Remove macro.
40739         (parse_year_month_day, parse_hour_minute_second): Move side effects
40740         outside of strchr call.
40741         (parse_non_iso8601): Move side effects outside of isspace call.
40742         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40743         call.
40744
40745 2008-12-16  Bruno Haible  <bruno@clisp.org>
40746
40747         * tests/test-parse-duration.sh: Produce no output when the test
40748         succeeds.
40749
40750 2008-12-16  Bruno Haible  <bruno@clisp.org>
40751
40752         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40753         expressions.
40754
40755 2008-12-15  Bruno Haible  <bruno@clisp.org>
40756
40757         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40758         * doc/glibc-functions/flistxattr.texi: Likewise.
40759         * doc/glibc-functions/fopencookie.texi: Likewise.
40760         * doc/glibc-functions/fremovexattr.texi: Likewise.
40761         * doc/glibc-functions/fsetxattr.texi: Likewise.
40762         * doc/glibc-functions/getxattr.texi: Likewise.
40763         * doc/glibc-functions/lgetxattr.texi: Likewise.
40764         * doc/glibc-functions/listxattr.texi: Likewise.
40765         * doc/glibc-functions/llistxattr.texi: Likewise.
40766         * doc/glibc-functions/lremovexattr.texi: Likewise.
40767         * doc/glibc-functions/lsetxattr.texi: Likewise.
40768         * doc/glibc-functions/removexattr.texi: Likewise.
40769         * doc/glibc-functions/setxattr.texi: Likewise.
40770         * doc/posix-functions/open_memstream.texi: Likewise.
40771
40772 2008-12-15  Eric Blake  <ebb9@byu.net>
40773
40774         Update doc for cygwin 1.7.
40775         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40776         functions.
40777         * doc/posix-functions/fchmodat.texi: Likewise.
40778         * doc/posix-functions/fchownat.texi: Likewise.
40779         * doc/posix-functions/fdopendir.texi: Likewise.
40780         * doc/posix-functions/fmemopen.texi: Likewise.
40781         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40782         * doc/posix-functions/fstatat.texi: Likewise.
40783         * doc/posix-functions/futimens.texi: Likewise.
40784         * doc/posix-functions/gai_strerror.texi: Likewise.
40785         * doc/posix-functions/getaddrinfo.texi: Likewise.
40786         * doc/posix-functions/getnameinfo.texi: Likewise.
40787         * doc/posix-functions/if_freenameindex.texi: Likewise.
40788         * doc/posix-functions/if_indextoname.texi: Likewise.
40789         * doc/posix-functions/if_nameindex.texi: Likewise.
40790         * doc/posix-functions/if_nametoindex.texi: Likewise.
40791         * doc/posix-functions/insque.texi: Likewise.
40792         * doc/posix-functions/linkat.texi: Likewise.
40793         * doc/posix-functions/llrint.texi: Likewise.
40794         * doc/posix-functions/llrintf.texi: Likewise.
40795         * doc/posix-functions/llrintl.texi: Likewise.
40796         * doc/posix-functions/lockf.texi: Likewise.
40797         * doc/posix-functions/lrintl.texi: Likewise.
40798         * doc/posix-functions/mkdirat.texi: Likewise.
40799         * doc/posix-functions/mkfifoat.texi: Likewise.
40800         * doc/posix-functions/mknodat.texi: Likewise.
40801         * doc/posix-functions/mq_close.texi: Likewise.
40802         * doc/posix-functions/mq_getattr.texi: Likewise.
40803         * doc/posix-functions/mq_notify.texi: Likewise.
40804         * doc/posix-functions/mq_open.texi: Likewise.
40805         * doc/posix-functions/mq_receive.texi: Likewise.
40806         * doc/posix-functions/mq_send.texi: Likewise.
40807         * doc/posix-functions/mq_setattr.texi: Likewise.
40808         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40809         * doc/posix-functions/mq_timedsend.texi: Likewise.
40810         * doc/posix-functions/mq_unlink.texi: Likewise.
40811         * doc/posix-functions/open_memstream.texi: Likewise.
40812         * doc/posix-functions/openat.texi: Likewise.
40813         * doc/posix-functions/posix_fadvise.texi: Likewise.
40814         * doc/posix-functions/posix_fallocate.texi: Likewise.
40815         * doc/posix-functions/posix_madvise.texi: Likewise.
40816         * doc/posix-functions/posix_memalign.texi: Likewise.
40817         * doc/posix-functions/posix_openpt.texi: Likewise.
40818         * doc/posix-functions/readlinkat.texi: Likewise.
40819         * doc/posix-functions/remque.texi: Likewise.
40820         * doc/posix-functions/renameat.texi: Likewise.
40821         * doc/posix-functions/rintl.texi: Likewise.
40822         * doc/posix-functions/sem_unlink.texi: Likewise.
40823         * doc/posix-functions/shm_open.texi: Likewise.
40824         * doc/posix-functions/shm_unlink.texi: Likewise.
40825         * doc/posix-functions/signgam.texi: Likewise.
40826         * doc/posix-functions/sigset.texi: Likewise.
40827         * doc/posix-functions/stpcpy.texi: Likewise.
40828         * doc/posix-functions/stpncpy.texi: Likewise.
40829         * doc/posix-functions/strerror.texi: Likewise.
40830         * doc/posix-functions/strtod.texi: Likewise.
40831         * doc/posix-functions/symlinkat.texi: Likewise.
40832         * doc/posix-functions/unlinkat.texi: Likewise.
40833         * doc/posix-functions/utimensat.texi: Likewise.
40834         * doc/glibc-functions/bindresvport.texi: Likewise.
40835         * doc/glibc-functions/dn_expand.texi: Likewise.
40836         * doc/glibc-functions/exp10.texi: Likewise.
40837         * doc/glibc-functions/exp10f.texi: Likewise.
40838         * doc/glibc-functions/fgetxattr.texi: Likewise.
40839         * doc/glibc-functions/flistxattr.texi: Likewise.
40840         * doc/glibc-functions/fopencookie.texi: Likewise.
40841         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40842         * doc/glibc-functions/fremovexattr.texi: Likewise.
40843         * doc/glibc-functions/fsetxattr.texi: Likewise.
40844         * doc/glibc-functions/getifaddrs.texi: Likewise.
40845         * doc/glibc-functions/getxattr.texi: Likewise.
40846         * doc/glibc-functions/lgetxattr.texi: Likewise.
40847         * doc/glibc-functions/listxattr.texi: Likewise.
40848         * doc/glibc-functions/llistxattr.texi: Likewise.
40849         * doc/glibc-functions/lremovexattr.texi: Likewise.
40850         * doc/glibc-functions/lsetxattr.texi: Likewise.
40851         * doc/glibc-functions/pow10.texi: Likewise.
40852         * doc/glibc-functions/pow10f.texi: Likewise.
40853         * doc/glibc-functions/rcmd_af.texi: Likewise.
40854         * doc/glibc-functions/removexattr.texi: Likewise.
40855         * doc/glibc-functions/res_init.texi: Likewise.
40856         * doc/glibc-functions/res_mkquery.texi: Likewise.
40857         * doc/glibc-functions/res_query.texi: Likewise.
40858         * doc/glibc-functions/res_querydomain.texi: Likewise.
40859         * doc/glibc-functions/res_send.texi: Likewise.
40860         * doc/glibc-functions/rresvport_af.texi: Likewise.
40861         * doc/glibc-functions/setxattr.texi: Likewise.
40862         * doc/glibc-functions/strcasestr.texi: Likewise.
40863
40864 2008-12-15  Bruno Haible  <bruno@clisp.org>
40865
40866         Fix compilation error on OSF/1 4.0.
40867         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40868         <sys/time.h>, simply delegate to the system header.
40869         Reported by Daniel Richard G. <oss@teragram.com>.
40870
40871 2008-12-15  Bruno Haible  <bruno@clisp.org>
40872
40873         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40874         * doc/posix-functions/fchmodat.texi: Likewise.
40875         * doc/posix-functions/fchownat.texi: Likewise.
40876         * doc/posix-functions/fdopendir.texi: Likewise.
40877         * doc/posix-functions/fstatat.texi: Likewise.
40878         * doc/posix-functions/mkdirat.texi: Likewise.
40879         * doc/posix-functions/unlinkat.texi: Likewise.
40880
40881 2008-12-14  Bruno Haible  <bruno@clisp.org>
40882
40883         Update doc for POSIX:2008.
40884         * doc/posix-functions/faccessat.texi: New file.
40885         * doc/posix-functions/fchmodat.texi: New file.
40886         * doc/posix-functions/fchownat.texi: New file.
40887         * doc/posix-functions/fdopendir.texi: New file.
40888         * doc/posix-functions/fstatat.texi: New file.
40889         * doc/posix-functions/futimens.texi: New file.
40890         * doc/posix-functions/linkat.texi: New file.
40891         * doc/posix-functions/mkdirat.texi: New file.
40892         * doc/posix-functions/mkfifoat.texi: New file.
40893         * doc/posix-functions/mknodat.texi: New file.
40894         * doc/posix-functions/open_wmemstream.texi: New file.
40895         * doc/posix-functions/openat.texi: New file.
40896         * doc/posix-functions/psiginfo.texi: New file.
40897         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40898         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40899         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40900         * doc/posix-functions/readlinkat.texi: New file.
40901         * doc/posix-functions/renameat.texi: New file.
40902         * doc/posix-functions/strerror_l.texi: New file.
40903         * doc/posix-functions/symlinkat.texi: New file.
40904         * doc/posix-functions/unlinkat.texi: New file.
40905         * doc/posix-functions/utimensat.texi: New file.
40906         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40907
40908 2008-12-14  Bruno Haible  <bruno@clisp.org>
40909
40910         Update doc for POSIX:2008.
40911         * doc/posix-functions/alphasort.texi: Renamed from
40912         doc/glibc-functions/alphasort.texi.
40913         * doc/posix-functions/dirfd.texi: Renamed from
40914         doc/glibc-functions/dirfd.texi.
40915         * doc/posix-functions/dprintf.texi: Renamed from
40916         doc/glibc-functions/dprintf.texi.
40917         * doc/posix-functions/duplocale.texi: Renamed from
40918         doc/glibc-functions/duplocale.texi.
40919         * doc/posix-functions/fexecve.texi: Renamed from
40920         doc/glibc-functions/fexecve.texi.
40921         * doc/posix-functions/fmemopen.texi: Renamed from
40922         doc/glibc-functions/fmemopen.texi.
40923         * doc/posix-functions/freelocale.texi: Renamed from
40924         doc/glibc-functions/freelocale.texi.
40925         * doc/posix-functions/getdate_err.texi: Renamed from
40926         doc/glibc-functions/getdate_err.texi.
40927         * doc/posix-functions/isalnum_l.texi: Renamed from
40928         doc/glibc-functions/isalnum_l.texi.
40929         * doc/posix-functions/isalpha_l.texi: Renamed from
40930         doc/glibc-functions/isalpha_l.texi.
40931         * doc/posix-functions/isblank_l.texi: Renamed from
40932         doc/glibc-functions/isblank_l.texi.
40933         * doc/posix-functions/iscntrl_l.texi: Renamed from
40934         doc/glibc-functions/iscntrl_l.texi.
40935         * doc/posix-functions/isdigit_l.texi: Renamed from
40936         doc/glibc-functions/isdigit_l.texi.
40937         * doc/posix-functions/isgraph_l.texi: Renamed from
40938         doc/glibc-functions/isgraph_l.texi.
40939         * doc/posix-functions/islower_l.texi: Renamed from
40940         doc/glibc-functions/islower_l.texi.
40941         * doc/posix-functions/isprint_l.texi: Renamed from
40942         doc/glibc-functions/isprint_l.texi.
40943         * doc/posix-functions/ispunct_l.texi: Renamed from
40944         doc/glibc-functions/ispunct_l.texi.
40945         * doc/posix-functions/isspace_l.texi: Renamed from
40946         doc/glibc-functions/isspace_l.texi.
40947         * doc/posix-functions/isupper_l.texi: Renamed from
40948         doc/glibc-functions/isupper_l.texi.
40949         * doc/posix-functions/iswalnum_l.texi: Renamed from
40950         doc/glibc-functions/iswalnum_l.texi.
40951         * doc/posix-functions/iswalpha_l.texi: Renamed from
40952         doc/glibc-functions/iswalpha_l.texi.
40953         * doc/posix-functions/iswblank_l.texi: Renamed from
40954         doc/glibc-functions/iswblank_l.texi.
40955         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40956         doc/glibc-functions/iswcntrl_l.texi.
40957         * doc/posix-functions/iswctype_l.texi: Renamed from
40958         doc/glibc-functions/iswctype_l.texi.
40959         * doc/posix-functions/iswdigit_l.texi: Renamed from
40960         doc/glibc-functions/iswdigit_l.texi.
40961         * doc/posix-functions/iswgraph_l.texi: Renamed from
40962         doc/glibc-functions/iswgraph_l.texi.
40963         * doc/posix-functions/iswlower_l.texi: Renamed from
40964         doc/glibc-functions/iswlower_l.texi.
40965         * doc/posix-functions/iswprint_l.texi: Renamed from
40966         doc/glibc-functions/iswprint_l.texi.
40967         * doc/posix-functions/iswpunct_l.texi: Renamed from
40968         doc/glibc-functions/iswpunct_l.texi.
40969         * doc/posix-functions/iswspace_l.texi: Renamed from
40970         doc/glibc-functions/iswspace_l.texi.
40971         * doc/posix-functions/iswupper_l.texi: Renamed from
40972         doc/glibc-functions/iswupper_l.texi.
40973         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40974         doc/glibc-functions/iswxdigit_l.texi.
40975         * doc/posix-functions/isxdigit_l.texi: Renamed from
40976         doc/glibc-functions/isxdigit_l.texi.
40977         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40978         doc/glibc-functions/mbsnrtowcs.texi.
40979         * doc/posix-functions/mkdtemp.texi: Renamed from
40980         doc/glibc-functions/mkdtemp.texi.
40981         * doc/posix-functions/newlocale.texi: Renamed from
40982         doc/glibc-functions/newlocale.texi.
40983         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40984         doc/glibc-functions/nl_langinfo_l.texi.
40985         * doc/posix-functions/open_memstream.texi: Renamed from
40986         doc/glibc-functions/open_memstream.texi.
40987         * doc/posix-functions/opterr.texi: Renamed from
40988         doc/glibc-functions/opterr.texi.
40989         * doc/posix-functions/optind.texi: Renamed from
40990         doc/glibc-functions/optind.texi.
40991         * doc/posix-functions/optopt.texi: Renamed from
40992         doc/glibc-functions/optopt.texi.
40993         * doc/posix-functions/psignal.texi: Renamed from
40994         doc/glibc-functions/psignal.texi.
40995         * doc/posix-functions/scandir.texi: Renamed from
40996         doc/glibc-functions/scandir.texi.
40997         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40998         doc/glibc-functions/sched_get_priority_min.texi.
40999         * doc/posix-functions/signgam.texi: Renamed from
41000         doc/glibc-functions/signgam.texi.
41001         * doc/posix-functions/stpcpy.texi: Renamed from
41002         doc/glibc-functions/stpcpy.texi.
41003         * doc/posix-functions/stpncpy.texi: Renamed from
41004         doc/glibc-functions/stpncpy.texi.
41005         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41006         doc/glibc-functions/strcasecmp_l.texi.
41007         * doc/posix-functions/strcoll_l.texi: Renamed from
41008         doc/glibc-functions/strcoll_l.texi.
41009         * doc/posix-functions/strfmon_l.texi: Renamed from
41010         doc/glibc-functions/strfmon_l.texi.
41011         * doc/posix-functions/strftime_l.texi: Renamed from
41012         doc/glibc-functions/strftime_l.texi.
41013         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41014         doc/glibc-functions/strncasecmp_l.texi.
41015         * doc/posix-functions/strndup.texi: Renamed from
41016         doc/glibc-functions/strndup.texi.
41017         * doc/posix-functions/strnlen.texi: Renamed from
41018         doc/glibc-functions/strnlen.texi.
41019         * doc/posix-functions/strsignal.texi: Renamed from
41020         doc/glibc-functions/strsignal.texi.
41021         * doc/posix-functions/strxfrm_l.texi: Renamed from
41022         doc/glibc-functions/strxfrm_l.texi.
41023         * doc/posix-functions/timer_gettime.texi: Renamed from
41024         doc/glibc-functions/timer_gettime.texi.
41025         * doc/posix-functions/tolower_l.texi: Renamed from
41026         doc/glibc-functions/tolower_l.texi.
41027         * doc/posix-functions/toupper_l.texi: Renamed from
41028         doc/glibc-functions/toupper_l.texi.
41029         * doc/posix-functions/towctrans_l.texi: Renamed from
41030         doc/glibc-functions/towctrans_l.texi.
41031         * doc/posix-functions/towlower_l.texi: Renamed from
41032         doc/glibc-functions/towlower_l.texi.
41033         * doc/posix-functions/towupper_l.texi: Renamed from
41034         doc/glibc-functions/towupper_l.texi.
41035         * doc/posix-functions/uselocale.texi: Renamed from
41036         doc/glibc-functions/uselocale.texi.
41037         * doc/posix-functions/vdprintf.texi: Renamed from
41038         doc/glibc-functions/vdprintf.texi.
41039         * doc/posix-functions/wcpcpy.texi:
41040         Renamed from doc/glibc-functions/wcpcpy.texi.
41041         * doc/posix-functions/wcpncpy.texi: Renamed from
41042         doc/glibc-functions/wcpncpy.texi.
41043         * doc/posix-functions/wcscasecmp.texi: Renamed from
41044         doc/glibc-functions/wcscasecmp.texi.
41045         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41046         doc/glibc-functions/wcscasecmp_l.texi.
41047         * doc/posix-functions/wcscoll_l.texi: Renamed from
41048         doc/glibc-functions/wcscoll_l.texi.
41049         * doc/posix-functions/wcsdup.texi: Renamed from
41050         doc/glibc-functions/wcsdup.texi.
41051         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41052         doc/glibc-functions/wcsncasecmp.texi.
41053         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41054         doc/glibc-functions/wcsncasecmp_l.texi.
41055         * doc/posix-functions/wcsnlen.texi: Renamed from
41056         doc/glibc-functions/wcsnlen.texi.
41057         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41058         doc/glibc-functions/wcsnrtombs.texi.
41059         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41060         doc/glibc-functions/wcsxfrm_l.texi.
41061         * doc/posix-functions/wctrans_l.texi: Renamed from
41062         doc/glibc-functions/wctrans_l.texi.
41063         * doc/posix-functions/wctype_l.texi: Renamed from
41064         doc/glibc-functions/wctype_l.texi.
41065         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41066         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41067         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41068         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41069         these subsections.
41070         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41071         Remove sections.
41072
41073 2008-12-14  Bruno Haible  <bruno@clisp.org>
41074
41075         Update doc for POSIX:2008.
41076         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41077
41078 2008-12-14  Bruno Haible  <bruno@clisp.org>
41079
41080         Update doc for POSIX:2008.
41081         * doc/pastposix-functions/bcmp.texi: Renamed from
41082         doc/posix-functions/bcmp.texi.
41083         * doc/pastposix-functions/bcopy.texi: Renamed from
41084         doc/posix-functions/bcopy.texi.
41085         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41086         doc/posix-functions/bsd_signal.texi.
41087         * doc/pastposix-functions/bzero.texi: Renamed from
41088         doc/posix-functions/bzero.texi.
41089         * doc/pastposix-functions/ecvt.texi: Renamed from
41090         doc/posix-functions/ecvt.texi.
41091         * doc/pastposix-functions/fcvt.texi: Renamed from
41092         doc/posix-functions/fcvt.texi.
41093         * doc/pastposix-functions/ftime.texi: Renamed from
41094         doc/posix-functions/ftime.texi.
41095         * doc/pastposix-functions/gcvt.texi: Renamed from
41096         doc/posix-functions/gcvt.texi.
41097         * doc/pastposix-functions/getcontext.texi: Renamed from
41098         doc/posix-functions/getcontext.texi.
41099         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41100         doc/posix-functions/gethostbyaddr.texi.
41101         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41102         doc/posix-functions/gethostbyname.texi.
41103         * doc/pastposix-functions/getwd.texi: Renamed from
41104         doc/posix-functions/getwd.texi.
41105         * doc/pastposix-functions/h_errno.texi: Renamed from
41106         doc/posix-functions/h_errno.texi.
41107         * doc/pastposix-functions/index.texi: Renamed from
41108         doc/posix-functions/index.texi.
41109         * doc/pastposix-functions/makecontext.texi: Renamed from
41110         doc/posix-functions/makecontext.texi.
41111         * doc/pastposix-functions/mktemp.texi: Renamed from
41112         doc/posix-functions/mktemp.texi.
41113         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41114         doc/posix-functions/pthread_attr_getstackaddr.texi.
41115         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41116         doc/posix-functions/pthread_attr_setstackaddr.texi.
41117         * doc/pastposix-functions/rindex.texi: Renamed from
41118         doc/posix-functions/rindex.texi.
41119         * doc/pastposix-functions/scalb.texi: Renamed from
41120         doc/posix-functions/scalb.texi.
41121         * doc/pastposix-functions/setcontext.texi: Renamed from
41122         doc/posix-functions/setcontext.texi.
41123         * doc/pastposix-functions/swapcontext.texi: Renamed from
41124         doc/posix-functions/swapcontext.texi.
41125         * doc/pastposix-functions/ualarm.texi: Renamed from
41126         doc/posix-functions/ualarm.texi.
41127         * doc/pastposix-functions/usleep.texi: Renamed from
41128         doc/posix-functions/usleep.texi.
41129         * doc/pastposix-functions/vfork.texi: Renamed from
41130         doc/posix-functions/vfork.texi.
41131         * doc/pastposix-functions/wcswcs.texi: Renamed from
41132         doc/posix-functions/wcswcs.texi.
41133         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41134         (Function Substitutes): Update.
41135
41136 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41137
41138         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41139         m4/strerror.m4.
41140
41141 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41142             Bruno Haible  <bruno@clisp.org>
41143
41144         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41145
41146 2008-12-13  Bruno Haible  <bruno@clisp.org>
41147
41148         * modules/strtoull (Depends-on): Remove unistd.
41149
41150 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41151
41152         * modules/strtoull (Depends-on): Add stdlib.
41153
41154 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41155
41156         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41157
41158 2008-12-10  Jim Meyering  <meyering@redhat.com>
41159
41160         gl_ASSERT: don't say assertions are disabled when they're not
41161         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41162         "checking whether to enable assertions... no", when they are in
41163         fact enabled.  This is solely a bug in the output of configure.
41164         In spite of saying "no", NDEBUG was not defined in that case.
41165         Also, as noted by Eric Blake, leave assertions enabled upon
41166         --enable-assert=INVALID.
41167
41168 2008-12-10  Bruno Haible  <bruno@clisp.org>
41169
41170         Change MODULES.html to refer to POSIX:2008 where possible.
41171         * MODULES.html.sh (POSIX2008_URL): New variable.
41172         (posix_headers): Remove sys/timeb, ucontext.
41173         (posix2001_headers): New variable.
41174         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41175         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41176         index, makecontext, mktemp, pthread_attr_getstackaddr,
41177         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41178         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41179         (posix2001_functions): New variable.
41180         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41181         otherwise.
41182
41183 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41184
41185         add missing include to parse-duration.c
41186         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41187         * modules/parse-duration (Depends-on): Add xalloc.
41188
41189         fix sed script reading maint.mk
41190         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41191         (syntax-check-rules): Use it.
41192
41193 2008-12-09  Bruno Haible  <bruno@clisp.org>
41194
41195         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41196         MacOS X 10.4/PowerPC.
41197         Reported by Simon Josefsson.
41198
41199 2008-12-08  Jim Meyering  <meyering@redhat.com>
41200
41201         work around mingw's lack of some S_IF definitions
41202         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41203         Reported by Simon Josefsson.
41204
41205 2008-12-08  Bruno Haible  <bruno@clisp.org>
41206
41207         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41208         applied to variables. Needed on MacOS X 10.4/PowerPC.
41209         Reported by Simon Josefsson.
41210
41211 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41212         and Eric Blake  <ebb9@byu.net>
41213
41214         assert: honor --enable-assert
41215         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41216         order to honor --enable-assert, rather than treating it as a
41217         synonym for --disable-assert.
41218
41219 2008-12-08  Jim Meyering  <meyering@redhat.com>
41220
41221         * lib/posixtm.c: Remove now-useless declaration of mktime.
41222
41223         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41224
41225 2008-12-07  Bruno Haible  <bruno@clisp.org>
41226
41227         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41228         test_once): Mark functions as static.
41229         * tests/test-tls.c (test_tls): Likewise.
41230
41231 2008-12-07  Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41234         iconv_register_autodetect.
41235
41236 2008-12-07  Jim Meyering  <meyering@redhat.com>
41237
41238         posixtm.c: avoid a warning
41239         * lib/posixtm.c (posixtime): Don't initialize tm0.
41240         It's no longer needed to placate gcc4's -Wuninitialized,
41241         and the attempt to placate would elicit a new warning.
41242
41243         unicodeio.c: mark unused parameters
41244         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41245         (fallback_failure_callback): Likewise.
41246
41247 2008-12-07  Bruno Haible  <bruno@clisp.org>
41248
41249         * gnulib-tool (func_create_testdir): When building the tests
41250         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41251         Reported by Simon Josefsson.
41252
41253 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41254
41255         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41256
41257 2008-12-06  Bruno Haible  <bruno@clisp.org>
41258
41259         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41260         Suggested by Eric Blake.
41261
41262 2008-12-06  Bruno Haible  <bruno@clisp.org>
41263
41264         Fix a c-stack test failure on MacOS X.
41265         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41266         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41267         handler for SIGBUS as well.
41268         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41269         install a signal handler for SIGBUS as well.
41270         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41271
41272 2008-12-06  Bruno Haible  <bruno@clisp.org>
41273
41274         Advocacy documentation.
41275         * doc/gnulib-intro.texi (Benefits): New section.
41276         * doc/gnulib.texi: Update.
41277
41278 2008-12-06  Bruno Haible  <bruno@clisp.org>
41279
41280         Document the 'manywarnings' module.
41281         * doc/manywarnings.texi: New file.
41282         * doc/gnulib.texi: Include it.
41283
41284 2008-12-05  Eric Blake  <ebb9@byu.net>
41285
41286         tests: silence some gcc warnings
41287         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41288         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41289         type mismatches.
41290
41291 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41292             Bruno Haible  <bruno@clisp.org>
41293
41294         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41295
41296 2008-11-29  Jim Meyering  <meyering@redhat.com>
41297
41298         unicodeio.c: mark unused parameters
41299         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41300         (fallback_failure_callback): Likewise.
41301
41302         fts: fix a thinko
41303         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41304         (set_stat_type): Return S_IF*-valued "type" directly.
41305         Prompted by James Youngman's spotting a related bug.
41306         Confirmed by further testing through find.
41307
41308         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41309         * lib/fts.c (D_TYPE): Define.
41310         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41311         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41312         (s_ifmt_shift_bits): New function.
41313         (set_stat_type): New function.
41314         (fts_build): When not calling fts_stat, call set_stat_type
41315         to propagate dirent.d_type info to fts_read caller.
41316         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41317         fts_statp->st_mode type information may be valid.
41318
41319 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41320
41321         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41322         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41323         <sds@gnu.org>.
41324
41325 2008-11-20  Bruno Haible  <bruno@clisp.org>
41326
41327         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41328         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41329         INCLUDE_NEXT.
41330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41331         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41332         * modules/math (Makefile.am): Substitute
41333         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41334         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41335
41336 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41337             Bruno Haible  <bruno@clisp.org>
41338
41339         * lib/stdint.in.h: Define all type macros so that their expansion is
41340         a single typedef'ed token. Fixes a compilation failure in Boost which
41341         does "using ::int8_t;".
41342
41343 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41344
41345         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41346         gl_MANYWARN_ALL_GCC.
41347         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41348         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41349         * modules/manywarnings: New file.
41350         * MODULES.html.sh: Mention manywarnings module.
41351
41352 2008-11-18  Bruno Haible  <bruno@clisp.org>
41353
41354         * doc/gnulib-tool.texi (Unit tests): New section.
41355
41356 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41357
41358         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41359         paths like 'lib/po/foo.po'.
41360
41361 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41362
41363         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41364         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41365
41366 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41367
41368         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41369         parameter works.
41370
41371 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41372
41373         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41374
41375 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41376
41377         * modules/parse-duration-tests: New file.
41378         * tests/test-parse-duration.sh: New file.
41379         * tests/test-parse-duration.c: New file.
41380
41381         New module 'parse-duration'.
41382         * lib/parse-duration.h: New file.
41383         * lib/parse-duration.c: New file.
41384         * modules/parse-duration: New file.
41385
41386 2008-11-17  Bruno Haible  <bruno@clisp.org>
41387
41388         * tests/test-select-out.sh: Comment out the first pipe test.
41389         Reported by Simon Josefsson.
41390
41391 2008-11-17  Bruno Haible  <bruno@clisp.org>
41392
41393         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41394         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41395         gl_HOSTENT.
41396
41397 2008-11-17  Bruno Haible  <bruno@clisp.org>
41398
41399         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41400         -lnetwork and -lnet. Needed for Haiku and BeOS.
41401
41402 2008-11-16  Bruno Haible  <bruno@clisp.org>
41403
41404         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41405
41406 2008-11-16  Bruno Haible  <bruno@clisp.org>
41407
41408         Avoid test failure on Haiku.
41409         * tests/test-fsync.c: Include <errno.h>.
41410         (main): Don't require that fsync (0) fails.
41411
41412 2008-11-15  Bruno Haible  <bruno@clisp.org>
41413
41414         New module 'hostent'.
41415         * modules/hostent: New file.
41416         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41417
41418 2008-11-15  Bruno Haible  <bruno@clisp.org>
41419
41420         New module 'servent'.
41421         * modules/servent: New file.
41422         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41423
41424 2008-11-15  Bruno Haible  <bruno@clisp.org>
41425
41426         Avoid generating same test program with two different rules.
41427         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41428         test-frexp to test-frexp-nolibm.
41429         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41430         test-frexpl to test-frexpl-nolibm.
41431
41432 2008-11-15  Bruno Haible  <bruno@clisp.org>
41433
41434         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41435         $(FREXPL_LIBM).
41436
41437 2008-11-15  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/netdb.in.h: Activate the definitions also when the system's
41440         <netdb.h> has 'struct addrinfo'.
41441         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41442         EAI_OVERFLOW or AI_NUMERICSERV.
41443         * doc/posix-headers/netdb.texi: Document the problem.
41444
41445 2008-11-15  Bruno Haible  <bruno@clisp.org>
41446
41447         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41448
41449         Make the 'sched' module work on platforms where <sched.h> exists but
41450         is incomplete (such as Haiku).
41451         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41452         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41453         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41454         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41455         HAVE_STRUCT_SCHED_PARAM.
41456         * modules/sched (Depends-on): Add include_next.
41457         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41458         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41459         * doc/posix-headers/sched.texi: Document the issue.
41460
41461 2008-11-13  Jim Meyering  <meyering@redhat.com>
41462
41463         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41464         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41465         test would fail due to the difference in the Report bugs to ...
41466         line.  The expected address is empty, "<>", while the actual
41467         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41468
41469 2008-11-12  Bruno Haible  <bruno@clisp.org>
41470
41471         lstat: don't compile lstat.c on systems lacking lstat
41472         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41473         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41474         Reported by Daniel P. Berrange via Jim Meyering.
41475
41476 2008-11-12  Jim Meyering  <meyering@redhat.com>
41477
41478         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41479
41480 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41481
41482         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41483         instead.
41484
41485 2008-11-12  Bruno Haible  <bruno@clisp.org>
41486
41487         * lib/unicodeio.c: Include unistr.h.
41488         (utf8_wctomb): Remove function.
41489         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41490
41491 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41492
41493         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41494         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41495         <bruno@clisp.org>.
41496         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41497
41498 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41499
41500         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41501         * doc/gnulib.texi: Add section for warnings.
41502
41503 2008-11-11  Bruno Haible  <bruno@clisp.org>
41504
41505         * lib/sockets.h: Add a comment.
41506
41507 2008-11-11  Karl Berry  <karl@gnu.org>
41508
41509         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41510
41511 2008-11-11  Eric Blake  <ebb9@byu.net>
41512
41513         fdl.texi: avoid git symlinks
41514         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41515
41516 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41517
41518         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41519
41520 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41521
41522         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41523         (gl_WARN_ADD): Substitute $2 if literal.
41524
41525 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41526
41527         * m4/warning.m4: Remove.
41528
41529 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41530
41531         * m4/warnings.m4: Almost complete rewrite. :-)
41532
41533 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41534
41535         * modules/warnings: New module.
41536         * m4/warnings.m4: New file.
41537         * MODULES.html.sh: Mention warnings module.
41538         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41539         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41540
41541 2008-11-10  Eric Blake  <ebb9@byu.net>
41542
41543         fdl.texi: make a symlink to the latest version
41544         * doc/standards.texi: Revert today's earlier change.
41545         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41546         * doc/fdl.texi: ...and replace this with a symlink to the newer
41547         fdl-1.3.texi.
41548
41549 2008-11-10  Bruno Haible  <bruno@clisp.org>
41550
41551         * tests/test-select-fd.c (main): Accept the result file name as fourth
41552         argument.
41553         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41554         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41555
41556 2008-11-10  Bruno Haible  <bruno@clisp.org>
41557
41558         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41559         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41560         as autoconf-substituted macros.
41561         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41563         gl_NETDB_H_DEFAULTS. Set these variables.
41564         * modules/netdb (Makefile.am): Substitute these variables.
41565
41566 2008-11-10  Eric Blake  <ebb9@byu.net>
41567
41568         standards.texi: include correct file for FDL 1.3
41569         * doc/standards.texi (GNU Free Documentation License): Change
41570         include file to pull in FDL 1.3, not 1.2.
41571
41572         fdl.texi: revert accidental change to license
41573         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41574
41575 2008-11-10  Bruno Haible  <bruno@clisp.org>
41576
41577         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41578         cross-compiling guesses also when the native compile gives no result.
41579
41580 2008-11-10  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/spawni.c (__spawni): Force variable into the stack.
41583
41584 2008-11-10  Bruno Haible  <bruno@clisp.org>
41585
41586         Add support for Haiku.
41587         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41588         glibc and BeOS, but also on Haiku.
41589         * lib/fpurge.c (fpurge): Likewise.
41590         * lib/freadable.c (freadable): Likewise.
41591         * lib/freadahead.c (freadahead): Likewise.
41592         * lib/freading.c (freading): Likewise.
41593         * lib/freadptr.c (freadptr): Likewise.
41594         * lib/freadseek.c (freadptrinc): Likewise.
41595         * lib/fseeko.c (rpl_fseeko): Likewise.
41596         * lib/fseterr.c (fseterr): Likewise.
41597         * lib/fwritable.c (fwritable): Likewise.
41598         * lib/fwriting.c (fwriting): Likewise.
41599         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41600
41601 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41602
41603         * lib/config.charset: Treat Haiku like BeOS.
41604
41605 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41606
41607         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41608         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41609
41610 2008-11-08  Bruno Haible  <bruno@clisp.org>
41611
41612         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41613         AC_CACHE_CHECK.
41614
41615 2008-11-08  Bruno Haible  <bruno@clisp.org>
41616
41617         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41618
41619 2008-11-08  Bruno Haible  <bruno@clisp.org>
41620
41621         * tests/test-select-fd.c: New file.
41622         * tests/test-select-in.sh: New file.
41623         * tests/test-select-out.sh: New file.
41624         * tests/test-select-stdin.c: New file.
41625         * modules/select-tests (Files): Add the new files.
41626         (Depends-on): Add gettimeofday.
41627         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41628         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41629         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41630
41631 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41632             Bruno Haible  <bruno@clisp.org>
41633
41634         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41635
41636 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41637
41638         * build-aux/pmccabe2html: Added support for C++ source files.
41639
41640 2008-11-05  Ben Pfaff  <blp@gnu.org>
41641
41642         Fix lib/close.c build on Windows.
41643         * modules/close (Files): Add lib/w32sock.h.
41644
41645 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41646
41647         Accept Bison's NEWS format.
41648         * build-aux/announce-gen (print_news_deltas): Tweak
41649         $re_prefix.
41650
41651 2008-11-04  Bruno Haible  <bruno@clisp.org>
41652
41653         * modules/random_r (Maintainer): Add glibc.
41654
41655 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41656
41657         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41658         by karl@freefriends.org (Karl Berry).
41659         * doc/alloca.texi: Likewise.
41660         * doc/c-ctype.texi: Likewise.
41661         * doc/c-strcase.texi: Likewise.
41662         * doc/c-strcaseeq.texi: Likewise.
41663         * doc/c-strcasestr.texi: Likewise.
41664         * doc/c-strstr.texi: Likewise.
41665         * doc/c-strtod.texi: Likewise.
41666         * doc/c-strtold.texi: Likewise.
41667         * doc/ctime.texi: Likewise.
41668         * doc/error.texi: Likewise.
41669         * doc/fdl.texi: Likewise.
41670         * doc/gcd.texi: Likewise.
41671         * doc/getdate.texi: Likewise.
41672         * doc/gnulib-intro.texi: Likewise.
41673         * doc/gnulib-tool.texi: Likewise.
41674         * doc/gnulib.texi: Likewise.
41675         * doc/inet_ntoa.texi: Likewise.
41676         * doc/maintain.texi: Likewise.
41677         * doc/make-stds.texi: Likewise.
41678         * doc/quote.texi: Likewise.
41679         * doc/regexprops-generic.texi: Likewise.
41680         * doc/standards.texi: Likewise.
41681         * doc/verify.texi: Likewise.
41682         * doc/visibility.texi: Likewise.
41683         * doc/gnulib.texi (GNU Free Documentation License): Include
41684         fdl-1.3.texi instead of fdl.texi.
41685
41686 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41687
41688         * doc/fdl-1.3.texi: New file, from
41689         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41690         * modules/fdl-1.3: Add.
41691         * MODULES.html.sh: Add fdl-1.3.
41692
41693 2008-11-03  Bruno Haible  <bruno@clisp.org>
41694
41695         Make determination of absolute name of header file work with AIX xlc.
41696         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41697         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41698         preprocessing.
41699         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41700         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41701
41702 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41703
41704         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41705         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41706         <ludo@gnu.org>.
41707
41708 2008-11-02  Bruno Haible  <bruno@clisp.org>
41709
41710         Mark 'strpbrk' obsolete.
41711         * modules/strpbrk (Status, Notice): New sections.
41712         * modules/strtok_r (Depends-on): Add strpbrk.
41713
41714 2008-11-02  Bruno Haible  <bruno@clisp.org>
41715
41716         Mark 'strdup' obsolete.
41717         * modules/strdup (Status, Notice): New sections.
41718         * modules/findprog (Depends-on): Add strdup.
41719         * modules/getaddrinfo (Depends-on): Likewise.
41720         * modules/localename (Depends-on): Likewise.
41721         * modules/relocatable-lib (Depends-on): Likewise.
41722         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41723         * modules/relocatable-prog (Depends-on): Likewise.
41724         * modules/trim (Depends-on): Likewise.
41725         * modules/unictype/gen-ctype (Depends-on): Likewise.
41726         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41727
41728 2008-11-02  Bruno Haible  <bruno@clisp.org>
41729
41730         Mark 'strcspn' obsolete.
41731         * modules/strcspn (Status, Notice): New sections.
41732
41733 2008-11-02  Bruno Haible  <bruno@clisp.org>
41734
41735         Mark 'rmdir' obsolete.
41736         * modules/rmdir (Status, Notice): New sections.
41737         * modules/clean-temp (Depends-on): Add rmdir.
41738         * modules/openat (Depends-on): Likewise.
41739
41740 2008-11-02  Bruno Haible  <bruno@clisp.org>
41741
41742         Mark 'raise' obsolete.
41743         * modules/raise (Status, Notice): New sections.
41744         (Include): Specify <signal.h>.
41745         * modules/stdio (Depends-on): Add raise.
41746         * modules/write (Depends-on): Likewise.
41747
41748 2008-11-02  Bruno Haible  <bruno@clisp.org>
41749
41750         Mark 'memset' obsolete.
41751         * modules/memset (Status, Notice): New sections.
41752
41753 2008-11-02  Bruno Haible  <bruno@clisp.org>
41754
41755         Mark 'memmove' obsolete.
41756         * modules/memmove (Status, Notice): New sections.
41757         * modules/argp (Depends-on): Add memmove.
41758         * modules/argz (Depends-on): Likewise.
41759         * modules/canonicalize (Depends-on): Likewise.
41760         * modules/canonicalize-lgpl (Depends-on): Likewise.
41761         * modules/fts (Depends-on): Likewise.
41762         * modules/getcwd (Depends-on): Likewise.
41763         * modules/human (Depends-on): Likewise.
41764         * modules/regex (Depends-on): Likewise.
41765         * modules/striconveh (Depends-on): Likewise.
41766         * modules/trim (Depends-on): Likewise.
41767         * modules/unistr/u8-move (Depends-on): Likewise.
41768         * modules/unistr/u16-move (Depends-on): Likewise.
41769         * modules/unistr/u32-move (Depends-on): Likewise.
41770
41771 2008-11-02  Bruno Haible  <bruno@clisp.org>
41772
41773         Mark 'memcpy' obsolete.
41774         * modules/memcpy (Status, Notice): New sections.
41775
41776 2008-11-02  Bruno Haible  <bruno@clisp.org>
41777
41778         Mark 'memcmp' obsolete.
41779         * modules/memcmp (Status, Notice): New sections.
41780         * modules/argmatch (Depends-on): Add memchr.
41781         * modules/backupfile (Depends-on): Likewise.
41782         * modules/c-strcasestr (Depends-on): Likewise.
41783         * modules/crypto/des (Depends-on): Likewise.
41784         * modules/csharpcomp (Depends-on): Likewise.
41785         * modules/fnmatch (Depends-on): Likewise.
41786         * modules/git-merge-changelog (Depends-on): Likewise.
41787         * modules/isnand (Depends-on): Likewise.
41788         * modules/isnand-nolibm (Depends-on): Likewise.
41789         * modules/isnanf (Depends-on): Likewise.
41790         * modules/isnanf-nolibm (Depends-on): Likewise.
41791         * modules/isnanl (Depends-on): Likewise.
41792         * modules/isnanl-nolibm (Depends-on): Likewise.
41793         * modules/mbchar (Depends-on): Likewise.
41794         * modules/memcoll (Depends-on): Likewise.
41795         * modules/quotearg (Depends-on): Likewise.
41796         * modules/regex (Depends-on): Likewise.
41797         * modules/relocatable-prog (Depends-on): Likewise.
41798         * modules/same (Depends-on): Likewise.
41799         * modules/signbit (Depends-on): Likewise.
41800         * modules/strcasestr-simple (Depends-on): Likewise.
41801         * modules/unictype/gen-ctype (Depends-on): Likewise.
41802         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41803         * modules/uniname/uniname (Depends-on): Likewise.
41804         * modules/unistr/u8-cmp (Depends-on): Likewise.
41805
41806 2008-11-02  Bruno Haible  <bruno@clisp.org>
41807
41808         Mark 'memchr' obsolete.
41809         * modules/memchr (Status, Notice): New sections.
41810         * modules/argp (Depends-on): Add memchr.
41811         * modules/base64 (Depends-on): Likewise.
41812         * modules/c-strcasestr (Depends-on): Likewise.
41813         * modules/chdir-long (Depends-on): Likewise.
41814         * modules/fnmatch (Depends-on): Likewise.
41815         * modules/getsubopt (Depends-on): Likewise.
41816         * modules/git-merge-changelog (Depends-on): Likewise.
41817         * modules/glob (Depends-on): Likewise.
41818         * modules/strcasestr-simple (Depends-on): Likewise.
41819         * modules/strnlen (Depends-on): Likewise.
41820
41821 2008-11-02  Bruno Haible  <bruno@clisp.org>
41822
41823         Mark 'atexit' obsolete.
41824         * modules/atexit (Status, Notice): New sections.
41825         * modules/chdir-long (Depends-on): Add atexit.
41826         * modules/wait-process (Depends-on): Likewise.
41827
41828 2008-11-02  Bruno Haible  <bruno@clisp.org>
41829
41830         * gnulib-tool: New option --with-obsolete.
41831         (func_usage): Document it.
41832         (func_modules_transitive_closure): Drop obsolete dependencies if
41833         incobsolete is not true.
41834         (func_import): Read and save the incobsolete variable to the cache.
41835
41836 2008-11-02  Bruno Haible  <bruno@clisp.org>
41837
41838         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41839         * gnulib-tool: New option --extract-status.
41840         (func_usage): Document it.
41841         (sed_extract_prog): Recognize it.
41842         (func_get_status): New function.
41843
41844 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41845
41846         * modules/sockets (License): Change from LGPL to LGPLv2+.
41847
41848 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41849
41850         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41851
41852 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41853
41854         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41855         Mention times and sys_times.
41856         * modules/sys_times, modules/sys_times-tests: New modules.
41857         * modules/times, modules/times-tests: Likewise
41858         * m4/sys_times_h.m4: New file.
41859         * lib/sys_times.in.h: Likewise
41860         * lib/times.c: Likewise.
41861         * tests/test-sys_times.c: Likewise.
41862         * tests/test-times.c: Likewise.
41863         * doc/posix-headers/sys_times.texi: Update.
41864         * doc/posix-functions/times.texi: Update.
41865
41866 2008-10-28  Jim Meyering  <meyering@redhat.com>
41867
41868         * modules/tempname (Depends-on): Add lstat.
41869
41870         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41871
41872 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41873
41874         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41875         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41876         using idiom used elsewhere in gnulib.
41877
41878 2008-10-27  Jim Meyering  <meyering@redhat.com>
41879
41880         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41881
41882 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41883
41884         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41885         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41886         programs.
41887         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41888
41889 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41890
41891         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41892
41893 2008-10-27  Bruno Haible  <bruno@clisp.org>
41894
41895         * tests/test-lstat.c: Include <stdio.h>.
41896
41897 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41898
41899         * modules/lstat-tests: New module.
41900         * tests/test-lstat.c: New file.
41901
41902 2008-10-26  Jim Meyering  <meyering@redhat.com>
41903
41904         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41905
41906 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41907             Bruno Haible  <bruno@clisp.org>
41908
41909         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41910         * modules/configmake (Include): Add a note that the include must come
41911         after all system headers.
41912         * lib/javaversion.c: Include configmake.h after all other includes.
41913
41914 2008-10-26  Bruno Haible  <bruno@clisp.org>
41915
41916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41917         HAVE_STRUCT_RANDOM_DATA to 1.
41918         (gl_STDLIB_H): Simplify.
41919
41920 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41921
41922         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41923         substitute HAVE_STRUCT_RANDOM_DATA.
41924         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41925         random_data.
41926         * modules/stdlib (Makefile.am): Substitute
41927         HAVE_STRUCT_RANDOM_DATA.
41928
41929 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41930
41931         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41932         * doc/gnulib-intro.texi (Copyright): Likewise.
41933
41934 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41935
41936         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41937         findings.
41938
41939 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41940             Bruno Haible  <bruno@clisp.org>
41941
41942         * lib/unistd.in.h: Include <winsock2.h>.
41943         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41944         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41945         Provide dummy declarations.
41946         (gethostname): Override.
41947         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41948         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41949         gl_PREREQ_SYS_H_WINSOCK2.
41950         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41951         * doc/posix-functions/gethostname.texi: More details.
41952
41953 2008-10-25  Bruno Haible  <bruno@clisp.org>
41954
41955         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41956         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41957         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41958
41959         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41960         here ...
41961         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41962         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41963         gl_UNISTD_H_DEFAULTS.
41964
41965 2008-10-25  Eric Blake  <ebb9@byu.net>
41966
41967         signbit: avoid spurious compiler failure
41968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41969         declarations inside function.
41970
41971 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41972             Bruno Haible  <bruno@clisp.org>
41973
41974         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41975         * modules/random_r (Depends-on): Add stdint.
41976
41977 2008-10-24  Bruno Haible  <bruno@clisp.org>
41978
41979         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41980         Eggert.
41981         * modules/strerror (License): Likewise.
41982
41983 2008-10-24  Jim Meyering  <meyering@redhat.com>
41984
41985         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41986         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41987
41988 2008-10-24  Eric Blake  <ebb9@byu.net>
41989
41990         getgroups: fix compilation when getgroups is available
41991         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41992         but with <config.h> override of getgroups disabled.
41993
41994 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41995
41996         * doc/gnulib.texi (Header files): Add note about C++ problems.
41997         Explained by Bruno Haible <bruno@clisp.org>.
41998
41999 2008-10-23  Bruno Haible  <bruno@clisp.org>
42000
42001         Define a dummy SA_NODEFER macro on Interix.
42002         * lib/signal.in.h (SA_NODEFER): Define fallback.
42003         Reported by Aleksey Cheusov <cheusov@tut.by> via
42004         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42005
42006 2008-10-23  Bruno Haible  <bruno@clisp.org>
42007
42008         * modules/freadahead (License): Change to LGPLv2+.
42009         Suggested by Simon Josefsson.
42010
42011 2008-10-23  Jim Meyering  <meyering@redhat.com>
42012
42013         random_r: new module
42014         * modules/random_r: New file.
42015         * m4/random_r.m4: New file.
42016         * lib/random_r.c: New file, from glibc.
42017         * modules/random_r-tests: New file.
42018         * tests/test-random_r.c: New file.
42019         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42020          Declare.
42021         (RAND_MAX): Define.
42022         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42023         * modules/stdlib: Substitute them, too.
42024         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42025         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42026         * doc/glibc-functions/random_r.texi: Likewise.
42027         * doc/glibc-functions/setstate_r.texi: Likewise.
42028         * doc/glibc-functions/srandom_r.texi: Likewise.
42029         * config/srclist.txt: Mention it.
42030
42031 2008-10-23  David Lutterkort  <lutter@redhat.com>
42032
42033         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42034         link requirement
42035
42036 2008-10-23  Jim Meyering  <meyering@redhat.com>
42037
42038         selinux-h: mark parameters of stub functions as intentionally unused
42039         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42040         * lib/se-context.in.h: Likewise.
42041
42042 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42043
42044         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42045
42046 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42047
42048         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42049
42050 2008-10-22  Eric Blake  <ebb9@byu.net>
42051
42052         glthread/thread: avoid compiler warning
42053         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42054         Add unreachable abort to silence compiler.
42055
42056 2008-10-22  Eric Blake  <ebb9@byu.net>
42057
42058         netdb: also supply struct addrinfo for cygwin 1.5.x
42059         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42060         older cygwin.
42061         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42062         cygwin.
42063         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42064
42065 2008-10-22  Bruno Haible  <bruno@clisp.org>
42066
42067         * users.txt: Update entry about pspp.
42068
42069 2008-10-21  Bruno Haible  <bruno@clisp.org>
42070
42071         Simplification.
42072         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42073         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42074
42075         Simplification.
42076         * lib/ioctl.c (ioctl): Don't undefine.
42077         * lib/socket.c (socket): Don't undefine.
42078
42079         Remove unused module indicator macros.
42080         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42081         GNULIB_$1 as a C macro.
42082
42083         * doc/posix-functions/close.texi: Undo last change.
42084         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42085         Windows platforms.
42086
42087 2008-10-21  Bruno Haible  <bruno@clisp.org>
42088
42089         Add gethostname() declaration to <unistd.h>.
42090         * lib/unistd.in.h (gethostname): New declaration.
42091         * lib/gethostname.c: Include <unistd.h>.
42092         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42093         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42095         and HAVE_GETHOSTNAME.
42096         * modules/gethostname (Depends-on): Add unistd.
42097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42098         (Include): Specify <unistd.h>.
42099         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42100         HAVE_GETHOSTNAME.
42101         * tests/test-gethostname.c: Include <unistd.h> first.
42102
42103 2008-10-21  Bruno Haible  <bruno@clisp.org>
42104
42105         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42106         * modules/select-tests (Depends-on): Likewise.
42107         Reported by Simon Josefsson.
42108
42109 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42110
42111         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42112         * lib/accept.c: New file, based on winsock.c.
42113         * lib/bind.c: New file, based on winsock.c.
42114         * lib/connect.c: New file, based on winsock.c.
42115         * lib/getpeername.c: New file, based on winsock.c.
42116         * lib/getsockname.c: New file, based on winsock.c.
42117         * lib/getsockopt.c: New file, based on winsock.c.
42118         * lib/ioctl.c: New file, based on winsock.c.
42119         * lib/listen.c: New file, based on winsock.c.
42120         * lib/recv.c: New file, based on winsock.c.
42121         * lib/recvfrom.c: New file, based on winsock.c.
42122         * lib/send.c: New file, based on winsock.c.
42123         * lib/sendto.c: New file, based on winsock.c.
42124         * lib/setsockopt.c: New file, based on winsock.c.
42125         * lib/shutdown.c: New file, based on winsock.c.
42126         * lib/socket.c: New file, based on winsock.c.
42127         * lib/w32sock.h: New file, based on winsock.c.
42128         * lib/winsock.c: Remove file.
42129         * modules/accept: Likewise.
42130         * modules/bind: Likewise.
42131         * modules/connect: Likewise.
42132         * modules/getpeername: Likewise.
42133         * modules/getsockname: Likewise.
42134         * modules/getsockopt: Likewise.
42135         * modules/ioctl: Likewise.
42136         * modules/listen: Likewise.
42137         * modules/recv: Likewise.
42138         * modules/recvfrom: Likewise.
42139         * modules/send: Likewise.
42140         * modules/sendto: Likewise.
42141         * modules/setsockopt: Likewise.
42142         * modules/shutdown: Likewise.
42143         * modules/socket: Use socket.c instead of winsock.c.
42144         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42145         * doc/posix-functions/accept.texi: Doc fix.
42146         * doc/posix-functions/bind.texi: Doc fix.
42147         * doc/posix-functions/close.texi: Doc fix.
42148         * doc/posix-functions/connect.texi: Doc fix.
42149         * doc/posix-functions/getpeername.texi: Doc fix.
42150         * doc/posix-functions/getsockname.texi: Doc fix.
42151         * doc/posix-functions/getsockopt.texi: Doc fix.
42152         * doc/posix-functions/ioctl.texi: Doc fix.
42153         * doc/posix-functions/listen.texi: Doc fix.
42154         * doc/posix-functions/recv.texi: Doc fix.
42155         * doc/posix-functions/recvfrom.texi: Doc fix.
42156         * doc/posix-functions/send.texi: Doc fix.
42157         * doc/posix-functions/sendto.texi: Doc fix.
42158         * doc/posix-functions/setsockopt.texi: Doc fix.
42159         * doc/posix-functions/shutdown.texi: Doc fix.
42160         * doc/posix-functions/socket.texi: Doc fix.
42161
42162 2008-10-20  Bruno Haible  <bruno@clisp.org>
42163
42164         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42165         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42166         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42167         as an alias for SIGABRT.
42168         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42169         (sigaction): Map it to SIGABRT.
42170         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42171
42172 2008-10-20  Bruno Haible  <bruno@clisp.org>
42173
42174         * lib/fts.c: Don't include lstat.h.
42175         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42176
42177         Move the lstat() declaration to <sys/stat.h>.
42178         * lib/lstat.h: Remove file.
42179         * lib/sys_stat.in.h: Add special invocation convention.
42180         (lstat): New declaration.
42181         * lib/lstat.c (orig_lstat): New function.
42182         (rpl_lstat): Use orig_lstat instead of lstat.
42183         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42184         AC_C_INLINE. Set REPLACE_LSTAT.
42185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42186         and REPLACE_LSTAT.
42187         * modules/lstat (Files): Remove lib/lstat.h.
42188         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42189         (Include): Specify <sys/stat.h> instead of lstat.h.
42190         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42191         REPLACE_LSTAT.
42192         * NEWS: Mention the change.
42193
42194 2008-10-20  Bruno Haible  <bruno@clisp.org>
42195
42196         * modules/posix_spawn-tests: New file.
42197         * tests/test-posix_spawn3.c: New file.
42198
42199 2008-10-20  Bruno Haible  <bruno@clisp.org>
42200
42201         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42202         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42203         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42204         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42205         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42206
42207 2008-10-20  Bruno Haible  <bruno@clisp.org>
42208
42209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42210         of posix_spawn on AIX 5.3.
42211
42212 2008-10-20  Bruno Haible  <bruno@clisp.org>
42213
42214         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42215
42216 2008-10-20  Bruno Haible  <bruno@clisp.org>
42217
42218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42219         of AC_LANG_PROGRAM.
42220
42221 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42222
42223         * lib/netdb.in.h: Don't define GNU specific constants until they
42224         are supported or needed.  Reported by Bruno Haible
42225         <bruno@clisp.org>.
42226
42227 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42228
42229         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42230
42231 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42232
42233         * lib/getaddrinfo.h: Remove file.
42234         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42235         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42236         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42237         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42238         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42239         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42240         * tests/test-getaddrinfo.c: Likewise.
42241         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42242         * NEWS: Mention change.
42243
42244 2008-10-19  Bruno Haible  <bruno@clisp.org>
42245
42246         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42247
42248 2008-10-19  Bruno Haible  <bruno@clisp.org>
42249
42250         * lib/wait-process.c: Include simply <sys/wait.h>.
42251         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42252         WIFSTOPPED): Remove fallback definitions.
42253         * modules/wait-process (Depends-on): Add sys_wait.
42254
42255         New module 'sys_wait'.
42256         * modules/sys_wait: New file.
42257         * lib/sys_wait.in.h: New file, partially copied from
42258         lib/wait-process.c.
42259         * m4/sys_wait_h.m4: New file.
42260         * doc/posix-headers/sys_wait.texi: Mention the new module.
42261
42262 2008-10-19  Bruno Haible  <bruno@clisp.org>
42263
42264         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42265
42266 2008-10-19  Bruno Haible  <bruno@clisp.org>
42267
42268         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42269         * lib/wait-process.c (WAIT_T): Remove type.
42270         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42271         (wait_subprocess): Update.
42272
42273 2008-10-19  Bruno Haible  <bruno@clisp.org>
42274
42275         New module 'atoll'.
42276         * modules/atoll: New file.
42277         * lib/stdlib.in.h (atoll): New declaration.
42278         * lib/atoll.c: New file, from glibc with modifications.
42279         * m4/atoll.m4: New file.
42280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42281         HAVE_ATOLL.
42282         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42283         * doc/posix-functions/atoll.texi: Mention the new module.
42284
42285 2008-10-19  Bruno Haible  <bruno@clisp.org>
42286
42287         Add strtoull() declaration to <stdlib.h>.
42288         * lib/stdlib.in.h (strtoull): New declaration.
42289         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42290         Set HAVE_STRTOULL.
42291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42292         HAVE_STRTOULL.
42293         * modules/strtoull (Depends-on): Add stdlib.
42294         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42295         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42296         HAVE_STRTOULL.
42297
42298 2008-10-19  Bruno Haible  <bruno@clisp.org>
42299
42300         Add strtoll() declaration to <stdlib.h>.
42301         * lib/stdlib.in.h (strtoll): New declaration.
42302         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42303         Set HAVE_STRTOLL.
42304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42305         HAVE_STRTOLL.
42306         * modules/strtoll (Depends-on): Add stdlib.
42307         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42308         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42309
42310 2008-10-19  Bruno Haible  <bruno@clisp.org>
42311
42312         * modules/bcopy (Depends-on): Add strings.
42313         (Include): Specify <strings.h>.
42314
42315 2008-10-19  Bruno Haible  <bruno@clisp.org>
42316
42317         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42318
42319 2008-10-19  Bruno Haible  <bruno@clisp.org>
42320
42321         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42322         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42323         mingw.
42324
42325 2008-10-19  Bruno Haible  <bruno@clisp.org>
42326
42327         * lib/atanl.c: Don't include isnanl.h.
42328         * lib/cosl.c: Likewise.
42329         * lib/ldexpl.c: Likewise.
42330         * lib/logl.c: Likewise.
42331         * lib/sinl.c: Likewise.
42332         * lib/sqrtl.c: Likewise.
42333         * lib/tanl.c: Likewise.
42334
42335         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42336         * lib/isnanf.h: Remove file.
42337         * lib/isnand.h: Remove file.
42338         * lib/isnanl.h: Remove file.
42339         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42340         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42341         macros.
42342         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42343         HAVE_ISNANF, don't define it as a C macro.
42344         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42345         HAVE_ISNAND, don't define it as a C macro.
42346         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42347         HAVE_ISNANL, don't define it as a C macro.
42348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42349         HAVE_ISNAN[FDL].
42350         * modules/isnanf (Files): Remove lib/isnanf.h.
42351         (Depends-on): Add math.
42352         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42353         (Include): Specify <math.h> instead of isnanf.h.
42354         * modules/isnand (Files): Remove lib/isnand.h.
42355         (Depends-on): Add math.
42356         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42357         (Include): Specify <math.h> instead of isnand.h.
42358         * modules/isnanl (Files): Remove lib/isnanl.h.
42359         (Depends-on): Add math.
42360         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42361         (Include): Specify <math.h> instead of isnanl.h.
42362         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42363         HAVE_ISNAN[FDL].
42364         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42365         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42366         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42367         * NEWS: Mention the change.
42368
42369 2008-10-18  Bruno Haible  <bruno@clisp.org>
42370
42371         Add getusershell(), setusershell(), endusershell() declarations to
42372         <unistd.h>.
42373         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42374         declarations.
42375         * lib/getusershell.c: Include unistd.h.
42376         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42377         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42378         HAVE_GETUSERSHELL.
42379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42380         and HAVE_GETUSERSHELL.
42381         * modules/getusershell (Depends-on): Add unistd, extensions.
42382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42383         (Include): Specify <unistd.h>.
42384         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42385         HAVE_GETUSERSHELL.
42386
42387 2008-10-18  Bruno Haible  <bruno@clisp.org>
42388
42389         Add a getloadavg() declaration to <stdlib.h>.
42390         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42391         getloadavg declaration.
42392         (getloadavg): New declaration.
42393         * lib/getloadavg.c: Include <stdlib.h> first.
42394         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42395         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42396         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42398         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42399         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42400         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42401         (Include): Specify <stdlib.h>.
42402         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42403         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42404
42405 2008-10-18  Bruno Haible  <bruno@clisp.org>
42406
42407         * lib/dirchownmod.c: Don't include lchmod.h.
42408
42409         Move the lchmod() declaration to <sys/stat.h>.
42410         * lib/lchmod.h: Remove file.
42411         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42412         (lchmod): New declaration, moved here from lib/lchown.h.
42413         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42414         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42415         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42416         and HAVE_LCHMOD.
42417         * modules/lchmod (Files): Remove lib/lchmod.h.
42418         (Depends-on): Add sys_stat, extensions.
42419         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42420         (Include): Specify <sys/stat.h> instead of lchmod.h.
42421         * modules/sys_stat (Depends-on): Add link-warning.
42422         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42423         definition of GL_LINK_WARNING.
42424         * NEWS: Mention the change.
42425
42426 2008-10-18  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/fchdir.c: Don't include dirfd.h.
42429         * lib/fts.c: Likewise.
42430         * lib/getcwd.c: Likewise.
42431         * lib/glob.c: Likewise.
42432
42433         Move the dirfd() declaration to <dirent.h>.
42434         * lib/dirfd.h: Remove file.
42435         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42436         (dirfd): New declaration.
42437         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42438         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42439         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42440         HAVE_DECL_DIRFD.
42441         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42442         HAVE_DECL_DIRFD.
42443         * modules/dirfd (Files): Remove lib/dirfd.h.
42444         (Depends-on): Add dirent, extensions.
42445         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42446         (Include): Specify <dirent.h> instead of dirfd.h.
42447         * modules/dirent (Depends-on): Add link-warning.
42448         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42449         definition of GL_LINK_WARNING.
42450         * NEWS: Mention the change.
42451
42452 2008-10-18  Bruno Haible  <bruno@clisp.org>
42453
42454         Move the euidaccess() declaration to <unistd.h>.
42455         * lib/euidaccess.h: Remove file.
42456         * lib/unistd.in.h (euidaccess): New declaration.
42457         * lib/euidaccess.c: Don't include euidaccess.h.
42458         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42459         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42461         and HAVE_EUIDACCESS.
42462         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42463         (Depends-on): Add unistd.
42464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42465         (Include): Specify <unistd.h> instead of euidaccess.h.
42466         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42467         HAVE_EUIDACCESS.
42468         * NEWS: Mention the change.
42469
42470 2008-10-18  Bruno Haible  <bruno@clisp.org>
42471
42472         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42473
42474         Move the getdomainname() declaration to <unistd.h>.
42475         * lib/getdomainname.h: Remove file.
42476         * lib/unistd.in.h (getdomainname): New declaration.
42477         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42478         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42479         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42480         HAVE_GETDOMAINNAME.
42481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42482         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42483         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42484         (Depends-on): Add unistd, extensions.
42485         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42486         (Includes): Specify <unistd.h> instead of getdomainname.h.
42487         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42488         HAVE_GETDOMAINNAME.
42489         * NEWS: Mention the change.
42490
42491 2008-10-18  Bruno Haible  <bruno@clisp.org>
42492
42493         * modules/dirent: New file.
42494         * m4/dirent_h.m4: New file.
42495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42496         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42497         * modules/fchdir (Files): Remove lib/dirent.in.h.
42498         (Depends-on): Add dirent.
42499         (Makefile.am): Move rules to modules/dirent.
42500         * doc/posix-headers/dirent.texi: Mention the new module.
42501
42502 2008-10-18  Bruno Haible  <bruno@clisp.org>
42503
42504         Avoid -Wunused-parameter warnings in public gnulib header files.
42505         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42506         macro.
42507         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42508
42509 2008-10-18  Bruno Haible  <bruno@clisp.org>
42510
42511         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42512         * doc/glibc-functions/error.texi: Mention the module 'error'.
42513         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42514         * doc/glibc-functions/getdomainname.texi: Mention the module
42515         'getdomainname'.
42516         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42517         * doc/glibc-functions/getpagesize.texi: Mention the module
42518         'getpagesize'.
42519         * doc/glibc-functions/getusershell.texi: Mention the module
42520         'getusershell'.
42521         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42522         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42523         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42524         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42525         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42526         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42527         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42528         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42529         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42530         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42531         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42532         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42533         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42534         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42535
42536 2008-10-17  Bruno Haible  <bruno@clisp.org>
42537
42538         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42539         HP-UX and IRIX, use -0.0L.
42540         * tests/test-ceill.c (minus_zero): Likewise.
42541         * tests/test-floorl.c (minus_zero): Likewise.
42542         * tests/test-frexpl.c (minus_zero): Likewise.
42543         * tests/test-isnan.c (minus_zerol): Likewise.
42544         * tests/test-isnanl.h (minus_zero): Likewise.
42545         * tests/test-ldexpl.c (minus_zero): Likewise.
42546         * tests/test-roundl.c (minus_zero): Likewise.
42547         * tests/test-signbit.c (minus_zerol): Likewise.
42548         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42549         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42550         * tests/test-truncl.c (minus_zero): Likewise.
42551         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42552         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42553         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42554         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42555
42556 2008-10-17  Bruno Haible  <bruno@clisp.org>
42557
42558         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42559         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42560         that it gets activated only for gcc >= 3.0.
42561         * lib/dirent.in.h: Likewise.
42562         * lib/errno.in.h: Likewise.
42563         * lib/fcntl.in.h: Likewise.
42564         * lib/float.in.h: Likewise.
42565         * lib/iconv.in.h: Likewise.
42566         * lib/inttypes.in.h: Likewise.
42567         * lib/locale.in.h: Likewise.
42568         * lib/math.in.h: Likewise.
42569         * lib/netdb.in.h: Likewise.
42570         * lib/netinet_in.in.h: Likewise.
42571         * lib/search.in.h: Likewise.
42572         * lib/signal.in.h: Likewise.
42573         * lib/spawn.in.h: Likewise.
42574         * lib/stdarg.in.h: Likewise.
42575         * lib/stdint.in.h: Likewise.
42576         * lib/stdio.in.h: Likewise.
42577         * lib/stdlib.in.h: Likewise.
42578         * lib/string.in.h: Likewise.
42579         * lib/strings.in.h: Likewise.
42580         * lib/sys_file.in.h: Likewise.
42581         * lib/sys_ioctl.in.h: Likewise.
42582         * lib/sys_select.in.h: Likewise.
42583         * lib/sys_socket.in.h: Likewise.
42584         * lib/sys_stat.in.h: Likewise.
42585         * lib/sys_time.in.h: Likewise.
42586         * lib/sysexits.in.h: Likewise.
42587         * lib/time.in.h: Likewise.
42588         * lib/unistd.in.h: Likewise.
42589         * lib/wchar.in.h: Likewise.
42590         * lib/wctype.in.h: Likewise.
42591         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42592
42593 2008-10-17  Jim Meyering  <meyering@redhat.com>
42594
42595         ignore-value: don't depend on inline module
42596         * modules/ignore-value (Depends-on): Remove 'inline'.
42597         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42598         Suggestion from Bruno Haible.
42599
42600 2008-10-17  Bruno Haible  <bruno@clisp.org>
42601
42602         New implementation of condition variables for Win32.
42603         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42604         (gl_linked_waitqueue_t): New type.
42605         (gl_cond_t): Use it.
42606         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42607         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42608         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42609         (glthread_cond_init_func, glthread_cond_wait_func,
42610         glthread_cond_timedwait_func, glthread_cond_signal_func,
42611         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42612         Reimplemented on the basis of gl_linked_waitqueue_t.
42613         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42614         gl_waitqueue_t.
42615         (gl_rwlock_t): Update.
42616         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42617
42618 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42619
42620         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42621         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42622
42623 2008-10-17  Jim Meyering  <meyering@redhat.com>
42624
42625         ignore-value: new module
42626         * modules/ignore-value: New file.
42627         * lib/ignore-value.h: New file.
42628         * MODULES.html.sh (Compiler warning management): New section,
42629         just for this module.  More to come.
42630
42631 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42632
42633         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42634         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42635         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42636
42637 2008-10-16  Jim Meyering  <meyering@redhat.com>
42638
42639         openat-die.c: avoid 'no previous prototype' warning
42640         * lib/openat-die.c: Include "openat.h".
42641         Reported by Reuben Thomas <rrt@sc3d.org>.
42642
42643 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42644
42645         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42646         * lib/netdb.in.h: Fix typo.
42647         Reported by Bruno Haible  <bruno@clisp.org>
42648
42649         * lib/netdb.in.h: Include sys/socket.h for platforms without
42650         netdb.h, to get structures like hostent on MinGW.
42651         * modules/netdb (Depends-on): Add sys_socket.
42652
42653 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42654
42655         * modules/netdb, modules/netdb-tests: New file.
42656         * m4/netdb_h.m4: New file.
42657         * lib/netdb.in.h: Add, currently just an empty file pending
42658         definitions.
42659         * tests/test-netdb.c: New file.
42660         * doc/posix-headers/netdb.texi: Mention that we replace it if
42661         needed.
42662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42663         netdb.
42664
42665 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42666
42667         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42668         with code.
42669
42670 2008-10-13  Bruno Haible  <bruno@clisp.org>
42671
42672         * lib/glthread/cond.c (glthread_cond_wait_func,
42673         glthread_cond_timedwait_func): Add a comment.
42674
42675 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42676
42677         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42678         * tests/test-select.c: Likewise,
42679
42680 2008-10-13  Bruno Haible  <bruno@clisp.org>
42681
42682         * lib/glthread/cond.c (glthread_cond_wait_func,
42683         glthread_cond_timedwait_func): Fix variable name.
42684         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42685
42686 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42687
42688         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42689         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42690         struct sockaddr.sa_len.
42691         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42692
42693 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42694
42695         * build-aux/pmccabe2html: Add css and css_url parameters.
42696
42697 2008-10-12  Bruno Haible  <bruno@clisp.org>
42698
42699         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42700         calling aclx_get.
42701         Reported by Rainer Tammer <tammer@tammer.net>.
42702
42703 2008-10-12  Bruno Haible  <bruno@clisp.org>
42704
42705         Use msvcrt aware primitives for creation/termination of Win32 threads.
42706         * lib/glthread/thread.c: Include <process.h>.
42707         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42708         (wrapper_func): Update signature.
42709         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42710
42711 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42712             Bruno Haible  <bruno@clisp.org>
42713
42714         Provide a Win32 implementation of the 'cond' module.
42715         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42716         * lib/glthread/cond.c (glthread_cond_init_func,
42717         glthread_cond_wait_func, glthread_cond_timedwait_func,
42718         glthread_cond_signal_func, glthread_cond_broadcast_func,
42719         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42720         * modules/cond (Dependencies): Add gettimeofday.
42721
42722 2008-10-11  Bruno Haible  <bruno@clisp.org>
42723
42724         Make sleep work on older versions of mingw.
42725         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42726         only whether it exists.
42727         * doc/posix-functions/sleep.texi: Mention the problem with older
42728         versions of mingw.
42729
42730 2008-10-11  Bruno Haible  <bruno@clisp.org>
42731
42732         New module 'shutdown'.
42733         * modules/shutdown: New file.
42734         * lib/sys_socket.in.h (shutdown): New declaration.
42735         * lib/winsock.c (shutdown): New function.
42736         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42737         GNULIB_SHUTDOWN.
42738         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42739         * doc/posix-functions/shutdown.texi: Document the new module.
42740
42741 2008-10-11  Jim Meyering  <meyering@redhat.com>
42742
42743         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42744
42745 2008-10-11  Bruno Haible  <bruno@clisp.org>
42746
42747         New module 'fclose'.
42748         * modules/fclose: New file.
42749         * lib/stdio.in.h (fclose): New declaration.
42750         * lib/fclose.c: New file.
42751         * m4/fclose.m4: New file.
42752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42753         REPLACE_FCLOSE.
42754         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42755         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42756         REPLACE_FCLOSE.
42757         * modules/close (Depends-on): fclose.
42758         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42759
42760 2008-10-11  Bruno Haible  <bruno@clisp.org>
42761
42762         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42763         set errno and don't call _close.
42764
42765 2008-10-10  Bruno Haible  <bruno@clisp.org>
42766
42767         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42768         ACL, not afterwards. Fixes test failure on Cygwin.
42769
42770 2008-10-09  Ben Pfaff  <blp@gnu.org>
42771
42772         * build-aux/announce-gen: Fix gnulib version related part of usage
42773         message.  Die with a useful error message if no tarballs are
42774         found.
42775
42776 2008-10-10  Jim Meyering  <meyering@redhat.com>
42777
42778         bootstrap: use git's --depth=N option only if it's supported
42779         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42780         recognize the --depth option.  Reported by Pádraig Brady.
42781
42782 2008-10-09  Bruno Haible  <bruno@clisp.org>
42783
42784         New module 'ioctl'.
42785         * modules/ioctl: New file.
42786         * lib/sys_socket.in.h (ioctl): Remove declaration.
42787         * lib/winsock.c: Include <sys/ioctl.h>.
42788         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42789         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42790         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42791         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42792         * doc/posix-functions/ioctl.texi: Mention the new module.
42793
42794 2008-10-09  Bruno Haible  <bruno@clisp.org>
42795
42796         New module 'sys_ioctl'.
42797         * lib/sys_ioctl.in.h: New file.
42798         * m4/sys_ioctl_h.m4: New file.
42799         * modules/sys_ioctl: New file.
42800         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42801
42802 2008-10-09  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42805         * lib/winsock.c: Include <stdarg.h>.
42806         (rpl_ioctl): Change to second argument 'int' and then varargs.
42807
42808 2008-10-09  Bruno Haible  <bruno@clisp.org>
42809
42810         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42811         when the sys_socket module is present and the system has <winsock2.h>.
42812
42813 2008-10-09  Bruno Haible  <bruno@clisp.org>
42814
42815         * doc/posix-functions/close.texi: Mention module 'close' instead of
42816         module 'sys_socket'.
42817
42818 2008-10-09  Bruno Haible  <bruno@clisp.org>
42819
42820         * doc/glibc-headers/sys_ioctl.texi: New file.
42821         * doc/gnulib.texi: Include it.
42822
42823 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42824             Bruno Haible  <bruno@clisp.org>
42825
42826         Combine the two replacements of 'close'.
42827         * lib/sys_socket.in.h (close): Define to a reminder to include
42828         <unistd.h>.
42829         (_gl_close_fd_maybe_socket): New declaration.
42830         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42831         * lib/winsock.c (close): Remove undefinition.
42832         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42833         needed for the gnulib module 'close'.
42834         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42835         define to an error symbol or to a warning, if suitable.
42836         * lib/close.c: Include <sys/socket.h>.
42837         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42838         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42839         UNISTD_H_HAVE_WINSOCK2_H.
42840         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42842         UNISTD_H_HAVE_WINSOCK2_H.
42843         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42844         (configure.ac): Set a module indicator.
42845         (Makefile.am): Substitute GNULIB_CLOSE.
42846         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42847         * modules/poll-tests (Depends-on): Add close.
42848         * modules/select-tests (Depends-on): Likewise.
42849
42850 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42851             Bruno Haible  <bruno@clisp.org>
42852
42853         New module 'close'.
42854         * modules/close: New file.
42855         * lib/unistd.in.h (close): Move declaration out of the
42856         FCHDIR_REPLACEMENT scope.
42857         (_gl_unregister_fd): New declaration.
42858         * lib/close.c: New file.
42859         * lib/fchdir.c (rpl_close): Remove function.
42860         * m4/close.m4: New file.
42861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42862         close.
42863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42864         REPLACE_CLOSE.
42865         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42866         REPLACE_CLOSE.
42867         * modules/fchdir (Depends-on): Add close.
42868
42869 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42870             Bruno Haible  <bruno@clisp.org>
42871
42872         * lib/fcntl.in.h (open): Simplify conditionals.
42873         (_gl_register_fd): New declaration.
42874         * lib/fchdir.c (rpl_open): Remove function.
42875         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42876         also.
42877         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42879         open.
42880
42881 2008-10-09  Jim Meyering  <meyering@redhat.com>
42882
42883         GNUmakefile: use the more name-space-friendly "_version"
42884         * top/GNUmakefile (_dummy): Update.
42885         (_version): Rename from "version".
42886
42887 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42888             Bruno Haible  <bruno@clisp.org>
42889
42890         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42891         rpl_close.
42892         (_gl_register_fd): New function, extracted from rpl_open.
42893         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42894         (rpl_open, rpl_opendir): Use _gl_register_fd.
42895
42896 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42897
42898         Fix organization of 'open' replacement.
42899         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42900         (gl_FUNC_OPEN): Use it.
42901         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42902
42903 2008-10-08  Bruno Haible  <bruno@clisp.org>
42904
42905         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42906
42907 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42908
42909         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42910         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42911         listen).
42912
42913 2008-10-08  Eric Blake  <ebb9@byu.net>
42914
42915         GNUmakefile: add 'make version' target
42916         * top/GNUmakefile (_curr-ver): Split version update rules...
42917         (version): ...into a target.
42918
42919 2008-10-07  Bruno Haible  <bruno@clisp.org>
42920
42921         Use a more portable replacement expression for -0.0L.
42922         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42923         instead of -0.0L. Fix m4 quotation.
42924
42925         * tests/test-signbit.c: Include <float.h>.
42926         (minus_zero): New variable.
42927         (test_signbitl): Use minus_zero instead of -zero.
42928         * modules/signbit-tests (Depends-on): Add float.
42929
42930         * tests/test-ceill.c: Include <float.h>.
42931         (zero): Remove variable.
42932         (minus_zero): New variable.
42933         (main): Use minus_zero instead of -zero.
42934         * modules/ceill-tests (Depends-on): Add float.
42935
42936         * tests/test-floorl.c: Include <float.h>.
42937         (zero): Remove variable.
42938         (minus_zero): New variable.
42939         (main): Use minus_zero instead of -zero.
42940         * modules/floorl-tests (Depends-on): Add float.
42941
42942         * tests/test-roundl.c: Include <float.h>.
42943         (zero): Remove variable.
42944         (minus_zero): New variable.
42945         (main): Use minus_zero instead of -zero.
42946         * modules/roundl-tests (Depends-on): Add float.
42947
42948         * tests/test-truncl.c: Include <float.h>.
42949         (zero): Remove variable.
42950         (minus_zero): New variable.
42951         (main): Use minus_zero instead of -zero.
42952         * modules/truncl-tests (Depends-on): Add float.
42953
42954         * tests/test-frexpl.c (zero): Remove variable.
42955         (minus_zero): New variable.
42956         (main): Use minus_zero instead of -zero.
42957         * modules/frexpl-tests (Depends-on): Add float.
42958
42959         * tests/test-isnan.c (zerol): Remove variable.
42960         (minus_zerol): New variable.
42961         (test_long_double): Use minus_zerol instead of -zerol.
42962         * modules/isnan-tests (Depends-on): Add float.
42963
42964         * tests/test-isnanl.h (zero): Remove variable.
42965         (minus_zero): New variable.
42966         (main): Use minus_zero instead of -zero.
42967         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42968         * modules/isnanl-tests (Depends-on): Add float.
42969
42970         * tests/test-ldexpl.c (zero): Remove variable.
42971         (minus_zero): New variable.
42972         (main): Use minus_zero instead of -zero.
42973         * modules/ldexpl-tests (Depends-on): Add float.
42974
42975         * tests/test-snprintf-posix.h (zerol): Remove variable.
42976         (minus_zerol): New variable.
42977         (test_function): Use minus_zerol instead of -zerol.
42978         * modules/snprintf-posix-tests (Depends-on): Add float.
42979         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42980
42981         * tests/test-sprintf-posix.h (zerol): Remove variable.
42982         (minus_zerol): New variable.
42983         (test_function): Use minus_zerol instead of -zerol.
42984         * modules/sprintf-posix-tests (Depends-on): Add float.
42985         * modules/vsprintf-posix-tests (Depends-on): Add float.
42986
42987         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42988         (minus_zerol): New variable.
42989         (test_function): Use minus_zerol instead of -zerol.
42990         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42991
42992         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42993         (minus_zerol): New variable.
42994         (test_function): Use minus_zerol instead of -zerol.
42995         * modules/vasprintf-posix-tests (Depends-on): Add float.
42996
42997 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42998
42999         * MODULES.html.sh (Support for building documentation): Mention
43000         pmccabe2html.  Sort entries.
43001
43002         Add pmccabe2html module, from gnupdf.
43003         * build-aux/pmccabe.css: New file.
43004         * build-aux/pmccabe2html: New file.
43005         * m4/pmccabe2html.m4: New file.
43006         * modules/pmccabe2html: New file.
43007
43008 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43009
43010         flock: new module
43011         * MODULES.html.sh: Add to list of modules.
43012         * lib/flock.c: flock implementation for Windows and Unix systems
43013         which have fcntl.
43014         * doc/glibc-functions/flock.texi: Update documentation.
43015         * lib/sys_file.in.h: <sys/file.h> header file.
43016         * m4/flock.m4: M4 macros.
43017         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43018         * modules/flock: flock module.
43019         * modules/flock-tests: flock tests module.
43020         * modules/sys_file: sys/file.h module.
43021         * tests/test-flock.c: test suite for flock.
43022
43023 2008-10-06  Jim Meyering  <meyering@redhat.com>
43024
43025         bootstrap: check for LT_INIT more portably still ;-)
43026         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43027         Spotted by Bruno Haible.
43028
43029 2008-10-06  Eric Blake  <ebb9@byu.net>
43030
43031         test-signbit: avoid tripping Irix cc bug on -0.0L
43032         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43033         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43034         entire testsuite consistent and avoids an Irix 6.2 bug.
43035
43036 2008-10-05  Bruno Haible  <bruno@clisp.org>
43037             Jim Meyering  <jim@meyering.net>
43038
43039         Add an option for ignoring EPIPE during close_stdout.
43040         * lib/closeout.h: Include <stdbool.h>.
43041         (close_stdout_set_ignore_EPIPE): New declaration.
43042         * lib/closeout.c: Include <stdbool.h>.
43043         (ignore_EPIPE): New variable.
43044         (close_stdout_set_ignore_EPIPE): New function.
43045         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43046         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43047         failure.
43048         * modules/closeout (Depends-on): Add stdbool.
43049
43050 2008-10-05  Bruno Haible  <bruno@clisp.org>
43051
43052         * modules/accept: New file.
43053         * modules/bind: New file.
43054         * modules/connect: New file.
43055         * modules/getpeername: New file.
43056         * modules/getsockname: New file.
43057         * modules/getsockopt: New file.
43058         * modules/listen: New file.
43059         * modules/recv: New file.
43060         * modules/recvfrom: New file.
43061         * modules/send: New file.
43062         * modules/sendto: New file.
43063         * modules/setsockopt: New file.
43064         * modules/socket: New file.
43065         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43066         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43067         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43068         the particular module is requested. Add a link warning when the
43069         particular module is not requested.
43070         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43071         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43072         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43073         the particular module is requested.
43074         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43075         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43076         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43077         * modules/sys_socket (Depends-on): Add link-warning.
43078         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43079         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43080         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43081         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43082         GL_LINK_WARNING.
43083         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43084         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43085         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43086         * doc/posix-functions/getpeername.texi: Mention the new module
43087         'getpeername'.
43088         * doc/posix-functions/getsockname.texi: Mention the new module
43089         'getsockname'.
43090         * doc/posix-functions/getsockopt.texi: Mention the new module
43091         'getsockopt'.
43092         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43093         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43094         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43095         * doc/posix-functions/send.texi: Mention the new module 'send'.
43096         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43097         * doc/posix-functions/setsockopt.texi: Mention the new module
43098         'setsockopt'.
43099         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43100         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43101         listen, connect, accept.
43102         * modules/select-tests (Depends-on): Likewise.
43103
43104 2008-10-05  Bruno Haible  <bruno@clisp.org>
43105
43106         * lib/winsock.c (strerror): Remove unused #undef.
43107         (rpl_close): Remove unused local variable.
43108
43109         * modules/sys_socket (Depends-on); Add errno.
43110
43111 2008-10-05  Bruno Haible  <bruno@clisp.org>
43112
43113         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43114         (select): Add a link warning when the 'select' module is not used.
43115         * modules/sys_select (Depends-on): Add link-warning.
43116         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43117         Suggested by Paolo Bonzini.
43118
43119 2008-10-05  Jim Meyering  <meyering@redhat.com>
43120
43121         bootstrap: check for LT_INIT more portably
43122         * build-aux/bootstrap: Avoid using grep -E, since it's not
43123         portable enough.  Suggestion from Bruno Haible.
43124
43125 2008-10-05  Bruno Haible  <bruno@clisp.org>
43126
43127         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43128         as being fixed by gnulib.
43129
43130 2008-10-05  Bruno Haible  <bruno@clisp.org>
43131
43132         * modules/select-tests: New file, mostly copied from
43133         modules/sys_select-tests.
43134         * tests/test-select.c: New file, mostly copied from
43135         tests/test-sys_select.c.
43136         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43137         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43138         (Makefile.am): Remove test_sys_select_LDADD.
43139
43140         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43141         to an undefined symbol, for an error message.
43142         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43143         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43144         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43145         winsock-select.c here.
43146         * modules/sys_select (Files): Remove lib/winsock-select.c.
43147         (Depends-on): Remove alloca.
43148         (Makefile.am): Substitute GNULIB_SELECT.
43149         * modules/select: New file.
43150         * doc/posix-functions/select.texi: Update.
43151
43152 2008-10-05  Bruno Haible  <bruno@clisp.org>
43153
43154         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43155         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43156         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43157         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43158         getdtablesize.
43159         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43160         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43161
43162 2008-10-05  Bruno Haible  <bruno@clisp.org>
43163
43164         * modules/getdtablesize-tests: New file.
43165         * tests/test-getdtablesize.c: New file.
43166
43167         New module 'getdtablesize'.
43168         * lib/unistd.in.h (getdtablesize): New declaration.
43169         * lib/getdtablesize.c: New file.
43170         * m4/getdtablesize.m4: New file.
43171         * modules/getdtablesize: New file.
43172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43173         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43174         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43175         HAVE_GETDTABLESIZE.
43176         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43177
43178 2008-10-05  Bruno Haible  <bruno@clisp.org>
43179
43180         * modules/sched (Makefile.am): Fix typo.
43181         Reported by Simon Josefsson.
43182
43183 2008-10-05  Jim Meyering  <meyering@redhat.com>
43184
43185         bootstrap: check for LT_INIT, too
43186         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43187         are deprecated.  Suggestion from Ralf Wildenhues.
43188
43189 2008-10-05  Bruno Haible  <bruno@clisp.org>
43190
43191         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43192         overriding them by ours.
43193         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43194
43195 2008-10-05  Jim Meyering  <meyering@redhat.com>
43196
43197         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43198         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43199         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43200
43201 2008-10-04  Bruno Haible  <bruno@clisp.org>
43202
43203         * modules/dup2 (License): Change to LGPLv2+.
43204         * modules/sleep (License): Likewise.
43205         * modules/perror (License): Likewise.
43206         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43207         Blake.
43208         * modules/signal (License): Likewise.
43209         * modules/sigprocmask (License): Likewise.
43210         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43211         Meyering.
43212
43213 2008-10-04  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43216         Reported by Rainer Tammer <tammer@tammer.net>.
43217
43218 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43219             Bruno Haible  <bruno@clisp.org>
43220
43221         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43222         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43223         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43224
43225 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43226
43227         filevercmp: new module
43228         * lib/filevercmp.h: New function filevercmp comparing version strings.
43229         * lib/filevercmp.c: Implementation of filevercmp function.
43230         * modules/filevercmp: Module metadata.
43231         * tests/test-filevercmp.c: Unit test for new module.
43232         * modules/filevercmp-tests: Unit test metadata.
43233         * MODULES.html.sh: Add filevercmp module.
43234
43235 2008-10-03  Bruno Haible  <bruno@clisp.org>
43236
43237         * lib/c-ctype.h: Add comment.
43238         Reported by Jim Meyering.
43239
43240 2008-10-02  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43243
43244 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43245
43246         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43247         name of bootstrap.conf accordingly.
43248
43249 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43250
43251         * build-aux/bootstrap: Install git-merge-changelog configuration
43252         items into .gitconfig if needed.
43253
43254 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43255
43256         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43257         git repository, and initialize/update it accordingly.
43258
43259 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43260
43261         * modules/fsync-tests: New file.
43262         * tests/test-fsync.c: New file.
43263
43264         New module 'fsync'.
43265         * lib/fsync.c: New file.
43266         * m4/fsync.m4: New file.
43267         * modules/fsync: New file.
43268         * lib/unistd.in.h (fsync): New declaration.
43269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43270         GNULIB_FSYNC and HAVE_FSYNC.
43271         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43272         * MODULES.html.sh (posix_functions): Add fsync.
43273         * doc/posix-functions/fsync.texi: Mention the new module.
43274
43275 2008-10-02  Jim Meyering  <meyering@redhat.com>
43276
43277         fts.c: sync with similar code from coreutils' remove.c
43278         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43279         Guard also with "#if defined __linux__", since for now at least,
43280         this code is Linux-kernel-specific.
43281
43282 2008-10-02  Jim Meyering  <meyering@redhat.com>
43283
43284         fts: bug fixes
43285         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43286         Include <sys/vfs.h>, not <sys/statfs.h>.
43287
43288         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43289         Include <sys/vfs.h>, not <sys/statfs.h>.
43290
43291 2008-10-01  Bruno Haible  <bruno@clisp.org>
43292
43293         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43294         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43295         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43296         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43297         * doc/posix-functions/posix_spawnp.texi: Likewise.
43298         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43299         whether posix_spawn actually works.
43300         * m4/pipe.m4 (gl_PIPE): Likewise.
43301         * modules/execute (Files): Add m4/posix_spawn.m4.
43302         * modules/pipe (Files): Add m4/posix_spawn.m4.
43303         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43304
43305 2008-10-01  Jim Meyering  <meyering@redhat.com>
43306
43307         remove trailing spaces
43308         * NEWS: Likewise.
43309         * lib/poll.c (poll): Likewise.
43310         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43311         * lib/winsock.c (rpl_close): Likewise.
43312         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43313         * modules/yield: Likewise.
43314         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43315         * tests/test-sys_select.c (connect_to_socket): Likewise.
43316
43317         fts.c: adjust a new interface to be more generally useful
43318         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43319         (fts_build): Adjust caller.
43320
43321 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43322
43323         * modules/cond-tests: New file.
43324         * tests/test-cond.c: New file.
43325
43326 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43327             Bruno Haible  <bruno@clisp.org>
43328
43329         * modules/cond (Dependencies): Add errno, time.
43330         * lib/glthread/cond.h: Include <time.h>.
43331         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43332         across platforms.
43333
43334 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43335             Bruno Haible  <bruno@clisp.org>
43336
43337         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43338
43339 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43340             Bruno Haible  <bruno@clisp.org>
43341
43342         * modules/tls-tests (Depends-on): Add thread, yield.
43343         (configure.ac): Remove all checks.
43344         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43345         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43346         gl_thread_self): Remove definitions. Include glthread/thread.h and
43347         glthread/yield.h instead.
43348         (test_tls): Pass an additional NULL argument to gl_thread_join.
43349
43350 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43351             Bruno Haible  <bruno@clisp.org>
43352
43353         * modules/lock-tests (Depends-on): Add thread, yield.
43354         (configure.ac): Remove all checks.
43355         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43356         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43357         gl_thread_self): Remove definitions. Include glthread/thread.h and
43358         glthread/yield.h instead.
43359         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43360         additional NULL argument to gl_thread_join.
43361
43362 2008-09-30  Bruno Haible  <bruno@clisp.org>
43363
43364         Fix the Win32 implementation of the 'thread' module.
43365         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43366         pointer type.
43367         (gl_thread_self): Invoke gl_thread_self_func.
43368         (gl_thread_self_func): New declaration.
43369         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43370         (do_init_self_key, init_self_key): New functions.
43371         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43372         Remove some fields.
43373         (running_threads, running_lock): Remove variables.
43374         (get_current_thread_handle): New function.
43375         (gl_thread_self_func, wrapper_func, glthread_create_func,
43376         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43377         simplified.
43378
43379 2008-09-30  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43382         files.
43383
43384 2008-09-30  Jim Meyering  <meyering@redhat.com>
43385
43386         fts.m4: correct the test for statfs.f_type
43387         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43388         when checking for statfs.f_type.
43389
43390 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43391
43392         tests: avoid some compiler warnings
43393         * tests/test-memchr.c (main): Pass NULL indirectly.
43394         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43395
43396 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43397
43398         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43399         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43400         exactly specified dayshifts.
43401         (dayshift): New rule.
43402         (rel): Add dayshift.
43403         (relative_time_table) [tomorrow, yesterday, today, now]:
43404         Use tDAY_SHIFT in place of tDAY_UNIT.
43405         * tests/test-getdate.c: Add tests for now-disallowed countable
43406         dayshifts, e.g., "4 yesterday ago".
43407
43408 2008-09-29  Bruno Haible  <bruno@clisp.org>
43409
43410         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43411         * tests/test-posix_spawn1.in.sh: Renamed from
43412         tests/test-posix_spawn.in.sh.
43413         * tests/test-posix_spawn2.c: New file.
43414         * tests/test-posix_spawn2.in.sh: New file.
43415         * modules/posix_spawnp-tests (Files): Update.
43416         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43417
43418 2008-09-29  Bruno Haible  <bruno@clisp.org>
43419
43420         Propagate effects of putenv/setenv/unsetenv to child processes.
43421         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43422         * lib/pipe.c (create_pipe): Likewise.
43423
43424 2008-09-29  Bruno Haible  <bruno@clisp.org>
43425
43426         Enable use of shell scripts as executables in mingw.
43427         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43428         run the program as a shell script.
43429         * lib/pipe.c (create_pipe): Likewise.
43430         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43431         resulting array.
43432
43433 2008-09-29  Eric Blake  <ebb9@byu.net>
43434
43435         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43436
43437 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43438
43439         * doc/posix-functions/accept.texi: Update mingw problems.
43440         * doc/posix-functions/bind.texi: Update mingw problems.
43441         * doc/posix-functions/close.texi: Update mingw problems.
43442         * doc/posix-functions/connect.texi: Update mingw problems.
43443         * doc/posix-functions/getpeername.texi: Update mingw problems.
43444         * doc/posix-functions/getsockname.texi: Update mingw problems.
43445         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43446         * doc/posix-functions/ioctl.texi: Update mingw problems.
43447         * doc/posix-functions/listen.texi: Update mingw problems.
43448         * doc/posix-functions/recv.texi: Update mingw problems.
43449         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43450         * doc/posix-functions/select.texi: Update mingw problems.
43451         * doc/posix-functions/send.texi: Update mingw problems.
43452         * doc/posix-functions/sendto.texi: Update mingw problems.
43453         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43454         * doc/posix-functions/socket.texi: Update mingw problems.
43455
43456 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43457             Bruno Haible  <bruno@clisp.org>
43458
43459         * lib/sys_select.in.h: Include sys/time.h.
43460         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43461         * modules/sys_select: Depend on sys_time.
43462         * tests/test-sys_select.c: Test that sys/select.h defines struct
43463         timeval fully.
43464
43465 2008-09-29  Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43468         * lib/sys_select.in.h: Likewise.
43469
43470 2008-09-29  Bruno Haible  <bruno@clisp.org>
43471
43472         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43473
43474 2008-09-29  Bruno Haible  <bruno@clisp.org>
43475
43476         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43477         Set LIBSOCKET instead of augmenting LIBS.
43478         * modules/sockets (Link): New section.
43479         * modules/sockets-tests (test_sockets_LDADD): New variable.
43480         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43481         * modules/poll-tests (test_poll_LDADD): New variable.
43482         * NEWS: Document the change.
43483
43484 2008-09-29  Bruno Haible  <bruno@clisp.org>
43485
43486         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43487         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43488         ARPA_INET_H directly.
43489         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43490
43491 2008-09-28  Bruno Haible  <bruno@clisp.org>
43492
43493         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43494         from gl_HEADER_SYS_SOCKET.
43495         (gl_HEADER_SYS_SOCKET): Invoke it.
43496         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43497
43498 2008-09-28  Bruno Haible  <bruno@clisp.org>
43499
43500         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43501         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43502         Needed on OSF/1 4.0.
43503
43504 2008-09-28  Bruno Haible  <bruno@clisp.org>
43505
43506         Override open more carefully.
43507         * lib/open.c (orig_open): New function.
43508         (rpl_open): Use orig_open instead of open.
43509         * lib/fcntl.in.h: Add special invocation convention.
43510         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43511         (gl_FUNC_OPEN): Invoke it.
43512
43513         Override freopen more carefully.
43514         * lib/freopen.c (orig_freopen): New function.
43515         (rpl_freopen): Use orig_freopen instead of freopen.
43516         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43517         (gl_FUNC_FREOPEN): Invoke it.
43518
43519         Override fopen more carefully.
43520         * lib/fopen.c (orig_fopen): New function.
43521         (rpl_fopen): Use orig_fopen instead of fopen.
43522         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43523         (gl_FUNC_FOPEN): Invoke it.
43524         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43525
43526 2008-09-28  Bruno Haible  <bruno@clisp.org>
43527
43528         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43529         SIGPIPE.
43530
43531 2008-09-28  Bruno Haible  <bruno@clisp.org>
43532
43533         * tests/test-sigaction.c (handler, main): Disable the check whether
43534         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43535         glibc systems with LinuxThreads.
43536
43537 2008-09-28  Bruno Haible  <bruno@clisp.org>
43538
43539         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43540
43541         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43542         with AIX xlc.
43543         * lib/fcntl.in.h (open): Likewise.
43544         Reported by Rainer Tammer <tammer@tammer.net>.
43545
43546 2008-09-28  Bruno Haible  <bruno@clisp.org>
43547
43548         * modules/posix_spawnp-tests: New file.
43549         * tests/test-posix_spawn.c: New file.
43550         * tests/test-posix_spawn.in.sh: New file.
43551
43552         New module 'posix_spawnp'.
43553         * modules/posix_spawnp: New file.
43554         * lib/spawnp.c: New file, from GNU libc with modifications.
43555         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43556
43557         New module 'posix_spawn'.
43558         * modules/posix_spawn: New file.
43559         * lib/spawn.c: New file, from GNU libc with modifications.
43560         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43561
43562         New module 'posix_spawnattr_destroy'.
43563         * modules/posix_spawnattr_destroy: New file.
43564         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43565         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43566         module.
43567
43568         New module 'posix_spawnattr_setsigmask'.
43569         * modules/posix_spawnattr_setsigmask: New file.
43570         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43571         modifications.
43572         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43573         new module.
43574
43575         New module 'posix_spawnattr_getsigmask'.
43576         * modules/posix_spawnattr_getsigmask: New file.
43577         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43578         modifications.
43579         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43580         new module.
43581
43582         New module 'posix_spawnattr_setsigdefault'.
43583         * modules/posix_spawnattr_setsigdefault: New file.
43584         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43585         modifications.
43586         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43587         new module.
43588
43589         New module 'posix_spawnattr_getsigdefault'.
43590         * modules/posix_spawnattr_getsigdefault: New file.
43591         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43592         modifications.
43593         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43594         new module.
43595
43596         New module 'posix_spawnattr_setschedpolicy'.
43597         * modules/posix_spawnattr_setschedpolicy: New file.
43598         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43599         modifications.
43600         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43601         new module.
43602
43603         New module 'posix_spawnattr_getschedpolicy'.
43604         * modules/posix_spawnattr_getschedpolicy: New file.
43605         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43606         modifications.
43607         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43608         new module.
43609
43610         New module 'posix_spawnattr_setschedparam'.
43611         * modules/posix_spawnattr_setschedparam: New file.
43612         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43613         modifications.
43614         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43615         new module.
43616
43617         New module 'posix_spawnattr_getschedparam'.
43618         * modules/posix_spawnattr_getschedparam: New file.
43619         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43620         modifications.
43621         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43622         new module.
43623
43624         New module 'posix_spawnattr_setpgroup'.
43625         * modules/posix_spawnattr_setpgroup: New file.
43626         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43627         modifications.
43628         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43629         module.
43630
43631         New module 'posix_spawnattr_getpgroup'.
43632         * modules/posix_spawnattr_getpgroup: New file.
43633         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43634         modifications.
43635         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43636         module.
43637
43638         New module 'posix_spawnattr_setflags'.
43639         * modules/posix_spawnattr_setflags: New file.
43640         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43641         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43642         module.
43643
43644         New module 'posix_spawnattr_getflags'.
43645         * modules/posix_spawnattr_getflags: New file.
43646         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43647         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43648         module.
43649
43650         New module 'posix_spawnattr_init'.
43651         * modules/posix_spawnattr_init: New file.
43652         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43653         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43654         module.
43655
43656         New module 'posix_spawn_file_actions_destroy'.
43657         * modules/posix_spawn_file_actions_destroy: New file.
43658         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43659         modifications.
43660         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43661         the new module.
43662
43663         New module 'posix_spawn_file_actions_addopen'.
43664         * modules/posix_spawn_file_actions_addopen: New file.
43665         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43666         modifications.
43667         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43668         the new module.
43669
43670         New module 'posix_spawn_file_actions_adddup2'.
43671         * modules/posix_spawn_file_actions_adddup2: New file.
43672         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43673         modifications.
43674         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43675         the new module.
43676
43677         New module 'posix_spawn_file_actions_addclose'.
43678         * modules/posix_spawn_file_actions_addclose: New file.
43679         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43680         modifications.
43681         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43682         the new module.
43683
43684         New module 'posix_spawn_file_actions_init'.
43685         * modules/posix_spawn_file_actions_init: New file.
43686         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43687         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43688         new module.
43689
43690         New module 'posix_spawn-internal'.
43691         * modules/posix_spawn-internal: New file.
43692         * lib/spawn_int.h: New file, from GNU libc with modifications.
43693         * lib/spawni.c: New file, from GNU libc with modifications.
43694         * m4/posix_spawn.m4: New file.
43695
43696         New module 'spawn'.
43697         * modules/spawn: New file.
43698         * lib/spawn.in.h: New file, from GNU libc with modifications.
43699         * m4/spawn_h.m4: New file.
43700         * doc/posix-headers/spawn.texi: Mention the new module.
43701
43702 2008-09-28  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/sched-tests: New file.
43705         * tests/test-sched.c: New file.
43706
43707         New module 'sched'.
43708         * modules/sched: New file.
43709         * lib/sched.in.h: New file.
43710         * m4/sched_h.m4: New file.
43711         * doc/posix-headers/sched.texi: Mention the new module.
43712
43713 2008-09-27  Eric Blake  <ebb9@byu.net>
43714
43715         Fix previous patch, and tweak references to $0.
43716         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43717         (func_version, func_gnulib_dir): Don't call this program
43718         gnulib-tool.
43719         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43720         with using $0 in function.
43721         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43722         (func_fatal_error): Reuse the name the user invoked us with.
43723
43724 2008-09-27  Bruno Haible  <bruno@clisp.org>
43725
43726         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43727         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43728         (gl_ICONV_H): Not here.
43729         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43730         instead of assigning ICONV_H directly.
43731
43732         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43734         WCHAR_H directly.
43735
43736 2008-09-27  Bruno Haible  <bruno@clisp.org>
43737
43738         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43739         * modules/arpa_inet (Depends-on): Add link-warning.
43740         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43741         * modules/unistd (Makefile.am): Likewise.
43742
43743 2008-09-26  Bruno Haible  <bruno@clisp.org>
43744
43745         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43746         variables.
43747         (func_version): Essentially copied from gnulib-tool.
43748         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43749         func_readlink): Copied from gnulib-tool.
43750
43751 2008-09-26  Bruno Haible  <bruno@clisp.org>
43752
43753         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43754         invoking git-version-gen.
43755
43756 2008-09-26  Bruno Haible  <bruno@clisp.org>
43757
43758         * posix-modules: Update to directory names changed on 2008-01-19.
43759         Remove commas in output before splitting into words. No more need to
43760         avoid 'ftruncate' since 2007-02-19.
43761
43762 2008-09-26  Bruno Haible  <bruno@clisp.org>
43763
43764         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43765
43766 2008-09-26  Bruno Haible  <bruno@clisp.org>
43767
43768         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43769         * modules/fwriteerror (Depends-on): Add errno.
43770
43771 2008-09-26  Bruno Haible  <bruno@clisp.org>
43772
43773         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43774         * tests/test-vc-list-files-cvs.sh: Likewise.
43775
43776 2008-09-26  Bruno Haible  <bruno@clisp.org>
43777
43778         * doc/posix-headers/sys_resource.texi: Reorder items.
43779
43780 2008-09-26  Jim Meyering  <meyering@redhat.com>
43781
43782         fts: tweak inode comparison function
43783         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43784         inode numbers, as documented.
43785
43786         fts: sort dirent entries on inode number before traversing
43787         This avoids a quadratic, seek-related performance penalty when
43788         operating on a directory containing many entries (measurable at 10k;
43789         3.5 hours at 2 million entries with a cold cache) on certain types
43790         of file systems, including ext3 and ext4, but not tmpfs.
43791         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43792         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43793         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43794         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43795         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43796         (fts_build): Set the stat.st_ino member from D_INO.
43797         If it is likely to be useful, sort dirent entries on inode number.
43798
43799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43800         and the struct statfs.f_type member.
43801         * modules/fts (Depends-on): Add d-ino.
43802
43803 2008-09-26  Bruno Haible  <bruno@clisp.org>
43804
43805         * modules/sigpipe-die (Depends-on): Add sigpipe.
43806
43807         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43808         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43809         and GNULIB_STDIO_H_SIGPIPE are set.
43810         * lib/stdio-write.c: New file.
43811         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43812         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43813         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43814         REPLACE_STDIO_WRITE_FUNCS.
43815         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43816         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43817         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43818         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43819         * modules/stdio (Files): Add lib/stdio-write.c.
43820         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43821         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43822         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43823         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43824         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43825         REPLACE_FPRINTF_POSIX.
43826         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43827         REPLACE_PRINTF_POSIX.
43828         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43829         REPLACE_VFPRINTF_POSIX.
43830         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43831         REPLACE_VPRINTF_POSIX.
43832         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43833         SIGPIPE issue.
43834         * doc/posix-functions/fputc.texi: Likewise.
43835         * doc/posix-functions/fputs.texi: Likewise.
43836         * doc/posix-functions/fwrite.texi: Likewise.
43837         * doc/posix-functions/printf.texi: Likewise.
43838         * doc/posix-functions/putc.texi: Likewise.
43839         * doc/posix-functions/putchar.texi: Likewise.
43840         * doc/posix-functions/puts.texi: Likewise.
43841         * doc/posix-functions/vfprintf.texi: Likewise.
43842         * doc/posix-functions/vprintf.texi: Likewise.
43843
43844         * modules/safe-write (Depends-on): Add write.
43845
43846         * modules/sigpipe-tests: New file.
43847         * tests/test-sigpipe.c: New file.
43848         * tests/test-sigpipe.sh: New file.
43849
43850         * modules/write: New file.
43851         * lib/unistd.in.h: Include <sys/types.h>.
43852         (write): New declaration.
43853         * lib/write.c: New file.
43854         * m4/write.m4: New file.
43855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43856         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43857         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43858         GNULIB_WRITE, REPLACE_WRITE.
43859         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43860         and the SIGPIPE issue.
43861
43862         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43863         (raise): New declaration.
43864         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43865         (ext_signal): New function.
43866         (rpl_raise): New function.
43867         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43868         GNULIB_SIGNAL_H_SIGPIPE.
43869         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43870         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43871
43872         * modules/sigpipe: New file.
43873         * m4/sigpipe.m4: New file.
43874
43875 2008-09-25  Derek Price  <derek@ximbiot.com>
43876             Bruno Haible  <bruno@clisp.org>
43877
43878         * gnulib-tool (func_import): Report all license incompatibilities, not
43879         just the first one.
43880
43881 2008-09-25  Bruno Haible  <bruno@clisp.org>
43882
43883         * gnulib-tool (func_import): When computing the edits, consider not
43884         only the Makefile.ams that exist but also those that will be generated.
43885
43886 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43887
43888         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43889         fixes gnulib-tool --test warning about duplicate dependency.
43890
43891 2008-09-25  Bruno Haible  <bruno@clisp.org>
43892
43893         * gnulib-tool: Don't ask the user to perform edits in the generated
43894         Makefile.ams.
43895         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43896         apply to the Makefile.am being generated.
43897         (func_emit_tests_Makefile_am): Execute edits that apply to the
43898         Makefile.am being generated.
43899         (func_import): Setup list of Makefile.am edits before emitting the
43900         Makefile.ams, not at the end.
43901         (func_create_testdir): Update.
43902         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43903
43904 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43905
43906         * gnulib-tool (func_import): Store the --tests-base option in the
43907         comment in gnulib-cache.m4.
43908
43909 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43910
43911         * NEWS: Document increased portability that sys_select now provides.
43912
43913         * lib/sys_select.in.h: Install select wrapper.
43914         * lib/sys_socket.in.h: Use more descriptive name when there is no
43915         select wrapper.
43916         * lib/winsock-select.c: New.
43917         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43918         Require gl_HEADER_SYS_SOCKET.
43919         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43920         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43921         * tests/test-sys_select.c: Add functional tests.
43922
43923 2008-09-24  Eric Blake  <ebb9@byu.net>
43924
43925         open, fopen: close fd leak in last patch
43926         * lib/open.c (rpl_open): Close fd before returning error.
43927         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43928         * doc/posix-functions/open.texi (open): Document that Irix also
43929         has the bug.
43930         * doc/posix-functions/fopen.texi (fopen): Likewise.
43931         Reported by Paolo Bonzini.
43932
43933 2008-09-24  Bruno Haible  <bruno@clisp.org>
43934
43935         Ensure that a filename ending in a slash cannot be used to access a
43936         non-directory.
43937         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43938         to check whether it's really a directory.
43939         * lib/fopen.c: Include fcntl.h, unistd.h.
43940         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43941         and fdopen().
43942         * modules/fopen (Depends-on): Add unistd.
43943         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43944         * tests/test-fopen.c (main): Likewise.
43945         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43946         * doc/posix-functions/fopen.texi: Likewise.
43947         Reported by Eric Blake.
43948
43949 2008-09-23  Eric Blake  <ebb9@byu.net>
43950
43951         c-stack: avoid compiler optimizations when provoking overflow
43952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43953         recursion harder to optimize, to ensure a stack overflow occurs.
43954         * tests/test-c-stack.c (recurse): Likewise.
43955         Borrowed from libsigsegv.
43956
43957         c-stack: work around Irix sigaltstack bug
43958         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43959         whether sigaltstack uses wrong end of stack_t (copied in part from
43960         libsigsegv).
43961         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43962         Irix bug, without requiring an over-allocation.
43963         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43964         bug.
43965
43966         fopen: document mingw bug on directories
43967         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43968         not allowing a stream visiting a directory, even though reading
43969         from such a stream is not portable.
43970
43971 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43972
43973         * lib/poll.c: Rewrite.
43974         * modules/poll: Depend on alloca.
43975
43976 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43977
43978         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43979         instead define prototypes for a full set of wrappers.  Ensure
43980         that Cygwin does not use the compatibility code, which is only
43981         for MinGW.
43982         * lib/winsock.c: New.
43983         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43984         * modules/sys_socket: Add lib/winsock.c.
43985
43986         * modules/poll-tests: Add errno and perror.
43987         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43988
43989 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43990
43991         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43992
43993 2008-09-23  Bruno Haible  <bruno@clisp.org>
43994
43995         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43996         * doc/glibc-functions/*: Likewise.
43997
43998 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43999
44000         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44001         success.
44002
44003 2008-09-22  Eric Blake  <ebb9@byu.net>
44004             Bruno Haible  <bruno@clisp.org>
44005
44006         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44007         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44008         supply %A but mishandle pseudo-NaN.
44009         Reported by Simon Josefsson.
44010
44011 2008-09-21  Bruno Haible  <bruno@clisp.org>
44012
44013         * tests/test-lock.c (main): Tweak skip message.
44014         * tests/test-tls.c (main): Likewise.
44015
44016 2008-09-21  Bruno Haible  <bruno@clisp.org>
44017
44018         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44019         whether 'struct sigaction' has sa_sigaction here...
44020         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44021         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44022
44023 2008-09-21  Bruno Haible  <bruno@clisp.org>
44024
44025         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44026         section.
44027         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44028         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44029         the new section.
44030         (Support for obsolete systems lacking POSIX:2001): New section.
44031         (String handling <string.h>): Move strdup to the new section.
44032         Suggested by Simon Josefsson and Paolo Bonzini.
44033
44034 2008-09-21  Bruno Haible  <bruno@clisp.org>
44035
44036         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44037         exponents in %e and %g results on 'long double'. Needed for mingw's
44038         improved *printf functions.
44039         * tests/test-vasprintf-posix.c (test_function): Likewise.
44040         * tests/test-snprintf-posix.h (test_function): Likewise.
44041         * tests/test-sprintf-posix.h (test_function): Likewise.
44042         Reported by Eric Blake.
44043
44044 2008-09-21  Bruno Haible  <bruno@clisp.org>
44045
44046         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44047         * tests/test-sprintf-posix.h (test_function): Likewise.
44048
44049 2008-09-21  Bruno Haible  <bruno@clisp.org>
44050
44051         * modules/getpass (Depends-on): Add strdup-posix.
44052
44053         New module 'strdup-posix'.
44054         * modules/strdup-posix: New file.
44055         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44056         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44058         REPLACE_STRDUP.
44059         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44060         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44062         strdup-posix.
44063
44064         * modules/strdup (Depends-on): Remove malloc-posix.
44065
44066 2008-09-20  Bruno Haible  <bruno@clisp.org>
44067
44068         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44069         Wildenhues.
44070
44071 2008-09-20  Bruno Haible  <bruno@clisp.org>
44072
44073         Ensure that wint_t gets defined on IRIX 5.3.
44074         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44075         * lib/wctype.in.h (wint_t): Likewise.
44076         (__wctype_wint_t): Remove type.
44077         (isw*): Use wint_t instead of __wctype_wint_t.
44078         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44079         * modules/wchar (Files): Add m4/wint_t.m4.
44080         (Makefile.am): Substitute HAVE_WINT_T.
44081         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44082         * tests/test-wctype.c: Check that wint_t is defined.
44083         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44084         * doc/posix-headers/wctype.texi: Likewise.
44085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44086
44087 2008-09-18  Bruno Haible  <bruno@clisp.org>
44088
44089         * gnulib-tool (func_exit): Update comment.
44090
44091 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44092
44093         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44094         assumes strdup exists and does not depend on strdup to return
44095         ENOMEM on out of memory conditions.
44096
44097 2008-09-18  Bruno Haible  <bruno@clisp.org>
44098
44099         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44100         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44101         digits for the exponent.
44102
44103 2008-09-18  Jim Meyering  <meyering@redhat.com>
44104             Bruno Haible  <bruno@clisp.org>
44105
44106         * lib/vasnprintf.c (decimal_point_char): Define also if
44107         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44108
44109 2008-09-16  Bruno Haible  <bruno@clisp.org>
44110         and Eric Blake  <ebb9@byu.net>
44111
44112         vasnprintf: support Irix 5.3
44113         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44114         that mishandle long double infinity.
44115         Reported by Tom G. Christensen.
44116
44117 2008-09-16  Bruno Haible  <bruno@clisp.org>
44118
44119         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44120         Solaris 9.
44121         * doc/glibc-functions/alphasort.texi: Likewise.
44122         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44123
44124 2008-09-16  Jim Meyering  <meyering@redhat.com>
44125
44126         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44127         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44128         a umask modification leak out of a subshell.  Otherwise, the
44129         opensolaris /bin/sh would be accepted and thus cause unwarranted
44130         failures in the coreutils test suite.
44131
44132 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44133
44134         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44135         to succeed.
44136
44137 2008-09-16  Jim Meyering  <meyering@redhat.com>
44138
44139         avoid spurious test failure when library is built without ACL support
44140         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44141         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44142         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44143         * tests/test-copy-acl.sh: Likewise.
44144
44145 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44146
44147         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44148         based on character occurrence counts.
44149
44150 2008-09-15  Eric Blake  <ebb9@byu.net>
44151
44152         tests: avoid some compiler warnings
44153         * tests/test-memchr.c (main): Pass NULL indirectly.
44154         * tests/test-closein.c (main): Avoid unused variable.
44155
44156 2008-09-15  Bruno Haible  <bruno@clisp.org>
44157
44158         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44159         are missing on OpenBSD 4.0 individually.
44160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44161
44162 2008-09-15  Bruno Haible  <bruno@clisp.org>
44163
44164         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44165         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44166         * doc/posix-functions/perror.texi: Likewise.
44167         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44168         is missing.
44169         Reported by Eric Blake.
44170
44171         * lib/errno.in.h: Use replacement values >= 2000.
44172         Reported by Eric Blake.
44173
44174 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44175
44176         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44177         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44178         limit.
44179         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44180         compareseq was aborted.
44181
44182 2008-09-14  Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44185         yvec_edit_count.
44186         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44187         (fstrcmp_bounded): Simplify result computation accordingly.
44188
44189 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44190
44191         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44192         (fstrcmp): Define in terms of fstrcmp_bounded.
44193         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44194         lower_bound argument.
44195         Return quickly if the result is certainly < lower_bound.
44196         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44197
44198 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44199
44200         * lib/diffseq.h (EARLY_ABORT): New macro.
44201         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44202         evaluates to true.
44203
44204 2008-09-14  Bruno Haible  <bruno@clisp.org>
44205
44206         * modules/perror-tests: New file.
44207         * tests/test-perror.sh: New file.
44208         * tests/test-perror.c: New file.
44209
44210         New module 'perror'.
44211         * lib/stdio.in.h (perror): New declaration.
44212         * lib/perror.c: New file.
44213         * m4/perror.m4: New file.
44214         * modules/perror: New file.
44215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44216         * doc/posix-functions/perror.texi: Mention the perror module.
44217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44218         REPLACE_PERROR.
44219         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44220         REPLACE_PERROR.
44221
44222 2008-09-14  Bruno Haible  <bruno@clisp.org>
44223
44224         * modules/stdio (Makefile.am): Reorder to match the order in
44225         lib/stdio.in.h.
44226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44227
44228 2008-09-13  Bruno Haible  <bruno@clisp.org>
44229
44230         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44231
44232 2008-09-13  Bruno Haible  <bruno@clisp.org>
44233
44234         Extend strerror to cover the added errno values.
44235         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44236         (rpl_strerror): Provide error messages for the added errno values and
44237         for the WSA* values.
44238         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44239         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44240         strerror.
44241         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44242         * modules/strerror (Depends-on): Add errno.
44243         * doc/posix-functions/strerror.texi: Document the change.
44244         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44245         and EOVERFLOW.
44246
44247 2008-09-13  Bruno Haible  <bruno@clisp.org>
44248
44249         * modules/EOVERFLOW: Remove file.
44250         * m4/eoverflow.m4: Remove file.
44251         * modules/EOVERFLOW-tests: Remove file.
44252         * tests/test-EOVERFLOW.c: Remove file.
44253         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44254         * modules/ftell (Depends-on): Likewise.
44255         * modules/getdelim (Depends-on): Likewise.
44256         * modules/getugroups (Depends-on): Likewise.
44257         * modules/poll (Depends-on): Likewise.
44258         * modules/snprintf (Depends-on): Likewise.
44259         * modules/sprintf-posix (Depends-on): Likewise.
44260         * modules/vasnprintf (Depends-on): Likewise.
44261         * modules/vasprintf (Depends-on): Likewise.
44262         * modules/vfprintf-posix (Depends-on): Likewise.
44263         * modules/vsnprintf (Depends-on): Likewise.
44264         * modules/vsprintf-posix (Depends-on): Likewise.
44265         * modules/xvasprintf (Depends-on): Likewise.
44266         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44267         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44268         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44269         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44270         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44271         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44272         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44273         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44274         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44275         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44276         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44277         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44279         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44280         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44281         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44282         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44283         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44284         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44285         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44286         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44287         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44288         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44289         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44290         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44291         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44292         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44293         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44294         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44295         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44296         * MODULES.html.sh: Remove EOVERFLOW.
44297         * NEWS: Mention the change.
44298
44299 2008-09-13  Bruno Haible  <bruno@clisp.org>
44300
44301         * modules/errno-tests: New file.
44302         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44303
44304         * lib/errno.in.h: New file.
44305         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44306         * modules/errno: New file.
44307         * doc/posix-headers/errno.texi: Update documentation.
44308         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44309
44310 2008-09-13  Bruno Haible  <bruno@clisp.org>
44311
44312         * tests/test-poll.c: Use #if for native Windows, rather than testing
44313         __MSVCRT__.
44314
44315 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44316             Bruno Haible  <bruno@clisp.org>
44317
44318         * lib/glob.c: Don't include <pwd.h> on native Windows.
44319         (WINDOWS32): New macro.
44320         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44321
44322 2008-09-13  Bruno Haible  <bruno@clisp.org>
44323
44324         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44325         (ETIMEDOUT): Remove macro.
44326         (glthread_cond_timedwait_multithreaded): New declaration.
44327         (glthread_cond_timedwait): Use it.
44328         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44329         (glthread_cond_timedwait_multithreaded): New function.
44330
44331 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44332
44333         * modules/poll-tests: Do not check for io.h.
44334         * tests/test-poll.c: Check for __MSVCRT__ instead.
44335
44336 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44337
44338         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44339         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44340         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44341
44342 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44343
44344         * modules/poll-tests: New.
44345         * tests/test-poll.c: New.
44346
44347 2008-09-12  Eric Blake  <ebb9@byu.net>
44348
44349         frexp: test for NetBSD failure on -0.0
44350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44351         not all, bugs from NetBSD 3.0 have been fixed.
44352         * doc/posix-functions/frexp.texi (frexp): Document bug.
44353         Reported by Thomas Klausner.
44354
44355         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44356         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44357         literal -0.0.
44358         Reported by Jonathan C. Patschke <jp@centtech.com>.
44359
44360 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44361
44362         * lib/glthread/cond.h: Use dummy implementation also if
44363         USE_WIN32_THREADS.
44364
44365 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44366
44367         * modules/fnmatch-posix (License): Change to LGPLv2+.
44368         * modules/fnmatch-gnu (License): Likewise.
44369
44370 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44371
44372         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44373
44374 2008-09-11  Jim Meyering  <meyering@redhat.com>
44375
44376         * users.txt: Add gtk-vnc.
44377
44378 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44379
44380         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44381         rotate amounts.
44382
44383         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44384         required for 16-bit and 8-bit rotates.
44385         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44386         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44387         UINT8_MAX instead of hard-coded constants.
44388         Suggested by Paul Eggert.
44389
44390 2008-09-07  Bruno Haible  <bruno@clisp.org>
44391
44392         * tests/test-striconveh.c (main): Check behaviour when converting from
44393         UTF-7.
44394
44395         Make striconveh work better with stateful encodings.
44396         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44397         that iconv does not increment the inptr when returning -1/EINVAL.
44398
44399 2008-09-07  Bruno Haible  <bruno@clisp.org>
44400
44401         * build-aux/config.rpath: Update according to libtool-2.2.6.
44402         * build-aux/config.libpath: Likewise.
44403
44404 2008-09-06  Bruno Haible  <bruno@clisp.org>
44405
44406         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44407         * lib/freadptr.c (freadptr): Likewise.
44408         * lib/freadseek.c (freadptrinc): Likewise.
44409         Reported by Simon Josefsson.
44410
44411 2008-09-06  Bruno Haible  <bruno@clisp.org>
44412
44413         * modules/freadptr (License): Change to LGPLv2+.
44414         * modules/freadseek (License): Likewise.
44415         Suggested by Eric Blake.
44416
44417         * modules/memchr2 (License): Change to LGPLv2+.
44418         Approved by Eric Blake.
44419
44420 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44421             Bruno Haible  <bruno@clisp.org>
44422
44423         Make gnulib-tool work with native 'sed' on AIX.
44424         * gnulib-tool (sed_noop): New variable.
44425         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44426         func_add_or_update, func_create_testdir): Use it to initialize sed
44427         script variables.
44428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44429
44430 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44431             Bruno Haible  <bruno@clisp.org>
44432
44433         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44434         also works after #include directives.
44435
44436 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44437
44438         getdate.y: reject an out-of-range timezone value
44439         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44440         the range [-24...+24].  When specified with only one or two digits,
44441         * tests/test-getdate.c: Tests for the fix.
44442         * doc/getdate.texi: Document this change.
44443
44444 2008-09-03  Bruno Haible  <bruno@clisp.org>
44445
44446         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44447
44448 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44449
44450         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44451         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44452         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44453         Blake <ebb9@byu.net>.
44454
44455         * tests/test-bitrotate.c: Add more test vectors.
44456
44457 2008-09-02  Eric Blake  <ebb9@byu.net>
44458
44459         vasnprintf-posix: handle large precision via %.*d
44460         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44461         when handling it ourselves.
44462         * tests/test-vasnprintf-posix.c (test_function): Add test.
44463         * tests/test-snprintf-posix.h (test_function): Likewise.
44464         * tests/test-sprintf-posix.h (test_function): Likewise.
44465         * tests/test-vasprintf-posix.c (test_function): Likewise.
44466         Reported by Alain Guibert.
44467
44468 2008-09-01  Eric Blake  <ebb9@byu.net>
44469
44470         c-stack: make configure-time check more robust
44471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44472         successful sigaction call.
44473         Reported by Tom G. Christensen.
44474
44475 2008-09-01  Bruno Haible  <bruno@clisp.org>
44476
44477         New module 'findprog-lgpl'.
44478         * modules/findprog-lgpl: New file.
44479         * lib/findprog-lgpl.c: New file.
44480         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44481         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44482         to decide whether to use strdup or xstrdup, concatenated_filename or
44483         xconcatenated_filename.
44484
44485 2008-09-01  Bruno Haible  <bruno@clisp.org>
44486
44487         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44488         'xconcat-filename' (GPL).
44489         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44490         (License): Change to LGPLv2+.
44491         * modules/xconcat-filename: New file.
44492         * lib/concat-filename.h (concatenated_filename): Change specification.
44493         (xconcatenated_filename): New declaration.
44494         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44495         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44496         memory situations.
44497         * lib/xconcat-filename.c: New file.
44498         * NEWS: Mention the change.
44499         * lib/findprog.c: Include concat-filename.h, not filename.h.
44500         (find_in_path): Use xconcatenated_filename instead of
44501         concatenated_filename.
44502         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44503         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44504         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44505         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44506         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44507         instead of concatenated_filename.
44508         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44509         (execute_java_class): Use xconcatenated_filename instead of
44510         concatenated_filename.
44511         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44512         * modules/javacomp (Depends-on): Likewise.
44513         * modules/javaexec (Depends-on): Likewise.
44514
44515 2008-09-01  Bruno Haible  <bruno@clisp.org>
44516
44517         Split module 'filename' into 'filename' and 'concat-filename'.
44518         * modules/filename: Keep only lib/filename.h.
44519         (License): Change to LGPLv2+.
44520         * modules/concat-filename: New file, extracted from modules/filename.
44521         * lib/filename.h (concatenated_filename): Remove declaration.
44522         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44523         * lib/concat-filename.c: Include concat-filename.h.
44524         * NEWS: Mention the change.
44525
44526 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44527
44528         * lib/bitrotate.h (rotl8, rotr8): Add.
44529
44530         * modules/bitrotate (configure.ac): Need
44531         AC_REQUIRE([AC_C_INLINE]).
44532         (Description): Mention stdint.h.  Reported by Bruno Haible
44533         <bruno@clisp.org>.
44534
44535         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44536         Paolo Bonzini <bonzini@gnu.org>.
44537
44538 2008-08-31  Bruno Haible  <bruno@clisp.org>
44539
44540         Assume Solaris specific bi-arch conventions on Solaris systems.
44541         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44542         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44544         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44545         like acl_libdirstem.
44546         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44547         acl_libdirstem.
44548         * NEWS: Mention the change.
44549         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44550
44551 2008-08-31  Jim Meyering  <meyering@redhat.com>
44552
44553         * lib/strftime.h: Add comments describing the two added arguments.
44554
44555         remove duplicate #include directives
44556         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44557         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44558
44559 2008-08-31  Bruno Haible  <bruno@clisp.org>
44560
44561         New module 'sigpipe-die'.
44562         * modules/sigpipe-die: New file.
44563         * lib/sigpipe-die.h: New file.
44564         * lib/sigpipe-die.c: New file.
44565         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44566
44567 2008-08-31  Bruno Haible  <bruno@clisp.org>
44568
44569         Don't override previously installed signal handlers.
44570         * lib/fatal-signal.c (saved_sigactions): New variable.
44571         (uninstall_handlers): Reset the signal to the saved handler, not
44572         to SIG_DFL (except when ignored).
44573         (install_handlers): Save the previous handlers.
44574
44575 2008-08-30  Bruno Haible  <bruno@clisp.org>
44576
44577         * gnulib-tool (func_reset_sigpipe): New function.
44578         (func_get_automake_snippet, func_modules_transitive_closure,
44579         func_import): Invoke it before a join command that reads from stdin,
44580         to avoid "echo: write error: Broken pipe" error messages on stderr.
44581         Reported by Sam Steingold <sds@gnu.org>.
44582
44583 2008-08-30  Bruno Haible  <bruno@clisp.org>
44584
44585         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44586         Code copied from m4/open.m4.
44587         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44588         access and the filename ends in a slash. Code copied from lib/open.c.
44589         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44590         * tests/test-fopen.c (main): Check against bug with trailing slash.
44591
44592 2008-08-29  Bruno Haible  <bruno@clisp.org>
44593
44594         Avoid some "gcc -pedantic" warnings.
44595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44596         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44597         * lib/dirent.in.h: Likewise.
44598         * lib/fcntl.in.h: Likewise.
44599         * lib/float.in.h: Likewise.
44600         * lib/iconv.in.h: Likewise.
44601         * lib/inttypes.in.h: Likewise.
44602         * lib/locale.in.h: Likewise.
44603         * lib/math.in.h: Likewise.
44604         * lib/netinet_in.in.h: Likewise.
44605         * lib/search.in.h: Likewise.
44606         * lib/signal.in.h: Likewise.
44607         * lib/stdarg.in.h: Likewise.
44608         * lib/stdint.in.h: Likewise.
44609         * lib/stdio.in.h: Likewise.
44610         * lib/stdlib.in.h: Likewise.
44611         * lib/string.in.h: Likewise.
44612         * lib/strings.in.h: Likewise.
44613         * lib/sys_select.in.h: Likewise.
44614         * lib/sys_socket.in.h: Likewise.
44615         * lib/sys_stat.in.h: Likewise.
44616         * lib/sys_time.in.h: Likewise.
44617         * lib/sysexits.in.h: Likewise.
44618         * lib/time.in.h: Likewise.
44619         * lib/unistd.in.h: Likewise.
44620         * lib/wchar.in.h: Likewise.
44621         * lib/wctype.in.h: Likewise.
44622         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44623         * modules/fchdir (Makefile.am): Likewise.
44624         * modules/fcntl (Makefile.am): Likewise.
44625         * modules/float (Makefile.am): Likewise.
44626         * modules/iconv_open (Makefile.am): Likewise.
44627         * modules/inttypes (Makefile.am): Likewise.
44628         * modules/locale (Makefile.am): Likewise.
44629         * modules/math (Makefile.am): Likewise.
44630         * modules/netinet_in (Makefile.am): Likewise.
44631         * modules/search (Makefile.am): Likewise.
44632         * modules/signal (Makefile.am): Likewise.
44633         * modules/stdarg (Makefile.am): Likewise.
44634         * modules/stdint (Makefile.am): Likewise.
44635         * modules/stdio (Makefile.am): Likewise.
44636         * modules/stdlib (Makefile.am): Likewise.
44637         * modules/string (Makefile.am): Likewise.
44638         * modules/strings (Makefile.am): Likewise.
44639         * modules/sys_select (Makefile.am): Likewise.
44640         * modules/sys_socket (Makefile.am): Likewise.
44641         * modules/sys_stat (Makefile.am): Likewise.
44642         * modules/sys_time (Makefile.am): Likewise.
44643         * modules/sysexits (Makefile.am): Likewise.
44644         * modules/time (Makefile.am): Likewise.
44645         * modules/unistd (Makefile.am): Likewise.
44646         * modules/wchar (Makefile.am): Likewise.
44647         * modules/wctype (Makefile.am): Likewise.
44648         Reported by Reuben Thomas <rrt@sc3d.org>.
44649
44650 2008-08-29  Bruno Haible  <bruno@clisp.org>
44651
44652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44653         any more.
44654
44655 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44656
44657         * MODULES.html.sh (Misc): Add bitrotate.
44658
44659         * modules/bitrotate: New file.
44660
44661         * lib/bitrotate.h: New file.
44662
44663         * modules/bitrotate-tests: New file.
44664
44665         * tests/test-bitrotate.c: New file.
44666
44667         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44668         on the bitrotate module.
44669
44670         * lib/arctwo.c: Use new bitrotate module.
44671
44672 2008-08-29  Jim Meyering  <meyering@redhat.com>
44673
44674         bootstrap: merge changes from coreutils
44675         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44676         of copied files.  Remove a kludge, now that this is fixed.
44677         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44678         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44679         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44680
44681 2008-08-29  Bruno Haible  <bruno@clisp.org>
44682
44683         * MODULES.html.sh: Remove --cvs-urls option.
44684
44685 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44686
44687         maint.mk: adjust to file name change
44688         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44689
44690 2008-08-28  Jim Meyering  <meyering@redhat.com>
44691
44692         * modules/getndelim2 (License): Relicense to LGPLv2+.
44693         Approved by Richard Stallman for the version of 1995, and by
44694         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44695
44696 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44697
44698         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44699         dummy if one is not available.  Do not touch them if
44700         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44701         (getc_maybe_unlocked): New.
44702         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44703
44704 2008-08-26  Eric Blake  <ebb9@byu.net>
44705
44706         doc/INSTALL: resync from autoconf
44707         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44708         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44709         moving...
44710         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44711         * INSTALL: Regenerate.
44712         * INSTALL.ISO: New file.
44713         * INSTALL.UTF-8: Likewise.
44714
44715 2008-08-26  Jim Meyering  <meyering@redhat.com>
44716
44717         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44718         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44719         these definitions conditional, so that they may be overridden, too.
44720
44721 2008-08-26  Bruno Haible  <bruno@clisp.org>
44722
44723         Generate INSTALL file variants with prettier quotes.
44724         * doc/Makefile (INSTALL_PRELUDE): New macro.
44725         (INSTALL): Use it.
44726         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44727
44728 2008-08-26  Bruno Haible  <bruno@clisp.org>
44729
44730         Run makeinfo in an English locale.
44731         * doc/Makefile (MAKEINFO): New variable.
44732
44733 2008-08-26  Bruno Haible  <bruno@clisp.org>
44734
44735         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44736         Suggested by Eric Blake.
44737
44738 2008-08-25  Bruno Haible  <bruno@clisp.org>
44739
44740         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44741
44742 2008-08-25  Eric Blake  <ebb9@byu.net>
44743
44744         c-stack: test that stack overflow can be caught
44745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44746         that platform allows handling stack overflow; at least OS/2 EMX
44747         has sigaltstack, but crashes before transferring control to
44748         handler on stack overflow.
44749         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44750         check for HAVE_STACK_OVERFLOW_HANDLING.
44751         Reported by Elbert Pol.
44752
44753 2008-08-25  Bruno Haible  <bruno@clisp.org>
44754
44755         * doc/posix-functions/strftime.texi: Fix description of strftime
44756         module.
44757
44758 2008-08-24  Bruno Haible  <bruno@clisp.org>
44759
44760         * tests/uniwidth/test-uc_width2.c: New file.
44761         * tests/uniwidth/test-uc_width2.sh: New file.
44762         * modules/uniwidth/width-tests (Files): Add the new files.
44763         (TESTS): Add uniwidth/test-uc_width2.sh.
44764         (TESTS_ENVIRONMENT): New variable.
44765         (check_PROGRAMS): Add test-uc_width2.
44766         (test_uc_width2_SOURCES): New variable.
44767
44768         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44769         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44770         not 0x00AB.
44771         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44772
44773 2008-08-22  Eric Blake  <ebb9@byu.net>
44774
44775         test-lock, test-tls: mention why a test is skipped
44776         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44777         skipped.
44778         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44779
44780         count-one-bits: relax license
44781         * modules/count-one-bits (License): Relicense to LGPLv2+.
44782         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44783
44784 2008-08-22  Andreas Schwab  <schwab@suse.de>
44785
44786         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44787         Remove spurious space in assignment.
44788
44789 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44790
44791         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44792         Paul Eggert <eggert@CS.UCLA.EDU>.
44793
44794 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44795
44796         * modules/gettext: Add m4/threadlib.m4.
44797
44798 2008-08-19  Eric Blake  <ebb9@byu.net>
44799
44800         test-c-stack: fix compilation failure on FreeBSD 5.0
44801         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44802         headers before <sys/resource.h>.
44803         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44804         the bug.
44805         Reported by Nelson H. F. Beebe.
44806
44807         strverscmp: migrate from "strverscmp.h" to <string.h>
44808         * modules/string (Makefile.am): Add new hooks.
44809         * modules/strverscmp (Files): Remove strverscmp.h.
44810         (Depends-on): Add string.
44811         (configure.ac): Add indicator.
44812         (Include): Mention new header.
44813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44814         defaults.
44815         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44816         results.
44817         * lib/strverscmp.h: Delete.
44818         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44819         * tests/test-strverscmp.c (includes): Adjust client.
44820         * lib/check-version.c (includes): Likewise.
44821         * NEWS: Document the change.
44822
44823         strverscmp: add unit test
44824         * modules/strverscmp-tests: New file.
44825         * tests/test-strverscmp.c: Likewise.
44826
44827 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44828
44829         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44830         regarding Windows crypto stuff, from Mono.
44831
44832 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44833
44834         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44835         if present, for intel RND.  Return error on failures.
44836
44837 2008-08-18  Ben Pfaff  <blp@gnu.org>
44838
44839         gitlog-to-changelog: give better diagnostic for failed pipe-open
44840         * build-aux/gitlog-to-changelog: Improve error message: suggest
44841         that the version of Git may be too old.
44842
44843 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44844
44845         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44846         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44847
44848 2008-08-18  Bruno Haible  <bruno@clisp.org>
44849
44850         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44851         pthread_in_use().
44852
44853 2008-08-18  Bruno Haible  <bruno@clisp.org>
44854
44855         * lib/glthread/threadlib.c: Include <pthread.h>.
44856
44857 2008-08-18  Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44860         glthread_recursive_lock_* macros.
44861         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44862         Fix syntax error.
44863
44864 2008-08-18  Bruno Haible  <bruno@clisp.org>
44865
44866         * lib/glthread/thread.c: Avoid forcing a context switch right after
44867         thread creation.
44868
44869 2008-08-17  Bruno Haible  <bruno@clisp.org>
44870
44871         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44872         * lib/glthread/thread.h: Provide Win32 specific implementation.
44873         * modules/thread (Files): Add lib/glthread/thread.c.
44874         (Depends-on): Add lock.
44875         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44876
44877 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44878
44879         New module 'yield'.
44880         * modules/yield: New file.
44881         * lib/glthread/yield.h: New file.
44882         * m4/yield.m4: New file.
44883         * MODULES.html.sh (Multithreading): Add yield.
44884
44885 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44886
44887         New module 'thread'.
44888         * modules/thread: New file.
44889         * lib/glthread/thread.h: New file.
44890         * m4/thread.m4: New file.
44891         * MODULES.html.sh (Multithreading): Add thread.
44892
44893 2008-08-17  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/glthread/lock.h: Include <stdlib.h> always.
44896         * lib/glthread/tls.h: Likewise.
44897         * lib/glthread/cond.h: Likewise.
44898
44899 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44900
44901         New module 'cond'.
44902         * modules/cond: New file.
44903         * lib/glthread/cond.h: New file.
44904         * lib/glthread/cond.c: New file.
44905         * m4/cond.m4: New file.
44906         * MODULES.html.sh (Multithreading): Add cond.
44907
44908 2008-08-16  Eric Blake  <ebb9@byu.net>
44909
44910         c-stack: fix regression on Irix 5.3 from 2008-06-21
44911         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44912         sa_sigaction...
44913         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44914         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44915         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44916         * modules/signal (Makefile.am): Use the value.
44917         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44918         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44919         * doc/posix-headers/signal.texi (signal.h): Document this
44920         portability issue.
44921         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44922         Reported by Tom G. Christensen.
44923
44924 2008-08-17  Bruno Haible  <bruno@clisp.org>
44925
44926         New module 'threadlib'.
44927         * modules/threadlib: New file.
44928         * lib/glthread/threadlib.c: New file, extracted from
44929         lib/glthread/lock.c.
44930         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44931         functions.
44932         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44933         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44934         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44935         macros.
44936         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44937         (gl_DISABLE_THREADS): Remove macro.
44938         * modules/lock (Files): Remove build-aux/config.rpath.
44939         (Depends-on): Remove havelib. Add threadlib.
44940         (configure.ac-early): Remove section.
44941         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44942         * modules/tls (Depends-on): Remove lock. Add threadlib.
44943         (Link): New section, copied from threadlib.
44944         * MODULES.html.sh (Multithreading): Add threadlib.
44945
44946 2008-08-14  Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44949         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44950         glthread_rwlock_unlock, glthread_rwlock_destroy,
44951         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44952         glthread_recursive_lock_destroy): Define as macros always.
44953         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44954         glthread_lock_lock.
44955         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44956         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44957         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44958         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44959         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44960         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44961         (glthread_recursive_lock_lock_func): Renamed from
44962         glthread_recursive_lock_lock.
44963         (glthread_recursive_lock_unlock_func): Renamed from
44964         glthread_recursive_lock_unlock.
44965         (glthread_recursive_lock_destroy_func): Renamed from
44966         glthread_recursive_lock_destroy.
44967
44968 2008-08-14  Bruno Haible  <bruno@clisp.org>
44969
44970         * lib/glthread/lock.h: Renamed from lib/lock.h.
44971         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44972         * lib/glthread/tls.h: Renamed from lib/tls.h.
44973         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44974         * lib/fstrcmp.c: Update includes.
44975         * lib/strsignal.c: Update includes.
44976         * modules/lock (Files, Makefile.am): Update.
44977         (Include): Change to "glthread/lock.h".
44978         * modules/tls (Files, Makefile.am): Update.
44979         (Include): Change to "glthread/tls.h".
44980         * tests/test-lock.c: Update includes.
44981         * tests/test-tls.c: Update includes.
44982         * NEWS: Mention the renamed header files.
44983
44984 2008-08-11  Jim Meyering  <meyering@redhat.com>
44985
44986         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44987
44988 2008-08-11  Eric Blake  <ebb9@byu.net>
44989
44990         test-c-stack: avoid C99-ism
44991         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44992         before statement.
44993         Reported by Alain Guibert.
44994
44995 2008-08-10  Jim Meyering  <meyering@redhat.com>
44996
44997         ensure that return value of uinttostr et al are not ignored
44998         * lib/inttostr.h (__GNUC_PREREQ): Define.
44999         (__attribute_warn_unused_result__): Define.
45000         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45001
45002 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45003
45004         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45005         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45006
45007 2008-08-07  Jim Meyering  <meyering@redhat.com>
45008
45009         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45010
45011         * modules/mkstemp (License): Relicense under LGPLv2+.
45012         * modules/tempname (License): Likewise.
45013
45014 2008-08-06  Bruno Haible  <bruno@clisp.org>
45015
45016         * lib/poll.c (poll): Further micro-optimization.
45017
45018 2008-08-06  Jim Meyering  <meyering@redhat.com>
45019
45020         inet_pton.c: use locale-independent tolower
45021         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45022         (inet_pton6): Use c_tolower rather than tolower.
45023         * modules/inet_pton (Depends-on): Add c-ctype.
45024
45025 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45026
45027         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45028         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45029
45030 2008-08-06  Jim Meyering  <meyering@redhat.com>
45031
45032         * modules/inet_pton (License): Relicense under LGPLv2+.
45033
45034 2008-08-03  Bruno Haible  <bruno@clisp.org>
45035
45036         Additional non-aborting API for lock and tls.
45037         * lib/lock.h: Include <errno.h>.
45038         (glthread_lock_init): New macro/function.
45039         (gl_lock_init): Define as wrapper around glthread_lock_init.
45040         (glthread_lock_lock): New macro/function.
45041         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45042         (glthread_lock_unlock): New macro/function.
45043         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45044         (glthread_lock_destroy): New macro/function.
45045         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45046         (glthread_rwlock_init): New macro/function.
45047         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45048         (glthread_rwlock_rdlock): New macro/function.
45049         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45050         (glthread_rwlock_wrlock): New macro/function.
45051         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45052         (glthread_rwlock_unlock): New macro/function.
45053         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45054         (glthread_rwlock_destroy): New macro/function.
45055         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45056         (glthread_recursive_lock_init): New macro/function.
45057         (gl_recursive_lock_init): Define as wrapper around
45058         glthread_recursive_lock_init.
45059         (glthread_recursive_lock_lock): New macro/function.
45060         (gl_recursive_lock_lock): Define as wrapper around
45061         glthread_recursive_lock_lock.
45062         (glthread_recursive_lock_unlock): New macro/function.
45063         (gl_recursive_lock_unlock): Define as wrapper around
45064         glthread_recursive_lock_unlock.
45065         (glthread_recursive_lock_destroy): New macro/function.
45066         (gl_recursive_lock_destroy): Define as wrapper around
45067         glthread_recursive_lock_destroy.
45068         (glthread_once): New macro/function.
45069         (gl_once): Define as wrapper around glthread_once.
45070         Update function declarations.
45071         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45072         glthread_rwlock_init. Return error code.
45073         (glthread_rwlock_rdlock_multithreaded): Renamed from
45074         glthread_rwlock_rdlock. Return error code.
45075         (glthread_rwlock_wrlock_multithreaded): Renamed from
45076         glthread_rwlock_wrlock. Return error code.
45077         (glthread_rwlock_unlock_multithreaded): Renamed from
45078         glthread_rwlock_unlock. Return error code.
45079         (glthread_rwlock_destroy_multithreaded): Renamed from
45080         glthread_rwlock_destroy. Return error code.
45081         (glthread_recursive_lock_init_multithreaded): Renamed from
45082         glthread_recursive_lock_init. Return error code.
45083         (glthread_recursive_lock_lock_multithreaded): Renamed from
45084         glthread_recursive_lock_lock. Return error code.
45085         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45086         glthread_recursive_lock_unlock. Return error code.
45087         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45088         glthread_recursive_lock_destroy. Return error code.
45089         (glthread_once_call): Make static.
45090         (glthread_once_multithreaded): Renamed from glthread_once.
45091         * lib/tls.h: Include <errno.h>.
45092         (glthread_tls_key_init): New macro/function.
45093         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45094         (glthread_tls_set): New macro/function.
45095         (gl_tls_set): Define as wrapper around glthread_tls_set.
45096         (glthread_tls_key_destroy): New macro/function.
45097         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45098         Update function declarations.
45099         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45100         glthread_tls_get.
45101         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45102
45103 2008-08-04  Eric Blake  <ebb9@byu.net>
45104
45105         gnumakefile: use space, not TAB, outside of targets
45106         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45107
45108 2008-08-02  Jim Meyering  <meyering@redhat.com>
45109
45110         getdate.y: avoid locale-dependent date parsing failure
45111         In Turkish locales, getdate would fail to recognize keywords
45112         containing a lowercase "i".  The solution is not to rely on
45113         locale-sensitive case-conversion.
45114         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45115         (lookup_word): Use c_toupper in place of toupper.
45116         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45117         Reported by Vefa Bicakci <bicave@superonline.com> in
45118         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45119         * modules/getdate (Depends-on): Add c-ctype.
45120
45121 2008-08-02  Bruno Haible  <bruno@clisp.org>
45122
45123         * gnulib-tool (func_import): When updating or creating a .gitignore
45124         file, prepend each added line with a slash, and ignore leading slashes
45125         from the existing lines.
45126         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45127
45128 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45129
45130         Portability fix for GNU make 3.79.1.
45131         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45132         versions do not understand.
45133
45134 2008-08-01  Bruno Haible  <bruno@clisp.org>
45135
45136         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45137         * tests/test-isnanf.h (zero): New variable.
45138         (main): Avoid literal -0.0f.
45139         * tests/test-isnand.h (zero): New variable.
45140         (main): Avoid literal -0.0.
45141         * tests/test-isnanl.h (zero): New variable.
45142         (main): Avoid literal -0.0L.
45143         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45144         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45145         -0.0, -0.0L.
45146         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45147         (test_signbitd): Avoid literal -0.0.
45148         (test_signbitl): Avoid literal -0.0L.
45149         * tests/test-ceilf1.c (zero): New variable.
45150         (main): Avoid literal -0.0f.
45151         * tests/test-ceill.c (zero): New variable.
45152         (main): Avoid literal -0.0L.
45153         * tests/test-floorf1.c (zero): New variable.
45154         (main): Avoid literal -0.0f.
45155         * tests/test-floorl.c (zero): New variable.
45156         (main): Avoid literal -0.0L.
45157         * tests/test-roundf1.c (zero): New variable.
45158         (main): Avoid literal -0.0f.
45159         * tests/test-round1.c (zero): New variable.
45160         (main): Avoid literal -0.0.
45161         * tests/test-roundl.c (zero): New variable.
45162         (main): Avoid literal -0.0L.
45163         * tests/test-truncf1.c (zero): New variable.
45164         (main): Avoid literal -0.0f.
45165         * tests/test-trunc1.c (zero): New variable.
45166         (main): Avoid literal -0.0.
45167         * tests/test-truncl.c (zero): New variable.
45168         (main): Avoid literal -0.0L.
45169         * tests/test-frexp.c (zero): New variable.
45170         (main): Avoid literal -0.0.
45171         * tests/test-frexpl.c (zero): New variable.
45172         (main): Avoid literal -0.0L.
45173         * tests/test-ldexpl.c (zero): New variable.
45174         (main): Avoid literal -0.0L.
45175         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45176         (zerod, zerol): New variables.
45177         (test_function): Avoid literals -0.0, -0.0L.
45178         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45179         (zerod, zerol): New variables.
45180         (test_function): Avoid literals -0.0, -0.0L.
45181         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45182         (zerod, zerol): New variables.
45183         (test_function): Avoid literals -0.0, -0.0L.
45184         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45185         (zerod, zerol): New variables.
45186         (test_function): Avoid literals -0.0, -0.0L.
45187         * tests/test-strtod.c (zero): New variable.
45188         (main): Avoid literal -0.0.
45189         Reported by Jonathan C. Patschke <jp@centtech.com>.
45190
45191 2008-07-31  Jim Meyering  <meyering@redhat.com>
45192
45193         sha256.h: correct definition of SHA224_DIGEST_SIZE
45194         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45195         Reported by Paulie Pena IV <paulie4@gmail.com>.
45196         Define as 224 / 8, rather than as a literal.
45197         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45198         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45199         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45200
45201 2008-07-31  Bruno Haible  <bruno@clisp.org>
45202
45203         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45204         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45205         Reported by Jonathan Patschke <jp@centtech.com>.
45206
45207 2008-07-31  Bruno Haible  <bruno@clisp.org>
45208
45209         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45210         Reported by Paolo Bonzini <bonzini@gnu.org>.
45211
45212 2008-07-30  Eric Blake  <ebb9@byu.net>
45213
45214         test-strtod: allow compilation without -lm
45215         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45216         Reported by Dennis Clarke <blastwave@gmail.com>.
45217
45218 2008-07-28  Jim Meyering  <meyering@redhat.com>
45219
45220         bootstrap: work also when there are no .po files in po/
45221         * build-aux/bootstrap (update_po_files): Complete the change
45222         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45223
45224 2008-07-27  Jim Meyering  <meyering@redhat.com>
45225
45226         * users.txt: Add zile.
45227
45228 2008-07-26  Ben Pfaff  <blp@gnu.org>
45229
45230         Add missing dependencies on new m4/exponent[fdl].m4 files.
45231         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45232         * modules/isnand-nolibm: Add m4/exponentd.m4.
45233         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45234         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45235         m4/isnan[fdl].m4, because the macros actually used moved.
45236         Reported by Jim Meyering.
45237
45238 2008-07-14  Ben Pfaff  <blp@gnu.org>
45239
45240         Add isinf module.
45241         * lib/isinf.c: New file.
45242         * lib/math.in.h: Define isinf macro if we have decided to replace
45243         it.
45244         * m4/isinf.m4: New file.
45245         * m4/math_h.m4: Initialize and substitute variables for isinf
45246         module.
45247         * modules/isinf: New file.
45248         * modules/isinf-tests: New file.
45249         * modules/math: Add substitutions for new module.
45250         * tests/test-isinf.c: New file.
45251         * doc/posix-functions/isinf.texi: Mention new module.
45252         * MODULES.html.sh: Mention new module.
45253
45254 2008-07-14  Ben Pfaff  <blp@gnu.org>
45255
45256         Factor out some macros for use by additional modules.
45257         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45258         exponentf.m4.
45259         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45260         exponentd.m4.
45261         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45262         file exponentl.m4.
45263         * m4/exponentf.m4: New file.
45264         * m4/exponentd.m4: New file.
45265         * m4/exponentl.m4: New file.
45266         * modules/isnanf: Use new file m4/exponentf.m4.
45267         * modules/isnand: Use new file m4/exponentd.m4.
45268         * modules/isnanl: Use new file m4/exponentl.m4.
45269
45270 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45271
45272         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45273         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45274         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45275         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45276
45277         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45278         readlink on platforms without PATH_MAX.
45279
45280 2008-07-21  Eric Blake  <ebb9@byu.net>
45281
45282         Warn, not fail, on stale version.
45283         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45284
45285         Don't allow installation with stale devel version number.
45286         * top/GNUmakefile (_is-install-target): New macro.
45287         (_curr-ver): Forbid installation with stale version number.
45288
45289 2008-07-20  Bruno Haible  <bruno@clisp.org>
45290
45291         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45292         TESTS_ENVIRONMENT.
45293         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45294
45295 2008-07-20  Bruno Haible  <bruno@clisp.org>
45296
45297         * lib/c-stack.h (c_stack_action): Add documentation.
45298         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45299
45300 2008-07-20  Bruno Haible  <bruno@clisp.org>
45301
45302         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45303         * modules/readlink (License): Likewise.
45304
45305 2008-07-17  Eric Blake  <ebb9@byu.net>
45306
45307         * modules/c-stack (Link): Fix typo.
45308
45309         Make c-stack use libsigsegv, when available.
45310         * modules/c-stack (Depends-on): Add libsigsegv.
45311         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45312         needed.
45313         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45314         (segv_handler, overflow_handler, c_stack_action)
45315         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45316         implementation when libsigsegv is available, but only when using
45317         the library is necessary.
45318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45319         comment, explaining why XSI check fails on Linux.
45320         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45321         * tests/test-c-stack2.sh: Tweak skip message.
45322         * NEWS: Document new link-time requirements.
45323
45324 2008-07-16  Eric Blake  <ebb9@byu.net>
45325
45326         c-stack: Expose false positives when not using libsigsegv.
45327         * modules/c-stack-tests (Files): Expand test.
45328         * tests/test-c-stack.c (main): Add means to conditionally trigger
45329         non-overflow SIGSEGV.
45330         * tests/test-c-stack2.sh: New file.
45331
45332 2008-07-14  Bruno Haible  <bruno@clisp.org>
45333
45334         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45335         Reported by Eric Blake.
45336
45337 2008-07-14  Sam Steingold  <sds@gnu.org>
45338             Bruno Haible  <bruno@clisp.org>
45339
45340         New module libsigsegv.
45341         * modules/libsigsegv: New file.
45342         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45343         modifications.
45344         * MODULES.html.sh (Signal handling): New section.
45345
45346 2008-07-14  Bruno Haible  <bruno@clisp.org>
45347
45348         * modules/unictype/ctype-* (Description): Add the word "function".
45349         Improves the resulting doc in MODULES.html.
45350
45351 2008-07-12  Ben Pfaff  <blp@gnu.org>
45352
45353         Add longlong module.
45354         * modules/longlong: New file.
45355
45356 2008-07-12  Bruno Haible  <bruno@clisp.org>
45357
45358         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45359         to empty.
45360
45361 2008-07-10  Ben Pfaff  <blp@gnu.org>
45362
45363         Add isnan module.
45364         * doc/posix-functions/isnan.texi: Mention new module.
45365         * lib/math.in.h: Define isnan macro if we have decided to replace
45366         it.
45367         * m4/isnan.m4: New file.
45368         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45369         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45370         also.
45371         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45372         redundancy.
45373         * m4/math_h.m4: Initialize and substitute variables for isnan
45374         module.
45375         * modules/isnan: New file.
45376         * modules/isnan-tests: New file.
45377         * modules/math: Add substitutions for new module.
45378         * tests/test-isnan.c: New file.
45379         * MODULES.html.sh: Mention new module.
45380
45381 2008-07-10  Ben Pfaff  <blp@gnu.org>
45382
45383         Add isnanf module.
45384         * lib/isnanf.m4: New file.
45385         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45386         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45387         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45388         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45389         * modules/isnanf: New file.
45390         * modules/isnanf-tests: New file.
45391         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45392         files.
45393         * tests/test-isnanf-nolibm.c: factored most of its contents into
45394         new file tests/test-isnanf.h.
45395         * tests/test-isnanf.h: New file.
45396         * tests/test-isnanf.c: New file.
45397         * MODULES.html.sh: Mention new module.
45398         * doc/glibc-functions/isnanf.texi: Mention new module.
45399
45400 2008-07-10  Ben Pfaff  <blp@gnu.org>
45401
45402         Add isnand module.
45403         * lib/isnand.h: New file.
45404         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45405         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45406         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45407         functionality also.
45408         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45409         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45410         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45411         * modules/isnand: New file.
45412         * modules/isnand-tests: New file.
45413         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45414         files.
45415         * tests/test-isnand-nolibm.c: factored most of its contents into
45416         new file tests/test-isnand.h.
45417         * tests/test-isnand.h: New file.
45418         * tests/test-isnand.c: New file.
45419         * MODULES.html.sh: Mention new module.
45420
45421 2008-07-10  Ben Pfaff  <blp@gnu.org>
45422
45423         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45424         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45425         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45426         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45427         * modules/isnanf-nolibm: Update references to renamed files.
45428         * modules/isnand-nolibm: Likewise.
45429         * modules/isnanf-nolibm-tests: Likewise.
45430         * modules/isnand-nolibm-tests: Likewise.
45431         * lib/frexp.c: Likewise.
45432         * lib/isfinite.c: Likewise.
45433         * lib/signbitd.c: Likewise.
45434         * lib/signbitf.c: Likewise.
45435         * lib/vasnprintf.c: Likewise.
45436         * tests/test-ceilf1.c: Likewise.
45437         * tests/test-ceilf2.c: Likewise.
45438         * tests/test-floorf1.c: Likewise.
45439         * tests/test-floorf2.c: Likewise.
45440         * tests/test-frexp.c: Likewise.
45441         * tests/test-round1.c: Likewise.
45442         * tests/test-round2.c: Likewise.
45443         * tests/test-roundf1.c: Likewise.
45444         * tests/test-strtod.c: Likewise.
45445         * tests/test-trunc1.c: Likewise.
45446         * tests/test-trunc2.c: Likewise.
45447         * tests/test-truncf1.c: Likewise.
45448         * tests/test-truncf2.c: Likewise.
45449         * NEWS: Mention the renamed header files.
45450
45451 2008-07-11  Jim Meyering  <meyering@redhat.com>
45452
45453         vc-list-files: make the last-resort awk code more portable
45454         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45455         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45456         does not support it.
45457
45458 2008-07-10  Eric Blake  <ebb9@byu.net>
45459
45460         Work with tar's bootstrap.
45461         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45462         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45463         an m4 comment.
45464
45465 2008-07-09  Jim Meyering  <meyering@redhat.com>
45466
45467         posix-shell.m4: fix typo that made this test malfunction
45468         * m4/posix-shell.m4: Remove capitalization in variable name.
45469
45470 2008-07-08  Bruno Haible  <bruno@clisp.org>
45471
45472         * m4/onceonly.m4: Update comments.
45473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45474
45475 2008-07-04  Jim Meyering  <meyering@redhat.com>
45476
45477         * users.txt: Add vc-dwim.
45478         (bison, coreutils): Use the gitweb URL.
45479
45480 2008-07-03  Jim Meyering  <meyering@redhat.com>
45481
45482         * users.txt: Add libffcall.  From Sam Steingold.
45483
45484 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45485
45486         getdate.y: do not ignore TZ with relative day, month or year offset
45487         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45488         relative-date-handling, since otherwise, the latter would clobber the
45489         sole output (an updated Start value) of the tz-handling block.
45490         * tests/test-getdate.c: Tests for the fix
45491
45492 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45493
45494         Recognize 'foo_LIBRARIES += libgnu.a'.
45495         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45496         makefile snippet has already specified an installation location,
45497         also using '+='.
45498
45499 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45500
45501         getdate.y: factor out common actions
45502         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45503         Use them in place of open-coded actions.
45504
45505 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45506
45507         Add self-test for getdate module.
45508         * modules/getdate-tests: New file.
45509         * tests/test-getdate.c: New file.
45510
45511 2008-06-29  Bruno Haible  <bruno@clisp.org>
45512
45513         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45514         .gitignore.
45515         Reported by Sylvain Beucler <beuc@beuc.net>.
45516
45517 2008-06-29  Bruno Haible  <bruno@clisp.org>
45518
45519         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45520         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45521
45522 2008-06-29  Bruno Haible  <bruno@clisp.org>
45523
45524         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45525         EXTRA_DIST.
45526         Reported by Sylvain Beucler <beuc@beuc.net>.
45527
45528 2008-06-26  Jim Meyering  <meyering@redhat.com>
45529
45530         make several modules depend on the "open" module
45531         This provides slightly increased consistency when opening-for-write
45532         the name of a non-directory spelled with a trailing slash.
45533         * modules/chdir-safer: Likewise.
45534         * modules/chown: Likewise.
45535         * modules/clean-temp: Likewise.
45536         * modules/copy-file: Likewise.
45537         * modules/fchdir: Likewise.
45538         * modules/fcntl-safer: Likewise.
45539         * modules/pipe: Likewise.
45540         * modules/utime: Likewise.
45541         Prompted by Eric Blake and Bruno Haible.
45542
45543 2008-06-24  Andreas Schwab  <schwab@suse.de>
45544
45545         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45546         literals can be used as initializers for global variables.
45547
45548 2008-06-23  Eric Blake  <ebb9@byu.net>
45549
45550         Make gnulib-cache.m4 easier to diff.
45551         * gnulib-tool (func_import): Allow newlines when reading cached
45552         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45553
45554 2008-06-23  Bruno Haible  <bruno@clisp.org>
45555
45556         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45557         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45558         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45559         m4/signalblocking.m4.
45560         (gl_PREREQ_SIGACTION): Don't invoke it.
45561         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45562         gl_PREREQ_SIG_HANDLER_H.
45563         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45564         Don't check for sigaction here.
45565
45566 2008-06-23  Bruno Haible  <bruno@clisp.org>
45567
45568         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45569         (install_handlers): Don't set the SA_RESETHAND flag.
45570
45571 2008-06-23  Bruno Haible  <bruno@clisp.org>
45572
45573         * m4/sigaction.m4: Comment fixes.
45574         * lib/signal.in.h: Likewise.
45575
45576 2008-06-23  Eric Blake  <ebb9@byu.net>
45577
45578         Fix typo.
45579         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45580
45581         Avoid SA_ namespace.
45582         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45583         Reported by Ralf Wildenhues.
45584
45585         Avoid test failure due to SA_RESTORER.
45586         * tests/test-sigaction.c (SA_MASK): New macro.
45587         (main): Avoid failing due to extension flags being set.
45588         Reported by Jim Meyering.
45589
45590         Revert use of sig-handler.h in sigprocmask.c.
45591         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45592         it requires the existence of struct sigaction.
45593         * lib/sigprocmask.c (handler_t): Restore typedef.
45594         (rpl_signal, old_handlers): Use local type.
45595
45596 2008-06-22  Bruno Haible  <bruno@clisp.org>
45597
45598         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45599         conditionally.
45600         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45601
45602 2008-06-22  Bruno Haible  <bruno@clisp.org>
45603
45604         * doc/posix-functions/siginterrupt.texi: Move note.
45605
45606         * lib/signal.in.h (SA_RESTART): New macro.
45607         * lib/sigaction.c: Update comment.
45608
45609         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45610
45611         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45612         (gl_PREREQ_SIGPROCMASK): Invoke it.
45613         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45614
45615         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45616
45617         * lib/sigprocmask.c: Update a comment.
45618
45619 2008-06-21  Eric Blake  <ebb9@byu.net>
45620
45621         Use sigaction module rather than signal().
45622         * modules/c-stack (Depends-on): Add sigaction.
45623         * modules/fatal-signal (Depends-on): Likewise.
45624         * modules/nanosleep (Depends-on): Likewise.
45625         * modules/sigprocmask (Files): Add sig-handler.h.
45626         * modules/sigaction (Files): Likewise.
45627         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45628         Eggert.
45629         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45630         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45631         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45632         (init_fatal_signals): Likewise.
45633         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45634         (siginterrupt): Delete fallback.
45635         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45636         instead.
45637         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45638         siginterrupt.
45639
45640         New module sigaction, for mingw.
45641         * modules/sigaction: New module...
45642         * modules/sigaction-tests: ...and its test.
45643         * m4/sigaction.m4: New file.
45644         * lib/sigaction.c: Likewise.
45645         * tests/test-sigaction.c: Likewise.
45646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45647         * modules/signal (Makefile.am): Likewise.
45648         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45649         needed.
45650         * doc/posix-headers/signal.texi (signal.h): Mention provided
45651         types.
45652         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45653         that sigaction is preferable.
45654         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45655         module.
45656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45657         sigaction.
45658
45659         Improve robustness of sigprocmask by overriding signal.
45660         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45661         is in use.
45662         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45663         (SIGKILL, SIGSTOP): Provide fallbacks.
45664         (rpl_signal): Implement.
45665         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45666         signal can be called inside handlers.
45667
45668         Fix nanosleep module on mingw.
45669         * modules/nanosleep (Depends-on): Add sys_select.
45670         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45671
45672         Fix licensing of sigprocmask.
45673         * modules/raise (License): Relicense as LGPL.
45674
45675 2008-06-21  Bruno Haible  <bruno@clisp.org>
45676
45677         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45678         result if it contains question marks.
45679         Reported by Michael Geng <linux@michaelgeng.de>.
45680
45681 2008-06-19  Bruno Haible  <bruno@clisp.org>
45682
45683         Fix CVS-ism.
45684         * doc/gnulib.texi: Include updated-stamp.texi.
45685         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45686         (updated-stamp.texi): New rule.
45687         (gnulib.info): Depend on it.
45688         * doc/.gitignore: Add updated-stamp.texi.
45689         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45690
45691 2008-06-19  Bruno Haible  <bruno@clisp.org>
45692
45693         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45694         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45695
45696 2008-06-19  Eric Blake  <ebb9@byu.net>
45697
45698         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45699         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45700         Reported by Stepan Kasal.
45701
45702 2008-06-18  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45705         Reported by Eric Blake.
45706
45707 2008-06-18  Eric Blake  <ebb9@byu.net>
45708
45709         Work around cygwin 1.5.25 strsignal bug.
45710         * tests/test-strsignal.c: Allow for const char *.
45711         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45712
45713 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45714
45715         * users.txt: Update URL to article and add author/date
45716         information.
45717
45718 2008-06-17  Bruno Haible  <bruno@clisp.org>
45719
45720         New macro gl_DISABLE_THREADS.
45721         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45722         if the user did not pass --enable-threads or --disable-threads option.
45723         (gl_DISABLE_THREADS): New macro.
45724         Reported by Eric Blake <ebb9@byu.net>.
45725
45726 2008-06-17  Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45729         when the macro ignores it.
45730         Based on a patch by Eric Blake <ebb9@byu.net>.
45731
45732 2008-06-17  Bruno Haible  <bruno@clisp.org>
45733
45734         * modules/tls (License): Change to LGPLv2+.
45735         Reported by Eric Blake.
45736
45737 2008-06-17  Eric Blake  <ebb9@byu.net>
45738
45739         Simplify c-stack prerequisites.
45740         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45742         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45743         check.
45744         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45745         <sys/resource.h>.
45746
45747         Move c-stack test into testsuite.
45748         * modules/c-stack-tests: New file.
45749         * lib/c-stack.c [DEBUG]: Move test program...
45750         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45751         fail test if sigaltstack is lacking.
45752         * tests/test-c-stack.sh: New driver file.
45753
45754 2008-06-16  Eric Blake  <ebb9@byu.net>
45755
45756         Use raise module consistently.
45757         * modules/fatal-signal (Depends-on): Add raise.
45758         * modules/sigprocmask (Depends-on): Likewise.
45759         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45760         * lib/sigprocmask.c (sigprocmask): Likewise.
45761         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45762         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45763
45764         Fix compliance bug in sigpending.
45765         * lib/sigprocmask.c (sigpending): Return pending array via
45766         parameter, not return value.
45767
45768 2008-06-14  Eric Blake  <ebb9@byu.net>
45769
45770         Improve obstack-printf test code.
45771         * tests/test-obstack-printf.c (test_function): Fix comment, and
45772         simplify usage of obstack_* in macros.  Add a test for coverage.
45773         Reported by Bruno Haible.
45774
45775 2008-06-14  Bruno Haible  <bruno@clisp.org>
45776
45777         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45778         array size as a constant, not as a const variable.
45779         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45780         AC_USE_SYSTEM_EXTENSIONS.
45781         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45782         Test whether the obstack_printf function actually exists.
45783         * modules/obstack-printf (Depends-on): Add extensions.
45784         (Include): Remove obstack.h.
45785         * modules/obstack-printf-posix (Depends-on): Add extensions.
45786         (Include): Remove obstack.h.
45787
45788 2008-06-13  Eric Blake  <ebb9@byu.net>
45789
45790         Add obstack-printf and obstack-printf-posix modules.
45791         * modules/obstack-printf: New file.
45792         * modules/obstack-printf-posix: Likewise.
45793         * MODULES.html.sh (Misc): Mention them.
45794         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45795         Likewise.
45796         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45797         Likewise.
45798         * modules/stdio (Makefile.am): Accomodate new modules.
45799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45800         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45801         Declare.
45802         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45803         functions.
45804         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45805         (gl_REPLACE_OBSTACK_PRINTF): New macros
45806         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45807         * tests/test-obstack-printf.c: New file.
45808         * modules/obstack-printf-tests: Likewise.
45809         * modules/obstack-printf-posix-tests: Likewise.
45810
45811 2008-06-11  Bruno Haible  <bruno@clisp.org>
45812
45813         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45814         * lib/open.c: Include errno.h.
45815         (open): Fail when attempting to write to a file that has a trailing
45816         slash.
45817         * tests/test-open.c (main): Test against trailing slash bug.
45818         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45819
45820 2008-06-10  Bruno Haible  <bruno@clisp.org>
45821
45822         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45823         for $? to work inside the trap command, with various /bin/sh-s.
45824         * tests/test-vc-list-files-cvs.sh: Likewise.
45825
45826 2008-06-10  Bruno Haible  <bruno@clisp.org>
45827
45828         * lib/acl-internal.h: Don't include gettext.h here.
45829         * lib/set-mode-acl.c: Include gettext.h here.
45830         * lib/copy-acl.c: Likewise.
45831
45832 2008-06-10  Bruno Haible  <bruno@clisp.org>
45833
45834         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45835         * lib/wait-process.c (wait_subprocess): Likewise.
45836         * lib/execute.h (execute): Add termsigp argument.
45837         * lib/execute.c (execute): Likewise.
45838         * lib/csharpcomp.c (compile_csharp_using_pnet,
45839         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45840         * lib/csharpexec.c (execute_csharp_using_pnet,
45841         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45842         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45843         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45844         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45845         is_jikes_present): Update.
45846         * lib/javaexec.c (execute_java_class): Update.
45847         * lib/javaversion.c (execute_and_read_line): Update.
45848         * NEWS: Document the changes.
45849         Reported by Eric Blake.
45850
45851 2008-06-10  Eric Blake  <ebb9@byu.net>
45852
45853         Add missing include.
45854         * tests/test-strstr.c (includes): Add <signal.h>.
45855         * tests/test-strcasestr.c (includes): Likewise.
45856         * tests/test-memmem.c (includes): Likewise.
45857
45858 2008-06-10  Bruno Haible  <bruno@clisp.org>
45859
45860         * lib/wait-process.c (wait_subprocess): Add an assertion.
45861
45862 2008-06-10  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45865
45866 2008-06-10  Bruno Haible  <bruno@clisp.org>
45867
45868         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45869         using alarm().
45870         * tests/test-strcasestr.c (main): Likewise.
45871         * tests/test-strstr.c (main): Likewise.
45872
45873 2008-06-09  Bruno Haible  <bruno@clisp.org>
45874
45875         Work around the Solaris 10 ACE ACLs ABI change.
45876         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45877         declare if ACL_NO_TRIVIAL is present.
45878         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45879         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45880         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45881         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45882         define if ACL_NO_TRIVIAL is present.
45883         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45884         and use the current ABI.
45885         (file_has_acl): Use same #if condition as elsewhere.
45886         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45887         in use, and use the current ABI.
45888         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45889         Reported by Jim Meyering.
45890
45891 2008-06-09  Eric Blake  <ebb9@byu.net>
45892
45893         Work around environments that (stupidly) ignore SIGALRM.
45894         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45895         before using alarm().
45896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45897         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45898         Reported by Ian Beckwith <ianb@erislabs.net>.
45899
45900         Produce autobuild blurb earlier in log.
45901         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45902
45903 2008-06-09  Jim Meyering  <meyering@redhat.com>
45904         and OndÅ™ej Vašík  <ovasik@redhat.com>
45905
45906         utimens.c: correct kernel bug work-around
45907         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45908         failure, not success, and the kernel bug we're trying to work
45909         around affects not just the utimensat call, but also the fallback
45910         futimens call.
45911         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45912         not success.
45913         [HAVE_FUTIMENS]: Use the same work-around, here.
45914
45915 2008-06-09  Jim Meyering  <meyering@redhat.com>
45916
45917         add more guards around definition of ACE_-related code
45918         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45919         ALLOW and ACE_OWNER are also defined.
45920
45921 2008-06-08  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/acl-internal.h: Add me as co-author.
45924         * lib/file-has-acl.c: Likewise.
45925         * lib/set-mode-acl.c: Likewise.
45926         * lib/copy-acl.c: Likewise.
45927
45928 2008-06-08  Bruno Haible  <bruno@clisp.org>
45929
45930         Add support for AIX ACLs.
45931         * lib/acl-internal.h (acl_nontrivial): New declaration.
45932         * lib/file-has-acl.c (acl_nontrivial): New function.
45933         (file_has_acl): Add implementation using AIX 4 ACL API.
45934         * lib/set-mode-acl.c (qset_acl): Likewise.
45935         * lib/copy-acl.c (qcopy_acl): Likewise.
45936
45937 2008-06-08  Bruno Haible  <bruno@clisp.org>
45938
45939         Add support for HP-UX ACLs.
45940         * lib/acl-internal.h (acl_nontrivial): New declaration.
45941         * lib/file-has-acl.c (acl_nontrivial): New function.
45942         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45943         * lib/set-mode-acl.c (qset_acl): Likewise.
45944         * lib/copy-acl.c (qcopy_acl): Likewise.
45945
45946 2008-06-08  Bruno Haible  <bruno@clisp.org>
45947
45948         Add support for Cygwin ACLs.
45949         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45950         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45951         the chmod_or_fchmod call.
45952         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45953
45954 2008-06-08  Bruno Haible  <bruno@clisp.org>
45955
45956         Fix bug with setuid modes in Solaris 10+ code.
45957         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45958         succeeded, when the mode contains some special bits.
45959
45960 2008-06-08  Bruno Haible  <bruno@clisp.org>
45961
45962         Add support for Solaris 7..10 ACLs.
45963         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45964         declarations.
45965         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45966         functions.
45967         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45968         * lib/set-mode-acl.c (qset_acl): Likewise.
45969         * lib/copy-acl.c (qcopy_acl): Likewise.
45970
45971 2008-06-08  Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45974         declaration.
45975         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45976         (acl_access_nontrivial): Remove MacOS X case.
45977         (file_has_acl): Use acl_extended_nontrivial.
45978         * lib/copy-acl.c (qcopy_acl): Likewise.
45979
45980 2008-06-08  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45983
45984 2008-06-08  Jim Meyering  <meyering@redhat.com>
45985
45986         * modules/acl (Maintainer): Add Bruno Haible.
45987
45988 2008-06-07  Bruno Haible  <bruno@clisp.org>
45989
45990         Improve support for Tru64 ACLs.
45991         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45992         ACL on OSF/1.
45993
45994 2008-06-07  Bruno Haible  <bruno@clisp.org>
45995
45996         Add support for MacOS X ACLs.
45997         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45998         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45999         * lib/set-mode-acl.c (qset_acl): Likewise.
46000         * lib/copy-acl.c (qcopy_acl): Likewise.
46001
46002 2008-06-07  Bruno Haible  <bruno@clisp.org>
46003
46004         Fix memory leak introduced on 2008-05-22.
46005         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46006         use.
46007
46008 2008-06-07  Bruno Haible  <bruno@clisp.org>
46009
46010         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46011         to construct an empty ACL.
46012
46013 2008-06-07  Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46016         precisely.
46017         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46018
46019 2008-06-07  Bruno Haible  <bruno@clisp.org>
46020
46021         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46022         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46023
46024 2008-06-07  Bruno Haible  <bruno@clisp.org>
46025
46026         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46027         regardless of POSIX.
46028         * doc/posix-functions/_longjmp.texi: Likewise.
46029         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46030         SystemV platform in this case.
46031
46032 2008-06-06  Eric Blake  <ebb9@byu.net>
46033
46034         Document abort() bugs.
46035         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46036
46037         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46038         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46039         sigsetjmp.
46040         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46041         siglongjmp, but only as a macro.
46042         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46043         is obsolete.
46044         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46045
46046         Tweak documentation to cover cygwin argz bugs.
46047         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46048         argz bug fix; no code change needed since no cygwin releases
46049         occurred between the last fix and the bug being tested.
46050         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46051         module and recently fixed cygwin bugs.
46052         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46053         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46054         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46055         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46056         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46057         Likewise.
46058         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46059         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46060         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46061         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46062         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46063         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46064         Likewise.
46065
46066         Avoid gcc warning on cygwin.
46067         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46068         !ACL_NO_TRIVIAL]: Avoid unused variable.
46069
46070 2008-06-05  Eric Blake  <ebb9@byu.net>
46071
46072         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46073         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46074         git-version-gen fails to come up with a version.
46075         Reported by Simon Josefsson.
46076
46077 2008-06-05  Jim Meyering  <meyering@redhat.com>
46078             Paul Eggert  <eggert@cs.ucla.edu>
46079
46080         utimens.c: work around a probable Linux kernel bug
46081         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46082         appears to be a kernel bug that causes utimensat to return 280
46083         instead of 0, indicating success.
46084
46085 2008-06-04  Bruno Haible  <bruno@clisp.org>
46086
46087         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46088         2008-06-01 commit.
46089
46090 2008-06-04  Bruno Haible  <bruno@clisp.org>
46091
46092         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46093         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46094         (file_has_acl): Use it. Save errno afterwards.
46095         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46096
46097 2008-06-03  Bruno Haible  <bruno@clisp.org>
46098
46099         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46100         draft code. Simplify #ifs.
46101         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46102         Put Solaris code after POSIX-draft code. Fix comments regarding
46103         Solaris 10, HP-UX. Mention Cygwin.
46104         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46105
46106 2008-06-03  Eric Blake  <ebb9@byu.net>
46107
46108         Provide fallback for older kernels.
46109         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46110         Provide runtime fallback if kernel lacks support.
46111         Reported by Mike Frysinger.
46112
46113 2008-06-02  Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46116         it exists.
46117
46118 2008-06-02  Bruno Haible  <bruno@clisp.org>
46119
46120         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46121         * lib/copy-acl.c (qcopy_acl): Update comment.
46122
46123 2008-06-02  Bruno Haible  <bruno@clisp.org>
46124
46125         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46126         like ACL APIs.
46127
46128 2008-06-02  Bruno Haible  <bruno@clisp.org>
46129
46130         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46131         * tests/test-set-mode-acl.sh: Likewise.
46132         * tests/test-copy-acl.sh: Likewise.
46133         * tests/test-copy-file.sh: Likewise.
46134
46135 2008-06-02  Bruno Haible  <bruno@clisp.org>
46136
46137         * tests/test-file-has-acl.sh: Remove unused code.
46138
46139 2008-06-01  Bruno Haible  <bruno@clisp.org>
46140
46141         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46142         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46143         messages.
46144         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46145
46146 2008-06-01  Bruno Haible  <bruno@clisp.org>
46147
46148         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46149         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46150         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46151         APIs.
46152         * modules/acl-tests (configure.ac): Remove tests now contained in
46153         m4/acl.m4.
46154
46155 2008-06-02  Jim Meyering  <meyering@redhat.com>
46156
46157         announce-gen: use a better key-server host name
46158         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46159         it may be more consistently reliable.  Suggested by Werner Koch
46160         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46161
46162 2008-06-01  Bruno Haible  <bruno@clisp.org>
46163
46164         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46165         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46166
46167 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46168
46169         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46170
46171 2008-06-01  Bruno Haible  <bruno@clisp.org>
46172
46173         New ACL tests.
46174         * tests/test-file-has-acl.sh: New file.
46175         * tests/test-file-has-acl.c: New file.
46176         * tests/test-set-mode-acl.sh: New file.
46177         * tests/test-set-mode-acl.c: New file.
46178         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46179         * tests/test-copy-acl.c: New file.
46180         * modules/acl-tests: New file, based on modules/copy-file-tests.
46181         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46182         (Depends-on): Add acl-tests.
46183         (configure.ac): Remove checks.
46184         (Makefile.am): Don't create test-sameacls program here any more.
46185
46186 2008-06-01  Bruno Haible  <bruno@clisp.org>
46187
46188         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46189         * tests/test-sameacls.c: Include progname.h.
46190         (main): Invoke set_program_name. Portability fixes for MacOS X,
46191         Solaris, HP-UX.
46192
46193 2008-06-01  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46196         function.
46197         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46198
46199 2008-06-01  Bruno Haible  <bruno@clisp.org>
46200
46201         * modules/rpmatch (Depends-on): Add strdup.
46202
46203 2008-06-01  Bruno Haible  <bruno@clisp.org>
46204
46205         * lib/pipe.c: Include unistd-safer.h.
46206         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46207         * modules/pipe (Depends-on): Add unistd-safer.
46208
46209 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46210
46211         * modules/autobuild (configure.ac): Call AB_INIT.
46212
46213 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46214
46215         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46216         Suggested by Bruno Haible <bruno@clisp.org>.
46217
46218 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46219
46220         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46221         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46222         <bruno@clisp.org>.
46223
46224 2008-05-29  Eric Blake  <ebb9@byu.net>
46225
46226         Prefer new POSIX 200x interfaces over futimesat.
46227         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46228         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46229         when available.
46230         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46231
46232 2008-05-28  Bruno Haible  <bruno@clisp.org>
46233
46234         * modules/stpcpy (License): Change to LGPLv2+.
46235         Requested by David Lutterkort <dlutter@redhat.com>.
46236
46237 2008-05-27  Bruno Haible  <bruno@clisp.org>
46238
46239         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46240         current mingw.
46241         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46242
46243 2008-05-27  Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/iconv_open (Link): New section, from module 'iconv'.
46246         * modules/striconv (Link): Likewise.
46247         * modules/striconveh (Link): Likewise.
46248         * modules/xstriconv (Link): Likewise.
46249         * modules/unicodeio (Link): Likewise.
46250         * modules/propername (Link): Likewise.
46251         Reported by Jim Meyering.
46252
46253 2008-05-26  Jim Meyering  <meyering@redhat.com>
46254
46255         sha256: do not artificially restrict buffer length to be < 2^32
46256         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46257         uint32_t to size_t.
46258         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46259         to match.
46260
46261         avoid unaligned access errors, e.g., on sparc
46262         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46263         direct access through a possibly-unaligned uint64* pointer.
46264         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46265         direct access through a possibly-unaligned uint32* pointer.
46266         Prompted by this patch from Tom "spot" Callaway:
46267         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46268
46269         sha512.c: fix typo in comment
46270         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46271
46272 2008-05-25  Bruno Haible  <bruno@clisp.org>
46273
46274         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46275         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46276         (Makefile.am): Update lib_SOURCES.
46277
46278 2008-05-25  Bruno Haible  <bruno@clisp.org>
46279
46280         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46281
46282 2008-05-25  Jim Meyering  <meyering@redhat.com>
46283
46284         useless-if-before-free: freed expr may have white-space differences
46285         * build-aux/useless-if-before-free: Recognize cases in which the
46286         freed expression differs from the tested one in embedded white
46287         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46288         $1 was used, so we can't make any regexp shy.  Improved tests now
46289         detect this.
46290
46291         useless-if-before-free: accept white space in the expression.
46292         * build-aux/useless-if-before-free: For now, any white space
46293         in the expression must be identical in the free argument.
46294
46295         useless-if-before-free: efficiency tweak
46296         * build-aux/useless-if-before-free: Make the expression-matching
46297         regexp "shy".
46298         Make the *outer* regexp shy, not the expr-matching one.
46299
46300         update code-in-comment to accept cast of free arg
46301         * build-aux/useless-if-before-free: Update regexp.
46302
46303 2008-05-25  Bruno Haible  <bruno@clisp.org>
46304
46305         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46306         * modules/copy-file-tests (Files, Makefile.am): Update.
46307         * tests/test-copy-file.c (func_test_copy): Update.
46308
46309 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46310
46311         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46312
46313 2008-05-23  Bruno Haible  <bruno@clisp.org>
46314
46315         Improve support for ACLs on OSF/1.
46316         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46317         Remove fallback for unknown flavors of ACLs.
46318
46319 2008-05-22  Bruno Haible  <bruno@clisp.org>
46320
46321         Add support for ACLs on OSF/1.
46322         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46323         replacements.
46324         (acl_free_text): New macro fallback.
46325         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46326         acl_free.
46327         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46328         acl_free_text function. Require AC_C_INLINE.
46329
46330 2008-05-22  Bruno Haible  <bruno@clisp.org>
46331
46332         Make copy_acl work on MacOS X 10.5.
46333         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46334         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46335         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46336         If MODE_INSIDE_ACL, don't assume that every system has the same text
46337         representation for ACLs as FreeBSD.
46338         * lib/copy-acl.c (copy_acl): Add support for platforms with
46339         !MODE_INSIDE_ACL.
46340         * lib/file-has-acl.c (file_has_acl): Likewise.
46341         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46342         FreeBSD, MacOS X, or IRIX, respectively.
46343
46344 2008-05-22  Bruno Haible  <bruno@clisp.org>
46345
46346         * lib/acl.h: Don't include <sys/acl.h>.
46347         (GETACLCNT): Move fallback to lib/acl-internal.h.
46348         * lib/acl-internal.h: Include <sys/acl.h> here.
46349         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46350
46351 2008-05-22  Bruno Haible  <bruno@clisp.org>
46352
46353         Split off copy_acl function to separate file.
46354         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46355         * lib/acl.c (copy_acl): Moved function to separate file.
46356         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46357         * modules/acl (Files): Add lib/copy-acl.c.
46358         (Makefiles.am): Augment lib_SOURCES.
46359
46360 2008-05-22  Bruno Haible  <bruno@clisp.org>
46361
46362         * modules/copy-file-tests: New file.
46363         * tests/test-copy-file.sh: New file.
46364         * tests/test-copy-file.c: New file.
46365         * tests/test-copy-file-sameacls.c: New file.
46366
46367 2008-05-22  Eric Blake  <ebb9@byu.net>
46368
46369         Avoid gcc warning.
46370         * tests/test-memcmp.c (main): Pass NULL indirectly.
46371
46372 2008-05-21  Bruno Haible  <bruno@clisp.org>
46373
46374         Add reference doc about ACLs.
46375         * doc/acl-resources.txt: New file.
46376         * doc/acl-cygwin.txt: New file.
46377
46378 2008-05-21  Bruno Haible  <bruno@clisp.org>
46379
46380         Avoid one more warning from gcc.
46381         * lib/vasnprintf.c (IF_LINT): Update comments.
46382         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46383
46384 2008-05-21  Jim Meyering  <meyering@redhat.com>
46385
46386         avoid a warning from gcc
46387         * lib/vasnprintf.c (IF_LINT): Define.
46388         (scale10_round_decimal_long_double):
46389         Use it to avoid a "may be used uninitialized" warning.
46390         (scale10_round_decimal_double): Likewise.
46391
46392 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46393
46394         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46395         declared.
46396
46397 2008-05-20  Bruno Haible  <bruno@clisp.org>
46398
46399         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46400         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46401
46402 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46403
46404         * modules/memcmp-tests: New file.
46405         * tests/test-memcmp.c: New file.
46406
46407 2008-05-19  Bruno Haible  <bruno@clisp.org>
46408
46409         * modules/propername (Notice, configure.ac): Put quoted "..." into
46410         --keyword option.
46411         * lib/propername.h: Update comments accordingly.
46412         Reported by Eric Blake.
46413
46414 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46415
46416         * modules/getpass-gnu (Depends-on): Add fseeko.
46417
46418 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46419
46420         * modules/base64-tests: New file.
46421
46422 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46423
46424         * lib/base64.c (base64_decode_ctx): If a decode context structure
46425         was passed in use it to ignore newlines.  If a context structure
46426         was _not_ passed in, continue to treat newlines as garbage (this
46427         is the historical behavior).  Formerly base64_decode.
46428         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46429         takes a decode context structure.
46430         * lib/base64.h (base64_decode): Macro for four-argument calls.
46431         (base64_decode_alloc): Likewise.
46432         * lib/base64.c (base64_decode_ctx): If a decode context structure
46433         was passed in use it to ignore newlines.  If a context structure
46434         was _not_ passed in, continue to treat newlines as garbage (this
46435         is the historical behavior).  Formerly base64_decode.
46436         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46437         takes a decode context structure.
46438         * lib/base64.h (base64_decode): Macro for four-argument calls.
46439         (base64_decode_alloc): Likewise.
46440
46441 2008-05-19  Jim Meyering  <meyering@redhat.com>
46442
46443         avoid a warning from gcc
46444         * lib/trim.c (IF_LINT): Define.
46445         (trim2): Use it to avoid a "may be used uninitialized" warning.
46446
46447         Fix doc typo.
46448         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46449
46450 2008-05-19  Bruno Haible  <bruno@clisp.org>
46451
46452         * doc/glibc-functions/getpass.texi: Document limits of other
46453         implementations.
46454
46455 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46456             Bruno Haible <bruno@clisp.org>
46457
46458         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46459
46460 2008-05-18  Bruno Haible  <bruno@clisp.org>
46461
46462         * modules/propername: New file, from GNU gettext.
46463         * lib/propername.h: New file, from GNU gettext.
46464         * lib/propername.c: New file, from GNU gettext.
46465         * MODULES.html.sh (Internationalization functions): Add propername.
46466
46467 2008-05-16  Jim Meyering  <meyering@redhat.com>
46468             Bruno Haible  <bruno@clisp.org>
46469
46470         Avoid some warnings from "gcc -Wshadow".
46471         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46472
46473 2008-05-15  Eric Blake  <ebb9@byu.net>
46474
46475         Extend previous patch to cygwin 1.7.0.
46476         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46477         fast implementation in cygwin >= 1.7.0.
46478         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46479         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46480
46481 2008-05-15  Bruno Haible  <bruno@clisp.org>
46482
46483         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46484         implementation in glibc >= 2.9.
46485         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46487
46488 2008-05-15  Bruno Haible  <bruno@clisp.org>
46489
46490         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46491         (Unicode string functions): Add unilbrk/*.
46492         Reported by Karl Berry.
46493
46494 2008-05-15  Eric Blake  <ebb9@byu.net>
46495
46496         Fix violation of <stdbool.h> replacement in regex.
46497         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46498         * lib/regexec.c (re_search_internal): Likewise.
46499         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46500
46501 2008-05-15  Jim Meyering  <meyering@redhat.com>
46502
46503         avoid distracting test output when git or cvs is not found
46504         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46505         * tests/test-vc-list-files-git.sh: Likewise.
46506
46507 2008-05-15  Eric Blake  <ebb9@byu.net>
46508
46509         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46510         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46511         glibc version.
46512         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46513         * doc/posix-functions/strstr.texi (strstr): Likewise.
46514         * lib/str-two-way.h (MAX): Sychronize with glibc.
46515
46516 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46517
46518         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46519         opr.ctx_type.
46520         (calc_first): Initialize constraint field.
46521         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46522         Fix grammar.
46523         (duplicate_node): Merge constraint field for all node types.
46524         (calc_eclosure_iter): Look at constraint field for all node types.
46525         * lib/regex_internal.c (create_cd_newstate): Don't look at
46526         opr.ctx_type.
46527
46528 2008-05-14  Bruno Haible  <bruno@clisp.org>
46529
46530         Help GCC to do better code generation.
46531         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46532         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46533         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46534         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46535         Declare with attribute 'malloc' if supported.
46536
46537 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46538
46539         use "echo STR|wc -c" rather than unportable "expr length STR"
46540         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46541         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46542
46543 2008-05-14  Jim Meyering  <meyering@redhat.com>
46544
46545         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46546         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46547         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46548         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46549         via Collin Lasse.
46550
46551 2008-05-14  Eric Blake  <ebb9@byu.net>
46552
46553         Avoid quadratic growth in gl_LIBSOURCES.
46554         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46555         Suggested by Bruno Haible.
46556
46557         Test xmemdup0.
46558         * modules/xmemdup0-tests: New file.
46559         * tests/test-xmemdup0.c: Likewise.
46560
46561 2008-05-13  Eric Blake  <ebb9@byu.net>
46562
46563         Split xmemdup0 into its own module.
46564         * modules/xmemdup0: New file.
46565         * lib/xmemdup0.h: Likewise.
46566         * lib/xmemdup0.c: Likewise.
46567         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46568         * lib/xalloc.h (xmemdup0): Remove.
46569         * lib/xmalloc.c (xmemdup0): Likewise.
46570
46571 2008-05-13  Eric Blake  <ebb9@byu.net>
46572             Bruno Haible  <bruno@clisp.org>
46573
46574         Reduce number of forks required during autoconf.
46575         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46576         and gl_LIBSOURCES_DIR.
46577         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46578         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46579         m4_syscmd per file.
46580         <m4_foreach_w>: Move...
46581         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46582
46583 2008-05-13  Eric Blake  <ebb9@byu.net>
46584
46585         * gnulib-tool: Fix various comment typos.
46586
46587 2008-05-12  Bruno Haible  <bruno@clisp.org>
46588
46589         Tailor the linebreaking algorithm.
46590         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46591
46592 2008-05-12  Bruno Haible  <bruno@clisp.org>
46593
46594         Update to Unicode 5.0.0.
46595         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46596         LBP_JV, LBP_JT. Redistribute values.
46597         (unilbrk_table): Change size.
46598         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46599         Unicode TR#14 rev. 22.
46600         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46601         LBP_JV, LBP_JT. Redistribute values.
46602         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46603         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46604         Update.
46605         * lib/unilbrk/lbrkprop1.h: Regenerated.
46606         * lib/unilbrk/lbrkprop2.h: Regenerated.
46607         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46608         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46609         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46610         Likewise.
46611         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46612         Likewise.
46613         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46614         result.
46615         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46616         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46617         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46618         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46619         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46620         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46621
46622 2008-05-11  Bruno Haible  <bruno@clisp.org>
46623
46624         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46625
46626 2008-05-11  Bruno Haible  <bruno@clisp.org>
46627
46628         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46629         * modules/unilbrk/gen-lbrk: New file.
46630
46631 2008-05-11  Bruno Haible  <bruno@clisp.org>
46632
46633         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46634         * m4/sha512.m4 (gl_SHA512): Likewise.
46635
46636 2008-05-11  Jim Meyering  <meyering@redhat.com>
46637
46638         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46639         * modules/crypto/sha256: New file.
46640         * modules/crypto/sha512: Likewise.
46641         * lib/sha256.c: Likewise.
46642         * lib/sha256.h: Likewise.
46643         * lib/sha512.c: Likewise.
46644         * lib/sha512.h: Likewise.
46645         * lib/u64.h: Likewise.
46646         * m4/sha256.m4: Likewise.
46647         * m4/sha512.m4: Likewise.
46648         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46649
46650 2008-05-10  Bruno Haible  <bruno@clisp.org>
46651
46652         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46653         (Input/Output <stdio.h>): Add xprintf.
46654         (Signal handling <signal.h>): Add strsignal.
46655         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46656         (Core language properties): Add func.
46657         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46658         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46659         strings.
46660         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46661         (Input/output): New section.
46662         (File system functions): Add openat-die, stat-macros.
46663         (Networking functions): Add sockets.
46664         (Unicode string functions): Add unictype/*.
46665         (Support for building libraries and executables): Add gperf.
46666         (Support for building documentation): Add agpl-3.0.
46667         (Misc): Add nocrash.
46668
46669 2008-05-10  Bruno Haible  <bruno@clisp.org>
46670
46671         * modules/unictype/gen-ctype: New file.
46672
46673 2008-05-10  Jim Meyering  <meyering@redhat.com>
46674
46675         Make chdir-safer.c more efficient on a system with no symlinks.
46676         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46677         also if ELOOP is zero.  Suggested by Bruno Haible.
46678
46679         Make chdir-safer.c slightly safer.
46680         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46681         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46682
46683         Avoid compile failure on systems without ELOOP (like mingw).
46684         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46685         Reported by Bruno Haible.
46686
46687 2008-05-10  Bruno Haible  <bruno@clisp.org>
46688
46689         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46690         (is_utf8_encoding): Use a case-insensitive comparison.
46691         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46692         streq.
46693
46694 2008-05-10  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46697         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46698         * lib/unilbrk/ulc-common.h (iconv_string_length,
46699         iconv_string_keeping_offsets): Remove declarations.
46700         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46701         Don't include <iconv.h>, streq.h, xsize.h.
46702         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46703         conversion.
46704         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46705         <iconv.h>, streq.h, xsize.h.
46706         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46707         conversion.
46708         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46709         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46710         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46711         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46712
46713 2008-05-10  Bruno Haible  <bruno@clisp.org>
46714
46715         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46716         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46717
46718         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46719         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46720
46721         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46722         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46723
46724         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46725         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46726
46727         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46728         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46729
46730         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46731         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46732
46733         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46734         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46735
46736         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46737         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46738
46739 2008-05-10  Bruno Haible  <bruno@clisp.org>
46740
46741         Split up 'linebreak' module.
46742         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46743         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46744         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46745         modifications.
46746         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46747         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46748         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46749         lib/linebreak.c.
46750         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46751         lib/linebreak.c.
46752         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46753         lib/linebreak.c.
46754         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46755         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46756         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46757         lib/linebreak.c.
46758         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46759         lib/linebreak.c.
46760         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46761         lib/linebreak.c.
46762         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46763         lib/linebreak.c.
46764         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46765         lib/linebreak.c.
46766         * modules/unilbrk/base: New file.
46767         * modules/unilbrk/tables: New file.
46768         * modules/unilbrk/u8-possible-linebreaks: New file.
46769         * modules/unilbrk/u16-possible-linebreaks: New file.
46770         * modules/unilbrk/u32-possible-linebreaks: New file.
46771         * modules/unilbrk/ulc-common: New file.
46772         * modules/unilbrk/ulc-possible-linebreaks: New file.
46773         * modules/unilbrk/u8-width-linebreaks: New file.
46774         * modules/unilbrk/u16-width-linebreaks: New file.
46775         * modules/unilbrk/u32-width-linebreaks: New file.
46776         * modules/unilbrk/ulc-width-linebreaks: New file.
46777         * lib/linebreak.h: Remove file.
46778         * lib/linebreak.c: Remove file.
46779         * m4/linebreak.m4: Remove file.
46780         * modules/linebreak: Remove file.
46781         * NEWS: Mention the changes.
46782
46783 2008-05-09  Eric Blake  <ebb9@byu.net>
46784
46785         Add xmemdup0.
46786         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46787         implementation.
46788         * lib/xmalloc.c (xmemdup0): New C implementation.
46789
46790 2008-05-08  Bruno Haible  <bruno@clisp.org>
46791
46792         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46793
46794 2008-05-07  Eric Blake  <ebb9@byu.net>
46795
46796         Support cross-compilation of <wctype.h>.
46797         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46798         AC_CACHE_CHECK.
46799
46800 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46801
46802         * build-aux/vc-list-files: Add support for bzr.
46803
46804 2008-05-03  Jim Meyering  <meyering@redhat.com>
46805
46806         avoid failed assertion with tight malloc
46807         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46808
46809 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46810
46811         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46812         are needed from arpa/inet.h.
46813         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46814         Reported by Bruno Haible.
46815
46816 2008-05-02  Jim Meyering  <meyering@redhat.com>
46817
46818         avoid compilation error on FreeBSD 6
46819         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46820
46821 2008-05-01  Jim Meyering  <meyering@redhat.com>
46822
46823         useless-if-before-free: correct --help's exit status description
46824         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46825         for one or more matches, etc.  Reported by Bruno Haible.
46826
46827         vc-list-files: make the stand-alone gnulib test work
46828         * modules/vc-list-files-tests (configure.ac):
46829         Define and AC_SUBST abs_aux_dir.
46830         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46831         $(abs_top_srcdir) to each script and having each of them
46832         duplicate the work of setting PATH, set PATH here, using
46833         the new variable, abs_aux_dir instead.
46834         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46835         * tests/test-vc-list-files-git.sh: Likewise.
46836         Reported by Bruno Haible.
46837
46838 2008-05-01  Bruno Haible  <bruno@clisp.org>
46839
46840         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46841         reallocation. Rename 'done' to 'found_delimiter'.
46842
46843 2008-05-01  Jim Meyering  <meyering@redhat.com>
46844
46845         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46846         * build-aux/vc-list-files: Use `...`, not $(...).
46847
46848 2008-04-30  Jim Meyering  <meyering@redhat.com>
46849
46850         add tests for vc-list-files
46851         * modules/vc-list-files-tests: New module.
46852         * tests/test-vc-list-files-cvs.sh: New file.
46853         * tests/test-vc-list-files-git.sh: New file.
46854
46855         avoid a warning from gcc
46856         * lib/getndelim2.c (IF_LINT): Define.
46857         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46858
46859         vc-list-files: work properly with build-aux/cvsu, too
46860         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46861         to all cvs-based clauses.
46862
46863         vc-list-files: work properly in the CVS+awk case, too
46864         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46865
46866         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46867         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46868         take more than one file argument, so .  Add quotes, just in case $dir
46869         ever contains a shell meta-character.  Prompted by Soren Hansen in
46870         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46871
46872 2008-04-29  Eric Blake  <ebb9@byu.net>
46873
46874         Optimize getndelim2 to use block operations when possible.
46875         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46876         freadseek, and memchr2.
46877         * lib/getndelim2.c (getndelim2): Use them for block reads.
46878
46879 2008-04-29  Bruno Haible  <bruno@clisp.org>
46880
46881         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46882         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46883         * modules/inet_ntop (Depends-on): Add extensions.
46884         * modules/inet_pton (Depends-on): Likewise.
46885         Reported by Simon Josefsson.
46886
46887 2008-04-29  Jim Meyering  <meyering@redhat.com>
46888
46889         When the is more than one match in a block, match all of them.
46890         * build-aux/useless-if-before-free: Iterate through each block
46891         until there are no more matches.
46892
46893         Fix broken useless-if-before-free script.
46894         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46895         the expression to match cast of argument to free-like function.
46896
46897 2008-04-29  Eric Blake  <ebb9@byu.net>
46898
46899         Use new header.
46900         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46901
46902 2008-04-29  Jim Meyering  <meyering@redhat.com>
46903
46904         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46905         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46906         by gnulib to exist and to declare e.g., inet_ntop.
46907         Don't include "inet_ntop.h", now removed.
46908
46909         * m4/arpa_inet_h.m4: Remove trailing blanks.
46910
46911 2008-04-29  Eric Blake  <ebb9@byu.net>
46912
46913         Silence valgrind on safe reads beyond potential array bounds.
46914         * lib/rawmemchr.valgrind: New file.
46915         * lib/strchrnul.valgrind: Likewise.
46916         * modules/rawmemchr (Files): Distribute new file.
46917         * modules/strchrnul (Files): Likewise.
46918         Suggested by Bruno Haible.
46919
46920 2008-04-29  Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46923         (inet_ntop, inet_pton): Change portability warning's wording.
46924         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46925         Invoke gl_CHECK_NEXT_HEADERS.
46926         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46927         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46928         set ARPA_INET_H.
46929         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46930         * modules/arpa_inet (Description): No longer only for systems that
46931         lack it.
46932         (Depends-on): Add include_next.
46933         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46934         HAVE_ARPA_INET_H.
46935
46936 2008-04-29  Jim Meyering  <meyering@redhat.com>
46937
46938         * modules/mkdir (License): Re-license as LGPLv2+.
46939
46940 2008-04-29  Bruno Haible  <bruno@clisp.org>
46941
46942         * modules/rawmemchr (Maintainer): Set to Eric.
46943         * modules/strchrnul (Maintainer): Likewise.
46944
46945 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46946
46947         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46948         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46949
46950         * modules/arpa_inet (arpa/inet.h): Use them.
46951
46952 2008-04-28  Eric Blake  <ebb9@byu.net>
46953
46954         Test getndelim2.
46955         * modules/getndelim2-tests: New file.
46956         * tests/test-getndelim2.c: Likewise.
46957         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46958         stream.
46959         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46960
46961         * MODULES.html.sh: Document new module.
46962
46963 2008-04-20  Bruno Haible  <bruno@clisp.org>
46964
46965         * lib/c-stack.c (die): Use raise.
46966         * modules/c-stack (Depends-on): Add raise.
46967
46968 2008-04-28  Bruno Haible  <bruno@clisp.org>
46969
46970         Expect rpmatch to be declared.
46971         * lib/yesno.c (rpmatch): Remove declaration.
46972
46973         Declare rpmatch.
46974         * lib/stdlib.in.h (rpmatch): New declaration.
46975         * lib/rpmatch.c: Include <stdlib.h> first.
46976         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46977         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46979         HAVE_RPMATCH.
46980         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46981         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46982         (Include): Set to <stdlib.h>.
46983         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46984         HAVE_RPMATCH.
46985         * NEWS: Document the change.
46986
46987 2008-04-28  Bruno Haible  <bruno@clisp.org>
46988
46989         Change rpmatch to use nl_langinfo when appropriate.
46990         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46991         (N_): New macro.
46992         (localized_pattern): New function/macro.
46993         (try): Remove match, nomatch arguments. Copy the pattern into safe
46994         memory before caching it.
46995         (rpmatch): Use localized_pattern. Add translator comments.
46996         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46997         Suggested by Eric Blake.
46998         * modules/rpmatch (Depends-on): Add stdbool.
46999
47000 2008-04-28  Eric Blake  <ebb9@byu.net>
47001
47002         Add rawmemchr module, matching glibc.
47003         * modules/string (Makefile.am): New indicator.
47004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47005         * lib/string.in.h (rawmemchr): Declare when appropriate.
47006         * modules/rawmemchr: New file.
47007         * m4/rawmemchr.m4: Likewise.
47008         * lib/rawmemchr.c: Likewise.
47009         * modules/rawmemchr-tests: Likewise.
47010         * tests/test-rawmemchr.c: Likewise.
47011         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47012         module.
47013         * modules/strchrnul (Depends-on): Add rawmemchr.
47014         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47015
47016         Whitespace cleanup.
47017         * tests/test-strchrnul.c: Reindent.
47018         * lib/strchrnul.c: Likewise.
47019
47020         Optimize and test strchrnul.
47021         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47022         * modules/strchrnul-tests: New file.
47023         * tests/test-strchrnul.c: Likewise.
47024
47025         Remove intprops dependency.
47026         * modules/memchr (Depends-on): Remove intprops.
47027         * modules/memrchr (Depends-on): Likewise.
47028         * modules/memchr2 (Depends-on): Likewise.
47029         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47030         * lib/memrchr.c (__memrchr): Likewise.
47031         * lib/memrchr2.c (memchr2): Likewise.
47032         Reported by Simon Josefsson.
47033
47034 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47035
47036         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47037         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47038
47039 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47040
47041         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47042
47043         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47044
47045         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47046
47047         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47048         declarations.
47049         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47050
47051         * m4/inet_pton.m4: Don't check for header files.
47052
47053         * m4/inet_ntop.m4: Don't check for header files.
47054
47055 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47056
47057         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47058         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47059         trigger for cygwin).
47060         Reported by Bruno Haible  <bruno@clisp.org>.
47061
47062 2008-04-28  Bruno Haible  <bruno@clisp.org>
47063
47064         * doc/posix-functions/strdup.texi: Mention mingw problem.
47065
47066 2008-04-27  Bruno Haible  <bruno@clisp.org>
47067
47068         * modules/stat-time-tests (Depends-on): Add sleep.
47069         * tests/test-stat-time.c (force_unlink): New function.
47070         (cleanup): Use it.
47071         (test_mtime): Remove the ctime related tests.
47072         (test_ctime): New function, containing the ctime related tests.
47073         (main): Call test_ctime, except on native Windows platforms.
47074
47075 2008-04-27  Bruno Haible  <bruno@clisp.org>
47076
47077         * lib/rpmatch.c (rpmatch): Add some comments.
47078         Reported by James Youngman <jay@gnu.org>.
47079
47080 2008-04-27  Bruno Haible  <bruno@clisp.org>
47081
47082         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47083         quiet NaNs.
47084
47085 2008-04-27  Bruno Haible  <bruno@clisp.org>
47086
47087         Make test-yesno.sh work on mingw.
47088         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47089         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47090         (main): Set stdin to binary mode.
47091         * modules/yesno-tests (Depends-on): Add binary-io.
47092
47093 2008-04-27  Bruno Haible  <bruno@clisp.org>
47094
47095         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47096         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47097         argument that lie outside the IEEE 854 domain.
47098         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47099         (gl_ISFINITE): Use it.
47100         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47101
47102 2008-04-27  Bruno Haible  <bruno@clisp.org>
47103
47104         Allow local renaming in config.h.
47105         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47106
47107 2008-04-27  Bruno Haible  <bruno@clisp.org>
47108
47109         * lib/memchr.c (__memchr): Change type of 'i'.
47110         * lib/memchr2.c (memchr2): Likewise.
47111
47112 2008-04-26  Eric Blake  <ebb9@byu.net>
47113         and Bruno Haible  <bruno@clisp.org>
47114
47115         Optimize and test memrchr.
47116         * modules/memrchr (Depends-on): Add intprops.
47117         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47118         * modules/memrchr-tests: New file.
47119         * tests/test-memrchr.c: New file.
47120
47121 2008-04-26  Bruno Haible  <bruno@clisp.org>
47122
47123         Add tentative support for DragonFly BSD.
47124         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47125         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47126         fp.
47127         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47128         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47129         * lib/fpurge.c (fpurge): Likewise.
47130         * lib/freadable.c (freaadable): Likewise.
47131         * lib/freadahead.c (freadahead): Likewise.
47132         * lib/freading.c (freading): Likewise.
47133         * lib/freadptr.c (freadptr): Likewise.
47134         * lib/freadseek.c (freadptrinc): Likewise.
47135         * lib/fseeko.c (fseeko): Likewise.
47136         * lib/fseterr.c (fseterr): Likewise.
47137         * lib/fwritable.c (fwritable): Likewise.
47138         * lib/fwriting.c (fwriting): Likewise.
47139
47140 2008-04-26  Bruno Haible  <bruno@clisp.org>
47141
47142         * lib/stdio-impl.h: New file.
47143         * lib/fbufmode.c: Include stdio-impl.h.
47144         (fbufmode): Use fp_, remove redundant #defines.
47145         * lib/fflush.c: Include stdio-impl.h.
47146         (clear_ungetc_buffer): Remove redundant #defines.
47147         * lib/fpurge.c: Include stdio-impl.h.
47148         (fpurge): Remove redundant #defines.
47149         * lib/freadable.c: Include stdio-impl.h.
47150         (freadable): Remove redundant #defines.
47151         * lib/freadahead.c: Include stdio-impl.h.
47152         (freadahead): Remove redundant #defines.
47153         * lib/freading.c: Include stdio-impl.h.
47154         (freading): Remove redundant #defines.
47155         * lib/freadptr.c: Include stdio-impl.h.
47156         (freadptr): Remove redundant #defines.
47157         * lib/freadseek.c: Include stdio-impl.h.
47158         (freadptrinc): Remove redundant #defines.
47159         * lib/fseeko.c: Include stdio-impl.h.
47160         (rpl_fseeko): Remove redundant #defines.
47161         * lib/fseterr.c: Include stdio-impl.h.
47162         (fseterr): Remove redundant #defines.
47163         * lib/fwritable.c: Include stdio-impl.h.
47164         (fwritable: Remove redundant #defines.
47165         * lib/fwriting.c: Include stdio-impl.h.
47166         (fwriting): Remove redundant #defines.
47167         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47168         * modules/fflush (Files): Likewise.
47169         * modules/fpurge (Files): Likewise.
47170         * modules/freadable (Files): Likewise.
47171         * modules/freadahead (Files): Likewise.
47172         * modules/freading (Files): Likewise.
47173         * modules/freadptr (Files): Likewise.
47174         * modules/freadseek (Files): Likewise.
47175         * modules/fseeko (Files): Likewise.
47176         * modules/fseterr (Files): Likewise.
47177         * modules/fwritable (Files): Likewise.
47178         * modules/fwriting (Files): Likewise.
47179
47180 2008-04-26  Bruno Haible  <bruno@clisp.org>
47181
47182         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47183         restore_seek_optimization, update_fpos_cache): New functions, extracted
47184         from rpl_fflush.
47185         (rpl_fflush): Use them.
47186         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47187         (gl_REPLACE_FFLUSH): Use it.
47188
47189 2008-04-26  Bruno Haible  <bruno@clisp.org>
47190
47191         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47192         on Solaris.
47193         * tests/test-xstrtoimax.sh: Likewise.
47194         * tests/test-xstrtoumax.sh: Likewise.
47195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47196
47197 2008-04-26  Bruno Haible  <bruno@clisp.org>
47198
47199         * modules/memchr-tests: New file.
47200         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47201
47202 2008-04-26  Eric Blake  <ebb9@byu.net>
47203             Bruno Haible  <bruno@clisp.org>
47204
47205         * lib/memchr.c: Include intprops.h.
47206         (__memchr): Optimize parallel detection of matching bytes. Rename local
47207         variables. Add explanatory comments.
47208
47209 2008-04-26  Bruno Haible  <bruno@clisp.org>
47210
47211         Fix module 'memchr', broken since 2000-10-28.
47212         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47213
47214 2008-04-26  Bruno Haible  <bruno@clisp.org>
47215
47216         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47217         comments.
47218
47219 2008-04-25  Eric Blake  <ebb9@byu.net>
47220
47221         Use native fstatat on cygwin 1.7.0.
47222         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47223         first.
47224
47225 2008-04-23  Eric Blake  <ebb9@byu.net>
47226
47227         Improve memchr2 performance.
47228         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47229         NUL bytes.
47230         * modules/memchr2 (Depends-on): Use intprops.h.
47231
47232 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47233
47234         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47235         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47236         <blp@cs.stanford.edu>.
47237
47238 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47239
47240         * lib/arpa_inet.in.h: New file.
47241
47242         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47243         (Makefile.am): Sed in substitute header file.
47244
47245         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47246         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47247
47248         * modules/inet_ntop (configure.ac): Use
47249         gl_ARPA_INET_MODULE_INDICATOR.
47250
47251         * modules/inet_pton (configure.ac): Use
47252         gl_ARPA_INET_MODULE_INDICATOR.
47253
47254 2008-04-22  Jim Meyering  <meyering@redhat.com>
47255
47256         * modules/verify (License): Re-license as LGPLv2+.
47257
47258 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47259
47260         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47261         parameter to void* as per POSIX standard (MinGW uses char*).
47262
47263 2008-04-21  Bruno Haible  <bruno@clisp.org>
47264
47265         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47266         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47267         Define to replacements if REPLACE_ISWCNTRL is 1.
47268         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47269         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47270         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47271         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47272         what it fixes.
47273         * doc/posix-functions/iswalpha.texi: Likewise.
47274         * doc/posix-functions/iswblank.texi: Likewise.
47275         * doc/posix-functions/iswcntrl.texi: Likewise.
47276         * doc/posix-functions/iswdigit.texi: Likewise.
47277         * doc/posix-functions/iswgraph.texi: Likewise.
47278         * doc/posix-functions/iswlower.texi: Likewise.
47279         * doc/posix-functions/iswprint.texi: Likewise.
47280         * doc/posix-functions/iswpunct.texi: Likewise.
47281         * doc/posix-functions/iswspace.texi: Likewise.
47282         * doc/posix-functions/iswupper.texi: Likewise.
47283         * doc/posix-functions/iswxdigit.texi: Likewise.
47284         Reported by Alain Guibert.
47285
47286 2008-04-21  Bruno Haible  <bruno@clisp.org>
47287
47288         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47289         Patch by Alain Guibert.
47290
47291 2008-04-21  Bruno Haible  <bruno@clisp.org>
47292
47293         Fix test failures on mingw.
47294         * tests/test-xstrtol.c (print_no_progname): New function.
47295         (main): Install it in error_print_progname hook.
47296         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47297         * tests/test-xstrtoimax.sh: Likewise.
47298         * tests/test-xstrtoumax.sh: Likewise.
47299
47300 2008-04-21  Bruno Haible  <bruno@clisp.org>
47301
47302         Fix test failure on mingw.
47303         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47304
47305 2008-04-21  Bruno Haible  <bruno@clisp.org>
47306
47307         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47308         Actually assign a value.
47309
47310 2008-04-20  Bruno Haible  <bruno@clisp.org>
47311
47312         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47313         take 2.
47314         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47315         'canonicalize-lgpl' module is also used.
47316         * lib/canonicalize-lgpl.c: Undo last change.
47317         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47318
47319 2008-04-20  Bruno Haible  <bruno@clisp.org>
47320
47321         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47322         config.h. Provide _mkdir based fallback for mingw.
47323         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47324         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47325         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47326         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47327         rather than defining mkdir in config.h.
47328         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47329         (gl_SYS_STAT_H_DEFAULTS): New macro.
47330         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47331         HAVE_IO_H any more.
47332         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47333         HAVE_DECL_MKDIR and HAVE_IO_H.
47334
47335 2008-04-20  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/isapipe.c: Port to native Windows platforms.
47338
47339 2008-04-20  Bruno Haible  <bruno@clisp.org>
47340
47341         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47342
47343 2008-04-21  Eric Blake  <ebb9@byu.net>
47344
47345         Work around preprocessors that don't handle UINTMAX_MAX.
47346         * lib/memchr2.c (memchr2): Avoid embedded #if.
47347         Reported by Alain Guibert, fix suggested by Bruno Haible.
47348
47349 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47350
47351         * doc/posix-functions/strftime.texi (strftime): Explain better
47352         Windows incompatibility.  Suggested by Micah Cowan
47353         <micah@cowan.name>.
47354
47355 2008-04-20  Bruno Haible  <bruno@clisp.org>
47356
47357         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47358         unistr/u8-mblen.
47359
47360 2008-04-20  Bruno Haible  <bruno@clisp.org>
47361
47362         Fix test failure on platforms with non-GNU iconv.
47363         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47364         (U_TO_U8): Use it, rather than u16_to_u8.
47365         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47366         units at the end of the input string.
47367         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47368
47369 2008-04-20  Bruno Haible  <bruno@clisp.org>
47370
47371         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47372         when the resulting length is 0.
47373         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47374
47375 2008-04-20  Bruno Haible  <bruno@clisp.org>
47376
47377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47378         works.
47379         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47380
47381 2008-04-20  Bruno Haible  <bruno@clisp.org>
47382
47383         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47384         * modules/tsearch-tests (configure.ac): Test for initstate function.
47385
47386 2008-04-20  Bruno Haible  <bruno@clisp.org>
47387
47388         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47389         for nlink_t if missing.
47390         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47391
47392 2008-04-19  Bruno Haible  <bruno@clisp.org>
47393
47394         Work around snprintf bug on Linux libc5.
47395         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47397         gl_SNPRINTF_SIZE1.
47398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47399         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47400         that test failed.
47401         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47402         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47403         * modules/snprintf (Files): Add m4/printf.m4.
47404         * modules/vsnprintf (Files): Likewise.
47405         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47406         * doc/posix-functions/vsnprintf.texi: Likewise.
47407
47408 2008-04-19  Bruno Haible  <bruno@clisp.org>
47409
47410         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47411         from 0.0058 to less than 10^-7.
47412
47413 2008-04-19  Bruno Haible  <bruno@clisp.org>
47414
47415         Fix rounding when a precision is given.
47416         * lib/vasnprintf.c (is_borderline): New function.
47417         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47418         9...9x.
47419         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47420         %e, %g.
47421         * tests/test-vasprintf-posix.c (test_function): Likewise.
47422         * tests/test-snprintf-posix.h (test_function): Likewise.
47423         * tests/test-sprintf-posix.h (test_function): Likewise.
47424         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47425         * tests/test-printf-posix.h (test_function): Likewise.
47426         * tests/test-printf-posix.output: Update.
47427         Reported by John Darrington <john@darrington.wattle.id.au> via
47428         Ben Pfaff <blp@cs.stanford.edu>.
47429
47430 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47431
47432         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47433         Suggested by Bruno Haible <bruno@clisp.org>.
47434
47435 2008-04-17  Bruno Haible  <bruno@clisp.org>
47436
47437         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47438         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47439         implementation.
47440         Patch by Bruce Merry <bmerry@gmail.com>.
47441
47442 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47443
47444         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47445         doesn't work under Windows.
47446
47447 2008-04-16  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47450         New macros.
47451         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47452         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47453         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47454         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47455         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47456         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47457         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47458         macros.
47459         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47460         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47461         Northern Sotho, Uighur.
47462
47463 2008-04-16  Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47466         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47467         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47468         Reported by Daniel Bergström <daniel@octocode.com>.
47469
47470 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47471             Bruno Haible  <bruno@clisp.org>
47472
47473         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47474         function.
47475         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47476         New functions, mostly extracted from gl_locale_name_default.
47477         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47478
47479 2008-04-16  Eric Blake  <ebb9@byu.net>
47480
47481         Adjust strtod detection to catch glibc 2.7 bug.
47482         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47483         Reported by John Gatewood Ham.
47484
47485 2008-04-16  Bruno Haible  <bruno@clisp.org>
47486
47487         Add tentative support for Linux libc5.
47488         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47489         * lib/fpurge.c (fpurge): Likewise.
47490         * lib/freadable.c (freadable): Likewise.
47491         * lib/freadahead.c (freadahead): Likewise.
47492         * lib/freading.c (freading): Likewise.
47493         * lib/freadptr.c (freadptr): Likewise.
47494         * lib/freadseek.c (freadptrinc): Likewise.
47495         * lib/fseeko.c (rpl_fseeko): Likewise.
47496         * lib/fseterr.c (fseterr): Likewise.
47497         * lib/fwritable.c (fwritable): Likewise.
47498         * lib/fwriting.c (fwriting): Likewise.
47499         Reported by Alain Guibert <alguibert+bts@free.fr>.
47500
47501 2008-04-15  Bruno Haible  <bruno@clisp.org>
47502
47503         * modules/mathl (configure.ac): Define module indicator.
47504
47505 2008-04-15  Bruno Haible  <bruno@clisp.org>
47506
47507         * lib/logl.c (logl): Remove unused variables.
47508
47509 2008-04-15  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47512         fails.
47513
47514 2008-04-15  Bruno Haible  <bruno@clisp.org>
47515
47516         * lib/trim.c (trim2): Fix argument of isspace() macro.
47517
47518 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47519
47520         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47521         to 0.
47522         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47523
47524 2008-04-14  Bruno Haible  <bruno@clisp.org>
47525
47526         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47527         AC_LANG_PROGRAM argument.
47528         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47529         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47531         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47532         * m4/math_h.m4 (gl_MATH_H): Likewise.
47533         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47534         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47535         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47536         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47537         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47538         * m4/regex.m4 (gl_REGEX): Likewise.
47539         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47540         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47541         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47542         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47543         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47544         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47546         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47547
47548 2008-04-14  Jim Meyering  <meyering@redhat.com>
47549
47550         test-strtod: fix typos: s/abs/fabs/
47551         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47552
47553 2008-04-13  Bruno Haible  <bruno@clisp.org>
47554
47555         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47556         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47557         module is also used and while not building the reloc-wrapper.
47558
47559 2008-04-13  Bruno Haible  <bruno@clisp.org>
47560
47561         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47562
47563 2008-04-13  Bruno Haible  <bruno@clisp.org>
47564
47565         Fix AIX compilation failure introduced on 2008-04-02.
47566         * tests/test-frexp.c (exp): Undefine before redefining.
47567         * tests/test-frexpl.c (exp): Likewise.
47568
47569 2008-04-13  Bruno Haible  <bruno@clisp.org>
47570
47571         Work around a HP-UX stdio bug.
47572         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47573         * tests/test-ftello.c (main): Likewise.
47574         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47575         * doc/posix-functions/ftello.texi: Likewise.
47576
47577 2008-04-13  Bruno Haible  <bruno@clisp.org>
47578
47579         Make test-signbit pass on HP-UX/hppa.
47580         * tests/test-signbit.c (minus_zerol): New variable.
47581         (test_signbitl): Use it.
47582
47583 2008-04-13  Bruno Haible  <bruno@clisp.org>
47584
47585         Make truncl work on OSF/1 4.0.
47586         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47587         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47588         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47590         HAVE_DECL_TRUNCL.
47591         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47592         HAVE_DECL_TRUNCL.
47593         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47594
47595 2008-04-13  Bruno Haible  <bruno@clisp.org>
47596
47597         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47598
47599 2008-04-13  Bruno Haible  <bruno@clisp.org>
47600
47601         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47602         expression, so as to avoid HP-UX 11 cc compiler bug.
47603
47604 2008-04-13  Bruno Haible  <bruno@clisp.org>
47605
47606         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47607
47608 2008-04-13  Bruno Haible  <bruno@clisp.org>
47609
47610         * lib/git-merge-changelog.c: Remove empty declaration outside of
47611         functions.
47612
47613 2008-04-13  Bruno Haible  <bruno@clisp.org>
47614
47615         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47616
47617 2008-04-13  Bruno Haible  <bruno@clisp.org>
47618
47619         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47620         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47621         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47622         also if it exists but lacks definitions of the SHUT_* macros.
47623         * modules/sys_socket (Description): Update.
47624         Reported by Elbert Pol <e.pol@chello.nl>.
47625
47626 2008-04-13  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/localcharset.c (OS2): Don't redefine if already defined.
47629         Reported by Elbert Pol <e.pol@chello.nl>.
47630
47631 2008-04-13  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/binary-io.h [__EMX__]: Include <io.h>.
47634         Reported by Elbert Pol <e.pol@chello.nl>.
47635
47636 2008-04-12  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/fpucw.h: Enable the definitions also for x86_64.
47639         Needed for NetBSD/x86_64.
47640         Reported by Thomas Klausner <tk@giga.or.at>.
47641
47642 2008-04-12  Bruno Haible  <bruno@clisp.org>
47643
47644         * tests/test-strtod.c: Include isnand.h.
47645         (main): Use isnand instead of isnan.
47646         Reported by Jim Meyering.
47647
47648 2008-04-12  Bruno Haible  <bruno@clisp.org>
47649
47650         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47651         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47652
47653 2008-04-12  Jim Meyering  <meyering@redhat.com>
47654
47655         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47656
47657 2008-04-12  Bruno Haible  <bruno@clisp.org>
47658
47659         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47660         Reported by Elbert Pol <e.pol@chello.nl>.
47661
47662 2008-04-12  Eric Blake  <ebb9@byu.net>
47663
47664         Work around Solaris 10 math.h bug.
47665         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47666         (gl_MATH_H_DEFAULTS): Set up default.
47667         * modules/math (Makefile.am): Replace new indicators.
47668         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47669         * tests/test-math.c (main): Test this.
47670         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47671         * doc/posix-headers/math.texi (math.h): Mention bug.
47672         Reported by Nelson H. F. Beebe and Jim Meyering.
47673
47674 2008-04-11  Bruno Haible  <bruno@clisp.org>
47675
47676         Adapt to future versions of Apple GCC.
47677         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47678         Reported by Peter O'Gorman <peter@pogma.com>.
47679
47680 2008-04-11  Bruno Haible  <bruno@clisp.org>
47681
47682         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47683
47684 2008-04-11  Bruno Haible  <bruno@clisp.org>
47685
47686         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47687
47688         * modules/getaddrinfo-tests (Makefile.am): Define
47689         test_getaddrinfo_LDADD.
47690
47691 2008-04-11  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47694         (init): Fix syntax error.
47695         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47696         is declared.
47697
47698 2008-04-11  Bruno Haible  <bruno@clisp.org>
47699
47700         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47701         * modules/glob (Depends-on): Add stdbool.
47702
47703 2008-04-11  Bruno Haible  <bruno@clisp.org>
47704
47705         * lib/trim.c: Include <string.h>.
47706
47707 2008-04-11  Eric Blake  <ebb9@byu.net>
47708
47709         Avoid compile failure on OS/2.
47710         * lib/regex_internal.h (internal_function): Disable optimization
47711         on OS/2 (__EMX__), where it caused compiler error.
47712         Reported by Elbert Pol.
47713
47714 2008-04-11  Bruno Haible  <bruno@clisp.org>
47715
47716         Flush the standard error stream before aborting. Needed on mingw.
47717         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47718         * tests/test-array_list.c (ASSERT): Likewise.
47719         * tests/test-array_oset.c (ASSERT): Likewise.
47720         * tests/test-avltree_list.c (ASSERT): Likewise.
47721         * tests/test-avltree_oset.c (ASSERT): Likewise.
47722         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47723         * tests/test-binary-io.c (ASSERT): Likewise.
47724         * tests/test-byteswap.c (ASSERT): Likewise.
47725         * tests/test-c-ctype.c (ASSERT): Likewise.
47726         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47727         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47728         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47729         * tests/test-c-strstr.c (ASSERT): Likewise.
47730         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47731         * tests/test-canonicalize.c (ASSERT): Likewise.
47732         * tests/test-carray_list.c (ASSERT): Likewise.
47733         * tests/test-ceilf1.c (ASSERT): Likewise.
47734         * tests/test-ceilf2.c (ASSERT): Likewise.
47735         * tests/test-ceill.c (ASSERT): Likewise.
47736         * tests/test-count-one-bits.c (ASSERT): Likewise.
47737         * tests/test-fbufmode.c (ASSERT): Likewise.
47738         * tests/test-fflush2.c (ASSERT): Likewise.
47739         * tests/test-floorf1.c (ASSERT): Likewise.
47740         * tests/test-floorf2.c (ASSERT): Likewise.
47741         * tests/test-floorl.c (ASSERT): Likewise.
47742         * tests/test-fopen.c (ASSERT): Likewise.
47743         * tests/test-fpending.c (ASSERT): Likewise.
47744         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47745         * tests/test-fpurge.c (ASSERT): Likewise.
47746         * tests/test-freadable.c (ASSERT): Likewise.
47747         * tests/test-freadahead.c (ASSERT): Likewise.
47748         * tests/test-freading.c (ASSERT): Likewise.
47749         * tests/test-freadptr.c (ASSERT): Likewise.
47750         * tests/test-freadptr2.c (ASSERT): Likewise.
47751         * tests/test-freadseek.c (ASSERT): Likewise.
47752         * tests/test-freopen.c (ASSERT): Likewise.
47753         * tests/test-frexp.c (ASSERT): Likewise.
47754         * tests/test-frexpl.c (ASSERT): Likewise.
47755         * tests/test-fseek.c (ASSERT): Likewise.
47756         * tests/test-fseeko.c (ASSERT): Likewise.
47757         * tests/test-fstrcmp.c (ASSERT): Likewise.
47758         * tests/test-ftell.c (ASSERT): Likewise.
47759         * tests/test-ftello.c (ASSERT): Likewise.
47760         * tests/test-func.c (ASSERT): Likewise.
47761         * tests/test-fwritable.c (ASSERT): Likewise.
47762         * tests/test-fwriting.c (ASSERT): Likewise.
47763         * tests/test-getdelim.c (ASSERT): Likewise.
47764         * tests/test-getline.c (ASSERT): Likewise.
47765         * tests/test-i-ring.c (ASSERT): Likewise.
47766         * tests/test-iconv-utf.c (ASSERT): Likewise.
47767         * tests/test-iconv.c (ASSERT): Likewise.
47768         * tests/test-isfinite.c (ASSERT): Likewise.
47769         * tests/test-isnand.c (ASSERT): Likewise.
47770         * tests/test-isnanf.c (ASSERT): Likewise.
47771         * tests/test-isnanl.h (ASSERT): Likewise.
47772         * tests/test-ldexpl.c (ASSERT): Likewise.
47773         * tests/test-linked_list.c (ASSERT): Likewise.
47774         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47775         * tests/test-localename.c (ASSERT): Likewise.
47776         * tests/test-lseek.c (ASSERT): Likewise.
47777         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47778         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47779         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47780         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47781         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47782         * tests/test-mbschr.c (ASSERT): Likewise.
47783         * tests/test-mbscspn.c (ASSERT): Likewise.
47784         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47785         * tests/test-mbspbrk.c (ASSERT): Likewise.
47786         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47787         * tests/test-mbsrchr.c (ASSERT): Likewise.
47788         * tests/test-mbsspn.c (ASSERT): Likewise.
47789         * tests/test-mbsstr1.c (ASSERT): Likewise.
47790         * tests/test-mbsstr2.c (ASSERT): Likewise.
47791         * tests/test-mbsstr3.c (ASSERT): Likewise.
47792         * tests/test-memchr2.c (ASSERT): Likewise.
47793         * tests/test-memmem.c (ASSERT): Likewise.
47794         * tests/test-open.c (ASSERT): Likewise.
47795         * tests/test-printf-frexp.c (ASSERT): Likewise.
47796         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47797         * tests/test-printf-posix.c (ASSERT): Likewise.
47798         * tests/test-quotearg.c (ASSERT): Likewise.
47799         * tests/test-rbtree_list.c (ASSERT): Likewise.
47800         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47801         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47802         * tests/test-round1.c (ASSERT): Likewise.
47803         * tests/test-roundf1.c (ASSERT): Likewise.
47804         * tests/test-roundl.c (ASSERT): Likewise.
47805         * tests/test-signbit.c (ASSERT): Likewise.
47806         * tests/test-sleep.c (ASSERT): Likewise.
47807         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47808         * tests/test-snprintf.c (ASSERT): Likewise.
47809         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47810         * tests/test-stat-time.c (ASSERT): Likewise.
47811         * tests/test-strcasestr.c (ASSERT): Likewise.
47812         * tests/test-strerror.c (ASSERT): Likewise.
47813         * tests/test-striconv.c (ASSERT): Likewise.
47814         * tests/test-striconveh.c (ASSERT): Likewise.
47815         * tests/test-striconveha.c (ASSERT): Likewise.
47816         * tests/test-strsignal.c (ASSERT): Likewise.
47817         * tests/test-strstr.c (ASSERT): Likewise.
47818         * tests/test-strtod.c (ASSERT): Likewise.
47819         * tests/test-trunc1.c (ASSERT): Likewise.
47820         * tests/test-trunc2.c (ASSERT): Likewise.
47821         * tests/test-truncf1.c (ASSERT): Likewise.
47822         * tests/test-truncf2.c (ASSERT): Likewise.
47823         * tests/test-truncl.c (ASSERT): Likewise.
47824         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47825         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47826         * tests/test-vasnprintf.c (ASSERT): Likewise.
47827         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47828         * tests/test-vasprintf.c (ASSERT): Likewise.
47829         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47830         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47831         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47832         * tests/test-vsnprintf.c (ASSERT): Likewise.
47833         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47834         * tests/test-wcwidth.c (ASSERT): Likewise.
47835         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47836         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47837         * tests/test-xvasprintf.c (ASSERT): Likewise.
47838         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47839         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47840         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47841         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47842         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47843         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47844         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47845         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47846         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47847         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47848         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47849         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47850         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47851         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47852         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47853         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47854         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47855         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47856         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47857         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47858         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47859         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47860         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47861         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47862         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47863         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47864         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47865         * tests/unictype/test-combining.c (ASSERT): Likewise.
47866         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47867         * tests/unictype/test-digit.c (ASSERT): Likewise.
47868         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47869         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47870         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47871         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47872         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47873         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47874         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47875         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47876         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47877         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47878         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47879         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47880         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47881         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47882         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47883         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47884         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47885         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47886         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47887         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47888         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47889         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47890         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47891         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47892         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47893         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47894         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47895         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47896         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47897         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47898         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47899         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47900         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47901         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47902         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47903         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47904         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47905         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47906         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47907         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47908         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47909         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47910         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47911         Reported by Eric Blake.
47912
47913 2008-04-11  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/wchar.in.h: Tweak comment.
47916
47917 2008-04-11  Bruno Haible  <bruno@clisp.org>
47918
47919         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47920         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47921         gl_COMMON.
47922         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47923
47924 2008-04-11  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47927
47928 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47929
47930         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47931         of attempting to use non-existing /dev/*random.  Based on patch
47932         from Adam Strzelecki <ono@java.pl> in
47933         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47934
47935 2008-04-08  Bruno Haible  <bruno@clisp.org>
47936
47937         Add tentative support for emx+gcc.
47938         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47939         * lib/fpurge.c (fpurge): Likewise.
47940         * lib/freadable.c (freadable): Likewise.
47941         * lib/freadahead.c (freadahead): Likewise.
47942         * lib/freading.c (freading): Likewise.
47943         * lib/freadptr.c (freadptr): Likewise.
47944         * lib/freadseek.c (freadptrinc): Likewise.
47945         * lib/fseeko.c (rpl_fseeko): Likewise.
47946         * lib/fseterr.c (fseterr): Likewise.
47947         * lib/fwritable.c (fwritable): Likewise.
47948         * lib/fwriting.c (fwriting): Likewise.
47949         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47950
47951 2008-04-09  Eric Blake  <ebb9@byu.net>
47952
47953         Avoid some autoconf warnings.
47954         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47955         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47956         * m4/afs.m4 (gl_AFS): Likewise.
47957         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47958         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47959         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47960         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47961         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47962         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47963         (AC_CHECK_DECLS_ONCE): Likewise.
47964         Rename file...
47965         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47966         gnulib-tool requires autoconf 2.59 or better.
47967         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47968
47969 2008-04-08  Eric Blake  <ebb9@byu.net>
47970
47971         Use 'git describe --match' if present (added in git 1.5.5).
47972         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47973         if possible.
47974
47975 2008-04-08  Bruno Haible  <bruno@clisp.org>
47976
47977         Add tentative support for OpenServer.
47978         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47979         _ptr, _cnt.
47980         * lib/fpurge.c (fpurge): Likewise.
47981         * lib/freadable.c (freadable): Likewise.
47982         * lib/freadahead.c (freadahead): Likewise.
47983         * lib/freading.c (freading): Likewise.
47984         * lib/freadptr.c (freadptr): Likewise.
47985         * lib/freadseek.c (freadptrinc): Likewise.
47986         * lib/fseeko.c (rpl_fseeko): Likewise.
47987         * lib/fseterr.c (fseterr): Likewise.
47988         * lib/fwritable.c (fwritable): Likewise.
47989         * lib/fwriting.c (fwriting): Likewise.
47990         Reported by Roger Cornelius <rac@tenzing.org> and
47991         Brian K. White <brian@aljex.com>.
47992
47993 2008-04-06  Jim Meyering  <meyering@redhat.com>
47994
47995         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47996
47997 2008-04-06  Bruno Haible  <bruno@clisp.org>
47998
47999         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48000         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48001         * tests/test-printf-posix.sh: Likewise.
48002         * tests/test-vfprintf-posix.sh: Likewise.
48003         * tests/test-vprintf-posix.sh: Likewise.
48004         * tests/test-xprintf-posix.sh: Likewise.
48005
48006 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48007
48008         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48009         hide error from 'ls', needed on OS/2.
48010         Report by Elbert Pol <elbert.pol@gmail.com>.
48011
48012 2008-04-04  Eric Blake  <ebb9@byu.net>
48013
48014         Make test-fseeko.c failures meaningful.
48015         * tests/test-fseeko.c: Print line number on failure.
48016         * tests/test-fseek.c: Likewise.
48017         Reported by Nelson H. F. Beebe.
48018
48019         Improve strtod bug detection check.
48020         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48021         required for Solaris 10.
48022         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48023
48024 2008-04-04  Bruno Haible  <bruno@clisp.org>
48025
48026         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48027         by m4/setenv.m4.
48028
48029 2008-04-03  Eric Blake  <ebb9@byu.net>
48030
48031         Ensure sane .version contents.
48032         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48033         version string.
48034         * build-aux/git-version-gen: Improve documentation.
48035
48036         Make GNU make output nicer.
48037         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48038         MAKECMDGOALS to enforce message for all command line targets.  Set
48039         srcdir for use in maint.mk.
48040
48041         Another maintainer tweak.
48042         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48043         a target that regenerates version.
48044
48045 2008-04-03  Jim Meyering  <meyering@redhat.com>
48046
48047         vc-list-files: don't cause coreutils "make po-check" failure
48048         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48049
48050 2008-04-03  Eric Blake  <ebb9@byu.net>
48051
48052         Allow VPATH usage of vc-list-files.
48053         * build-aux/vc-list-files (scriptversion): Add timestamp.
48054         (options): Add --help, --version, -C.
48055         (CVS): Support installed cvsu.
48056
48057 2008-04-02  Bruno Haible  <bruno@clisp.org>
48058
48059         Avoid some "statement with no effect" warnings from gcc.
48060         * tests/test-wctype.c (main): Explicitly ignore unused values.
48061         Reported by Jim Meyering.
48062
48063 2008-04-02  Jim Meyering  <meyering@redhat.com>
48064
48065         Avoid some warnings from "gcc -Wshadow".
48066         * tests/test-frexp.c (exp): Define to a different identifier.
48067         * tests/test-frexpl.c (exp): Likewise.
48068
48069 2008-04-03  Jim Meyering  <meyering@redhat.com>
48070
48071         bootstrap: remove dangling *.[ch] symlinks from lib
48072         * build-aux/bootstrap [dangling symlink removal]: Move find's
48073         -depth option to precede all others, to avoid a warning.
48074         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48075
48076 2008-04-02  Bruno Haible  <bruno@clisp.org>
48077
48078         Avoid some warnings from "gcc -Wshadow".
48079         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48080         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48081         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48082         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48083         Reported by Jim Meyering.
48084
48085 2008-04-01  Bruno Haible  <bruno@clisp.org>
48086
48087         Fix test to work on IRIX 6.5 with cc.
48088         * tests/test-math.c (numeric_equal): New function.
48089         (main): Use it.
48090
48091 2008-04-01  Bruno Haible  <bruno@clisp.org>
48092
48093         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48094
48095 2008-04-01  Bruno Haible  <bruno@clisp.org>
48096
48097         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48098         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48099         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48100         (Depends-on): Remove math.
48101
48102         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48103         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48104         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48105         (Depends-on): Remove math.
48106
48107         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48108         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48109         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48110         (Depends-on): Remove math.
48111         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48112         (Depends-on): Remove math.
48113
48114         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48115         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48116         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48117         (Depends-on): Remove math.
48118         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48119         (Depends-on): Remove math.
48120
48121         * tests/test-round1.c: Include nan.h.
48122         (main): Use NaNd instead of NAN.
48123         * modules/round-tests (Files): Add tests/nan.h.
48124
48125         * tests/test-trunc1.c: Include nan.h.
48126         (main): Use NaNd instead of NAN.
48127         * modules/trunc-tests (Files): Add tests/nan.h.
48128
48129         * tests/test-roundf1.c: Include nan.h.
48130         (main): Use NaNf instead of NAN.
48131         * modules/roundf-tests (Files): Add tests/nan.h.
48132
48133         * tests/test-truncf1.c: Include nan.h.
48134         (main): Use NaNf instead of NAN.
48135         * modules/truncf-tests (Files): Add tests/nan.h.
48136
48137         * tests/test-ceilf1.c: Include nan.h.
48138         (main): Use NaNf instead of NAN.
48139         * modules/ceilf-tests (Files): Add tests/nan.h.
48140
48141         * tests/test-floorf1.c: Include nan.h.
48142         (main): Use NaNf instead of NAN.
48143         * modules/floorf-tests (Files): Add tests/nan.h.
48144
48145         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48146         (main): Use NaNf instead of NAN.
48147         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48148
48149         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48150         (main): Use NaNd instead of NAN.
48151         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48152
48153         * tests/test-frexp.c: Include nan.h.
48154         (main): Use NaNd instead of NAN.
48155         * modules/frexp-tests (Files): Add tests/nan.h.
48156
48157         * lib/isnan.c: Don't include <math.h>.
48158         (FUNC): Don't use NAN macro.
48159         * modules/isnand-nolibm (Depends-on): Remove math.
48160         * modules/isnanf-nolibm (Depends-on): Remove math.
48161         * modules/isnanl (Depends-on): Remove math.
48162         * modules/isnanl-nolibm (Depends-on): Remove math.
48163
48164         * tests/nan.h: New file.
48165
48166 2008-04-01  Eric Blake  <ebb9@byu.net>
48167
48168         Fix typos.
48169         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48170         values to be the right type.
48171
48172         For now, cater to gnulib strtod inaccuracies.
48173         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48174         fractional results.  While not as nice from a QoI perspective, it
48175         is a quicker patch than correctly implementing decimal to binary
48176         rounding.
48177
48178 2008-03-31  Eric Blake  <ebb9@byu.net>
48179
48180         Guarantee a definition of NAN.
48181         * lib/math.in.h (NAN): Define if missing.
48182         * tests/test-math.c (main): Test it.
48183         * doc/posix-headers/math.texi (math.h): Document this.
48184         * lib/isnan.c (rpl_isnand): Use it.
48185         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48186         * tests/test-floorf1.c (NaN): Likewise.
48187         * tests/test-frexp.c (NaN): Likewise.
48188         * tests/test-isnand.c (NaN): Likewise.
48189         * tests/test-isnanf.c (NaN): Likewise.
48190         * tests/test-round1.c (NaN): Likewise.
48191         * tests/test-roundf1.c (NaN): Likewise.
48192         * tests/test-snprintf-posix.h (NaN): Likewise.
48193         * tests/test-sprintf-posix.h (NaN): Likewise.
48194         * tests/test-trunc1.c (NaN): Likewise.
48195         * tests/test-truncf1.c (NaN): Likewise.
48196         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48197         * tests/test-vasprintf-posix.c (NaN): Likewise.
48198         * modules/isnand-nolibm (Depends-on): Add math.
48199         * modules/isnanf-nolibm (Depends-on): Likewise.
48200         * modules/isnanl (Depends-on): Likewise.
48201         * modules/isnanl-nolibm (Depends-on): Likewise.
48202         * modules/snprintf-posix-tests (Depends-on): Likewise.
48203         * modules/sprintf-posix-tests (Depends-on): Likewise.
48204         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48205         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48206         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48207         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48208
48209 2008-03-31  Bruno Haible  <bruno@clisp.org>
48210
48211         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48212         * doc/posix-functions/strtod.texi: Likewise.
48213
48214 2008-03-31  Bruno Haible  <bruno@clisp.org>
48215
48216         * tests/test-strtod.c (main): Don't use C99 syntax.
48217
48218 2008-03-31  Bruno Haible  <bruno@clisp.org>
48219
48220         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48221         Reported by Eric Blake.
48222
48223 2008-03-31  Jim Meyering  <meyering@redhat.com>
48224
48225         Don't compare actual signbit return values.
48226         * tests/test-strtod.c (main): Rather, compare only their
48227         zero/non-zero nature.
48228
48229 2008-03-31  Eric Blake  <ebb9@byu.net>
48230
48231         More strtod documentation.
48232         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48233         failures as distinct bugs.
48234
48235 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48236
48237         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48238         Problem reported by Erik Benada in
48239         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48240
48241 2008-03-30  Bruno Haible  <bruno@clisp.org>
48242
48243         * tests/test-strtod.c: Add comments about which assertion fails on which
48244         platform.
48245         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48246
48247 2008-03-30  Eric Blake  <ebb9@byu.net>
48248
48249         Test signbit behavior on zeros.
48250         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48251         (test_signbitd, test_signbitl): Likewise.
48252
48253         More strtod touchups.
48254         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48255         sign of negative underflow, for now.  Use .5, not .1.
48256         * doc/posix-functions/strtod.texi (strtod): Mention these
48257         limitations.
48258         Reported by Jim Meyering.
48259
48260 2008-03-30  Bruno Haible  <bruno@clisp.org>
48261
48262         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48263         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48264
48265 2008-03-30  Bruno Haible  <bruno@clisp.org>
48266
48267         Avoid failure when attempting to return empty iconv results on some
48268         platforms.
48269         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48270         allocation, don't report ENOMEM when the resulting string is empty.
48271
48272 2008-03-30  Bruno Haible  <bruno@clisp.org>
48273
48274         Fix buffer overrun.
48275         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48276         Don't consider the width for tmp_length. Check count against tmp_length
48277         before doing the padding. Ensure enough allocation during padding.
48278
48279 2008-03-30  Eric Blake  <ebb9@byu.net>
48280
48281         strtod touchups.
48282         * lib/strtod.c (strtod): Avoid compiler warnings.
48283         Reported by Jim Meyering.
48284
48285 2008-03-30  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48288         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48289         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48290         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48291         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48292         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48293         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48294         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48295
48296         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48297         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48298         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48299         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48300         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48301         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48302         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48303         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48304
48305         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48306         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48307         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48308         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48309         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48310         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48311         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48312         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48313
48314         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48315         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48316
48317         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48318         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48319
48320         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48321         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48322
48323         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48325         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48326
48327         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48329         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48330
48331         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48333         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48334
48335         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48337         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48338
48339         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48340         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48342         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48343         (Depends-on): Add EOVERFLOW.
48344         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48345         (Depends-on): Add EOVERFLOW.
48346         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48347         (Depends-on): Add EOVERFLOW.
48348         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48349         (Depends-on): Add EOVERFLOW.
48350         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48351         (Depends-on): Add EOVERFLOW.
48352         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48353         (Depends-on): Add EOVERFLOW.
48354         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48355         (Depends-on): Add EOVERFLOW.
48356         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48357         (Depends-on): Add EOVERFLOW.
48358
48359         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48361         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48362
48363         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48365         * modules/snprintf (Depends-on): Add EOVERFLOW.
48366
48367         * lib/poll.c (EOVERFLOW): Remove fallback.
48368         * modules/poll (Depends-on): Add EOVERFLOW.
48369
48370         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48371         * modules/getugroups (Depends-on): Add EOVERFLOW.
48372
48373         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48374         * modules/getdelim (Depends-on): Add EOVERFLOW.
48375
48376         * lib/ftell.c (EOVERFLOW): Remove fallback.
48377         * modules/ftell (Depends-on): Add EOVERFLOW.
48378
48379         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48380         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48381         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48382
48383         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48384
48385         * modules/EOVERFLOW-tests: New file.
48386         * tests/test-EOVERFLOW.c: New file.
48387
48388         * modules/EOVERFLOW: New file.
48389         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48390
48391 2008-03-30  Bruno Haible  <bruno@clisp.org>
48392
48393         Fix bug introduced on 2007-06-10.
48394         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48395         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48396
48397 2008-03-30  Bruno Haible  <bruno@clisp.org>
48398
48399         Improve freadseek's efficiency after ungetc.
48400         * lib/freadseek.c: Include freadahead.h.
48401         (freadptrinc): New function, extracted from freadseek.
48402         (freadseek): Use it in a loop. Use freadahead to determine the number
48403         of loop iterations.
48404         * modules/freadseek (Depends-on): Add freadahead.
48405         (configure.ac): Require AC_C_INLINE.
48406
48407 2008-03-30  Bruno Haible  <bruno@clisp.org>
48408
48409         * lib/freadseek.c (freadseek): Don't ignore the return value of
48410         freadptr.
48411
48412 2008-03-29  Eric Blake  <ebb9@byu.net>
48413
48414         Add hex float support.
48415         * modules/strtod (Depends-on): Add c-ctype.
48416         (Link): Mention POW_LIB.
48417         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48418         whitespace between 'e' and exponent.
48419         * tests/test-strtod.c (main): Enable hex float tests.
48420         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48421         now provides.
48422
48423         Document various strtod bugs, with some fixes.
48424         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48425         "-0x", "inf", "nan", and hex constants.
48426         * doc/posix-functions/atof.texi (atof): Likewise.
48427         * modules/stdlib (Makefile.am): Support strtod.
48428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48429         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48430         detect additional strtod bugs.
48431         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48432         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48433         bool where appropriate.  Parse 'inf' and 'nan'.
48434         * tests/test-strtod.c: New file.
48435         * modules/strtod (Depends-on): Add stdbool, stdlib.
48436         (configure.ac): Turn on module indicator.
48437         * modules/strtod-tests: New module.
48438
48439 2008-03-29  Eric Blake  <ebb9@byu.net>
48440
48441         Fix ftell on mingw.
48442         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48443         * modules/ftell-tests (Depends-on): Add binary-io.
48444         * modules/ftello-tests (Depends-on): Likewise.
48445         * tests/test-ftell.c (main): Enhance test to cover behavior after
48446         ungetc.  Enforce binary mode.
48447         * tests/test-ftello.c (main): Likewise.
48448
48449         Pass test-freadseek on cygwin.
48450         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48451         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48452         ungetc buffer.
48453
48454         * tests/test-fflush2.c (main): Fix typo.
48455
48456 2008-03-29  Bruno Haible  <bruno@clisp.org>
48457
48458         * tests/test-fflush2.c (main): Temporarily disable the contents of
48459         this test.
48460         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48461         Reported by Eric Blake.
48462
48463 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48464
48465         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48466         (GC_SHA224_DIGEST_SIZE): Add.
48467
48468         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48469         (gc_hash_digest_length): Likewise.
48470         (gc_hash_buffer): Likewise.
48471
48472 2008-03-25  Bruno Haible  <bruno@clisp.org>
48473
48474         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48475         detail which gettext release to use.
48476         Reported by Simon Josefsson.
48477
48478 2008-03-26  Jim Meyering  <meyering@redhat.com>
48479
48480         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48481         * modules/gnumakefile (clean-GNUmakefile): Also, use
48482         test ... && ... || : syntax rather than if-then ... fi.
48483
48484         gnumakefile: Don't double-quote-expand $(VPATH) value.
48485         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48486
48487 2008-03-24  Eric Blake  <ebb9@byu.net>
48488
48489         Alter GNUmakefile to install into top directory.
48490         * modules/maintainer-makefile: Split, and add dependency...
48491         * modules/gnumakefile: to this new module.
48492         * build-aux/GNUmakefile: Move...
48493         * top/GNUmakefile: ...here.
48494         * build-aux/maint.mk: Move...
48495         * top/maint.mk: ...here.
48496         * MODULES.html.sh (Support for maintaining...): Document new
48497         module.
48498
48499 2008-03-23  Bruno Haible  <bruno@clisp.org>
48500
48501         * gnulib-tool: New options --vc-files, --no-vc-files.
48502         (func_usage): Document them.
48503         (vc_files): New variable.
48504         (func_import): Consider vc_files.
48505         (func_create_testdir): Set vc_files to empty.
48506         Suggested by Jim Meyering and Karl Berry.
48507
48508 2008-03-23  Bruno Haible  <bruno@clisp.org>
48509
48510         Fix regex compilation error on HP-UX 11.
48511         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48512         * modules/regex (Files): Add m4/mbstate_t.m4.
48513         Reported by Ton Voon <ton.voon@altinity.com>.
48514
48515 2008-03-23  Bruno Haible  <bruno@clisp.org>
48516
48517         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48518
48519 2008-03-23  Eric Blake  <ebb9@byu.net>
48520             Bruno Haible  <bruno@clisp.org>
48521
48522         Install files from top/ in the destination directory.
48523         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48524         augmentation also for the files from top/.
48525         (func_import, func_create_testdir): Rewrite file names:
48526         top/filename -> filename.
48527
48528 2008-03-23  Bruno Haible  <bruno@clisp.org>
48529
48530         Tweak "gnulib --version" output.
48531         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48532
48533 2008-03-23  Bruno Haible  <bruno@clisp.org>
48534
48535         Tweak "gnulib --version" output.
48536         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48537         rather than contents of ChangeLog, when possible.
48538
48539 2008-03-21  Eric Blake  <ebb9@byu.net>
48540
48541         More --version tweaks.
48542         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48543         date of last ChangeLog entry.
48544
48545 2008-03-21  Jim Meyering  <meyering@redhat.com>
48546
48547         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48548
48549 2008-03-20  Eric Blake  <ebb9@byu.net>
48550
48551         VPATH fix.
48552         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48553
48554 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48555
48556         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48557         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48558
48559 2008-03-20  Eric Blake  <ebb9@byu.net>
48560
48561         Sync GNUmakefile with coreutils.
48562         * build-aux/GNUmakefile (have-Makefile): Rename...
48563         (_have-Makefile): ...to this, for namespace consideration.
48564         (GNUmakefile.cfg): Include, if present.
48565         (_autoreconf): Define a default.
48566         (_is-dist-target): New rule for rebuilds to pick up intra-release
48567         version.
48568         (maint-cfg.mk): Rename...
48569         (cfg.mk): ...to this.
48570
48571 2008-03-18  Jim Meyering  <meyering@redhat.com>
48572
48573         New script and module: mktempd
48574         * MODULES.html.sh (maint+release support): Add mktempd.
48575         * build-aux/mktempd: New file.
48576         * modules/mktempd: New file.
48577
48578 2008-03-15  Jim Meyering  <meyering@redhat.com>
48579
48580         Undo last change.
48581         * lib/sha1.c, lib/md5.c: 63 != ~63.
48582         Reported by Andreas Schwab.
48583
48584         sha1.c, md5.c: Hoist a redundant expression.
48585         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48586         "ctx->buflen" only once, before calling *_process_block.
48587         * lib/md5.c (md5_process_bytes): Likewise.
48588
48589 2008-03-14  Eric Blake  <ebb9@byu.net>
48590
48591         Bump copyright year in files generated by gnulib-tool.
48592         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48593         gnulib-tool, rather than hard-coding it.
48594
48595         Fix 'gnulib-tool --version' output to work with git.
48596         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48597         (startup): ...here.
48598         (func_version): Use it to invoke git-version-gen, rather than
48599         relying on CVS keyword expansion.  Modernize wording.
48600         (cvsdatestamp, last_checkin_date, version): Kill unused
48601         variables.
48602
48603 2008-03-12  Jim Meyering  <meyering@redhat.com>
48604
48605         Recognize optional cast of the argument to free.
48606         * build-aux/useless-if-before-free: Update regexps.
48607
48608         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48609
48610 2008-03-11  Bruno Haible  <bruno@clisp.org>
48611
48612         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48613         by a single package.
48614         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48615         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48616         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48617         Reported by Sam Steingold <sds@gnu.org>.
48618
48619 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48620
48621         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48622         repositories.
48623
48624 2008-03-11  Bruno Haible  <bruno@clisp.org>
48625
48626         Avoid conflicts between local macro definitions.
48627         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48628         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48629
48630 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48631             Bruno Haible  <bruno@clisp.org>
48632
48633         Make va_copy work with some version of xlc on AIX 5.1.
48634         * lib/stdarg.in.h: New file.
48635         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48636         On AIX, use a <stdarg.h> file substitute.
48637         * modules/stdarg (Files): Add lib/stdarg.in.h.
48638         (Depends-on): Add include_next.
48639         (Makefile.am): Build a stdarg.h substitute if requested.
48640         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48641
48642 2008-03-10  Bruno Haible  <bruno@clisp.org>
48643
48644         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48645         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48646         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48647
48648 2008-03-10  Bruno Haible  <bruno@clisp.org>
48649
48650         * modules/stdlib (Depends-on): Add include_next, remove
48651         absolute-header.
48652
48653 2008-03-09  Bruno Haible  <bruno@clisp.org>
48654
48655         * lib/freadahead.h (freadahead): Document more precisely.
48656         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48657         the sum of both buffer sizes.
48658         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48659         * NEWS: Document the change.
48660
48661 2008-03-09  Bruno Haible  <bruno@clisp.org>
48662
48663         Extend freadptr to return also the buffer size.
48664         * lib/freadptr.h (freadptr): Add sizep argument.
48665         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48666         (freadptr): Add sizep argument. Determine buffer size like freadahead
48667         does.
48668         * tests/test-freadptr.c: Don't include freadahead.h.
48669         (main): Adapt for new calling convention of freadptr.
48670         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48671         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48672         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48673         tests/test-freadptr2.sh.
48674         (Depends): Remove freadahead.
48675         (TESTS): Add test-freadptr2.sh.
48676         (check_PROGRAMS): Add test-freadptr2.
48677
48678 2008-03-09  Bruno Haible  <bruno@clisp.org>
48679
48680         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48681         Report and solution by Simon Josefsson.
48682
48683 2008-03-06  Bruno Haible  <bruno@clisp.org>
48684
48685         Make fflush after ungetc work on BSD platforms.
48686         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48687         * tests/test-fflush2.c: New file.
48688         * tests/test-fflush2.sh: New file.
48689         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48690         tests/test-fflush2.c.
48691         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48692         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48693
48694 2008-03-06  Eric Blake  <ebb9@byu.net>
48695
48696         Likewise for ftello.
48697         * modules/ftello (Dependencies): Add extensions.
48698         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48699
48700 2008-03-06  Bruno Haible  <bruno@clisp.org>
48701
48702         * modules/fseeko (Dependencies): Add extensions.
48703         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48704         Needed on glibc systems.
48705
48706 2008-03-06  Bruno Haible  <bruno@clisp.org>
48707
48708         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48709         email address.
48710         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48711
48712 2008-03-06  Bruno Haible  <bruno@clisp.org>
48713
48714         * users.txt: Add libgnupdf.
48715
48716 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48717
48718         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48719         (Header File Substitutes, Function Substitutes,
48720         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48721         (Build robot for gnulib): Fix typo.
48722
48723 2008-03-06  Bruno Haible  <bruno@clisp.org>
48724
48725         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48726         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48727
48728 2008-03-06  Bruno Haible  <bruno@clisp.org>
48729
48730         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48731         * doc/gnulib.texi: Include it.
48732
48733 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48734
48735         * modules/func (License): Change license to unlimited; there was
48736         no LGPL parts in the module anyway.
48737
48738 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48739
48740         * modules/__func__: Renamed to modules/func.
48741         * modules/__func__-tests: Renamed to modules/func-tests.
48742         * tests/test-__func__.c: Renamed to tests/test-func.c.
48743         * m4/__func__.m4: Renamed to m4/func.m4.
48744         * doc/gnulib.texi (__func__): Section renamed to func.
48745         Suggested by Eric Blake <ebb9@byu.net>.
48746
48747 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48748
48749         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48750         about __func__.  Make example self-contained.  Suggested by Eric
48751         Blake <ebb9@byu.net>.
48752
48753         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48754         Suggested by Eric Blake <ebb9@byu.net>.
48755
48756 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48757
48758         * modules/__func__: New file.
48759         * modules/__func__-tests: New file.
48760         * tests/test-__func__.c: New file.
48761         * m4/__func__.m4: New file.
48762         * doc/gnulib.texi (__func__): Document __func__ module.
48763
48764 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48765
48766         * modules/byteswap (License): Re-license as LGPLv2+.
48767
48768 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48769
48770         * doc/Makefile: Add pdf target.
48771
48772 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48773
48774         * modules/inline (License): Use 'unlimited', since there are only
48775         *.m4 files in this module.
48776
48777 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48778             Bruno Haible  <bruno@clisp.org>
48779
48780         Add support for HP C 7.1 on OpenVMS 8.3.
48781         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48782
48783 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48784
48785         Update VMS specifics.
48786         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48787
48788 2008-03-02  Jim Meyering  <meyering@redhat.com>
48789
48790         Remove the last dependency on the "free" module.
48791         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48792         Reported by Bob Proulx.
48793
48794         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48795
48796         Remove useless "if" tests before free.  Deprecate "free" module.
48797         * doc/posix-functions/free.texi: Mention that this
48798         module is no longer useful.
48799         * modules/free (Notice): Say this module is obsolete.
48800         * modules/readutmp (Depends-on): Remove free.
48801         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48802         * lib/putenv.c (putenv): Likewise.
48803         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48804         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48805         * tests/test-c-strcasestr.c (main): Likewise.
48806         * tests/test-c-strstr.c (main): Likewise.
48807         * tests/test-mbscasestr1.c (main): Likewise.
48808         * tests/test-mbscasestr2.c (main): Likewise.
48809         * tests/test-mbsstr1.c (main): Likewise.
48810         * tests/test-mbsstr2.c (main): Likewise.
48811         * tests/test-memmem.c (main): Likewise.
48812         * tests/test-strcasestr.c (main): Likewise.
48813         * tests/test-striconv.c (main): Likewise.
48814         * tests/test-striconveh.c (main): Likewise.
48815         * tests/test-striconveha.c (main): Likewise.
48816         * tests/test-strstr.c (main): Likewise.
48817
48818         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48819
48820         bootstrap: sync from coreutils again
48821         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48822
48823 2008-03-01  Jim Meyering  <meyering@redhat.com>
48824
48825         bootstrap: sync from coreutils
48826         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48827         also when the target doesn't exist.
48828
48829 2008-03-01  Eric Blake  <ebb9@byu.net>
48830
48831         Fix bugs in last patch.
48832         * lib/memchr2.c (memchr2): Fix typo.
48833         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48834         extension.
48835         Reported by Bruce Korb.
48836
48837         New module 'memchr2'.
48838         * modules/memchr2: New file.
48839         * modules/memchr2-tests: Likewise.
48840         * lib/memchr2.h: Likewise.
48841         * lib/memchr2.c: Likewise, based on memchr.c.
48842         * tests/test-memchr2.c: New test.
48843         * MODULES.html.sh (String handling): Add memchr2.
48844
48845 2008-02-29  Bruno Haible  <bruno@clisp.org>
48846
48847         * modules/freadseek-tests: New file.
48848         * tests/test-freadseek.sh: New file.
48849         * tests/test-freadseek.c: New file.
48850
48851         New module 'freadseek'.
48852         * modules/freadseek: New file.
48853         * lib/freadseek.h: New file.
48854         * lib/freadseek.c: New file.
48855         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48856
48857 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48858
48859         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48860         wydawca.
48861
48862         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48863         program_invocation_name and program_invocation_short_name are
48864         present.
48865
48866 2008-02-28  Bruno Haible  <bruno@clisp.org>
48867
48868         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48869         * tests/test-freadptr.sh: Also test non-seekable stdin.
48870
48871 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48872
48873         * build-aux/bootstrap (source_base, m4_base)
48874         (doc_base, tests_base): New variables.
48875         (gnulib_tool_options): Do not hardcode base directories, use
48876         the above variables instead.
48877
48878 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48879
48880         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48881
48882 2008-02-28  Bruno Haible  <bruno@clisp.org>
48883
48884         * modules/freadptr-tests: New file.
48885         * tests/test-freadptr.sh: New file.
48886         * tests/test-freadptr.c: New file.
48887
48888         New module 'freadptr'.
48889         * modules/freadptr: New file.
48890         * lib/freadptr.h: New file.
48891         * lib/freadptr.c: New file.
48892         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48893
48894 2008-02-26  Karl Berry  <karl@freefriends.org>
48895
48896         Sync from Libtool:
48897         * libltdl/argz.c (argz_add, argz_count): New functions.
48898         * libltdl/argz.in.h: Declare them.
48899         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48900
48901 2008-02-22  Bruno Haible  <bruno@clisp.org>
48902
48903         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48904         is a pointer type.  Needed for HP-UX 10.
48905         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48906         * doc/posix-functions/gmtime_r.texi: Likewise.
48907         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48908
48909 2008-02-24  Bruno Haible  <bruno@clisp.org>
48910
48911         * modules/environ-tests: New file.
48912         * tests/test-environ.c: New file.
48913
48914         New module 'environ'.
48915         * modules/environ: New file.
48916         * lib/unistd.in.h (environ): New declaration.
48917         * m4/environ.m4: New file.
48918         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48919         after use.
48920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48921         HAVE_DECL_ENVIRON.
48922         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48923         HAVE_DECL_ENVIRON.
48924         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48925         wrong claim that 'environ' is missing on some systems.
48926         * modules/execute (Depends-on): Add environ.
48927         * lib/execute.c (environ): Remove fallback declaration.
48928         * modules/pipe (Depends-on): Add environ.
48929         * lib/pipe.c (environ): Remove fallback declaration.
48930         * modules/setenv (Depends-on): Add environ.
48931         * lib/setenv.c (environ): Remove fallback declaration.
48932         * modules/unsetenv (Depends-on): Add environ.
48933         * lib/unsetenv.c (environ): Remove fallback declaration.
48934         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48935         m4/environ.m4.
48936         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48937         (gl_PREREQ_UNSETENV): Likewise.
48938
48939 2008-02-24  Bruno Haible  <bruno@clisp.org>
48940
48941         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48942
48943 2008-02-20  Bob Proulx  <bob@proulx.com>
48944
48945         Enable use of older two part flavor 'git describe'.
48946         * build-aux/git-version-gen: If using the older two part flavor of
48947         git version then recreate the third part now present in the
48948         newer three part flavor of git describe.
48949
48950 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48951
48952         * lib/fts.c (fts_build): Typo correction to comment.
48953
48954 2008-02-17  Bruno Haible  <bruno@clisp.org>
48955
48956         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48957         generating no-op conflicts.
48958
48959 2008-02-17  Bruno Haible  <bruno@clisp.org>
48960
48961         Speed up by 10%.
48962         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48963         result_entries, rather than an index-based loop.
48964
48965 2008-02-17  Bruno Haible  <bruno@clisp.org>
48966
48967         Speed up by 25%.
48968         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48969         'hashcode_cached'.
48970         (entry_create): New function.
48971         (entry_hashcode): Use the cached hashcode if possible.
48972         (read_changelog_file, try_split_merged_entry): Use entry_create.
48973
48974 2008-02-17  Bruno Haible  <bruno@clisp.org>
48975
48976         Speed up from O(n^2) to O(n) for long ChangeLog files.
48977         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48978         (read_changelog_file): Change implementation of entries_reversed list
48979         to rbtreehash.
48980         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48981
48982 2008-02-17  Bruno Haible  <bruno@clisp.org>
48983
48984         New option --split-merged-entry.
48985         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48986         (find_paragraph_end, try_split_merged_entry): New functions.
48987         (long_options): Add option --split-merged-entry.
48988         (usage): Document option --split-merged-entry.
48989         (main): Implement option --split-merged-entry.
48990         Reported by Eric Blake.
48991
48992 2008-02-17  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/git-merge-changelog.c: Include c-strstr.h.
48995         (main): Support the "git pull --rebase" situation.
48996         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48997         Reported by Eric Blake.
48998
48999 2008-02-16  Eric Blake  <ebb9@byu.net>
49000
49001         Avoid doubling \ in common case of "c-maybe" quoting style.
49002         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49003         eliding outer quotes.
49004         * lib/quotearg.h: Document this.
49005         * tests/test-quotearg.c (result_strings, inputs, results_g)
49006         (flag_results, locale_results): Test it by adding a new string to
49007         each test group.
49008         (compare_strings): Test new string.
49009
49010 2008-02-13  Eric Blake  <ebb9@byu.net>
49011
49012         Avoid trigraph quoting in default output.
49013         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49014         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49015         unless explicitly requested.
49016         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49017
49018 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49019
49020         Don't rely on signed integer overflowing to negative value.
49021         * lib/getugroups.c (getugroups): Include <limits.h>.
49022         Instead, compare against INT_MAX, and increment only if the test passes.
49023
49024 2008-02-13  Jim Meyering  <meyering@redhat.com>
49025         and Eric Blake  <ebb9@byu.net>
49026
49027         Avoid shadowing warning and compile errors on Linux.
49028         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49029         forwarding macros on Linux.
49030         (dcgettext): Define a stub, for Linux.
49031         (results_g, main): Avoid warnings.
49032
49033 2008-02-12  Eric Blake  <ebb9@byu.net>
49034
49035         Silence warning in last patch.
49036         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49037
49038         Quotearg part 4: add tests, fix c-maybe colon quoting.
49039         * lib/quotearg.h: Improve documentation.
49040         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49041         escapes when adding outer quotes.  When quoting trigraphs, use
49042         valid C notation.  When quoting NUL, omit extra characters if next
49043         character is not digit.  Alter prototype.
49044         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49045         callers.
49046         * modules/quotearg-tests: New module.
49047         * tests/test-quotearg.c: New test.
49048
49049 2008-02-07  Eric Blake  <ebb9@byu.net>
49050
49051         Quotearg part 3: add flag to control outer quote elision.
49052         * lib/quotearg.h (c_maybe_quoting_style): New style.
49053         (enum quoting_flags): Better documentation of flags.
49054         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49055         c-maybe style.
49056         (quotearg_buffer_restyled): Handle new flag to elide outer
49057         quotes.
49058
49059         Quotearg part 2: add flag that can control NUL elision.
49060         * lib/quotearg.h (set_quoting_flags): New prototype.
49061         * lib/quotearg.c (struct quoting_options): Add flag field.
49062         (set_quoting_flags): New function.
49063         (quotearg_buffer_restyled): Add flags parameter.
49064         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49065         (quotearg_n_options): Set the flag, since length cannot be
49066         returned.
49067         (quoting_options_from_style): Default flags correctly.
49068
49069         Quotearg part 1: more wrappers, restore quotearg_char state.
49070         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49071         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49072         (quotearg_colon_mem): New wrappers.
49073         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49074         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49075         functions.
49076         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49077         (quotearg_colon_mem): New functions.
49078
49079 2008-02-11  Bruno Haible  <bruno@clisp.org>
49080
49081         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49082         library in the current directory: it does not work with parallel make.
49083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49084
49085 2008-02-11  Bruno Haible  <bruno@clisp.org>
49086
49087         * .gitattributes: New file.
49088
49089 2008-02-11  Jim Meyering  <meyering@redhat.com>
49090
49091         useless-if-before-free: Fix reversed exit values.
49092         * build-aux/useless-if-before-free: Use correct values
49093         for EXIT_MATCH and EXIT_NO_MATCH.
49094
49095         * build-aux/useless-if-before-free: Close stdout carefully.
49096
49097 2008-02-10  Bruno Haible  <bruno@clisp.org>
49098
49099         New module 'git-merge-changelog'.
49100         * modules/git-merge-changelog: New file.
49101         * lib/git-merge-changelog.c: New file.
49102
49103 2008-02-10  Jim Meyering  <meyering@redhat.com>
49104
49105         useless-if-before-free: New option: --list (-l).
49106
49107         useless-if-before-free: Don't exit immediately upon open failure.
49108         * build-aux/useless-if-before-free: Exit 2 for errors.
49109         Upon failure to open a file, don't exit immediately.
49110         Rather, just warn and continue with any remaining files.
49111
49112 2008-02-10  Bruno Haible  <bruno@clisp.org>
49113
49114         New abstract list operation 'node_set_value'.
49115         * lib/gl_list.h (gl_list_node_set_value): New function.
49116         (struct gl_list_implementation): New field node_set_value.
49117         * lib/gl_list.c (gl_list_node_set_value): New function.
49118         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49119         (gl_array_list_implementation): Update.
49120         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49121         (gl_carray_list_implementation): Update.
49122         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49123         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49124         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49125         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49126         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49127         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49128         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49129         Update.
49130         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49131         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49132         (gl_sublist_list_implementation): Update.
49133
49134 2008-02-10  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49137         Needed when ELEMENT is #defined to 'some_type *'.
49138
49139 2008-02-10  Jim Meyering  <meyering@redhat.com>
49140
49141         New script and module: useless-if-before-free
49142         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49143         * build-aux/useless-if-before-free: New file.
49144         * modules/useless-if-before-free: New file.
49145
49146         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49147
49148         xstrtol_error: Fix typo.
49149         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49150         s/exit_failure/exit_status/.
49151
49152 2008-02-09  Jim Meyering  <meyering@redhat.com>
49153
49154         New script and module: gitlog-to-changelog
49155         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49156         * modules/gitlog-to-changelog: New file.
49157         * build-aux/gitlog-to-changelog: New file.
49158
49159 2008-02-08  Jim Meyering  <meyering@redhat.com>
49160
49161         Avoid two "parameter unused" warnings.
49162         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49163         Mark "st" as used.
49164
49165         Use "git COMMAND", not "git-COMMAND".
49166         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49167         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49168         * build-aux/git-version-gen: Use "git status", not "git-status".
49169
49170 2008-02-07  Bruno Haible  <bruno@clisp.org>
49171
49172         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49173         Avoids a crash on Windows Vista.
49174         Reported by Adam Strzelecki <ono@java.pl> via
49175         Simon Josefsson <simon@josefsson.org>.
49176
49177 2008-02-06  Bruno Haible  <bruno@clisp.org>
49178
49179         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49180         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49181         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49183         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49185         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49186         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49194         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49195         left-adjust flag.
49196         * tests/test-snprintf-posix.h (test_function): Likewise.
49197         * tests/test-sprintf-posix.h (test_function): Likewise.
49198         * tests/test-vasprintf-posix.c (test_function): Likewise.
49199         * doc/posix-functions/fprintf.texi: Update.
49200         * doc/posix-functions/printf.texi: Update.
49201         * doc/posix-functions/snprintf.texi: Update.
49202         * doc/posix-functions/sprintf.texi: Update.
49203         * doc/posix-functions/vfprintf.texi: Update.
49204         * doc/posix-functions/vprintf.texi: Update.
49205         * doc/posix-functions/vsnprintf.texi: Update.
49206         * doc/posix-functions/vsprintf.texi: Update.
49207         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49208
49209 2008-02-06  Bruno Haible  <bruno@clisp.org>
49210
49211         Fix bug introduced on 2008-01-26.
49212         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49213
49214 2008-02-06  Bruno Haible  <bruno@clisp.org>
49215
49216         Fix bug introduced on 2007-06-10.
49217         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49218         !NEED_PRINTF_FLAG_ZERO.
49219
49220 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49221
49222         getloadavg: use libperfstat on AIX5
49223         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49224
49225 2008-02-03  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/diffseq.h: Add comments about required #includes.
49228         Reported by Michael Biggs <gnulib@doubleplum.net>.
49229
49230 2008-02-01  Bruno Haible  <bruno@clisp.org>
49231
49232         * users.txt: Add gnuit.
49233
49234 2008-01-31  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/md4.c (set_uint32): Mark as inline.
49237         * lib/md5.c (set_uint32): Likewise.
49238         * lib/sha1.c (set_uint32): Likewise.
49239         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49240         * m4/md5.m4 (gl_MD5): Likewise.
49241         * m4/sha1.m4 (gl_SHA1): Likewise.
49242
49243 2008-01-31  Jim Meyering  <meyering@redhat.com>
49244
49245         Use "sizeof VAR", rather than a literal "4".
49246         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49247         * lib/md4.c (md4_read_ctx): Likewise.
49248         * lib/sha1.c (sha1_read_ctx): Likewise.
49249
49250 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49251
49252         * tests/test-sha1.c: New file, based on test-md5.c.
49253
49254         * modules/crypto/sha1-tests: New file.
49255
49256 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49257
49258         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49259
49260 2008-01-31  Jim Meyering  <meyering@redhat.com>
49261
49262         Prefer "sizeof v" over the equivalent "4".
49263         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49264         * lib/md5.c (set_uint32): Likewise.
49265         * lib/sha1.c (set_uint32): Likewise.
49266
49267 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49268
49269         * lib/sha1.c (set_uint32): Mark function as static.
49270
49271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49272
49273         md2: clarify comments to say that alignment is not required.
49274         * lib/md2.h: Remove warning about alignment in comment.
49275         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49276         never been required.
49277
49278 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49279
49280         md4: adapt alignment constraint fix from sha1.
49281         * lib/md4.c (set_uint32): New function, from sha1.c
49282         (md4_read_ctx): Use it.
49283         (md4_finish_ctx): Doc fix.
49284         * lib/md4.h: Doc fix.
49285
49286 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49287
49288         md5: adapt alignment constraint fix from sha1.
49289         * lib/md5.c (set_uint32): New function, from sha1.c
49290         (md5_read_ctx): Use it.
49291         (md5_finish_ctx): Doc fix.
49292         * lib/md5.h: Doc fix.
49293
49294 2008-01-30  Peter Palfrader  <weasel@debian.org>
49295
49296         sha1: remove the result buffer alignment constraint
49297         * lib/sha1.c (set_uint32): New function.
49298         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49299         constraint.
49300         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49301         * lib/sha1.h: Likewise.
49302
49303 2008-01-30  Andreas Schwab  <schwab@suse.de>
49304             Bruno Haible  <bruno@clisp.org>
49305
49306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49307         correct definition of LDBL_MIN_EXP.
49308
49309 2008-01-30  Karl Berry  <karl@gnu.org>
49310
49311         * config/srclist-update: try to preserve x bit on updates.
49312         * config/srclistvars.sh: update for karl.
49313
49314 2008-01-29  Jim Meyering  <meyering@redhat.com>
49315
49316         vasnprintf.c: Avoid warning about unused label
49317         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49318         "overflow" label definition and associated code with the
49319         same cpp condition that guards the sole use of that label.
49320
49321 2008-01-26  Bruno Haible  <bruno@clisp.org>
49322
49323         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49324         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49325         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49326         * lib/isnanl-nolibm.h (isnanl): Likewise.
49327         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49328
49329 2008-01-26  Bruno Haible  <bruno@clisp.org>
49330
49331         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49332         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49333
49334 2008-01-26  Bruno Haible  <bruno@clisp.org>
49335
49336         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49337         GCC >= 4.0 built-in.
49338         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49339
49340 2008-01-26  Bruno Haible  <bruno@clisp.org>
49341
49342         Rename isnan, applicable to 'double' only, to isnand.
49343         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49344         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49345         (configure.ac): Update.
49346         (Include): Replace "isnan.h" with "isnand.h".
49347         * m4/isnand.m4: Renamed from m4/isnan.m4.
49348         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49349         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49350         instead of isnan.c.
49351         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49352         instead of HAVE_ISNAN_IN_LIBC.
49353         (isnand): Renamed from isnan.
49354         * lib/isnand.c: New file.
49355         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49356         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49357         (Makefile.am): Update.
49358         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49359         Include isnand.h instead of isnan.h.
49360         (main): Test isnand instead of isnan.
49361         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49362         isnan-nolibm.
49363         * modules/frexp (Depends-on): Likewise.
49364         * modules/frexp-tests (Depends-on): Likewise.
49365         * modules/frexp-nolibm (Depends-on): Likewise.
49366         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49367         * modules/isfinite (Depends-on): Likewise.
49368         * modules/round-tests (Depends-on): Likewise.
49369         * modules/signbit (Depends-on): Likewise.
49370         * modules/signbit-tests (Depends-on): Likewise.
49371         * modules/snprintf-posix (Depends-on): Likewise.
49372         * modules/sprintf-posix (Depends-on): Likewise.
49373         * modules/trunc-tests (Depends-on): Likewise.
49374         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49375         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49376         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49377         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49378         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49379         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49380         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49381         * modules/vasnprintf-posix (Depends-on): Likewise.
49382         * modules/vasprintf-posix (Depends-on): Likewise.
49383         * modules/vfprintf-posix (Depends-on): Likewise.
49384         * modules/vsnprintf-posix (Depends-on): Likewise.
49385         * modules/vsprintf-posix (Depends-on): Likewise.
49386         * lib/frexp.c: Include isnand.h instead of isnan.h.
49387         (ISNAN): Set to isnand instead of isnan.
49388         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49389         (gl_isfinited): Use isnand instead of isnan.
49390         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49391         (gl_signbitd): Use isnand instead of isnan.
49392         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49393         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49394         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49395         (main): Use isnand instead of isnan.
49396         * tests/test-round1.c: Include isnand.h.
49397         (main): Use isnand instead of isnan.
49398         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49399         (ISNAN): Set to isnand instead of isnan.
49400         * tests/test-trunc1.c: Include isnand.h.
49401         (main): Use isnand instead of isnan.
49402         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49403         (equal): Use isnand instead of isnan.
49404         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49405         isnand-nolibm.
49406         * NEWS: Mention the change.
49407
49408 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49409             Bruno Haible  <bruno@clisp.org>
49410
49411         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49412         the GCC builtins for signbits are present and set
49413         REPLACE_SIGNBIT_USING_GCC if so.
49414         * lib/math.in.h (signbit): Define using GCC builtins if
49415         REPLACE_SIGNBIT_USING_GCC is set.
49416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49417         REPLACE_SIGNBIT_USING_GCC.
49418         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49419
49420 2008-01-25  Jim Meyering  <meyering@redhat.com>
49421
49422         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49423         * lib/poll.c: Include <config.h>, not "config.h".
49424         * tests/test-getaddrinfo.c: Likewise.
49425
49426 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49427
49428         * modules/sockets-tests: New file.
49429
49430 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49431
49432         * modules/sockets: New module, can be used to call WSA_Startup and
49433         WSA_Cleanup when needed.
49434
49435         * lib/sockets.h, lib/sockets.c: New files.
49436
49437         * m4/sockets.m4: New file.
49438
49439         * tests/test-sockets.c: New file.
49440
49441 2008-01-19  Bruno Haible  <bruno@clisp.org>
49442
49443         * doc/posix-headers: Renamed from doc/headers.
49444         * doc/posix-functions: Renamed from doc/functions.
49445         * doc/gnulib.texi: Update.
49446
49447 2008-01-19  Bruno Haible  <bruno@clisp.org>
49448
49449         * doc/glibc-functions/strcasestr.texi: Include contents of
49450         doc/functions/strcasestr.texi, fixing the list of platforms.
49451         * doc/functions/strcasestr.texi: Remove file.
49452
49453 2008-01-19  Bruno Haible  <bruno@clisp.org>
49454
49455         * doc/glibc-functions/memmem.texi: Include contents of
49456         doc/functions/memmem.texi.
49457         * doc/functions/memmem.texi: Remove file.
49458
49459 2008-01-18  Bruno Haible  <bruno@clisp.org>
49460
49461         * doc/glibc-functions/*.texi: New files.
49462         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49463         to use the new files.
49464
49465 2008-01-17  Bruno Haible  <bruno@clisp.org>
49466
49467         * tests/test-gethostname.c (main): Fix printf statement.
49468
49469 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49470
49471         * modules/gethostname-tests: New file.
49472
49473         * tests/test-gethostname.c: New file.
49474
49475 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49476
49477         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49478         used by the UNAME case.  Reported by Bruno Haible
49479         <bruno@clisp.org>.
49480
49481 2008-01-17  Eric Blake  <ebb9@byu.net>
49482
49483         Convert c-strcasestr to be more efficient.
49484         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49485         (Depends-on): Add c-strcase, remove malloca, strnlen.
49486         * tests/test-c-strcasestr.c (main): Enhance test.
49487         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49488
49489 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49490
49491         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49492         Use it in creating po/Makevars.
49493
49494 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49495
49496         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49497         Applications that requires it should initialize libgcrypt
49498         manually.
49499
49500 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49501
49502         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49503
49504 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49505
49506         Fix problem with getdate on mingw32 reported by Simon Josefsson
49507         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49508         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49509         tzname", when deciding whether to declare tzname.
49510         * lib/strftime.c (tzname): Likewise.
49511
49512 2008-01-15  Bruno Haible  <bruno@clisp.org>
49513
49514         Work around a MacOS X 10.5 bug in frexpl().
49515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49516         * doc/functions/frexpl.texi: Document the bug.
49517         Reported by Elias Pipping <pipping@gentoo.org>.
49518
49519 2008-01-14  Eric Blake  <ebb9@byu.net>
49520
49521         Touch up previous patch.
49522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49523         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49524
49525         Convert strcasestr module to use Two-Way algorithm.
49526         * modules/strcasestr-simple: New module, based on the old
49527         strcasestr, but with Two-Way rather than KMP.
49528         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49529         * lib/string.in.h (rpl_strcasestr): Declare.
49530         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49531         performance.
49532         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49533         * modules/string (Makefile.am): Support strcasestr.
49534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49535         * modules/strcasestr-tests (Depends-on): Check for alarm.
49536         * tests/test-strcasestr.c: Augment test.
49537         * lib/str-two-way.h: Clean up stray macro.
49538         * NEWS: Document new module.
49539         * MODULES.html.sh (string handling): Likewise.
49540         * doc/functions/strcasestr.texi: New file.
49541         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49542         here, since it is not a POSIX function.
49543
49544 2008-01-14  Colin Watson  <cjwatson@debian.org>
49545             Bruno Haible  <bruno@clisp.org>
49546
49547         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49548         works fine; if not, set REPLACE_STRSIGNAL.
49549         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49551         REPLACE_STRSIGNAL.
49552         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49553         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49554         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49555
49556 2008-01-14  Bruno Haible  <bruno@clisp.org>
49557
49558         * modules/strsignal (Include): Change to <string.h>.
49559
49560 2008-01-14  Colin Watson  <cjwatson@debian.org>
49561
49562         * modules/argp (Notice): Add a notice recommending to change
49563         XGETTEXT_OPTIONS.
49564         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49565
49566 2008-01-13  Colin Watson  <cjwatson@debian.org>
49567
49568         * modules/strsignal-tests: New file.
49569         * tests/test-strsignal.c: New file.
49570
49571         * lib/strsignal.c: New file, from glibc with modifications.
49572         * lib/siglist.h: New file, from glibc with modifications.
49573         * lib/string.in.h (strsignal): New declaration.
49574         * m4/strsignal.m4: New file.
49575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49576         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49577         * modules/strsignal: New file.
49578         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49579         HAVE_DECL_STRSIGNAL.
49580
49581 2008-01-13  Bruno Haible  <bruno@clisp.org>
49582
49583         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49584         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49585         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49586         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49587
49588 2008-01-13  Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49591         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49592         * lib/argp.h (__attribute__): Likewise.
49593         * lib/c-stack.c (__attribute__): Likewise.
49594         * lib/error.h (__attribute__): Likewise.
49595         * lib/fts.c (__attribute__): Likewise.
49596         * lib/openat.h (__attribute__): Likewise.
49597         * lib/stdio.in.h (__attribute__): Likewise.
49598         * lib/string.in.h (__attribute__): Likewise.
49599         * lib/utimens.c (__attribute__): Likewise.
49600         * lib/vasnprintf.h (__attribute__): Likewise.
49601         * lib/xalloc.h (__attribute__): Likewise.
49602         * lib/xprintf.h (__attribute__): Likewise.
49603         * lib/xstrtol.h (__attribute__): Likewise.
49604         * lib/xvasprintf.h (__attribute__): Likewise.
49605
49606 2008-01-12  Bruno Haible  <bruno@clisp.org>
49607
49608         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49609         * doc/glibc-headers/a.out.texi: New file.
49610         * doc/glibc-headers/aliases.texi: New file.
49611         * doc/glibc-headers/alloca.texi: New file.
49612         * doc/glibc-headers/ar.texi: New file.
49613         * doc/glibc-headers/argp.texi: New file.
49614         * doc/glibc-headers/argz.texi: New file.
49615         * doc/glibc-headers/byteswap.texi: New file.
49616         * doc/glibc-headers/crypt.texi: New file.
49617         * doc/glibc-headers/endian.texi: New file.
49618         * doc/glibc-headers/envz.texi: New file.
49619         * doc/glibc-headers/err.texi: New file.
49620         * doc/glibc-headers/error.texi: New file.
49621         * doc/glibc-headers/execinfo.texi: New file.
49622         * doc/glibc-headers/fpu_control.texi: New file.
49623         * doc/glibc-headers/fstab.texi: New file.
49624         * doc/glibc-headers/fts.texi: New file.
49625         * doc/glibc-headers/getopt.texi: New file.
49626         * doc/glibc-headers/ieee754.texi: New file.
49627         * doc/glibc-headers/ifaddrs.texi: New file.
49628         * doc/glibc-headers/libintl.texi: New file.
49629         * doc/glibc-headers/mcheck.texi: New file.
49630         * doc/glibc-headers/mntent.texi: New file.
49631         * doc/glibc-headers/obstack.texi: New file.
49632         * doc/glibc-headers/paths.texi: New file.
49633         * doc/glibc-headers/printf.texi: New file.
49634         * doc/glibc-headers/pty.texi: New file.
49635         * doc/glibc-headers/resolv.texi: New file.
49636         * doc/glibc-headers/shadow.texi: New file.
49637         * doc/glibc-headers/sysexits.texi: New file.
49638         * doc/glibc-headers/ttyent.texi: New file.
49639
49640 2008-01-12  Jim Meyering  <meyering@redhat.com>
49641
49642         announce-gen: emit Gnulib's git-based version string.
49643         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49644         New option --gnulib-version=V, where V is expected to be
49645         the output of running git describe in the gnulib directory.
49646         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49647         not useful, and plan to stop publishing an xdelta file with each
49648         coreutils release.
49649
49650         * build-aux/announce-gen: Also check for lzma-compressed files.
49651
49652 2008-01-11  Bruno Haible  <bruno@clisp.org>
49653
49654         * tests/test-memmem.c (main): Increase maximum allowed time.
49655         * tests/test-strstr.c (main): Likewise.
49656
49657 2008-01-11  Bruno Haible  <bruno@clisp.org>
49658
49659         * doc/functions/memmem.texi: Add more precisions about platforms.
49660         * doc/functions/strstr.texi: Likewise.
49661
49662 2008-01-10  Eric Blake  <ebb9@byu.net>
49663
49664         * m4/strstr.m4: Delete cruft from copy-n-paste.
49665         Reported by Bruno Haible.
49666
49667 2008-01-10  Bruno Haible  <bruno@clisp.org>
49668
49669         Make c-strstr rely on strstr.
49670         * lib/c-strstr.c: Don't include str-kmp.h.
49671         (c_strstr): Define in terms of strstr.
49672         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49673         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49674
49675 2008-01-10  Bruno Haible  <bruno@clisp.org>
49676
49677         * doc/gnulib.texi (String Functions in C Locale): New section.
49678         * doc/c-ctype.texi: New file.
49679         * doc/c-strcase.texi: New file.
49680         * doc/c-strcaseeq.texi: New file.
49681         * doc/c-strcasestr.texi: New file.
49682         * doc/c-strstr.texi: New file.
49683         * doc/c-strtod.texi: New file.
49684         * doc/c-strtold.texi: New file.
49685
49686 2008-01-10  Eric Blake  <ebb9@byu.net>
49687
49688         * lib/relocatable.h: Fix a comment.
49689
49690 2008-01-10  Eric Blake  <ebb9@byu.net>
49691
49692         Share two-way algorithm.
49693         * lib/str-two-way.h: New file, merged from...
49694         * lib/memmem.c: ...here...
49695         * lib/strstr.c: ...and here.
49696         * modules/memmem (Files): Use it.
49697         * modules/strstr (Files): Likewise.
49698
49699         Avoid quadratic strstr implementations.
49700         * lib/strstr.c: New file.
49701         * m4/strstr.m4: Likewise.
49702         * modules/strstr: Likewise.
49703         * modules/strstr-tests: Likewise.
49704         * tests/test-strstr.c: Likewise.
49705         * lib/string.in.h (rpl_strstr): Declare.
49706         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49708         * modules/string (Makefile.am): Likewise.
49709         * MODULES.html.sh (string handling): Mention new module.
49710         * doc/functions/strstr.texi (strstr): Document the bug.
49711
49712 2008-01-10  Bruno Haible  <bruno@clisp.org>
49713
49714         * lib/relocatable.h (relocate): State whether result is freshly
49715         allocated or not.
49716         * lib/relocatable.c (relocate): Return a freshly allocated string
49717         instead of a pointer to a privately held string.
49718         Reported by Sylvain Beucler <beuc@gnu.org>.
49719
49720 2008-01-10  Colin Watson  <cjwatson@debian.org>
49721
49722         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49723         s/S_ISNLK/S_ISLNK/.
49724
49725 2008-01-09  Bruno Haible  <bruno@clisp.org>
49726
49727         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49728         and other files.
49729         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49730         if it's only a guess.
49731         * modules/memmem: Simplify by depending on memmem-simple.
49732
49733 2008-01-09  Bruno Haible  <bruno@clisp.org>
49734
49735         Work around OpenBSD 4.0 tdelete() bug.
49736         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49737         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49738         macros and don't redefine the enum values.
49739         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49740         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49741         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49742
49743 2008-01-09  Bruno Haible  <bruno@clisp.org>
49744
49745         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49746         (main): Don't perform the tests if setlocale did not install a UTF-8
49747         locale. Needed on OpenBSD 4.0.
49748         * modules/wcwidth-tests (Depends-on): Add localcharset.
49749
49750 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49751
49752         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49753         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49754         * NEWS: announce this.
49755         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49756
49757 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49758         and Eric Blake  <ebb9@byu.net>
49759
49760         Add memmem-simple module.
49761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49762         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49763         * modules/memmem-simple: New file.
49764         * modules/memmem (Description): Tweak.
49765         * MODULES.html.sh (string handling): Mention new module.
49766         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49767         addressed by memmem-simple.
49768         * NEWS: Document the difference.
49769
49770 2008-01-09  Eric Blake  <ebb9@byu.net>
49771
49772         Give gcc some memmem optimization hints.
49773         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49774         (strcasestr): Declare as pure.
49775         * modules/memmem (Maintainer): Claim my implementation.
49776
49777 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49778
49779         Support AIX 6.1 and higher.
49780         * build-aux/config.libpath: Likewise.
49781         * build-aux/config.rpath: Likewise.
49782
49783 2008-01-08  Jim Meyering  <meyering@redhat.com>
49784             Bruno Haible  <bruno@clisp.org>
49785
49786         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49787         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49788         Reported by Peter Fales in
49789         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49790
49791 2008-01-08  Bruno Haible  <bruno@clisp.org>
49792
49793         * modules/unictype/category-of (Depends-on): Add
49794         unictype/category-none.
49795         * modules/unictype/category-and-tests (Depends-on): Add
49796         unictype/category-{L,N,Lu,Nd}.
49797         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49798         * modules/unictype/category-or-tests (Depends-on): Add
49799         unictype/category-{L,N}.
49800         * modules/unictype/category-name-tests (Depends-on): Add
49801         unictype/category-{Z,Nl}.
49802         Reported by Simon Josefsson.
49803
49804 2008-01-08  Bruno Haible  <bruno@clisp.org>
49805
49806         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49807         convention better.
49808         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49809         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49810         Reported by Peter Miller <millerp@canb.auug.org.au>.
49811
49812 2008-01-08  Eric Blake  <ebb9@byu.net>
49813
49814         Rewrite memmem to guarantee linear complexity without malloc.
49815         * lib/memmem.c (memmem): Use Two-Way rather than
49816         Knuth-Morris-Pratt, to allow O(1) space usage.
49817         (critical_factorization, two_way_short_needle)
49818         (two_way_long_needle): New functions.
49819         (knuth_morris_pratt): Delete.
49820         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49821         Add stdint.
49822         * tests/test-memmem.c (main): Add tests for periodic needle and
49823         sublinear performance.
49824         * doc/functions/memmem.texi (memmem): Document other deficiencies
49825         in cygwin and older glibc.
49826
49827 2008-01-08  Bruno Haible  <bruno@clisp.org>
49828
49829         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49830         augmentation.
49831
49832 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49833
49834         Add a configure time option: --disable-acl.
49835         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49836         AC_ARG_ENABLE(acl).
49837
49838 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49839
49840         * tests/test-localename.c: Don't include obsolete "setenv.h".
49841
49842         * modules/localename-tests (Depends-on): Need unsetenv.
49843
49844 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49845
49846         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49847
49848 2008-01-06  Colin Watson  <cjwatson@debian.org>
49849
49850         * users.txt: Add man-db.
49851
49852 2008-01-07  Bruno Haible  <bruno@clisp.org>
49853
49854         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49855         previous section name.
49856
49857 2008-01-07  Bruno Haible  <bruno@clisp.org>
49858
49859         * lib/progname.c (set_program_name): Don't strip off a leading
49860         "lt-" prefix outside a .libs directory.
49861         Suggested by Paul Eggert.
49862
49863 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49864             Bruno Haible  <bruno@clisp.org>
49865
49866         Improve memory cleanup in 'relocatable' module.
49867         * lib/relocatable.h (compute_curr_prefix): Change return type to
49868         'char *'.
49869         * lib/relocatable.c (compute_curr_prefix): Change return type to
49870         'char *'. Free curr_installdir after use.
49871         (relocate): Free curr_prefix_better after use.
49872         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49873
49874 2008-01-01  Bruno Haible  <bruno@clisp.org>
49875
49876         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49877         failure on older glibc systems.
49878         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49879
49880 2008-01-05  Eric Blake  <ebb9@byu.net>
49881
49882         Avoid quadratic system memmem.
49883         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49884         Reported by Ralf Wildenhues.
49885
49886         Fix memmem test for mingw.
49887         * modules/memmem-tests (configure.ac): Check for alarm.
49888         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49889         it.
49890         * doc/functions/memmem.texi: New file.
49891         * doc/gnulib.texi (Function Substitutes): Add memmem.
49892         Reported by Bruno Haible.
49893
49894 2008-01-04  Bruno Haible  <bruno@clisp.org>
49895
49896         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49897         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49898         gl_HEADER_STRING_H_DEFAULTS.
49899
49900 2008-01-04  Eric Blake  <ebb9@byu.net>
49901
49902         Shorten duration of memmem test.
49903         * tests/test-memmem.c (main): Use alarm to declare failure if test
49904         is taking too long.
49905         Reported by Ralf Wildenhues.
49906
49907 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49908
49909         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49910         string, needed by strerror.
49911
49912 2008-01-03  Colin Watson  <cjwatson@debian.org>
49913             Bruno Haible  <bruno@clisp.org>
49914
49915         * doc/gnulib-tool.texi (Localization): New section.
49916
49917 2008-01-02  Bruno Haible  <bruno@clisp.org>
49918
49919         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49920         variables to 'unsigned char *' type.
49921         Reported by Paul Eggert.
49922
49923 2008-01-02  Jim Meyering  <jim@meyering.net>
49924
49925         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49926
49927 2007-12-31  Jim Meyering  <jim@meyering.net>
49928
49929         Avoid use of private FTS type name.
49930         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49931
49932 2007-12-30  Karl Berry  <karl@gnu.org>
49933
49934         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49935         work around defect in Texinfo and/or the standalone Info browser.
49936
49937 2007-12-30  Bruno Haible  <bruno@clisp.org>
49938
49939         Unify 5 copies of the KMP code.
49940         * lib/str-kmp.h: New file.
49941         * lib/c-strcasestr.c: Include str-kmp.h.
49942         (knuth_morris_pratt): Remove function.
49943         (c_strcasestr): Update.
49944         * lib/c-strstr.c: Include str-kmp.h.
49945         (knuth_morris_pratt): Remove function.
49946         (c_strcasestr): Update.
49947         * lib/mbscasestr.c: Include str-kmp.h.
49948         (knuth_morris_pratt_unibyte): Remove function.
49949         * lib/mbsstr.c: Include str-kmp.h.
49950         (knuth_morris_pratt_unibyte): Remove function.
49951         * lib/strcasestr.c: Include str-kmp.h.
49952         (knuth_morris_pratt): Remove function.
49953         (strcasestr): Update.
49954         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49955         * modules/c-strstr (Files): Likewise.
49956         * modules/mbscasestr (Files): Likewise.
49957         * modules/mbsstr (Files): Likewise.
49958         * modules/strcasestr (Files): Likewise.
49959         Suggested by Paul Eggert.
49960
49961 2007-12-30  Bruno Haible  <bruno@clisp.org>
49962
49963         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49964         defined.
49965
49966 2007-12-30  Bruno Haible  <bruno@clisp.org>
49967
49968         * lib/xmalloca.h: Include xalloc.h.
49969         (xnmalloca): New macro.
49970
49971 2007-12-30  Bruno Haible  <bruno@clisp.org>
49972
49973         * lib/malloca.h (nmalloca): New macro.
49974         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49975         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49976         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49977         knuth_morris_pratt_multibyte): Likewise.
49978         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49979         knuth_morris_pratt_multibyte): Likewise.
49980         * lib/memmem.c (knuth_morris_pratt): Likewise.
49981         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49982
49983 2007-12-25  Bruno Haible  <bruno@clisp.org>
49984
49985         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49986         * lib/glob.c: Don't include openat.h.
49987         (link_exists2_p): Add back the code that deals with the
49988         !GLOB_ALTDIRFUNC case.
49989         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49990         let it do the filename concatenation.
49991         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49992         * modules/glob (Depends-on): Remove openat.
49993
49994 2007-12-31  Bruno Haible  <bruno@clisp.org>
49995
49996         * modules/dirfd (License): Change to LGPLv2+.
49997         Approved by Jim Meyering.
49998
49999 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50000
50001         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50002         when multiplying M by sizeof (size_t).
50003
50004 2007-12-10  Martin Lambers  <marlam@marlam.de>
50005
50006         Override getpagesize on mingw.
50007         * lib/getpagesize.c: New file.
50008         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50009         * modules/getpagesize (Files): Add lib/getpagesize.c.
50010         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50012         REPLACE_GETPAGESIZE.
50013         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50014
50015 2007-12-25  Bruno Haible  <bruno@clisp.org>
50016
50017         * modules/localcharset (Notice): New field.
50018         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50019         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50020
50021 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50022             Bruno Haible  <bruno@clisp.org>
50023
50024         Avoid using the syntax symbol() in formatted documentation.
50025         * MODULES.html.sh (func_module): When replacing symbol() with a
50026         hyperlink, remove the parentheses. Show an error if some remain.
50027         Recognize and render the '...' syntax.
50028         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50029         Rework. Add paragraph about GCC's inlining.
50030         * doc/alloca.texi: Likewise.
50031         * doc/error.texi: Remove parentheses from symbol reference.
50032         * doc/gnulib-intro.texi: Likewise.
50033         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50034         * modules/fnmatch (Description): Reword to say "the ... function".
50035         * modules/full-read (Description): Likewise.
50036         * modules/full-write (Description): Likewise.
50037         * modules/safe-read (Description): Likewise.
50038         * modules/safe-write (Description): Likewise.
50039         * modules/strchrnul (Description): Likewise.
50040         * modules/trim (Description): Likewise.
50041         * modules/error (Description): Remove parentheses from symbol
50042         references.
50043         * modules/verror (Description): Likewise.
50044         Reported by Karl Berry.
50045
50046 2007-12-25  Bruno Haible  <bruno@clisp.org>
50047
50048         Fixup after 2007-10-16 commit.
50049         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50050
50051 2007-12-24  Bruno Haible  <bruno@clisp.org>
50052
50053         Make --enable-relocatable work with DESTDIR.
50054         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50055         to compute installdir from destprog.
50056         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50057         also set the RELOC_DESTDIR variable.
50058         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50059
50060 2007-12-24  Bruno Haible  <bruno@clisp.org>
50061
50062         Fix link error due to xalloc_die().
50063         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50064         of xreadlink.
50065         * lib/relocwrapper.c: Update comments.
50066         * build-aux/install-reloc: Remove xreadlink.c from file list.
50067         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50068         xreadlink.c.
50069         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50070
50071 2007-12-24  Bruno Haible  <bruno@clisp.org>
50072
50073         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50074         * lib/setenv.h: Remove file.
50075         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50076         lib/setenv.h.
50077         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50078         (Depends-on): Add stdlib.
50079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50080         gl_FUNC_UNSETENV.
50081         (Include): Replace setenv.h with <stdlib.h>.
50082         * modules/unsetenv: New file.
50083         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50084         * lib/unsetenv.c: Include <stdlib.h> first.
50085         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50086         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50087         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50088         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50089         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50090         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50092         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50093         * doc/functions/unsetenv.texi: Update.
50094         * modules/xsetenv (Depends-on): Add unsetenv.
50095         * modules/getdate (Depends-on): Likewise.
50096         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50097         * lib/xsetenv.c: Don't include setenv.h.
50098         * lib/getdate.y: Likewise.
50099         * lib/relocwrapper.c: Likewise.
50100         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50101         (Depends-on): Add stdlib.
50102         * NEWS: Mention the changes.
50103         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50104
50105 2007-12-23  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50108         indentation.
50109
50110 2007-12-23  Bruno Haible  <bruno@clisp.org>
50111
50112         * lib/c-strcasestr.c: Add more comments.
50113         * lib/c-strstr.c: Likewise.
50114         * lib/mbscasestr.c: Likewise.
50115         * lib/mbsstr.c: Likewise.
50116         * lib/strcasestr.c: Likewise.
50117         * lib/memmem.c: Likewise.
50118
50119 2007-12-23  Bruno Haible  <bruno@clisp.org>
50120
50121         * tests/test-memmem.c: Include <string.h> first.
50122
50123 2007-12-22  Bruno Haible  <bruno@clisp.org>
50124
50125         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50126         the contents of $testsbase.
50127         Reported by Ralf Wildenhues.
50128
50129 2007-12-22  Bruno Haible  <bruno@clisp.org>
50130
50131         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50132         two variables local_ldadd_before, local_ldadd_last.
50133
50134 2007-12-20  Eric Blake  <ebb9@byu.net>
50135
50136         Work around circular library issue when cross-compiling.
50137         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50138         that progname.o does not need to pull in rpl_memcmp.
50139
50140 2007-12-19  Eric Blake  <ebb9@byu.net>
50141
50142         Fix memmem to avoid O(n^2) worst-case complexity.
50143         * lib/memmem.c (knuth_morris_pratt): New function.
50144         (memmem): Use it if first few naive iterations fail.
50145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50146         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50147         * modules/memchr (License): Likewise.
50148         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50149         malloca.
50150         * tests/test-memmem.c: Rewrite, borrowing ideas from
50151         test-mbsstr1.c; the old version wouldn't even compile!
50152         * modules/memmem-tests: New file.
50153         * lib/string.in.h (rpl_memmem): Add declaration.
50154         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50156         REPLACE_MEMMEM.
50157
50158 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50159
50160         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50161         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50162         before any system include files, and undef after them all.  This
50163         should fix a problem on VMS reported by John E. Malmberg in
50164         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50165
50166 2007-12-17  Eric Blake  <ebb9@byu.net>
50167
50168         Revert addition of verify, for BSD/OS.
50169         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50170         can't handle large files, for the sake of obsolete platforms.
50171         * modules/fseeko (Depends-on): Remove verify.
50172         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50173         * doc/functions/ftello.texi (ftello): Likewise.
50174         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50175         Reported by Larry Jones.
50176
50177 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50178
50179         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50180         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50181
50182 2007-12-17  Jim Meyering  <meyering@redhat.com>
50183
50184         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50185         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50186         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50187         * modules/getcwd (Depends-on): Add openat.
50188         Reported by Petr Salinger.
50189
50190 2007-12-17  Bruno Haible  <bruno@clisp.org>
50191
50192         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50193         avoid a segmentation fault of the configure test on x86_64 systems.
50194
50195 2007-12-15  Jim Meyering  <meyering@redhat.com>
50196
50197         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50198
50199 2007-12-13  Eric Blake  <ebb9@byu.net>
50200
50201         Another fseek test.
50202         * tests/test-fseek.c (main): Also test ungetc handling.
50203         * tests/test-fseeko.c (main): Likewise.
50204         * modules/fseeko (Depends-on): Add verify.
50205         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50206         large.
50207         Reported by Larry Jones.
50208
50209         Fix fseeko on mingw.
50210         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50211         seek.
50212
50213         Beef up fseek tests.
50214         * tests/test-fseek.c (main): Also test eof handling.
50215         * tests/test-fseeko.c (main): Likewise.
50216         Reported by Larry Jones.
50217
50218 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50219
50220         Fix fseeko on BSD-based platforms.
50221         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50222         successful seek.
50223
50224 2007-12-12  Eric Blake  <ebb9@byu.net>
50225
50226         Allow circular dependency of separate libtests.a
50227         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50228         when use_libtests.
50229
50230 2007-12-11  Eric Blake  <ebb9@byu.net>
50231
50232         Fix bug with -0.0L in previous patch.
50233         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50234         * tests/test-isnan.c (main): Also test on zeroes.
50235         * tests/test-isnanf.c (main): Likewise.
50236         * tests/test-isnanl.h (main): Likewise.
50237
50238         Detect pseudo-denormals on x86 even when cross-compiling.
50239         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50240         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50241         invalid bit patterns that happen to satisfy ==.
50242
50243         Avoid link failures with separate libtests.a.
50244         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50245         last, to satisfy circular dependencies.
50246
50247 2007-12-11  Eric Blake  <ebb9@byu.net>
50248         and Bruno Haible  <bruno@clisp.org>
50249
50250         Fix OpenBSD 4.0 <float.h> handling of long double.
50251         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50252         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50253         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50254
50255 2007-12-11  Jim Meyering  <meyering@redhat.com>
50256
50257         * users.txt: Add libvirt.
50258
50259         Support versions of autoconf prior to 2.59c.
50260         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50261         if it is not already defined.
50262
50263 2007-12-09  Bruno Haible  <bruno@clisp.org>
50264
50265         Let 'gnulib-tool --import' collect sources needed for the tests in
50266         tests/ rather than in lib/.
50267         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50268         argument. If true, add rules to generate libtests.a, and put libtests.a
50269         into $(LDADD). Consider source files in subdirectories and set
50270         uses_subdirs.
50271         (func_emit_initmacro_start, func_emit_initmacro_end,
50272         func_emit_initmacro_done): Pass all arguments explicitly.
50273         (func_import): Determine two module lists main_modules,
50274         testsrelated_modules. Determine use_libtests. Determine two variables
50275         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50276         instead of just sed_transform_lib_file. Determine two variables
50277         main_files and testsrelated_files. Compute 'files' as the union of
50278         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50279         func_add_or_update. In the generated gnulib-comp.m4, collect the
50280         object files for tests/ in different variables than those for lib/.
50281         Substitute LIBTESTS_LIBDEPS.
50282         (func_create_testdir): Combine the uses_subdirs results from
50283         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50284
50285 2007-12-09  Bruno Haible  <bruno@clisp.org>
50286
50287         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50288         the build-aux directory.
50289
50290 2007-12-09  Bruno Haible  <bruno@clisp.org>
50291
50292         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50293         introduced on 2006-09-09.
50294
50295 2007-12-07  Jim Meyering  <meyering@redhat.com>
50296
50297         Let these macros work also with autoconf-2.59.
50298         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50299         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50300         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50301
50302 2007-12-06  Jim Meyering  <meyering@redhat.com>
50303
50304         Avoid a configure-time syntax error in gl_FUNC_ACL.
50305         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50306         function in each branch, before testing the cache variable.
50307
50308 2007-12-04  Eric Blake  <ebb9@byu.net>
50309
50310         Make scripts executable.
50311         * build-aux/config.guess: Add execute permissions.
50312         * build-aux/config.sub: Likewise.
50313         * build-aux/gendocs.sh: Likewise.
50314
50315         Fix frexp on mingw.
50316         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50317         cross-compiling.
50318         * doc/functions/frexp.texi (frexp): Document the bug.
50319
50320         Make cygwin fseeko check more reliable.
50321         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50322         version numbers, rather than unrelated feature check.
50323         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50324         * doc/functions/ftello.texi (ftello): Likewise.
50325         Reported by Bruno Haible.
50326
50327         * m4/strerror.m4: Bump version number.
50328
50329 2007-12-03  Bruno Haible  <bruno@clisp.org>
50330
50331         * doc/functions/mprotect.texi: Mention the mingw problem.
50332
50333 2007-12-03  Eric Blake  <ebb9@byu.net>
50334
50335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50336         REPLACE_STRERROR is initialized before this macro.
50337
50338 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50339
50340         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50341         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50342         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50343         put -lsec in even for programs other than 'ls'.  This fixes a problem
50344         for gettext reported by Bruno Haible in
50345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50346         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50347         Add support for Solaris 10.  This isn't efficient, but should get the
50348         job done for now.
50349
50350 2007-12-03  James Youngman  <jay@gnu.org>
50351
50352         * doc/regexprops-generic.texi: change "an close-group" to "a
50353         close-group" and "illegal" to "not allowed".
50354
50355 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50356
50357         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50358         pr_byname.h. Needed for the rare case when the maintainer has done
50359         "make maintainer-clean" in the source directory and then attempts a
50360         build outside the source directory.
50361         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50362         scripts_byname.h.
50363
50364 2007-12-02  Martin Lambers <marlam@marlam.de>
50365             Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/getpagesize.h: Remove file.
50368         * lib/unistd.in.h: Include declaration of getpagesize here.
50369         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50370         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50371         HAVE_SYS_PARAM_H.
50372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50373         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50374         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50375         (Depends-on): Add unistd.
50376         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50377         (Include): Use <unistd.h> instead of getpagesize.h.
50378         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50379         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50380         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50381         gl_GETPAGESIZE invocation, already handled by module dependency.
50382         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50383
50384 2007-12-02  Bruno Haible  <bruno@clisp.org>
50385
50386         * modules/strings-tests: New file.
50387         * tests/test-strings.c: New file.
50388
50389         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50390         * lib/strings.in.h: New file.
50391         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50392         * m4/strings_h.m4: New file.
50393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50394         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50395         * modules/strings: New file.
50396         * modules/string (Makefile.am): Update.
50397         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50398         Reported by Karl Berry.
50399
50400 2007-12-01  Eric Blake  <ebb9@byu.net>
50401
50402         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50403         accomodate fix in cygwin 1.5.25.
50404
50405 2007-12-01  Jim Meyering  <meyering@redhat.com>
50406
50407         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50408         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50409         that would inhibit utf8-optimization of a regexp containing line-
50410         or buffer-anchors, e.g., `^', `$'.
50411
50412 2007-11-30  Bruno Haible  <bruno@clisp.org>
50413
50414         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50415         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50416         glthread_recursive_lock_init.
50417         * lib/lock.c (glthread_recursive_lock_init)
50418         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50419         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50420
50421 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50422
50423         New function qset_acl, like set_acl but with syscall semantics.
50424         * lib/acl.h (qset_acl): New decl.
50425         * lib/acl.c (qset_acl): New function.
50426         (set_acl): Use new function.  Use more-consistent diagnostics.
50427
50428 2007-11-28  Jim Meyering  <meyering@redhat.com>
50429
50430         * modules/physmem (License): Change from GPL to LGPLv2+.
50431
50432 2007-11-26  Bruno Haible  <bruno@clisp.org>
50433
50434         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50435         'long double' type has excess precision.
50436         Reported by Jim Meyering in
50437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50438
50439 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50440
50441         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50442         Sync from <http://gnu.org/licenses>.
50443         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50444         with license text from same location.
50445         * doc/maintain.texi, doc/standards.texi:  Sync from
50446         <http://savannah.gnu.org/projects/gnustandards>.
50447
50448 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50449         and Jim Meyering  <meyering@redhat.com>
50450
50451         Adjust getdate' grammar to accept a slightly more regular language.
50452         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50453         Before, the former was rejected.
50454         * lib/getdate.y (digits_to_date_time): New function, factored
50455         out of ...
50456         (number): ...here.  Just call digits_to_date_time.
50457         (hybrid): New non-terminal to handle an <unsigned number,
50458         signed relative offset> sequence consistently.
50459
50460 2007-11-18  Jim Meyering  <meyering@redhat.com>
50461
50462         Pull my changes from coreutils:
50463         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50464         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50465         use of $gnulib_tool_option_extras, so that it's separated from the
50466         preceding argument.
50467
50468         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50469         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50470         parent destination directories before copying a file into place.
50471
50472 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50473
50474         bootstrap: work also with 4-argument variant of AC_INIT
50475         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50476
50477 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         Port test-getaddrinfo to Solaris.
50480         Problem reported by Bruno Haible in
50481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50482         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50483         explanation of setting 'hints'.
50484         Don't reject an implementation merely because it returns EAI_SERVICE.
50485         (EAI_SERVICE): Define to 0 if not defined.
50486
50487 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50488
50489         The license of gnu-make and posix-shell is now "GPLed build tool".
50490         * modules/gnu-make (License): Likewise.
50491         * modules/posix-shell (License): Likewise.
50492
50493         New module posix-shell, for determining a POSIX shell
50494         or perhaps something that is close enough to a POSIX shell.
50495         * m4/posix-shell.m4: New file.
50496         * modules/posix-shell: New file.
50497
50498         * MODULES.html.sh: Mention new module.
50499
50500         New module gnu-make, for determining whether we're using GNU Make.
50501         * m4/gnu-make.m4: New file.
50502         * modules/gnu-make: New file.
50503         * MODULES.html.sh: Mention new module.
50504
50505 2007-11-14  Jim Meyering  <meyering@redhat.com>
50506
50507         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50508         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50509         use this macro to create a function _definition_.
50510         Remove useless "#undef ARGMATCH_DIE".
50511
50512 2007-11-14  Bruno Haible  <bruno@clisp.org>
50513
50514         * lib/config.charset: Update for OpenBSD 4.1.
50515         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50516
50517 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50518
50519         Document 64-bit #if problems in stdint.texi.
50520         * doc/headers/stdint.texi (stdint.h): Mention problems with
50521         64-bit-#if, and how to work around them.
50522
50523         Don't insist on 'long long int' support in the preprocessor.  It
50524         breaks too many things.  For example, PRIdMAX still uses a 'long
50525         long int' format with the latest Sun compiler, even though
50526         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50527         preprocessor problem.  This causes the latest coreutils to dump
50528         core on Solaris 10 sparc with the Sun C compiler.
50529         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50530         the troublesome expressions at configure-time, not at #if-time.
50531         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50532         preprocessor.
50533         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50534         compile-time C checks, done at 'configure'-time.
50535         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50536         * modules/inttypes (Makefile): Substitute the new symbols that
50537         gl_INTTYPES_H now generates.
50538         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50539
50540 2007-11-12  Bruno Haible  <bruno@clisp.org>
50541
50542         Tests for Unicode character classification functions.
50543
50544         * modules/unictype/bidicategory-byname-tests: New file.
50545         * modules/unictype/bidicategory-name-tests: New file.
50546         * modules/unictype/bidicategory-of-tests: New file.
50547         * modules/unictype/bidicategory-test-tests: New file.
50548         * modules/unictype/block-list-tests: New file.
50549         * modules/unictype/block-of-tests: New file.
50550         * modules/unictype/block-test-tests: New file.
50551         * modules/unictype/category-C-tests: New file.
50552         * modules/unictype/category-Cc-tests: New file.
50553         * modules/unictype/category-Cf-tests: New file.
50554         * modules/unictype/category-Cn-tests: New file.
50555         * modules/unictype/category-Co-tests: New file.
50556         * modules/unictype/category-Cs-tests: New file.
50557         * modules/unictype/category-L-tests: New file.
50558         * modules/unictype/category-Ll-tests: New file.
50559         * modules/unictype/category-Lm-tests: New file.
50560         * modules/unictype/category-Lo-tests: New file.
50561         * modules/unictype/category-Lt-tests: New file.
50562         * modules/unictype/category-Lu-tests: New file.
50563         * modules/unictype/category-M-tests: New file.
50564         * modules/unictype/category-Mc-tests: New file.
50565         * modules/unictype/category-Me-tests: New file.
50566         * modules/unictype/category-Mn-tests: New file.
50567         * modules/unictype/category-N-tests: New file.
50568         * modules/unictype/category-Nd-tests: New file.
50569         * modules/unictype/category-Nl-tests: New file.
50570         * modules/unictype/category-No-tests: New file.
50571         * modules/unictype/category-P-tests: New file.
50572         * modules/unictype/category-Pc-tests: New file.
50573         * modules/unictype/category-Pd-tests: New file.
50574         * modules/unictype/category-Pe-tests: New file.
50575         * modules/unictype/category-Pf-tests: New file.
50576         * modules/unictype/category-Pi-tests: New file.
50577         * modules/unictype/category-Po-tests: New file.
50578         * modules/unictype/category-Ps-tests: New file.
50579         * modules/unictype/category-S-tests: New file.
50580         * modules/unictype/category-Sc-tests: New file.
50581         * modules/unictype/category-Sk-tests: New file.
50582         * modules/unictype/category-Sm-tests: New file.
50583         * modules/unictype/category-So-tests: New file.
50584         * modules/unictype/category-Z-tests: New file.
50585         * modules/unictype/category-Zl-tests: New file.
50586         * modules/unictype/category-Zp-tests: New file.
50587         * modules/unictype/category-Zs-tests: New file.
50588         * modules/unictype/category-and-not-tests: New file.
50589         * modules/unictype/category-and-tests: New file.
50590         * modules/unictype/category-byname-tests: New file.
50591         * modules/unictype/category-name-tests: New file.
50592         * modules/unictype/category-none-tests: New file.
50593         * modules/unictype/category-of-tests: New file.
50594         * modules/unictype/category-or-tests: New file.
50595         * modules/unictype/category-test-withtable-tests: New file.
50596         * modules/unictype/combining-class-tests: New file.
50597         * modules/unictype/ctype-alnum-tests: New file.
50598         * modules/unictype/ctype-alpha-tests: New file.
50599         * modules/unictype/ctype-blank-tests: New file.
50600         * modules/unictype/ctype-cntrl-tests: New file.
50601         * modules/unictype/ctype-digit-tests: New file.
50602         * modules/unictype/ctype-graph-tests: New file.
50603         * modules/unictype/ctype-lower-tests: New file.
50604         * modules/unictype/ctype-print-tests: New file.
50605         * modules/unictype/ctype-punct-tests: New file.
50606         * modules/unictype/ctype-space-tests: New file.
50607         * modules/unictype/ctype-upper-tests: New file.
50608         * modules/unictype/ctype-xdigit-tests: New file.
50609         * modules/unictype/decimal-digit-tests: New file.
50610         * modules/unictype/digit-tests: New file.
50611         * modules/unictype/mirror-tests: New file.
50612         * modules/unictype/numeric-tests: New file.
50613         * modules/unictype/property-alphabetic-tests: New file.
50614         * modules/unictype/property-ascii-hex-digit-tests: New file.
50615         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50616         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50617         * modules/unictype/property-bidi-block-separator-tests: New file.
50618         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50619         * modules/unictype/property-bidi-common-separator-tests: New file.
50620         * modules/unictype/property-bidi-control-tests: New file.
50621         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50622         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50623         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50624         * modules/unictype/property-bidi-european-digit-tests: New file.
50625         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50626         * modules/unictype/property-bidi-left-to-right-tests: New file.
50627         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50628         * modules/unictype/property-bidi-other-neutral-tests: New file.
50629         * modules/unictype/property-bidi-pdf-tests: New file.
50630         * modules/unictype/property-bidi-segment-separator-tests: New file.
50631         * modules/unictype/property-bidi-whitespace-tests: New file.
50632         * modules/unictype/property-byname-tests: New file.
50633         * modules/unictype/property-combining-tests: New file.
50634         * modules/unictype/property-composite-tests: New file.
50635         * modules/unictype/property-currency-symbol-tests: New file.
50636         * modules/unictype/property-dash-tests: New file.
50637         * modules/unictype/property-decimal-digit-tests: New file.
50638         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50639         * modules/unictype/property-deprecated-tests: New file.
50640         * modules/unictype/property-diacritic-tests: New file.
50641         * modules/unictype/property-extender-tests: New file.
50642         * modules/unictype/property-format-control-tests: New file.
50643         * modules/unictype/property-grapheme-base-tests: New file.
50644         * modules/unictype/property-grapheme-extend-tests: New file.
50645         * modules/unictype/property-grapheme-link-tests: New file.
50646         * modules/unictype/property-hex-digit-tests: New file.
50647         * modules/unictype/property-hyphen-tests: New file.
50648         * modules/unictype/property-id-continue-tests: New file.
50649         * modules/unictype/property-id-start-tests: New file.
50650         * modules/unictype/property-ideographic-tests: New file.
50651         * modules/unictype/property-ids-binary-operator-tests: New file.
50652         * modules/unictype/property-ids-trinary-operator-tests: New file.
50653         * modules/unictype/property-ignorable-control-tests: New file.
50654         * modules/unictype/property-iso-control-tests: New file.
50655         * modules/unictype/property-join-control-tests: New file.
50656         * modules/unictype/property-left-of-pair-tests: New file.
50657         * modules/unictype/property-line-separator-tests: New file.
50658         * modules/unictype/property-logical-order-exception-tests: New file.
50659         * modules/unictype/property-lowercase-tests: New file.
50660         * modules/unictype/property-math-tests: New file.
50661         * modules/unictype/property-non-break-tests: New file.
50662         * modules/unictype/property-not-a-character-tests: New file.
50663         * modules/unictype/property-numeric-tests: New file.
50664         * modules/unictype/property-other-alphabetic-tests: New file.
50665         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50666         * modules/unictype/property-other-grapheme-extend-tests: New file.
50667         * modules/unictype/property-other-id-continue-tests: New file.
50668         * modules/unictype/property-other-id-start-tests: New file.
50669         * modules/unictype/property-other-lowercase-tests: New file.
50670         * modules/unictype/property-other-math-tests: New file.
50671         * modules/unictype/property-other-uppercase-tests: New file.
50672         * modules/unictype/property-paired-punctuation-tests: New file.
50673         * modules/unictype/property-paragraph-separator-tests: New file.
50674         * modules/unictype/property-pattern-syntax-tests: New file.
50675         * modules/unictype/property-pattern-white-space-tests: New file.
50676         * modules/unictype/property-private-use-tests: New file.
50677         * modules/unictype/property-punctuation-tests: New file.
50678         * modules/unictype/property-quotation-mark-tests: New file.
50679         * modules/unictype/property-radical-tests: New file.
50680         * modules/unictype/property-sentence-terminal-tests: New file.
50681         * modules/unictype/property-soft-dotted-tests: New file.
50682         * modules/unictype/property-space-tests: New file.
50683         * modules/unictype/property-terminal-punctuation-tests: New file.
50684         * modules/unictype/property-test-tests: New file.
50685         * modules/unictype/property-titlecase-tests: New file.
50686         * modules/unictype/property-unassigned-code-value-tests: New file.
50687         * modules/unictype/property-unified-ideograph-tests: New file.
50688         * modules/unictype/property-uppercase-tests: New file.
50689         * modules/unictype/property-variation-selector-tests: New file.
50690         * modules/unictype/property-white-space-tests: New file.
50691         * modules/unictype/property-xid-continue-tests: New file.
50692         * modules/unictype/property-xid-start-tests: New file.
50693         * modules/unictype/property-zero-width-tests: New file.
50694         * modules/unictype/scripts-tests: New file.
50695         * modules/unictype/syntax-c-ident-tests: New file.
50696         * modules/unictype/syntax-c-whitespace-tests: New file.
50697         * modules/unictype/syntax-java-ident-tests: New file.
50698         * modules/unictype/syntax-java-whitespace-tests: New file.
50699         * tests/unictype/test-bidi_byname.c: New file.
50700         * tests/unictype/test-bidi_name.c: New file.
50701         * tests/unictype/test-bidi_of.c: New file.
50702         * tests/unictype/test-bidi_test.c: New file.
50703         * tests/unictype/test-block_list.c: New file.
50704         * tests/unictype/test-block_of.c: New file.
50705         * tests/unictype/test-block_test.c: New file.
50706         * tests/unictype/test-categ_and.c: New file.
50707         * tests/unictype/test-categ_and_not.c: New file.
50708         * tests/unictype/test-categ_byname.c: New file.
50709         * tests/unictype/test-categ_name.c: New file.
50710         * tests/unictype/test-categ_none.c: New file.
50711         * tests/unictype/test-categ_of.c: New file.
50712         * tests/unictype/test-categ_or.c: New file.
50713         * tests/unictype/test-categ_test_withtable.c: New file.
50714         * tests/unictype/test-combining.c: New file.
50715         * tests/unictype/test-decdigit.c: New file.
50716         * tests/unictype/test-digit.c: New file.
50717         * tests/unictype/test-mirror.c: New file.
50718         * tests/unictype/test-numeric.c: New file.
50719         * tests/unictype/test-pr_byname.c: New file.
50720         * tests/unictype/test-pr_test.c: New file.
50721         * tests/unictype/test-predicate-part1.h: New file.
50722         * tests/unictype/test-predicate-part2.h: New file.
50723         * tests/unictype/test-scripts.c: New file.
50724         * tests/unictype/test-sy_c_ident.c: New file.
50725         * tests/unictype/test-sy_java_ident.c: New file.
50726
50727         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50728         for Unicode 5.0.0.
50729         * tests/unictype/test-categ_Cc.c: Likewise.
50730         * tests/unictype/test-categ_Cf.c: Likewise.
50731         * tests/unictype/test-categ_Cn.c: Likewise.
50732         * tests/unictype/test-categ_Co.c: Likewise.
50733         * tests/unictype/test-categ_Cs.c: Likewise.
50734         * tests/unictype/test-categ_L.c: Likewise.
50735         * tests/unictype/test-categ_Ll.c: Likewise.
50736         * tests/unictype/test-categ_Lm.c: Likewise.
50737         * tests/unictype/test-categ_Lo.c: Likewise.
50738         * tests/unictype/test-categ_Lt.c: Likewise.
50739         * tests/unictype/test-categ_Lu.c: Likewise.
50740         * tests/unictype/test-categ_M.c: Likewise.
50741         * tests/unictype/test-categ_Mc.c: Likewise.
50742         * tests/unictype/test-categ_Me.c: Likewise.
50743         * tests/unictype/test-categ_Mn.c: Likewise.
50744         * tests/unictype/test-categ_N.c: Likewise.
50745         * tests/unictype/test-categ_Nd.c: Likewise.
50746         * tests/unictype/test-categ_Nl.c: Likewise.
50747         * tests/unictype/test-categ_No.c: Likewise.
50748         * tests/unictype/test-categ_P.c: Likewise.
50749         * tests/unictype/test-categ_Pc.c: Likewise.
50750         * tests/unictype/test-categ_Pd.c: Likewise.
50751         * tests/unictype/test-categ_Pe.c: Likewise.
50752         * tests/unictype/test-categ_Pf.c: Likewise.
50753         * tests/unictype/test-categ_Pi.c: Likewise.
50754         * tests/unictype/test-categ_Po.c: Likewise.
50755         * tests/unictype/test-categ_Ps.c: Likewise.
50756         * tests/unictype/test-categ_S.c: Likewise.
50757         * tests/unictype/test-categ_Sc.c: Likewise.
50758         * tests/unictype/test-categ_Sk.c: Likewise.
50759         * tests/unictype/test-categ_Sm.c: Likewise.
50760         * tests/unictype/test-categ_So.c: Likewise.
50761         * tests/unictype/test-categ_Z.c: Likewise.
50762         * tests/unictype/test-categ_Zl.c: Likewise.
50763         * tests/unictype/test-categ_Zp.c: Likewise.
50764         * tests/unictype/test-categ_Zs.c: Likewise.
50765         * tests/unictype/test-ctype_alnum.c: Likewise.
50766         * tests/unictype/test-ctype_alpha.c: Likewise.
50767         * tests/unictype/test-ctype_blank.c: Likewise.
50768         * tests/unictype/test-ctype_cntrl.c: Likewise.
50769         * tests/unictype/test-ctype_digit.c: Likewise.
50770         * tests/unictype/test-ctype_graph.c: Likewise.
50771         * tests/unictype/test-ctype_lower.c: Likewise.
50772         * tests/unictype/test-ctype_print.c: Likewise.
50773         * tests/unictype/test-ctype_punct.c: Likewise.
50774         * tests/unictype/test-ctype_space.c: Likewise.
50775         * tests/unictype/test-ctype_upper.c: Likewise.
50776         * tests/unictype/test-ctype_xdigit.c: Likewise.
50777         * tests/unictype/test-decdigit.h: Likewise.
50778         * tests/unictype/test-digit.h: Likewise.
50779         * tests/unictype/test-numeric.h: Likewise.
50780         * tests/unictype/test-pr_alphabetic.c: Likewise.
50781         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50782         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50783         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50784         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50785         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50786         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50787         * tests/unictype/test-pr_bidi_control.c: Likewise.
50788         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50789         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50790         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50791         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50792         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50793         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50794         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50795         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50796         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50797         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50798         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50799         * tests/unictype/test-pr_combining.c: Likewise.
50800         * tests/unictype/test-pr_composite.c: Likewise.
50801         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50802         * tests/unictype/test-pr_dash.c: Likewise.
50803         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50804         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50805         * tests/unictype/test-pr_deprecated.c: Likewise.
50806         * tests/unictype/test-pr_diacritic.c: Likewise.
50807         * tests/unictype/test-pr_extender.c: Likewise.
50808         * tests/unictype/test-pr_format_control.c: Likewise.
50809         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50810         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50811         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50812         * tests/unictype/test-pr_hex_digit.c: Likewise.
50813         * tests/unictype/test-pr_hyphen.c: Likewise.
50814         * tests/unictype/test-pr_id_continue.c: Likewise.
50815         * tests/unictype/test-pr_id_start.c: Likewise.
50816         * tests/unictype/test-pr_ideographic.c: Likewise.
50817         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50818         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50819         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50820         * tests/unictype/test-pr_iso_control.c: Likewise.
50821         * tests/unictype/test-pr_join_control.c: Likewise.
50822         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50823         * tests/unictype/test-pr_line_separator.c: Likewise.
50824         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50825         * tests/unictype/test-pr_lowercase.c: Likewise.
50826         * tests/unictype/test-pr_math.c: Likewise.
50827         * tests/unictype/test-pr_non_break.c: Likewise.
50828         * tests/unictype/test-pr_not_a_character.c: Likewise.
50829         * tests/unictype/test-pr_numeric.c: Likewise.
50830         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50831         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50832         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50833         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50834         * tests/unictype/test-pr_other_id_start.c: Likewise.
50835         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50836         * tests/unictype/test-pr_other_math.c: Likewise.
50837         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50838         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50839         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50840         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50841         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50842         * tests/unictype/test-pr_private_use.c: Likewise.
50843         * tests/unictype/test-pr_punctuation.c: Likewise.
50844         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50845         * tests/unictype/test-pr_radical.c: Likewise.
50846         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50847         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50848         * tests/unictype/test-pr_space.c: Likewise.
50849         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50850         * tests/unictype/test-pr_titlecase.c: Likewise.
50851         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50852         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50853         * tests/unictype/test-pr_uppercase.c: Likewise.
50854         * tests/unictype/test-pr_variation_selector.c: Likewise.
50855         * tests/unictype/test-pr_white_space.c: Likewise.
50856         * tests/unictype/test-pr_xid_continue.c: Likewise.
50857         * tests/unictype/test-pr_xid_start.c: Likewise.
50858         * tests/unictype/test-pr_zero_width.c: Likewise.
50859         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50860         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50861
50862 2007-11-12  Bruno Haible  <bruno@clisp.org>
50863
50864         Unicode character classification functions.
50865         * lib/unictype.h: New file.
50866         * modules/unictype/base: New file.
50867         * modules/unictype/category-L: New file.
50868         * modules/unictype/category-Lu: New file.
50869         * modules/unictype/category-Ll: New file.
50870         * modules/unictype/category-Lt: New file.
50871         * modules/unictype/category-Lm: New file.
50872         * modules/unictype/category-Lo: New file.
50873         * modules/unictype/category-M: New file.
50874         * modules/unictype/category-Mn: New file.
50875         * modules/unictype/category-Mc: New file.
50876         * modules/unictype/category-Me: New file.
50877         * modules/unictype/category-N: New file.
50878         * modules/unictype/category-Nd: New file.
50879         * modules/unictype/category-Nl: New file.
50880         * modules/unictype/category-No: New file.
50881         * modules/unictype/category-P: New file.
50882         * modules/unictype/category-Pc: New file.
50883         * modules/unictype/category-Pd: New file.
50884         * modules/unictype/category-Ps: New file.
50885         * modules/unictype/category-Pe: New file.
50886         * modules/unictype/category-Pi: New file.
50887         * modules/unictype/category-Pf: New file.
50888         * modules/unictype/category-Po: New file.
50889         * modules/unictype/category-S: New file.
50890         * modules/unictype/category-Sm: New file.
50891         * modules/unictype/category-Sc: New file.
50892         * modules/unictype/category-Sk: New file.
50893         * modules/unictype/category-So: New file.
50894         * modules/unictype/category-Z: New file.
50895         * modules/unictype/category-Zs: New file.
50896         * modules/unictype/category-Zl: New file.
50897         * modules/unictype/category-Zp: New file.
50898         * modules/unictype/category-C: New file.
50899         * modules/unictype/category-Cc: New file.
50900         * modules/unictype/category-Cf: New file.
50901         * modules/unictype/category-Cs: New file.
50902         * modules/unictype/category-Co: New file.
50903         * modules/unictype/category-Cn: New file.
50904         * modules/unictype/category-or: New file.
50905         * modules/unictype/category-of: New file.
50906         * modules/unictype/category-test: New file.
50907         * modules/unictype/category-test-withtable: New file.
50908         * modules/unictype/category-byname: New file.
50909         * modules/unictype/category-none: New file.
50910         * modules/unictype/category-and: New file.
50911         * modules/unictype/category-and-not: New file.
50912         * modules/unictype/category-name: New file.
50913         * modules/unictype/combining-class: New file.
50914         * modules/unictype/category-all: New file.
50915         * modules/unictype/bidicategory-all: New file.
50916         * modules/unictype/bidicategory-byname: New file.
50917         * modules/unictype/bidicategory-name: New file.
50918         * modules/unictype/bidicategory-of: New file.
50919         * modules/unictype/bidicategory-test: New file.
50920         * modules/unictype/decimal-digit: New file.
50921         * modules/unictype/digit: New file.
50922         * modules/unictype/numeric: New file.
50923         * modules/unictype/mirror: New file.
50924         * modules/unictype/property-white-space: New file.
50925         * modules/unictype/property-alphabetic: New file.
50926         * modules/unictype/property-other-alphabetic: New file.
50927         * modules/unictype/property-not-a-character: New file.
50928         * modules/unictype/property-default-ignorable-code-point: New file.
50929         * modules/unictype/property-other-default-ignorable-code-point: New
50930         file.
50931         * modules/unictype/property-deprecated: New file.
50932         * modules/unictype/property-logical-order-exception: New file.
50933         * modules/unictype/property-variation-selector: New file.
50934         * modules/unictype/property-private-use: New file.
50935         * modules/unictype/property-unassigned-code-value: New file.
50936         * modules/unictype/property-uppercase: New file.
50937         * modules/unictype/property-other-uppercase: New file.
50938         * modules/unictype/property-lowercase: New file.
50939         * modules/unictype/property-other-lowercase: New file.
50940         * modules/unictype/property-titlecase: New file.
50941         * modules/unictype/property-soft-dotted: New file.
50942         * modules/unictype/property-id-start: New file.
50943         * modules/unictype/property-other-id-start: New file.
50944         * modules/unictype/property-id-continue: New file.
50945         * modules/unictype/property-other-id-continue: New file.
50946         * modules/unictype/property-xid-start: New file.
50947         * modules/unictype/property-xid-continue: New file.
50948         * modules/unictype/property-pattern-white-space: New file.
50949         * modules/unictype/property-pattern-syntax: New file.
50950         * modules/unictype/property-join-control: New file.
50951         * modules/unictype/property-grapheme-base: New file.
50952         * modules/unictype/property-grapheme-extend: New file.
50953         * modules/unictype/property-other-grapheme-extend: New file.
50954         * modules/unictype/property-grapheme-link: New file.
50955         * modules/unictype/property-bidi-control: New file.
50956         * modules/unictype/property-bidi-left-to-right: New file.
50957         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50958         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50959         * modules/unictype/property-bidi-european-digit: New file.
50960         * modules/unictype/property-bidi-eur-num-separator: New file.
50961         * modules/unictype/property-bidi-eur-num-terminator: New file.
50962         * modules/unictype/property-bidi-arabic-digit: New file.
50963         * modules/unictype/property-bidi-common-separator: New file.
50964         * modules/unictype/property-bidi-block-separator: New file.
50965         * modules/unictype/property-bidi-segment-separator: New file.
50966         * modules/unictype/property-bidi-whitespace: New file.
50967         * modules/unictype/property-bidi-non-spacing-mark: New file.
50968         * modules/unictype/property-bidi-boundary-neutral: New file.
50969         * modules/unictype/property-bidi-pdf: New file.
50970         * modules/unictype/property-bidi-embedding-or-override: New file.
50971         * modules/unictype/property-bidi-other-neutral: New file.
50972         * modules/unictype/property-hex-digit: New file.
50973         * modules/unictype/property-ascii-hex-digit: New file.
50974         * modules/unictype/property-ideographic: New file.
50975         * modules/unictype/property-unified-ideograph: New file.
50976         * modules/unictype/property-radical: New file.
50977         * modules/unictype/property-ids-binary-operator: New file.
50978         * modules/unictype/property-ids-trinary-operator: New file.
50979         * modules/unictype/property-zero-width: New file.
50980         * modules/unictype/property-space: New file.
50981         * modules/unictype/property-non-break: New file.
50982         * modules/unictype/property-iso-control: New file.
50983         * modules/unictype/property-format-control: New file.
50984         * modules/unictype/property-dash: New file.
50985         * modules/unictype/property-hyphen: New file.
50986         * modules/unictype/property-punctuation: New file.
50987         * modules/unictype/property-line-separator: New file.
50988         * modules/unictype/property-paragraph-separator: New file.
50989         * modules/unictype/property-quotation-mark: New file.
50990         * modules/unictype/property-sentence-terminal: New file.
50991         * modules/unictype/property-terminal-punctuation: New file.
50992         * modules/unictype/property-currency-symbol: New file.
50993         * modules/unictype/property-math: New file.
50994         * modules/unictype/property-other-math: New file.
50995         * modules/unictype/property-paired-punctuation: New file.
50996         * modules/unictype/property-left-of-pair: New file.
50997         * modules/unictype/property-combining: New file.
50998         * modules/unictype/property-composite: New file.
50999         * modules/unictype/property-decimal-digit: New file.
51000         * modules/unictype/property-numeric: New file.
51001         * modules/unictype/property-diacritic: New file.
51002         * modules/unictype/property-extender: New file.
51003         * modules/unictype/property-ignorable-control: New file.
51004         * modules/unictype/property-test: New file.
51005         * modules/unictype/property-byname: New file.
51006         * modules/unictype/property-all: New file.
51007         * modules/unictype/scripts: New file.
51008         * modules/unictype/scripts-all: New file.
51009         * modules/unictype/block-of: New file.
51010         * modules/unictype/block-test: New file.
51011         * modules/unictype/block-list: New file.
51012         * modules/unictype/block-all: New file.
51013         * modules/unictype/syntax-c-whitespace: New file.
51014         * modules/unictype/syntax-java-whitespace: New file.
51015         * modules/unictype/syntax-c-ident: New file.
51016         * modules/unictype/syntax-java-ident: New file.
51017         * modules/unictype/ctype-alnum: New file.
51018         * modules/unictype/ctype-alpha: New file.
51019         * modules/unictype/ctype-cntrl: New file.
51020         * modules/unictype/ctype-digit: New file.
51021         * modules/unictype/ctype-graph: New file.
51022         * modules/unictype/ctype-lower: New file.
51023         * modules/unictype/ctype-print: New file.
51024         * modules/unictype/ctype-punct: New file.
51025         * modules/unictype/ctype-space: New file.
51026         * modules/unictype/ctype-upper: New file.
51027         * modules/unictype/ctype-xdigit: New file.
51028         * modules/unictype/ctype-blank: New file.
51029         * lib/unictype/bidi_byname.c: New file.
51030         * lib/unictype/bidi_name.c: New file.
51031         * lib/unictype/bidi_of.c: New file.
51032         * lib/unictype/bidi_test.c: New file.
51033         * lib/unictype/bitmap.h: New file.
51034         * lib/unictype/block_test.c: New file.
51035         * lib/unictype/blocks.c: New file.
51036         * lib/unictype/categ_C.c: New file.
51037         * lib/unictype/categ_Cc.c: New file.
51038         * lib/unictype/categ_Cf.c: New file.
51039         * lib/unictype/categ_Cn.c: New file.
51040         * lib/unictype/categ_Co.c: New file.
51041         * lib/unictype/categ_Cs.c: New file.
51042         * lib/unictype/categ_L.c: New file.
51043         * lib/unictype/categ_Ll.c: New file.
51044         * lib/unictype/categ_Lm.c: New file.
51045         * lib/unictype/categ_Lo.c: New file.
51046         * lib/unictype/categ_Lt.c: New file.
51047         * lib/unictype/categ_Lu.c: New file.
51048         * lib/unictype/categ_M.c: New file.
51049         * lib/unictype/categ_Mc.c: New file.
51050         * lib/unictype/categ_Me.c: New file.
51051         * lib/unictype/categ_Mn.c: New file.
51052         * lib/unictype/categ_N.c: New file.
51053         * lib/unictype/categ_Nd.c: New file.
51054         * lib/unictype/categ_Nl.c: New file.
51055         * lib/unictype/categ_No.c: New file.
51056         * lib/unictype/categ_P.c: New file.
51057         * lib/unictype/categ_Pc.c: New file.
51058         * lib/unictype/categ_Pd.c: New file.
51059         * lib/unictype/categ_Pe.c: New file.
51060         * lib/unictype/categ_Pf.c: New file.
51061         * lib/unictype/categ_Pi.c: New file.
51062         * lib/unictype/categ_Po.c: New file.
51063         * lib/unictype/categ_Ps.c: New file.
51064         * lib/unictype/categ_S.c: New file.
51065         * lib/unictype/categ_Sc.c: New file.
51066         * lib/unictype/categ_Sk.c: New file.
51067         * lib/unictype/categ_Sm.c: New file.
51068         * lib/unictype/categ_So.c: New file.
51069         * lib/unictype/categ_Z.c: New file.
51070         * lib/unictype/categ_Zl.c: New file.
51071         * lib/unictype/categ_Zp.c: New file.
51072         * lib/unictype/categ_Zs.c: New file.
51073         * lib/unictype/categ_and.c: New file.
51074         * lib/unictype/categ_and_not.c: New file.
51075         * lib/unictype/categ_byname.c: New file.
51076         * lib/unictype/categ_name.c: New file.
51077         * lib/unictype/categ_none.c: New file.
51078         * lib/unictype/categ_of.c: New file.
51079         * lib/unictype/categ_or.c: New file.
51080         * lib/unictype/categ_test.c: New file.
51081         * lib/unictype/combining.c: New file.
51082         * lib/unictype/ctype_alnum.c: New file.
51083         * lib/unictype/ctype_alpha.c: New file.
51084         * lib/unictype/ctype_blank.c: New file.
51085         * lib/unictype/ctype_cntrl.c: New file.
51086         * lib/unictype/ctype_digit.c: New file.
51087         * lib/unictype/ctype_graph.c: New file.
51088         * lib/unictype/ctype_lower.c: New file.
51089         * lib/unictype/ctype_print.c: New file.
51090         * lib/unictype/ctype_punct.c: New file.
51091         * lib/unictype/ctype_space.c: New file.
51092         * lib/unictype/ctype_upper.c: New file.
51093         * lib/unictype/ctype_xdigit.c: New file.
51094         * lib/unictype/decdigit.c: New file.
51095         * lib/unictype/digit.c: New file.
51096         * lib/unictype/identsyntaxmap.h: New file.
51097         * lib/unictype/mirror.c: New file.
51098         * lib/unictype/numeric.c: New file.
51099         * lib/unictype/pr_alphabetic.c: New file.
51100         * lib/unictype/pr_ascii_hex_digit.c: New file.
51101         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51102         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51103         * lib/unictype/pr_bidi_block_separator.c: New file.
51104         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51105         * lib/unictype/pr_bidi_common_separator.c: New file.
51106         * lib/unictype/pr_bidi_control.c: New file.
51107         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51108         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51109         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51110         * lib/unictype/pr_bidi_european_digit.c: New file.
51111         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51112         * lib/unictype/pr_bidi_left_to_right.c: New file.
51113         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51114         * lib/unictype/pr_bidi_other_neutral.c: New file.
51115         * lib/unictype/pr_bidi_pdf.c: New file.
51116         * lib/unictype/pr_bidi_segment_separator.c: New file.
51117         * lib/unictype/pr_bidi_whitespace.c: New file.
51118         * lib/unictype/pr_byname.c: New file.
51119         * lib/unictype/pr_byname.gperf: New file.
51120         * lib/unictype/pr_combining.c: New file.
51121         * lib/unictype/pr_composite.c: New file.
51122         * lib/unictype/pr_currency_symbol.c: New file.
51123         * lib/unictype/pr_dash.c: New file.
51124         * lib/unictype/pr_decimal_digit.c: New file.
51125         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51126         * lib/unictype/pr_deprecated.c: New file.
51127         * lib/unictype/pr_diacritic.c: New file.
51128         * lib/unictype/pr_extender.c: New file.
51129         * lib/unictype/pr_format_control.c: New file.
51130         * lib/unictype/pr_grapheme_base.c: New file.
51131         * lib/unictype/pr_grapheme_extend.c: New file.
51132         * lib/unictype/pr_grapheme_link.c: New file.
51133         * lib/unictype/pr_hex_digit.c: New file.
51134         * lib/unictype/pr_hyphen.c: New file.
51135         * lib/unictype/pr_id_continue.c: New file.
51136         * lib/unictype/pr_id_start.c: New file.
51137         * lib/unictype/pr_ideographic.c: New file.
51138         * lib/unictype/pr_ids_binary_operator.c: New file.
51139         * lib/unictype/pr_ids_trinary_operator.c: New file.
51140         * lib/unictype/pr_ignorable_control.c: New file.
51141         * lib/unictype/pr_iso_control.c: New file.
51142         * lib/unictype/pr_join_control.c: New file.
51143         * lib/unictype/pr_left_of_pair.c: New file.
51144         * lib/unictype/pr_line_separator.c: New file.
51145         * lib/unictype/pr_logical_order_exception.c: New file.
51146         * lib/unictype/pr_lowercase.c: New file.
51147         * lib/unictype/pr_math.c: New file.
51148         * lib/unictype/pr_non_break.c: New file.
51149         * lib/unictype/pr_not_a_character.c: New file.
51150         * lib/unictype/pr_numeric.c: New file.
51151         * lib/unictype/pr_other_alphabetic.c: New file.
51152         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51153         * lib/unictype/pr_other_grapheme_extend.c: New file.
51154         * lib/unictype/pr_other_id_continue.c: New file.
51155         * lib/unictype/pr_other_id_start.c: New file.
51156         * lib/unictype/pr_other_lowercase.c: New file.
51157         * lib/unictype/pr_other_math.c: New file.
51158         * lib/unictype/pr_other_uppercase.c: New file.
51159         * lib/unictype/pr_paired_punctuation.c: New file.
51160         * lib/unictype/pr_paragraph_separator.c: New file.
51161         * lib/unictype/pr_pattern_syntax.c: New file.
51162         * lib/unictype/pr_pattern_white_space.c: New file.
51163         * lib/unictype/pr_private_use.c: New file.
51164         * lib/unictype/pr_punctuation.c: New file.
51165         * lib/unictype/pr_quotation_mark.c: New file.
51166         * lib/unictype/pr_radical.c: New file.
51167         * lib/unictype/pr_sentence_terminal.c: New file.
51168         * lib/unictype/pr_soft_dotted.c: New file.
51169         * lib/unictype/pr_space.c: New file.
51170         * lib/unictype/pr_terminal_punctuation.c: New file.
51171         * lib/unictype/pr_test.c: New file.
51172         * lib/unictype/pr_titlecase.c: New file.
51173         * lib/unictype/pr_unassigned_code_value.c: New file.
51174         * lib/unictype/pr_unified_ideograph.c: New file.
51175         * lib/unictype/pr_uppercase.c: New file.
51176         * lib/unictype/pr_variation_selector.c: New file.
51177         * lib/unictype/pr_white_space.c: New file.
51178         * lib/unictype/pr_xid_continue.c: New file.
51179         * lib/unictype/pr_xid_start.c: New file.
51180         * lib/unictype/pr_zero_width.c: New file.
51181         * lib/unictype/scripts.c: New file.
51182         * lib/unictype/sy_c_ident.c: New file.
51183         * lib/unictype/sy_c_whitespace.c: New file.
51184         * lib/unictype/sy_java_ident.c: New file.
51185         * lib/unictype/sy_java_whitespace.c: New file.
51186
51187         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51188         Unicode 5.0.0.
51189         * lib/unictype/blocks.h: Likewise.
51190         * lib/unictype/categ_C.h: Likewise.
51191         * lib/unictype/categ_Cc.h: Likewise.
51192         * lib/unictype/categ_Cf.h: Likewise.
51193         * lib/unictype/categ_Cn.h: Likewise.
51194         * lib/unictype/categ_Co.h: Likewise.
51195         * lib/unictype/categ_Cs.h: Likewise.
51196         * lib/unictype/categ_L.h: Likewise.
51197         * lib/unictype/categ_Ll.h: Likewise.
51198         * lib/unictype/categ_Lm.h: Likewise.
51199         * lib/unictype/categ_Lo.h: Likewise.
51200         * lib/unictype/categ_Lt.h: Likewise.
51201         * lib/unictype/categ_Lu.h: Likewise.
51202         * lib/unictype/categ_M.h: Likewise.
51203         * lib/unictype/categ_Mc.h: Likewise.
51204         * lib/unictype/categ_Me.h: Likewise.
51205         * lib/unictype/categ_Mn.h: Likewise.
51206         * lib/unictype/categ_N.h: Likewise.
51207         * lib/unictype/categ_Nd.h: Likewise.
51208         * lib/unictype/categ_Nl.h: Likewise.
51209         * lib/unictype/categ_No.h: Likewise.
51210         * lib/unictype/categ_P.h: Likewise.
51211         * lib/unictype/categ_Pc.h: Likewise.
51212         * lib/unictype/categ_Pd.h: Likewise.
51213         * lib/unictype/categ_Pe.h: Likewise.
51214         * lib/unictype/categ_Pf.h: Likewise.
51215         * lib/unictype/categ_Pi.h: Likewise.
51216         * lib/unictype/categ_Po.h: Likewise.
51217         * lib/unictype/categ_Ps.h: Likewise.
51218         * lib/unictype/categ_S.h: Likewise.
51219         * lib/unictype/categ_Sc.h: Likewise.
51220         * lib/unictype/categ_Sk.h: Likewise.
51221         * lib/unictype/categ_Sm.h: Likewise.
51222         * lib/unictype/categ_So.h: Likewise.
51223         * lib/unictype/categ_Z.h: Likewise.
51224         * lib/unictype/categ_Zl.h: Likewise.
51225         * lib/unictype/categ_Zp.h: Likewise.
51226         * lib/unictype/categ_Zs.h: Likewise.
51227         * lib/unictype/categ_of.h: Likewise.
51228         * lib/unictype/combining.h: Likewise.
51229         * lib/unictype/ctype_alnum.h: Likewise.
51230         * lib/unictype/ctype_alpha.h: Likewise.
51231         * lib/unictype/ctype_blank.h: Likewise.
51232         * lib/unictype/ctype_cntrl.h: Likewise.
51233         * lib/unictype/ctype_digit.h: Likewise.
51234         * lib/unictype/ctype_graph.h: Likewise.
51235         * lib/unictype/ctype_lower.h: Likewise.
51236         * lib/unictype/ctype_print.h: Likewise.
51237         * lib/unictype/ctype_punct.h: Likewise.
51238         * lib/unictype/ctype_space.h: Likewise.
51239         * lib/unictype/ctype_upper.h: Likewise.
51240         * lib/unictype/ctype_xdigit.h: Likewise.
51241         * lib/unictype/decdigit.h: Likewise.
51242         * lib/unictype/digit.h: Likewise.
51243         * lib/unictype/mirror.h: Likewise.
51244         * lib/unictype/numeric.h: Likewise.
51245         * lib/unictype/pr_alphabetic.h: Likewise.
51246         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51247         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51248         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51249         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51250         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51251         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51252         * lib/unictype/pr_bidi_control.h: Likewise.
51253         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51254         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51255         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51256         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51257         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51258         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51259         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51260         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51261         * lib/unictype/pr_bidi_pdf.h: Likewise.
51262         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51263         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51264         * lib/unictype/pr_combining.h: Likewise.
51265         * lib/unictype/pr_composite.h: Likewise.
51266         * lib/unictype/pr_currency_symbol.h: Likewise.
51267         * lib/unictype/pr_dash.h: Likewise.
51268         * lib/unictype/pr_decimal_digit.h: Likewise.
51269         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51270         * lib/unictype/pr_deprecated.h: Likewise.
51271         * lib/unictype/pr_diacritic.h: Likewise.
51272         * lib/unictype/pr_extender.h: Likewise.
51273         * lib/unictype/pr_format_control.h: Likewise.
51274         * lib/unictype/pr_grapheme_base.h: Likewise.
51275         * lib/unictype/pr_grapheme_extend.h: Likewise.
51276         * lib/unictype/pr_grapheme_link.h: Likewise.
51277         * lib/unictype/pr_hex_digit.h: Likewise.
51278         * lib/unictype/pr_hyphen.h: Likewise.
51279         * lib/unictype/pr_id_continue.h: Likewise.
51280         * lib/unictype/pr_id_start.h: Likewise.
51281         * lib/unictype/pr_ideographic.h: Likewise.
51282         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51283         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51284         * lib/unictype/pr_ignorable_control.h: Likewise.
51285         * lib/unictype/pr_iso_control.h: Likewise.
51286         * lib/unictype/pr_join_control.h: Likewise.
51287         * lib/unictype/pr_left_of_pair.h: Likewise.
51288         * lib/unictype/pr_line_separator.h: Likewise.
51289         * lib/unictype/pr_logical_order_exception.h: Likewise.
51290         * lib/unictype/pr_lowercase.h: Likewise.
51291         * lib/unictype/pr_math.h: Likewise.
51292         * lib/unictype/pr_non_break.h: Likewise.
51293         * lib/unictype/pr_not_a_character.h: Likewise.
51294         * lib/unictype/pr_numeric.h: Likewise.
51295         * lib/unictype/pr_other_alphabetic.h: Likewise.
51296         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51297         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51298         * lib/unictype/pr_other_id_continue.h: Likewise.
51299         * lib/unictype/pr_other_id_start.h: Likewise.
51300         * lib/unictype/pr_other_lowercase.h: Likewise.
51301         * lib/unictype/pr_other_math.h: Likewise.
51302         * lib/unictype/pr_other_uppercase.h: Likewise.
51303         * lib/unictype/pr_paired_punctuation.h: Likewise.
51304         * lib/unictype/pr_paragraph_separator.h: Likewise.
51305         * lib/unictype/pr_pattern_syntax.h: Likewise.
51306         * lib/unictype/pr_pattern_white_space.h: Likewise.
51307         * lib/unictype/pr_private_use.h: Likewise.
51308         * lib/unictype/pr_punctuation.h: Likewise.
51309         * lib/unictype/pr_quotation_mark.h: Likewise.
51310         * lib/unictype/pr_radical.h: Likewise.
51311         * lib/unictype/pr_sentence_terminal.h: Likewise.
51312         * lib/unictype/pr_soft_dotted.h: Likewise.
51313         * lib/unictype/pr_space.h: Likewise.
51314         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51315         * lib/unictype/pr_titlecase.h: Likewise.
51316         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51317         * lib/unictype/pr_unified_ideograph.h: Likewise.
51318         * lib/unictype/pr_uppercase.h: Likewise.
51319         * lib/unictype/pr_variation_selector.h: Likewise.
51320         * lib/unictype/pr_white_space.h: Likewise.
51321         * lib/unictype/pr_xid_continue.h: Likewise.
51322         * lib/unictype/pr_xid_start.h: Likewise.
51323         * lib/unictype/pr_zero_width.h: Likewise.
51324         * lib/unictype/scripts.h: Likewise.
51325         * lib/unictype/scripts_byname.gperf: Likewise.
51326         * lib/unictype/sy_c_ident.h: Likewise.
51327         * lib/unictype/sy_c_whitespace.h: Likewise.
51328         * lib/unictype/sy_java_ident.h: Likewise.
51329         * lib/unictype/sy_java_whitespace.h: Likewise.
51330
51331         * lib/unictype/Makefile: New file.
51332         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51333         glibc.
51334         * lib/unictype/3level.h: New file, copied from glibc.
51335         * lib/unictype/3levelbit.h: New file.
51336
51337 2007-11-11  Bruno Haible  <bruno@clisp.org>
51338
51339         * modules/gperf: New file.
51340         * modules/iconv_open (Depends-on): Add it.
51341         (Makefile.am): Remove the GPERF definition.
51342
51343 2007-11-11  Bruno Haible  <bruno@clisp.org>
51344
51345         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51346         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51347
51348 2007-11-11  Bruno Haible  <bruno@clisp.org>
51349
51350         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51351         (usage): Remove function.
51352
51353 2007-11-11  Bruno Haible  <bruno@clisp.org>
51354
51355         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51356         gl_FUNC_CEILF_LIBS.
51357         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51358         gl_FUNC_CEIL_LIBS.
51359         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51360         gl_FUNC_CEILL_LIBS.
51361         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51362         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51363         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51364
51365 2007-11-11  Bruno Haible  <bruno@clisp.org>
51366
51367         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51368         roundf were declared but do not exist on functions.
51369         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51370         roundl were declared but do not exist on functions.
51371         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51372         HAVE_FLOORL_AND_CEILL, respectively.
51373         Needed for Sun C on Solaris 10.
51374
51375 2007-11-11  Bruno Haible  <bruno@clisp.org>
51376
51377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51378         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51379         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51380         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51381         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51382         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51383         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51384         HAVE_DECL_ROUNDF.
51385         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51386         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51388         of HAVE_DECL_ROUND*.
51389         * modules/math (Makefile.am): Update.
51390
51391 2007-11-10  Bruno Haible  <bruno@clisp.org>
51392
51393         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51394         ptrdiff_t as m4/intl.m4.
51395
51396 2007-11-10  Jim Meyering  <meyering@redhat.com>
51397
51398         Avoid link failure for the argmatch test.
51399         * tests/test-argmatch.c (usage): Define function to avoid a link
51400         failure: argmatch_die requires a usage function.
51401
51402 2007-11-09  Bruno Haible  <bruno@clisp.org>
51403
51404         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51405         * doc/functions/vsnprintf.texi: Likewise.
51406         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51407         with a size argument < 2.
51408
51409 2007-11-09  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51412         buffer. Fixes an inefficiency introduced on 2007-11-03.
51413
51414 2007-11-09  Bruno Haible  <bruno@clisp.org>
51415
51416         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51417         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51418
51419 2007-11-08  Jim Meyering  <meyering@redhat.com>
51420
51421         Change cache variable name prefix "jm_" to "gl_" everywhere.
51422         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51423         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51424         * m4/uptime.m4: s/gl_/jm_/
51425
51426 2007-11-07  Bruno Haible  <bruno@clisp.org>
51427
51428         Update to GNU gettext 0.17.
51429         * m4/intl.m4: Update to GNU gettext 0.17.
51430         * m4/po.m4: Likewise.
51431         * modules/gettext (Files): Remove m4/ulonglong.m4.
51432         (configure.ac): Require gettext infrastructure from version 0.17.
51433
51434 2007-11-06  Bruno Haible  <bruno@clisp.org>
51435
51436         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51437         symbolic values are not defined in a public header.
51438         * lib/freadable.c (freadable) [QNX]: Likewise.
51439         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51440         * lib/freading.c (freading) [QNX]: Likewise.
51441         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51442         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51443         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51444         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51445         Reported by Alain Magloire.
51446
51447         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51448
51449 2007-11-05  Bruno Haible  <bruno@clisp.org>
51450
51451         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51452         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51453         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51454         Reported by Eric Blake.
51455
51456 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51457             Bruno Haible  <bruno@clisp.org>
51458
51459         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51460         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51461         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51462         (malloc): Undefine also before including <stdlib.h>.
51463         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51464         Needed on OSF/1 4.0.
51465
51466 2007-11-05  Jim Meyering  <meyering@redhat.com>
51467
51468         git-version-gen: sync from coreutils.
51469         * build-aux/git-version-gen: Add comments.
51470         Change the first '-' to '.' in the snapshot version string,
51471         e.g., 6.9-377-08144 -> 6.9.377-08144
51472         Remove first parameter.
51473         Don't declare a version "-dirty" merely because a time
51474         stamp has changed.
51475
51476 2007-11-04  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/lock.h: Protect all macro definitions containing an 'if'
51479         statement through a "do { ... } while (0)".
51480         * lib/tls.h: Likewise.
51481
51482 2007-11-04  Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51485
51486 2007-11-04  Bruno Haible  <bruno@clisp.org>
51487
51488         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51489         * modules/fprintf-posix (Depends-on): Add nocrash.
51490         * modules/snprintf-posix (Depends-on): Likewise.
51491         * modules/sprintf-posix (Depends-on): Likewise.
51492         * modules/vasnprintf-posix (Depends-on): Likewise.
51493         * modules/vasprintf-posix (Depends-on): Likewise.
51494         * modules/vfprintf-posix (Depends-on): Likewise.
51495         * modules/vsnprintf-posix (Depends-on): Likewise.
51496         * modules/vsprintf-posix (Depends-on): Likewise.
51497         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51498         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51499         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51500         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51501         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51502         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51503         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51504
51505 2007-11-04  Bruno Haible  <bruno@clisp.org>
51506
51507         * modules/nocrash: New file.
51508         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51509         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51510
51511 2007-11-04  Bruno Haible  <bruno@clisp.org>
51512
51513         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51514         precision handling.
51515         * tests/test-vasprintf-posix.c (test_function): Likewise.
51516         * tests/test-snprintf-posix.h (test_function): Likewise.
51517         * tests/test-sprintf-posix.h (test_function): Likewise.
51518
51519         Fix *printf behaviour for large precisions on mingw and BeOS.
51520         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51521         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51523         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51524         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51525         gl_PRINTF_PRECISION and test its result. Invoke
51526         gl_PREREQ_VASNPRINTF_PRECISION.
51527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51528         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51529         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51531         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51533         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51534         * doc/functions/fprintf.texi: Update.
51535         * doc/functions/printf.texi: Update.
51536         * doc/functions/snprintf.texi: Update.
51537         * doc/functions/sprintf.texi: Update.
51538         * doc/functions/vfprintf.texi: Update.
51539         * doc/functions/vprintf.texi: Update.
51540         * doc/functions/vsnprintf.texi: Update.
51541         * doc/functions/vsprintf.texi: Update.
51542
51543 2007-11-04  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51546
51547 2007-11-04  Bruno Haible  <bruno@clisp.org>
51548
51549         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51550         Reported by Sylvain Beucler <beuc@gnu.org>.
51551
51552 2007-11-03  Bruno Haible  <bruno@clisp.org>
51553
51554         * tests/test-fprintf-posix2.sh: New file.
51555         * tests/test-fprintf-posix2.c: New file.
51556         * modules/fprintf-posix-tests (Files): Add them.
51557         (TESTS): Add test-fprintf-posix2.sh.
51558         (configure.ac): Check for getrlimit and setrlimit.
51559         (check_PROGRAMS): Add test-fprintf-posix2.
51560
51561         * tests/test-printf-posix2.sh: New file.
51562         * tests/test-printf-posix2.c: New file.
51563         * modules/printf-posix-tests (Files): Add them.
51564         (TESTS): Add test-printf-posix2.sh.
51565         (configure.ac): Check for getrlimit and setrlimit.
51566         (check_PROGRAMS): Add test-printf-posix2.
51567
51568         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51569         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51570         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51571         (decode_double): New function, copied from decode_long_double.
51572         (scale10_round_decimal_decoded): New function, extracted from
51573         scale10_round_decimal_long_double.
51574         (scale10_round_decimal_long_double): Use it.
51575         (scale10_round_decimal_double): New function.
51576         (floorlog10): New function.
51577         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51579         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51581         gl_PRINTF_ENOMEM and test its result. Invoke
51582         gl_PREREQ_VASNPRINTF_ENOMEM.
51583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51585         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51590         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51591         * modules/snprintf-posix (Depends-on): Likewise.
51592         * modules/sprintf-posix (Depends-on): Likewise.
51593         * modules/vasnprintf-posix (Depends-on): Likewise.
51594         * modules/vasprintf-posix (Depends-on): Likewise.
51595         * modules/vfprintf-posix (Depends-on): Likewise.
51596         * modules/vsnprintf-posix (Depends-on): Likewise.
51597         * modules/vsprintf-posix (Depends-on): Likewise.
51598         * doc/functions/fprintf.texi: Update.
51599         * doc/functions/printf.texi: Update.
51600         * doc/functions/snprintf.texi: Update.
51601         * doc/functions/sprintf.texi: Update.
51602         * doc/functions/vfprintf.texi: Update.
51603         * doc/functions/vprintf.texi: Update.
51604         * doc/functions/vsnprintf.texi: Update.
51605         * doc/functions/vsprintf.texi: Update.
51606
51607 2007-11-03  Bruno Haible  <bruno@clisp.org>
51608
51609         * modules/frexp-nolibm-tests: New file.
51610
51611         * modules/frexp-nolibm: New file.
51612         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51613
51614 2007-11-03  Bruno Haible  <bruno@clisp.org>
51615
51616         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51617         value is C99 compliant.
51618         Needed for OSF/1 5.1.
51619
51620 2007-11-03  Bruno Haible  <bruno@clisp.org>
51621
51622         Fix out-of-memory handling of vasnprintf.
51623         * lib/printf-parse.c: Include <errno.h>.
51624         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51625         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51626         is already set.
51627
51628 2007-11-02  Eric Blake  <ebb9@byu.net>
51629
51630         Fix tests on cygwin.
51631         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51632
51633 2007-11-01  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51636         warning.
51637         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51638         needed for POSIX compatibility.
51639
51640 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51641
51642         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51643         for compatibility with GNU.
51644
51645 2007-11-01  Bruno Haible  <bruno@clisp.org>
51646
51647         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51648         (putenv): Renamed from rpl_putenv. Change argument type from
51649         'const char *' to 'char *'.
51650         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51651         of defining putenv in config.h, just set REPLACE_PUTENV.
51652         * modules/putenv (Depends-on): Add stdlib.
51653         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51654         (Include): Use <stdlib.h>.
51655         * lib/stdlib.in.h (putenv): New declaration.
51656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51657         REPLACE_PUTENV.
51658         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51659         REPLACE_PUTENV.
51660         Needed for MacOS X 10.5.0.
51661         Reported by Peter O'Gorman <peter@pogma.com>.
51662
51663 2007-11-01  Jim Meyering  <meyering@redhat.com>
51664
51665         Treat an empty date string exactly like "0".
51666         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51667         if the remaining date string (to be parsed) is empty, use "0".
51668         Reported by Mischa Molhoek and discussed in this thread:
51669         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51670
51671 2007-10-31  Bruno Haible  <bruno@clisp.org>
51672
51673         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51674         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51675         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51676         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51677         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51678         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51679
51680 2007-10-31  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51683         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51684         (AC_TYPE_LONG_LONG_INT): Use it.
51685         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51686         it as well.
51687         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51688         to m4/longlong.m4.
51689         * modules/stdint (Files): Remove m4/ulonglong.m4.
51690         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51691         m4/ulonglong.m4.
51692         * modules/strtoumax (Files): Likewise.
51693
51694 2007-10-30  Bruno Haible  <bruno@clisp.org>
51695
51696         * modules/xvasprintf-posix: New file.
51697         Suggested by Eric Blake.
51698
51699 2007-10-30  Bruno Haible  <bruno@clisp.org>
51700
51701         * modules/xprintf-posix-tests: New file.
51702         * tests/test-xprintf-posix.sh: New file.
51703         * tests/test-xprintf-posix.c: New file.
51704         * tests/test-xfprintf-posix.c: New file.
51705
51706         * modules/xprintf-posix: New file.
51707
51708 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51709
51710         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51711         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51712         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51713
51714 2007-10-29  Bruno Haible  <bruno@clisp.org>
51715
51716         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51717         contain the special marker '_cv_'.
51718         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51719         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51720         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51721         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51722         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51723         Reported by Ralf Wildenhues.
51724
51725 2007-10-29  Bruno Haible  <bruno@clisp.org>
51726
51727         * gnulib-tool (func_import): When --lgpl is not specified, set
51728         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51729         GPLv3.
51730         Reported by Simon Josefsson.
51731
51732 2007-10-28  Bruno Haible  <bruno@clisp.org>
51733
51734         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51735         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51736         HAVE_DECL_ISFINITE.
51737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51738         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51739         HAVE_DECL_ISFINITE.
51740
51741 2007-10-28  Bruno Haible  <bruno@clisp.org>
51742
51743         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51744         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51745
51746 2007-10-28  Bruno Haible  <bruno@clisp.org>
51747
51748         Fix link errors with Sun C 5.0 on Solaris 10.
51749         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51750         function is declared but not present in the compiler's libm.
51751         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51752         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51753         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51754         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51755         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51756         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51757         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51759         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51760         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51761         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51762         HAVE_DECL_FLOORL.
51763
51764 2007-10-28  Bruno Haible  <bruno@clisp.org>
51765
51766         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51767         gl_FUNC_FLOORL. Cache the result.
51768         (gl_FUNC_FLOORL): Use it.
51769         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51770         gl_FUNC_CEILL. Cache the result.
51771         (gl_FUNC_CEILL): Use it.
51772
51773         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51774         gl_FUNC_FLOOR. Cache the result.
51775         (gl_FUNC_FLOOR): Use it.
51776         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51777         gl_FUNC_CEIL. Cache the result.
51778         (gl_FUNC_CEIL): Use it.
51779
51780         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51781         gl_FUNC_FLOORF. Cache the result.
51782         (gl_FUNC_FLOORF): Use it.
51783         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51784         gl_FUNC_CEILF. Cache the result.
51785         (gl_FUNC_CEILF): Use it.
51786
51787 2007-10-28  Bruno Haible  <bruno@clisp.org>
51788
51789         * gnulib-tool: Allow specifying the LGPL version number through
51790         --lgpl=2 or --lgpl=3.
51791         (func_usage): Document --lgpl with argument.
51792         Handle --lgpl=... arguments.
51793         (func_import): Recognize also gl_LGPL calls with an argument. When
51794         --lgpl=2 is used and the module's license is just LGPL, report an
51795         error. Set sed_transform_lib_file according to the lgpl variable. In
51796         the generated files, use --lgpl or gl_LGPL invocations with argument,
51797         if necessary.
51798         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51799         an LGPv2+ license.
51800         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51801         gl_LGPL macro.
51802
51803 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51804             Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51807         (u16_uctomb_aux): Likewise.
51808         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51809         !HAVE_INLINE.
51810         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51811
51812 2007-10-28  Bruno Haible  <bruno@clisp.org>
51813
51814         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51815         Invoke AM_GETTEXT_OPTION if it exists.
51816         * modules/vasprintf: Likewise.
51817         * modules/verror: Likewise.
51818         * modules/xprintf: Likewise.
51819         * modules/xvasprintf: Likewise.
51820
51821 2007-10-27  Ben Pfaff  <blp@gnu.org>
51822
51823         * lib/math.in.h: Define isfinite macro and prototypes for
51824         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51825         implementations.
51826         * m4/math_h.m4: New substitutions for isfinite module.
51827         * lib/isfinite.c: New file.
51828         * m4/isfinite.m4: New file.
51829         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51830         * modules/isfinite: New file.
51831         * modules/isfinite-tests: New file.
51832         * tests/tests-isfinite.c: New file.
51833         * doc/functions/isfinite.texi: Mention isfinite module.
51834         * MODULES.html.sh: Mention new module.
51835
51836 2007-10-27  Ben Pfaff  <blp@gnu.org>
51837
51838         Ralf Wildenhues reported that Tru64 4.0D declares the round
51839         functions but does not have definitions.
51840         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51841         cannot be found in any library, set the output variable to
51842         "missing" instead of "".
51843         * m4/round.m4: Also use our substitute if we cannot find round in
51844         any library, even if it is declared.
51845         * m4/roundf.m4: Likewise for roundf.
51846         * m4/roundl.m4: Likewise for roundl.
51847         * lib/math.in.h: Undefine roundf, round, roundl before defining
51848         their replacements, to allow for hypothetical systems where these
51849         may be defined as macros but not available in libraries.
51850
51851 2007-10-27  Bruno Haible  <bruno@clisp.org>
51852
51853         * doc/gnulib.texi: Invoke @firstparagraphindent.
51854         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51855         changes in gnulib.
51856         (Source changes): New section.
51857
51858 2007-10-26  Bruno Haible  <bruno@clisp.org>
51859
51860         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51861         borrowed from autoconf.
51862
51863 2007-10-26  Bruno Haible  <bruno@clisp.org>
51864
51865         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51866         strerror returned the empty string. Needed on HP-UX 11.00.
51867
51868 2007-10-24  Micah Cowan  <micah@cowan.name>
51869
51870         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51871         * build-aux/bootstrap: Remove support for now-unnecessary option,
51872         --cvs-user, and envvars CVS_USER, CVS_RSH.
51873
51874 2007-10-24  Jim Meyering  <meyering@redhat.com>
51875
51876         Avoid diagnostics from sha1sum when there is no cached checksum.
51877         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51878         if the po.s1 file hasn't been created yet.
51879
51880         * build-aux/bootstrap: Sync from coreutils:
51881         2007-10-24  Jim Meyering  <meyering@redhat.com>
51882         Get gnulib from the git repository, not from an obsolete cvs one.
51883         * build-aux/bootstrap: Suggestion from Micah Cowan.
51884         2007-10-04  Jim Meyering  <jim@meyering.net>
51885         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51886         (update_po_files): Work also when there are no .po files in po/.
51887
51888 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         * README: Append ".git" to git and cg examples.
51891         Problem reported by Benoit Sigoure.
51892
51893 2007-10-23  Micah Cowan  <micah@cowan.name>
51894
51895         * users.txt: Add wget.
51896
51897 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51898
51899         Fix linking of some unistdio tests on FreeBSD.
51900         * modules/unistdio/u16-vsnprintf-tests
51901         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51902         * modules/unistdio/u16-vsprintf-tests
51903         (test_u16_vsnprintf1_LDADD): Likewise.
51904         * modules/unistdio/u32-vsnprintf-tests
51905         (test_u32_vsnprintf1_LDADD): Likewise.
51906         * modules/unistdio/u32-vsprintf-tests
51907         (test_u32_vsprintf1_LDADD): Likewise.
51908         * modules/unistdio/u8-vsnprintf-tests
51909         (test_u8_vsnprintf1_LDADD): Likewise.
51910         * modules/unistdio/u8-vsprintf-tests
51911         (test_u8_vsprintf1_LDADD): Likewise.
51912         * modules/unistdio/ulc-vsnprintf-tests
51913         (test_ulc_vsnprintf1_LDADD): Likewise.
51914         * modules/unistdio/ulc-vsprintf-tests
51915         (test_ulc_vsprintf1_LDADD): Likewise.
51916
51917         Fix linking of some uniconv tests on FreeBSD.
51918         * modules/uniconv/u16-conv-from-enc-tests
51919         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51920         * modules/uniconv/u16-conv-to-enc-tests
51921         (test_u16_conv_to_enc_LDADD): Likewise.
51922         * modules/uniconv/u16-strconv-from-enc-tests
51923         (test_u16_strconv_from_enc_LDADD): Likewise.
51924         * modules/uniconv/u16-strconv-to-enc-tests
51925         (test_u16_strconv_to_enc_LDADD): Likewise.
51926         * modules/uniconv/u32-conv-from-enc-tests
51927         (test_u32_conv_from_enc_LDADD): Likewise.
51928         * modules/uniconv/u32-conv-to-enc-tests
51929         (test_u32_conv_to_enc_LDADD): Likewise.
51930         * modules/uniconv/u32-strconv-from-enc-tests
51931         (test_u32_strconv_from_enc_LDADD): Likewise.
51932         * modules/uniconv/u32-strconv-to-enc-tests
51933         (test_u32_strconv_to_enc_LDADD): Likewise.
51934         * modules/uniconv/u8-conv-from-enc-tests
51935         (test_u8_conv_from_enc_LDADD): Likewise.
51936         * modules/uniconv/u8-conv-to-enc-tests
51937         (test_u8_conv_to_enc_LDADD): Likewise.
51938         * modules/uniconv/u8-strconv-from-enc-tests
51939         (test_u8_strconv_from_enc_LDADD): Likewise.
51940         * modules/uniconv/u8-strconv-to-enc-tests
51941         (test_u8_strconv_to_enc_LDADD): Likewise.
51942
51943 2007-10-22  Bruno Haible  <bruno@clisp.org>
51944
51945         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51946         size.
51947
51948 2007-10-22  Eric Blake  <ebb9@byu.net>
51949
51950         Tweak x*printf documentation.
51951         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51952         variable name and comments.
51953         Suggested by Bruno Haible.
51954
51955 2007-10-22  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/acl.c (copy_acl): Fix file name in comment.
51958
51959 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51960
51961         Fix Tru64 problem with stdbool.h.
51962         * lib/stdbool.in.h (false, true):
51963         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51964         Don't declare as an enum in this situation; it runs afoul of Tru64.
51965         Problem reported by Steven M. Schweda in
51966         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51967
51968 2007-10-22  Eric Blake  <ebb9@byu.net>
51969
51970         Also wrap vf?printf.
51971         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51972         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51973         (xvprintf, xvfprintf): New functions.
51974
51975 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51976
51977         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51978         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51979
51980         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51981         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51982
51983 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51984
51985         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51986         by Bruno Haible.
51987
51988 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51989
51990         * lib/getloadavg.c
51991         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51992         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51993
51994         * tests/test-i-ring.c: Work for C89.
51995
51996 2007-10-22  Bruno Haible  <bruno@clisp.org>
51997
51998         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51999         -1u, in preprocessor expression, so that we don't test for the bug
52000         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52002
52003 2007-10-22  Eric Blake  <ebb9@byu.net>
52004
52005         * tests/test-yesno.sh: Silence stderr during test.
52006
52007 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52008
52009         * modules/crypto/gc-camellia: New file.
52010
52011         * m4/gc-camellia.m4: New file.
52012
52013         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52014
52015         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52016
52017 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52018
52019         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52020         --help to stdout.  Reported by sms@antinode.org (Steven
52021         M. Schweda).
52022
52023 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52024
52025         * users.txt: Fix link to libksba.
52026
52027 2007-10-21  Ben Pfaff  <blp@gnu.org>
52028
52029         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52030         round.c roundf implementation that depends on floorf and ceilf to
52031         be tested unconditionally.
52032
52033 2007-10-21  Ben Pfaff  <blp@gnu.org>
52034
52035         * m4/check-libm-func.m4: Removed.
52036         * m4/check-math-lib.m4: New file.
52037         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52038         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52039         definition and lack of AC_LIBOBJ([roundf]).
52040         * m4/roundl.m4: Ditto, and similarly for roundl.
52041         * modules/round: Reference new m4 file.
52042         * modules/roundf: Ditto.
52043         * modules/roundl: Ditto.
52044         * tests/test-round2.c (main): Use ROUND instead of round.
52045         Bug report from Bruno Haible.
52046
52047 2007-10-21  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52050         context.
52051
52052 2007-10-21  Bruno Haible  <bruno@clisp.org>
52053
52054         * tests/test-wcwidth.c (main): Allow negative result for some control
52055         characters.
52056
52057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52058         Needed on OSF/1 5.1.
52059
52060 2007-10-21  Bruno Haible  <bruno@clisp.org>
52061
52062         * tests/test-floorf1.c: Include isnanf.h.
52063         (main): Use isnanf() instead of isnan().
52064         * tests/test-ceilf1.c: Include isnanf.h.
52065         (main): Use isnanf() instead of isnan().
52066         * tests/test-truncf1.c: Include isnanf.h.
52067         (main): Use isnanf() instead of isnan().
52068         * tests/test-roundf1.c: Include isnanf.h.
52069         (main): Use isnanf() instead of isnan().
52070
52071 2007-10-21  Eric Blake  <ebb9@byu.net>
52072
52073         * users.txt: Update URL for m4.
52074
52075 2007-10-21  Bruno Haible  <bruno@clisp.org>
52076
52077         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52078
52079 2007-10-21  Bruno Haible  <bruno@clisp.org>
52080
52081         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52082         Git's management files if the CVS files are not present.
52083
52084 2007-10-20  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52087         gcc-3.4.x.
52088
52089 2007-10-20  Ben Pfaff  <blp@gnu.org>
52090
52091         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52092         implementations.
52093         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52094         * lib/round.c: New file.
52095         * lib/roundf.c: New file.
52096         * lib/roundl.c: New file.
52097         * m4/round.m4: New file.
52098         * m4/roundf.m4: New file.
52099         * m4/roundl.m4: New file.
52100         * m4/check-libm-func-m4: New file.
52101         * modules/math: Replace round, roundf, roundl related @VARS@ in
52102         math.in.h.
52103         * modules/round: New file.
52104         * modules/round-tests: New file.
52105         * modules/roundf: New file.
52106         * modules/roundf-tests: New file.
52107         * modules/roundl: New file.
52108         * modules/roundl-tests: New file.
52109         * tests/test-round1.c: New file.
52110         * tests/test-round2.c: New file.
52111         * tests/test-roundf1.c: New file.
52112         * tests/test-roundf2.c: New file.
52113         * tests/test-roundl.c: New file.
52114         * doc/functions/round.texi: Mention round module.
52115         * doc/functions/roundf.texi: Mention roundf module.
52116         * doc/functions/roundl.texi: Mention roundl module.
52117         * MODULES.html.sh: Mention new modules.
52118         Thanks to Bruno Haible for suggestions.
52119
52120 2007-10-20  Jim Meyering  <meyering@redhat.com>
52121
52122         * lib/xprintf.c: Include <config.h> unconditionally.
52123
52124         Change xprintf's license to GPL.
52125         * modules/xprintf (License): s/LGPL/GPL/, since this module
52126         depends on modules (exit and exitfail) which are GPL.
52127         Suggestion from Bruno Haible.
52128
52129         xprintf fixes.
52130         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52131         Use a clearer diagnostic.
52132         Patch from Bruno Haible.
52133
52134 2007-10-20  Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52137         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52139
52140 2007-10-20  Bruno Haible  <bruno@clisp.org>
52141
52142         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52143         precision in the comparison result > x - 1 or similar.
52144         * tests/test-ceilf2.c (correct_result_p): Likewise.
52145         * tests/test-truncf2.c (correct_result_p): Likewise.
52146         * tests/test-trunc2.c (correct_result_p): Likewise.
52147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52148
52149 2007-10-20  Bruno Haible  <bruno@clisp.org>
52150
52151         * modules/ceil: New file.
52152         * m4/ceil.m4: New file.
52153         * doc/functions/ceil.texi: Mention the 'ceil' module.
52154
52155 2007-10-20  Bruno Haible  <bruno@clisp.org>
52156
52157         * modules/floor: New file.
52158         * m4/floor.m4: New file.
52159         * doc/functions/floor.texi: Mention the 'floor' module.
52160
52161 2007-10-20  Bruno Haible  <bruno@clisp.org>
52162
52163         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52164         of %a.
52165         * modules/floorf-tests (Depends-on): Likewise.
52166         * modules/truncf-tests (Depends-on): Likewise.
52167         * modules/trunc-tests (Depends-on): Likewise.
52168         Reported by Ben Pfaff.
52169
52170 2007-10-19  Jim Meyering  <meyering@redhat.com>
52171
52172         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52173         Don't bother testing specific errno values.  Just test ferror.
52174
52175         New module: xprintf
52176         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52177
52178 2007-10-19  Bruno Haible  <bruno@clisp.org>
52179
52180         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52181         syntax.
52182         * modules/javaexec (Makefile.am): Likewise.
52183         * modules/relocatable-prog (Makefile.am): Likewise.
52184         Suggested by Jim Meyering.
52185
52186 2007-10-18  Bruno Haible  <bruno@clisp.org>
52187
52188         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52189         Reported by Jim Meyering.
52190
52191 2007-10-18  Eric Blake  <ebb9@byu.net>
52192
52193         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52194
52195 2007-10-18  Bruno Haible  <bruno@clisp.org>
52196
52197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52198         the format string into writable memory. Needed in Fortify conditions.
52199
52200 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52201             Bruno Haible  <bruno@clisp.org>
52202
52203         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52204         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52205         * modules/trim (Depends-on): Add mbchar.
52206         (configure.ac): Add gl_FUNC_MBRTOWC.
52207         (Makefile.am): Augment lib_SOURCES.
52208
52209 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52210
52211         Modify glob.c to use fstatat and dirfd, to simplify it.
52212         Suggested by Eric Blake.
52213         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52214         Don't include <stdbool.h>; not used.
52215         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52216         (link_exists_p): Simplify implementation, since we can now assume
52217         dirfd and fstatat.
52218         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52219
52220 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52221
52222         * gnulib-tool (func_get_dependencies): Fix sed script to
52223         match only tests.
52224
52225 2007-10-17  Bruno Haible  <bruno@clisp.org>
52226
52227         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52228         allow locale names without encoding suffix.
52229         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52230         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52231
52232 2007-10-16  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52235         * lib/getgroups.c (getgroups): Likewise.
52236         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52237
52238 2007-10-16  Bruno Haible  <bruno@clisp.org>
52239
52240         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52241         * modules/malloc-posix (License): Likewise.
52242         * modules/realloc-posix (License): Likewise.
52243         * modules/calloc-posix (License): Likewise.
52244         * modules/intprops (License): Change from GPL to LGPL, with
52245         Paul Eggert's approval.
52246
52247 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52248
52249         Merge glibc changes into lib/glob.c.
52250
52251         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52252         2007-10-15 04:59:03 UTC.  Here are the changes:
52253
52254         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52255
52256         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52257
52258         * lib/glob.c: Add some branch prediction throughout.
52259
52260         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52261
52262         [BZ #5103]
52263         * lib/glob.c (glob): Recognize patterns starting \/.
52264
52265         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52266
52267         [BZ #3996]
52268         * lib/glob.c (attribute_hidden): Define if not defined.
52269         (glob): Unescape dirname, filename or username when needed and not
52270         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52271         is NULL.  Handle unescaped [ in pattern without closing ].
52272         Don't pass GLOB_CHECK down to recursive glob for directories.
52273         (__glob_pattern_type): New function.
52274         (__glob_pattern_p): Implement using __glob_pattern_type.
52275         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52276         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52277         Remove unreachable code.
52278
52279         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52280
52281         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52282         explain why there are no leaks.
52283
52284         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52285
52286         [BZ #3253]
52287         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52288         time, rather allocate increasingly bigger arrays of pointers, if
52289         possible with alloca, if too large with malloc.
52290
52291 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52292
52293         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52294         Problem reported by H.Merijn Brand in
52295         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52296         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52297         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52298
52299 2007-10-15  Bruno Haible  <bruno@clisp.org>
52300
52301         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52302         with explicit rpl_ prefix.
52303         * lib/fopen.c (fopen): Likewise.
52304         * lib/freopen.c (freopen): Likewise.
52305         * lib/iconv.c (iconv): Likewise.
52306         * lib/iconv_close.c (iconv_close): Likewise.
52307
52308 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52309
52310         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52311
52312 2007-10-15  Bruno Haible  <bruno@clisp.org>
52313
52314         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52315         <stddef.h> instead of <stdlib.h> since we only need NULL.
52316         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52317
52318 2007-10-15  Bruno Haible  <bruno@clisp.org>
52319
52320         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52321         Replace paragraph talking about LIBOBJS.
52322         Reported by Colin Watson <cjwatson@debian.org>.
52323
52324 2007-10-15  Bruno Haible  <bruno@clisp.org>
52325
52326         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52327         <stdlib.h> before using NULL.
52328
52329 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52330
52331         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52332         Reported by Albert Chin <china@thewrittenword.com>.
52333
52334 2007-10-14  Bruno Haible  <bruno@clisp.org>
52335
52336         * modules/iconv_open-utf-tests: New file.
52337         * tests/test-iconv-utf.c: New file.
52338
52339         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52340         * modules/iconv_open-utf: New file.
52341         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52342         (iconv, iconv_close): New declarations.
52343         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52344         be defined.
52345         (iconv_open): Add special handling of conversion between UTF-8 and
52346         UTF-{16,32}{BE,LE}.
52347         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52348         * lib/iconv_close.c: New file.
52349         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52350         gl_FUNC_ICONV_OPEN.
52351         (gl_FUNC_ICONV_OPEN): Use it.
52352         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52353         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52354         and REPLACE_ICONV_UTF.
52355         * modules/iconv_open (Depends-on): Add c-strcase.
52356         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52357         ICONV_CONST.
52358         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52359
52360 2007-10-13  Albert Chin  <china@thewrittenword.com>
52361             Bruno Haible  <bruno@clisp.org>
52362
52363         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52364         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52365
52366 2007-10-13  Bruno Haible  <bruno@clisp.org>
52367
52368         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52369         defined, use the ISO C99 inline semantics.
52370         * lib/argp.h (ARGP_EI): Likewise.
52371
52372 2007-10-13  Bruno Haible  <bruno@clisp.org>
52373
52374         Handle 'inline' change in gcc 4.3.0.
52375         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52376         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52377         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52378         argp_fmtstream_point): Disable 'extern' declaration if the function
52379         definition is going to be provided inline.
52380         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52381         semantics, not the ISO C99 inline semantics.
52382         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52383         'extern' declaration if the function definition is going to be provided
52384         inline.
52385         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52386         the GNU C inline semantics, not the ISO C99 inline semantics. With
52387         GCC 4.2, avoid a warning.
52388
52389 2007-10-13  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/freading.h (freading): Enable the use of __freading for
52392         glibc >= 2.7.
52393         * lib/freading.c (freading): Likewise.
52394
52395 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52398         "warning: C99 inline functions are not supported; using GNU89".
52399
52400 2007-10-12  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52403         of 2.
52404         * tests/test-ceilf2.c: New file.
52405         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52406
52407         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52408         * modules/ceilf-tests: Update.
52409
52410 2007-10-12  Bruno Haible  <bruno@clisp.org>
52411
52412         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52413         of 2.
52414         * tests/test-floorf2.c: New file.
52415         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52416
52417         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52418         * modules/floorf-tests: Update.
52419
52420 2007-10-12  Bruno Haible  <bruno@clisp.org>
52421
52422         * tests/test-trunc2.c: New file.
52423         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52424
52425         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52426         * modules/trunc-tests: Update.
52427
52428 2007-10-12  Bruno Haible  <bruno@clisp.org>
52429
52430         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52431         of 2.
52432         * tests/test-truncf2.c: New file.
52433         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52434
52435         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52436         * modules/truncf-tests: Update.
52437
52438 2007-10-11  Eric Blake  <ebb9@byu.net>
52439
52440         Don't claim strerror is broken on Interix.
52441         * doc/functions/strerror.texi (strerror): Known broken systems are
52442         now Solaris 8, and not Interix.
52443         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52444         Interix on cross-compile.
52445         Reported by Martin Koeppe in
52446         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52447
52448 2007-10-11  Bruno Haible  <bruno@clisp.org>
52449
52450         * modules/i-ring-tests: New file.
52451         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52452         instead of assert.
52453
52454 2007-10-11  Bruno Haible  <bruno@clisp.org>
52455
52456         * modules/filenamecat-tests: New file.
52457         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52458         * lib/filenamecat.c: Remove test code.
52459
52460 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52461
52462         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52463
52464         * lib/strerror.c: Include <string.h> always, to test interface,
52465         and to remove the need for the dummy.
52466         Include intprops.h to compute width instead of doing it ourselves
52467         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52468         (strerror): Define it to return NULL if there's no system strerror.
52469         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52470         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52471         ancient pre-strerror Unix systems well any more.  Saying "unknown
52472         system error" is enough.
52473         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52474         simpler strerror.c implementation.
52475         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52476         Simplify the tests to reflect the simpler strerror implementation.
52477         * modules/strerror (Depends-on): Add intprops.
52478
52479 2007-10-09  Eric Blake  <ebb9@byu.net>
52480
52481         Silence test-fpending.
52482         * modules/fpending-tests (Files): Add wrapper script.
52483         * tests/test-fpending.sh: New file.
52484
52485 2007-10-09  Bruno Haible  <bruno@clisp.org>
52486
52487         * MODULES.html.sh (func_module): Don't create a hyperlink for
52488         function names like 'printf_frexp'.
52489         (Misc): Add crc, memxor.
52490         (Characteristics of floating types): New section.
52491         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52492         isnanf-nolibm, signbit, trunc, truncf, truncl.
52493         (Enhancements for ISO C 99 functions): New subsection Input/output.
52494         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52495         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52496         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52497         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52498         (Enhancements for POSIX:2001 functions): Add chdir-long.
52499         (File system functions): Add areadlink, chdir-safer, read-file.
52500         Remove cycle-check.
52501         (File system as inode set): New section.
52502         (Date and time): Add gethrxtime.
52503         (Multithreading): Add openmp.
52504         (Internationalization functions): Add localename.
52505         (Unicode string functions): Add unistr/u*-mbsnlen.
52506         (Support for maintaining and releasing projects): Add git-version-gen.
52507         (Lone files): Remove directories.
52508
52509 2007-10-08  Ben Pfaff  <blp@gnu.org>
52510
52511         * lib/xmalloca.h: Fix typo in comment.
52512
52513 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52516         when avoiding problems with integer overflow.  Use a portable test
52517         instead.
52518
52519 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52520
52521         * modules/dummy (License): Change to LGPLv2+.
52522         * modules/float (License): Likewise
52523         * modules/realloc (License): Likewise
52524         * modules/stdlib (License): Likewise
52525
52526 2007-10-07  Bruno Haible  <bruno@clisp.org>
52527
52528         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52529         * floor.c (TWO_MANT_DIG): Likewise.
52530         * ceil.c (TWO_MANT_DIG): Likewise.
52531         Reported by Ben Pfaff.
52532
52533 2007-10-07  Bruno Haible  <bruno@clisp.org>
52534
52535         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52536         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52537         * lib/frexp.c (FUNC): Likewise.
52538         * lib/printf-frexp.h (printf_frexp): Likewise.
52539         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52540         * lib/printf-frexp.c (FUNC): Likewise.
52541         Suggested by Jim Meyering.
52542
52543 2007-10-07  Jim Meyering  <meyering@redhat.com>
52544
52545         Make xnanosleep's integer overflow test more robust.
52546         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52547         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52548
52549 2007-10-07  Bruno Haible  <bruno@clisp.org>
52550
52551         * NEWS: Mention the license change.
52552
52553         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52554         abbreviations in the modules files.
52555
52556         Change copyright notice from GPLv2+ to GPLv3+.
52557         * README: Change copyright notice.
52558         * MODULES.html.sh: Likewise.
52559         * build-aux/bootstrap.conf: Likewise.
52560         * build-aux/config.libpath: Likewise.
52561         * build-aux/csharpcomp.sh.in: Likewise.
52562         * build-aux/csharpexec.sh.in: Likewise.
52563         * build-aux/install-reloc: Likewise.
52564         * build-aux/javacomp.sh.in: Likewise.
52565         * build-aux/javaexec.sh.in: Likewise.
52566         * build-aux/ldd.sh.in: Likewise.
52567         * build-aux/reloc-ldflags: Likewise.
52568         * build-aux/relocatable.sh.in: Likewise.
52569         * build-aux/x-to-1.in: Likewise.
52570         * check-module: Likewise.
52571         * config/srclistvars.sh: Likewise.
52572         * gnulib-tool: Likewise.
52573         * lib/acl-internal.h: Likewise.
52574         * lib/acl.c: Likewise.
52575         * lib/acl.h: Likewise.
52576         * lib/acl_entries.c: Likewise.
52577         * lib/areadlink-with-size.c: Likewise.
52578         * lib/areadlink.c: Likewise.
52579         * lib/areadlink.h: Likewise.
52580         * lib/argmatch.c: Likewise.
52581         * lib/argmatch.h: Likewise.
52582         * lib/argp-ba.c: Likewise.
52583         * lib/argp-eexst.c: Likewise.
52584         * lib/argp-fmtstream.c: Likewise.
52585         * lib/argp-fmtstream.h: Likewise.
52586         * lib/argp-fs-xinl.c: Likewise.
52587         * lib/argp-help.c: Likewise.
52588         * lib/argp-namefrob.h: Likewise.
52589         * lib/argp-parse.c: Likewise.
52590         * lib/argp-pin.c: Likewise.
52591         * lib/argp-pv.c: Likewise.
52592         * lib/argp-pvh.c: Likewise.
52593         * lib/argp-xinl.c: Likewise.
52594         * lib/argp.h: Likewise.
52595         * lib/at-func.c: Likewise.
52596         * lib/atanl.c: Likewise.
52597         * lib/backupfile.c: Likewise.
52598         * lib/backupfile.h: Likewise.
52599         * lib/basename.c: Likewise.
52600         * lib/binary-io.h: Likewise.
52601         * lib/byteswap.in.h: Likewise.
52602         * lib/c-stack.c: Likewise.
52603         * lib/c-stack.h: Likewise.
52604         * lib/c-strcasestr.c: Likewise.
52605         * lib/c-strcasestr.h: Likewise.
52606         * lib/c-strstr.c: Likewise.
52607         * lib/c-strstr.h: Likewise.
52608         * lib/c-strtod.c: Likewise.
52609         * lib/calloc.c: Likewise.
52610         * lib/canon-host.c: Likewise.
52611         * lib/canon-host.h: Likewise.
52612         * lib/canonicalize-lgpl.c: Likewise.
52613         * lib/canonicalize.c: Likewise.
52614         * lib/canonicalize.h: Likewise.
52615         * lib/ceil.c: Likewise.
52616         * lib/ceilf.c: Likewise.
52617         * lib/ceill.c: Likewise.
52618         * lib/chdir-long.c: Likewise.
52619         * lib/chdir-long.h: Likewise.
52620         * lib/chdir-safer.c: Likewise.
52621         * lib/chdir-safer.h: Likewise.
52622         * lib/chown.c: Likewise.
52623         * lib/classpath.c: Likewise.
52624         * lib/classpath.h: Likewise.
52625         * lib/clean-temp.c: Likewise.
52626         * lib/clean-temp.h: Likewise.
52627         * lib/cloexec.c: Likewise.
52628         * lib/close-stream.c: Likewise.
52629         * lib/closein.c: Likewise.
52630         * lib/closein.h: Likewise.
52631         * lib/closeout.c: Likewise.
52632         * lib/closeout.h: Likewise.
52633         * lib/concat-filename.c: Likewise.
52634         * lib/copy-file.c: Likewise.
52635         * lib/copy-file.h: Likewise.
52636         * lib/count-one-bits.h: Likewise.
52637         * lib/crc.c: Likewise.
52638         * lib/crc.h: Likewise.
52639         * lib/creat-safer.c: Likewise.
52640         * lib/csharpcomp.c: Likewise.
52641         * lib/csharpcomp.h: Likewise.
52642         * lib/csharpexec.c: Likewise.
52643         * lib/csharpexec.h: Likewise.
52644         * lib/cycle-check.c: Likewise.
52645         * lib/cycle-check.h: Likewise.
52646         * lib/diacrit.c: Likewise.
52647         * lib/diacrit.h: Likewise.
52648         * lib/diffseq.h: Likewise.
52649         * lib/dirchownmod.c: Likewise.
52650         * lib/dirent.in.h: Likewise.
52651         * lib/dirfd.c: Likewise.
52652         * lib/dirfd.h: Likewise.
52653         * lib/dirname.c: Likewise.
52654         * lib/dirname.h: Likewise.
52655         * lib/dummy.c: Likewise.
52656         * lib/dup-safer.c: Likewise.
52657         * lib/dup2.c: Likewise.
52658         * lib/eealloc.h: Likewise.
52659         * lib/error.c: Likewise.
52660         * lib/error.h: Likewise.
52661         * lib/euidaccess.c: Likewise.
52662         * lib/exclude.c: Likewise.
52663         * lib/exclude.h: Likewise.
52664         * lib/execute.c: Likewise.
52665         * lib/execute.h: Likewise.
52666         * lib/exitfail.c: Likewise.
52667         * lib/exitfail.h: Likewise.
52668         * lib/expl.c: Likewise.
52669         * lib/fatal-signal.c: Likewise.
52670         * lib/fatal-signal.h: Likewise.
52671         * lib/fbufmode.c: Likewise.
52672         * lib/fbufmode.h: Likewise.
52673         * lib/fchdir.c: Likewise.
52674         * lib/fchmodat.c: Likewise.
52675         * lib/fchownat.c: Likewise.
52676         * lib/fcntl--.h: Likewise.
52677         * lib/fcntl-safer.h: Likewise.
52678         * lib/fcntl.in.h: Likewise.
52679         * lib/fd-safer.c: Likewise.
52680         * lib/fflush.c: Likewise.
52681         * lib/file-has-acl.c: Likewise.
52682         * lib/file-set.c: Likewise.
52683         * lib/file-type.c: Likewise.
52684         * lib/file-type.h: Likewise.
52685         * lib/fileblocks.c: Likewise.
52686         * lib/filemode.c: Likewise.
52687         * lib/filemode.h: Likewise.
52688         * lib/filename.h: Likewise.
52689         * lib/filenamecat.c: Likewise.
52690         * lib/filenamecat.h: Likewise.
52691         * lib/findprog.c: Likewise.
52692         * lib/findprog.h: Likewise.
52693         * lib/float.in.h: Likewise.
52694         * lib/floor.c: Likewise.
52695         * lib/floorf.c: Likewise.
52696         * lib/floorl.c: Likewise.
52697         * lib/fopen-safer.c: Likewise.
52698         * lib/fopen.c: Likewise.
52699         * lib/fpending.c: Likewise.
52700         * lib/fpending.h: Likewise.
52701         * lib/fprintf.c: Likewise.
52702         * lib/fprintftime.h: Likewise.
52703         * lib/fpucw.h: Likewise.
52704         * lib/fpurge.c: Likewise.
52705         * lib/fpurge.h: Likewise.
52706         * lib/freadable.c: Likewise.
52707         * lib/freadable.h: Likewise.
52708         * lib/freadahead.c: Likewise.
52709         * lib/freadahead.h: Likewise.
52710         * lib/freading.c: Likewise.
52711         * lib/freading.h: Likewise.
52712         * lib/free.c: Likewise.
52713         * lib/freopen.c: Likewise.
52714         * lib/frexp.c: Likewise.
52715         * lib/frexpl.c: Likewise.
52716         * lib/fseek.c: Likewise.
52717         * lib/fseterr.c: Likewise.
52718         * lib/fseterr.h: Likewise.
52719         * lib/fstatat.c: Likewise.
52720         * lib/fstrcmp.c: Likewise.
52721         * lib/fstrcmp.h: Likewise.
52722         * lib/fsusage.c: Likewise.
52723         * lib/fsusage.h: Likewise.
52724         * lib/ftell.c: Likewise.
52725         * lib/ftello.c: Likewise.
52726         * lib/fts-cycle.c: Likewise.
52727         * lib/fts.c: Likewise.
52728         * lib/fts_.h: Likewise.
52729         * lib/full-read.c: Likewise.
52730         * lib/full-read.h: Likewise.
52731         * lib/full-write.c: Likewise.
52732         * lib/full-write.h: Likewise.
52733         * lib/fwritable.c: Likewise.
52734         * lib/fwritable.h: Likewise.
52735         * lib/fwriteerror.c: Likewise.
52736         * lib/fwriteerror.h: Likewise.
52737         * lib/fwriting.c: Likewise.
52738         * lib/fwriting.h: Likewise.
52739         * lib/gcd.c: Likewise.
52740         * lib/gcd.h: Likewise.
52741         * lib/getcwd.c: Likewise.
52742         * lib/getdate.h: Likewise.
52743         * lib/getdate.y: Likewise.
52744         * lib/getdomainname.c: Likewise.
52745         * lib/getdomainname.h: Likewise.
52746         * lib/getgroups.c: Likewise.
52747         * lib/gethostname.c: Likewise.
52748         * lib/gethrxtime.c: Likewise.
52749         * lib/gethrxtime.h: Likewise.
52750         * lib/getloadavg.c: Likewise.
52751         * lib/getndelim2.c: Likewise.
52752         * lib/getndelim2.h: Likewise.
52753         * lib/getnline.c: Likewise.
52754         * lib/getnline.h: Likewise.
52755         * lib/getopt.c: Likewise.
52756         * lib/getopt.in.h: Likewise.
52757         * lib/getopt1.c: Likewise.
52758         * lib/getopt_int.h: Likewise.
52759         * lib/getpagesize.h: Likewise.
52760         * lib/getsubopt.c: Likewise.
52761         * lib/gettime.c: Likewise.
52762         * lib/getugroups.c: Likewise.
52763         * lib/getugroups.h: Likewise.
52764         * lib/getusershell.c: Likewise.
52765         * lib/gl_anyavltree_list1.h: Likewise.
52766         * lib/gl_anyavltree_list2.h: Likewise.
52767         * lib/gl_anyhash_list1.h: Likewise.
52768         * lib/gl_anyhash_list2.h: Likewise.
52769         * lib/gl_anylinked_list1.h: Likewise.
52770         * lib/gl_anylinked_list2.h: Likewise.
52771         * lib/gl_anyrbtree_list1.h: Likewise.
52772         * lib/gl_anyrbtree_list2.h: Likewise.
52773         * lib/gl_anytree_list1.h: Likewise.
52774         * lib/gl_anytree_list2.h: Likewise.
52775         * lib/gl_anytree_oset.h: Likewise.
52776         * lib/gl_anytreehash_list1.h: Likewise.
52777         * lib/gl_anytreehash_list2.h: Likewise.
52778         * lib/gl_array_list.c: Likewise.
52779         * lib/gl_array_list.h: Likewise.
52780         * lib/gl_array_oset.c: Likewise.
52781         * lib/gl_array_oset.h: Likewise.
52782         * lib/gl_avltree_list.c: Likewise.
52783         * lib/gl_avltree_list.h: Likewise.
52784         * lib/gl_avltree_oset.c: Likewise.
52785         * lib/gl_avltree_oset.h: Likewise.
52786         * lib/gl_avltreehash_list.c: Likewise.
52787         * lib/gl_avltreehash_list.h: Likewise.
52788         * lib/gl_carray_list.c: Likewise.
52789         * lib/gl_carray_list.h: Likewise.
52790         * lib/gl_linked_list.c: Likewise.
52791         * lib/gl_linked_list.h: Likewise.
52792         * lib/gl_linkedhash_list.c: Likewise.
52793         * lib/gl_linkedhash_list.h: Likewise.
52794         * lib/gl_list.c: Likewise.
52795         * lib/gl_list.h: Likewise.
52796         * lib/gl_oset.c: Likewise.
52797         * lib/gl_oset.h: Likewise.
52798         * lib/gl_rbtree_list.c: Likewise.
52799         * lib/gl_rbtree_list.h: Likewise.
52800         * lib/gl_rbtree_oset.c: Likewise.
52801         * lib/gl_rbtree_oset.h: Likewise.
52802         * lib/gl_rbtreehash_list.c: Likewise.
52803         * lib/gl_rbtreehash_list.h: Likewise.
52804         * lib/gl_sublist.c: Likewise.
52805         * lib/gl_sublist.h: Likewise.
52806         * lib/group-member.c: Likewise.
52807         * lib/group-member.h: Likewise.
52808         * lib/hard-locale.c: Likewise.
52809         * lib/hard-locale.h: Likewise.
52810         * lib/hash-pjw.c: Likewise.
52811         * lib/hash-pjw.h: Likewise.
52812         * lib/hash-triple.c: Likewise.
52813         * lib/hash.c: Likewise.
52814         * lib/hash.h: Likewise.
52815         * lib/human.c: Likewise.
52816         * lib/human.h: Likewise.
52817         * lib/i-ring.c: Likewise.
52818         * lib/i-ring.h: Likewise.
52819         * lib/idcache.c: Likewise.
52820         * lib/imaxabs.c: Likewise.
52821         * lib/imaxdiv.c: Likewise.
52822         * lib/inet_pton.c: Likewise.
52823         * lib/inet_pton.h: Likewise.
52824         * lib/intprops.h: Likewise.
52825         * lib/inttostr.c: Likewise.
52826         * lib/inttostr.h: Likewise.
52827         * lib/inttypes.in.h: Likewise.
52828         * lib/isapipe.c: Likewise.
52829         * lib/isdir.c: Likewise.
52830         * lib/isnan.c: Likewise.
52831         * lib/isnan.h: Likewise.
52832         * lib/isnanf.c: Likewise.
52833         * lib/isnanf.h: Likewise.
52834         * lib/isnanl-nolibm.h: Likewise.
52835         * lib/isnanl.c: Likewise.
52836         * lib/isnanl.h: Likewise.
52837         * lib/javacomp.c: Likewise.
52838         * lib/javacomp.h: Likewise.
52839         * lib/javaexec.c: Likewise.
52840         * lib/javaexec.h: Likewise.
52841         * lib/javaversion.c: Likewise.
52842         * lib/javaversion.h: Likewise.
52843         * lib/javaversion.java: Likewise.
52844         * lib/lbrkprop.h: Likewise.
52845         * lib/lchmod.h: Likewise.
52846         * lib/lchown.c: Likewise.
52847         * lib/ldexpl.c: Likewise.
52848         * lib/linebreak.c: Likewise.
52849         * lib/linebreak.h: Likewise.
52850         * lib/linebuffer.c: Likewise.
52851         * lib/linebuffer.h: Likewise.
52852         * lib/locale.in.h: Likewise.
52853         * lib/logl.c: Likewise.
52854         * lib/long-options.c: Likewise.
52855         * lib/long-options.h: Likewise.
52856         * lib/lstat.c: Likewise.
52857         * lib/lstat.h: Likewise.
52858         * lib/math.in.h: Likewise.
52859         * lib/mbchar.c: Likewise.
52860         * lib/mbchar.h: Likewise.
52861         * lib/mbfile.h: Likewise.
52862         * lib/mbiter.h: Likewise.
52863         * lib/mbscasecmp.c: Likewise.
52864         * lib/mbscasestr.c: Likewise.
52865         * lib/mbschr.c: Likewise.
52866         * lib/mbscspn.c: Likewise.
52867         * lib/mbslen.c: Likewise.
52868         * lib/mbsncasecmp.c: Likewise.
52869         * lib/mbsnlen.c: Likewise.
52870         * lib/mbspbrk.c: Likewise.
52871         * lib/mbspcasecmp.c: Likewise.
52872         * lib/mbsrchr.c: Likewise.
52873         * lib/mbssep.c: Likewise.
52874         * lib/mbsspn.c: Likewise.
52875         * lib/mbsstr.c: Likewise.
52876         * lib/mbstok_r.c: Likewise.
52877         * lib/mbswidth.c: Likewise.
52878         * lib/mbswidth.h: Likewise.
52879         * lib/mbuiter.h: Likewise.
52880         * lib/memcasecmp.c: Likewise.
52881         * lib/memcasecmp.h: Likewise.
52882         * lib/memchr.c: Likewise.
52883         * lib/memcmp.c: Likewise.
52884         * lib/memcoll.c: Likewise.
52885         * lib/memcoll.h: Likewise.
52886         * lib/memcpy.c: Likewise.
52887         * lib/memrchr.c: Likewise.
52888         * lib/mkancesdirs.c: Likewise.
52889         * lib/mkdir-p.c: Likewise.
52890         * lib/mkdir-p.h: Likewise.
52891         * lib/mkdir.c: Likewise.
52892         * lib/mkdirat.c: Likewise.
52893         * lib/mkdtemp.c: Likewise.
52894         * lib/mkstemp-safer.c: Likewise.
52895         * lib/mkstemp.c: Likewise.
52896         * lib/modechange.c: Likewise.
52897         * lib/modechange.h: Likewise.
52898         * lib/mountlist.c: Likewise.
52899         * lib/mountlist.h: Likewise.
52900         * lib/mpsort.c: Likewise.
52901         * lib/nanosleep.c: Likewise.
52902         * lib/obstack.c: Likewise.
52903         * lib/obstack.h: Likewise.
52904         * lib/open-safer.c: Likewise.
52905         * lib/open.c: Likewise.
52906         * lib/openat-die.c: Likewise.
52907         * lib/openat-priv.h: Likewise.
52908         * lib/openat-proc.c: Likewise.
52909         * lib/openat.c: Likewise.
52910         * lib/openat.h: Likewise.
52911         * lib/pagealign_alloc.c: Likewise.
52912         * lib/pagealign_alloc.h: Likewise.
52913         * lib/physmem.c: Likewise.
52914         * lib/physmem.h: Likewise.
52915         * lib/pipe-safer.c: Likewise.
52916         * lib/pipe.c: Likewise.
52917         * lib/pipe.h: Likewise.
52918         * lib/posixtm.c: Likewise.
52919         * lib/posixtm.h: Likewise.
52920         * lib/posixver.c: Likewise.
52921         * lib/printf-frexp.c: Likewise.
52922         * lib/printf-frexp.h: Likewise.
52923         * lib/printf-frexpl.c: Likewise.
52924         * lib/printf-frexpl.h: Likewise.
52925         * lib/printf.c: Likewise.
52926         * lib/progname.c: Likewise.
52927         * lib/progname.h: Likewise.
52928         * lib/progreloc.c: Likewise.
52929         * lib/putenv.c: Likewise.
52930         * lib/quote.c: Likewise.
52931         * lib/quote.h: Likewise.
52932         * lib/quotearg.c: Likewise.
52933         * lib/quotearg.h: Likewise.
52934         * lib/raise.c: Likewise.
52935         * lib/readline.c: Likewise.
52936         * lib/readline.h: Likewise.
52937         * lib/readlink.c: Likewise.
52938         * lib/readtokens.c: Likewise.
52939         * lib/readtokens.h: Likewise.
52940         * lib/readtokens0.c: Likewise.
52941         * lib/readtokens0.h: Likewise.
52942         * lib/readutmp.c: Likewise.
52943         * lib/readutmp.h: Likewise.
52944         * lib/realloc.c: Likewise.
52945         * lib/relocwrapper.c: Likewise.
52946         * lib/rename-dest-slash.c: Likewise.
52947         * lib/rename.c: Likewise.
52948         * lib/rmdir.c: Likewise.
52949         * lib/rpmatch.c: Likewise.
52950         * lib/safe-read.c: Likewise.
52951         * lib/safe-read.h: Likewise.
52952         * lib/safe-write.c: Likewise.
52953         * lib/safe-write.h: Likewise.
52954         * lib/same-inode.h: Likewise.
52955         * lib/same.c: Likewise.
52956         * lib/same.h: Likewise.
52957         * lib/save-cwd.c: Likewise.
52958         * lib/save-cwd.h: Likewise.
52959         * lib/savedir.c: Likewise.
52960         * lib/savedir.h: Likewise.
52961         * lib/savewd.c: Likewise.
52962         * lib/savewd.h: Likewise.
52963         * lib/search.in.h: Likewise.
52964         * lib/setenv.c: Likewise.
52965         * lib/setenv.h: Likewise.
52966         * lib/settime.c: Likewise.
52967         * lib/sh-quote.c: Likewise.
52968         * lib/sh-quote.h: Likewise.
52969         * lib/sig2str.c: Likewise.
52970         * lib/sig2str.h: Likewise.
52971         * lib/signal.in.h: Likewise.
52972         * lib/signbitd.c: Likewise.
52973         * lib/signbitf.c: Likewise.
52974         * lib/signbitl.c: Likewise.
52975         * lib/sigprocmask.c: Likewise.
52976         * lib/sincosl.c: Likewise.
52977         * lib/sleep.c: Likewise.
52978         * lib/sprintf.c: Likewise.
52979         * lib/sqrtl.c: Likewise.
52980         * lib/stat-time.h: Likewise.
52981         * lib/stdio--.h: Likewise.
52982         * lib/stdio-safer.h: Likewise.
52983         * lib/stdlib--.h: Likewise.
52984         * lib/stdlib-safer.h: Likewise.
52985         * lib/stdlib.in.h: Likewise.
52986         * lib/stpcpy.c: Likewise.
52987         * lib/stpncpy.c: Likewise.
52988         * lib/strchrnul.c: Likewise.
52989         * lib/strcspn.c: Likewise.
52990         * lib/strerror.c: Likewise.
52991         * lib/strftime.c: Likewise.
52992         * lib/strftime.h: Likewise.
52993         * lib/striconveh.c: Likewise.
52994         * lib/striconveh.h: Likewise.
52995         * lib/striconveha.c: Likewise.
52996         * lib/striconveha.h: Likewise.
52997         * lib/stripslash.c: Likewise.
52998         * lib/strnlen1.c: Likewise.
52999         * lib/strnlen1.h: Likewise.
53000         * lib/strtod.c: Likewise.
53001         * lib/strtoimax.c: Likewise.
53002         * lib/strtok_r.c: Likewise.
53003         * lib/strtol.c: Likewise.
53004         * lib/strtoll.c: Likewise.
53005         * lib/strtoul.c: Likewise.
53006         * lib/strtoull.c: Likewise.
53007         * lib/sysexits.in.h: Likewise.
53008         * lib/tempname.c: Likewise.
53009         * lib/tempname.h: Likewise.
53010         * lib/timespec.h: Likewise.
53011         * lib/tls.c: Likewise.
53012         * lib/tls.h: Likewise.
53013         * lib/tmpdir.c: Likewise.
53014         * lib/tmpdir.h: Likewise.
53015         * lib/tmpfile-safer.c: Likewise.
53016         * lib/tmpfile.c: Likewise.
53017         * lib/trigl.c: Likewise.
53018         * lib/trigl.h: Likewise.
53019         * lib/trim.c: Likewise.
53020         * lib/trim.h: Likewise.
53021         * lib/trunc.c: Likewise.
53022         * lib/truncf.c: Likewise.
53023         * lib/truncl.c: Likewise.
53024         * lib/tsearch.c: Likewise.
53025         * lib/unicodeio.c: Likewise.
53026         * lib/unicodeio.h: Likewise.
53027         * lib/unistd--.h: Likewise.
53028         * lib/unistd-safer.h: Likewise.
53029         * lib/unistdio/ulc-fprintf.c: Likewise.
53030         * lib/unistdio/ulc-vfprintf.c: Likewise.
53031         * lib/unlinkdir.c: Likewise.
53032         * lib/unlinkdir.h: Likewise.
53033         * lib/unlocked-io.h: Likewise.
53034         * lib/unsetenv.c: Likewise.
53035         * lib/userspec.c: Likewise.
53036         * lib/utime.c: Likewise.
53037         * lib/utimecmp.c: Likewise.
53038         * lib/utimecmp.h: Likewise.
53039         * lib/utimens.c: Likewise.
53040         * lib/verify.h: Likewise.
53041         * lib/verror.c: Likewise.
53042         * lib/verror.h: Likewise.
53043         * lib/version-etc-fsf.c: Likewise.
53044         * lib/version-etc.c: Likewise.
53045         * lib/version-etc.h: Likewise.
53046         * lib/vfprintf.c: Likewise.
53047         * lib/vprintf.c: Likewise.
53048         * lib/vsprintf.c: Likewise.
53049         * lib/w32spawn.h: Likewise.
53050         * lib/wait-process.c: Likewise.
53051         * lib/wait-process.h: Likewise.
53052         * lib/wcwidth.c: Likewise.
53053         * lib/write-any-file.c: Likewise.
53054         * lib/xalloc-die.c: Likewise.
53055         * lib/xalloc.h: Likewise.
53056         * lib/xasprintf.c: Likewise.
53057         * lib/xgetcwd.c: Likewise.
53058         * lib/xgetcwd.h: Likewise.
53059         * lib/xgetdomainname.c: Likewise.
53060         * lib/xgetdomainname.h: Likewise.
53061         * lib/xgethostname.c: Likewise.
53062         * lib/xmalloc.c: Likewise.
53063         * lib/xmalloca.c: Likewise.
53064         * lib/xmalloca.h: Likewise.
53065         * lib/xmemcoll.c: Likewise.
53066         * lib/xnanosleep.c: Likewise.
53067         * lib/xreadlink.c: Likewise.
53068         * lib/xreadlink.h: Likewise.
53069         * lib/xsetenv.c: Likewise.
53070         * lib/xsetenv.h: Likewise.
53071         * lib/xstriconv.c: Likewise.
53072         * lib/xstriconv.h: Likewise.
53073         * lib/xstrndup.c: Likewise.
53074         * lib/xstrndup.h: Likewise.
53075         * lib/xstrtod.c: Likewise.
53076         * lib/xstrtod.h: Likewise.
53077         * lib/xstrtol-error.c: Likewise.
53078         * lib/xstrtol.c: Likewise.
53079         * lib/xstrtol.h: Likewise.
53080         * lib/xtime.h: Likewise.
53081         * lib/xvasprintf.c: Likewise.
53082         * lib/xvasprintf.h: Likewise.
53083         * lib/yesno.c: Likewise.
53084         * lib/yesno.h: Likewise.
53085         * posix-modules: Likewise.
53086         * tests/test-alloca-opt.c: Likewise.
53087         * tests/test-arcfour.c: Likewise.
53088         * tests/test-arctwo.c: Likewise.
53089         * tests/test-argmatch.c: Likewise.
53090         * tests/test-argp-2.sh: Likewise.
53091         * tests/test-argp.c: Likewise.
53092         * tests/test-arpa_inet.c: Likewise.
53093         * tests/test-array_list.c: Likewise.
53094         * tests/test-array_oset.c: Likewise.
53095         * tests/test-atexit.c: Likewise.
53096         * tests/test-avltree_list.c: Likewise.
53097         * tests/test-avltree_oset.c: Likewise.
53098         * tests/test-avltreehash_list.c: Likewise.
53099         * tests/test-base64.c: Likewise.
53100         * tests/test-binary-io.c: Likewise.
53101         * tests/test-byteswap.c: Likewise.
53102         * tests/test-c-ctype.c: Likewise.
53103         * tests/test-c-strcasecmp.c: Likewise.
53104         * tests/test-c-strcasestr.c: Likewise.
53105         * tests/test-c-strncasecmp.c: Likewise.
53106         * tests/test-c-strstr.c: Likewise.
53107         * tests/test-canonicalize-lgpl.c: Likewise.
53108         * tests/test-canonicalize.c: Likewise.
53109         * tests/test-carray_list.c: Likewise.
53110         * tests/test-ceilf.c: Likewise.
53111         * tests/test-ceill.c: Likewise.
53112         * tests/test-count-one-bits.c: Likewise.
53113         * tests/test-crc.c: Likewise.
53114         * tests/test-dirname.c: Likewise.
53115         * tests/test-fbufmode.c: Likewise.
53116         * tests/test-fcntl.c: Likewise.
53117         * tests/test-fflush.c: Likewise.
53118         * tests/test-floorf.c: Likewise.
53119         * tests/test-floorl.c: Likewise.
53120         * tests/test-fopen.c: Likewise.
53121         * tests/test-fprintf-posix.c: Likewise.
53122         * tests/test-fprintf-posix.h: Likewise.
53123         * tests/test-fpurge.c: Likewise.
53124         * tests/test-freadable.c: Likewise.
53125         * tests/test-freadahead.c: Likewise.
53126         * tests/test-freading.c: Likewise.
53127         * tests/test-freopen.c: Likewise.
53128         * tests/test-frexp.c: Likewise.
53129         * tests/test-frexpl.c: Likewise.
53130         * tests/test-fseek.c: Likewise.
53131         * tests/test-fseeko.c: Likewise.
53132         * tests/test-fseterr.c: Likewise.
53133         * tests/test-fstrcmp.c: Likewise.
53134         * tests/test-ftell.c: Likewise.
53135         * tests/test-ftello.c: Likewise.
53136         * tests/test-fwritable.c: Likewise.
53137         * tests/test-fwriting.c: Likewise.
53138         * tests/test-getaddrinfo.c: Likewise.
53139         * tests/test-getpass.c: Likewise.
53140         * tests/test-gettimeofday.c: Likewise.
53141         * tests/test-hmac-md5.c: Likewise.
53142         * tests/test-hmac-sha1.c: Likewise.
53143         * tests/test-iconv.c: Likewise.
53144         * tests/test-iconvme.c: Likewise.
53145         * tests/test-inttypes.c: Likewise.
53146         * tests/test-isnan.c: Likewise.
53147         * tests/test-isnanf.c: Likewise.
53148         * tests/test-isnanl-nolibm.c: Likewise.
53149         * tests/test-isnanl.c: Likewise.
53150         * tests/test-isnanl.h: Likewise.
53151         * tests/test-ldexpl.c: Likewise.
53152         * tests/test-linked_list.c: Likewise.
53153         * tests/test-linkedhash_list.c: Likewise.
53154         * tests/test-locale.c: Likewise.
53155         * tests/test-localename.c: Likewise.
53156         * tests/test-lock.c: Likewise.
53157         * tests/test-lseek.c: Likewise.
53158         * tests/test-malloca.c: Likewise.
53159         * tests/test-math.c: Likewise.
53160         * tests/test-mbscasecmp.c: Likewise.
53161         * tests/test-mbscasestr1.c: Likewise.
53162         * tests/test-mbscasestr2.c: Likewise.
53163         * tests/test-mbscasestr3.c: Likewise.
53164         * tests/test-mbscasestr4.c: Likewise.
53165         * tests/test-mbschr.c: Likewise.
53166         * tests/test-mbscspn.c: Likewise.
53167         * tests/test-mbsncasecmp.c: Likewise.
53168         * tests/test-mbspbrk.c: Likewise.
53169         * tests/test-mbspcasecmp.c: Likewise.
53170         * tests/test-mbsrchr.c: Likewise.
53171         * tests/test-mbsspn.c: Likewise.
53172         * tests/test-mbsstr1.c: Likewise.
53173         * tests/test-mbsstr2.c: Likewise.
53174         * tests/test-mbsstr3.c: Likewise.
53175         * tests/test-md5.c: Likewise.
53176         * tests/test-memmem.c: Likewise.
53177         * tests/test-netinet_in.c: Likewise.
53178         * tests/test-open.c: Likewise.
53179         * tests/test-printf-frexp.c: Likewise.
53180         * tests/test-printf-frexpl.c: Likewise.
53181         * tests/test-printf-posix.c: Likewise.
53182         * tests/test-printf-posix.h: Likewise.
53183         * tests/test-rbtree_list.c: Likewise.
53184         * tests/test-rbtree_oset.c: Likewise.
53185         * tests/test-rbtreehash_list.c: Likewise.
53186         * tests/test-read-file.c: Likewise.
53187         * tests/test-rijndael.c: Likewise.
53188         * tests/test-search.c: Likewise.
53189         * tests/test-signbit.c: Likewise.
53190         * tests/test-sleep.c: Likewise.
53191         * tests/test-snprintf-posix.c: Likewise.
53192         * tests/test-snprintf-posix.h: Likewise.
53193         * tests/test-snprintf.c: Likewise.
53194         * tests/test-sprintf-posix.c: Likewise.
53195         * tests/test-sprintf-posix.h: Likewise.
53196         * tests/test-stat-time.c: Likewise.
53197         * tests/test-stdbool.c: Likewise.
53198         * tests/test-stdint.c: Likewise.
53199         * tests/test-stdio.c: Likewise.
53200         * tests/test-stdlib.c: Likewise.
53201         * tests/test-stpncpy.c: Likewise.
53202         * tests/test-strcasestr.c: Likewise.
53203         * tests/test-striconv.c: Likewise.
53204         * tests/test-striconveh.c: Likewise.
53205         * tests/test-striconveha.c: Likewise.
53206         * tests/test-string.c: Likewise.
53207         * tests/test-sys_select.c: Likewise.
53208         * tests/test-sys_socket.c: Likewise.
53209         * tests/test-sys_stat.c: Likewise.
53210         * tests/test-sys_time.c: Likewise.
53211         * tests/test-sysexits.c: Likewise.
53212         * tests/test-time.c: Likewise.
53213         * tests/test-tls.c: Likewise.
53214         * tests/test-trunc.c: Likewise.
53215         * tests/test-truncf.c: Likewise.
53216         * tests/test-truncl.c: Likewise.
53217         * tests/test-unistd.c: Likewise.
53218         * tests/test-vasnprintf-posix.c: Likewise.
53219         * tests/test-vasnprintf-posix2.c: Likewise.
53220         * tests/test-vasnprintf.c: Likewise.
53221         * tests/test-vasprintf-posix.c: Likewise.
53222         * tests/test-vasprintf.c: Likewise.
53223         * tests/test-verify.c: Likewise.
53224         * tests/test-vfprintf-posix.c: Likewise.
53225         * tests/test-vprintf-posix.c: Likewise.
53226         * tests/test-vsnprintf-posix.c: Likewise.
53227         * tests/test-vsnprintf.c: Likewise.
53228         * tests/test-vsprintf-posix.c: Likewise.
53229         * tests/test-wchar.c: Likewise.
53230         * tests/test-wctype.c: Likewise.
53231         * tests/test-wcwidth.c: Likewise.
53232         * tests/test-xstrtol.c: Likewise.
53233         * tests/test-xvasprintf.c: Likewise.
53234         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53235         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53236         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53237         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53238         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53239         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53240         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53241         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53242         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53243         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53244         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53245         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53246         * tests/uniname/test-uninames.c: Likewise.
53247         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53248         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53249         * tests/unistdio/test-u16-printf1.h: Likewise.
53250         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53251         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53252         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53253         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53254         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53255         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53256         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53257         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53258         * tests/unistdio/test-u32-printf1.h: Likewise.
53259         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53260         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53261         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53262         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53263         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53264         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53265         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53266         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53267         * tests/unistdio/test-u8-printf1.h: Likewise.
53268         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53269         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53270         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53271         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53272         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53273         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53274         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53275         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53276         * tests/unistdio/test-ulc-printf1.h: Likewise.
53277         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53278         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53279         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53280         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53281         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53282         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53283         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53284         * tests/uniwidth/test-u16-width.c: Likewise.
53285         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53286         * tests/uniwidth/test-u32-width.c: Likewise.
53287         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53288         * tests/uniwidth/test-u8-width.c: Likewise.
53289         * tests/uniwidth/test-uc_width.c: Likewise.
53290         * config/srclist-update: Likewise.
53291         (fixlicense): Update to GPLv3+.
53292
53293         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53294         * tests/test-tsearch.c: Change copyright notice.
53295
53296         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53297         * lib/c-strcaseeq.h: Change copyright notice.
53298         * lib/streq.h: Likewise.
53299         * lib/uniconv.h: Likewise.
53300         * lib/uniconv/u-conv-from-enc.h: Likewise.
53301         * lib/uniconv/u-conv-to-enc.h: Likewise.
53302         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53303         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53304         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53305         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53306         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53307         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53308         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53309         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53310         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53311         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53312         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53313         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53314         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53315         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53316         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53317         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53318         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53319         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53320         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53321         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53322         * lib/uniname.h: Likewise.
53323         * lib/uniname/uniname.c: Likewise.
53324         * lib/unistdio.h: Likewise.
53325         * lib/unistdio/u-asnprintf.h: Likewise.
53326         * lib/unistdio/u-asprintf.h: Likewise.
53327         * lib/unistdio/u-printf-args.c: Likewise.
53328         * lib/unistdio/u-printf-args.h: Likewise.
53329         * lib/unistdio/u-printf-parse.h: Likewise.
53330         * lib/unistdio/u-snprintf.h: Likewise.
53331         * lib/unistdio/u-sprintf.h: Likewise.
53332         * lib/unistdio/u-vasprintf.h: Likewise.
53333         * lib/unistdio/u-vsnprintf.h: Likewise.
53334         * lib/unistdio/u-vsprintf.h: Likewise.
53335         * lib/unistdio/u16-asnprintf.c: Likewise.
53336         * lib/unistdio/u16-asprintf.c: Likewise.
53337         * lib/unistdio/u16-printf-parse.c: Likewise.
53338         * lib/unistdio/u16-snprintf.c: Likewise.
53339         * lib/unistdio/u16-sprintf.c: Likewise.
53340         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53341         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53342         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53343         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53344         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53345         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53346         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53347         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53348         * lib/unistdio/u16-vasnprintf.c: Likewise.
53349         * lib/unistdio/u16-vasprintf.c: Likewise.
53350         * lib/unistdio/u16-vsnprintf.c: Likewise.
53351         * lib/unistdio/u16-vsprintf.c: Likewise.
53352         * lib/unistdio/u32-asnprintf.c: Likewise.
53353         * lib/unistdio/u32-asprintf.c: Likewise.
53354         * lib/unistdio/u32-printf-parse.c: Likewise.
53355         * lib/unistdio/u32-snprintf.c: Likewise.
53356         * lib/unistdio/u32-sprintf.c: Likewise.
53357         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53358         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53359         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53360         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53361         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53362         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53363         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53364         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53365         * lib/unistdio/u32-vasnprintf.c: Likewise.
53366         * lib/unistdio/u32-vasprintf.c: Likewise.
53367         * lib/unistdio/u32-vsnprintf.c: Likewise.
53368         * lib/unistdio/u32-vsprintf.c: Likewise.
53369         * lib/unistdio/u8-asnprintf.c: Likewise.
53370         * lib/unistdio/u8-asprintf.c: Likewise.
53371         * lib/unistdio/u8-printf-parse.c: Likewise.
53372         * lib/unistdio/u8-snprintf.c: Likewise.
53373         * lib/unistdio/u8-sprintf.c: Likewise.
53374         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53375         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53376         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53377         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53378         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53379         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53380         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53381         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53382         * lib/unistdio/u8-vasnprintf.c: Likewise.
53383         * lib/unistdio/u8-vasprintf.c: Likewise.
53384         * lib/unistdio/u8-vsnprintf.c: Likewise.
53385         * lib/unistdio/u8-vsprintf.c: Likewise.
53386         * lib/unistdio/ulc-asnprintf.c: Likewise.
53387         * lib/unistdio/ulc-asprintf.c: Likewise.
53388         * lib/unistdio/ulc-printf-parse.c: Likewise.
53389         * lib/unistdio/ulc-snprintf.c: Likewise.
53390         * lib/unistdio/ulc-sprintf.c: Likewise.
53391         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53392         * lib/unistdio/ulc-vasprintf.c: Likewise.
53393         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53394         * lib/unistdio/ulc-vsprintf.c: Likewise.
53395         * lib/unistr.h: Likewise.
53396         * lib/unistr/u-cpy-alloc.h: Likewise.
53397         * lib/unistr/u-cpy.h: Likewise.
53398         * lib/unistr/u-endswith.h: Likewise.
53399         * lib/unistr/u-move.h: Likewise.
53400         * lib/unistr/u-set.h: Likewise.
53401         * lib/unistr/u-startswith.h: Likewise.
53402         * lib/unistr/u-stpcpy.h: Likewise.
53403         * lib/unistr/u-stpncpy.h: Likewise.
53404         * lib/unistr/u-strcat.h: Likewise.
53405         * lib/unistr/u-strcpy.h: Likewise.
53406         * lib/unistr/u-strcspn.h: Likewise.
53407         * lib/unistr/u-strdup.h: Likewise.
53408         * lib/unistr/u-strlen.h: Likewise.
53409         * lib/unistr/u-strncat.h: Likewise.
53410         * lib/unistr/u-strncpy.h: Likewise.
53411         * lib/unistr/u-strnlen.h: Likewise.
53412         * lib/unistr/u-strpbrk.h: Likewise.
53413         * lib/unistr/u-strspn.h: Likewise.
53414         * lib/unistr/u-strstr.h: Likewise.
53415         * lib/unistr/u-strtok.h: Likewise.
53416         * lib/unistr/u16-check.c: Likewise.
53417         * lib/unistr/u16-chr.c: Likewise.
53418         * lib/unistr/u16-cmp.c: Likewise.
53419         * lib/unistr/u16-cpy-alloc.c: Likewise.
53420         * lib/unistr/u16-cpy.c: Likewise.
53421         * lib/unistr/u16-endswith.c: Likewise.
53422         * lib/unistr/u16-mblen.c: Likewise.
53423         * lib/unistr/u16-mbsnlen.c: Likewise.
53424         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53425         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53426         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53427         * lib/unistr/u16-mbtouc.c: Likewise.
53428         * lib/unistr/u16-mbtoucr.c: Likewise.
53429         * lib/unistr/u16-move.c: Likewise.
53430         * lib/unistr/u16-next.c: Likewise.
53431         * lib/unistr/u16-prev.c: Likewise.
53432         * lib/unistr/u16-set.c: Likewise.
53433         * lib/unistr/u16-startswith.c: Likewise.
53434         * lib/unistr/u16-stpcpy.c: Likewise.
53435         * lib/unistr/u16-stpncpy.c: Likewise.
53436         * lib/unistr/u16-strcat.c: Likewise.
53437         * lib/unistr/u16-strchr.c: Likewise.
53438         * lib/unistr/u16-strcmp.c: Likewise.
53439         * lib/unistr/u16-strcpy.c: Likewise.
53440         * lib/unistr/u16-strcspn.c: Likewise.
53441         * lib/unistr/u16-strdup.c: Likewise.
53442         * lib/unistr/u16-strlen.c: Likewise.
53443         * lib/unistr/u16-strmblen.c: Likewise.
53444         * lib/unistr/u16-strmbtouc.c: Likewise.
53445         * lib/unistr/u16-strncat.c: Likewise.
53446         * lib/unistr/u16-strncmp.c: Likewise.
53447         * lib/unistr/u16-strncpy.c: Likewise.
53448         * lib/unistr/u16-strnlen.c: Likewise.
53449         * lib/unistr/u16-strpbrk.c: Likewise.
53450         * lib/unistr/u16-strrchr.c: Likewise.
53451         * lib/unistr/u16-strspn.c: Likewise.
53452         * lib/unistr/u16-strstr.c: Likewise.
53453         * lib/unistr/u16-strtok.c: Likewise.
53454         * lib/unistr/u16-to-u32.c: Likewise.
53455         * lib/unistr/u16-to-u8.c: Likewise.
53456         * lib/unistr/u16-uctomb-aux.c: Likewise.
53457         * lib/unistr/u16-uctomb.c: Likewise.
53458         * lib/unistr/u32-check.c: Likewise.
53459         * lib/unistr/u32-chr.c: Likewise.
53460         * lib/unistr/u32-cmp.c: Likewise.
53461         * lib/unistr/u32-cpy-alloc.c: Likewise.
53462         * lib/unistr/u32-cpy.c: Likewise.
53463         * lib/unistr/u32-endswith.c: Likewise.
53464         * lib/unistr/u32-mblen.c: Likewise.
53465         * lib/unistr/u32-mbsnlen.c: Likewise.
53466         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53467         * lib/unistr/u32-mbtouc.c: Likewise.
53468         * lib/unistr/u32-mbtoucr.c: Likewise.
53469         * lib/unistr/u32-move.c: Likewise.
53470         * lib/unistr/u32-next.c: Likewise.
53471         * lib/unistr/u32-prev.c: Likewise.
53472         * lib/unistr/u32-set.c: Likewise.
53473         * lib/unistr/u32-startswith.c: Likewise.
53474         * lib/unistr/u32-stpcpy.c: Likewise.
53475         * lib/unistr/u32-stpncpy.c: Likewise.
53476         * lib/unistr/u32-strcat.c: Likewise.
53477         * lib/unistr/u32-strchr.c: Likewise.
53478         * lib/unistr/u32-strcmp.c: Likewise.
53479         * lib/unistr/u32-strcpy.c: Likewise.
53480         * lib/unistr/u32-strcspn.c: Likewise.
53481         * lib/unistr/u32-strdup.c: Likewise.
53482         * lib/unistr/u32-strlen.c: Likewise.
53483         * lib/unistr/u32-strmblen.c: Likewise.
53484         * lib/unistr/u32-strmbtouc.c: Likewise.
53485         * lib/unistr/u32-strncat.c: Likewise.
53486         * lib/unistr/u32-strncmp.c: Likewise.
53487         * lib/unistr/u32-strncpy.c: Likewise.
53488         * lib/unistr/u32-strnlen.c: Likewise.
53489         * lib/unistr/u32-strpbrk.c: Likewise.
53490         * lib/unistr/u32-strrchr.c: Likewise.
53491         * lib/unistr/u32-strspn.c: Likewise.
53492         * lib/unistr/u32-strstr.c: Likewise.
53493         * lib/unistr/u32-strtok.c: Likewise.
53494         * lib/unistr/u32-to-u16.c: Likewise.
53495         * lib/unistr/u32-to-u8.c: Likewise.
53496         * lib/unistr/u32-uctomb.c: Likewise.
53497         * lib/unistr/u8-check.c: Likewise.
53498         * lib/unistr/u8-chr.c: Likewise.
53499         * lib/unistr/u8-cmp.c: Likewise.
53500         * lib/unistr/u8-cpy-alloc.c: Likewise.
53501         * lib/unistr/u8-cpy.c: Likewise.
53502         * lib/unistr/u8-endswith.c: Likewise.
53503         * lib/unistr/u8-mblen.c: Likewise.
53504         * lib/unistr/u8-mbsnlen.c: Likewise.
53505         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53506         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53507         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53508         * lib/unistr/u8-mbtouc.c: Likewise.
53509         * lib/unistr/u8-mbtoucr.c: Likewise.
53510         * lib/unistr/u8-move.c: Likewise.
53511         * lib/unistr/u8-next.c: Likewise.
53512         * lib/unistr/u8-prev.c: Likewise.
53513         * lib/unistr/u8-set.c: Likewise.
53514         * lib/unistr/u8-startswith.c: Likewise.
53515         * lib/unistr/u8-stpcpy.c: Likewise.
53516         * lib/unistr/u8-stpncpy.c: Likewise.
53517         * lib/unistr/u8-strcat.c: Likewise.
53518         * lib/unistr/u8-strchr.c: Likewise.
53519         * lib/unistr/u8-strcmp.c: Likewise.
53520         * lib/unistr/u8-strcpy.c: Likewise.
53521         * lib/unistr/u8-strcspn.c: Likewise.
53522         * lib/unistr/u8-strdup.c: Likewise.
53523         * lib/unistr/u8-strlen.c: Likewise.
53524         * lib/unistr/u8-strmblen.c: Likewise.
53525         * lib/unistr/u8-strmbtouc.c: Likewise.
53526         * lib/unistr/u8-strncat.c: Likewise.
53527         * lib/unistr/u8-strncmp.c: Likewise.
53528         * lib/unistr/u8-strncpy.c: Likewise.
53529         * lib/unistr/u8-strnlen.c: Likewise.
53530         * lib/unistr/u8-strpbrk.c: Likewise.
53531         * lib/unistr/u8-strrchr.c: Likewise.
53532         * lib/unistr/u8-strspn.c: Likewise.
53533         * lib/unistr/u8-strstr.c: Likewise.
53534         * lib/unistr/u8-strtok.c: Likewise.
53535         * lib/unistr/u8-to-u16.c: Likewise.
53536         * lib/unistr/u8-to-u32.c: Likewise.
53537         * lib/unistr/u8-uctomb-aux.c: Likewise.
53538         * lib/unistr/u8-uctomb.c: Likewise.
53539         * lib/unitypes.h: Likewise.
53540         * lib/uniwidth.h: Likewise.
53541         * lib/uniwidth/cjk.h: Likewise.
53542         * lib/uniwidth/u16-strwidth.c: Likewise.
53543         * lib/uniwidth/u16-width.c: Likewise.
53544         * lib/uniwidth/u32-strwidth.c: Likewise.
53545         * lib/uniwidth/u32-width.c: Likewise.
53546         * lib/uniwidth/u8-strwidth.c: Likewise.
53547         * lib/uniwidth/u8-width.c: Likewise.
53548         * lib/uniwidth/width.c: Likewise.
53549
53550 2007-10-07  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53553         The file is still under LGPL (see modules/inttypes).
53554
53555 2007-10-06  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/trunc (Dependencies): Add 'extensions'.
53558         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53559         Reported by Ben Pfaff <blp@gnu.org>.
53560
53561 2007-10-06  Bruno Haible  <bruno@clisp.org>
53562
53563         * modules/freopen-tests: New file.
53564         * tests/test-freopen.c: New file.
53565
53566         * modules/fopen-tests: New file.
53567         * tests/test-fopen.c: New file.
53568
53569         * modules/fopen: New file.
53570         * lib/fopen.c: New file.
53571         * m4/fopen.m4: New file.
53572         * modules/freopen: New file.
53573         * lib/freopen.c: New file.
53574         * m4/freopen.m4: New file.
53575         * lib/stdio.in.h (fopen, freopen): New declarations.
53576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53577         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53578         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53579         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53580         * doc/functions/fopen.texi: Mention the 'fopen' module.
53581         * doc/functions/freopen.texi: Mention the 'freopen' module.
53582
53583 2007-10-06  Bruno Haible  <bruno@clisp.org>
53584
53585         * modules/open-tests: New file.
53586         * tests/test-open.c: New file.
53587
53588         * modules/open: New file.
53589         * lib/open.c: New file.
53590         * m4/open.m4: New file.
53591         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53592         lib/open.c does.
53593         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53594         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53595         macros.
53596         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53597         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53598         REPLACE_OPEN.
53599         * doc/functions/open.texi: Mention the 'open' module.
53600
53601 2007-10-04  Bruno Haible  <bruno@clisp.org>
53602
53603         * modules/ceill-tests: New file.
53604         * tests/test-ceill.c: New file.
53605
53606         * modules/ceill: New file.
53607         * lib/ceill.c: Replace entire file.
53608         * m4/ceill.m4: New file.
53609         * lib/math.in.h (ceill): Replace declaration.
53610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53611         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53612         * doc/functions/ceill.texi: Mention the 'ceill' module.
53613         * modules/mathl (Files): Remove lib/ceill.c.
53614         (Depends-on): Add ceill.
53615
53616 2007-10-04  Bruno Haible  <bruno@clisp.org>
53617
53618         * modules/ceilf-tests: New file.
53619         * tests/test-ceilf.c: New file.
53620
53621         * modules/ceilf: New file.
53622         * lib/ceil.c: New file.
53623         * lib/ceilf.c: New file.
53624         * m4/ceilf.m4: New file.
53625         * lib/math.in.h (ceilf): New declaration.
53626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53627         HAVE_DECL_CEILF.
53628         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53629         HAVE_DECL_CEILF.
53630         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53631
53632 2007-10-04  Bruno Haible  <bruno@clisp.org>
53633
53634         * modules/floorl-tests: New file.
53635         * tests/test-floorl.c: New file.
53636
53637         * modules/floorl: New file.
53638         * lib/floorl.c: Replace entire file.
53639         * m4/floorl.m4: New file.
53640         * lib/math.in.h (floorl): Replace declaration.
53641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53642         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53643         * doc/functions/floorl.texi: Mention the 'floorl' module.
53644         * modules/mathl (Files): Remove lib/floorl.c.
53645         (Depends-on): Add floorl.
53646
53647 2007-10-04  Bruno Haible  <bruno@clisp.org>
53648
53649         * modules/floorf-tests: New file.
53650         * tests/test-floorf.c: New file.
53651
53652         * modules/floorf: New file.
53653         * lib/floor.c: New file.
53654         * lib/floorf.c: New file.
53655         * m4/floorf.m4: New file.
53656         * lib/math.in.h (floorf): New declaration.
53657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53658         HAVE_DECL_FLOORF.
53659         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53660         HAVE_DECL_FLOORF.
53661         * doc/functions/floorf.texi: Mention the 'floorf' module.
53662
53663 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53664             Bruno Haible  <bruno@clisp.org>
53665
53666         Advertise for the Git server instead of the CVS server.
53667         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53668         repository instead of the CVS one.
53669         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53670         about all VCS systems generically.
53671         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53672
53673 2007-10-04  Bruno Haible  <bruno@clisp.org>
53674
53675         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53676         means.
53677         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53678
53679 2007-10-04  Bruno Haible  <bruno@clisp.org>
53680
53681         * modules/truncl-tests: New file.
53682         * tests/test-truncl.c: New file.
53683
53684         * modules/truncl: New file.
53685         * lib/truncl.c: New file.
53686         * m4/truncl.m4: New file.
53687         * lib/math.in.h (truncl): New declaration.
53688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53689         HAVE_DECL_TRUNCL.
53690         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53691         HAVE_DECL_TRUNCL.
53692         * doc/functions/truncl.texi: Mention the 'truncl' module.
53693
53694 2007-10-04  Bruno Haible  <bruno@clisp.org>
53695
53696         * modules/truncf-tests: New file.
53697         * tests/test-truncf.c: New file.
53698
53699         * modules/truncf: New file.
53700         * lib/trunc.c: Make paramerizable through USE_* macros.
53701         * lib/truncf.c: New file.
53702         * m4/truncf.m4: New file.
53703         * lib/math.in.h (truncf): New declaration.
53704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53705         HAVE_DECL_TRUNCF.
53706         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53707         HAVE_DECL_TRUNCF.
53708         * doc/functions/truncf.texi: Mention the 'truncf' module.
53709
53710 2007-10-03  Bruno Haible  <bruno@clisp.org>
53711
53712         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53713         augmentation also for tests modules.
53714         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53715         * modules/atexit-tests (Makefile.am): Likewise.
53716         * modules/binary-io-tests (Makefile.am): Likewise.
53717         * modules/c-strcase-tests (Makefile.am): Likewise.
53718         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53719         * modules/canonicalize-tests (Makefile.am): Likewise.
53720         * modules/closein-tests (Makefile.am): Likewise.
53721         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53722         * modules/freadahead-tests (Makefile.am): Likewise.
53723         * modules/fseek-tests (Makefile.am): Likewise.
53724         * modules/fseeko-tests (Makefile.am): Likewise.
53725         * modules/ftell-tests (Makefile.am): Likewise.
53726         * modules/ftello-tests (Makefile.am): Likewise.
53727         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53728         * modules/isnanl-tests (Makefile.am): Likewise.
53729         * modules/lseek-tests (Makefile.am): Likewise.
53730         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53731         * modules/mbscasestr-tests (Makefile.am): Likewise.
53732         * modules/mbschr-tests (Makefile.am): Likewise.
53733         * modules/mbscspn-tests (Makefile.am): Likewise.
53734         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53735         * modules/mbspbrk-tests (Makefile.am): Likewise.
53736         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53737         * modules/mbsrchr-tests (Makefile.am): Likewise.
53738         * modules/mbsspn-tests (Makefile.am): Likewise.
53739         * modules/mbsstr-tests (Makefile.am): Likewise.
53740         * modules/printf-posix-tests (Makefile.am): Likewise.
53741         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53742         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53743         * modules/tsearch-tests (Makefile.am): Likewise.
53744         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53745         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53746         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53747         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53748         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53749         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53750         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53751         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53752         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53753         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53754         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53755         * modules/xstrtol-tests (Makefile.am): Likewise.
53756         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53757         * modules/yesno-tests (Makefile.am): Likewise.
53758
53759 2007-10-03  Bruno Haible  <bruno@clisp.org>
53760
53761         * modules/trunc-tests: New file.
53762         * tests/test-trunc.c: New file.
53763
53764         * modules/trunc: New file.
53765         * lib/trunc.c: New file.
53766         * m4/trunc.m4: New file.
53767         * lib/math.in.h (trunc): New declaration.
53768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53769         HAVE_DECL_TRUNC.
53770         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53771         HAVE_DECL_TRUNC.
53772         * doc/functions/trunc.texi: Mention the 'trunc' module.
53773
53774 2007-10-03  Bruno Haible  <bruno@clisp.org>
53775
53776         * tests/test-fpending.c: New file, mostly copied
53777         from coreutils/lib/t-fpending.c.
53778         * modules/fpending-tests: New file.
53779
53780 2007-10-03  Bruno Haible  <bruno@clisp.org>
53781
53782         Port the stdio extensions to QNX (untested).
53783         * lib/fseterr.c (fseterr): Add support for QNX.
53784         * lib/fbufmode.c (fbufmode): Likewise.
53785         * lib/freadable.c (freadable): Likewise.
53786         * lib/fwritable.c (fwritable): Likewise.
53787         * lib/freading.c (freading): Likewise.
53788         * lib/fwriting.c (fwriting): Likewise.
53789         * lib/freadahead.c (freadahed): Likewise.
53790         * lib/fpurge.c (fpurge): Likewise.
53791         * lib/fseeko.c (rpl_fseeko): Likewise.
53792
53793 2007-10-03  Bruno Haible  <bruno@clisp.org>
53794             Jim Meyering  <jim@meyering.net>
53795             Eric Blake  <ebb9@byu.net>
53796
53797         * doc/relocatable.texi: Use @command instead of @program.
53798
53799 2007-10-02  Jim Meyering  <jim@meyering.net>
53800
53801         Perform one more "_.h" -> ".in.h" substitution.
53802         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53803         instead of unistd_.h here, too.
53804
53805 2007-10-01  Bruno Haible  <bruno@clisp.org>
53806
53807         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53808         Needed for the alloca-opt module.
53809
53810 2007-09-30  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53813         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53814         alloca_.h.
53815         * lib/argz.in.h: Renamed from lib/argz_.h.
53816         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53817         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53818         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53819         byteswap_.h.
53820         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53821         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53822         dirent_.h.
53823         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53824         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53825         fcntl_.h.
53826         * lib/float.in.h: Renamed from lib/float_.h.
53827         * modules/float (Files, Makefile.am): Use float.in.h instead of
53828         float_.h.
53829         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53830         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53831         fnmatch_.h.
53832         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53833         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53834         getopt_.h.
53835         * lib/glob.in.h: Renamed from lib/glob_.h.
53836         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53837         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53838         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53839         iconv_.h.
53840         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53841         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53842         inttypes_.h.
53843         * lib/locale.in.h: Renamed from lib/locale_.h.
53844         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53845         locale_.h.
53846         * lib/math.in.h: Renamed from lib/math_.h.
53847         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53848         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53849         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53850         of netinet_in_.h. Add dependency.
53851         * lib/poll.in.h: Renamed from lib/poll_.h.
53852         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53853         * lib/search.in.h: Renamed from lib/search_.h.
53854         * modules/search (Files, Makefile.am): Use search.in.h instead of
53855         search_.h.
53856         * lib/signal.in.h: Renamed from lib/signal_.h.
53857         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53858         _signal.h.
53859         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53860         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53861         stdbool_.h.
53862         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53863         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53864         stdint_.h.
53865         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53866         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53867         stdio_.h.
53868         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53869         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53870         stdlib_.h.
53871         * lib/string.in.h: Renamed from lib/string_.h.
53872         * modules/string (Files, Makefile.am): Use string.in.h instead of
53873         string_.h.
53874         * doc/gnulib-tool.texi (Initial import): Update.
53875         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53876         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53877         of sys_select_.h. Add dependency.
53878         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53879         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53880         of sys_socket_.h.
53881         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53882         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53883         sys_stat_.h.
53884         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53885         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53886         sys_time_.h.
53887         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53888         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53889         sysexits_.h.
53890         * lib/time.in.h: Renamed from lib/time_.h.
53891         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53892         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53893         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53894         unistd_.h.
53895         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53896         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53897         wchar_.h.
53898         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53899         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53900         wctype_.h.
53901         * build-aux/bootstrap (slurp): Update.
53902         * lib/.cppi-disable: Update.
53903
53904 2007-09-30  Bruno Haible  <bruno@clisp.org>
53905
53906         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53907         Needed on BeOS.
53908
53909 2007-09-30  Bruno Haible  <bruno@clisp.org>
53910
53911         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53912
53913 2007-09-29  Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53916
53917 2007-09-29  Bruno Haible  <bruno@clisp.org>
53918
53919         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53920         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53921         * build-aux/install-reloc: Compile also areadlink.c.
53922         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53923
53924 2007-09-29  Bruno Haible  <bruno@clisp.org>
53925
53926         * gnulib-tool (func_emit_initmacro_done): Indentation.
53927
53928 2007-09-29  Bruno Haible  <bruno@clisp.org>
53929
53930         * README: Add CVS checkout update instructions.
53931         Info from Bob Proulx <bob@proulx.com>.
53932
53933 2007-09-28  Eric Blake  <ebb9@byu.net>
53934
53935         Provide move-if-change.
53936         * build-aux/move-if-change: New file, based on best practice
53937         rather than any canonical upstream location.
53938
53939 2007-09-28  Jim Meyering  <jim@meyering.net>
53940
53941         Fix canonicalize loop-detection corner case.
53942         Do not attempt to stat the symlink values stored via seen_triple.
53943         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53944         on linux-2.6.18, (but not 2.6.22).
53945         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53946         triple_compare.  The former compares dev,ino,filename, while the latter
53947         would actually stat dirname(filename) when dev and ino were equal.
53948         * lib/hash-triple.c: Install <string.h>.
53949         (STREQ): Define.
53950         (triple_compare_ino_str): New function.
53951         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53952
53953 2007-09-28  Eric Blake  <ebb9@byu.net>
53954
53955         Enforce that AC_REPLACE_FUNCS files exist.
53956         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53957         override check for typos.
53958
53959         Fix test-closein on Solaris 10.
53960         * tests/test-closein.c (main): Don't assume stdin can be inherited
53961         closed on all systems.
53962         * tests/test-closein.sh: Likewise.
53963         Reported by Piotr Tarnowski.
53964
53965 2007-09-28  Jim Meyering  <jim@meyering.net>
53966
53967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53968
53969 2007-09-27  Jim Meyering  <jim@meyering.net>
53970
53971         canonicalize: Avoid a false-positive cycle failure.
53972         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53973         Sort.  Remove cycle-check.
53974         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53975         not cycle-check.h.
53976         (seen_triple): New function.
53977         (canonicalize_filename_mode): Use it instead of cycle-check.
53978         * tests/test-canonicalize.c: Add a test for this bug.
53979         * tests/test-canonicalize.sh: Set up and run the test.
53980
53981         New module, file-set, from coreutils.
53982         * modules/file-set: Define it.
53983         * lib/file-set.c, lib/file-set.h: Implement.
53984
53985         New module, hash-triple, from coreutils.
53986         * modules/hash-triple: Define it.
53987         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53988
53989 2007-09-25  Eric Blake  <ebb9@byu.net>
53990
53991         Fix strerror on Interix.
53992         * lib/string_.h (strerror): Declare replacement.
53993         * doc/functions/strerror.texi (strerror): Document the Interix
53994         shortcoming.
53995         * modules/string (Makefile.am): Support new hooks.
53996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53997         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53998         gl_FUNC_STRERROR_SEPARATE.
53999         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54000         * lib/strerror.c (rpl_strerror): Provide replacement.
54001         * modules/strerror (Depends-on): Add string.
54002         (configure.ac): Detect use of module.
54003         * tests/test-strerror.c: New file.
54004         * modules/strerror-tests: New test module.
54005         * modules/argp (Depends-on): Add strerror.
54006         * modules/error (Depends-on): Likewise.
54007         Reported by Martin Koeppe.
54008
54009 2007-09-24  Bruno Haible  <bruno@clisp.org>
54010
54011         * README: Update git instructions.
54012
54013 2007-09-24  Eric Blake  <ebb9@byu.net>
54014
54015         Revert fpending breakage from 2007-09-08.
54016         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54017         __fpending.c.
54018
54019 2007-09-24  Jim Meyering  <jim@meyering.net>
54020
54021         filenamecat.c: Add a test.
54022         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54023         showing how the function works when DIR is the empty string.
54024
54025 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54026
54027         * tests/test-canonicalize.sh: Turn on executable bit.
54028
54029 2007-09-19  Eric Blake  <ebb9@byu.net>
54030
54031         * README: Update CVS instructions.
54032
54033 2007-09-18  Bruno Haible  <bruno@clisp.org>
54034
54035         * modules/areadlink: New file.
54036         * lib/areadlink.h (areadlink): New declaration.
54037         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54038
54039 2007-09-17  Jim Meyering  <jim@meyering.net>
54040
54041         * lib/savewd.c (ESTALE) [!defined]: Define.
54042         Reported to be required on Interix by Martin Koeppe.
54043
54044 2007-09-17  Bruno Haible  <bruno@clisp.org>
54045
54046         * gnulib-tool (func_version): Use $version.
54047
54048 2007-09-16  Bruno Haible  <bruno@clisp.org>
54049
54050         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54051         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54052         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54053         Reported by Greg Schafer <gschafer@zip.com.au>.
54054
54055 2007-09-15  Bruno Haible  <bruno@clisp.org>
54056
54057         * gnulib-tool (sed): Try a little harder to make bash understand the
54058         alias.
54059         Reported by Bruce Korb <bruce.korb@gmail.com>.
54060
54061 2007-09-13  Eric Blake  <ebb9@byu.net>
54062
54063         * ChangeLog: Remove conflict markers.
54064
54065 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54066
54067         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54068         Reported by Bruno Haible <bruno@clisp.org>.
54069
54070 2007-09-12  Bruno Haible  <bruno@clisp.org>
54071
54072         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54073         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54074         is not defined.
54075
54076 2007-09-12  Eric Blake  <ebb9@byu.net>
54077
54078         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54079         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54080         Autoconf definition.
54081         * modules/euidaccess (Depends-on): Add extensions, for
54082         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54083         * modules/fnmatch (Depends-on): Likewise.
54084         * modules/getaddrinfo (Depends-on): Likewise.
54085         * modules/getdelim (Depends-on): Likewise.
54086         * modules/getline (Depends-on): Likewise.
54087         * modules/getsubopt (Depends-on): Likewise.
54088         * modules/gettext (Depends-on): Likewise.
54089         * modules/group-member (Depends-on): Likewise.
54090         * modules/mbchar (Depends-on): Likewise.
54091         * modules/memmem (Depends-on): Likewise.
54092         * modules/mempcpy (Depends-on): Likewise.
54093         * modules/memrchr (Depends-on): Likewise.
54094         * modules/pagealign_alloc (Depends-on): Likewise.
54095         * modules/readutmp (Depends-on): Likewise.
54096         * modules/stpcpy (Depends-on): Likewise.
54097         * modules/stpncpy (Depends-on): Likewise.
54098         * modules/strchrnul (Depends-on): Likewise.
54099         * modules/strndup (Depends-on): Likewise.
54100         * modules/strsep (Depends-on): Likewise.
54101         * modules/strverscmp (Depends-on): Likewise.
54102         * modules/vasprintf (Depends-on): Likewise.
54103         * modules/wcwidth (Depends-on): Likewise.
54104         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54105         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54106         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54108         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54110         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54111         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54112         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54113         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54115         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54116         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54117         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54118         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54119         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54120         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54121         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54122         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54124         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54125         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54126         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54127         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54128         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54130         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54131         so that lock.m4 can be used in gettext without extensions module.
54132
54133 2007-09-11  Bruno Haible  <bruno@clisp.org>
54134
54135         * m4/isc-posix.m4: Remove file.
54136         Suggested by Eric Blake.
54137
54138 2007-09-11  Eric Blake  <ebb9@byu.net>
54139
54140         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54141
54142 2007-09-10  Bruno Haible  <bruno@clisp.org>
54143
54144         * posix-modules: Fix typo in error message.
54145         Reported by Matt <mkraai@beckman.com>.
54146
54147 2007-09-09  Bruno Haible  <bruno@clisp.org>
54148
54149         * doc/functions/getdelim.texi: Update list of platforms lacking the
54150         function.
54151         * doc/functions/getline.texi: Likewise.
54152
54153 2007-09-09  Jim Meyering  <jim@meyering.net>
54154
54155         * lib/hash.c (hash_initialize): Detect calloc failure.
54156         Reported by Bruno Haible.
54157
54158 2007-09-09  Bruno Haible  <bruno@clisp.org>
54159
54160         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54161         malloc or realloc fails.
54162
54163 2007-09-09  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/getcwd (Depends-on): Add malloc-posix.
54166         * modules/glob (Depends-on): Likewise.
54167         * modules/putenv (Depends-on): Likewise.
54168         * modules/strdup (Depends-on): Likewise.
54169         * modules/getdelim (Depends-on): Add realloc-posix.
54170         * modules/read-file (Depends-on): Likewise.
54171
54172 2007-09-09  Bruno Haible  <bruno@clisp.org>
54173
54174         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54175         (gl_FUNC_MALLOC_POSIX): Require it.
54176         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54177         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54178         * modules/realloc (Files): Add m4/malloc.m4.
54179         * modules/calloc (Files): Likewise.
54180
54181 2007-09-09  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/malloc-posix: New file.
54184         * modules/malloc (Depends-on): Add malloc-posix.
54185         * lib/malloc.c: Include errno.h.
54186         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54187         and a POSIX-compatible malloc into a single function. Set ENOMEM
54188         when returning NULL.
54189         * m4/malloc.m4: New file.
54190         * doc/functions/malloc.texi: Mention the malloc-posix module.
54191         * lib/stdlib_.h (malloc): New declaration.
54192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54193         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54194         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54195         and HAVE_MALLOC_POSIX.
54196
54197 2007-09-09  Bruno Haible  <bruno@clisp.org>
54198
54199         * modules/realloc-posix: New file.
54200         * modules/realloc (Depends-on): Add realloc-posix.
54201         * lib/realloc.c: Include errno.h.
54202         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54203         and a POSIX-compatible realloc into a single function. Set ENOMEM
54204         when returning NULL.
54205         * m4/realloc.m4: New file.
54206         * doc/functions/realloc.texi: Mention the realloc-posix module.
54207         * lib/stdlib_.h (realloc): New declaration.
54208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54209         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54210         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54211         and HAVE_REALLOC_POSIX.
54212
54213 2007-09-09  Bruno Haible  <bruno@clisp.org>
54214
54215         * modules/calloc-posix: New file.
54216         * modules/calloc (Depends-on): Add calloc-posix.
54217         * lib/calloc.c: Include errno.h.
54218         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54219         and a POSIX-compatible calloc into a single function. Set ENOMEM
54220         when returning NULL.
54221         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54222         * doc/functions/calloc.texi: Mention the calloc-posix module.
54223         * lib/stdlib_.h (calloc): New declaration.
54224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54225         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54226         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54227         and HAVE_CALLOC_POSIX.
54228
54229 2007-09-09  Bruno Haible  <bruno@clisp.org>
54230
54231         Allow for modules to show an arbitrary notice.
54232         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54233         * gnulib-tool: New option --extract-notice.
54234         (func_usage): Document it.
54235         (sed_extract_prog): Update.
54236         (func_get_notice): New function.
54237         (func_modules_notice): New function.
54238         (func_import, func_create_testdir): Invoke it.
54239         Suggested by Jim Meyering.
54240
54241 2007-09-09  Bruno Haible  <bruno@clisp.org>
54242
54243         * gnulib-tool: New options --verbose, --quiet.
54244         (func_usage): Document them.
54245         (verbose): New variable.
54246         (func_execute_command): New function.
54247         (func_import): Don't show the module list and the file list if
54248         $verbose < 0.
54249         (func_create_testdir): Likewise. Use func_execute_command.
54250         (func_create_megatestdir): Use func_execute_command.
54251
54252 2007-09-08  Bruno Haible  <bruno@clisp.org>
54253
54254         * gnulib-tool (func_import): Prefer rsync over wget when available,
54255         for fetching the PO files.
54256
54257 2007-09-08  Bruno Haible  <bruno@clisp.org>
54258
54259         * posix-modules: New file. Portions copied from gnulib-tool.
54260         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54261
54262 2007-09-08  Jim Meyering  <jim@meyering.net>
54263
54264         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54265         * lib/fpending.h: Rename from __fpending.h.
54266         * lib/fpending.c: Rename from __fpending.c.
54267         Include "fpending.h", not "__fpending.h".
54268         * lib/__fpending.h, lib/__fpending.c: Remove files.
54269         * modules/fpending (Files): Reflect new file names.
54270         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54271
54272 2007-09-08  Bruno Haible  <bruno@clisp.org>
54273
54274         * m4/inttypes-h.m4: Remove stub file.
54275
54276 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54277
54278         * doc/headers/stdint.texi: Discuss #include_next issue.
54279
54280 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54281
54282         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54283
54284 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54285
54286         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54287         in variable name.
54288
54289 2007-09-03  Jim Meyering  <jim@meyering.net>
54290
54291         New module: git-version-gen.
54292         * modules/git-version-gen: New file.
54293
54294         Import changes from coreutils for bootstrap script.
54295
54296         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54297
54298         bootstrap: uses rsync to download the .po files
54299         * build-aux/bootstrap (po_download_command_format): New global.
54300         (download_po_files): Use rsync.
54301         (update_po_files): Don't remove .po files after download,
54302         so future rsync runs can take advantage of the copies.
54303
54304         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54305
54306         Solve the unnecessary-.po-file-regeneration problem once and for all.
54307         * build-aux/bootstrap (download_po_files): New function, renamed from
54308         get_translations.  Now, downloads, but doesn't update LINGUAS.
54309         (update_po_files): New function.
54310
54311         bootstrap: Ignore more.
54312         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54313         uniwidth to e.g., lib/.gitignore.
54314         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54315
54316         * build-aux/bootstrap: New setting: vc_ignore.
54317         (insert_sorted_if_absent): Create $file if absent.
54318         Adapt to new, possibly empty, list: $vc_ignore.
54319
54320         bootstrap: generate more ignorable names
54321         * build-aux/bootstrap (slurp): When generating ignorable names,
54322         also map .sin to .sed, .gperf to .c, and .y to .c.
54323
54324 2007-09-03  Jim Meyering  <jim@meyering.net>
54325
54326         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54327         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54328
54329 2007-09-02  Bruno Haible  <bruno@clisp.org>
54330
54331         Fix mis-recognition of 'mcs' on QNX 6.
54332         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54333         output contains the string "Mono".
54334         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54335         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54336
54337 2007-09-01  Bruno Haible  <bruno@clisp.org>
54338
54339         Fix collision between uniwidth/* and linebreak modules.
54340         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54341         u32_width): Remove declarations.
54342         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54343         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54344         streq3, streq2, streq1, streq0): Remove functions.
54345         (STREQ): Remove macro.
54346         (is_cjk_encoding): Remove function.
54347         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54348         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54349         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54350         * NEWS: Document the change.
54351
54352 2007-09-01  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/streq.h: Add double-inclusion guard.
54355
54356 2007-09-01  Karl Berry  <karl@gnu.org>
54357
54358         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54359
54360 2007-08-28  Jim Meyering  <jim@meyering.net>
54361
54362         Rename mreadlink_with_size to areadlink_with_size.
54363         * NEWS: Document the change.
54364         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54365         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54366         * lib/mreadlink.h: Rename this to...
54367         * lib/areadlink.h: ...this.
54368         * modules/mreadlink-with-size: Rename this to...
54369         * modules/areadlink-with-size: ...this.
54370         * lib/canonicalize.c: Reflect the renaming.
54371         * modules/canonicalize: Likewise.
54372
54373 2007-08-26  Bruno Haible  <bruno@clisp.org>
54374
54375         * gnulib-tool (func_import): When deciding which files to remove,
54376         consider also dangling symbolic links.
54377         Reported by Eric Blake.
54378
54379 2007-08-26  Bruno Haible  <bruno@clisp.org>
54380
54381         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54382
54383 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54384
54385         * lib/readline.c: Don't include getline.h, the prototype is now
54386         found in stdio.h.
54387
54388 2007-08-23  Jim Meyering  <jim@meyering.net>
54389
54390         Getdelim touchup.
54391         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54392         around the funlockfile call, since funlockfile never sets errno.
54393         Don't set errno upon failed realloc.
54394
54395 2007-08-22  Eric Blake  <ebb9@byu.net>
54396
54397         Getline touchups.
54398         * lib/getdelim.c (getdelim): Revert regression that required *n to
54399         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54400         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54401         getdelim, rather than whether implementation is missing.
54402         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54403         * lib/stdio_.h (getline): Also declare if replacement is
54404         required.
54405         * doc/functions/getdelim.texi: New file.
54406         * doc/functions/getline.texi: Likewise.
54407         * doc/gnulib.texi (Function Substitutes): Add new files.
54408         Reported by Bruno Haible.
54409
54410 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54411
54412         * users.txt: Add Guile.
54413
54414 2007-08-22  Eric Blake  <ebb9@byu.net>
54415
54416         * tests/test-getdelim.c (main): Use remove, not unlink.
54417         * tests/test-getline.c (main): Likewise.
54418
54419         Move getline and getdelim into stdio.h, per POSIX 200x.
54420         * modules/getline (Files): Remove getline.h.
54421         (Depends-on): Add stdio.
54422         (configure.ac): Add module indicator.
54423         * modules/getdelim (Files): Remove getdelim.h.
54424         (Depends-on): Add stdio.
54425         (configure.ac): Add module indicator.
54426         * modules/stdio (Makefile.am): Work with new indicators.
54427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54428         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54429         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54430         * lib/getdelim.h: Delete.
54431         * lib/getline.h: Delete.
54432         * lib/stdio_.h (getdelim, getline): Declare.
54433         * modules/getdelim-tests: New module.
54434         * modules/getline-tests: Likewise.
54435         * tests/test-getdelim.c: New file.
54436         * tests/test-getline.c: Likewise.
54437         * NEWS: Document the change.
54438         * lib/getline.c: Update choice of header.
54439         * lib/csharpcomp.c: Likewise.
54440         * lib/getpass.c: Likewise.
54441         * lib/javacomp.c: Likewise.
54442         * lib/javaversion.c: Likewise.
54443         * lib/yesno.c: Likewise.
54444         * lib/getdelim.c: Likewise.
54445         (getdelim): Set errno on failure, and avoid memory leak.
54446
54447 2007-08-19  Bruno Haible  <bruno@clisp.org>
54448
54449         * modules/closein (Depends-on): Add freadahead.
54450         * lib/closein.c: Include freadahead.h.
54451         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54452         is zero.
54453
54454 2007-08-19  Bruno Haible  <bruno@clisp.org>
54455
54456         * modules/freadahead-tests: New file.
54457         * tests/test-freadahead.sh: New file.
54458         * tests/test-freadahead.c: New file.
54459
54460         * modules/freadahead: New file.
54461         * lib/freadahead.h: New file.
54462         * lib/freadahead.c: New file.
54463         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54464         fbufmode, fpurge, freadable, fwritable.
54465
54466 2007-08-19  Eric Blake  <ebb9@byu.net>
54467
54468         Test yesno in combination with closein.
54469         * lib/yesno.c (yesno): Document use of stdin.
54470         * modules/yesno-tests (Files): New module.
54471         * tests/test-yesno.c (main): New file.
54472         * tests/test-yesno.sh: Likewise.
54473
54474 2007-08-19  Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54477         * lib/fseeko.c (rpl_fseeko): Likewise.
54478         * lib/fseterr.c (fseterr): Likewise.
54479
54480 2007-08-19  Bruno Haible  <bruno@clisp.org>
54481
54482         * tests/test-lseek.c (main): Disable a test for BeOS.
54483         * doc/functions/lseek.texi: Document the BeOS bug.
54484
54485 2007-08-19  Bruno Haible  <bruno@clisp.org>
54486             Eric Blake  <ebb9@byu.net>
54487
54488         * lib/lseek.c: Include <sys/stat.h>.
54489         (rpl_lseek): Add workaround code also for Unix platforms.
54490         Needed for BeOS.
54491         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54492         * doc/functions/lseek.texi: Document BeOS definiency.
54493
54494 2007-08-18  Bruno Haible  <bruno@clisp.org>
54495
54496         * modules/fstrcmp-tests: New file.
54497         * tests/test-fstrcmp.c: New file.
54498
54499 2007-08-18  Bruno Haible  <bruno@clisp.org>
54500
54501         * modules/fstrcmp: New file, from GNU gettext with modifications.
54502         * lib/fstrcmp.h: New file, from GNU gettext.
54503         * lib/fstrcmp.c: New file, from GNU gettext.
54504         * MODULES.html.sh (String handling): Add fstrcmp.
54505
54506 2007-08-18  Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54509         'bool'.
54510         (diag, compareseq): Remove const from the ctxt argument.
54511         (USE_HEURISTIC): Undefine at the end.
54512
54513 2007-08-18  Jim Meyering  <jim@meyering.net>
54514
54515         New file: lib/idcache.h
54516         * NEWS: Mention the addition.
54517         * modules/idcache (Files): Add lib/idcache.h
54518         * lib/idcache.c: Include "idcache.h".
54519         Don't include <sys/types.h>.
54520         Add a FIXME comment.
54521         Move file-scoped "static" declarations to the top.
54522         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54523
54524 2007-08-17  Bruno Haible  <bruno@clisp.org>
54525         and Paul Eggert  <eggert@cs.ucla.edu>
54526
54527         * MODULES.html.sh: Add diffseq.
54528         * modules/diffseq: New file.
54529         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54530         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54531
54532 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54533
54534         Import changes from coreutils for bootstrap script.
54535
54536         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54537
54538         * build-aux/bootstrap (slurp): Work even in environments where
54539         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54540         current code does not slurp files whose names start with ".", and
54541         this looks like it might be a troublesome area.
54542
54543         2007-07-11  Jim Meyering  <jim@meyering.net>
54544
54545         If there's a GPL vN copyright comment, require that N == 3.
54546
54547         2007-07-08  Jim Meyering  <jim@meyering.net>
54548
54549         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54550         * build-aux/bootstrap (mam_template): Move definition out of loop.
54551
54552         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54553
54554         * build-aux/bootstrap (symlink_to_dir): Rename function from
54555         symlink_to_gnulib.  Add a directory parameter.  Update all
54556         callers.
54557         (cp_mark_as_generated): Also check for -- and link to -- files in
54558         gl/.
54559
54560         2007-07-08  Jim Meyering  <jim@meyering.net>
54561
54562         Adapt to deeper hierarchy in gnulib.
54563         * build-aux/bootstrap (symlink_to_dir): If the destination
54564         directory doesn't exist, create it. This is required at least for
54565         "lib/uniwidth/cjk.h".
54566
54567         2007-05-15  Jim Meyering  <jim@meyering.net>
54568
54569         * build-aux/bootstrap: Now that generated Makefile.am files
54570         are no longer under version control, they must be created at
54571         bootstrap time.
54572
54573 2007-08-14  Ben Pfaff  <blp@gnu.org>
54574
54575         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54576
54577 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54578
54579         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54580         given the changes below.
54581         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54582         even on hosts that have padding bits beyond the supported 64.
54583
54584 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54585
54586         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54587         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54588         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54589         depends on it.
54590         (xstrtol_error): Remove.
54591         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54592         but with a different signature.
54593         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54594         * lib/xstrtol-error.c: Include exitfail.h.
54595         (xstrtol_fatal): New function, with a different signature from the
54596         old xstrtol_error, so that the caller need not worry about passing
54597         in an exit status, or about storage management of the option argument.
54598         (xstrtol_error): Now a static function.  Redo signature to
54599         implement xstrtol_fatal.  Output the correct number of hyphens in
54600         front of the option so that the caller need not worry about
54601         storage management.
54602         (N_): New macro.
54603         (_): Remove; not used now.
54604         * modules/xstrtol: Depend on getopt.
54605         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54606         of old STRTOL_FATAL_ERROR macro.
54607         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54608         of test program.
54609         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54610         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54611
54612 2007-08-08  Eric Blake  <ebb9@byu.net>
54613
54614         * lib/xstrtol-error.c: Add missing include.
54615
54616         Move xstrtol messages into gnulib domain, when --pobase is used.
54617         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54618         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54619         * modules/xstrtol (Files): Distribute new file.
54620         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54621         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54622         * tests/test-xstrtol.c: ...into new file.
54623         * tests/test-xstrtoul.c: Also test xstrtoul.
54624         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54625         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54626         * tests/test-xstrtol.sh: Drive the tests.
54627         * tests/test-xstrtoimax.sh: Likewise.
54628         * tests/test-xstrtoumax.sh: Likewise.
54629         * modules/xstrtol-tests: New module.
54630         * modules/xstrtoimax-tests: Likewise.
54631         * modules/xstrtoumax-tests: Likewise.
54632
54633 2007-08-08  Jim Meyering  <jim@meyering.net>
54634
54635         New function: mfile_name_concat.
54636         * lib/filenamecat.c (mfile_name_concat): New function, just like
54637         file_name_concat, but return NULL upon failure rather than exiting
54638         with a diagnostic.
54639         * lib/filenamecat.h: Declare it.
54640
54641 2007-08-07  Bruno Haible  <bruno@clisp.org>
54642
54643         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54644         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54645         warning from gcc.
54646         Reported by Eric Blake.
54647
54648 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54649
54650         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54651         * modules/crypto/arcfour (License): Likewise.
54652         * modules/crypto/des-tests (License): Likewise.
54653         * modules/crypto/gc-arctwo-tests (License): Likewise.
54654         * modules/crypto/gc-des-tests (License): Likewise.
54655         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54656         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54657         * modules/crypto/gc-md2-tests (License): Likewise.
54658         * modules/crypto/gc-md4-tests (License): Likewise.
54659         * modules/crypto/gc-md5-tests (License): Likewise.
54660         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54661         * modules/crypto/gc-rijndael-tests (License): Likewise.
54662         * modules/crypto/gc-sha1-tests (License): Likewise.
54663         * modules/crypto/gc-tests (License): Likewise.
54664         * modules/crypto/hmac-md5 (License): Likewise.
54665         * modules/crypto/hmac-sha1 (License): Likewise.
54666         * modules/crypto/md2-tests (License): Likewise.
54667         * modules/crypto/md4-tests (License): Likewise.
54668         * modules/crypto/md5 (License): Likewise.
54669         * modules/crypto/rijndael (License): Likewise.
54670         * modules/crypto/sha1 (License): Likewise.
54671         * modules/memxor (License): Likewise.
54672
54673 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54674         and Bruno Haible  <bruno@clisp.org>
54675
54676         * NEWS: Describe interface changes to human, xstrtol.
54677         * lib/human.h: Include <xstrtol.h>.
54678         (human_options): Return enum strtol_error, not int.  Remove
54679         bool arg; take int * instead.
54680         * lib/human.c: Don't include "gettext.h".
54681         (_): Remove; no longer used.
54682         Don't include <xstrtol.h>, since human.h does it.
54683         (human_options): Adjust to abovementioned interface changes.
54684         Do not report error to stderr; that's now the caller's
54685         responsibility.
54686         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54687         interface change.
54688         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54689         Str, Argument_type_string.  All uses changed.  Put " argument"
54690         in diagnostics to make them clearer.  Change wording of suffix
54691         message for clarity.
54692         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54693         Argument_type_string.
54694         (STRTOL_FATAL_WARN): Remove; no longer used.
54695         * modules/human (Depends-on): Remove gettext-h.
54696
54697 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54698
54699         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54700
54701 2007-07-31  Bruno Haible  <bruno@clisp.org>
54702
54703         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54704         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54705         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54706
54707 2007-07-31  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54710         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54711
54712 2007-07-30  Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54715         * modules/c-ctype (License): Likewise.
54716         * modules/c-strcase (License): Likewise.
54717         * modules/check-version (License): Likewise.
54718         * modules/iconv (License): Likewise.
54719         * modules/iconv_open (License): Likewise.
54720         * modules/read-file (License): Likewise.
54721         * modules/striconv (License): Likewise.
54722         * modules/strverscmp (License): Likewise.
54723         * modules/vasprintf (License): Likewise.
54724         * modules/crypto/des (License): Likewise.
54725         * modules/crypto/gc (License): Likewise.
54726         * modules/crypto/gc-arcfour (License): Likewise.
54727         * modules/crypto/gc-arctwo (License): Likewise.
54728         * modules/crypto/gc-des (License): Likewise.
54729         * modules/crypto/gc-hmac-md5 (License): Likewise.
54730         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54731         * modules/crypto/gc-md2 (License): Likewise.
54732         * modules/crypto/gc-md4 (License): Likewise.
54733         * modules/crypto/gc-md5 (License): Likewise.
54734         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54735         * modules/crypto/gc-random (License): Likewise.
54736         * modules/crypto/gc-rijndael (License): Likewise.
54737         * modules/crypto/gc-sha1 (License): Likewise.
54738         * modules/crypto/md2 (License): Likewise.
54739         * modules/crypto/md4 (License): Likewise.
54740
54741 2007-07-30  Jim Meyering  <jim@meyering.net>
54742
54743         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54744         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54745         it has valid stat data.  This bug would cause du not to count the
54746         sizes of inaccessible directories.
54747         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54748         in <http://bugzilla.redhat.com/250077>.
54749
54750 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54751             Bruno Haible  <bruno@clisp.org>
54752
54753         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54754         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54755         #include_next, gives a diagnostic about it, but reports no error in
54756         the exit code.
54757         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54758
54759 2007-07-24  Ben Pfaff  <blp@gnu.org>
54760
54761         Improve name: "count-one-bits" is better than "popcount".
54762         * MODULES.html.sh: Update name.
54763         * lib/popcount.h: Renamed lib/count-one-bits.h.
54764         (popcount): Renamed count_one_bits.
54765         (popcountl): Renamed count_one_bits_l.
54766         (popcountll): Renamed count_one_bits_ll.
54767         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54768         * modules/popcount: Renamed module/count-one-bits.
54769         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54770         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54771
54772 2007-07-23  Ben Pfaff  <blp@gnu.org>
54773
54774         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54775         better code generation, and add U to large constants to avoid
54776         warnings, in non-GCC case.
54777         Suggested by Bruno Haible.
54778
54779 2007-07-23  Ben Pfaff  <blp@gnu.org>
54780
54781         * lib/popcount.h: Use verify_true instead of if...abort.
54782         * modules/popcount: Depend on verify module.
54783         Suggested by Jim Meyering.
54784
54785 2007-07-23  Bruno Haible  <bruno@clisp.org>
54786
54787         * gnulib-tool (func_import): Create a .cvsignore file also when the
54788         directory is not yet in CVS but the toplevel directory is. When
54789         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54790         Reported by Karl Berry.
54791
54792 2007-07-22  Ben Pfaff  <blp@gnu.org>
54793
54794         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54795         case.
54796         Suggested by Eric Blake.
54797
54798 2007-07-22  Ben Pfaff  <blp@gnu.org>
54799
54800         New module: popcount.
54801         * MODULES.html.sh: Add popcount.
54802         * modules/popcount: New file.
54803         * modules/popcount-tests: New file.
54804         * tests/test-popcount.c: New file.
54805         * lib/popcount.h: New file.
54806         * m4/popcount.m4: New file.
54807
54808 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54809
54810         * build-aux/announce-gen: Update to GPLv3.
54811
54812         * build-aux/config.guess: Update from config.
54813
54814 2007-07-21  Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54817         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54818
54819 2007-07-20  Jim Meyering  <jim@meyering.net>
54820
54821         * check-module: Diagnose a self-dependency.
54822
54823 2007-07-19  Bruno Haible  <bruno@clisp.org>
54824
54825         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54826         empty.
54827         Reported by Eric Blake.
54828
54829 2007-07-18  Bruno Haible  <bruno@clisp.org>
54830
54831         * gnulib-tool: New options --po-base, --po-domain.
54832         (func_usage): Document them.
54833         (pobase, po_domain): New variables.
54834         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54835         DEFAULT_TEXT_DOMAIN.
54836         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54837         (func_import): Consider pobase and po_domain. Create a po/ directory.
54838         (func_create_testdir): Set pobase and po_domain to empty.
54839         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54840         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54841
54842 2007-07-18  Bruno Haible  <bruno@clisp.org>
54843
54844         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54845         EXTRA_DIST augmentation for files in build-aux/.
54846
54847 2007-07-16  Bruno Haible  <bruno@clisp.org>
54848
54849         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54850         * modules/getdelim (License): Likewise.
54851
54852 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54853
54854         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54855         * modules/d-type (License): Likewise.
54856         * modules/extensions (License): Likewise.
54857         * modules/fnmatch (License): Likewise.
54858         * modules/fseeko (License): Likewise.
54859         * modules/getaddrinfo (License): Likewise.
54860         * modules/getline (License): Likewise.
54861         * modules/getlogin_r (License): Likewise.
54862         * modules/getpass (License): Likewise.
54863         * modules/gettimeofday (License): Likewise.
54864         * modules/glob (License): Likewise.
54865         * modules/inet_ntop (License): Likewise.
54866         * modules/malloc (License): Likewise.
54867         * modules/malloca (License): Likewise.
54868         * modules/memmem (License): Likewise.
54869         * modules/mempcpy (License): Likewise.
54870         * modules/memset (License): Likewise.
54871         * modules/minmax (License): Likewise.
54872         * modules/mktime (License): Likewise.
54873         * modules/netinet_in (License): Likewise.
54874         * modules/pathmax (License): Likewise.
54875         * modules/poll (License): Likewise.
54876         * modules/regex (License): Likewise.
54877         * modules/snprintf (License): Likewise.
54878         * modules/stdbool (License): Likewise.
54879         * modules/stdint (License): Likewise.
54880         * modules/stdio (License): Likewise.
54881         * modules/strcase (License): Likewise.
54882         * modules/strcasestr (License): Likewise.
54883         * modules/strdup (License): Likewise.
54884         * modules/string (License): Likewise.
54885         * modules/strndup (License): Likewise.
54886         * modules/strnlen (License): Likewise.
54887         * modules/strpbrk (License): Likewise.
54888         * modules/strptime (License): Likewise.
54889         * modules/strsep (License): Likewise.
54890         * modules/sys_select (License): Likewise.
54891         * modules/sys_socket (License): Likewise.
54892         * modules/sys_stat (License): Likewise.
54893         * modules/sys_time (License): Likewise.
54894         * modules/time (License): Likewise.
54895         * modules/time_r (License): Likewise.
54896         * modules/timegm (License): Likewise.
54897         * modules/unistd (License): Likewise.
54898         * modules/vsnprintf (License): Likewise.
54899         * modules/wctype (License): Likewise.
54900
54901 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54902
54903         * modules/argz (License): LGPLv2+.
54904
54905 2007-07-15  Karl Berry  <karl@gnu.org>
54906
54907         * doc/gnulib.texi: revise node structure per new fdl.texi.
54908
54909 2007-07-14  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54912         the output file.
54913         * lib/uniname/uninames.h: Regenerated.
54914
54915 2007-07-14  Karl Berry  <karl@gnu.org>
54916
54917         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54918         omitting sectioning and index commands.
54919
54920 2007-07-13  Bruno Haible  <bruno@clisp.org>
54921
54922         New gnulib-tool option --more-symlinks.
54923         * gnulib-tool (func_usage): Document --more-symlinks.
54924         (do_copyrights): New variable.
54925         Recognize option --more-symlinks.
54926         (func_import): Don't add a copyright notice transform to
54927         sed_transform_lib_file if do_copyrights is empty.
54928
54929 2007-07-13  Bruno Haible  <bruno@clisp.org>
54930
54931         * lib/vasnprintf.c (decimal_point_char): Define also if
54932         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54933         && !NEED_PRINTF_DIRECTIVE_A.
54934         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54935         Gary V. Vaughan <gary@gnu.org>.
54936
54937 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         * lib/inttypes_.h: Undo previous change, since it was fixed
54940         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54941
54942 2007-07-13  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54945         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54946
54947 2007-07-13  Jim Meyering  <jim@meyering.net>
54948
54949         df: Don't fail for Tru64's "file-on-file mount".
54950         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54951         so we fall through and use statfs instead.  Details here:
54952         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54953         Reported by Albert Chin.
54954
54955 2007-07-13  Bruno Haible  <bruno@clisp.org>
54956
54957         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54958         * modules/configmake (License): Likewise.
54959         * modules/gettext (License): Likewise.
54960         * modules/gettext-h (License): Likewise.
54961         * modules/include_next (License): Likewise.
54962         * modules/link-warning (License): Likewise.
54963         * modules/localcharset (License): Likewise.
54964         * modules/localename (License): Likewise.
54965         * modules/lock (License): Likewise.
54966         * modules/relocatable-lib-lgpl (License): Likewise.
54967         * modules/size_max (License): Likewise.
54968         * modules/vasnprintf (License): Likewise.
54969         * modules/wchar (License): Likewise.
54970         * modules/xsize (License): Likewise.
54971
54972 2007-07-13  Bruno Haible  <bruno@clisp.org>
54973
54974         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54975         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54976
54977 2007-07-12  Bruno Haible  <bruno@clisp.org>
54978
54979         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54980         in the modules files.
54981
54982 2007-07-11  Karl Berry  <karl@gnu.org>
54983
54984         * MODULES.html.sh (func_module): use
54985          sed -e '\|^'"${includefile}"'$|d'
54986          instead of /.../d, to avoid errors on $includefile's containing /.
54987
54988 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54989
54990         * gnulib-tool (func_import): Avoid duplication of --avoid
54991         statements
54992         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54993         names to `_' in variable names.
54994
54995 2007-07-10  Eric Blake  <ebb9@byu.net>
54996
54997         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54998         * NEWS: Document this change.
54999
55000 2007-07-08  Bruno Haible  <bruno@clisp.org>
55001
55002         Update to Unicode 5.0.
55003         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55004         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55005         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55006         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55007         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55008         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55009         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55010         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55011         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55012         U+10A3F, U+1D242..U+1D244.
55013         (nonspacing_table_ind): Update.
55014         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55015         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55016
55017 2007-07-08  Bruno Haible  <bruno@clisp.org>
55018
55019         Update to Unicode 5.0.
55020         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55021         code transform. Extend the name index field of unicode_name_to_code and
55022         unicode_code_to_name from 16 to 24 bits.
55023         * lib/uniname/uniname.c (unicode_character_name,
55024         unicode_name_character): Add the range 0x12xxx to the code transform.
55025         * lib/uniname/uninames.h: Regenerated.
55026         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55027
55028 2007-07-07  Bruno Haible  <bruno@clisp.org>
55029
55030         * modules/wcwidth-tests: New file.
55031         * tests/test-wcwidth.c: New file.
55032
55033         Work around MacOS X wcwidth() bug.
55034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55035         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55036         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55037         original wcwidth in non-UTF-8 locales.
55038         * modules/wcwidth (Depends-on): Add localcharset, streq,
55039         uniwidth/width.
55040         * doc/functions/wcwidth.texi: Update.
55041
55042 2007-07-07  Bruno Haible  <bruno@clisp.org>
55043
55044         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55045         (wcwidth): New declaration.
55046         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55047         macros.
55048         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55049         here. Prepare for creating <wchar.h> unconditionally.
55050         * modules/wchar (Depends-on): Add link-warning.
55051         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55052         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55053         * lib/wcwidth.h: Remove file.
55054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55055         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55056         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55057         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55058         (Include): Replace wcwidth.h with <wchar.h>.
55059         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55060         * lib/mbchar.h: Don't include wcwidth.h.
55061         * lib/mbswidth.c: Likewise.
55062         * NEWS: Mention the change.
55063
55064 2007-07-07  Bruno Haible  <bruno@clisp.org>
55065
55066         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55067         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55068         definition with an external declaration.
55069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55070         defined as a function. Remove AC_C_INLINE requirement.
55071         * modules/wcwidth (Files): Add lib/wcwidth.c.
55072         (Makefile.am): Remove redundant statement.
55073
55074 2007-07-07  Bruno Haible  <bruno@clisp.org>
55075
55076         * MODULES.html.sh (Unicode string functions): Add the new modules.
55077
55078         * tests/uniwidth/test-u32-strwidth.c: New file.
55079         * modules/uniwidth/u32-strwidth-tests: New file.
55080
55081         * lib/uniwidth/u32-strwidth.c: New file.
55082         * modules/uniwidth/u32-strwidth: New file.
55083
55084         * tests/uniwidth/test-u16-strwidth.c: New file.
55085         * modules/uniwidth/u16-strwidth-tests: New file.
55086
55087         * lib/uniwidth/u16-strwidth.c: New file.
55088         * modules/uniwidth/u16-strwidth: New file.
55089
55090         * tests/uniwidth/test-u8-strwidth.c: New file.
55091         * modules/uniwidth/u8-strwidth-tests: New file.
55092
55093         * lib/uniwidth/u8-strwidth.c: New file.
55094         * modules/uniwidth/u8-strwidth: New file.
55095
55096         * tests/uniwidth/test-u32-width.c: New file.
55097         * modules/uniwidth/u32-width-tests: New file.
55098
55099         * lib/uniwidth/u32-width.c: New file.
55100         * modules/uniwidth/u32-width: New file.
55101
55102         * tests/uniwidth/test-u16-width.c: New file.
55103         * modules/uniwidth/u16-width-tests: New file.
55104
55105         * lib/uniwidth/u16-width.c: New file.
55106         * modules/uniwidth/u16-width: New file.
55107
55108         * tests/uniwidth/test-u8-width.c: New file.
55109         * modules/uniwidth/u8-width-tests: New file.
55110
55111         * lib/uniwidth/u8-width.c: New file.
55112         * modules/uniwidth/u8-width: New file.
55113
55114         * tests/uniwidth/test-uc_width.c: New file.
55115         * modules/uniwidth/width-tests: New file.
55116
55117         * lib/uniwidth/width.c: New file, from GNU libiconv.
55118         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55119         * modules/uniwidth/width: New file.
55120
55121         * lib/uniwidth.h: New file, from GNU libiconv.
55122         * modules/uniwidth/base: New file.
55123
55124 2007-07-07  Bruno Haible  <bruno@clisp.org>
55125
55126         * lib/uniname.h: New file, from GNU gettext.
55127         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55128         * lib/uniname/uninames.h: New file, from GNU gettext.
55129         * lib/uniname/uniname.c: New file, from GNU gettext.
55130         * tests/uniname/test-uninames.sh: New file.
55131         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55132         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55133         * modules/uniname/base: New file.
55134         * modules/uniname/uniname: New file.
55135         * modules/uniname/uniname-tests: New file.
55136         * MODULES.html.sh (Unicode string functions): Add the new modules.
55137
55138 2007-07-06  Bruno Haible  <bruno@clisp.org>
55139
55140         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55141
55142 2007-07-06  Bruno Haible  <bruno@clisp.org>
55143
55144         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55145         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55146         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55147         include <sys/time.h>.
55148         Reported by Eric Blake.
55149
55150 2007-07-06  Eric Blake  <ebb9@byu.net>
55151
55152         Fix testing canonicalize on cygwin.
55153         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55154         Revert patch from 2007-06-19.
55155         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55156         canonicalize module is also in use.
55157         * tests/test-canonicalize.c: New file.
55158         * tests/test-canonicalize.sh: Likewise.
55159         * modules/canonicalize-tests: Likewise.
55160
55161 2007-07-06  Jim Meyering  <jim@meyering.net>
55162
55163         * lib/getugroups.c (getugroups): Detect getgrent failure.
55164         Adjust comment to reflect reality: this function may return -1.
55165
55166 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55167
55168         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55169         the new TP address.
55170         (usage): Fix typo
55171         (gnulib_mk): New variable.
55172
55173 2007-07-05  Jim Meyering  <jim@meyering.net>
55174
55175         Don't let endgrent clobber errno, no matter how improbable.
55176         * lib/getugroups.c (getugroups): Save and restore errno around
55177         endgrent call.
55178
55179         Close the group DB even when failing with 2^31 or more members.
55180         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55181
55182 2007-07-04  Jim Meyering  <jim@meyering.net>
55183
55184         * lib/getugroups.h: New file.
55185         * lib/getugroups.c: Include "getugroups.h".
55186         Remove uses of "register" keyword.
55187         Move local variable, "cp", down into scope where used.
55188         Give "username" parameter the "const" attribute.
55189         * modules/getugroups (Files): Add lib/getugroups.h
55190
55191 2007-07-04  Karl Berry  <karl@gnu.org>
55192
55193         * MODULES.html.sh (func_all_modules): Complete rename of
55194         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55195
55196 2007-07-02  Bruno Haible  <bruno@clisp.org>
55197
55198         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55199         mode, when inttypes.h comes from gnulib.
55200         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55201
55202 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55203
55204         * NEWS: Mention lgpl module name change.
55205
55206         * modules/lgpl-2.1: Renamed from lgpl.
55207
55208         * NEWS: Mention gpl module name change.
55209
55210         * modules/gpl-3.0: New file, based on gpl-2.0.
55211
55212         * modules/gpl-2.0: Renamed from gpl.
55213
55214         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55215         doc/gpl-2.0.texi.
55216
55217 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55218
55219         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55220         #define __STDC_LIMIT_MACROS temporarily while including
55221         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55222         Problem reported by Joel E. Denny in
55223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55224
55225 2007-07-01  Bruno Haible  <bruno@clisp.org>
55226
55227         * lib/unistdio.h: New file.
55228         * lib/unistdio/u-asnprintf.h: New file.
55229         * lib/unistdio/u-asprintf.h: New file.
55230         * lib/unistdio/u-printf-args.c: New file.
55231         * lib/unistdio/u-printf-args.h: New file.
55232         * lib/unistdio/u-printf-parse.h: New file.
55233         * lib/unistdio/u-snprintf.h: New file.
55234         * lib/unistdio/u-sprintf.h: New file.
55235         * lib/unistdio/u-vasprintf.h: New file.
55236         * lib/unistdio/u-vsnprintf.h: New file.
55237         * lib/unistdio/u-vsprintf.h: New file.
55238         * lib/unistdio/ulc-asnprintf.c: New file.
55239         * lib/unistdio/ulc-asprintf.c: New file.
55240         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55241         * lib/unistdio/ulc-printf-parse.c: New file.
55242         * lib/unistdio/ulc-snprintf.c: New file.
55243         * lib/unistdio/ulc-sprintf.c: New file.
55244         * lib/unistdio/ulc-vasnprintf.c: New file.
55245         * lib/unistdio/ulc-vasprintf.c: New file.
55246         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55247         * lib/unistdio/ulc-vsnprintf.c: New file.
55248         * lib/unistdio/ulc-vsprintf.c: New file.
55249         * lib/unistdio/u8-asnprintf.c: New file.
55250         * lib/unistdio/u8-asprintf.c: New file.
55251         * lib/unistdio/u8-printf-parse.c: New file.
55252         * lib/unistdio/u8-snprintf.c: New file.
55253         * lib/unistdio/u8-sprintf.c: New file.
55254         * lib/unistdio/u8-vasnprintf.c: New file.
55255         * lib/unistdio/u8-vasprintf.c: New file.
55256         * lib/unistdio/u8-vsnprintf.c: New file.
55257         * lib/unistdio/u8-vsprintf.c: New file.
55258         * lib/unistdio/u8-u8-asnprintf.c: New file.
55259         * lib/unistdio/u8-u8-asprintf.c: New file.
55260         * lib/unistdio/u8-u8-snprintf.c: New file.
55261         * lib/unistdio/u8-u8-sprintf.c: New file.
55262         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55263         * lib/unistdio/u8-u8-vasprintf.c: New file.
55264         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55265         * lib/unistdio/u8-u8-vsprintf.c: New file.
55266         * lib/unistdio/u16-asnprintf.c: New file.
55267         * lib/unistdio/u16-asprintf.c: New file.
55268         * lib/unistdio/u16-printf-parse.c: New file.
55269         * lib/unistdio/u16-snprintf.c: New file.
55270         * lib/unistdio/u16-sprintf.c: New file.
55271         * lib/unistdio/u16-vasnprintf.c: New file.
55272         * lib/unistdio/u16-vasprintf.c: New file.
55273         * lib/unistdio/u16-vsnprintf.c: New file.
55274         * lib/unistdio/u16-vsprintf.c: New file.
55275         * lib/unistdio/u16-u16-asnprintf.c: New file.
55276         * lib/unistdio/u16-u16-asprintf.c: New file.
55277         * lib/unistdio/u16-u16-snprintf.c: New file.
55278         * lib/unistdio/u16-u16-sprintf.c: New file.
55279         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55280         * lib/unistdio/u16-u16-vasprintf.c: New file.
55281         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55282         * lib/unistdio/u16-u16-vsprintf.c: New file.
55283         * lib/unistdio/u32-asnprintf.c: New file.
55284         * lib/unistdio/u32-asprintf.c: New file.
55285         * lib/unistdio/u32-printf-parse.c: New file.
55286         * lib/unistdio/u32-snprintf.c: New file.
55287         * lib/unistdio/u32-sprintf.c: New file.
55288         * lib/unistdio/u32-vasnprintf.c: New file.
55289         * lib/unistdio/u32-vasprintf.c: New file.
55290         * lib/unistdio/u32-vsnprintf.c: New file.
55291         * lib/unistdio/u32-vsprintf.c: New file.
55292         * lib/unistdio/u32-u32-asnprintf.c: New file.
55293         * lib/unistdio/u32-u32-asprintf.c: New file.
55294         * lib/unistdio/u32-u32-snprintf.c: New file.
55295         * lib/unistdio/u32-u32-sprintf.c: New file.
55296         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55297         * lib/unistdio/u32-u32-vasprintf.c: New file.
55298         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55299         * lib/unistdio/u32-u32-vsprintf.c: New file.
55300         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55301         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55302         * tests/unistdio/test-ulc-printf1.h: New file.
55303         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55304         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55305         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55306         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55307         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55308         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55309         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55310         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55311         * tests/unistdio/test-u8-asnprintf1.c: New file.
55312         * tests/unistdio/test-u8-asnprintf1.h: New file.
55313         * tests/unistdio/test-u8-printf1.h: New file.
55314         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55315         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55316         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55317         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55318         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55319         * tests/unistdio/test-u8-vasprintf1.c: New file.
55320         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55321         * tests/unistdio/test-u8-vsprintf1.c: New file.
55322         * tests/unistdio/test-u16-asnprintf1.c: New file.
55323         * tests/unistdio/test-u16-asnprintf1.h: New file.
55324         * tests/unistdio/test-u16-printf1.h: New file.
55325         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55326         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55327         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55328         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55329         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55330         * tests/unistdio/test-u16-vasprintf1.c: New file.
55331         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55332         * tests/unistdio/test-u16-vsprintf1.c: New file.
55333         * tests/unistdio/test-u32-asnprintf1.c: New file.
55334         * tests/unistdio/test-u32-asnprintf1.h: New file.
55335         * tests/unistdio/test-u32-printf1.h: New file.
55336         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55337         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55338         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55339         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55340         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55341         * tests/unistdio/test-u32-vasprintf1.c: New file.
55342         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55343         * tests/unistdio/test-u32-vsprintf1.c: New file.
55344         * modules/unistdio/base: New file.
55345         * modules/unistdio/u-printf-args: New file.
55346         * modules/unistdio/ulc-asnprintf: New file.
55347         * modules/unistdio/ulc-asprintf: New file.
55348         * modules/unistdio/ulc-fprintf: New file.
55349         * modules/unistdio/ulc-printf-parse: New file.
55350         * modules/unistdio/ulc-snprintf: New file.
55351         * modules/unistdio/ulc-sprintf: New file.
55352         * modules/unistdio/ulc-vasnprintf: New file.
55353         * modules/unistdio/ulc-vasprintf: New file.
55354         * modules/unistdio/ulc-vfprintf: New file.
55355         * modules/unistdio/ulc-vsnprintf: New file.
55356         * modules/unistdio/ulc-vsprintf: New file.
55357         * modules/unistdio/u8-asnprintf: New file.
55358         * modules/unistdio/u8-asprintf: New file.
55359         * modules/unistdio/u8-printf-parse: New file.
55360         * modules/unistdio/u8-snprintf: New file.
55361         * modules/unistdio/u8-sprintf: New file.
55362         * modules/unistdio/u8-vasnprintf: New file.
55363         * modules/unistdio/u8-vasprintf: New file.
55364         * modules/unistdio/u8-vsnprintf: New file.
55365         * modules/unistdio/u8-vsprintf: New file.
55366         * modules/unistdio/u8-u8-asnprintf: New file.
55367         * modules/unistdio/u8-u8-asprintf: New file.
55368         * modules/unistdio/u8-u8-snprintf: New file.
55369         * modules/unistdio/u8-u8-sprintf: New file.
55370         * modules/unistdio/u8-u8-vasnprintf: New file.
55371         * modules/unistdio/u8-u8-vasprintf: New file.
55372         * modules/unistdio/u8-u8-vsnprintf: New file.
55373         * modules/unistdio/u8-u8-vsprintf: New file.
55374         * modules/unistdio/u16-asnprintf: New file.
55375         * modules/unistdio/u16-asprintf: New file.
55376         * modules/unistdio/u16-printf-parse: New file.
55377         * modules/unistdio/u16-snprintf: New file.
55378         * modules/unistdio/u16-sprintf: New file.
55379         * modules/unistdio/u16-vasnprintf: New file.
55380         * modules/unistdio/u16-vasprintf: New file.
55381         * modules/unistdio/u16-vsnprintf: New file.
55382         * modules/unistdio/u16-vsprintf: New file.
55383         * modules/unistdio/u16-u16-asnprintf: New file.
55384         * modules/unistdio/u16-u16-asprintf: New file.
55385         * modules/unistdio/u16-u16-snprintf: New file.
55386         * modules/unistdio/u16-u16-sprintf: New file.
55387         * modules/unistdio/u16-u16-vasnprintf: New file.
55388         * modules/unistdio/u16-u16-vasprintf: New file.
55389         * modules/unistdio/u16-u16-vsnprintf: New file.
55390         * modules/unistdio/u16-u16-vsprintf: New file.
55391         * modules/unistdio/u32-asnprintf: New file.
55392         * modules/unistdio/u32-asprintf: New file.
55393         * modules/unistdio/u32-printf-parse: New file.
55394         * modules/unistdio/u32-snprintf: New file.
55395         * modules/unistdio/u32-sprintf: New file.
55396         * modules/unistdio/u32-vasnprintf: New file.
55397         * modules/unistdio/u32-vasprintf: New file.
55398         * modules/unistdio/u32-vsnprintf: New file.
55399         * modules/unistdio/u32-vsprintf: New file.
55400         * modules/unistdio/u32-u32-asnprintf: New file.
55401         * modules/unistdio/u32-u32-asprintf: New file.
55402         * modules/unistdio/u32-u32-snprintf: New file.
55403         * modules/unistdio/u32-u32-sprintf: New file.
55404         * modules/unistdio/u32-u32-vasnprintf: New file.
55405         * modules/unistdio/u32-u32-vasprintf: New file.
55406         * modules/unistdio/u32-u32-vsnprintf: New file.
55407         * modules/unistdio/u32-u32-vsprintf: New file.
55408         * modules/unistdio/ulc-asnprintf-tests: New file.
55409         * modules/unistdio/ulc-vasnprintf-tests: New file.
55410         * modules/unistdio/ulc-vasprintf-tests: New file.
55411         * modules/unistdio/ulc-vsnprintf-tests: New file.
55412         * modules/unistdio/ulc-vsprintf-tests: New file.
55413         * modules/unistdio/u8-asnprintf-tests: New file.
55414         * modules/unistdio/u8-vasnprintf-tests: New file.
55415         * modules/unistdio/u8-vasprintf-tests: New file.
55416         * modules/unistdio/u8-vsnprintf-tests: New file.
55417         * modules/unistdio/u8-vsprintf-tests: New file.
55418         * modules/unistdio/u16-asnprintf-tests: New file.
55419         * modules/unistdio/u16-vasnprintf-tests: New file.
55420         * modules/unistdio/u16-vasprintf-tests: New file.
55421         * modules/unistdio/u16-vsnprintf-tests: New file.
55422         * modules/unistdio/u16-vsprintf-tests: New file.
55423         * modules/unistdio/u32-asnprintf-tests: New file.
55424         * modules/unistdio/u32-vasnprintf-tests: New file.
55425         * modules/unistdio/u32-vasprintf-tests: New file.
55426         * modules/unistdio/u32-vsnprintf-tests: New file.
55427         * modules/unistdio/u32-vsprintf-tests: New file.
55428         * MODULES.html.sh (Unicode string functions): Add the new modules.
55429
55430 2007-07-01  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/sprintf.c (sprintf): Limit the available length estimation,
55433         to avoid address wraparound.
55434         * lib/vsprintf.c (vsprintf): Likewise.
55435         * modules/sprintf-posix (Dependencies): Add stdint.
55436         * modules/vsprintf-posix (Dependencies): Likewise.
55437
55438 2007-07-01  Bruno Haible  <bruno@clisp.org>
55439
55440         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55441         Windows PATH as well. Conservative double-quoting. Comments.
55442
55443 2007-07-01  Bruno Haible  <bruno@clisp.org>
55444             Eric Blake  <ebb9@byu.net>
55445             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55446
55447         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55448         empty components in $PATH, denoting '.'.
55449
55450 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55451
55452         * gnulib-tool: Fix indentation.
55453         (func_create_megatestdir): Likewise.
55454         Report by Bruno Haible.
55455
55456 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55457
55458         Sync from Automake.
55459         * build-aux/gnupload: Fix shell portability issues with for loops.
55460         Report by Karl Berry.
55461
55462 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55463
55464         * build-aux/maint.mk (POURL): Use translationproject.org.
55465
55466 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55467             Bruno Haible  <bruno@clisp.org>
55468
55469         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55470         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55471         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55472         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55473         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55474
55475 2007-06-27  Bruno Haible  <bruno@clisp.org>
55476
55477         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55478         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55479
55480 2007-06-26  Karl Berry  <karl@gnu.org>
55481
55482         * MODULES.html.sh: remove xreadlink-with-size.
55483
55484 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55487         method that I hope also handles the double-include problem noted
55488         by Bruno Haible in
55489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55490
55491 2007-06-23  Bruno Haible  <bruno@clisp.org>
55492
55493         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55494         Don't let the 'mostlyclean' target fail if the last subdirectory could
55495         not be removed.
55496         Reported by Karl Berry.
55497
55498 2007-06-23  Bruno Haible  <bruno@clisp.org>
55499
55500         * gnulib-tool (echo): Add a speedier workaround for ksh.
55501         * tests/test-echo.sh: Likewise.
55502
55503 2007-06-23  Bruno Haible  <bruno@clisp.org>
55504
55505         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55506         * tests/test-echo.sh: Likewise.
55507
55508 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55509
55510         * gnulib-tool (IFS): Initialize early, so we don't set it to
55511         empty later.
55512         (self_abspathname): Rewrite algorithm to set it, reindent.
55513         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55514         (func_create_megatestdir): Merge some sed scripts.
55515
55516 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55517
55518         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55519         exposed by Sun Studio 11 cc on Solaris 8.
55520
55521 2007-06-22  Bruno Haible  <bruno@clisp.org>
55522
55523         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55524         backslashes.
55525         * tests/test-echo.sh: New file.
55526
55527 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55528
55529         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55530         simplify `sed_replace_build_aux' scripts, they are portable but
55531         echoing them with `echo' is not.
55532         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55533
55534 2007-06-21  Karl Berry  <karl@gnu.org>
55535
55536         * config/srclist.txt: guess we can't handle the licenses via
55537         srclist at the moment.
55538
55539 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55540
55541         * MODULES.html.sh: Add include_next.
55542         * modules/include_next: New file.
55543
55544 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55545
55546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55547         INCLUDE_NEXT.
55548         (gl_CHECK_NEXT_HEADERS): New macro.
55549         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55550         the obsolescent gl_ABSOLUTE_HEADER.
55551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55552         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55553         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55554         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55555         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55556         * m4/math_h.m4 (gl_MATH_H): Likewise.
55557         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55558         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55559         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55560         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55561         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55562         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55563         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55566         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55567         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55568         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55569         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55570         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55571         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55572         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55573         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55574         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55575         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55576         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55577         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55578         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55579         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55580         * lib/float_.h: Likewise.
55581         * lib/inttypes_.h: Likewise.
55582         * lib/math_.h: Likewise.
55583         * lib/search_.h: Likewise.
55584         * lib/signal_.h: Likewise.
55585         * lib/stdint_.h: Likewise.
55586         * lib/stdio_.h: Likewise.
55587         * lib/stdlib_.h: Likewise.
55588         * lib/string_.h: Likewise.
55589         * lib/sys_stat_.h: Likewise.
55590         * lib/sys_time_.h: Likewise.
55591         * lib/time_.h: Likewise.
55592         * lib/unistd_.h: Likewise.
55593         * lib/wchar_.h: Likewise.
55594         * lib/wctype_.h: Likewise.
55595         * lib/dirent_.h: Likewise.
55596         * lib/iconv_.h: Likewise.
55597         * lib/locale_.h: Likewise.
55598         * lib/netinet_in_.h: Likewise.
55599         * lib/sys_select_.h: Likewise.
55600         * lib/sys_socket_.h: Likewise.
55601         * lib/sysexits_.h: Likewise.
55602         * modules/fcntl (Depends-on): Depend on include_next, not
55603         absolute_header.
55604         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55605         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55606         * modules/fchdir: Likewise.
55607         * modules/float: Likewise.
55608         * modules/iconv_open: Likewise.
55609         * modules/inttypes: Likewise.
55610         * modules/locale: Likewise.
55611         * modules/math: Likewise.
55612         * modules/netinet_in: Likewise.
55613         * modules/search: Likewise.
55614         * modules/signal: Likewise.
55615         * modules/stdint: Likewise.
55616         * modules/stdio: Likewise.
55617         * modules/stdlib: Likewise.
55618         * modules/string: Likewise.
55619         * modules/sys_select: Likewise.
55620         * modules/sys_socket: Likewise.
55621         * modules/sys_stat: Likewise.
55622         * modules/sys_time: Likewise.
55623         * modules/sysexits: Likewise.
55624         * modules/time: Likewise.
55625         * modules/unistd: Likewise.
55626         * modules/wchar: Likewise.
55627         * modules/wctype: Likewise.
55628         * modules/sys_stat: Change maintainer to "all".
55629         * modules/unistd: Likewise.
55630
55631 2007-06-20  Karl Berry  <karl@gnu.org>
55632
55633         * config/srclist.txt: track www changes in license files.
55634
55635 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55636
55637         * build-aux/bootstrap: Remove stray dot.
55638         Make sure build_aux settings are honored when linking
55639         gnulib_extra_files.
55640
55641 2007-06-19  Eric Blake  <ebb9@byu.net>
55642
55643         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55644         Allow compilation on cygwin.
55645
55646 2007-06-19  Jim Meyering  <jim@meyering.net>
55647
55648         xreadlink-with-size: Remove module.  No longer used.
55649         Ex-callers now use xreadlink or mreadlink-with-size.
55650         * modules/xreadlink-with-size: Remove module.
55651         * lib/xreadlink-with-size.c: Remove file.
55652         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55653         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55654         just before the function definition *is* accurate.
55655
55656         Eliminate one way canonicalize_filename_mode could exit.
55657         * lib/canonicalize.c (canonicalize_filename_mode):
55658         Use mreadlink_with_size, not xreadlink_with_size.
55659
55660 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         Detect porting problems to FreeBSD/arm, which has time_t wider than
55663         long int.  Original problem reported for GNU diff by Xin Li in
55664         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55665         * modules/getdate (Depends-on): Add intprops, verify.
55666         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55667         is an integer type no wider than long int.
55668
55669 2007-06-18  Jim Meyering  <jim@meyering.net>
55670
55671         New module: mreadlink-with-size.
55672         * MODULES.html.sh: Add mreadlink-with-size.
55673         * modules/mreadlink-with-size: New module
55674         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55675         not xreadlink-with-size.
55676         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55677
55678 2007-06-16  Bruno Haible  <bruno@clisp.org>
55679
55680         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55681         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55682         Reported by Gary V. Vaughan <gary@gnu.org>.
55683
55684 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55685
55686         Revamp lchown so that it lives in unistd.h where it belongs.
55687         * lib/lchown.h: Remove.
55688         * lib/dirchownmod.c: Don't include lib/lchown.h.
55689         * lib/fchownat.c: Likewise.
55690         * lib/openat.c: Likewise.
55691         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55692         does not follow symlinks.
55693         (EOPNOTSUPP): Define if not defined.
55694         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55695         is defined to 0.
55696         (lchown): New decl.
55697         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55698         Do not check for lchown decl.
55699         Set REPLACE_LCHOWN.
55700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55701         REPLACE_LCHOWN.
55702         * modules/chown: Make it clear it follows symlinks.
55703         * modules/lchown: Make it clear it doesn't follow symlinks.
55704         (Files): Remove lib/lchown.h
55705         (Depends-on): Add unistd.
55706         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55707         (Include): Include <unistd.h>, not "lchown.h".
55708         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55709         REPLACE_LCHOWN.
55710
55711 2007-06-15  Jim Meyering  <jim@meyering.net>
55712
55713         Change license (GPL to LGPL) of fsusage and dependents.
55714         * modules/fsusage (License): Change to LGPL.
55715         * modules/full-read (License): Likewise.
55716         * modules/full-write (License): Likewise.
55717         * modules/safe-read (License): Likewise.
55718         * modules/safe-write (License): Likewise.
55719
55720 2007-06-14  Ben Pfaff  <blp@gnu.org>
55721
55722         Missing part of allocsa -> malloca transition.
55723         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55724         gl_MALLOCA.
55725
55726 2007-06-12  Bruno Haible  <bruno@clisp.org>
55727
55728         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55729         to ia64, x86_64, i386.
55730         Reported by Eric Blake.
55731
55732 2007-06-12  Bruno Haible  <bruno@clisp.org>
55733
55734         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55735         cross-compiling to x86_64.
55736
55737 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55738
55739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55740         glitch reported by Ralf Wildenhues in
55741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55742
55743         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55744         Vin Shelton.
55745
55746 2007-06-11  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55749         replacement string.
55750         Reported by Eric Blake.
55751
55752 2007-06-10  Bruno Haible  <bruno@clisp.org>
55753
55754         Prepare vasnprintf code for use with Unicode strings.
55755         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55756         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55757         TYPE_U32_STRING.
55758         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55759         a_u32_string variants.
55760         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55761         * lib/printf-args.c: Don't include config.h and the specification
55762         header if PRINTF_FETCHARGS is already defined.
55763         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55764         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55765         TYPE_U16_STRING, TYPE_U32_STRING.
55766         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55767         u16_directive, u16_directives, u32_directive, u32_directives): New
55768         types.
55769         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55770         New declarations.
55771         * lib/printf-parse.c: Don't include config.h and the specification
55772         header if PRINTF_PARSE is already defined. Eliminate the set of
55773         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55774         them now. Include c-ctype.h.
55775         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55776         directive and CHAR_T_ONLY_ASCII.
55777         * lib/vasnprintf.c: Don't include config.h and the specification header
55778         if VASNPRINTF is already defined.
55779         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55780         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55781         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55782         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55783         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55784         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55785         code accordingly.
55786         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55787         pad_ourselves also in this case, with the 'c' and 's' directives, and
55788         with a different notion of "width".
55789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55790
55791 2007-06-10  Bruno Haible  <bruno@clisp.org>
55792
55793         * modules/unistr/u32-mbsnlen: New file.
55794         * lib/unistr/u32-mbsnlen.c: New file.
55795
55796         * modules/unistr/u16-mbsnlen: New file.
55797         * lib/unistr/u16-mbsnlen.c: New file.
55798
55799         * modules/unistr/u8-mbsnlen: New file.
55800         * lib/unistr/u8-mbsnlen.c: New file.
55801
55802         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55803         declarations.
55804
55805 2007-06-10  Bruno Haible  <bruno@clisp.org>
55806
55807         * lib/string_.h (mbsnlen): New declaration.
55808         * lib/mbsnlen.c: New file.
55809         * m4/mbsnlen.m4: New file.
55810         * modules/mbsnlen: New file.
55811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55812         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55813         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55814
55815 2007-06-10  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55818
55819 2007-06-10  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55822         * lib/mbuiter.h: Likewise.
55823
55824 2007-06-10  Bruno Haible  <bruno@clisp.org>
55825
55826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55827         declaration.
55828
55829 2007-06-10  Karl Berry  <karl@gnu.org>
55830
55831         * config/srclist.txt: remove gettext entries, Bruno prefers
55832         to update individually.
55833
55834 2007-06-10  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55837         'maxlen'. Ensure only length + width bytes are allocated, not
55838         length + 1 + width.
55839
55840 2007-06-09  Bruno Haible  <bruno@clisp.org>
55841
55842         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55843         (CHAR_T): Remove macro.
55844         (VASNPRINTF): Update.
55845
55846 2007-06-09  Bruno Haible  <bruno@clisp.org>
55847
55848         * MODULES.html.sh (Unicode string functions): Add the new modules.
55849
55850         * modules/uniconv/u32-conv-to-enc: New file.
55851         * lib/uniconv/u32-conv-to-enc.c: New file.
55852         * modules/uniconv/u32-conv-to-enc-tests: New file.
55853         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55854
55855         * modules/uniconv/u16-conv-to-enc: New file.
55856         * lib/uniconv/u16-conv-to-enc.c: New file.
55857         * lib/uniconv/u-conv-to-enc.h: New file.
55858         * modules/uniconv/u16-conv-to-enc-tests: New file.
55859         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55860
55861         * modules/uniconv/u8-conv-to-enc: New file.
55862         * lib/uniconv/u8-conv-to-enc.c: New file.
55863         * modules/uniconv/u8-conv-to-enc-tests: New file.
55864         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55865
55866         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55867         u32_conv_to_encoding): New declarations.
55868
55869 2007-06-09  Bruno Haible  <bruno@clisp.org>
55870
55871         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55872
55873 2007-06-09  Bruno Haible  <bruno@clisp.org>
55874
55875         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55876         * modules/malloca: Renamed from modules/allocsa, updated.
55877         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55878         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55879         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55880         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55881         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55882         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55883         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55884         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55885         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55886         * modules/c-strcasestr (Depends-on): Update.
55887         * lib/c-strcasestr.c: Update.
55888         * modules/c-strstr (Depends-on): Update.
55889         * lib/c-strstr.c: Update.
55890         * modules/canonicalize-lgpl (Depends-on): Update.
55891         * lib/canonicalize-lgpl.c: Update.
55892         * modules/clean-temp (Depends-on): Update.
55893         * lib/clean-temp.c: Update.
55894         * modules/csharpcomp (Depends-on): Update.
55895         * lib/csharpcomp.c: Update.
55896         * modules/csharpexec (Depends-on): Update.
55897         * lib/csharpexec.c: Update.
55898         * modules/javacomp (Depends-on): Update.
55899         * lib/javacomp.c: Update.
55900         * modules/javaexec (Depends-on): Update.
55901         * lib/javaexec.c: Update.
55902         * modules/mbscasestr (Depends-on): Update.
55903         * lib/mbscasestr.c: Update.
55904         * modules/mbsstr (Depends-on): Update.
55905         * lib/mbsstr.c: Update.
55906         * modules/setenv (Depends-on): Update.
55907         * lib/setenv.c: Update.
55908         * modules/strcasestr (Depends-on): Update.
55909         * lib/strcasestr.c: Update.
55910         * modules/striconveha (Depends-on): Update.
55911         * lib/striconveha.c: Update.
55912         * modules/relocatable-prog-wrapper (Files): Update.
55913         * lib/relocwrapper.c: Update.
55914         * build-aux/install-reloc: Update.
55915         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55916
55917 2007-06-08  Bruno Haible  <bruno@clisp.org>
55918
55919         Port to uClibc.
55920         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55921         * lib/fpurge.c (fpurge): Likewise.
55922         * lib/freading.c (freading): Likewise.
55923         * lib/fseeko.c (rpl_fseeko): Likewise.
55924         * lib/fseterr.c (fseterr): Likewise.
55925         * lib/fwriting.c (fwriting): Likewise.
55926         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55927
55928 2007-06-08  Bruno Haible  <bruno@clisp.org>
55929
55930         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55931         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55932         * modules/gettext (Files): Add m4/intlmacosx.m4.
55933
55934 2007-06-07  Bruno Haible  <bruno@clisp.org>
55935
55936         * modules/localename-tests: New file.
55937         * tests/test-localename.c: New file.
55938
55939         New module 'localename'.
55940         * lib/localename.h: New file.
55941         * lib/localename.c: New file, from GNU gettext.
55942         * m4/localename.m4: New file.
55943         * modules/localename: New file.
55944
55945 2007-06-07  Bruno Haible  <bruno@clisp.org>
55946
55947         Work around the lack of <wchar.h> on some builds of uClibc.
55948         * doc/headers/wchar.texi: Update.
55949         * lib/wchar_.h: Include <wchar.h> only if it exists.
55950         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55951         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55952         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55953         doesn't exist.
55954         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55955         * modules/mbfile (Depends-on): Add wchar.
55956         * modules/mbiter (Depends-on): Likewise.
55957         * modules/mbuiter (Depends-on): Likewise.
55958         Reported by Simon Josefsson.
55959
55960 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55961
55962         Work around problem reported by Steven M. Schweda in
55963         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55964         Tru64 5.1B with the Compaq compiler environment installed declares
55965         an 'isblank' function but does not define it in the C library.
55966         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55967         * lib/regex_internal.h (isblank): Likewise.
55968         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55969         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55970
55971 2007-06-05  Bruno Haible  <bruno@clisp.org>
55972
55973         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55974         ia64.
55975         * modules/printf-safe: New file.
55976         * modules/fprintf-posix (Depends-on): Add printf-safe.
55977         * modules/printf-posix (Depends-on): Likewise.
55978         * modules/snprintf-posix (Depends-on): Likewise.
55979         * modules/sprintf-posix (Depends-on): Likewise.
55980         * modules/vasnprintf-posix (Depends-on): Likewise.
55981         * modules/vasprintf-posix (Depends-on): Likewise.
55982         * modules/vfprintf-posix (Depends-on): Likewise.
55983         * modules/vprintf-posix (Depends-on): Likewise.
55984         * modules/vsnprintf-posix (Depends-on): Likewise.
55985         * modules/vsprintf-posix (Depends-on): Likewise.
55986         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55987         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55988         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55989         "no" on i386, x86_64, ia64.
55990         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55991         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55992         on i386, x86_64, ia64.
55993         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55994         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55995         on i386, x86_64, ia64.
55996         * tests/test-vasnprintf-posix.c: Include float.h.
55997         (LDBL80_WORDS): New macro.
55998         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55999         on i386, x86_64, ia64.
56000         * tests/test-vasprintf-posix.c: Include float.h.
56001         (LDBL80_WORDS): New macro.
56002         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56003         on i386, x86_64, ia64.
56004         * tests/test-snprintf-posix.c: Include float.h.
56005         * tests/test-sprintf-posix.c: Likewise.
56006         * tests/test-vsnprintf-posix.c: Likewise.
56007         * tests/test-vsprintf-posix.c: Likewise.
56008
56009 2007-06-05  Bruno Haible  <bruno@clisp.org>
56010
56011         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56012         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56013         non-IEEE numbers on i386, x86_64, ia64.
56014         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56015         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56016         * tests/test-isnanl.h: Include float.h.
56017         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56018
56019 2007-06-05  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56022         also the %a / %A. Handle the %a / %A code before this extra handling.
56023
56024 2007-06-05  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56027         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56028
56029 2007-06-05  Bruno Haible  <bruno@clisp.org>
56030
56031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56032         typo in variable name.
56033
56034 2007-06-05  Eric Blake  <ebb9@byu.net>
56035
56036         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56037         Reported by Simon Josefsson.
56038
56039 2007-06-04  Bruno Haible  <bruno@clisp.org>
56040
56041         Avoid test failures on some PowerPC platforms.
56042         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56043         Define differently for PowerPC.
56044         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56045         Reported by Gary V. Vaughan <gary@gnu.org>.
56046
56047 2007-06-02  Bruno Haible  <bruno@clisp.org>
56048
56049         Fix test-stdint failure on FreeBSD/ia64.
56050         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56051         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56052         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56053         * doc/headers/stdint.texi: Update.
56054
56055 2007-06-01  Bruno Haible  <bruno@clisp.org>
56056
56057         * tests/test-binary-io.c (main): Pass a third argument to open().
56058         Reported by Gary V. Vaughan <gary@gnu.org>.
56059
56060 2007-06-01  Bruno Haible  <bruno@clisp.org>
56061
56062         * doc/functions/frexpl.texi: Update for mingw.
56063
56064 2007-06-01  Bruno Haible  <bruno@clisp.org>
56065
56066         * tests/test-lseek.c (main): Disable test of errno for invalid third
56067         argument.
56068         * doc/functions/lseek.texi: Update.
56069         Reported by Gary V. Vaughan <gary@gnu.org>.
56070
56071 2007-05-28  Bruno Haible  <bruno@clisp.org>
56072
56073         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56074
56075 2007-05-31  Eric Blake  <ebb9@byu.net>
56076
56077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56078         cross compiling.
56079
56080 2007-05-30  Eric Blake  <ebb9@byu.net>
56081         and Bruno Haible  <bruno@clisp.org>
56082
56083         Work around mingw test failures exposed by m4-1.4.9b.
56084         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56085         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56086         moment.
56087
56088 2007-05-30  Bruno Haible  <bruno@clisp.org>
56089
56090         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56091         assuming that they are closed. Needed on HP-UX 11.
56092
56093 2007-05-29  Bruno Haible  <bruno@clisp.org>
56094
56095         Fix a problem with #include_next.
56096         * lib/dirent_.h: Split the double-inclusion guard.
56097         * lib/fcntl_.h: Likewise.
56098         * lib/float_.h: Likewise.
56099         * lib/iconv_.h: Likewise.
56100         * lib/inttypes_.h: Likewise.
56101         * lib/locale_.h: Likewise.
56102         * lib/math_.h: Likewise.
56103         * lib/netinet_in_.h: Likewise.
56104         * lib/search_.h: Likewise.
56105         * lib/signal_.h: Likewise.
56106         * lib/stdint_.h: Likewise.
56107         * lib/stdio_.h: Likewise.
56108         * lib/stdlib_.h: Likewise.
56109         * lib/string_.h: Likewise.
56110         * lib/sys_select_.h: Likewise.
56111         * lib/sys_socket_.h: Likewise.
56112         * lib/sys_stat_.h: Likewise.
56113         * lib/sys_time_.h: Likewise.
56114         * lib/sysexits_.h: Likewise.
56115         * lib/time_.h: Likewise.
56116         * lib/unistd_.h: Likewise.
56117         * lib/wchar_.h: Likewise.
56118         * lib/wctype_.h: Likewise.
56119
56120 2007-05-29  Bruno Haible  <bruno@clisp.org>
56121
56122         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56123         for the moment.
56124
56125 2007-05-29  Bruno Haible  <bruno@clisp.org>
56126
56127         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56128         invocation.
56129         Reported by Eric Blake.
56130
56131 2007-05-29  Bruno Haible  <bruno@clisp.org>
56132
56133         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56134         compiling case.
56135
56136 2007-05-29  Eric Blake  <ebb9@byu.net>
56137             Bruno Haible  <bruno@clisp.org>
56138
56139         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56140         cross compiles.
56141
56142 2007-05-28  Eric Blake  <ebb9@byu.net>
56143
56144         * modules/closein-tests (test_closein_LDADD): Support test on
56145         cygwin with libtool.
56146
56147 2007-05-28  Bruno Haible  <bruno@clisp.org>
56148
56149         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56150         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56151         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56152         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56153         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56154         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56155         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56156         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56157         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56158
56159 2007-05-28  Eric Blake  <ebb9@byu.net>
56160
56161         Unconditionally include <config.h> in unit tests.
56162         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56163         * tests/test-allocsa.c, tests/test-arcfour.c,
56164         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56165         tests/test-array_list.c, tests/test-array_oset.c,
56166         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56167         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56168         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56169         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56170         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56171         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56172         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56173         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56174         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56175         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56176         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56177         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56178         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56179         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56180         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56181         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56182         test-md5.c, test-memmem.c, test-printf-posix.c,
56183         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56184         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56185         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56186         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56187         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56188         test-vasnprintf-posix2.c, test-vasnprintf.c,
56189         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56190         test-vfprintf-posix.c, test-vprintf-posix.c,
56191         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56192         test-xvasprintf.c: Likewise.
56193
56194 2007-05-28  Bruno Haible  <bruno@clisp.org>
56195
56196         * gnulib-tool (func_import): Remember the --with-tests command-line
56197         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56198         Reported by Eric Blake.
56199
56200 2007-05-28  Bruno Haible  <bruno@clisp.org>
56201
56202         * modules/ftell-tests: New file.
56203         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56204         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56205
56206         * lib/ftell.c: New file.
56207         * modules/ftell: New file.
56208         * m4/ftell.m4: New file.
56209         * doc/functions/ftell.texi: Update.
56210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56211         REPLACE_FTELL.
56212         * lib/stdio_.h (rpl_ftell): New declaration.
56213         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56214         REPLACE_FTELL.
56215
56216 2007-05-28  Eric Blake  <ebb9@byu.net>
56217
56218         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56219
56220 2007-05-28  Bruno Haible  <bruno@clisp.org>
56221
56222         * modules/fseek-tests: New file.
56223         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56224         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56225
56226         * lib/fseek.c: New file.
56227         * modules/fseek: New file.
56228         * m4/fseek.m4: New file.
56229         * doc/functions/fseek.texi: Update.
56230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56231         REPLACE_FSEEK.
56232         * lib/stdio_.h (rpl_fseek): New declaration.
56233         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56234         REPLACE_FSEEK.
56235
56236 2007-05-28  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/stdio_.h (fflush): More comments.
56239
56240 2007-05-28  Bruno Haible  <bruno@clisp.org>
56241
56242         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56243         runtime test.
56244
56245 2007-05-28  Eric Blake  <ebb9@byu.net>
56246
56247         Improve lseek module.
56248         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56249         * lib/unistd_.h (lseek): Scale back link warning message.
56250         * tests/test-lseek.c: Beef up test.
56251         * tests/test-lseek.sh: Exercise more facets of lseek.
56252         Reported by Bruno Haible.
56253
56254 2007-05-28  Bruno Haible  <bruno@clisp.org>
56255
56256         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56257         to define.
56258
56259 2007-05-27  Bruno Haible  <bruno@clisp.org>
56260
56261         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56262
56263 2007-05-27  Bruno Haible  <bruno@clisp.org>
56264
56265         * modules/openmp: New file.
56266         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56267         Noah Misch.
56268
56269 2007-05-26  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/chdir-long (Depends-on): Add fchdir.
56272         * modules/chdir-safer (Depends-on): Likewise.
56273         * modules/fts (Depends-on): Likewise.
56274         * modules/fts-lgpl (Depends-on): Likewise.
56275         * modules/openat (Depends-on): Likewise.
56276         * modules/savewd (Depends-on): Likewise.
56277
56278 2007-05-24  Eric Blake  <ebb9@byu.net>
56279
56280         Fix lseek on mingw.
56281         * modules/lseek: New module.
56282         * m4/lseek.m4: New file.
56283         * lib/lseek.c: New file.
56284         * modules/lseek-tests: New file.
56285         * tests/test-lseek.c: New file.
56286         * tests/test-lseek.sh: New file.
56287         * MODULES.html.sh: Document lseek module.
56288         * modules/fflush (Depends-on): Add lseek, fseeko.
56289         * modules/fseeko (Depends-on): Likewise.
56290         * modules/ftello (Depends-on): Likewise.
56291         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56292         broken.
56293         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56294         broken.
56295         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56296         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56297         * lib/ftello.c (rpl_ftello): Likewise.
56298         * tests/test-fseeko.c (main): Test this.
56299         * tests/test-fseeko.sh: Likewise.
56300         * tests/test-ftello.c (main): Likewise.
56301         * tests/test-ftello.sh: Likewise.
56302         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56303         implies replacing fseek.
56304         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56305         HAVE_FTELLO.
56306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56307         * modules/unistd (Makefile.am): Likewise.
56308         * lib/unistd_.h (lseek): Declare a replacement.
56309         * doc/functions/lseek.texi (lseek): Document this fix.
56310         * doc/functions/fseek.texi (fseek): Likewise.
56311         * doc/functions/ftell.texi (ftell): Likewise.
56312
56313 2007-05-24  Bruno Haible  <bruno@clisp.org>
56314
56315         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56316         in the printed representation of a NaN.
56317         * tests/test-vasprintf-posix.c (test_function): Likewise.
56318         * tests/test-snprintf-posix.h (test_function): Likewise.
56319         * tests/test-sprintf-posix.h (test_function): Likewise.
56320         Reported by Eric Blake.
56321
56322 2007-05-23  Eric Blake  <ebb9@byu.net>
56323
56324         Fix fseeko/ftello on cygwin 1.5.24.
56325         * doc/functions/fseeko.texi (fseeko): Document the fix.
56326         * doc/functions/ftello.texi (ftello): Document the fix.
56327         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56328         * doc/functions/stdout.text (stdout): New file.
56329         * doc/functions/stderr.text (stderr): New file.
56330         * doc/gnulib.texi (Function Substitutes): Use new files.
56331         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56332         prior to 1.7.0.
56333         * tests/test-ftello.c (main): Likewise for ftello.
56334         * tests/test-fseeko.sh: New file.
56335         * tests/test-ftello.sh: New file.
56336         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56337         with seekable stdin.
56338         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56339         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56340         (gl_REPLACE_FSEEKO): New macro.
56341         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56342         * modules/fseeko (Files): Distribute fseeko.c.
56343         * modules/ftello (Files): Distribute ftello.c.
56344         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56345         mode.
56346         * lib/ftello.c (rpl_ftello): New file.
56347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56348         fseeko, ftello.
56349         (gl_STDIN_LARGE_OFFSET): New macro.
56350         * modules/stdio (Makefile.am): Perform the replacement.
56351         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56352
56353 2007-05-23  Bruno Haible  <bruno@clisp.org>
56354
56355         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56356         GNULIB_POSIXCHECK is defined.
56357
56358 2007-05-21  Bruno Haible  <bruno@clisp.org>
56359
56360         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56361         Check also the output for NaN arguments. When cross-compiling, guess
56362         no on IRIX.
56363         * lib/vasnprintf.c: Update comments.
56364         * tests/test-vasnprintf-posix.c (strisnan): New function.
56365         (test_function): Use it.
56366         * tests/test-vasprintf-posix.c (strisnan): New function.
56367         (test_function): Use it.
56368         * tests/test-snprintf-posix.h (strisnan): New function.
56369         (test_function): Use it.
56370         * tests/test-sprintf-posix.h (strisnan): New function.
56371         (test_function): Use it.
56372         Reported by Eric Blake.
56373
56374 2007-05-20  Bruno Haible  <bruno@clisp.org>
56375
56376         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56377         numbers that fails on BeOS.
56378         * doc/functions/frexpl.texi: Update.
56379
56380 2007-05-20  Jim Meyering  <jim@meyering.net>
56381
56382         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56383         forced upon us by glibc-2.6.
56384
56385 2007-05-20  Bruno Haible  <bruno@clisp.org>
56386
56387         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56388         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56389         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56390         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56391         NEED_PRINTF_INFINITE.
56392         (is_infinitel): New function.
56393         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56395         gl_PREREQ_VASNPRINTF_INFINITE.
56396         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56397         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56398         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56399         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56400         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56401         gl_PREREQ_VASNPRINTF_INFINITE.
56402         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56404         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56405         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56406         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56407         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56408         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56409         * doc/functions/fprintf.texi: Update.
56410         * doc/functions/printf.texi: Update.
56411         * doc/functions/snprintf.texi: Update.
56412         * doc/functions/sprintf.texi: Update.
56413         * doc/functions/vfprintf.texi: Update.
56414         * doc/functions/vprintf.texi: Update.
56415         * doc/functions/vsnprintf.texi: Update.
56416         * doc/functions/vsprintf.texi: Update.
56417
56418 2007-05-20  Bruno Haible  <bruno@clisp.org>
56419
56420         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56421         was not found in libc.
56422         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56423
56424 2007-05-20  Bruno Haible  <bruno@clisp.org>
56425
56426         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56427         printed as "-nan" instead of "nan".
56428         * tests/test-vasprintf-posix.c (test_function): Likewise.
56429         * tests/test-snprintf-posix.h (test_function): Likewise.
56430         * tests/test-sprintf-posix.h (test_function): Likewise.
56431         Needed for HP-UX 11.
56432
56433 2007-05-20  Jim Meyering  <jim@meyering.net>
56434
56435         Fix buggy test for the fchownat-deref bug.
56436         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56437         symlink required for the run-test.  Without it, this test would
56438         always declare that fchownat doesn't work, and client code would
56439         unnecessarily use the replacement function with fixed libc.
56440         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56441         Reported by Greg Schafer.
56442
56443 2007-05-19  Bruno Haible  <bruno@clisp.org>
56444
56445         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56446         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56447         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56448         Needed for IRIX 6.5 and Solaris 2.5.1.
56449
56450 2007-05-19  Bruno Haible  <bruno@clisp.org>
56451
56452         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56453         (test_function): Skip tests involving -0.0 on platforms where
56454         -0.0 = 0.0.
56455         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56456         (test_function): Skip tests involving -0.0 on platforms where
56457         -0.0 = 0.0.
56458         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56459         (test_function): Skip tests involving -0.0 on platforms where
56460         -0.0 = 0.0.
56461         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56462         (test_function): Skip tests involving -0.0 on platforms where
56463         -0.0 = 0.0.
56464         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56465         tests.
56466         * tests/test-printf-posix.h (test_function): Likewise.
56467         * tests/test-printf-posix.output: Remove all -0.0 related results.
56468         Needed for IRIX 6.5.
56469
56470 2007-05-19  Bruno Haible  <bruno@clisp.org>
56471
56472         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56473         printed as "nan0x7fffffff" instead of "nan".
56474         * tests/test-vasprintf-posix.c (test_function): Likewise.
56475         * tests/test-snprintf-posix.h (test_function): Likewise.
56476         * tests/test-sprintf-posix.h (test_function): Likewise.
56477         * tests/test-fprintf-posix.h (NaN): Remove macro.
56478         (test_function): Remove all NaN related tests.
56479         * tests/test-printf-posix.h (NaN): Remove macro.
56480         (test_function): Remove all NaN related tests.
56481         * tests/test-printf-posix.output: Remove all NaN related results.
56482         Needed for IRIX 6.5.
56483
56484 2007-05-19  Bruno Haible  <bruno@clisp.org>
56485
56486         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56488
56489 2007-05-19  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/float_.h: New file.
56492         * m4/float_h.m4: New file.
56493         * modules/float: New file.
56494         * modules/isnanl (Dependencies): Add float.
56495         * modules/isnanl-nolibm (Dependencies): Likewise.
56496         * modules/mathl (Dependencies): Likewise.
56497         * modules/printf-frexpl (Dependencies): Likewise.
56498         * modules/signbit (Dependencies): Likewise.
56499         * modules/vasnprintf (Dependencies): Likewise.
56500         * doc/headers/float.texi: Update.
56501
56502 2007-05-19  Jim Meyering  <jim@meyering.net>
56503
56504         * lib/utimens.c (gl_futimens): Rename from futimens,
56505         now that glibc-2.6 declares futimens.
56506         * lib/utimens.h: Likewise.
56507
56508 2007-05-19  Bruno Haible  <bruno@clisp.org>
56509
56510         Avoid test failures on mingw.
56511         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56512         * tests/test-printf-posix.sh: Likewise.
56513         * tests/test-vfprintf-posix.sh: Likewise.
56514         * tests/test-vprintf-posix.sh: Likewise.
56515
56516 2007-05-19  Bruno Haible  <bruno@clisp.org>
56517
56518         Fix *printf result for NaN, Inf, -0.0 on mingw.
56519         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56520         * lib/vasnprintf.c: Include math.h and isnan.h.
56521         (is_infinite_or_zero): New function.
56522         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56523         values in the %f, %F, %e, %E, %g, %G directives.
56524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56526         gl_PRINTF_INFINITE and test its result. Invoke
56527         gl_PREREQ_VASNPRINTF_INFINITE.
56528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56529         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56530         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56532         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56533         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56534         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56535         * doc/functions/fprintf.texi: Update.
56536         * doc/functions/printf.texi: Update.
56537         * doc/functions/snprintf.texi: Update.
56538         * doc/functions/sprintf.texi: Update.
56539         * doc/functions/vfprintf.texi: Update.
56540         * doc/functions/vprintf.texi: Update.
56541         * doc/functions/vsnprintf.texi: Update.
56542         * doc/functions/vsprintf.texi: Update.
56543
56544 2007-05-19  Bruno Haible  <bruno@clisp.org>
56545
56546         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56547         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56548         Instead of multiplying with 10^k, set extra_zeroes to k.
56549         (scale10_round_long_double): Remove function.
56550
56551 2007-05-18  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56554         introduced on 2007-05-06.
56555
56556 2007-05-18  Bruno Haible  <bruno@clisp.org>
56557
56558         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56559         %g directives.
56560         * tests/test-vasprintf-posix.c (test_function): Likewise.
56561         * tests/test-snprintf-posix.h (test_function): Likewise.
56562         * tests/test-sprintf-posix.h (test_function): Likewise.
56563
56564 2007-05-18  Bruno Haible  <bruno@clisp.org>
56565
56566         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56567         (strmatch): New function.
56568         (test_function): Test the %f directive on numbers of various exponents.
56569         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56570         (strmatch): New function.
56571         (test_function): Test the %f directive on numbers of various exponents.
56572         * tests/test-snprintf-posix.h (strmatch): New function.
56573         (test_function): Test the %f directive on numbers of various exponents.
56574         * tests/test-sprintf-posix.h (strmatch): New function.
56575         (test_function): Test the %f directive on numbers of various exponents.
56576         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56577         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56578         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56579         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56580
56581 2007-05-18  Bruno Haible  <bruno@clisp.org>
56582
56583         Add support for 'long double' number output.
56584         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56585         * lib/vasnprintf.c: Include math.h and float+.h.
56586         (mp_limb_t): New type.
56587         (GMP_LIMB_BITS): New macro.
56588         (mp_twolimb_t): New type.
56589         (GMP_TWOLIMB_BITS): New macro.
56590         (mpn_t): New type.
56591         (multiply, divide, convert_to_decimal, decode_long_double,
56592         scale10_round_long_double, scale10_round_decimal_long_double,
56593         floorlog10l): New functions.
56594         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56595         for the %f, %F, %e, %E, %g, %G directives.
56596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56597         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56598         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56599         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56601         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56602         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56603         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56604         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56605         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56606         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56607         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56608         * modules/snprintf-posix (Depends-on): Likewise.
56609         * modules/sprintf-posix (Depends-on): Likewise.
56610         * modules/vasnprintf-posix (Depends-on): Likewise.
56611         * modules/vasprintf-posix (Depends-on): Likewise.
56612         * modules/vfprintf-posix (Depends-on): Likewise.
56613         * modules/vsnprintf-posix (Depends-on): Likewise.
56614         * modules/vsprintf-posix (Depends-on): Likewise.
56615         * modules/vasnprintf (Files): Add lib/float+.h.
56616         * doc/functions/fprintf.texi: Update.
56617         * doc/functions/printf.texi: Update.
56618         * doc/functions/snprintf.texi: Update.
56619         * doc/functions/sprintf.texi: Update.
56620         * doc/functions/vfprintf.texi: Update.
56621         * doc/functions/vprintf.texi: Update.
56622         * doc/functions/vsnprintf.texi: Update.
56623         * doc/functions/vsprintf.texi: Update.
56624
56625 2007-05-18  Bruno Haible  <bruno@clisp.org>
56626
56627         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56628
56629 2007-05-18  Bruno Haible  <bruno@clisp.org>
56630
56631         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56632         for printing 64-bit integers. Needed for mingw.
56633
56634 2007-05-18  Bruno Haible  <bruno@clisp.org>
56635
56636         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56637         gl_FUNC_FREXPL_WORKS.
56638         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56639
56640 2007-05-18  Bruno Haible  <bruno@clisp.org>
56641
56642         * modules/frexpl-nolibm-tests: New file.
56643
56644         * modules/frexpl-nolibm: New file.
56645         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56646
56647 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56648
56649         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56650         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56651         GCC 4.2, which otherwise issues a lot of warnings.
56652         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56653         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56654         Likewise.
56655         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56656         * modules/iconv_open (iconv.h): Likewise.
56657         * modules/locale (locale.h): Likewise.
56658         * modules/netinet_in (netinet/in.h): Likewise.
56659         * modules/sys_select (sys_select.h): Likewise.
56660         * modules/sys_socket (sys/socket.h): Likewise.
56661         * modules/sys_stat (sys/stat.h): Likewise.
56662         * modules/sysexits (sysexits.h): Likewise.
56663         * modules/unistd (unistd.h): Likewise.
56664
56665 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56666
56667         * modules/closein-tests (Makefile.am): Distribute
56668         `test-closein.sh'.
56669
56670 2007-05-17  Bruno Haible  <bruno@clisp.org>
56671
56672         * tests/test-printf-posix.output: Renamed from
56673         tests/test-fprintf-posix.out.
56674         * modules/fprintf-posix-tests: Update.
56675         * modules/printf-posix-tests: Update.
56676         * modules/vfprintf-posix-tests: Update.
56677         * modules/vprintf-posix-tests: Update.
56678         * tests/test-fprintf-posix.sh: Update.
56679         * tests/test-printf-posix.sh: Update.
56680         * tests/test-vfprintf-posix.sh: Update.
56681         * tests/test-vprintf-posix.sh: Update.
56682         Reported by Ralf Wildenhues.
56683
56684 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56685
56686         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56687         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56688         GCC 4.2, which otherwise issues a lot of warnings.
56689         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56690         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56691         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56692         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56693         it should no longer be needed.
56694         * lib/string_.h: Likewise.
56695         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56696         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56697         * modules/inttypes (inttypes.h): Likewise.
56698         * modules/math (math.h): Likewise.
56699         * modules/search (search.h): Likewise.
56700         * modules/signal (signal.h): Likewise.
56701         * modules/stdint (stdint.h): Likewise.
56702         * modules/stdio (stdio.h): Likewise.
56703         * modules/stdlib (stdlib.h): Likewise.
56704         * modules/string (string.h): Likewise.
56705         * modules/sys_time (sys/time.h): Likewise.
56706         * modules/time (time.h): Likewise.
56707         * modules/wchar (wchar.h): Likewise.
56708         * modules/wctype (wtype.h): Likewise.
56709
56710 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56711
56712         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56713
56714 2007-05-13  Bruno Haible  <bruno@clisp.org>
56715
56716         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56717         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56718         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56719         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56720         (gl_PREREQ_STRTOK_R): Don't require it here.
56721
56722 2007-05-13  Bruno Haible  <bruno@clisp.org>
56723
56724         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56725         when used in C++ mode.
56726
56727 2007-05-12  Bruno Haible  <bruno@clisp.org>
56728
56729         * lib/linebuffer.h: Tweak doc.
56730         * lib/linebuffer.c: Likewise.
56731
56732 2007-05-12  James Youngman  <jay@gnu.org>
56733
56734         * lib/linebuffer.c (readlinebuffer_delim): New function,
56735         like readlinebuffer, but use a caller-specified delimiter.
56736         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56737         as the delimiter.
56738         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56739
56740 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56741
56742         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56743         * modules/openat (Files): Remove openat-die.c.
56744         (Depends-on): Add openat-die.
56745         * modules/openat-die: New module.
56746
56747 2007-05-06  Bruno Haible  <bruno@clisp.org>
56748
56749         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56750         Update with info about Cygwin.
56751         * doc/functions/fprintf.texi: Update.
56752         * doc/functions/printf.texi: Update.
56753         * doc/functions/snprintf.texi: Update.
56754         * doc/functions/sprintf.texi: Update.
56755         * doc/functions/vfprintf.texi: Update.
56756         * doc/functions/vprintf.texi: Update.
56757         * doc/functions/vsnprintf.texi: Update.
56758         * doc/functions/vsprintf.texi: Update.
56759         Reported by Eric Blake.
56760
56761 2007-05-06  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56764         padding ourselves for the floating-point directives.
56765         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56767         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56768         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56769         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56771         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56772         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56773         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56777         * tests/test-snprintf-posix.h (test_function): Also check the width
56778         and some flags in the %f directive.
56779         * tests/test-sprintf-posix.h (test_function): Likewise.
56780         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56781         * tests/test-vasprintf-posix.c (test_function): Likewise.
56782         * doc/functions/fprintf.texi: Update.
56783         * doc/functions/printf.texi: Update.
56784         * doc/functions/snprintf.texi: Update.
56785         * doc/functions/sprintf.texi: Update.
56786         * doc/functions/vfprintf.texi: Update.
56787         * doc/functions/vprintf.texi: Update.
56788         * doc/functions/vsnprintf.texi: Update.
56789         * doc/functions/vsprintf.texi: Update.
56790
56791 2007-05-06  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56794         pass the ' flag character to sprintf or snprintf.
56795         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56798         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56799         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56802         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56804         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56807         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56808         flag.
56809         * tests/test-sprintf-posix.h (test_function): Likewise.
56810         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56811         * tests/test-vasprintf-posix.c (test_function): Likewise.
56812         * doc/functions/fprintf.texi: Update.
56813         * doc/functions/printf.texi: Update.
56814         * doc/functions/snprintf.texi: Update.
56815         * doc/functions/sprintf.texi: Update.
56816         * doc/functions/vfprintf.texi: Update.
56817         * doc/functions/vprintf.texi: Update.
56818         * doc/functions/vsnprintf.texi: Update.
56819         * doc/functions/vsprintf.texi: Update.
56820
56821 2007-05-01  Bruno Haible  <bruno@clisp.org>
56822
56823         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56824
56825 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56826
56827         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56828         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56829
56830 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56831
56832         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56833         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56835
56836 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56837
56838         * lib/argp-help.c (struct hol_entry): New member `ord'.
56839         (HOL_ENTRY_PTRCMP): Use ord for comparison
56840         (hol_sort): Initialize ord.
56841
56842 2007-05-01  Bruno Haible  <bruno@clisp.org>
56843
56844         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56845         Reported by Eric Blake.
56846         * doc/gnulib.texi (Function Substitutes): Update.
56847
56848 2007-05-01  Bruno Haible  <bruno@clisp.org>
56849
56850         * doc/functions.texi: Remove file, now redundant through
56851         doc/functions/*.texi.
56852
56853 2007-05-01  Bruno Haible  <bruno@clisp.org>
56854
56855         * modules/argp (Depends-on): Add sleep.
56856
56857 2007-05-01  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/sleep-tests: New file.
56860         * tests/test-sleep.c: New file.
56861
56862         * modules/sleep: New file.
56863         * lib/sleep.c: New file.
56864         * m4/sleep.m4: New file.
56865         * lib/unistd_.h (sleep): New declaration.
56866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56867         HAVE_SLEEP.
56868         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56869         * doc/functions/sleep.texi: Document the sleep module.
56870
56871 2007-05-01  Bruno Haible  <bruno@clisp.org>
56872
56873         * lib/sigprocmask.h: Remove file.
56874         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56875         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56876         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56877         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56878         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56879         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56880         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56881         HAVE_SIGSET_T as a shell variable.
56882         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56883         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56884         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56885         (Depends-on): Add signal. Remove verify.
56886         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56887         (Include): Mention <signal.h> instead of sigprocmask.h.
56888         * NEWS: Mention the change.
56889         * lib/fatal-signal.c: Don't include sigprocmask.h.
56890
56891 2007-05-01  Bruno Haible  <bruno@clisp.org>
56892
56893         * modules/signal: New file.
56894         * lib/signal_.h: New file.
56895         * m4/signal_h.m4: New file.
56896
56897 2007-05-01  Bruno Haible  <bruno@clisp.org>
56898
56899         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56900         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56901         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56902         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56903
56904 2007-05-01  Bruno Haible  <bruno@clisp.org>
56905
56906         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56907         configure time.
56908         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56909         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56910         * modules/sys_stat (Makefile.am): Substitute their values into
56911         sys/stat.h.
56912
56913 2007-05-01  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56916         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56917         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56918
56919 2007-05-01  Bruno Haible  <bruno@clisp.org>
56920
56921         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56922         'assert' module here.
56923
56924 2007-05-01  Bruno Haible  <bruno@clisp.org>
56925
56926         * doc/functions/*.texi: New files.
56927         * doc/functions/google-ranking.txt: New file.
56928         * doc/gnulib.texi (Function Substitutes): New chapter.
56929         (ctime, inet_ntoa): Remove sections.
56930         * doc/ctime.texi: Remove file.
56931         * doc/inet_ntoa.texi: Remove file.
56932         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56933         dependencies.
56934         (%.info): New rule, specifying a --reference-limit.
56935
56936 2007-05-01  Bruno Haible  <bruno@clisp.org>
56937
56938         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56939
56940 2007-05-01  Bruno Haible  <bruno@clisp.org>
56941
56942         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56943         the portability of 'mkdir' to mingw systems.
56944
56945 2007-05-01  Bruno Haible  <bruno@clisp.org>
56946
56947         * doc/headers/google-ranking.txt: New file.
56948
56949 2007-04-30  Eric Blake  <ebb9@byu.net>
56950
56951         Prefer fseeko to fseek.
56952         * modules/getpass (Depends-on): Add fseeko.
56953         * lib/getpass.c (getpass): Use fseeko, not fseek.
56954
56955 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56956
56957         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56958         assumes the sorting is stable, while most qsort implementations
56959         are not.  Use argument addresses to ensure they never compare as
56960         equal.
56961
56962         * tests/test-argp-2.sh (usage-indent test): Fix output
56963         (func_compare): Restore diff options
56964         * tests/test-argp.c: Restore #include "progname.h"
56965
56966 2007-04-29  Bruno Haible  <bruno@clisp.org>
56967
56968         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56970         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56972         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56973         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56974         (TESTS, check_PROGRAMS): Add test-snprintf.
56975         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56976         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56977         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56978         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56979         assertions that fail on HP-UX, OSF/1, or IRIX.
56980         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56981
56982 2007-04-29  Bruno Haible  <bruno@clisp.org>
56983
56984         * MODULES.html.sh (posix_functions): Remove 'contents'.
56985
56986 2007-04-29  Karl Berry  <karl@gnu.org>
56987
56988         * config/srclist.txt (gendocs_template_min): new entry.
56989
56990 2007-04-29  Bruno Haible  <bruno@clisp.org>
56991
56992         Work around fpurge bug on BSD systems.
56993         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56994         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56995         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56996         fpurge to rpl_fpurge if the system already has this function.
56997         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56998         the case where the system already has this function. Correct invariants
56999         on BSD systems.
57000         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57001         BSD systems.
57002
57003 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57004
57005         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57006         proposed by Sven Verdoolaege.
57007
57008         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57009         options.
57010         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57011         (usage and help tests): Update
57012
57013 2007-04-29  Bruno Haible  <bruno@clisp.org>
57014
57015         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57016         Print more information in case of failure. Disable a test on BeOS.
57017
57018 2007-04-29  Bruno Haible  <bruno@clisp.org>
57019
57020         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57021         This helps debugging on systems on which no gdb is available.
57022
57023 2007-04-29  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/freading.h: Improve comments.
57026         * lib/fwriting.h: Likewise.
57027         * tests/test-freading.c (main): Don't check freading immediately after
57028         repositioning. Needed for glibc.
57029
57030 2007-04-29  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/freading.c (freading): Trivial simplification.
57033
57034 2007-04-28  Bruno Haible  <bruno@clisp.org>
57035
57036         * tests/test-fwriting.c (main): Also test the interaction between
57037         fflush and fwriting.
57038         * modules/fwriting-tests (Depends-on): Add fflush.
57039
57040         * tests/test-freading.c (main): Also test the interaction between
57041         fflush and freading.
57042         * modules/freading-tests (Depends-on): Add fflush.
57043
57044 2007-04-28  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57047         fseeko and ftello.
57048         Suggested by Eric Blake.
57049
57050 2007-04-28  Jim Meyering  <jim@meyering.net>
57051
57052         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57053         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57054         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57055
57056 2007-04-27  Eric Blake  <ebb9@byu.net>
57057
57058         * doc/headers/assert.texi (assert.h): Document assert module use.
57059
57060 2007-04-27  Bruno Haible  <bruno@clisp.org>
57061
57062         * doc/headers/*.texi: New files.
57063         * doc/gnulib.texi (Header File Substitutes): New chapter.
57064         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57065         dependencies.
57066         (standards.info ,standards.html, standards.dvi): Update dependencies.
57067         (mostlyclean, clean): New targets.
57068
57069 2007-04-27  Bruno Haible  <bruno@clisp.org>
57070
57071         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57072         * modules/sysexits (Files, Makefile.am): Update.
57073
57074         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57075         * modules/sys_socket (Files, Makefile.am): Update.
57076
57077         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57078         * modules/sys_stat (Files, Makefile.am): Update.
57079
57080 2007-04-27  Eric Blake  <ebb9@byu.net>
57081
57082         * lib/freading.h: Improve comments.
57083         * lib/fwriting.h: Likewise.
57084         * lib/fflush.c: Likewise.
57085
57086         Fix closein for mingw.
57087         * modules/closein-tests: Add tests for closein.
57088         * tests/test-closein.c: New file.
57089         * tests/test-closein.sh: Likewise.
57090         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57091         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57092
57093 2007-04-27  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57096         version is < 6.
57097         * lib/math_.h [__DECC]: Likewise.
57098         * lib/stdio_.h [__DECC]: Likewise.
57099         * lib/stdlib_.h [__DECC]: Likewise.
57100         * lib/string_.h [__DECC]: Likewise.
57101         * lib/time_.h [__DECC]: Likewise.
57102         * lib/wchar_.h [__DECC]: Likewise.
57103         * lib/wctype_.h [__DECC]: Likewise.
57104
57105 2007-04-27  Bruno Haible  <bruno@clisp.org>
57106
57107         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57108
57109 2007-04-27  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/fflush.c: Add comments.
57112         * modules/fpurge-tests (Depends-on): Add fflush.
57113         * modules/freadable-tests (Depends-on): Likewise.
57114         * modules/fwritable-tests (Depends-on): Likewise.
57115
57116 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57117
57118         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57119         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57120         Report by Bruno Haible <bruno@clisp.org>.
57121
57122 2007-04-26  Eric Blake  <ebb9@byu.net>
57123
57124         Fix fflush on mingw.
57125         * modules/fflush (Depends-on): Add freading.
57126         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57127         but unread data.
57128
57129 2007-04-26  Eric Blake  <ebb9@byu.net>
57130         and Bruno Haible  <bruno@clisp.org>
57131
57132         Implement freading and fwriting.
57133         * lib/freading.c: New file.
57134         * lib/freading.h: Likewise.
57135         * m4/freading.m4: Likewise.
57136         * modules/freading: Likewise.
57137         * modules/freading-tests: Likewise.
57138         * tests/test-freading.c: Likewise.
57139         * lib/fwriting.c: New file.
57140         * lib/fwriting.h: Likewise.
57141         * m4/fwriting.m4: Likewise.
57142         * modules/fwriting: Likewise.
57143         * modules/fwriting-tests: Likewise.
57144         * tests/test-fwriting.c: Likewise.
57145         * MODULES.html.sh (File stream based Input/Output): Mention them.
57146
57147 2007-04-26  Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57150         'long' when we assume it.
57151         Suggested by Eric Blake.
57152
57153 2007-04-26  Bruno Haible  <bruno@clisp.org>
57154
57155         Ensure fseeko, ftello are declared on glibc systems.
57156         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57157         * modules/fseeko (configure.ac-early): Likewise.
57158         * modules/ftello (configure.ac-early): Likewise.
57159         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57160         AC_FUNC_FSEEKO for this.
57161         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57162         (gl_CHECK_FSEEKO): Remove macro.
57163
57164 2007-04-26  Bruno Haible  <bruno@clisp.org>
57165
57166         * tests/test-fflush.c (main): Also check the ftell result after
57167         fflush and fseek/fseeko.
57168         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57169         file descriptor position cache in the stream.
57170         * lib/fseeko.c (rpl_fseeko): Likewise.
57171
57172 2007-04-26  Bruno Haible  <bruno@clisp.org>
57173
57174         * modules/fflush-tests (Depends-on): Add fseeko.
57175
57176 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57177             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57178
57179         * lib/argz_.h: ensure error_t definition is obtained in same
57180         mechanism system argz.h would have.
57181         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57182         argz facilities are known bad.  Err on the side of caution if
57183         cross-compiling.
57184
57185 2007-04-25  Eric Blake  <ebb9@byu.net>
57186
57187         * lib/fpurge.c (includes): Use stdlib.h for free.
57188         * tests/test-fflush.c (main): Also test fflush-fseeko.
57189
57190 2007-04-25  Bruno Haible  <bruno@clisp.org>
57191
57192         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57193         * lib/fseeko.c: New file.
57194         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57195         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57196         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57197         gl_FUNC_FSEEKO.
57198         (gl_FUNC_FSEEKO): Invoke it.
57199         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57200         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57201         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57202
57203 2007-04-25  Bruno Haible  <bruno@clisp.org>
57204
57205         * modules/fflush (Depends-on): Add ftello.
57206
57207 2007-04-25  Bruno Haible  <bruno@clisp.org>
57208
57209         * modules/ftello-tests: New file.
57210         * tests/test-ftello.c: New file.
57211
57212         * modules/ftello: New file.
57213         * m4/ftello.m4: New file.
57214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57215         HAVE_FTELLO.
57216         * lib/stdio_.h (ftello): New declaration.
57217         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57218         HAVE_FTELLO.
57219
57220 2007-04-25  Bruno Haible  <bruno@clisp.org>
57221
57222         * modules/fseeko-tests: New file.
57223         * tests/test-fseeko.c: New file.
57224
57225         * modules/fseeko: New file.
57226         * m4/fseeko.m4: New file.
57227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57228         HAVE_FSEEKO.
57229         * lib/stdio_.h (fseeko): New declaration.
57230         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57231         HAVE_FSEEKO.
57232
57233 2007-04-25  Bruno Haible  <bruno@clisp.org>
57234
57235         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57236
57237 2007-04-25  Bruno Haible  <bruno@clisp.org>
57238
57239         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57240         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57241         * tests/test-unistd.c: Likewise.
57242         * tests/test-fcntl.c: Likewise.
57243
57244 2007-04-23  Eric Blake  <ebb9@byu.net>
57245
57246         * lib/fflush.c: Fix missing include.
57247         Reported by Bruno Haible.
57248
57249 2007-04-23  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57252         Reported by Eric Blake.
57253
57254 2007-04-23  Bruno Haible  <bruno@clisp.org>
57255
57256         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57257
57258 2007-04-23  Bruno Haible  <bruno@clisp.org>
57259
57260         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57261
57262 2007-04-23  Bruno Haible  <bruno@clisp.org>
57263
57264         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57265         Needed on HP-UX 11.
57266
57267 2007-04-16  Eric Blake  <ebb9@byu.net>
57268
57269         Make fflush rely on fpurge.
57270         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57271         open coding all variants.
57272         * modules/fflush (Depends-on): Add fpurge and unistd.
57273         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57274         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57275
57276         Fix --with-tests compilation on cygwin.
57277         * modules/argmatch-tests (Makefile.am): List gnulib library first
57278         in LDADD.
57279         * modules/argp-tests (Makefile.am): Likewise.
57280         * modules/array-list-tests (Makefile.am): Likewise.
57281         * modules/array-oset-tests (Makefile.am): Likewise.
57282         * modules/avltree-list-tests (Makefile.am): Likewise.
57283         * modules/avltree-oset-tests (Makefile.am): Likewise.
57284         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57285         * modules/carray-list-tests (Makefile.am): Likewise.
57286         * modules/dirname-tests (Makefile.am): Likewise.
57287         * modules/frexp-tests (Makefile.am): Likewise.
57288         * modules/isnanl-tests (Makefile.am): Likewise.
57289         * modules/linked-list-tests (Makefile.am): Likewise.
57290         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57291         * modules/lock-tests (Makefile.am): Likewise.
57292         * modules/rbtree-list-tests (Makefile.am): Likewise.
57293         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57294         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57295         * modules/tls-tests (Makefile.am): Likewise.
57296         * modules/tsearch-tests (Makefile.am): Likewise.
57297         * modules/xvasprintf-tests (Makefile.am): Likewise.
57298
57299         Fix fpurge for cygwin.
57300         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57301         value.
57302         * modules/fpurge-tests (Depends-on): Clean up trash.
57303
57304 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57305
57306         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57307
57308         * m4/autobuild.m4: Re-indent.
57309
57310 2007-04-13  Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/fpurge-tests: New file.
57313         * tests/test-fpurge.c: New file.
57314
57315         * modules/fpurge: New file.
57316         * lib/fpurge.h: New file.
57317         * lib/fpurge.c: New file.
57318         * m4/fpurge.m4: New file.
57319
57320 2007-04-13  Bruno Haible  <bruno@clisp.org>
57321
57322         * modules/fbufmode-tests: New file.
57323         * tests/test-fbufmode.c: New file.
57324
57325         * modules/fbufmode: New file.
57326         * lib/fbufmode.h: New file.
57327         * lib/fbufmode.c: New file.
57328         * m4/fbufmode.m4: New file.
57329
57330 2007-04-13  Bruno Haible  <bruno@clisp.org>
57331
57332         * modules/fwritable-tests: New file.
57333         * tests/test-fwritable.c: New file.
57334
57335         * modules/fwritable: New file.
57336         * lib/fwritable.h: New file.
57337         * lib/fwritable.c: New file.
57338         * m4/fwritable.m4: New file.
57339
57340 2007-04-13  Bruno Haible  <bruno@clisp.org>
57341
57342         * modules/freadable-tests: New file.
57343         * tests/test-freadable.c: New file.
57344
57345         * modules/freadable: New file.
57346         * lib/freadable.h: New file.
57347         * lib/freadable.c: New file.
57348         * m4/freadable.m4: New file.
57349
57350 2007-04-13  Bruno Haible  <bruno@clisp.org>
57351
57352         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57353         MOSTLYCLEANFILES.
57354
57355 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57356
57357         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57358         gzip bootstrap.conf to avoid dragging in i18n machinery.
57359         (gnulib_tool_option): Use it.
57360
57361 2007-04-13  Bruno Haible  <bruno@clisp.org>
57362
57363         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57364         %F directives.
57365         * tests/test-vasprintf-posix.c (test_function): Likewise.
57366         * tests/test-snprintf-posix.h (test_function): Likewise.
57367         * tests/test-sprintf-posix.h (test_function): Likewise.
57368         * tests/test-fprintf-posix.h (test_function): Likewise.
57369         * tests/test-printf-posix.h (test_function): Likewise.
57370         * tests/test-fprintf-posix.out: Likewise.
57371
57372 2007-04-13  Bruno Haible  <bruno@clisp.org>
57373
57374         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57375         * modules/tls-tests (configure.ac): Likewise.
57376         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57377
57378 2007-04-13  Bruno Haible  <bruno@clisp.org>
57379
57380         * lib/tls.c (glthread_tls_get): Fix return type.
57381         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57382
57383 2007-04-12  Eric Blake  <ebb9@byu.net>
57384
57385         * modules/gettime (Depends-on): Remove gettime.
57386         Reported by Dmitry V. Levin.
57387
57388 2007-04-12  Bruno Haible  <bruno@clisp.org>
57389
57390         * modules/fflush (Include): Mention <stdio.h>.
57391         * modules/strtoimax (Include): Mention <inttypes.h>.
57392         * modules/strtoumax (Include): Likewise.
57393
57394 2007-04-12  Eric Blake  <ebb9@byu.net>
57395
57396         * .cvsignore: New file.
57397         * .gitignore: Likewise.
57398
57399 2007-04-12  Bruno Haible  <bruno@clisp.org>
57400
57401         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57402         not before, since $(LDADD) often contains libgnu.a.
57403         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57404         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57405         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57406         Needed on Cygwin.
57407
57408 2007-04-12  Eric Blake  <ebb9@byu.net>
57409
57410         Work around glibc's failure to flush stdin on fclose.
57411         * lib/closein.c (close_stdin): Flush stdin before closing.
57412
57413         Work around glibc's failure to reset seekable stdin on exit.
57414         * modules/closein: New module.
57415         * lib/closein.c: New file.
57416         * lib/closein.h: Likewise.
57417         * m4/closein.m4: Likewise.
57418         * MODULES.html.sh (File stream based Input/Output): Document it.
57419
57420 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57421
57422         * gnulib-tool: Rename generated 'autobuild' script to
57423         'do-autobuild' in --create-megatestdir output.
57424
57425         * doc/gnulib.texi (Build robot for gnulib): Fix.
57426
57427 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57428
57429         * modules/sysexits (Depends-on): Add absolute-header.
57430
57431 2007-04-12  Eric Blake  <ebb9@byu.net>
57432
57433         No need to preserve errno on success.
57434         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57435         Reported by Bruno Haible.
57436
57437 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57438
57439         * MODULES.html.sh (Support for maintaining and releasing
57440         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57441
57442 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57443
57444         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57445
57446 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57447
57448         * modules/autobuild: New module.
57449
57450         * m4/autobuild.m4: New file.
57451
57452 2007-04-11  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57455         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57456         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57467         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57476         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57482         Reported by Eric Blake.
57483
57484 2007-04-11  Bruno Haible  <bruno@clisp.org>
57485
57486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57487
57488 2007-04-10  Bruno Haible  <bruno@clisp.org>
57489
57490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57491         for NaN and Infinity. Needed on FreeBSD 6.1.
57492         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57493         regarding results for "%010a" of Infinity and NaN.
57494         * tests/test-vasprintf-posix.c (test_function): Likewise.
57495         * tests/test-snprintf-posix.h (test_function): Likewise.
57496         * tests/test-sprintf-posix.h (test_function): Likewise.
57497         * tests/test-fprintf-posix.h (test_function): Likewise.
57498         * tests/test-printf-posix.h (test_function): Likewise.
57499         * tests/test-fprintf-posix.out: Likewise.
57500
57501 2007-04-10  Bruno Haible  <bruno@clisp.org>
57502
57503         * modules/locale-tests: New file.
57504         * tests/test-locale.c: New file.
57505
57506         * modules/locale: New file.
57507         * lib/locale_.h: New file.
57508         * m4/locale_h.m4: New file.
57509
57510 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57511             Bruno Haible  <bruno@clisp.org>
57512
57513         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57514         be determined, test for availability of the copysignf, copysign,
57515         copysignl functions.
57516         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57517         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57518         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57519
57520 2007-04-09  Eric Blake  <ebb9@byu.net>
57521
57522         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57523         * modules/stdio (Makefile.am): Support fflush.
57524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57525         * modules/fflush: New file.
57526         * lib/fflush.c: Likewise.
57527         * m4/fflush.m4: Likewise.
57528         * modules/fflush-tests: New test.
57529         * tests/test-fflush.c: Likewise.
57530         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57531
57532 2007-04-06  Bruno Haible  <bruno@clisp.org>
57533
57534         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57535         (VASNPRINTF): Use signbit for faster determination whether to print a
57536         minus sign.
57537         * modules/vasnprintf (Files): Remove lib/float+.h.
57538         * modules/fprintf-posix (Depends-on): Add signbit.
57539         * modules/snprintf-posix (Depends-on): Likewise.
57540         * modules/sprintf-posix (Depends-on): Likewise.
57541         * modules/vasnprintf-posix (Depends-on): Likewise.
57542         * modules/vasprintf-posix (Depends-on): Likewise.
57543         * modules/vfprintf-posix (Depends-on): Likewise.
57544         * modules/vsnprintf-posix (Depends-on): Likewise.
57545         * modules/vsprintf-posix (Depends-on): Likewise.
57546
57547 2007-04-06  Bruno Haible  <bruno@clisp.org>
57548
57549         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57550         * tests/test-frexpl.c (main): Likewise.
57551         * tests/test-ldexpl.c (main): Likewise.
57552         * modules/frexp-tests (Depends-on): Add signbit.
57553         * modules/frexpl-tests (Depdends-on): Likewise.
57554         * modules/ldexpl-tests (Depdends-on): Likewise.
57555
57556 2007-04-06  Bruno Haible  <bruno@clisp.org>
57557
57558         * modules/signbit-tests: New file.
57559         * tests/test-signbit.c: New file.
57560
57561         * modules/signbit: New file.
57562         * lib/signbitf.c: New file.
57563         * lib/signbitd.c: New file.
57564         * lib/signbitl.c: New file.
57565         * m4/signbit.m4: New file.
57566         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57567         (signbit): New macro.
57568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57569         REPLACE_SIGNBIT.
57570         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57571         REPLACE_FREXPL into math.h.
57572
57573 2007-04-06  Bruno Haible  <bruno@clisp.org>
57574
57575         * modules/isnanf-nolibm-tests: New file.
57576         * tests/test-isnanf.c: New file.
57577
57578         * modules/isnanf-nolibm: New file.
57579         * lib/isnanf.h: New file.
57580         * lib/isnanf.c: New file.
57581         * lib/isnan.c: Consider the USE_FLOAT macro.
57582         * m4/isnanf.m4: New file.
57583
57584 2007-04-06  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57587         (Link): New section.
57588
57589         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57590
57591 2007-04-06  Bruno Haible  <bruno@clisp.org>
57592
57593         Assume the 'long double' type.
57594         * m4/longdouble.m4: Remove file.
57595         * config/srclist.txt: Don't mention longdouble.m4.
57596         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57597         * lib/float+.h: Likewise.
57598         * lib/frexp.c: Likewise.
57599         * lib/printf-args.h: Likewise.
57600         * lib/printf-args.c: Likewise.
57601         * lib/printf-frexp.c: Likewise.
57602         * lib/printf-parse.c: Likewise.
57603         * lib/vasnprintf.c: Likewise.
57604         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57605         * m4/intl.m4: Likewise.
57606         * m4/isnanl.m4: Likewise.
57607         * m4/printf.m4: Likewise.
57608         * m4/printf-frexpl.m4: Likewise.
57609         * m4/vasnprintf.m4: Likewise.
57610         * modules/allocsa (Files): Remove m4/longdouble.m4.
57611         * modules/gettext (Files): Likewise.
57612         * modules/relocatable-prog-wrapper (Files): Likewise.
57613         * modules/vasnprintf (Files): Likewise.
57614         * modules/isnanl (Files): Likewise.
57615         (Include): Simplify.
57616         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57617         (Include): Simplify.
57618         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57619         (Include): Simplify.
57620         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57621         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57622         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57623         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57624         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57625         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57626         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57627         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57628         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57629         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57630         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57631         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57632         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57633         * tests/test-isnanl.c: Likewise.
57634         * tests/test-snprintf-posix.h: Likewise.
57635         * tests/test-sprintf-posix.h: Likewise.
57636         * tests/test-vasnprintf-posix.c: Likewise.
57637         * tests/test-vasnprintf-posix2.c: Likewise.
57638         * tests/test-vasprintf-posix.c: Likewise.
57639
57640 2007-04-06  Bruno Haible  <bruno@clisp.org>
57641
57642         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57643         * lib/math_.h [__DECC]: Include the overridden include file through
57644         #include_next, outside the double-inclusion guard.
57645         * lib/stdio_.h [__DECC]: Likewise.
57646         * lib/stdlib_.h [__DECC]: Likewise.
57647         * lib/string_.h [__DECC]: Likewise.
57648         * lib/time_.h [__DECC]: Likewise.
57649         * lib/wchar_.h [__DECC]: Likewise.
57650         * lib/wctype_.h [__DECC]: Likewise.
57651         * lib/inttypes_.h [__DECC]: Likewise.
57652         Reported by Albert Chin <china@thewrittenword.com> in
57653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57654
57655 2007-04-04  Eric Blake  <ebb9@byu.net>
57656
57657         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57658         1.5.x.
57659
57660 2007-04-04  Bruno Haible  <bruno@clisp.org>
57661
57662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57663         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57664
57665 2007-04-04  Bruno Haible  <bruno@clisp.org>
57666
57667         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57668         results for "%010a" of Infinity and NaN.
57669         * tests/test-vasprintf-posix.c (test_function): Likewise.
57670         * tests/test-snprintf-posix.h (test_function): Likewise.
57671         * tests/test-sprintf-posix.h (test_function): Likewise.
57672         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57673         * tests/test-printf-posix.h (test_function): Likewise.
57674         * tests/test-fprintf-posix.out: Update.
57675         Needed for FreeBSD 6.1.
57676
57677 2007-04-04  Bruno Haible  <bruno@clisp.org>
57678
57679         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57680         directly used by the gnulib modules nor by gnulib-tool.
57681
57682 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         * DEPENDENCIES: Give overall description of version dependency
57685         desirability.  Use more-typical names for apps.
57686         Add shell, coreutils, diffutils, grep, tar, gzip.
57687
57688 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57689
57690         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57691
57692 2007-04-04  Karl Berry  <karl@gnu.org>
57693
57694         * MODULES.html.sh (func_module): missing '.
57695
57696 2007-04-03  Bruno Haible  <bruno@clisp.org>
57697
57698         * modules/argmatch-tests (Makefile.am): New variable
57699         test_argmatch_LDADD.
57700         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57701         * modules/array-list-tests (Makefile.am): New variable
57702         test_array_list_LDADD.
57703         * modules/array-oset-tests (Makefile.am): New variable
57704         test_array_oset_LDADD.
57705         * modules/avltree-list-tests (Makefile.am): New variable
57706         test_avltree_list_LDADD.
57707         * modules/avltree-oset-tests (Makefile.am): New variable
57708         test_avltree_oset_LDADD.
57709         * modules/avltreehash-list-tests (Makefile.am): New variable
57710         test_avltreehash_list_LDADD.
57711         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57712         test_canonicalize_lgpl_LDADD.
57713         * modules/carray-list-tests (Makefile.am): New variable
57714         test_carray_list_LDADD.
57715         * modules/dirname-tests (Makefile.am): New variable
57716         test_dirname_LDADD.
57717         * modules/linked-list-tests (Makefile.am): New variable
57718         test_linked_list_LDADD.
57719         * modules/linkedhash-list-tests (Makefile.am): New variable
57720         test_linkedhash_list_LDADD.
57721         * modules/rbtree-list-tests (Makefile.am): New variable
57722         test_rbtree_list_LDADD.
57723         * modules/rbtree-oset-tests (Makefile.am): New variable
57724         test_rbtree_oset_LDADD.
57725         * modules/rbtreehash-list-tests (Makefile.am): New variable
57726         test_rbtreehash_list_LDADD.
57727         * modules/xvasprintf-tests (Makefile.am): New variable
57728         test_xvasprintf_LDADD.
57729         Reported by Eric Blake.
57730
57731 2007-04-03  Eric Blake  <ebb9@byu.net>
57732
57733         * DEPENDENCIES: Weaken m4 requirements.
57734
57735 2007-04-03  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57738         * modules/isnanl-tests (configure.ac): Likewise.
57739
57740 2007-04-03  Ben Pfaff  <blp@gnu.org>
57741
57742         * modules/iconv_open: Add $(srcdir)/ to source directory
57743         references in Makefile fragments that call gperf, to fix VPATH
57744         builds.
57745
57746 2007-04-03  Bruno Haible  <bruno@clisp.org>
57747
57748         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57749         * lib/ldexpl.c: Undo last change.
57750
57751 2007-04-03  Bruno Haible  <bruno@clisp.org>
57752
57753         * modules/printf-frexpl (Depends-on): Undo last change.
57754         (Files): Add m4/ldexpl.m4.
57755
57756 2007-04-03  Bruno Haible  <bruno@clisp.org>
57757
57758         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57759         * modules/isnanl (Link): New section.
57760
57761         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57762         * modules/frexp (Link): New section.
57763
57764         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57765         * modules/frexpl (Link): New section.
57766
57767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57768         * modules/ldexpl (Link): New section.
57769
57770 2007-04-03  Bruno Haible  <bruno@clisp.org>
57771
57772         * modules/TEMPLATE-EXTENDED: New file.
57773         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57774
57775 2007-04-03  Bruno Haible  <bruno@clisp.org>
57776
57777         * DEPENDENCIES: New file.
57778         Suggested by Simon Josefsson.
57779
57780 2007-04-03  Bruno Haible  <bruno@clisp.org>
57781
57782         * doc/gnulib.texi: Escape @.
57783
57784 2007-04-03  James Youngman  <jay@gnu.org>
57785         and Paul Eggert  <eggert@cs.ucla.edu>
57786
57787         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57788         birthtime on all systems that have birthtime, not just those which
57789         use st_birthtimensec rather than st_birthtim.  Putting zero in
57790         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57791         that the birth time is not available for files on an NFS mount.
57792
57793 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57794
57795         * modules/memxor: Move back from crypto/, suggested by Bruno.
57796         * modules/crypto/hmac-sha1: Fix memxor dependency.
57797
57798         * modules/crypto/gc: Moved from ../.
57799
57800 2007-04-02  Eric Blake  <ebb9@byu.net>
57801
57802         * lib/ldexpl.c (includes): Avoid libm.
57803
57804         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57805
57806 2007-04-02  Bruno Haible  <bruno@clisp.org>
57807
57808         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57809         on IRIX.
57810
57811 2007-04-02  Bruno Haible  <bruno@clisp.org>
57812
57813         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57814         x86 or x86_64 platforms running MacOS X.
57815         Reported by Ryan Schmidt <@ryandesign.com>.
57816
57817 2007-04-02  Bruno Haible  <bruno@clisp.org>
57818
57819         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57820         i386.
57821
57822 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57823
57824         * modules/crypto/arcfour: Moved from ../.
57825         * modules/crypto/arcfour-tests: Moved from ../.
57826         * modules/crypto/arctwo: Moved from ../.
57827         * modules/crypto/arctwo-tests: Moved from ../.
57828         * modules/crypto/des: Moved from ../.
57829         * modules/crypto/des-tests: Moved from ../.
57830         * modules/crypto/gc-arcfour: Moved from ../.
57831         * modules/crypto/gc-arcfour-tests: Moved from ../.
57832         * modules/crypto/gc-arctwo: Moved from ../.
57833         * modules/crypto/gc-arctwo-tests: Moved from ../.
57834         * modules/crypto/gc-des: Moved from ../.
57835         * modules/crypto/gc-des-tests: Moved from ../.
57836         * modules/crypto/gc-hmac-md5: Moved from ../.
57837         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57838         * modules/crypto/gc-hmac-sha1: Moved from ../.
57839         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57840         * modules/crypto/gc-md2: Moved from ../.
57841         * modules/crypto/gc-md2-tests: Moved from ../.
57842         * modules/crypto/gc-md4: Moved from ../.
57843         * modules/crypto/gc-md4-tests: Moved from ../.
57844         * modules/crypto/gc-md5: Moved from ../.
57845         * modules/crypto/gc-md5-tests: Moved from ../.
57846         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57847         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57848         * modules/crypto/gc-random: Moved from ../.
57849         * modules/crypto/gc-rijndael: Moved from ../.
57850         * modules/crypto/gc-rijndael-tests: Moved from ../.
57851         * modules/crypto/gc-sha1: Moved from ../.
57852         * modules/crypto/gc-sha1-tests: Moved from ../.
57853         * modules/crypto/gc-tests: Moved from ../.
57854         * modules/crypto/hmac-md5: Moved from ../.
57855         * modules/crypto/hmac-md5-tests: Moved from ../.
57856         * modules/crypto/hmac-sha1: Moved from ../.
57857         * modules/crypto/hmac-sha1-tests: Moved from ../.
57858         * modules/crypto/md2: Moved from ../.
57859         * modules/crypto/md2-tests: Moved from ../.
57860         * modules/crypto/md4: Moved from ../.
57861         * modules/crypto/md4-tests: Moved from ../.
57862         * modules/crypto/md5: Moved from ../.
57863         * modules/crypto/md5-tests: Moved from ../.
57864         * modules/crypto/memxor: Moved from ../.
57865         * modules/crypto/rijndael: Moved from ../.
57866         * modules/crypto/rijndael-tests: Moved from ../.
57867         * modules/crypto/sha1: Moved from ../.
57868
57869 2007-03-30  James Youngman  <jay@gnu.org>
57870
57871         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57872         rename() to change the ctime of a file (because ctime is unaffected
57873         by rename on jfs2 on AIX 5.1).
57874         (main): Start by doing cleanup, in case a previous run failed leaving
57875         test files behind.
57876
57877 2007-03-31  Bruno Haible  <bruno@clisp.org>
57878
57879         Support old proprietary implementations of iconv.
57880         * modules/iconv_open: New file.
57881         * lib/iconv_.h: New file.
57882         * m4/iconv_h.m4: New file.
57883         * lib/iconv_open.c: New file.
57884         * lib/iconv_open-aix.gperf: New file.
57885         * lib/iconv_open-hpux.gperf: New file.
57886         * lib/iconv_open-irix.gperf: New file.
57887         * lib/iconv_open-osf.gperf: New file.
57888         * m4/iconv_open.m4: New file.
57889         * modules/linebreak (Depends-on): Add iconv_open.
57890         * modules/striconv (Depends-on): Likewise.
57891         * modules/striconveh (Depends-on): Likewise.
57892         * modules/unicodeio (Depends-on): Likewise.
57893         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57894         (iconv_t)(-1).
57895         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57896         conversion if cd is (iconv_t)(-1).
57897         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57898         is not possible.
57899
57900 2007-03-31  Bruno Haible  <bruno@clisp.org>
57901
57902         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57903         work on Solaris either. Protect also second use of "autodetect_jp".
57904
57905 2007-03-31  Bruno Haible  <bruno@clisp.org>
57906
57907         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57908         the function is not present.
57909
57910 2007-03-31  Bruno Haible  <bruno@clisp.org>
57911
57912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57913         the function is not present.
57914
57915 2007-03-31  Bruno Haible  <bruno@clisp.org>
57916
57917         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57918         a bug in HP-UX iconv_open().
57919
57920 2007-03-31  Bruno Haible  <bruno@clisp.org>
57921
57922         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57923         (Mathematics <math.h>): New section, add fpieee.
57924         (Input/output <stdio.h>): Add fseterr.
57925         (Mathematics <math.h>): New section, add printf-frexp.
57926         (Container data structures): Add sublist.
57927         (Core language properties): Add fpucw, inline.
57928         (Functions for greatest-width integer types <inttypes.h>): Add
57929         imaxabs, imaxdiv, inttypes.
57930         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57931         isnanl-nolibm, ldexp.
57932         (Mathematics <math.h>): New section, add printf-frexpl.
57933         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57934         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57935         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57936         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57937         (Unicode string functions): Add unistr/u*-mbtoucr.
57938         (Java): Add javacomp-script, javaexec-script.
57939         (C#): Add csharpcomp-script, csharpexec-script.
57940         (Support for building libraries and executables): Add havelib,
57941         relocatable-*.
57942         (Support for maintaining and releasing projects): Renamed from
57943         'Support for maintaining and release projects'. Add announce-gen.
57944
57945 2007-03-31  Bruno Haible  <bruno@clisp.org>
57946
57947         * README: Talk primarily about git.
57948         (git and CVS): Renamed from CVS.
57949         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57950         gnulib is available through git.
57951         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57952
57953 2007-03-30  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57956         * lib/poll_.h: Likewise.
57957         * lib/stat_.h: Likewise.
57958         * lib/sys_time_.h: Likewise.
57959         * lib/sysexit_.h: Likewise.
57960         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57961         * lib/stdbool_.h: Likewise.
57962         * lib/byteswap_.h: Add double-inclusion guard.
57963
57964 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57965
57966         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57967
57968 2007-03-30  Karl Berry  <karl@gnu.org>
57969
57970         * config/srclist-update: double space after USA in the license
57971         substitution, since that's how it's usually (?) written.
57972
57973 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57974
57975         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57976         reported by Bruno Haible.
57977
57978 2007-03-29  Bruno Haible  <bruno@clisp.org>
57979
57980         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57981         a bug in AIX iconv().
57982
57983 2007-03-29  Bruno Haible  <bruno@clisp.org>
57984
57985         * modules/ldexpl-tests: New file.
57986         * tests/test-ldexpl.c: New file.
57987
57988 2007-03-29  Bruno Haible  <bruno@clisp.org>
57989
57990         * lib/ldexpl.c: Include fpucw.h.
57991         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57992         multiplication.
57993         * modules/ldexpl (Depends-on): Add fpucw.
57994
57995 2007-03-29  Bruno Haible  <bruno@clisp.org>
57996
57997         * modules/ldexpl: New file.
57998         * m4/ldexpl.m4: New file.
57999         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58000         set.
58001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58002         REPLACE_LDEXPL.
58003         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58004         REPLACE_LDEXPL.
58005         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58006         gl_FUNC_LDEXPL_WORKS.
58007         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58008         * modules/mathl (Files): Remove lib/ldexpl.c.
58009         (Depends-on): Add ldexpl.
58010
58011 2007-03-29  Bruno Haible  <bruno@clisp.org>
58012
58013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58014
58015 2007-03-29  Bruno Haible  <bruno@clisp.org>
58016
58017         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58018         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58019         and possibly also HP-UX.
58020         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58021         work on AIX, IRIX, HP-UX, OSF/1.
58022         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58023         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58024         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58025         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58026         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58027         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58028
58029 2007-03-29  Bruno Haible  <bruno@clisp.org>
58030
58031         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58032
58033 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58034
58035         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58036         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58037
58038 2007-03-29  Eric Blake  <ebb9@byu.net>
58039
58040         * lib/acl-internal.h: Remove redundant include.
58041         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58042         Cygwin when a file is locked.
58043
58044 2007-03-29  Bruno Haible  <bruno@clisp.org>
58045
58046         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58047         file.
58048         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58049
58050 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58051
58052         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58053         try to remove a parent directory if the child couldn't be removed
58054         (except for the first rmdir, which could fail because the child
58055         doesn't exist).  Problem reported by Jeff Blaine in
58056         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58057
58058 2007-03-28  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/striconveh.c (utf8conv_carefully): New function.
58061         (mem_cd_iconveh_internal): Invoke it.
58062
58063 2007-03-28  Bruno Haible  <bruno@clisp.org>
58064
58065         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58066         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58067         input.
58068         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58069         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58070         unistr/u8-uctomb.
58071
58072 2007-03-28  Bruno Haible  <bruno@clisp.org>
58073
58074         * modules/unistr/u8-mbtoucr: New file.
58075         * lib/unistr/u8-mbtoucr.c: New file.
58076         * modules/unistr/u16-mbtoucr: New file.
58077         * lib/unistr/u16-mbtoucr.c: New file.
58078         * modules/unistr/u16-mbtoucr: New file.
58079         * lib/unistr/u16-mbtoucr.c: New file.
58080         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58081
58082 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58083             Bruno Haible  <bruno@clisp.org>
58084
58085         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58086         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58087         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58088
58089         * m4/stdio_h.m4: Add stubs for vasprintf too.
58090
58091         * modules/stdio: Support vasprintf in sed command.
58092
58093         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58094         vasprintf.h.  Add stdio module indicator.
58095
58096         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58097         vasprintf.h.
58098
58099         * lib/vasprintf.h: File removed.
58100
58101         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58102         * lib/vasprintf.c: Ditto.
58103         * lib/xvasprintf.c: Ditto.
58104         * tests/test-vasprintf-posix.c: Ditto.
58105         * tests/test-vasprintf.c: Ditto.
58106
58107 2007-03-27  Bruno Haible  <bruno@clisp.org>
58108
58109         Make vasnprintf multithread-safe.
58110         * lib/vasnprintf.c (decimal_point_char): New function.
58111         (VASNPRINTF): Use it.
58112         Suggested by Simon Josefsson.
58113
58114 2007-03-27  Eric Blake  <ebb9@byu.net>
58115
58116         Support sub-second birthtime on cygwin.
58117         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58118         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58119         (get_stat_birthtime): Also work with st_birthtim.
58120
58121 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58122
58123         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58124         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58125         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58126         (get_stat_birthtime_ns): Simplify compile-time tests.
58127         (get_stat_birthtime): Change the API to look like
58128         get_stat_mtime etc., except return a negative tv_nsec on error.
58129         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58130         Don't check for "spare" fields.
58131         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58132         or for struct stat.st_birthtime, as these tests aren't used.
58133         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58134
58135 2007-03-27  Bruno Haible  <bruno@clisp.org>
58136
58137         * lib/stat-time.h: Include <sys/stat.h>.
58138
58139 2007-03-27  James Youngman  <jay@gnu.org>
58140
58141         * lib/stat-time.h (get_stat_birthtime): New function for
58142           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58143         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58144           and its variants.
58145         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58146         * modules/stat-time-test: New file.
58147         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58148
58149 2007-03-26  Bruno Haible  <bruno@clisp.org>
58150
58151         Better support of signalling NaNs.
58152         * lib/atanl.c: Include isnanl.h.
58153         (atanl): Perform test for NaN at the beginning of the function and
58154         through a call to isnanl.
58155         * lib/cosl.c: Include isnanl.h.
58156         (cosl): Perform test for NaN at the beginning of the function and
58157         through a call to isnanl.
58158         * lib/ldexpl.c: Include isnanl.h.
58159         (ldexpl): Perform test for NaN through a call to isnanl.
58160         * lib/logl.c: Include isnanl.h.
58161         (logl): Perform test for NaN at the beginning of the function and
58162         through a call to isnanl.
58163         * lib/sinl.c: Include isnanl.h.
58164         (sinl): Perform test for NaN at the beginning of the function and
58165         through a call to isnanl.
58166         * lib/sqrtl.c: Include isnanl.h.
58167         (sqrtl): Perform test for NaN at the beginning of the function and
58168         through a call to isnanl.
58169         * lib/tanl.c: Include isnanl.h.
58170         (tanl): Perform test for NaN at the beginning of the function and
58171         through a call to isnanl.
58172         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58173         * modules/mathl (Depends-on): Add isnanl.
58174
58175 2007-03-26  Eric Blake  <ebb9@byu.net>
58176
58177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58178         regression in logic sense of previous patch.
58179
58180 2007-03-26  Bruno Haible  <bruno@clisp.org>
58181
58182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58183         unportable shell command "if ! ...".
58184         Reported by Ralf Wildenhues.
58185
58186 2007-03-25  Bruno Haible  <bruno@clisp.org>
58187
58188         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58189         <sysexits.h> file, and only add EX_CONFIG.
58190         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58191         absolute file name and whether it is sufficient. Substitute also
58192         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58193         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58194         ABSOLUTE_SYSEXITS_H into sysexits.h.
58195
58196 2007-03-25  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58199         hints is NULL.
58200
58201 2007-03-25  Bruno Haible  <bruno@clisp.org>
58202
58203         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58204         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58205
58206 2007-03-25  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/vasnprintf.c: Include langinfo.h.
58209         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58210         multithread-safe.
58211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58213         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58216         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58217         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58220         Reported by Simon Josefsson.
58221
58222 2007-03-25  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58225         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58226         * modules/vasnprintf (Depends-on): Add stdint.
58227
58228 2007-03-25  Bruno Haible  <bruno@clisp.org>
58229
58230         * modules/fpieee: New file.
58231         * m4/fpieee.m4: New file.
58232         * modules/isnan-nolibm (Depends-on): Add fpieee.
58233         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58234         * modules/isnanl (Depends-on): Add fpieee.
58235
58236 2007-03-25  Bruno Haible  <bruno@clisp.org>
58237
58238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58239
58240 2007-03-25  Bruno Haible  <bruno@clisp.org>
58241
58242         Avoid test failures on IRIX 6.5.
58243         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58244         (main): Use it.
58245         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58246         macros.
58247         (main): Use them.
58248
58249 2007-03-25  Bruno Haible  <bruno@clisp.org>
58250
58251         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58252         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58253         exists but doesn't work.
58254         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58255         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58257         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58258         math.h.
58259
58260 2007-03-25  Bruno Haible  <bruno@clisp.org>
58261
58262         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58263         returns inf. Needed on IRIX 6.5.
58264
58265 2007-03-25  Bruno Haible  <bruno@clisp.org>
58266
58267         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58268         (main): Use isnanl instead of x != x idiom.
58269         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58270
58271         * tests/test-frexp.c: Include isnan.h.
58272         (main): Use isnan instead of x != x idiom.
58273         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58274
58275 2007-03-25  Bruno Haible  <bruno@clisp.org>
58276
58277         * tests/test-frexp.c (NaN): New function/macro.
58278         (main): Use it instead of 0.0 / 0.0.
58279         * tests/test-isnan.c (NaN): New function/macro.
58280         (main): Use it instead of 0.0 / 0.0.
58281         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58282         (test_function): Use it instead of 0.0 / 0.0.
58283         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58284         (test_function): Use it instead of 0.0 / 0.0.
58285         * tests/test-snprintf-posix.h (NaN): New function/macro.
58286         (test_function): Use it instead of 0.0 / 0.0.
58287         * tests/test-sprintf-posix.h (NaN): New function/macro.
58288         (test_function): Use it instead of 0.0 / 0.0.
58289         * tests/test-fprintf-posix.h (NaN): New function/macro.
58290         (test_function): Use it instead of 0.0 / 0.0.
58291         * tests/test-printf-posix.h (NaN): New function/macro.
58292         (test_function): Use it instead of 0.0 / 0.0.
58293
58294         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58295
58296 2007-03-25  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58299
58300 2007-03-25  Bruno Haible  <bruno@clisp.org>
58301
58302         * lib/regexec.c (merge_state_with_log): Make static.
58303
58304 2007-03-25  Bruno Haible  <bruno@clisp.org>
58305
58306         * lib/trigl.c (kernel_rem_pio2): Make static.
58307
58308 2007-03-25  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/sincosl.c (sincosl_table): Make static.
58311
58312 2007-03-25  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58315         if the compiler does not support C99.
58316
58317 2007-03-25  Bruno Haible  <bruno@clisp.org>
58318
58319         * modules/time (Makefile.am): Ensure all rule action lines start with a
58320         tab.
58321
58322 2007-03-24  Bruno Haible  <bruno@clisp.org>
58323
58324         * modules/tsearch-tests: New file.
58325         * tests/test-tsearch.sh: New file.
58326         * tests/test-tsearch.c: New file, mostly copied from glibc.
58327
58328         * modules/search-tests: New file.
58329         * tests/test-search.c: New file.
58330
58331         * modules/search: New file.
58332         * lib/search_.h: New file, incorporating lib/tsearch.h.
58333         * m4/search_h.m4: New file.
58334         * lib/tsearch.h: Remove file.
58335         * lib/tsearch.c: Include search.h instead of tsearch.h.
58336         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58337         HAVE_TSEARCH.
58338         * modules/tsearch (Files): Remove lib/tsearch.h.
58339         (Depends-on): Add search.
58340         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58341         (Include): Change tsearch.h into search.h.
58342
58343 2007-03-24  Bruno Haible  <bruno@clisp.org>
58344
58345         * modules/fpucw: New file.
58346         * lib/fpucw.h: New file.
58347         * lib/frexp.c: Include fpucw.h.
58348         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58349         (FUNC): Use them.
58350         * lib/printf-frexp.c: Include fpucw.h.
58351         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58352         (FUNC): Use them.
58353         * lib/vasnprintf.c: Include fpucw.h.
58354         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58355         'long double' calculations.
58356         * tests/test-frexpl.c: Include fpucw.h.
58357         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58358         * tests/test-printf-frexpl.c: Include fpucw.h.
58359         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58360         * modules/frexpl (Depends-on): Add fpucw.
58361         * modules/printf-frexpl (Depends-on): Likewise.
58362         * modules/fprintf-posix (Depends-on): Likewise.
58363         * modules/snprintf-posix (Depends-on): Likewise.
58364         * modules/sprintf-posix (Depends-on): Likewise.
58365         * modules/vasnprintf-posix (Depends-on): Likewise.
58366         * modules/vasprintf-posix (Depends-on): Likewise.
58367         * modules/vfprintf-posix (Depends-on): Likewise.
58368         * modules/vsnprintf-posix (Depends-on): Likewise.
58369         * modules/vsprintf-posix (Depends-on): Likewise.
58370         * modules/frexpl-tests (Depends-on): Likewise.
58371         * modules/printf-frexpl-tests (Depends-on): Likewise.
58372
58373 2007-03-24  Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/float+.h: New file.
58376         * lib/isnan.c: Include float+.h.
58377         (SIZE): New macro.
58378         (FUNC): Compare only SIZE bytes of the value.
58379         * lib/vasnprintf.c: Include float+.h.
58380         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58381         SIZEOF_LDBL or SIZEOF_DBL bytes.
58382         * modules/isnan-nolibm (Files): Add lib/float+.h.
58383         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58384         * modules/isnanl (Files): Add lib/float+.h.
58385         * modules/vasnprintf (Files): Add lib/float+.h.
58386
58387 2007-03-24  Bruno Haible  <bruno@clisp.org>
58388
58389         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58390         include isnanl-nolibm.h.
58391
58392 2007-03-24  Bruno Haible  <bruno@clisp.org>
58393
58394         * tests/test-read-file.c (main): Don't produce spurious output for
58395         expected situations. Make the test fail if it encountered unexpected
58396         results.
58397
58398 2007-03-24  Bruno Haible  <bruno@clisp.org>
58399
58400         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58401         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58402
58403 2007-03-24  Bruno Haible  <bruno@clisp.org>
58404
58405         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58406
58407 2007-03-24  Bruno Haible  <bruno@clisp.org>
58408
58409         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58410         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58411
58412         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58413         * modules/utf8-ucs4: Turn into a symbolic link to module
58414         unistr/u8-mbtouc.
58415
58416         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58417         utf8-ucs4-unsafe.
58418         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58419         unistr/u8-mbtouc-unsafe.
58420
58421         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58422         * modules/utf16-ucs4: Turn into a symbolic link to module
58423         unistr/u16-mbtouc.
58424
58425         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58426         utf16-ucs4-unsafe.
58427         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58428         unistr/u16-mbtouc-unsafe.
58429
58430         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58431         * modules/ucs4-utf8: Turn into a symbolic link to module
58432         unistr/u8-ubtomb.
58433
58434         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58435         * modules/ucs4-utf16: Turn into a symbolic link to module
58436         unistr/u16-ubtomb.
58437
58438 2007-03-24  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58441         Enable the function only if HAVE_INLINE.
58442         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58443         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58444         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58445         Enable the function only if HAVE_INLINE.
58446         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58447         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58448         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58449         Enable the function only if HAVE_INLINE.
58450         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58451         Enable the function only if HAVE_INLINE.
58452         * modules/utf8-ucs4: Update.
58453         * modules/utf8-ucs4-unsafe: Update.
58454         * modules/utf16-ucs4: Update.
58455         * modules/utf16-ucs4-unsafe: Update.
58456         * modules/ucs4-utf8: Update.
58457         * modules/ucs4-utf16: Update.
58458
58459 2007-03-24  Bruno Haible  <bruno@clisp.org>
58460
58461         * lib/utf8-ucs4.h: Remove file.
58462         * lib/utf8-ucs4-unsafe.h: Remove file.
58463         * lib/utf16-ucs4.h: Remove file.
58464         * lib/utf16-ucs4-unsafe.h: Remove file.
58465         * lib/ucs4-utf8.h: Remove file.
58466         * lib/ucs4-utf16.h: Remove file.
58467         * lib/unistr.h: Include their previous contents.
58468         * m4/utf-ucs4.m4: Remove file.
58469         * m4/ucs4-utf.m4: Remove file.
58470         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58471         (Depends-on): Add unistr/base.
58472         (configure.ac): Remove gl_UTF_UCS4.
58473         (Makefile.am): Update.
58474         (Include): Change to unistr.h.
58475         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58476         (Depends-on): Add unistr/base.
58477         (configure.ac): Remove gl_UTF_UCS4.
58478         (Makefile.am): Update.
58479         (Include): Change to unistr.h.
58480         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58481         (Depends-on): Add unistr/base.
58482         (configure.ac): Remove gl_UTF_UCS4.
58483         (Makefile.am): Update.
58484         (Include): Change to unistr.h.
58485         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58486         (Depends-on): Add unistr/base.
58487         (configure.ac): Remove gl_UTF_UCS4.
58488         (Makefile.am): Update.
58489         (Include): Change to unistr.h.
58490         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58491         (Depends-on): Add unistr/base.
58492         (configure.ac): Remove gl_UCS4_UTF.
58493         (Makefile.am): Update.
58494         (Include): Change to unistr.h.
58495         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58496         (Depends-on): Add unistr/base.
58497         (configure.ac): Remove gl_UCS4_UTF.
58498         (Makefile.am): Update.
58499         (Include): Change to unistr.h.
58500         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58501         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58502         utf8-ucs4-unsafe.h.
58503         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58504         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58505         utf16-ucs4-unsafe.h.
58506         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58507         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58508         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58509         * lib/unistr/u8-strchr.c: Likewise.
58510         * lib/unistr/u8-strrchr.c: Likewise.
58511         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58512         * lib/unistr/u16-strchr.c: Likewise.
58513         * lib/unistr/u16-strrchr.c: Likewise.
58514         * lib/striconveh.c: Update.
58515         * lib/linebreak.c: Update.
58516
58517 2007-03-24  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58520         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58521
58522 2007-03-22  Bruno Haible  <bruno@clisp.org>
58523
58524         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58525
58526 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58527
58528         * MODULES.html.sh (File system functions): New module write-any-file.
58529         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58530         * m4/write-any-file.m4: New files.
58531
58532 2007-03-23  Eric Blake  <ebb9@byu.net>
58533
58534         * gnulib-tool: Rearrange space-tab sequences, since some editors
58535         like to eat them.
58536
58537 2007-03-23  Eric Blake  <ebb9@byu.net>
58538
58539         * lib/version-etc.c (version_etc_va): Update license wording to
58540         be more concise.  Recommended by Richard Stallman.
58541
58542 2007-03-22  Bruno Haible  <bruno@clisp.org>
58543
58544         * lib/poll.c (MSG_PEEK): New fallback definition.
58545
58546 2007-03-22  Bruno Haible  <bruno@clisp.org>
58547
58548         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58549         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58550         (main): Update.
58551         Fixes a compilation error on BeOS.
58552
58553 2007-03-22  Bruno Haible  <bruno@clisp.org>
58554
58555         * modules/frexpl-tests: New file.
58556         * tests/test-frexpl.c: New file.
58557
58558         * modules/frexpl: New file.
58559         * m4/frexpl.m4: New file.
58560         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58561         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58563         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58564         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58565         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58566
58567 2007-03-22  Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/frexpl.c: Share code with lib/frexp.c.
58570         * modules/mathl (Files): Add lib/frexp.c.
58571         (Depends-on): Add isnanl-nolibm.
58572
58573 2007-03-22  Bruno Haible  <bruno@clisp.org>
58574
58575         * modules/printf-frexp (Files): Add m4/frexp.m4.
58576         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58577         only if the found frexp function actually works.
58578
58579 2007-03-22  Bruno Haible  <bruno@clisp.org>
58580
58581         * lib/frexp.c: Remove older implementation that uses divisions.
58582
58583 2007-03-21  Bruno Haible  <bruno@clisp.org>
58584
58585         * modules/frexp-tests: New file.
58586         * tests/test-frexp.c: New file.
58587
58588         * modules/frexp: New file.
58589         * lib/frexp.c: New file.
58590         * m4/frexp.m4: New file.
58591         * lib/math_.h (frexp): New declaration.
58592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58593         REPLACE_FREXP.
58594         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58595
58596 2007-03-21  Bruno Haible  <bruno@clisp.org>
58597
58598         * modules/isnanl-tests: New file.
58599         * tests/test-isnanl.c: New file.
58600
58601         * modules/isnanl: New file.
58602         * lib/isnanl.h: New file.
58603         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58604         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58605         gl_FUNC_ISNANL_WORKS.
58606         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58607         New macros.
58608
58609 2007-03-21  Bruno Haible  <bruno@clisp.org>
58610
58611         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58612         lib/isnanl.h.
58613         (Include): Update.
58614         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58615         * lib/vasnprintf.c: Update.
58616         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58617         tests/test-isnanl.h, remove tests/test-isnanl.c.
58618         (Makefile.am): Update.
58619         * tests/test-isnanl-nolibm.c: New file.
58620         * tests/test-isnanl.h: New file.
58621         * tests/test-isnanl.c: Remove file.
58622
58623 2007-03-21  Jim Meyering  <jim@meyering.net>
58624
58625         When trying to open ".", treat ESTALE like EACCES.
58626         * lib/savewd.c (savewd_save): Resort to forking not just upon
58627         failure with EACCES, but also when errno is ESTALE.
58628
58629 2007-03-20  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58632         Needed on AIX 5.1. Reported by Matthew Woehlke.
58633
58634 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         Suggestions by Bruno Haible:
58637         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58638         our own.
58639         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58640         * modules/acl (Depends-on): Add gettext.
58641
58642 2007-03-19  Bruno Haible  <bruno@clisp.org>
58643
58644         * modules/iconvme: Remove file.
58645         * lib/iconvme.h: Remove file.
58646         * lib/iconvme.c: Remove file.
58647         * m4/iconvme.m4: Remove file.
58648
58649 2007-03-19  Bruno Haible  <bruno@clisp.org>
58650
58651         * doc/relocatable-maint.texi: Break long shell script line.
58652         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58653
58654 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58655
58656         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58657         handle file_has_acl.
58658         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58659         * lib/acl.c: Move header inclusions and related macro defns into
58660         lib/acl-internal.h.
58661         (S_ISLNK): Remove defn, since that's now done for us.
58662         (file_has_acl): Move to lib/file-has-acl.c.
58663         Call acl_trivial if available.  This is the crucial part of the fix.
58664         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58665         shared within the library.  Rewrite a bit, partly to make it compatible
58666         with the GNU coding style.
58667         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58668         Remove unnecessary double-quotes.
58669         Don't test for acl_to_text; the build will catch that.
58670         Replace acl_entries if it doesn't exist and it is needed.
58671         Check for -lsec and acl_trivial (as used on Solaris 10).
58672         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58673         lib/file-has-acl.c.
58674         (Depends-on): Add sys_stat, for S_ISLNK.
58675
58676 2007-03-19  Ben Pfaff  <blp@gnu.org>
58677
58678         * doc/gnulib.texi: Fix typos.
58679         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58680
58681 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58684         If size is zero here, buf must be zero.
58685
58686 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58687
58688         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58689         <bruno@clisp.org>.
58690
58691 2007-03-18  Bruno Haible  <bruno@clisp.org>
58692
58693         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58694         Suggested by Eric Blake.
58695
58696 2007-03-18  Ben Pfaff  <blp@gnu.org>
58697
58698         * doc/relocatable.texi: Recommend using as prefix a directory
58699         that does not exist and will never be created.  Based on
58700         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58701         and others.
58702
58703 2007-03-17  Bruno Haible  <bruno@clisp.org>
58704
58705         * lib/fchownat.c: Include lchown.h.
58706
58707 2007-03-17  Bruno Haible  <bruno@clisp.org>
58708
58709         Fix endless loop when the given allocated size was > INT_MAX.
58710         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58711         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58712         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58713         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58714         * lib/sprintf.c (sprintf): Likewise.
58715
58716 2007-03-17  Bruno Haible  <bruno@clisp.org>
58717
58718         * tests/test-argp-2.sh (func_compare): Output a context diff.
58719
58720 2007-03-17  Bruno Haible  <bruno@clisp.org>
58721
58722         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58723         locale's decimal-point character.
58724
58725 2007-03-17  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58728         before comparing it. Needed because on some platforms (e.g. x86) a
58729         'long double' occupies less bytes than sizeof (long double).
58730
58731 2007-03-17  Bruno Haible  <bruno@clisp.org>
58732
58733         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58734         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58735         * tests/test-getaddrinfo.c (simple): Likewise.
58736         * tests/test-read-file.c (main): Likewise.
58737
58738 2007-03-17  Bruno Haible  <bruno@clisp.org>
58739
58740         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58741
58742 2007-03-17  Bruno Haible  <bruno@clisp.org>
58743
58744         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58745         unused variable.
58746
58747 2007-03-17  Bruno Haible  <bruno@clisp.org>
58748
58749         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58750         * tests/test-c-strncasecmp.c: Likewise.
58751
58752 2007-03-17  Bruno Haible  <bruno@clisp.org>
58753
58754         * modules/stdlib (Depends-on): Add unistd.
58755         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58756         Needed for MacOS X 10.3.
58757
58758 2007-03-17  Bruno Haible  <bruno@clisp.org>
58759
58760         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58761
58762 2007-03-17  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58765
58766 2007-03-17  Bruno Haible  <bruno@clisp.org>
58767
58768         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58769         to reflect files copied from gnulib (with or without modifications).
58770         Suggested by Jim Meyering.
58771
58772 2007-03-17  Eric Blake  <ebb9@byu.net>
58773
58774         * NEWS: Document stdlib change from 2007-02-18.
58775
58776 2007-03-17  Jim Meyering  <jim@meyering.net>
58777
58778         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58779         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58780         someone uses a name containing shell meta-characters.
58781         Reported by Alfred M. Szmidt.
58782
58783         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58784
58785 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58786
58787         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58788         and copy gettext configuration files only if configure.ac contains
58789         a use of AM_GNU_GETTEXT_VERSION.
58790
58791 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58792
58793         * build-aux/bootstrap (gnulib_name): New variable.
58794         (gnulib_tool_options): Use it.
58795
58796 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58797
58798         * tests/test-des.c: Use new namespace.
58799
58800 2007-03-15  Bruno Haible  <bruno@clisp.org>
58801
58802         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58803         Reported by James Youngman <jay@gnu.org>.
58804
58805 2007-03-15  Bruno Haible  <bruno@clisp.org>
58806
58807         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58808         declared prototype. Needed with cc on OSF/1 5.1.
58809
58810 2007-03-15  Bruno Haible  <bruno@clisp.org>
58811
58812         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58813         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58814         (struct gl_list_implementation): Add dispose_fn argument to the
58815         'create_empty', 'create' methods.
58816         (struct gl_list_impl_base): Add field 'dispose_fn'.
58817         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58818         argument.
58819         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58820         dispose_fn argument.
58821         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58822         dispose_fn on the dropped values.
58823         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58824         dispose_fn argument.
58825         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58826         dropped values.
58827         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58828         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58829         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58830         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58831         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58832         argument.
58833         (gl_tree_list_free): Call dispose_fn on the dropped values.
58834         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58835         the dropped values.
58836         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58837         Add dispose_fn argument.
58838         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58839         Call dispose_fn on the dropped values.
58840         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58841         Add dispose_fn argument.
58842         (gl_sublist_create): Initialize the 'dispose_fn' field.
58843         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58844         * tests/test-array_list.c (main): Update.
58845         * tests/test-carray_list.c (main): Update.
58846         * tests/test-avltree_list.c (main): Update.
58847         * tests/test-rbtree_list.c (main): Update.
58848         * tests/test-avltreehash_list.c (main): Update.
58849         * tests/test-rbtreehash_list.c (main): Update.
58850         * tests/test-linked_list.c (main): Update.
58851         * tests/test-linkedhash_list.c (main): Update.
58852         * tests/test-array_oset.c (main): Update.
58853
58854 2007-03-15  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58857         (gl_oset_create_empty): Add dispose_fn argument.
58858         (struct gl_oset_implementation): Add dispose_fn argument to
58859         'create_empty' method.
58860         (struct gl_oset_impl_base): Add dispose_fn field.
58861         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58862         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58863         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58864         values.
58865         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58866         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58867         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58868         dropped value.
58869         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58870         dropped value.
58871         * tests/test-array_oset.c (main): Update.
58872         * tests/test-avltree_oset.c (main): Update.
58873         * tests/test-rbtree_oset.c (main): Update.
58874         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58875
58876 2007-03-13  Bruno Haible  <bruno@clisp.org>
58877
58878         * tests/test-stdbool.c (i): Update after last patch.
58879
58880 2007-03-12  Bruno Haible  <bruno@clisp.org>
58881
58882         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58883         the iswprint macro. Needed on Solaris 2.5.1.
58884
58885 2007-03-12  Bruno Haible  <bruno@clisp.org>
58886
58887         * tests/test-printf-frexp.c (main): Declare x as volatile.
58888
58889 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58890
58891         * doc/gnulib.texi (Build robot for gnulib): New section.
58892
58893 2007-03-12  Jim Meyering  <jim@meyering.net>
58894
58895         * build-aux/bootstrap: New file.
58896         * build-aux/bootstrap.conf: New file, from coreutils.
58897
58898 2007-03-11  Bruno Haible  <bruno@clisp.org>
58899
58900         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58901
58902 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58903
58904         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58905         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58906         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58907
58908 2007-03-11  Bruno Haible  <bruno@clisp.org>
58909
58910         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58911         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58912
58913 2007-03-11  Bruno Haible  <bruno@clisp.org>
58914
58915         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58916         formula. Needed for SunPRO C 5.0.
58917
58918 2007-03-11  Bruno Haible  <bruno@clisp.org>
58919
58920         * modules/long-options (Depends-on): Add getopt.
58921
58922 2007-03-11  Bruno Haible  <bruno@clisp.org>
58923
58924         * modules/modechange (Depends-on): Add stdbool.
58925
58926 2007-03-11  Bruno Haible  <bruno@clisp.org>
58927
58928         * modules/i-ring (Depends-on): Add stdbool.
58929
58930 2007-03-11  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/gc-des (Depends-on): Add stdbool.
58933
58934 2007-03-11  Bruno Haible  <bruno@clisp.org>
58935
58936         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58937
58938 2007-03-11  Bruno Haible  <bruno@clisp.org>
58939
58940         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58941
58942 2007-03-11  Bruno Haible  <bruno@clisp.org>
58943
58944         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58945
58946 2007-03-11  Bruno Haible  <bruno@clisp.org>
58947
58948         * lib/vasnprintf.c (sprintf): Undefine.
58949
58950 2007-03-11  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58953         initializers in SunPRO C and Compaq C compilers.
58954
58955 2007-03-11  Bruno Haible  <bruno@clisp.org>
58956
58957         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58958         decrementing code ANSI C compliant.
58959
58960 2007-03-11  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58963         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58964
58965 2007-03-11  Bruno Haible  <bruno@clisp.org>
58966
58967         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58968         <stdbool.h> substitute doesn't pass.
58969
58970 2007-03-11  Bruno Haible  <bruno@clisp.org>
58971
58972         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58973
58974 2007-03-11  Bruno Haible  <bruno@clisp.org>
58975
58976         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58977         script, for submission to autobuild.josefsson.org.
58978
58979 2007-03-10  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/canonicalize-lgpl-tests: New file.
58982         * tests/test-canonicalize-lgpl.sh: New file.
58983         * tests/test-canonicalize-lgpl.c: New file.
58984
58985         * modules/c-strcase-tests: New file.
58986         * tests/test-c-strcase.sh: New file.
58987         * tests/test-c-strcasecmp.c: New file.
58988         * tests/test-c-strncasecmp.c: New file.
58989
58990         * modules/atexit-tests: New file.
58991         * tests/test-atexit.sh: New file.
58992         * tests/test-atexit.c: New file.
58993
58994 2007-03-10  Bruno Haible  <bruno@clisp.org>
58995
58996         * tests/test-binary-io.sh: Use temporary filenames that are not so
58997         likely to clash with those of other tests (in a parallel make).
58998         * tests/test-binary-io.c: Likewise.
58999
59000 2007-03-10  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59003         fallback; use #error instead.
59004         Suggested by Simon Josefsson.
59005
59006 2007-03-10  Bruno Haible  <bruno@clisp.org>
59007
59008         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59009         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59010         first and the last.
59011
59012 2007-03-10  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59015
59016 2007-03-10  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59019         "make distcheck".
59020         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59021         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59022         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59023
59024 2007-03-10  Bruno Haible  <bruno@clisp.org>
59025
59026         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59027         variable.
59028         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59029         variable.
59030
59031 2007-03-09  Eric Blake  <ebb9@byu.net>
59032         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59033
59034         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59035         types are not being provided by gnulib.
59036         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59037         types are supported.
59038
59039 2007-03-10  Bruno Haible  <bruno@clisp.org>
59040
59041         * lib/stdio_.h (__attribute__): New macro.
59042         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59043         vsprintf): Specify __attribute__ __format__ for GCC.
59044         Suggested by Eric Blake.
59045
59046 2007-03-09  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/printf-posix-tests: New file.
59049         * tests/test-printf-posix.sh: New file.
59050         * tests/test-printf-posix.c: New file.
59051
59052         * modules/printf-posix: New file.
59053         * lib/printf.c: New file.
59054         * m4/printf-posix-rpl.m4: New file.
59055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59056         REPLACE_PRINTF.
59057         * lib/stdio_.h (printf): New declaration.
59058         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59059         ____strfmon____): New macros.
59060         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59061         REPLACE_PRINTF.
59062
59063 2007-03-09  Bruno Haible  <bruno@clisp.org>
59064
59065         * tests/test-vasnprintf-posix2.sh: New file.
59066         * tests/test-vasnprintf-posix2.c: New file.
59067         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59068         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59069         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59070
59071         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59072         a locale dependent decimal point, rather than always '.'.
59073
59074 2007-03-09  Eric Blake  <ebb9@byu.net>
59075
59076         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59077         spite of platforms like Tandem/NSK that define it to -1.
59078
59079 2007-03-08  Bruno Haible  <bruno@clisp.org>
59080
59081         * modules/vprintf-posix-tests: New file.
59082         * tests/test-vprintf-posix.sh: New file.
59083         * tests/test-vprintf-posix.c: New file.
59084         * tests/test-printf-posix.h: New file.
59085
59086         * modules/vprintf-posix: New file.
59087         * lib/vprintf.c: New file.
59088         * m4/vprintf-posix.m4: New file.
59089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59090         REPLACE_VPRINTF.
59091         * lib/stdio_.h (vprintf): New declaration.
59092         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59093         REPLACE_VPRINTF.
59094
59095 2007-03-08  Bruno Haible  <bruno@clisp.org>
59096
59097         * modules/fprintf-posix-tests: New file.
59098         * tests/test-fprintf-posix.sh: New file.
59099         * tests/test-fprintf-posix.c: New file.
59100
59101         * modules/fprintf-posix: New file.
59102         * lib/fprintf.c: New file.
59103         * m4/fprintf-posix.m4: New file.
59104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59105         REPLACE_FPRINTF.
59106         * lib/stdio_.h (fprintf): New declaration.
59107         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59108         REPLACE_FPRINTF.
59109
59110 2007-03-08  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/vfprintf-posix-tests: New file.
59113         * tests/test-vfprintf-posix.sh: New file.
59114         * tests/test-vfprintf-posix.c: New file.
59115         * tests/test-fprintf-posix.h: New file.
59116         * tests/test-fprintf-posix.out: New file.
59117
59118         * modules/vfprintf-posix: New file.
59119         * lib/vfprintf.c: New file.
59120         * m4/vfprintf-posix.m4: New file.
59121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59122         REPLACE_VFPRINTF.
59123         * lib/stdio_.h (vfprintf): New declaration.
59124         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59125         REPLACE_VFPRINTF.
59126
59127 2007-03-08  Bruno Haible  <bruno@clisp.org>
59128
59129         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59130
59131 2007-03-08  Bruno Haible  <bruno@clisp.org>
59132
59133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59134         instead of 'expr' invocations.
59135         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59139         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59140         Suggested by Paul Eggert.
59141
59142 2007-03-08  Bruno Haible  <bruno@clisp.org>
59143
59144         * modules/fseterr-tests: New file.
59145         * tests/test-fseterr.c: New file.
59146
59147         * modules/fseterr: New file.
59148         * lib/fseterr.h: New file.
59149         * lib/fseterr.c: New file.
59150
59151 2007-03-08  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59154         * lib/getopt_.h: Likewise.
59155         * lib/mbswidth.h: Likewise.
59156         * lib/setenv.h: Likewise.
59157         * lib/vasnprintf.h: Likewise.
59158         * lib/vasprintf.h: Likewise.
59159         * lib/verror.h: Likewise.
59160         * lib/xsetenv.h: Likewise.
59161         * lib/xvasprintf.h: Likewise.
59162
59163 2007-03-08  Jim Meyering  <jim@meyering.net>
59164
59165         * users.txt: Add parted.
59166
59167         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59168
59169 2007-03-07  Bruno Haible  <bruno@clisp.org>
59170
59171         * m4/printf.m4: Make the shell script snippets copy&pastable.
59172
59173 2007-03-02  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/netinet_in_.h: New file.
59176         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59177         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59178         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59179         (Depends-on): Add absolute-header.
59180         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59181         into netinet/in.h.
59182
59183 2007-03-03  Bruno Haible  <bruno@clisp.org>
59184
59185         * lib/sys_select_.h: New file.
59186         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59187         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59188         * modules/sys_select (Files): Add lib/sys_select_.h.
59189         (Depends-on): Add absolute-header.
59190         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59191         into sys/select.h.
59192
59193 2007-03-02  Bruno Haible  <bruno@clisp.org>
59194
59195         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59196         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59197         values.
59198         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59199         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59200         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59201         * modules/sys_socket (Depends-on): Add absolute-header.
59202         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59203         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59204         (Include): Remove requirement of inclusion of <sys/types.h>.
59205
59206 2007-03-02  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/byteswap_.h (bswap_32): Fix formula.
59209
59210 2007-03-06  Bruno Haible  <bruno@clisp.org>
59211
59212         * modules/sprintf-posix-tests: New file.
59213         * tests/test-sprintf-posix.c: New file.
59214
59215         * modules/sprintf-posix: New file.
59216         * lib/sprintf.c: New file.
59217         * m4/sprintf-posix.m4: New file.
59218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59219         REPLACE_SPRINTF.
59220         * lib/stdio_.h (sprintf): New declaration.
59221         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59222         REPLACE_SPRINTF.
59223
59224 2007-03-06  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/vsprintf-posix-tests: New file.
59227         * tests/test-vsprintf-posix.c: New file.
59228         * tests/test-sprintf-posix.h: New file.
59229
59230         * modules/vsprintf-posix: New file.
59231         * lib/vsprintf.c: New file.
59232         * m4/vsprintf-posix.m4: New file.
59233         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59234         REPLACE_VSPRINTF.
59235         * lib/stdio_.h (vsprintf): New declaration.
59236         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59237         REPLACE_VSPRINTF.
59238
59239 2007-03-06  Bruno Haible  <bruno@clisp.org>
59240
59241         * modules/vsnprintf (Depend-on): Remove minmax.
59242
59243 2007-03-06  Bruno Haible  <bruno@clisp.org>
59244
59245         * modules/snprintf-posix-tests: New file.
59246         * tests/test-snprintf-posix.c: New file.
59247
59248         * modules/snprintf-posix: New file.
59249         * m4/snprintf-posix.m4: New file.
59250         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59251         gl_FUNC_SNPRINTF.
59252         (gl_FUNC_SNPRINTF): Invoke it.
59253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59254         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59255         is set.
59256         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59257
59258 2007-03-06  Bruno Haible  <bruno@clisp.org>
59259
59260         * modules/vsnprintf-posix-tests: New file.
59261         * tests/test-vsnprintf-posix.c: New file.
59262         * tests/test-snprintf-posix.h: New file.
59263
59264         * modules/vsnprintf-posix: New file.
59265         * m4/vsnprintf-posix.m4: New file.
59266         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59267         gl_FUNC_VSNPRINTF.
59268         (gl_FUNC_VSNPRINTF): Invoke it.
59269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59270         * lib/stdio_.h (vsnprintf): Define as a replacement if
59271         REPLACE_VSNPRINTF is set.
59272         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59273
59274 2007-03-06  Bruno Haible  <bruno@clisp.org>
59275
59276         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59278
59279 2007-03-06  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59282         (asinl): Declare also if HAVE_DECL_ASINL is set.
59283         (atanl): Declare also if HAVE_DECL_ATANL is set.
59284         (ceill): Declare also if HAVE_DECL_CEILL is set.
59285         (cosl): Declare also if HAVE_DECL_COSL is set.
59286         (expl): Declare also if HAVE_DECL_EXPL is set.
59287         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59288         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59289         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59290         (logl): Declare also if HAVE_DECL_LOGL is set.
59291         (sinl): Declare also if HAVE_DECL_SINL is set.
59292         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59293         (tanl): Declare also if HAVE_DECL_TANL is set.
59294         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59296         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59297         declaration of frexpl, ldexpl.
59298         * modules/printf-frexpl (Depends-on): Add math.
59299         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59300
59301 2007-03-05  Bruno Haible  <bruno@clisp.org>
59302
59303         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59304         frexpl and ldexpl are declared.
59305         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59306
59307 2007-03-05  Bruno Haible  <bruno@clisp.org>
59308
59309         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59310         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59311
59312 2007-03-05  Bruno Haible  <bruno@clisp.org>
59313
59314         * lib/stdio_.h: Include <stddef.h>.
59315
59316 2007-03-05  Bruno Haible  <bruno@clisp.org>
59317
59318         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59319
59320 2007-03-05  Bruno Haible  <bruno@clisp.org>
59321
59322         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59323         NetBSD 4, from Ralf Wildenhues.
59324
59325 2007-03-04  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/vasprintf.h: Update #if logic for the case when the functions
59328         exist but are overridden.
59329
59330 2007-03-04  Bruno Haible  <bruno@clisp.org>
59331
59332         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59333         implementations: glibc-2.4 and MacOS X 10.3.
59334         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59335         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59336         * tests/test-vasprintf-posix.c (test_function): Likewise.
59337
59338 2007-03-04  Bruno Haible  <bruno@clisp.org>
59339
59340         * modules/vasprintf-posix-tests: New file.
59341         * tests/test-vasprintf-posix.c: New file.
59342
59343         * modules/vasprintf-posix: New file.
59344         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59345         defined.
59346         * m4/vasprintf-posix.m4: New file.
59347         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59348         gl_FUNC_VASPRINTF.
59349         (gl_FUNC_VASPRINTF): Invoke it.
59350         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59351         here.
59352         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59353
59354 2007-03-04  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59357         REPLACE_GETTIMEOFDAY.
59358         * modules/sys_time (Makefile.am): Likewise.
59359         * m4/sys_time_h.m4: Likewise.
59360         * m4/gettimeofday.m4: Likewise.
59361
59362 2007-03-04  Bruno Haible  <bruno@clisp.org>
59363
59364         * modules/vasnprintf-posix-tests: New file.
59365         * tests/test-vasnprintf-posix.c: New file.
59366
59367         * modules/vasnprintf-posix: New file.
59368         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59369         printf-frexpl.h.
59370         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59371         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59372         REPLACE_VASNPRINTF is defined.
59373         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59374         gl_FUNC_VASNPRINTF.
59375         (gl_FUNC_VASNPRINTF): Invoke it.
59376         * m4/vasnprintf-posix.m4: New file.
59377         * m4/printf.m4: New file.
59378
59379 2007-03-04  Bruno Haible  <bruno@clisp.org>
59380
59381         Compile progreloc.c only if --enable-relocatable is specified.
59382         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59383         if --enable-relocatable was specified.
59384         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59385         lib_SOURCES.
59386
59387 2007-03-04  Jim Meyering  <jim@meyering.net>
59388
59389         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59390         Use it consistently, rather than enumerating errno constants.
59391
59392 2007-03-04  Bruno Haible  <bruno@clisp.org>
59393
59394         * modules/xvasprintf-tests: New file.
59395         * tests/test-xvasprintf.c: New file.
59396
59397         * modules/vasprintf-tests: New file.
59398         * tests/test-vasprintf.c: New file.
59399
59400         * modules/vasnprintf-tests: New file.
59401         * tests/test-vasnprintf.c: New file.
59402
59403         * modules/vsnprintf-tests: New file.
59404         * tests/test-vsnprintf.c: New file.
59405
59406         * modules/snprintf-tests: New file.
59407         * tests/test-snprintf.c: New file.
59408
59409 2007-03-04  Bruno Haible  <bruno@clisp.org>
59410
59411         Compile relocatable.c only if --enable-relocatable is specified.
59412         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59413         gl_RELOCATABLE_LIBRARY.
59414         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59415         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59416         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59417         gl_RELOCATABLE_LIBRARY.
59418         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59419         (Makefile.am): Remove lib_SOURCES.
59420         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59421         gl_RELOCATABLE_LIBRARY.
59422         (Makefile.am): Remove lib_SOURCES.
59423         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59424         always.
59425         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59426         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59427
59428 2007-03-04  Bruno Haible  <bruno@clisp.org>
59429
59430         * modules/argmatch-tests: New file.
59431         * tests/test-argmatch.c: New file.
59432
59433         * tests/test-allocsa.c (main): Halve the number of loop runs.
59434
59435         * modules/alloca-opt-tests: New file.
59436         * tests/test-alloca-opt.c: New file.
59437
59438 2007-03-04  Jim Meyering  <jim@meyering.net>
59439
59440         Work around difference between Linux ACLs and Solaris 10 ZFS.
59441         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59442         for EINVAL.
59443
59444 2007-03-03  Bruno Haible  <bruno@clisp.org>
59445
59446         * modules/relocatable-prog (Depends-on): Add back progreloc's
59447         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59448
59449 2007-03-03  Bruno Haible  <bruno@clisp.org>
59450
59451         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59452         * modules/relocatable-lib: New file.
59453
59454 2007-03-03  Bruno Haible  <bruno@clisp.org>
59455
59456         * modules/relocatable-prog: Renamed from modules/relocatable.
59457         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59458
59459 2007-03-03  Bruno Haible  <bruno@clisp.org>
59460
59461         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59462         m4/relocatable-lib.m4.
59463         (Depends-on): Remove 'relocatable'.
59464         (configure.ac): Add gl_RELOCATABLE_NOP.
59465
59466 2007-03-03  Bruno Haible  <bruno@clisp.org>
59467
59468         * modules/relocatable-prog-wrapper: New file.
59469         * modules/relocatable (Depends-on): Add it. Remove all other
59470         dependencies except progname.
59471         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59472
59473         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59474         (gl_FUNC_STRERROR): Nop.
59475         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59476
59477         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59478         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59479
59480         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59481         (gl_FUNC_READLINK): Update.
59482
59483         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59484
59485 2007-03-03  Bruno Haible  <bruno@clisp.org>
59486
59487         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59488         * modules/xreadlink (Depends-on): Add unistd.
59489         * modules/xreadlink-with-size (Depends-on): Likewise.
59490
59491 2007-03-03  Bruno Haible  <bruno@clisp.org>
59492
59493         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59494         extracted from gt_FUNC_SETENV.
59495         (gt_FUNC_SETENV): Remove macro.
59496         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59497         remove gt_FUNC_SETENV.
59498
59499 2007-03-03  Bruno Haible  <bruno@clisp.org>
59500
59501         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59502         ENABLE_RELOCATABLE here.
59503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59504
59505 2007-03-03  Bruno Haible  <bruno@clisp.org>
59506
59507         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59508         * tests/test-rbtreehash_list.c: Include progname.h.
59509         (main): Call set_program_name.
59510
59511         * modules/rbtree-oset-tests (Depends-on): Add progname.
59512         * tests/test-rbtree_oset.c: Include progname.h.
59513         (main): Call set_program_name.
59514
59515         * modules/rbtree-list-tests (Depends-on): Add progname.
59516         * tests/test-rbtree_list.c: Include progname.h.
59517         (main): Call set_program_name.
59518
59519         * modules/linked-list-tests (Depends-on): Add progname.
59520         * tests/test-linked_list.c: Include progname.h.
59521         (main): Call set_program_name.
59522
59523 2007-03-03  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59526         All uses of __restrict changed to _Restrict_.
59527         * lib/glob_.h (__restrict): Remove macro.
59528
59529 2007-03-02  Bruno Haible  <bruno@clisp.org>
59530
59531         * modules/gettext (configure.ac): Require gettext infrastructure
59532         from version 0.16.1.
59533
59534 2007-03-02  Bruno Haible  <bruno@clisp.org>
59535
59536         * modules/linkedhash-list-tests (Depends-on): Add progname.
59537         * tests/test-linkedhash_list.c: Include progname.h.
59538         (main): Call set_program_name.
59539
59540         * modules/carray-list-tests (Depends-on): Add progname.
59541         * tests/test-carray_list.c: Include progname.h.
59542         (main): Call set_program_name.
59543
59544         * modules/avltreehash-list-tests (Depends-on): Add progname.
59545         * tests/test-avltreehash_list.c: Include progname.h.
59546         (main): Call set_program_name.
59547
59548         * modules/avltree-oset-tests (Depends-on): Add progname.
59549         * tests/test-avltree_oset.c: Include progname.h.
59550         (main): Call set_program_name.
59551
59552         * modules/avltree-list-tests (Depends-on): Add progname.
59553         * tests/test-avltree_list.c: Include progname.h.
59554         (main): Call set_program_name.
59555
59556         * modules/array-oset-tests (Depends-on): Add progname.
59557         * tests/test-array_oset.c: Include progname.h.
59558         (main): Call set_program_name.
59559
59560         * modules/array-list-tests (Depends-on): Add progname.
59561         * tests/test-array_list.c: Include progname.h.
59562         (main): Call set_program_name.
59563
59564         * modules/argp-tests (Depends-on): Add progname.
59565         * tests/test-argp.c: Include argp.h first. Include progname.h.
59566         (main): Call set_program_name.
59567
59568 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59569
59570         * doc/gnulib-tool.texi (Initial import): Reword description of
59571         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59572         limited effect even if defined after the first system include.
59573
59574 2007-03-01  Bruno Haible  <bruno@clisp.org>
59575
59576         * build-aux/config.libpath: Update to libtool-1.5.22.
59577         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59578
59579 2007-03-01  Bruno Haible  <bruno@clisp.org>
59580
59581         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59582         foo_CFLAGS.
59583         Reported by Ralf Wildenhues.
59584
59585 2007-03-01  Bruno Haible  <bruno@clisp.org>
59586
59587         * build-aux/install-reloc: Remove object files left over by some
59588         compilers.
59589         Reported by Ralf Wildenhues.
59590
59591 2007-03-01  Bruno Haible  <bruno@clisp.org>
59592
59593         * build-aux/install-reloc: Break long lines.
59594
59595 2007-03-01  Bruno Haible  <bruno@clisp.org>
59596
59597         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59598         Reported by Ralf Wildenhues.
59599
59600 2007-03-01  Bruno Haible  <bruno@clisp.org>
59601
59602         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59603         include ordering constraints.
59604
59605 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59609         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59610         as another example.
59611         * lib/time_.h: Fix misspelling.
59612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59613         Require gl_HEADER_TIME_H_DEFAULTS.
59614         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59615         * m4/time_r.m4 (gl_TIME_R): Likewise.
59616         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59617
59618 2007-03-01  Bruno Haible  <bruno@clisp.org>
59619
59620         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59621         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59622
59623 2007-03-01  Jim Meyering  <jim@meyering.net>
59624
59625         * modules/xreadlink (Maintainer): Add my name.
59626         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59627
59628 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59629             Bruno Haible  <bruno@clisp.org>
59630
59631         * build-aux/install-reloc: Compile also c-ctype.c.
59632         * build-aux/relocatable.sh.in: New file.
59633         * doc/relocatable.texi: New file.
59634         * doc/relocatable-maint.texi: New file.
59635         * doc/gnulib.texi: Include relocatable-maint.texi.
59636         * lib/progreloc.c: Include unistd.h unconditionally.
59637         * lib/relocwrapper.c: Include unistd.h unconditionally.
59638         Include c-ctype.h.
59639         (add_dotbin): Use c_tolower.
59640         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59641         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59642         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59643         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59644         to m4/relocatable-lib.m4.
59645         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59646         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59647         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59648         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59649         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59650         * modules/relocatable: New file.
59651         * modules/relocatable-lib: New file.
59652         * modules/relocatable-script: New file.
59653
59654 2007-02-28  Bruno Haible  <bruno@clisp.org>
59655
59656         Import --enable-relocatable infrastructure.
59657         * build-aux/config.libpath: New file, from GNU gettext.
59658         * build-aux/install-reloc: New file, from GNU gettext.
59659         * build-aux/reloc-ldflags: New file, from GNU gettext.
59660         * lib/relocatable.h: New file, from GNU gettext.
59661         * lib/relocatable.c: New file, from GNU gettext.
59662         * lib/relocwrapper.c: New file, from GNU gettext.
59663         * m4/relocatable.m4: New file, from GNU gettext.
59664
59665 2007-02-28  Bruno Haible  <bruno@clisp.org>
59666
59667         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59668
59669         * modules/xreadlink: New file, from GNU gettext with modifications.
59670         * lib/xreadlink.c: New file, from GNU gettext.
59671         * lib/xreadlink.h: Add comments.
59672         (xreadlink): New declaration.
59673
59674         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59675         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59676         lib/xreadlink-with-size.c.
59677         (configure.ac): Remove gl_XREADLINK invocation.
59678         (Makefile.am): Augment lib_SOURCES.
59679         * m4/xreadlink.m4: Remove file.
59680         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59681         (xreadlink_with_size): Renamed from xreadink.
59682         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59683         * modules/canonicalize (Depends-on): Replace xreadlink with
59684         xreadlink-with-size.
59685         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59686
59687 2007-02-25  Jim Meyering  <jim@meyering.net>
59688
59689         * build-aux/announce-gen: When complaining about excess arguments,
59690         list them.
59691
59692 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59693
59694         * README: Document signed integer overflow situation more
59695         accurately.
59696
59697 2007-02-25  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59700         'a' or 'A' conversion.
59701
59702 2007-02-25  Bruno Haible  <bruno@clisp.org>
59703
59704         * modules/filename: Renamed from modules/pathname.
59705         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59706         lib/concatpath.c with lib/concat-filename.c.
59707         (Makefile.am): Update.
59708         (Include): Replace pathname.h with filename.h.
59709         * lib/filename.h: Renamed from lib/pathname.h.
59710         (concatenated_filename): Renamed from concatenated_pathname.
59711         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59712         (concatenated_filename): Renamed from concatenated_pathname.
59713         * lib/findprog.c: Include filename.h instead of pathname.h.
59714         (find_in_path): Update.
59715         * lib/javacomp.c: Include filename.h instead of pathname.h.
59716         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59717         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59718         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59719         is_oldgcj_14_13_usable, is_javac_usable): Update.
59720         * lib/javaexec.c: Include filename.h instead of pathname.h.
59721         (execute_java_class): Update.
59722         * modules/findprog: Update.
59723         * modules/javacomp: Update.
59724         * modules/javaexec: Update.
59725         * MODULES.html.sh (File system functions): Add 'filename', remove
59726         'pathname'.
59727
59728 2007-02-25  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/printf-frexpl-tests: New file.
59731         * tests/test-printf-frexpl.c: New file.
59732
59733         * modules/printf-frexpl: New file.
59734         * lib/printf-frexpl.h: New file.
59735         * lib/printf-frexpl.c: New file.
59736         * m4/printf-frexpl.m4: New file.
59737
59738 2007-02-25  Bruno Haible  <bruno@clisp.org>
59739
59740         * modules/printf-frexp-tests: New file.
59741         * tests/test-printf-frexp.c: New file.
59742
59743         * modules/printf-frexp: New file.
59744         * lib/printf-frexp.h: New file.
59745         * lib/printf-frexp.c: New file.
59746         * m4/printf-frexp.m4: New file.
59747
59748 2007-02-25  Bruno Haible  <bruno@clisp.org>
59749
59750         Assume automake >= 1.10 for the tests.
59751         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59752         * modules/arctwo-tests: Likewise.
59753         * modules/argp-tests: Likewise.
59754         * modules/avltree-list-tests: Likewise.
59755         * modules/avltree-oset-tests: Likewise.
59756         * modules/avltreehash-list-tests: Likewise.
59757         * modules/carray-list-tests: Likewise.
59758         * modules/crc-tests: Likewise.
59759         * modules/des-tests: Likewise.
59760         * modules/gc-arcfour-tests: Likewise.
59761         * modules/gc-arctwo-tests: Likewise.
59762         * modules/gc-des-tests: Likewise.
59763         * modules/gc-hmac-md5-tests: Likewise.
59764         * modules/gc-hmac-sha1-tests: Likewise.
59765         * modules/gc-md2-tests: Likewise.
59766         * modules/gc-md4-tests: Likewise.
59767         * modules/gc-md5-tests: Likewise.
59768         * modules/gc-pbkdf2-sha1-tests: Likewise.
59769         * modules/gc-rijndael-tests: Likewise.
59770         * modules/gc-sha1-tests: Likewise.
59771         * modules/gc-tests: Likewise.
59772         * modules/getaddrinfo-tests: Likewise.
59773         * modules/hmac-md5-tests: Likewise.
59774         * modules/hmac-sha1-tests: Likewise.
59775         * modules/linked-list-tests: Likewise.
59776         * modules/linkedhash-list-tests: Likewise.
59777         * modules/lock-tests: Likewise.
59778         * modules/md2-tests: Likewise.
59779         * modules/md4-tests: Likewise.
59780         * modules/md5-tests: Likewise.
59781         * modules/rbtree-list-tests: Likewise.
59782         * modules/rbtree-oset-tests: Likewise.
59783         * modules/rbtreehash-list-tests: Likewise.
59784         * modules/read-file-tests: Likewise.
59785         * modules/rijndael-tests: Likewise.
59786         * modules/stdint-tests: Likewise.
59787         * modules/tls-tests: Likewise.
59788
59789 2007-02-24  Bruno Haible  <bruno@clisp.org>
59790
59791         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59792         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59793         function; instead check whether isnan with a double argument links.
59794         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59795         function; instead check whether isnan with a 'long double' argument
59796         links.
59797         Reported by Eric Blake <ebb9@byu.net>.
59798
59799 2007-02-24  Bruno Haible  <bruno@clisp.org>
59800
59801         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59802         defined.
59803         * lib/isnanl.c: Remove all code. Just include isnan.c.
59804         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59805
59806 2007-02-25  Jim Meyering  <jim@meyering.net>
59807
59808         Avoid conflicting types for 'unsetenv' on FreeBSD.
59809         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59810         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59811         in stdlib.h.
59812
59813 2007-02-24  Bruno Haible  <bruno@clisp.org>
59814
59815         * modules/isnanl-nolibm-tests: New file.
59816         * tests/test-isnanl.c: New file.
59817
59818         * modules/isnanl-nolibm: New file.
59819         * lib/isnanl.h: New file.
59820         * lib/isnanl.c: New file.
59821         * m4/isnanl.m4: New file.
59822
59823 2007-02-24  Bruno Haible  <bruno@clisp.org>
59824
59825         * modules/isnan-nolibm-tests: New file.
59826         * tests/test-isnan.c: New file.
59827
59828         * modules/isnan-nolibm: New file.
59829         * lib/isnan.h: New file.
59830         * lib/isnan.c: New file.
59831         * m4/isnan.m4: New file.
59832
59833 2007-02-24  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59836         assume that an exponent fits in 20 bits.
59837
59838 2007-02-24  Jim Meyering  <jim@meyering.net>
59839
59840         * m4/regex.m4: Update the description of the configure-time option,
59841         --without-included-regex, to state accurately what the defaults are,
59842         and perhaps to give people an idea why using this option is risky.
59843
59844 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59845
59846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59847         loops on small arguments.  This attempts to avoid the problem
59848         Bruno Haible reported for AIX 4.3.2 in
59849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59850
59851 2007-02-23  Bruno Haible  <bruno@clisp.org>
59852
59853         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59854         Needed for help2man.
59855
59856 2007-02-23  Karl Berry  <karl@gnu.org>
59857
59858         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59859         exists, foo.h should be cvs-ignored, not committed.
59860
59861 2007-02-23  Eric Blake  <ebb9@byu.net>
59862
59863         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59864         * lib/stat-time.h (includes): Likewise.
59865         * lib/utimecmp.c (includes): Likewise.
59866         * lib/utimens.h (includes): Likewise.
59867         * lib/getdate.y (includes): Also include "timespec.h" for use
59868         internal to the module.
59869         * modules/utimens (Depends-on): Revert yesterday's patch.
59870         * modules/nanosleep (Depends-on): Add missing dependency.
59871
59872 2007-02-22  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/glob.c: Don't include getlogin_r.h.
59875
59876 2007-02-22  Jim Meyering  <jim@meyering.net>
59877
59878         * modules/utimens (Depends-on): Add timespec, required for
59879         utimens.h's inclusion of timespec.h.
59880
59881 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59884         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59885         Schwab in
59886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59887         I'll try to think of a better way to fix the Solaris problem.
59888
59889         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59890         like glibc; on Solaris 10, it fails with errno == EINVAL.
59891         POSIX says the behavior is unspecified if the first argument is NULL,
59892         so play it safe and never pass NULL to the system getcwd.
59893
59894 2007-02-21  Jim Meyering  <jim@meyering.net>
59895
59896         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59897         of gettimeofday.  It would conflict with the one now always
59898         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59899         an IRIX 6.5 build failure.
59900
59901 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         Minor fixups to port to Solaris 10 with Sun C 5.8.
59904         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59905         * modules/getcwd (Depends-on): Add dirfd.
59906         * lib/putenv.c (putenv): #undef it.
59907         (rpl_putenv): New decl.
59908         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59909
59910 2007-02-20  Bruno Haible  <bruno@clisp.org>
59911
59912         * modules/stdio-tests: New file.
59913         * tests/test-stdio.c: New file.
59914
59915         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59916         (Depends-on): Add stdio.
59917         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59918         (Include): Use <stdio.h> instead of vsnprintf.h.
59919         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59920         HAVE_DECL_VSNPRINTF.
59921         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59922
59923         * modules/snprintf (Files): Remove lib/snprintf.h.
59924         (Depends-on): Add stdio.
59925         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59926         (Include): Use <stdio.h> instead of snprintf.h.
59927         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59928         HAVE_DECL_SNPRINTF.
59929         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59930         * lib/getaddrinfo.c: Likewise.
59931
59932         * modules/stdio: New file.
59933         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59934         * lib/snprintf.h: Remove file.
59935         * lib/vsnprintf.h: Remove file.
59936         * lib/.cppi-disable: Remove snprintf.h.
59937         * m4/stdio_h.m4: New file.
59938         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59939
59940 2007-02-20  Jim Meyering  <jim@meyering.net>
59941
59942         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59943         used by e.g., mingw.  From Bruno Haible.
59944
59945 2007-02-19  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59948         warnings.
59949         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59950
59951 2007-02-19  Bruno Haible  <bruno@clisp.org>
59952
59953         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59954         from mingw users.
59955
59956 2007-02-19  Bruno Haible  <bruno@clisp.org>
59957
59958         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59959         warnings.
59960         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59961
59962 2007-02-19  Jim Meyering  <jim@meyering.net>
59963
59964         Don't use FD after a successful "fdopendir (fd)".
59965         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59966         Reset it by calling dirfd on the just-obtained DIR*.
59967
59968         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59969         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59970
59971 2007-02-18  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/readlink.c: Include <unistd.h>.
59974         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59975         HAVE_READLINK.
59976         * modules/readlink (Depends-on): Add unistd.
59977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59978         (Include): Add <unistd.h>.
59979
59980         * lib/getlogin_r.h: Remove file.
59981         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59982         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59983         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59984         HAVE_DECL_GETLOGIN_R.
59985         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59986         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59987         (Include): Use <unistd.h> instead of getlogin_r.h.
59988
59989         * lib/getcwd.h: Remove file.
59990         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59991         * lib/xgetcwd.c: Likewise.
59992         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59993         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59994         * modules/getcwd (Files): Remove lib/getcwd.h.
59995         (Depends-on): Add unistd.
59996         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59997         (Include): Use <unistd.h> instad of getcwd.h.
59998
59999         * lib/ftruncate.c: Include <unistd.h> first.
60000         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60001         Set HAVE_FTRUNCATE.
60002         * modules/ftruncate (Depends-on): Add unistd.
60003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60004
60005         * lib/fchdir.c: Include <unistd.h> first.
60006         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60007         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60008         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60009         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60010         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60011
60012         * lib/dup2.c: Include <unistd.h> first.
60013         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60014         HAVE_DUP2.
60015         * modules/dup2 (Depends-on): Add unistd.
60016         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60017
60018         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60019         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60020         REPLACE_CHOWN. Don't define chown as a macro here.
60021         * modules/chown (Depends-on): Add unistd.
60022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60023
60024         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60025         Add definition for GL_LINK_WARNING.
60026         (chown, dup2): New declarations.
60027         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60028         link warning.
60029         (ftruncate): New declaration.
60030         (getcwd): New declaration, taken from old getcwd.h.
60031         (getlogin_r): New declaration, taken from old getlogin_r.h.
60032         (readlink): New declaration.
60033         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60034         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60035         (gl_PREREQ_UNISTD): Remove macro.
60036         (gl_UNISTD_MODULE_INDICATOR): New macro.
60037         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60038         many new variables. Don't set UNISTD_H.
60039         * modules/unistd (Description): Change.
60040         (Depends-on): Add link-warning.
60041         (configure.ac): Update.
60042         (Makefile.am): Create unistd.h always. Substitute many new variables
60043         into it.
60044
60045 2007-02-18  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60048         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60049         HAVE_GETSUBOPT.
60050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60051         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60052         * lib/getsubopt.h: Remove file.
60053         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60054         (Depends-on): Add stdlib.
60055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60056         (Includes): Use <stdlib.h> instead of getsubopt.h.
60057         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60058         Set HAVE_GETSUBOPT.
60059         * lib/getsubopt.c: Don't include getsubopt.h.
60060
60061 2007-02-18  Bruno Haible  <bruno@clisp.org>
60062
60063         * modules/fchdir (Depends-on): Add dup2.
60064
60065 2007-02-18  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/stdlib_.h: Handle glibc's special invocation convention
60068         specially.
60069
60070 2007-02-18  Bruno Haible  <bruno@clisp.org>
60071
60072         * modules/stdlib-tests: New file.
60073         * tests/test-stdlib.c: New file.
60074
60075         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60076         (Depends-on): Add stdlib.
60077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60078         (Includes): Use <stdlib.h> instead of mkstemp.h.
60079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60080         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60081         * lib/mkstemp.c: Don't include mkstemp.h.
60082         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60083         * lib/stdlib--.h: Don't include mkstemp.h.
60084
60085         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60086         (Depends-on): Add stdlib.
60087         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60088         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60089         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60090         HAVE_MKDTEMP.
60091         * lib/mkdtemp.c: Don't include mkdtemp.h.
60092         * lib/clean-temp.c: Don't include mkdtemp.h.
60093
60094         * modules/exit (Files): Remove lib/exit.h.
60095         (Depends-on): Add stdlib.
60096         (Makefile.am): Remove lib_SOURCES.
60097         (Include): Use <stdlib.h> instead of exit.h.
60098         * lib/argmatch.c: Don't include exit.h.
60099         * lib/execute.c: Likewise.
60100         * lib/pagealign_alloc.c: Likewise.
60101         * lib/pipe.c: Likewise.
60102         * lib/wait-process.c: Likewise.
60103         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60104         * lib/exitfail.c: Likewise.
60105         * lib/savewd.c: Likewise.
60106         * lib/xsetenv.c: Likewise.
60107
60108         * modules/stdlib: New file.
60109         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60110         and extra comments about mkstemp().
60111         * lib/exit.h: Remove file.
60112         * lib/mkdtemp.h: Remove file.
60113         * lib/mkstemp.h: Remove file.
60114         * m4/stdlib_h.m4: New file.
60115         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60116
60117 2007-02-18  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/math-tests: New file.
60120         * tests/test-math.c: New file.
60121
60122         * modules/math: New file.
60123         * modules/mathl (Files): Remove lib/mathl.h.
60124         (Depends-on): Add math.
60125         (Makefile.am): Don't mention mathl.h.
60126         (Include): Use <math.h> instead of mathl.h.
60127         * lib/math_.h: New file.
60128         * lib/mathl.h: Remove file.
60129         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60130         mathl.h.
60131         * lib/asinl.c: Likewise.
60132         * lib/atanl.c: Likewise.
60133         * lib/ceill.c: Likewise.
60134         * lib/cosl.c: Likewise.
60135         * lib/expl.c: Likewise.
60136         * lib/floorl.c: Likewise.
60137         * lib/frexpl.c: Likewise.
60138         * lib/ldexpl.c: Likewise.
60139         * lib/logl.c: Likewise.
60140         * lib/sincosl.c: Likewise.
60141         * lib/sinl.c: Likewise.
60142         * lib/sqrtl.c: Likewise.
60143         * lib/tanl.c: Likewise.
60144         * lib/trigl.c: Likewise.
60145         * m4/math_h.m4: New file.
60146         * MODULES.html.sh (Mathematics): Add math.
60147
60148 2007-02-17  Bruno Haible  <bruno@clisp.org>
60149
60150         * modules/wctype-tests: New file.
60151         * tests/test-wctype.c: New file.
60152
60153         * modules/wchar-tests: New file.
60154         * tests/test-wchar.c: New file.
60155
60156         * modules/unistd-tests: New file.
60157         * tests/test-unistd.c: New file.
60158
60159         * modules/time-tests: New file.
60160         * tests/test-time.c: New file.
60161
60162         * modules/sysexits-tests: New file.
60163         * tests/test-sysexits.c: New file.
60164
60165         * modules/sys_time-tests: New file.
60166         * tests/test-sys_time.c: New file.
60167
60168         * modules/sys_stat-tests: New file.
60169         * tests/test-sys_stat.c: New file.
60170
60171         * modules/sys_socket-tests: New file.
60172         * tests/test-sys_socket.c: New file.
60173
60174         * modules/sys_select-tests: New file.
60175         * tests/test-sys_select.c: New file.
60176
60177         * modules/string-tests: New file.
60178         * tests/test-string.c: New file.
60179
60180         * modules/stdbool-tests: New file.
60181         * tests/test-stdbool.c: New file.
60182
60183         * modules/netinet_in-tests: New file.
60184         * tests/test-netinet_in.c: New file.
60185
60186         * modules/inttypes-tests: New file.
60187         * tests/test-inttypes.c: New file.
60188
60189         * modules/fcntl-tests: New file.
60190         * tests/test-fcntl.c: New file.
60191
60192         * modules/byteswap-tests: New file.
60193         * tests/test-byteswap.c: New file.
60194
60195         * modules/arpa_inet-tests: New file.
60196         * tests/test-arpa_inet.c: New file.
60197
60198 2007-02-17  Bruno Haible  <bruno@clisp.org>
60199
60200         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60201         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60202         if the corresponding module is not enabled. Emit link warnings if
60203         the function is used nevertheless.
60204         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60205         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60206         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60207         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60208         * modules/inttypes (Depends-on): Add link-warning.
60209         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60210         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60211         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60212         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60213         * modules/imaxdiv (configure.ac): Likewise.
60214         * modules/strtoimax (configure.ac): Likewise.
60215         * modules/strtoumax (configure.ac): Likewise.
60216
60217 2007-02-17  Bruno Haible  <bruno@clisp.org>
60218
60219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60220         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60221         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60222         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60223
60224 2007-02-17  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/link-warning: New file.
60227         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60228         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60229         * modules/string (Depends-on): Add link-warning.
60230         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60231         string.h.
60232         * MODULES.html.sh (Support for building libraries and executables): Add
60233         link-warning.
60234
60235 2007-02-17  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60238         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60239         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60240         long lines.
60241
60242 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60243             Bruno Haible  <bruno@clisp.org>
60244
60245         * modules/tmpfile: New file.
60246         * lib/tmpfile.c: New file.
60247         * m4/tmpfile.m4: New file.
60248         * MODULES.html.sh (func_all_modules): New section "Input/output".
60249
60250 2007-02-15  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60253         (supports_delete_on_close): New function.
60254         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60255
60256 2007-02-14  Bruno Haible  <bruno@clisp.org>
60257
60258         * modules/mbspcasecmp-tests: New file.
60259         * tests/test-mbspcasecmp.sh: New file.
60260         * tests/test-mbspcasecmp.c: New file.
60261
60262         New module mbspcasecmp.
60263         * modules/mbspcasecmp: New file.
60264         * lib/mbspcasecmp.c: New file.
60265         * lib/string_.h (strncasecmp): Change warning message.
60266         (mbspcasecmp): New declaration.
60267         * m4/mbspcasecmp.m4: New file.
60268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60269         GNULIB_MBSPCASECMP.
60270         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60271         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60272
60273 2007-02-14  Bruno Haible  <bruno@clisp.org>
60274
60275         * modules/mbsncasecmp-tests: New file.
60276         * tests/test-mbsncasecmp.sh: New file.
60277         * tests/test-mbsncasecmp.c: New file.
60278
60279         New module mbsncasecmp.
60280         * modules/mbsncasecmp: New file.
60281         * lib/mbsncasecmp.c: New file.
60282         * lib/string_.h (mbsncasecmp): New declaration.
60283         * m4/mbsncasecmp.m4: New file.
60284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60285         GNULIB_MBSNCASECMP.
60286         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60287         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60288
60289 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60290
60291         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60292         Verify that it doesn't overlap with our flags.
60293         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60294         do not have the desired effect in multibyte locales; instead, use
60295         mbscasecmp.
60296         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60297         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60298         we don't require GNU fnmatch ourselves (if our users require it, they
60299         should do so explicitly).
60300
60301         Fix regex code so it doesn't rely on strcasecmp.
60302         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60303         Otherwise, include gnulib's langinfo.h.
60304         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60305         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60306         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60307         * modules/regex (FILES): Remove m4/codeset.m4.
60308         (Depends-on): Add localcharset.  Remove strcase.
60309
60310 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60311
60312         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60313         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60314
60315 2007-02-13  Bruno Haible  <bruno@clisp.org>
60316
60317         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60319
60320 2007-02-12  Bruno Haible  <bruno@clisp.org>
60321
60322         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60323         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60324         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60325         time warning rather than a link error.
60326
60327 2007-02-12  Bruno Haible  <bruno@clisp.org>
60328
60329         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60330         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60332
60333 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60334
60335         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60336         args, not 2.
60337
60338 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60339
60340         New module 'time', so that apps can include <time.h> as per
60341         POSIX and GNU instead of separate include files like time_r.h
60342         and timegm.h.  This implementation tries out a simpler approach
60343         for replacing decls in standard include files (as compared to
60344         the string module), somewhat as an experiment.
60345
60346         * config/srclist.txt: Comment out mktime.c for now.
60347         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60348         since it doesn't apply any more.  Use generic wording instead.
60349         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60350         'time'.
60351         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60352         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60353         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60354         Don't include <sys/types.h>; no longer needed since we assume C89.
60355         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60356         * lib/strftime.c: Likewise.
60357         * lib/time_r.c: Likewise.
60358         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60359         * lib/nanosleep.c: Include <time.h> first, to check interface.
60360         * lib/strptime.c: Likewise.
60361         * lib/time_r.c: Likewise.
60362         * lib/timegm.c: Likewise.
60363         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60364         needed.
60365         * lib/timegm.c: Don't include timegm.h; no longer needed.
60366         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60367         time.h now handles any problems in that area.
60368         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60369         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60370         that time.h defines struct timespec.
60371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60372         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60373         handles that.
60374         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60375         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60376         needed.  Set REPLACE_LOCALTIME.
60377         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60378         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60379         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60380         nanosleep; time_h.m4 now does that.  Don't require
60381         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60382         module handles this now.
60383         * modules/getdate (Depends-on): Remove timespec.  Add time.
60384         * modules/nanosleep (Depends-on): Likewise.
60385         * modules/stat-time (Depends-on): Likewise.
60386         * modules/nanosleep (Include): Include time.h, not timespec.h.
60387         * modules/strptime (Files): Remove lib/strptime.h.
60388         (Depends-on): Add extensions, time.
60389         (Include): Include time.h, not strptime.h.
60390         * modules/time_r (Files): Remove lib/time_r.h.
60391         (Depends-on): Add time.
60392         (Include): Include time.h, not time_r.h.
60393         * modules/timegm: Likewise.
60394         * modules/timespec (Description): Now does timespec-related decls
60395         of our own, instead of struct timespec itself.
60396         (Depends-on): Add time; remove extensions.
60397         (Maintainer): Add self.
60398         * modules/utimecmp (Depends-on): Add time; remove timespec.
60399         * modules/utimens (Depends-on): Likewise.
60400         * modules/xnanosleep (Depends-on): Likewise.
60401
60402 2007-02-11  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/c-strstr.c: Include allocsa.h.
60405         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60406         * lib/c-strcasestr.c: Include allocsa.h.
60407         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60408         * lib/strcasestr.c: Include allocsa.h.
60409         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60410         * lib/mbsstr.c: Include allocsa.h.
60411         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60412         allocsa/freesa instead of malloc/free.
60413         * lib/mbscasestr.c: Include allocsa.h.
60414         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60415         allocsa/freesa instead of malloc/free.
60416         * modules/c-strstr (Depends-on): Add allocsa.
60417         * modules/c-strcasestr (Depends-on): Likewise.
60418         * modules/strcasestr (Depends-on): Likewise.
60419         * modules/mbsstr (Depends-on): Likewise.
60420         * modules/mbscasestr (Depends-on): Likewise.
60421
60422 2007-02-11  Bruno Haible  <bruno@clisp.org>
60423
60424         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60425
60426         * modules/mbsspn-tests: New file.
60427         * tests/test-mbsspn.sh: New file.
60428         * tests/test-mbsspn.c: New file.
60429
60430 2007-02-11  Bruno Haible  <bruno@clisp.org>
60431
60432         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60433
60434         * modules/mbspbrk-tests: New file.
60435         * tests/test-mbspbrk.sh: New file.
60436         * tests/test-mbspbrk.c: New file.
60437
60438 2007-02-11  Bruno Haible  <bruno@clisp.org>
60439
60440         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60441         unneeded cast.
60442
60443         * modules/mbscspn-tests: New file.
60444         * tests/test-mbscspn.sh: New file.
60445         * tests/test-mbscspn.c: New file.
60446
60447 2007-02-11  Bruno Haible  <bruno@clisp.org>
60448
60449         * modules/mbscasecmp-tests: New file.
60450         * tests/test-mbscasecmp.sh: New file.
60451         * tests/test-mbscasecmp.c: New file.
60452
60453 2007-02-11  Bruno Haible  <bruno@clisp.org>
60454
60455         Ensure O(n) worst-case complexity of mbscasestr.
60456         * lib/mbscasestr.c: Include stdbool.h.
60457         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60458         functions.
60459         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60460         the bookkeeping indicates that it's worth it.
60461         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60462
60463         * modules/mbscasestr-tests: New file.
60464         * tests/test-mbscasestr1.c: New file.
60465         * tests/test-mbscasestr2.sh: New file.
60466         * tests/test-mbscasestr2.c: New file.
60467         * tests/test-mbscasestr3.sh: New file.
60468         * tests/test-mbscasestr3.c: New file.
60469         * tests/test-mbscasestr4.sh: New file.
60470         * tests/test-mbscasestr4.c: New file.
60471         * m4/locale-tr.m4: New file.
60472
60473 2007-02-11  Bruno Haible  <bruno@clisp.org>
60474
60475         Ensure O(n) worst-case complexity of mbsstr.
60476         * lib/mbsstr.c: Include stdbool.h.
60477         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60478         functions.
60479         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60480         bookkeeping indicates that it's worth it.
60481         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60482
60483         * modules/mbsstr-tests: New file.
60484         * tests/test-mbsstr1.c: New file.
60485         * tests/test-mbsstr2.sh: New file.
60486         * tests/test-mbsstr2.c: New file.
60487         * tests/test-mbsstr3.sh: New file.
60488         * tests/test-mbsstr3.c: New file.
60489         * m4/locale-fr.m4: New file.
60490
60491 2007-02-11  Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/mbsrchr.c (mbsrchr): Fix bug.
60494
60495         * modules/mbsrchr-tests: New file.
60496         * tests/test-mbsrchr.sh: New file.
60497         * tests/test-mbsrchr.c: New file.
60498
60499 2007-02-11  Bruno Haible  <bruno@clisp.org>
60500
60501         * lib/mbschr.c (mbschr): Fix bug.
60502
60503         * modules/mbschr-tests: New file.
60504         * tests/test-mbschr.sh: New file.
60505         * tests/test-mbschr.c: New file.
60506         * m4/locale-zh.m4: New file.
60507
60508 2007-02-11  Bruno Haible  <bruno@clisp.org>
60509
60510         Support for copying multibyte string iterators.
60511         * lib/mbiter.h: Include <string.h>.
60512         (mbiter_multi_copy): New function.
60513         (mbi_copy): New macro.
60514         * lib/mbuiter.h: Include <string.h>.
60515         (mbuiter_multi_copy): New function.
60516         (mbui_copy): New macro.
60517
60518 2007-02-11  Bruno Haible  <bruno@clisp.org>
60519
60520         New module mbslen.
60521         * modules/mbslen: New file.
60522         * lib/mbslen.c: New file.
60523         * lib/string_.h (mbslen): New declaration.
60524         * m4/mbslen.m4: New file.
60525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60526         GNULIB_MBSLEN.
60527         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60528         * MODULES.html.sh (Internationalization functions): Add mbslen.
60529
60530 2007-02-11  Bruno Haible  <bruno@clisp.org>
60531
60532         Ensure O(n) worst-case complexity of strcasestr substitute.
60533         * lib/strcasestr.c: Include stdbool.h.
60534         (knuth_morris_pratt): New function.
60535         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60536         bookkeeping indicates that it's worth it.
60537         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60538
60539         * modules/strcasestr-tests: New file.
60540         * tests/test-strcasestr.c: New file.
60541
60542 2007-02-11  Bruno Haible  <bruno@clisp.org>
60543
60544         Ensure O(n) worst-case complexity of c_strcasestr.
60545         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60546         (knuth_morris_pratt): New function.
60547         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60548         the bookkeeping indicates that it's worth it.
60549         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60550
60551         * modules/c-strcasestr-tests: New file.
60552         * tests/test-c-strcasestr.c: New file.
60553
60554 2007-02-11  Bruno Haible  <bruno@clisp.org>
60555
60556         Ensure O(n) worst-case complexity of c_strstr.
60557         * lib/c-strstr.c: Include stdbool.h, string.h.
60558         (knuth_morris_pratt): New function.
60559         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60560         bookkeeping indicates that it's worth it.
60561         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60562
60563         * lib/c-strstr.c: Complete rewrite for maintainability.
60564
60565         * modules/c-strstr-tests: New file.
60566         * tests/test-c-strstr.c: New file.
60567
60568 2007-02-11  Bruno Haible  <bruno@clisp.org>
60569
60570         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60571         5.2.1 and earlier, whereby \055 was treated just like the range
60572         delimiter '-'.
60573         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60574
60575 2007-02-08  Bruno Haible  <bruno@clisp.org>
60576
60577         * modules/regex (Depends-on): Add stdbool.
60578         Reported by Dalibor Topic <robilad@kaffe.org>.
60579
60580 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60583         Prefer returning from main to exiting from it.
60584         Remove unnecessary parens after sizeof.
60585
60586 2007-02-05  Bruno Haible  <bruno@clisp.org>
60587
60588         New module mbssep.
60589         * modules/mbssep: New file.
60590         * lib/mbssep.c: New file.
60591         * lib/string_.h (strsep): Add a conditional link warning.
60592         (mbssep): New declaration.
60593         * m4/mbssep.m4: New file.
60594         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60595         GNULIB_MBSSEP.
60596         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60597         * MODULES.html.sh (Internationalization functions): Add mbssep.
60598
60599 2007-02-05  Bruno Haible  <bruno@clisp.org>
60600
60601         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60602         Optimize search in case of 1 delimiter.
60603
60604 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60605
60606         * lib/acl.h: Include sys/types.h before sys/acl.h.
60607
60608 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60609
60610         Merge upstream fix for glibc bugzilla #3957:
60611
60612         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60613
60614         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60615         bit for RE_HAT_LISTS_NOT_NEWLINE.
60616         (build_charclass_op): Remove bogus comment.
60617
60618 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60619
60620         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60621
60622 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60625         * lib/memmem.c [!defined _LIBC]: Include config.h.
60626
60627 2007-02-04  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60630         warning message.
60631
60632 2007-02-04  Bruno Haible  <bruno@clisp.org>
60633
60634         New module mbstok_r.
60635         * modules/mbstok_r: New file.
60636         * lib/mbstok_r.c: New file.
60637         * lib/string_.h (strtok_r): Change argument names to match the
60638         comments. Add a conditional link warning.
60639         (mbstok_r): New declaration.
60640         * m4/mbstok_r.m4: New file.
60641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60642         GNULIB_MBSTOK_R.
60643         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60644         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60645
60646 2007-02-04  Bruno Haible  <bruno@clisp.org>
60647
60648         New module mbsspn.
60649         * modules/mbsspn: New file.
60650         * lib/mbsspn.c: New file.
60651         * lib/string_.h (strspn): Add a conditional link warning.
60652         (mbsspn): New declaration.
60653         * m4/mbsspn.m4: New file.
60654         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60655         GNULIB_MBSSPN.
60656         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60657         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60658
60659 2007-02-04  Bruno Haible  <bruno@clisp.org>
60660
60661         New module mbspbrk.
60662         * modules/mbspbrk: New file.
60663         * lib/mbspbrk.c: New file.
60664         * lib/string_.h (strpbrk): Add a conditional link warning.
60665         (mbspbrk): New declaration.
60666         * m4/mbspbrk.m4: New file.
60667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60668         GNULIB_MBSPBRK.
60669         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60670         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60671
60672 2007-02-04  Bruno Haible  <bruno@clisp.org>
60673
60674         New module mbscspn.
60675         * modules/mbscspn: New file.
60676         * lib/mbscspn.c: New file.
60677         * lib/string_.h (strcspn): Add a conditional link warning.
60678         (mbscspn): New declaration.
60679         * m4/mbscspn.m4: New file.
60680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60681         GNULIB_MBSCSPN.
60682         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60683         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60684
60685 2007-02-04  Bruno Haible  <bruno@clisp.org>
60686
60687         New module mbscasestr, reduced goal of strcasestr.
60688         * modules/mbscasestr: New file.
60689         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60690         (mbscasestr): Renamed from strcasestr.
60691         * lib/strcasestr.c: Don't include mbuiter.h.
60692         (strcasestr): Remove support for multibyte locales.
60693         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60694         Change the conditional link warning.
60695         (mbscasestr): New declaration.
60696         * m4/mbscasestr.m4: New file.
60697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60698         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60699         REPLACE_STRCASESTR.
60700         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60702         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60703         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60704         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60705         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60706         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60707         (Depends-on): Remove mbuiter.
60708         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60709
60710 2007-02-04  Bruno Haible  <bruno@clisp.org>
60711
60712         Simplify handling of strncasecmp.
60713         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60714         the conditional link warning.
60715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60716         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60717         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60718         * modules/strcase (configure.ac): Don't invoke
60719         gl_STRING_MODULE_INDICATOR.
60720         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60721
60722 2007-02-04  Bruno Haible  <bruno@clisp.org>
60723
60724         New module mbscasecmp, reduced goal of strcasecmp.
60725         * modules/mbscasecmp: New file.
60726         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60727         (mbscasecmp): Renamed from strcasecmp.
60728         * lib/strcasecmp.c: Don't include mbuiter.h.
60729         (strcasecmp): Remove support for multibyte locales.
60730         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60731         Change the conditional link warning.
60732         (mbscasecmp): New declaration.
60733         * m4/mbscasecmp.m4: New file.
60734         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60735         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60736         REPLACE_STRCASECMP.
60737         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60739         GNULIB_MBSCASECMP.
60740         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60741         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60742         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60743         (Depends-on): Remove mbuiter.
60744         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60745
60746 2007-02-04  Bruno Haible  <bruno@clisp.org>
60747
60748         New module mbsstr. Remove module strstr.
60749         * modules/mbsstr: New file.
60750         * modules/strstr: Remove file.
60751         * lib/mbsstr.c: Renamed from lib/strstr.c.
60752         (mbsstr): Renamed from strstr.
60753         * lib/string_.h (strstr): Remove declaration. Change the conditional
60754         link warning.
60755         (mbsstr): New declaration.
60756         * m4/mbsstr.m4: New file.
60757         * m4/strstr.m4: Remove file.
60758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60759         REPLACE_STRSTR.
60760         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60761         Don't initialize GNULIB_STRSTR.
60762         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60763         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60764         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60765         (Support for systems lacking ANSI C 89): Remove strstr.
60766
60767 2007-02-04  Bruno Haible  <bruno@clisp.org>
60768
60769         New module mbsrchr.
60770         * modules/mbsrchr: New file.
60771         * lib/mbsrchr.c: New file.
60772         * lib/string_.h (strrchr): Add a conditional link warning.
60773         (mbsrchr): New declaration.
60774         * m4/mbsrchr.m4: New file.
60775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60776         GNULIB_MBSRCHR.
60777         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60778         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60779
60780 2007-02-04  Bruno Haible  <bruno@clisp.org>
60781
60782         New module mbschr.
60783         * modules/mbschr: New file.
60784         * lib/mbschr.c: New file.
60785         * lib/string_.h (strchr): Add a conditional link warning.
60786         (mbschr): New declaration.
60787         * m4/mbschr.m4: New file.
60788         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60789         GNULIB_MBSCHR.
60790         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60791         * MODULES.html.sh (Internationalization functions): Add mbschr.
60792
60793 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60794
60795         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60796
60797         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60798
60799 2007-02-04  Bruno Haible  <bruno@clisp.org>
60800
60801         New module description section 'configure.ac-early'.
60802         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60803         (func_get_autoconf_early_snippet): New function.
60804         (func_import, func_create_testdir): Use it. Remove special cases for
60805         modules 'extensions' and 'lock'.
60806         * modules/extensions (configure.ac-early): Require
60807         gl_USE_SYSTEM_EXTENSIONS.
60808         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60809
60810 2007-02-04  Bruno Haible  <bruno@clisp.org>
60811
60812         Make use of gcj-4.3's -fsource and -ftarget option.
60813         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60814         and if so try the options -fsource and -ftarget.
60815         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60816         source_version, ftarget_option, target_version arguments.
60817         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60818         (is_envjavac_oldgcj_14_14_usable): Renamed from
60819         is_envjavac_gcj_14_14_usable.
60820         (is_envjavac_oldgcj_14_13_usable): Renamed from
60821         is_envjavac_gcj_14_13_usable.
60822         (is_gcj_present): Update.
60823         (is_gcj_43, is_gcj43_usable): New functions.
60824         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60825         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60826         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60827         try the options -fsource and -ftarget.
60828
60829 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60830
60831         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60832         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60833         larger value.
60834
60835 2007-02-03  Jim Meyering  <jim@meyering.net>
60836
60837         Give tools a better chance to allocate space for very large buffers.
60838         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60839
60840         Make pwd and readlink work also when run with an unreadable parent dir
60841         on systems with openat support.
60842         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60843         provided getcwd function, even when we have openat support.
60844         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60845
60846 2007-02-02  Bruno Haible  <bruno@clisp.org>
60847
60848         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60849         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60850         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60851         portability problems if one of these functions is only used on specific
60852         platforms.
60853         Reported by Paul Eggert.
60854
60855 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60856
60857         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60858         is causing more trouble than it's curing.
60859         * lib/regex_internal.h (__mempcpy): Remove.
60860         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60861         (and make the code a tad smaller to boot).
60862         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60863
60864 2007-02-02  Jim Meyering  <jim@meyering.net>
60865
60866         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60867         section, not in the Makefile.am: one.
60868
60869 2007-02-02  Eric Blake  <ebb9@byu.net>
60870
60871         * lib/strchrnul.c: Always include config.h first.
60872
60873         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60874         gnulib strstr is not necessary here.
60875
60876 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60877
60878         * m4/socklen.m4: Fix typo.
60879
60880 2007-02-02  Eric Blake  <ebb9@byu.net>
60881
60882         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60883         * modules/netinet_in (Makefile.am): Likewise.
60884
60885 2007-02-01  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/string_.h (GL_LINK_WARNING): New macro.
60888         (strcasecmp, strstr, strcasestr): If provided by the system,
60889         conditionally define as a macro that leads to a warning instead of to
60890         an error.
60891         (strncasecmp): Conditionally define as a macro that leads to a warning.
60892
60893 2007-02-01  Karl Berry  <karl@gnu.org>
60894
60895         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60896
60897 2007-02-01  Bruno Haible  <bruno@clisp.org>
60898
60899         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60900         renamings.
60901
60902 2007-02-01  Eric Blake  <ebb9@byu.net>
60903
60904         * modules/regex (Depends-on): Revert dependence on mempcpy.
60905         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60906         module's definition of mempcpy.
60907         Reported by Paul Eggert.
60908
60909 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60910
60911         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60912         the symbol XYZ before redefining it.  This fixes a problem with
60913         programs that don't use XYZ, when compiled on systems that define
60914         XYZ to something else.
60915
60916 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60917
60918         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60919         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60920         writeable to group or other and (2) is intended to have a special
60921         mode bit that is set or cleared.  In such a case, the directory
60922         should be neither group- nor other-writeable until the special
60923         mode bits are right.
60924
60925 2007-01-31  Eric Blake  <ebb9@byu.net>
60926
60927         * modules/mountlist (Depends-on): Add strstr.
60928
60929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60930         bug.
60931         * modules/string (Makefile.am): Remove redundant replacement.
60932         * modules/regex (Depends-on): Add mempcpy.
60933
60934 2007-01-31  Bruno Haible  <bruno@clisp.org>
60935
60936         New module description field 'Link'.
60937         * gnulib-tool (func_usage): Document --extract-link-directive.
60938         (sed_extract_prog): Recognize 'Link' directive.
60939         (func_get_link_directive): New function.
60940         (func_import): Show summary of link directives.
60941         Handle --extract-link-directive option.
60942         * modules/acl (Link): New section.
60943         * modules/clock-time (Link): New section.
60944         * modules/euidaccess (Link): New section.
60945         * modules/gettext (Link): New section.
60946         * modules/iconv (Link): New section.
60947         * modules/lock (Link): New section.
60948         * modules/nanosleep (Link): New section.
60949         * modules/readline (Link): New section.
60950
60951 2007-01-27  Bruno Haible  <bruno@clisp.org>
60952
60953         Enforce the use of gnulib modules for unportable <string.h> functions.
60954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60955         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60956         (gl_HEADER_STRING_H_BODY): Require it.
60957         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60958         the symbol XYZ to one that gives a link error.
60959         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60960         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60961         * modules/mempcpy (configure.ac): Likewise.
60962         * modules/memrchr (configure.ac): Likewise.
60963         * modules/stpcpy (configure.ac): Likewise.
60964         * modules/stpncpy (configure.ac): Likewise.
60965         * modules/strcase (configure.ac): Likewise.
60966         * modules/strcasestr (configure.ac): Likewise.
60967         * modules/strchrnul (configure.ac): Likewise.
60968         * modules/strdup (configure.ac): Likewise.
60969         * modules/strndup (configure.ac): Likewise.
60970         * modules/strnlen (configure.ac): Likewise.
60971         * modules/strpbrk (configure.ac): Likewise.
60972         * modules/strsep (configure.ac): Likewise.
60973         * modules/strstr (configure.ac): Likewise.
60974         * modules/strtok_r (configure.ac): Likewise.
60975
60976 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60977
60978         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60979
60980 2007-01-30  Jim Meyering  <jim@meyering.net>
60981
60982         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60983
60984 2007-01-29  Bruno Haible  <bruno@clisp.org>
60985
60986         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60987         * lib/execute.c: Likewise.
60988         * lib/pipe.c: Likewise.
60989         * lib/printf-args.h: Likewise.
60990         * lib/printf-args.c: Likewise.
60991         * lib/printf-parse.c: Likewise.
60992         * lib/vasnprintf.c: Likewise.
60993
60994 2007-01-29  Eric Blake  <ebb9@byu.net>
60995
60996         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60997         declaration.
60998
60999 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61000
61001         * lib/strptime.h (strptime): Use 'restrict' for args where
61002         POSIX requires this.
61003         * lib/strptime.c (strptime): Likewise.
61004         Change license notice from LGPL to GPL, since gnulib-tool will
61005         change this as needed.
61006         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61007         defined.
61008         Include "strptime.h" first, to check interface.
61009         Do not #undef _LIBC and _NL_CURRENT.
61010         Do not include <stdlib.h>; no longer needed.
61011         Include "time_r.h" and declare ptime_locale_status
61012         only if _LIBC is not defined.
61013         (__P): Remove unused macro.
61014         (match_string): Bring back glibc version, but use it only if _LIBC
61015         is defined.
61016         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61017         Remove unnecessary assertion and abort() call.
61018         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61019         * m4/strptime.m4: Fix serial number comment.
61020         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61021         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61022         (Depends-on): Add time_r.
61023
61024 2007-01-29  Bruno Haible  <bruno@clisp.org>
61025
61026         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61027         strptime.
61028         * modules/strptime (Depends-on): Add stdbool.
61029         * lib/strptime.h: Include <time.h> always. Add comments.
61030
61031 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61032
61033         * modules/strptime: New file.
61034         * lib/strptime.h: New file.
61035         * lib/strptime.c: New file.
61036         * m4/strptime.m4: New file.
61037
61038 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61039
61040         * MODULES.html.sh: New module mpsort.
61041         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61042
61043         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61044         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61045         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61046         All uses changed.
61047         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61048         All uses changed.
61049         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61050         to _Restrict_.
61051         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61052         the parameter matches the prototype.
61053
61054 2007-01-28  Jim Meyering  <jim@meyering.net>
61055
61056         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61057         sys/time.h here, reverting that part of the previous patch:
61058         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61059
61060 2007-01-28  Bruno Haible  <bruno@clisp.org>
61061
61062         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61063         value of $(SYS_TIME_H).
61064         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61065         remove it conditionally, too. [added by Jim Meyering]
61066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61068         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61069         GETTIMEOFDAY_REPLACEMENT to 1.
61070
61071 2007-01-28  Bruno Haible  <bruno@clisp.org>
61072
61073         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61074         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61076         Set UNISTD_H instead of UNISTD_H2.
61077         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61078
61079 2007-01-28  Bruno Haible  <bruno@clisp.org>
61080
61081         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61082         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61083
61084 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61085
61086         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61087         (func_create_testdir): Ensure C locale for `grep' and `tr'
61088         character ranges.
61089         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61090         ACLOCAL_AMFLAGS parsing state machine.
61091
61092 2007-01-27  Bruno Haible  <bruno@clisp.org>
61093
61094         * modules/unistr/base: Update.
61095
61096 2007-01-27  Bruno Haible  <bruno@clisp.org>
61097
61098         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61099         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61100         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61101         modules/unistr/u32-mbtouc.
61102         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61103         * lib/unistr.h: Update.
61104         * lib/linebreak.c: Update.
61105         * modules/unistr/u32-mbtouc: Renamed from
61106         modules/unistr/u32-mbtouc-safe.
61107         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61108         * lib/unistr.h: Update.
61109         * lib/unistr/u32-to-u8.c: Update.
61110         * lib/unistr/u32-to-u16.c: Update.
61111
61112 2007-01-27  Bruno Haible  <bruno@clisp.org>
61113
61114         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61115         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61116         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61117         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61118         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61119         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61120         modules/unistr/u16-mbtouc.
61121         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61122         * lib/unistr.h: Update.
61123         * lib/linebreak.c: Update.
61124         * modules/linebreak: Update.
61125         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61126         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61127         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61128         * modules/unistr/u16-mbtouc: Renamed from
61129         modules/unistr/u16-mbtouc-safe.
61130         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61131         * lib/unistr.h: Update.
61132         * lib/unistr/u16-to-u8.c: Update.
61133         * modules/unistr/u16-to-u8: Update.
61134         * lib/unistr/u16-to-u32.c: Update.
61135         * modules/unistr/u16-to-u32: Update.
61136
61137 2007-01-27  Bruno Haible  <bruno@clisp.org>
61138
61139         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61140         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61141         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61142         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61143         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61144         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61145         modules/unistr/u8-mbtouc.
61146         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61147         * lib/unistr.h: Update.
61148         * lib/striconveh.c: Update.
61149         * modules/striconveh: Update.
61150         * lib/linebreak.c: Update.
61151         * modules/linebreak: Update.
61152         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61153         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61154         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61155         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61156         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61157         * lib/unistr.h: Update.
61158         * lib/striconveh.c: Update.
61159         * modules/striconveh: Update.
61160         * lib/unistr/u8-to-u16.c: Update.
61161         * modules/unistr/u8-to-u16: Update.
61162         * lib/unistr/u8-to-u32.c: Update.
61163         * modules/unistr/u8-to-u32: Update.
61164
61165 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61166
61167         Sync from Libtool.
61168         * lib/argz.c: Do not include strings.h nor memory.h, include
61169         string.h unconditionally.  Patch by Simon Josefsson.
61170
61171 2007-01-27  Bruno Haible  <bruno@clisp.org>
61172
61173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61174         from gl_HEADER_STRING_H_BODY.
61175         (gl_HEADER_STRING_H_BODY): Require it.
61176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61177         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61178         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61179         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61180         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61181         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61183         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61184         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61185         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61186         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61187         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61188         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61189         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61190         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61191
61192 2007-01-27  Bruno Haible  <bruno@clisp.org>
61193
61194         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61195         check_PROGRAMS into noinst_PROGRAMS.
61196         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61197         check_PROGRAMS in this case.
61198         (func_import): Set for_test to false.
61199         (func_create_testdir): Set for_test to true.
61200
61201 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61202             Bruno Haible  <bruno@clisp.org>
61203
61204         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61205         (Depends-on): Add string.
61206         (Includes): Use <string.h> instead of strcasestr.h.
61207         * modules/string (Makefile.am): Also substitute the value of
61208         REPLACE_STRCASESTR.
61209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61210         assume strcasestr is declared in <string.h> not <strings.h>. Also
61211         set REPLACE_STRCASESTR.
61212         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61213         REPLACE_STRCASESTR.
61214         * lib/strcasestr.h: Remove file.
61215         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61216         * lib/string_.h (strcasestr): New declaration.
61217
61218 2007-01-27  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/string_.h: Use 'extern'.
61221
61222 2007-01-27  Jim Meyering  <jim@meyering.net>
61223
61224         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61225         of set-but-not-used local, "q".
61226
61227         * lib/mempcpy.c: Include <config.h> before <string.h>.
61228         This fixes a compilation error on HP-UX, due to the system's
61229         "restrict"-using mempcpy prototype.
61230
61231 2007-01-26  Bruno Haible  <bruno@clisp.org>
61232
61233         Small optimization.
61234         * lib/javacomp.c: Include c-strstr.h.
61235          (is_envjavac_gcj): Use c_strstr instead of strstr.
61236         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61237
61238 2007-01-26  Bruno Haible  <bruno@clisp.org>
61239
61240         * MODULES.html.sh (Unicode string functions): Add the new modules.
61241
61242         * modules/uniconv/u32-strconv-to-locale: New file.
61243         * lib/uniconv/u32-strconv-to-locale.c: New file.
61244
61245         * modules/uniconv/u16-strconv-to-locale: New file.
61246         * lib/uniconv/u16-strconv-to-locale.c: New file.
61247
61248         * modules/uniconv/u8-strconv-to-locale: New file.
61249         * lib/uniconv/u8-strconv-to-locale.c: New file.
61250
61251         * modules/uniconv/u32-strconv-from-locale: New file.
61252         * lib/uniconv/u32-strconv-from-locale.c: New file.
61253
61254         * modules/uniconv/u16-strconv-from-locale: New file.
61255         * lib/uniconv/u16-strconv-from-locale.c: New file.
61256
61257         * modules/uniconv/u8-strconv-from-locale: New file.
61258         * lib/uniconv/u8-strconv-from-locale.c: New file.
61259
61260         * modules/uniconv/u32-strconv-to-enc: New file.
61261         * lib/uniconv/u32-strconv-to-enc.c: New file.
61262         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61263         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61264
61265         * modules/uniconv/u16-strconv-to-enc: New file.
61266         * lib/uniconv/u16-strconv-to-enc.c: New file.
61267         * lib/uniconv/u-strconv-to-enc.h: New file.
61268         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61269         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61270
61271         * modules/uniconv/u8-strconv-to-enc: New file.
61272         * lib/uniconv/u8-strconv-to-enc.c: New file.
61273         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61274         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61275
61276         * modules/uniconv/u32-strconv-from-enc: New file.
61277         * lib/uniconv/u32-strconv-from-enc.c: New file.
61278         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61279         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61280
61281         * modules/uniconv/u16-strconv-from-enc: New file.
61282         * lib/uniconv/u16-strconv-from-enc.c: New file.
61283         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61284         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61285
61286         * modules/uniconv/u8-strconv-from-enc: New file.
61287         * lib/uniconv/u8-strconv-from-enc.c: New file.
61288         * lib/uniconv/u-strconv-from-enc.h: New file.
61289         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61290         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61291
61292         * modules/uniconv/u32-conv-from-enc: New file.
61293         * lib/uniconv/u32-conv-from-enc.c: New file.
61294         * modules/uniconv/u32-conv-from-enc-tests: New file.
61295         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61296
61297         * modules/uniconv/u16-conv-from-enc: New file.
61298         * lib/uniconv/u16-conv-from-enc.c: New file.
61299         * lib/uniconv/u-conv-from-enc.h: New file.
61300         * modules/uniconv/u16-conv-from-enc-tests: New file.
61301         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61302
61303         * modules/uniconv/u8-conv-from-enc: New file.
61304         * lib/uniconv/u8-conv-from-enc.c: New file.
61305         * modules/uniconv/u8-conv-from-enc-tests: New file.
61306         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61307
61308         * modules/uniconv/base: New file.
61309         * lib/uniconv.h: New file.
61310
61311 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61312
61313         * doc/gnulib-tool.texi (Initial import): Update to match current
61314         behavior with strdup module.
61315         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61316         * lib/memmem.h: Remove; all uses removed.  This is now done
61317         by <string.h>.
61318         * lib/mempcpy.h: Likewise.
61319         * lib/memrchr.h: Likewise.
61320         * lib/stpcpy.h: Likewise.
61321         * lib/stpncpy.h: Likewise.
61322         * lib/strcase.h: Likewise.
61323         * lib/strchrnul.h: Likewise.
61324         * lib/strdup.h: Likewise.
61325         * lib/strndup.h: Likewise.
61326         * lib/strnlen.h: Likewise.
61327         * lib/strpbrk.h: Likewise.
61328         * lib/strsep.h: Likewise.
61329         * lib/strstr.h: Likewise.
61330         * lib/strtok_r.h: Likewise.
61331         * lib/string_.h: New file.
61332         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61333         Rely on <string.h> instead.
61334         * lib/canon-host.c: Likewise.
61335         * lib/chdir-long.c: Likewise.
61336         * lib/concatpath.c: Likewise.
61337         * lib/exclude.c: Likewise.
61338         * lib/fchdir.c: Likewise.
61339         * lib/getaddrinfo.c: Likewise.
61340         * lib/getcwd.c: Likewise.
61341         * lib/getsubopt.c: Likewise.
61342         * lib/glob.c: Likewise.
61343         * lib/hard-locale.c: Likewise.
61344         * lib/iconvme.c: Likewise.
61345         * lib/javacomp.c: Likewise.
61346         * lib/mempcpy.c: Likewise.
61347         * lib/memrchr.c: Likewise.
61348         * lib/regex_internal.h: Likewise.
61349         * lib/stpncpy.c: Likewise.
61350         * lib/strcasecmp.c: Likewise.
61351         * lib/strchrnul.c: Likewise.
61352         * lib/strdup.c: Likewise.
61353         * lib/striconv.c: Likewise.
61354         * lib/striconveh.c: Likewise.
61355         * lib/striconveha.c: Likewise.
61356         * lib/strncasecmp.c: Likewise.
61357         * lib/strndup.c: Likewise.
61358         * lib/strnlen.c: Likewise.
61359         * lib/strsep.c: Likewise.
61360         * lib/strstr.c: Likewise.
61361         * lib/strtok_r.c: Likewise.
61362         * lib/userspec.c: Likewise.
61363         * lib/w32spawn.h: Likewise.
61364         * lib/xstrndup.c: Likewise.
61365         * lib/mountlist.c (strstr): Remove decl.
61366         * m4/string_h.m4: New file.
61367         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61368         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61369         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61370         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61371         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61372         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61373         Set REPLACE_STRCASECMP if necessary.
61374         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61375         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61376         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61377         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61378         HAVE_DECL_STRDUP if necessary.
61379         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61380         since gl_FUNC_STRNDUP does that now.
61381         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61382         Check for decl here...
61383         (gl_PREREQ_STRNLEN): ... not here.
61384         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61385         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61386         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61387         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61388         necessary.
61389         * modules/string: New file.
61390         * modules/memmem (Files): Remove special-purpose include file.
61391         (Depends-on): Add string.
61392         (Include): Include <string.h>, not the removed file.
61393         * modules/mempcpy: Likewise.
61394         * modules/memrchr: Likewise.
61395         * modules/stpcpy: Likewise.
61396         * modules/stpncpy: Likewise.
61397         * modules/strcase: Likewise.
61398         * modules/strchrnul: Likewise.
61399         * modules/strdup: Likewise.
61400         * modules/strndup: Likewise.
61401         * modules/strnlen: Likewise.
61402         * modules/strpbrk: Likewise.
61403         * modules/strsep: Likewise.
61404         * modules/strstr: Likewise.
61405         * modules/strtok_r: Likewise.
61406         * tests/test-dirname.c: Don't include "strdup.h", since
61407         <string.h> now suffices.
61408         * tests/test-memmem.c: Don't include "memmem.h", since
61409         <string.h> now suffices.
61410
61411 2007-01-25  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61414         *resultp is 0.
61415
61416         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61417         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61418         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61419         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61420
61421         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61422         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61423         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61424         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61425         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61426         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61427
61428 2007-01-24  Bruno Haible  <bruno@clisp.org>
61429
61430         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61431         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61432         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61433         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61434         gl_FUNC_FTS_CORE.
61435         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61436         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61437         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61438         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61439         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61440         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61441         gl_FUNC_FCHOWNAT.
61442         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61443         gl_FUNC_STRFTIME.
61444         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61445         Reported by Ralf Wildenhues.
61446
61447 2007-01-24  Bruno Haible  <bruno@clisp.org>
61448
61449         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61450         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61451         gl_GETADDRINFO.
61452         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61453         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61454         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61455
61456 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61457
61458         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61459         Don't use 'exit'; just return from 'main'.
61460         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61461
61462         * lib/fnmatch_.h: Readjust white space and comments to match
61463         glibc, to avoid spurious diffs.
61464
61465 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61468         2004-12-01 change by Jakub Jelinek, since this code won't compile
61469         if !LIBC.  Problem reported by Bob Proulx.
61470
61471 2007-01-23  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/striconveh.c: Include c-strcaseeq.h.
61474         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61475         * modules/striconveh (Depends-on): Add c-strcaseeq.
61476
61477 2007-01-23  Bruno Haible  <bruno@clisp.org>
61478
61479         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61480
61481         * modules/c-strcaseeq: New file.
61482         * lib/c-strcaseeq.h: New file.
61483
61484         * modules/streq: New file.
61485         * lib/streq.h: New file.
61486
61487 2007-01-23  Bruno Haible  <bruno@clisp.org>
61488
61489         * modules/striconveha-tests: New file.
61490         * tests/test-striconveha.c: New file.
61491
61492         * lib/striconveha.h: Include <stdbool.h>.
61493         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61494         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61495         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61496         (mem_iconveha): New function.
61497         (str_iconveha_notranslit): Renamed from str_iconveha.
61498         (str_iconveha): New function.
61499         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61500         c-strcase.
61501
61502 2007-01-23  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61505         encodings without forgiving before trying any encoding with handler.
61506         (str_iconveha): Try all encodings without forgiving before trying any
61507         encoding with handler.
61508
61509 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61510
61511         Import the following changes from libc.
61512
61513         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61514
61515         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61516
61517         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61518
61519         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61520         normal_bracket label.
61521
61522         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61523
61524         [BZ #361]
61525         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61526         to normal_bracket after fetching the next character.
61527
61528 2007-01-22  Bruno Haible  <bruno@clisp.org>
61529
61530         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61531         argument.
61532         * lib/striconveh.c (iconv_carefully_1): New function.
61533         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61534         argument.
61535         (str_cd_iconveh): Update.
61536         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61537         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61538         * tests/test-striconveh.c (MAGIC): New macro.
61539         (new_offsets): New function.
61540         (main): Test call with and without offsets.
61541
61542 2007-01-22  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61545         * modules/sys_select (Makefile.am): Likewise.
61546         * modules/sys_socket (Makefile.am): Likewise.
61547         * modules/sys_time (Makefile.am): Likewise.
61548
61549 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61550
61551         * modules/gettimeofday (License): Change from GPL to LGPL, since
61552         gettimeofday is a library function.
61553
61554 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61555
61556         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61557
61558 2007-01-21  Bruno Haible  <bruno@clisp.org>
61559
61560         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61561
61562 2007-01-21  Bruno Haible  <bruno@clisp.org>
61563
61564         * modules/striconveha: New file.
61565         * lib/striconveha.h: New file.
61566         * lib/striconveha.c: New file.
61567         * MODULES.html.sh (Internationalization functions): Add striconveha.
61568         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61569         string.
61570         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61571
61572 2007-01-21  Bruno Haible  <bruno@clisp.org>
61573
61574         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61575         * lib/striconveh.c (str_iconveh): Likewise.
61576
61577 2007-01-21  Bruno Haible  <bruno@clisp.org>
61578
61579         * lib/striconveh.h (mem_iconveh): New declaration.
61580         * lib/striconveh.c (mem_iconveh): New function.
61581         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61582
61583 2007-01-21  Bruno Haible  <bruno@clisp.org>
61584
61585         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61586
61587         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61588         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61589         original result buffer.
61590         (str_cd_iconveh): Update.
61591         * tests/test-striconveh.c (main): Update.
61592
61593         * lib/striconv.h (mem_cd_iconv): Change specification.
61594         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61595         result buffer.
61596         (str_cd_iconv): Update.
61597         * tests/test-striconv.c (main): Update.
61598
61599 2007-01-21  Bruno Haible  <bruno@clisp.org>
61600
61601         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61602
61603 2007-01-20  Jim Meyering  <jim@meyering.net>
61604
61605         * lib/userspec.c (parse_with_separator): If a user or group string
61606         starts with "+", skip the corresponding name-to-ID look-up, since
61607         such a look-up must fail: user and group names may not include "+".
61608
61609 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61612         since we now assume the sys_time module.
61613         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61614         check for sys/time.h; no longer needed.
61615         * modules/poll (Depends-on): Depend on sys_time.
61616
61617 2007-01-18  Bruno Haible  <bruno@clisp.org>
61618
61619         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61620         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61621
61622         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61623         gettimeofday.
61624
61625         * tests/test-gettimeofday.c: Include <time.h>.
61626         (dummy): Remove variable.
61627
61628         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61629         gl_HEADER_SYS_TIME_H.
61630         (gl_HEADER_SYS_TIME_H): New macro.
61631
61632         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61633         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61635         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61636         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61637         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61638         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61639         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61640         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61641         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61642         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61643
61644         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61645         last change; it caused a compilation error when cross-compiling to
61646         Cygwin.
61647
61648 2007-01-18  Jim Meyering  <jim@meyering.net>
61649
61650         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61651         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61652         than the race-prone "test -d sys || mkdir sys".
61653         (configure.ac): Use AC_PROG_MKDIR_P.
61654         * modules/sys_select: Likewise.
61655         * modules/sys_socket: Likewise.
61656         * modules/sys_time: Likewise.
61657
61658 2007-01-18  Eric Blake  <ebb9@byu.net>
61659
61660         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61661         replace gettimeofday.
61662         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61663         name, to avoid infinite recursion.
61664
61665 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61668         module sys_time.
61669         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61670         assume timespec.h defines struct timeval.
61671         * lib/settime.c: Likewise.
61672         * lib/utimens.c: Likewise.
61673         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61674         since we now assume the gettimeofday module.
61675         * lib/tempname.c (__gen_tempname): Likewise.
61676         * lib/gettimeofday.h: Remove.
61677         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61678         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61679         Include <time.h>, for 'time()'.
61680         (localtime_buffer_addr): Also use this workaround if
61681         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61682         to simplify the uses.  All uses changed.
61683         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61684         that #undef is inside {}, and 'const' follows type name consistently.
61685         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61686         (gettimeofday): Do not use the maximum possible value for
61687         tv->tv_usec, since that might break usages other than ls.c.
61688         Instead, we'll leave ls.c alone.  This undoes today's patch
61689         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61690         we've never observed the problem but might as well keep the
61691         canary.
61692         * lib/nanosleep.c: Include timespec.h first, for interface check.
61693         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61694         now assume the sys_time module.
61695         * lib/tempname.c: Likewise.
61696         * lib/timespec.h: Likewise.
61697         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61698         needed.
61699         * lib/strftime.c: Likewise.
61700         * lib/timespec.h: Likewise.
61701         * lib/posixtm.c: Include posixtm.h first, for interface check.
61702         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61703         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61704         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61705         * lib/sys_time_.h: New file.
61706         * lib/timespec.h (struct timespec): Use long int, not long.
61707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61708         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61709         Remove obsolescent call to AC_HEADER_TIME.
61710         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61711         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61712         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61713         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61714         Likewise.
61715         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61716         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61718         into the sys_time module.  Check for gettimeofday just once.
61719         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61720         for gettimeofday signature to just check the signature.  Merely
61721         compile it, since linking doesn't test signature.  Improve test for
61722         whether gettimeofday.o is actually needed.
61723         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61724         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61725         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61726         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61727         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61728         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61729         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61730         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61731         than worrying about sys/time.h.
61732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61733         Don't bother worrying about TIME_WITH_SYS_TIME.
61734         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61735         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61736         * m4/sys_time_h.m4: New file.
61737         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61738         Don't include sys/time.h.  Return from main rather than exiting.
61739         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61740         all uses changed.
61741         * modules/gethrxtime (Depends-on): Add sys_time.
61742         * modules/gettime (Depends-on): Likewise.
61743         * modules/gettimeofday (Depends-on): Likewise.
61744         * modules/nanosleep (Depends-on): Likewise.
61745         * modules/settime (Depends-on): Likewise.
61746         * modules/tempname (Depends-on): Likewise.
61747         * modules/utimens (Depends-on): Likewise.
61748         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61749         (Include): Change back to <sys/time.h>.
61750         (Maintainer): Add self.
61751         * modules/sys_time: New file.
61752         * modules/tempname (Depends-on): Add gettimeofday.
61753         * tests/test-gettimeofday.c: Include <sys/time.h>
61754         rather than gettimeofday.h.
61755
61756 2007-01-17  Bruno Haible  <bruno@clisp.org>
61757
61758         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61759         the license default to GPL.
61760         (func_create_testdir): Don't complain if a module is LGPL and its
61761         tests module depends on GPLed modules.
61762
61763 2007-01-17  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/gettimeofday.c (gettimeofday): Add code for the case
61766         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61767         maximum possible value for tv->tv_usec, rather than the minimum one.
61768
61769 2005-10-08  Martin Lambers  <marlam@marlam.de>
61770 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61771 2007-01-16  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61774         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61775         gl_FUNC_GETTIMEOFDAY.
61776         (Include): Add gettimeofday.h.
61777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61778         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61779         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61780         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61781         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61782         * lib/gettimeofday.h: New file.
61783         * lib/gettimeofday.c: Include <sys/timeb.h>.
61784         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61785         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61786         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61787         fall back on time().
61788
61789         * tests/test-gettimeofday.c: New file.
61790         * modules/gettimeofday-tests: New file.
61791
61792 2007-01-16  Eric Blake  <ebb9@byu.net>
61793
61794         * modules/fnmatch (Depends-on): Depend on wchar.
61795         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61796         * m4/fnmatch.m4: Likewise.
61797         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61798         * m4/mbchar.m4: Likewise.
61799         * modules/mbswidth (Depends-on): Depend on wchar.
61800         * lib/mbswidth.c: Assume <wchar.h>.
61801         * m4/mbswidth.m4: Likewise.
61802         * modules/quotearg (Depends-on): Depend on wchar.
61803         * lib/quotearg.c: Assume <wchar.h>.
61804         * m4/quotearg.m4: Likewise.
61805         * modules/regex (Depends-on): Depend on wchar.
61806         * lib/regex_internal.h: Assume <wchar.h>.
61807         * m4/regex.m4: Likewise.
61808         * modules/stdint (Depends-on): Depend on wchar.
61809         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61810         * m4/stdint.m4: Likewise.
61811         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61812         * modules/strftime (Depends-on): Depend on wchar.
61813         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61814         * modules/strtol (Depends-on): Depend on wchar.
61815         * lib/strtol.c: Assume <wchar.h>.
61816         * modules/wcwidth (Depends-on): Depend on wchar.
61817         * lib/wcwidth.h: Assume <wchar.h>.
61818         * m4/wcwidth.m4: Likewise.
61819
61820 2007-01-16  Bruno Haible  <bruno@clisp.org>
61821
61822         * modules/csharpexec-script: New, created from...
61823         * modules/csharpexec: ... this.
61824
61825 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61826
61827         * modules/javaexec-script: New, created from...
61828         * modules/javaexec: ... this.
61829
61830 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61831
61832         * modules/poll (Dependencies): Add sys_select.
61833
61834 2007-01-15  Jim Meyering  <jim@meyering.net>
61835
61836         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61837         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61838         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61839         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61840
61841 2007-01-15  Bruno Haible  <bruno@clisp.org>
61842
61843         * modules/striconveh: New file.
61844         * lib/striconveh.h: New file.
61845         * lib/striconveh.c: New file.
61846         * MODULES.html.sh (Internationalization functions): Add striconveh.
61847
61848         * modules/striconveh-tests: New file.
61849         * tests/test-striconveh.c: New file.
61850
61851 2007-01-15  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61854         not from GNU libiconv or GNU libc.
61855
61856 2007-01-15  Bruno Haible  <bruno@clisp.org>
61857
61858         * doc/gnulib-intro.texi (Copyright): Explain the different license
61859         terms for module descriptions, autoconf macros, tests, documentation.
61860
61861 2007-01-14  Bruno Haible  <bruno@clisp.org>
61862
61863         * modules/striconv-tests: New file.
61864         * tests/test-striconv.c: New file.
61865
61866 2007-01-14  Bruno Haible  <bruno@clisp.org>
61867
61868         * modules/iconv-tests: New file.
61869         * tests/test-iconv.c: New file.
61870
61871 2007-01-14  Bruno Haible  <bruno@clisp.org>
61872
61873         * gnulib-tool (func_get_license): For test modules, use the license of
61874         the main module.
61875
61876 2007-01-14  Bruno Haible  <bruno@clisp.org>
61877
61878         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61879         if iconv is found to exist.
61880
61881 2007-01-14  Bruno Haible  <bruno@clisp.org>
61882
61883         * modules/c-ctype-tests: New file.
61884         * tests/test-c-ctype.c: New file.
61885
61886 2007-01-14  Bruno Haible  <bruno@clisp.org>
61887
61888         * modules/binary-io-tests: New file.
61889         * tests/test-binary-io.sh: New file.
61890         * tests/test-binary-io.c: New file.
61891
61892 2007-01-14  Bruno Haible  <bruno@clisp.org>
61893
61894         * modules/array-oset-tests: New file.
61895         * tests/test-array_oset.c: New file.
61896
61897 2007-01-14  Bruno Haible  <bruno@clisp.org>
61898
61899         * modules/array-list-tests: New file.
61900         * tests/test-array_list.c: New file.
61901
61902 2007-01-14  Bruno Haible  <bruno@clisp.org>
61903
61904         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61905         and make.
61906         Reported by Simon Josefsson in
61907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61908
61909 2007-01-14  Bruno Haible  <bruno@clisp.org>
61910
61911         * modules/allocsa-tests: New file.
61912         * tests/test-allocsa.c: New file.
61913
61914 2007-01-14  Bruno Haible  <bruno@clisp.org>
61915
61916         * modules/fchdir (Depends-on): Add absolute-header.
61917         * modules/unistd (Depends-on): Likewise.
61918
61919 2006-12-30  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/fchdir: New file.
61922         * modules/unistd (Files): Add lib/unistd_.h.
61923         (Makefile.am): Generate unistd.h from unistd_.h.
61924         * lib/fchdir.c: New file.
61925         * lib/dirent_.h: New file.
61926         * lib/unistd_.h: New file.
61927         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61928         * m4/fchdir.m4: New file.
61929         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61930         (gl_HEADER_UNISTD): Invoke it.
61931         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61932         function.
61933         * lib/backupfile.c (opendir, closedir): Undefine.
61934         * lib/chown.c (open, close): Undefine.
61935         * lib/clean-temp.c (open, close): Undefine.
61936         * lib/copy-file.c (open, close): Undefine.
61937         * lib/execute.c (open, close): Undefine.
61938         * lib/fsusage.c (open, close): Undefine.
61939         * lib/gc-gnulib.c (open, close): Undefine.
61940         * lib/getcwd.c (opendir, closedir): Undefine.
61941         * lib/glob.c (opendir, closedir): Undefine.
61942         * lib/javacomp.c (open, close): Undefine.
61943         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61944         * lib/openat-proc.c (open, close): Undefine.
61945         * lib/pagealign_alloc.c (open, close): Undefine.
61946         * lib/pipe.c (open, close): Undefine.
61947         * lib/progreloc.c (open, close): Undefine.
61948         * lib/savedir.c (opendir, closedir): Undefine.
61949         * lib/utime.c (open, close): Undefine.
61950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61951
61952 2007-01-10  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61955
61956 2007-01-12  Eric Blake  <ebb9@byu.net>
61957
61958         Provide a robust <wchar.h>.  Further simplifications are now
61959         possible in other modules, but not included here.
61960         * modules/wchar: New module.
61961         * m4/wchar.m4: New file.
61962         * lib/wchar_.h: Likewise.
61963         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61964         of the new module.
61965         * MODULES.html.sh (Extended multibyte and wide character utilities):
61966         New section.
61967
61968 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61969
61970         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61971         to a reasonable default for memory allocation.
61972         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61973         file system that reports garbage st_size values for symlinks.
61974         Problem reported by Liyang Hu.
61975
61976 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61977
61978         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61979         Emacs .#* auto-save files).
61980
61981 2007-01-11  Bruno Haible  <bruno@clisp.org>
61982
61983         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61984         directory.
61985
61986 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         Use @...@ consistently in lib/wctype_.h.
61989         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61990         on it being set to 1 or 0.
61991         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61992         go back to AC_SUBSTing it.
61993         * modules/wctype (Makefile.am): Undo previous change.
61994
61995 2007-01-10  Eric Blake  <ebb9@byu.net>
61996
61997         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61998         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61999         * modules/wctype (Makefile.am): Likewise.
62000         Reported by Chris McGuire.
62001
62002 2007-01-10  Jim Meyering  <jim@meyering.net>
62003
62004         fts.c: a small readability/maintainability improvement
62005         * lib/fts.c (fts_read): Make this code slightly more readable and
62006         maintainable by hoisting the "sp->fts_cur = p" assignments to
62007         immediately follow the statements that set P.  Derived from
62008         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62009
62010 2007-01-10  Eric Blake  <ebb9@byu.net>
62011
62012         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62013         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62015         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62016         Reported by Chris McGuire.
62017
62018 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62019
62020         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62021         in sed script.
62022
62023 2007-01-09  Bruno Haible  <bruno@clisp.org>
62024
62025         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62026         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62027         variables.
62028         (func_module): Use them.
62029
62030 2007-01-09  Bruno Haible  <bruno@clisp.org>
62031
62032         * modules/unistr/base: New file.
62033         * lib/unistr.h: New file.
62034
62035         * modules/unistr/u8-to-u16: New file.
62036         * lib/unistr/u8-to-u16.c: New file.
62037
62038         * modules/unistr/u8-to-u32: New file.
62039         * lib/unistr/u8-to-u32.c: New file.
62040
62041         * modules/unistr/u16-to-u8: New file.
62042         * lib/unistr/u16-to-u8.c: New file.
62043
62044         * modules/unistr/u16-to-u32: New file.
62045         * lib/unistr/u16-to-u32.c: New file.
62046
62047         * modules/unistr/u32-to-u8: New file.
62048         * lib/unistr/u32-to-u8.c: New file.
62049
62050         * modules/unistr/u32-to-u16: New file.
62051         * lib/unistr/u32-to-u16.c: New file.
62052
62053         * modules/unistr/u8-check: New file.
62054         * modules/unistr/u16-check: New file.
62055         * modules/unistr/u32-check: New file.
62056         * lib/unistr/u8-check.c: New file.
62057         * lib/unistr/u16-check.c: New file.
62058         * lib/unistr/u32-check.c: New file.
62059
62060         * modules/unistr/u8-chr: New file.
62061         * modules/unistr/u16-chr: New file.
62062         * modules/unistr/u32-chr: New file.
62063         * lib/unistr/u8-chr.c: New file.
62064         * lib/unistr/u16-chr.c: New file.
62065         * lib/unistr/u32-chr.c: New file.
62066
62067         * modules/unistr/u8-cmp: New file.
62068         * modules/unistr/u16-cmp: New file.
62069         * modules/unistr/u32-cmp: New file.
62070         * lib/unistr/u8-cmp.c: New file.
62071         * lib/unistr/u16-cmp.c: New file.
62072         * lib/unistr/u32-cmp.c: New file.
62073
62074         * modules/unistr/u8-cpy: New file.
62075         * modules/unistr/u16-cpy: New file.
62076         * modules/unistr/u32-cpy: New file.
62077         * lib/unistr/u8-cpy.c: New file.
62078         * lib/unistr/u16-cpy.c: New file.
62079         * lib/unistr/u32-cpy.c: New file.
62080         * lib/unistr/u-cpy.h: New file.
62081
62082         * modules/unistr/u8-cpy-alloc: New file.
62083         * modules/unistr/u16-cpy-alloc: New file.
62084         * modules/unistr/u32-cpy-alloc: New file.
62085         * lib/unistr/u8-cpy-alloc.c: New file.
62086         * lib/unistr/u16-cpy-alloc.c: New file.
62087         * lib/unistr/u32-cpy-alloc.c: New file.
62088         * lib/unistr/u-cpy-alloc.h: New file.
62089
62090         * modules/unistr/u8-endswith: New file.
62091         * modules/unistr/u16-endswith: New file.
62092         * modules/unistr/u32-endswith: New file.
62093         * lib/unistr/u8-endswith.c: New file.
62094         * lib/unistr/u16-endswith.c: New file.
62095         * lib/unistr/u32-endswith.c: New file.
62096         * lib/unistr/u-endswith.h: New file.
62097
62098         * modules/unistr/u8-mblen: New file.
62099         * modules/unistr/u16-mblen: New file.
62100         * modules/unistr/u32-mblen: New file.
62101         * lib/unistr/u8-mblen.c: New file.
62102         * lib/unistr/u16-mblen.c: New file.
62103         * lib/unistr/u32-mblen.c: New file.
62104
62105         * modules/unistr/u8-mbtouc: New file.
62106         * modules/unistr/u16-mbtouc: New file.
62107         * modules/unistr/u32-mbtouc: New file.
62108         * lib/unistr/u8-mbtouc.c: New file.
62109         * lib/unistr/u16-mbtouc.c: New file.
62110         * lib/unistr/u32-mbtouc.c: New file.
62111
62112         * modules/unistr/u8-mbtouc-safe: New file.
62113         * modules/unistr/u16-mbtouc-safe: New file.
62114         * modules/unistr/u32-mbtouc-safe: New file.
62115         * lib/unistr/u8-mbtouc-safe.c: New file.
62116         * lib/unistr/u16-mbtouc-safe.c: New file.
62117         * lib/unistr/u32-mbtouc-safe.c: New file.
62118
62119         * modules/unistr/u8-move: New file.
62120         * modules/unistr/u16-move: New file.
62121         * modules/unistr/u32-move: New file.
62122         * lib/unistr/u8-move.c: New file.
62123         * lib/unistr/u16-move.c: New file.
62124         * lib/unistr/u32-move.c: New file.
62125         * lib/unistr/u-move.h: New file.
62126
62127         * modules/unistr/u8-next: New file.
62128         * modules/unistr/u16-next: New file.
62129         * modules/unistr/u32-next: New file.
62130         * lib/unistr/u8-next.c: New file.
62131         * lib/unistr/u16-next.c: New file.
62132         * lib/unistr/u32-next.c: New file.
62133
62134         * modules/unistr/u8-prev: New file.
62135         * modules/unistr/u16-prev: New file.
62136         * modules/unistr/u32-prev: New file.
62137         * lib/unistr/u8-prev.c: New file.
62138         * lib/unistr/u16-prev.c: New file.
62139         * lib/unistr/u32-prev.c: New file.
62140
62141         * modules/unistr/u8-set: New file.
62142         * modules/unistr/u16-set: New file.
62143         * modules/unistr/u32-set: New file.
62144         * lib/unistr/u8-set.c: New file.
62145         * lib/unistr/u16-set.c: New file.
62146         * lib/unistr/u32-set.c: New file.
62147         * lib/unistr/u-set.h: New file.
62148
62149         * modules/unistr/u8-startswith: New file.
62150         * modules/unistr/u16-startswith: New file.
62151         * modules/unistr/u32-startswith: New file.
62152         * lib/unistr/u8-startswith.c: New file.
62153         * lib/unistr/u16-startswith.c: New file.
62154         * lib/unistr/u32-startswith.c: New file.
62155         * lib/unistr/u-startswith.h: New file.
62156
62157         * modules/unistr/u8-stpcpy: New file.
62158         * modules/unistr/u16-stpcpy: New file.
62159         * modules/unistr/u32-stpcpy: New file.
62160         * lib/unistr/u8-stpcpy.c: New file.
62161         * lib/unistr/u16-stpcpy.c: New file.
62162         * lib/unistr/u32-stpcpy.c: New file.
62163         * lib/unistr/u-stpcpy.h: New file.
62164
62165         * modules/unistr/u8-stpncpy: New file.
62166         * modules/unistr/u16-stpncpy: New file.
62167         * modules/unistr/u32-stpncpy: New file.
62168         * lib/unistr/u8-stpncpy.c: New file.
62169         * lib/unistr/u16-stpncpy.c: New file.
62170         * lib/unistr/u32-stpncpy.c: New file.
62171         * lib/unistr/u-stpncpy.h: New file.
62172
62173         * modules/unistr/u8-strcat: New file.
62174         * modules/unistr/u16-strcat: New file.
62175         * modules/unistr/u32-strcat: New file.
62176         * lib/unistr/u8-strcat.c: New file.
62177         * lib/unistr/u16-strcat.c: New file.
62178         * lib/unistr/u32-strcat.c: New file.
62179         * lib/unistr/u-strcat.h: New file.
62180
62181         * modules/unistr/u8-strchr: New file.
62182         * modules/unistr/u16-strchr: New file.
62183         * modules/unistr/u32-strchr: New file.
62184         * lib/unistr/u8-strchr.c: New file.
62185         * lib/unistr/u16-strchr.c: New file.
62186         * lib/unistr/u32-strchr.c: New file.
62187
62188         * modules/unistr/u8-strcmp: New file.
62189         * modules/unistr/u16-strcmp: New file.
62190         * modules/unistr/u32-strcmp: New file.
62191         * lib/unistr/u8-strcmp.c: New file.
62192         * lib/unistr/u16-strcmp.c: New file.
62193         * lib/unistr/u32-strcmp.c: New file.
62194
62195         * modules/unistr/u8-strcpy: New file.
62196         * modules/unistr/u16-strcpy: New file.
62197         * modules/unistr/u32-strcpy: New file.
62198         * lib/unistr/u8-strcpy.c: New file.
62199         * lib/unistr/u16-strcpy.c: New file.
62200         * lib/unistr/u32-strcpy.c: New file.
62201         * lib/unistr/u-strcpy.h: New file.
62202
62203         * modules/unistr/u8-strcspn: New file.
62204         * modules/unistr/u16-strcspn: New file.
62205         * modules/unistr/u32-strcspn: New file.
62206         * lib/unistr/u8-strcspn.c: New file.
62207         * lib/unistr/u16-strcspn.c: New file.
62208         * lib/unistr/u32-strcspn.c: New file.
62209         * lib/unistr/u-strcspn.h: New file.
62210
62211         * modules/unistr/u8-strdup: New file.
62212         * modules/unistr/u16-strdup: New file.
62213         * modules/unistr/u32-strdup: New file.
62214         * lib/unistr/u8-strdup.c: New file.
62215         * lib/unistr/u16-strdup.c: New file.
62216         * lib/unistr/u32-strdup.c: New file.
62217         * lib/unistr/u-strdup.h: New file.
62218
62219         * modules/unistr/u8-strlen: New file.
62220         * modules/unistr/u16-strlen: New file.
62221         * modules/unistr/u32-strlen: New file.
62222         * lib/unistr/u8-strlen.c: New file.
62223         * lib/unistr/u16-strlen.c: New file.
62224         * lib/unistr/u32-strlen.c: New file.
62225         * lib/unistr/u-strlen.h: New file.
62226
62227         * modules/unistr/u8-strmblen: New file.
62228         * modules/unistr/u16-strmblen: New file.
62229         * modules/unistr/u32-strmblen: New file.
62230         * lib/unistr/u8-strmblen.c: New file.
62231         * lib/unistr/u16-strmblen.c: New file.
62232         * lib/unistr/u32-strmblen.c: New file.
62233
62234         * modules/unistr/u8-strmbtouc: New file.
62235         * modules/unistr/u16-strmbtouc: New file.
62236         * modules/unistr/u32-strmbtouc: New file.
62237         * lib/unistr/u8-strmbtouc.c: New file.
62238         * lib/unistr/u16-strmbtouc.c: New file.
62239         * lib/unistr/u32-strmbtouc.c: New file.
62240
62241         * modules/unistr/u8-strncat: New file.
62242         * modules/unistr/u16-strncat: New file.
62243         * modules/unistr/u32-strncat: New file.
62244         * lib/unistr/u8-strncat.c: New file.
62245         * lib/unistr/u16-strncat.c: New file.
62246         * lib/unistr/u32-strncat.c: New file.
62247         * lib/unistr/u-strncat.h: New file.
62248
62249         * modules/unistr/u8-strncmp: New file.
62250         * modules/unistr/u16-strncmp: New file.
62251         * modules/unistr/u32-strncmp: New file.
62252         * lib/unistr/u8-strncmp.c: New file.
62253         * lib/unistr/u16-strncmp.c: New file.
62254         * lib/unistr/u32-strncmp.c: New file.
62255
62256         * modules/unistr/u8-strncpy: New file.
62257         * modules/unistr/u16-strncpy: New file.
62258         * modules/unistr/u32-strncpy: New file.
62259         * lib/unistr/u8-strncpy.c: New file.
62260         * lib/unistr/u16-strncpy.c: New file.
62261         * lib/unistr/u32-strncpy.c: New file.
62262         * lib/unistr/u-strncpy.h: New file.
62263
62264         * modules/unistr/u8-strnlen: New file.
62265         * modules/unistr/u16-strnlen: New file.
62266         * modules/unistr/u32-strnlen: New file.
62267         * lib/unistr/u8-strnlen.c: New file.
62268         * lib/unistr/u16-strnlen.c: New file.
62269         * lib/unistr/u32-strnlen.c: New file.
62270         * lib/unistr/u-strnlen.h: New file.
62271
62272         * modules/unistr/u8-strpbrk: New file.
62273         * modules/unistr/u16-strpbrk: New file.
62274         * modules/unistr/u32-strpbrk: New file.
62275         * lib/unistr/u8-strpbrk.c: New file.
62276         * lib/unistr/u16-strpbrk.c: New file.
62277         * lib/unistr/u32-strpbrk.c: New file.
62278         * lib/unistr/u-strpbrk.h: New file.
62279
62280         * modules/unistr/u8-strrchr: New file.
62281         * modules/unistr/u16-strrchr: New file.
62282         * modules/unistr/u32-strrchr: New file.
62283         * lib/unistr/u8-strrchr.c: New file.
62284         * lib/unistr/u16-strrchr.c: New file.
62285         * lib/unistr/u32-strrchr.c: New file.
62286
62287         * modules/unistr/u8-strspn: New file.
62288         * modules/unistr/u16-strspn: New file.
62289         * modules/unistr/u32-strspn: New file.
62290         * lib/unistr/u8-strspn.c: New file.
62291         * lib/unistr/u16-strspn.c: New file.
62292         * lib/unistr/u32-strspn.c: New file.
62293         * lib/unistr/u-strspn.h: New file.
62294
62295         * modules/unistr/u8-strstr: New file.
62296         * modules/unistr/u16-strstr: New file.
62297         * modules/unistr/u32-strstr: New file.
62298         * lib/unistr/u8-strstr.c: New file.
62299         * lib/unistr/u16-strstr.c: New file.
62300         * lib/unistr/u32-strstr.c: New file.
62301         * lib/unistr/u-strstr.h: New file.
62302
62303         * modules/unistr/u8-strtok: New file.
62304         * modules/unistr/u16-strtok: New file.
62305         * modules/unistr/u32-strtok: New file.
62306         * lib/unistr/u8-strtok.c: New file.
62307         * lib/unistr/u16-strtok.c: New file.
62308         * lib/unistr/u32-strtok.c: New file.
62309         * lib/unistr/u-strtok.h: New file.
62310
62311         * modules/unistr/u8-uctomb: New file.
62312         * modules/unistr/u16-uctomb: New file.
62313         * modules/unistr/u32-uctomb: New file.
62314         * lib/unistr/u8-uctomb.c: New file.
62315         * lib/unistr/u16-uctomb.c: New file.
62316         * lib/unistr/u32-uctomb.c: New file.
62317
62318         * MODULES.html.sh (Unicode string functions): Add the new modules.
62319
62320 2007-01-08  Bruno Haible  <bruno@clisp.org>
62321
62322         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62323         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62324         subdirectories.
62325
62326 2007-01-08  Karl Berry  <karl@gnu.org>
62327
62328         * doc/error.texi: mention that main() fns must set program_name
62329         when progname is used.
62330
62331 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62332
62333         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62334         WCTYPE_H is empty, for the benefit of builds from non-distclean
62335         directories.  Problem reported by Eric Blake in
62336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62337
62338 2007-01-08  Bruno Haible  <bruno@clisp.org>
62339
62340         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62341         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62342         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62343         PROVIDE_CANONICALIZE_FILENAME_MODE.
62344         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62345
62346 2007-01-08  Bruno Haible  <bruno@clisp.org>
62347
62348         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62349         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62350         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62351         * lib/fts.c: Likewise.
62352         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62353
62354 2006-12-25  Bruno Haible  <bruno@clisp.org>
62355
62356         * modules/utf8-ucs4-safe: New file.
62357         * lib/utf8-ucs4-safe.h: New file.
62358         * lib/unistr/utf8-ucs4-safe.c: New file.
62359
62360         * modules/utf16-ucs4-safe: New file.
62361         * lib/utf16-ucs4-safe.h: New file.
62362         * lib/unistr/utf16-ucs4-safe.c: New file.
62363
62364         * MODULES.html.sh (Unicode string functions): Add the new modules.
62365
62366 2007-01-08  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62369         (Depends-on): Add unitypes.
62370         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62371         (u8_mbtouc_aux): Move out to separate file.
62372         (u8_mbtouc): Use ucs4_t, uint8_t types.
62373         * lib/unistr/utf8-ucs4.c: New file.
62374
62375         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62376         (Depends-on): Add unitypes.
62377         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62378         (u16_mbtouc_aux): Move out to separate file.
62379         (u16_mbtouc): Use ucs4_t, uint16_t types.
62380         * lib/unistr/utf16-ucs4.c: New file.
62381
62382         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62383         (Depends-on): Add unitypes.
62384         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62385         (u8_uctomb_aux): Move out to separate file.
62386         (u8_uctomb): Use ucs4_t, uint8_t types.
62387         * lib/unistr/ucs4-utf8.c: New file.
62388
62389         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62390         (Depends-on): Add unitypes.
62391         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62392         (u16_uctomb_aux): Move out to separate file.
62393         (u16_uctomb): Use ucs4_t, uint16_t types.
62394         * lib/unistr/ucs4-utf16.c: New file.
62395
62396 2006-12-25  Bruno Haible  <bruno@clisp.org>
62397
62398         * modules/unitypes: New file.
62399         * lib/unitypes.h: New file.
62400         * MODULES.html.sh (func_all_modules): New section "Unicode string
62401         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62402         this section. Add unitypes.
62403
62404 2007-01-08  Bruno Haible  <bruno@clisp.org>
62405
62406         Avoid variable names that conflict with those from libtool.
62407         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62408         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62409         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62410         library_names_spec to acl_library_names_spec, hardcode_* to
62411         acl_hardcode_*.
62412         Reported by Ralf Wildenhues.
62413
62414 2007-01-08  Bruno Haible  <bruno@clisp.org>
62415
62416         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62417         definition.
62418         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62419         definition.
62420         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62421         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62422         definition.
62423         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62424         definition.
62425         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62426         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62427         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62428         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62429         definition.
62430         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62431         definition.
62432         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62433         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62434         GC_USE_<algorithm>.
62435         * lib/gc-libgcrypt.c: Likewise.
62436         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62437         * modules/gc-arctwo (configure.ac): Likewise.
62438         * modules/gc-des (configure.ac): Likewise.
62439         * modules/gc-hmac-md5 (configure.ac): Likewise.
62440         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62441         * modules/gc-md2 (configure.ac): Likewise.
62442         * modules/gc-md4 (configure.ac): Likewise.
62443         * modules/gc-md5 (configure.ac): Likewise.
62444         * modules/gc-random (configure.ac): Likewise.
62445         * modules/gc-rijndael (configure.ac): Likewise.
62446         * modules/gc-sha1 (configure.ac): Likewise.
62447
62448 2007-01-08  Bruno Haible  <bruno@clisp.org>
62449
62450         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62451         macro definition.
62452         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62453         definition.
62454         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62455         definition.
62456         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62457         * modules/fcntl-safer (configure.ac): Likewise.
62458         * modules/fopen-safer (configure.ac): Likewise.
62459         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62460         GNULIB_FWRITEERROR macro definition.
62461
62462 2007-01-08  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/gnulib-common.m4: New file.
62465         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62466         (func_get_filelist): Add m4/gnulib-common.m4.
62467
62468 2007-01-08  Bruno Haible  <bruno@clisp.org>
62469
62470         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62471         command.
62472
62473 2007-01-08  Jim Meyering  <jim@meyering.net>
62474
62475         Use a more robust test for a "can't happen" condition.
62476         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62477         narrowed the st_size value.  Presuming the "can't happen" condition
62478         is true, that narrowing could conceivably convert an invalid st_size
62479         value into a valid one.  Instead, use a change based on Matthew
62480         Woehlke's original patch.
62481
62482         Slight readability improvement: use an assert-like macro
62483         in place of literal "abort ()" uses.
62484         * lib/fts.c (fts_assert): Define.
62485         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62486         Use this macro instead of a bare 'abort'.
62487
62488 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62489
62490         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62491         simply work around them.
62492         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62493         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62494         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62495         declaring.
62496         Don't bother to define as macros, since the standard doesn't require it.
62497         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62498         longer worry about IRIX 5.3.
62499         (HAVE_WCTYPE_CTMP_BUG): Remove.
62500
62501 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62504         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62505         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62506         Problems reported by Georg Schwarz for IRIX 5.3.
62507
62508         * gnulib-tool (autoconf_minversion): Take the maximum version number
62509         found, not the minimum.  Problem reported by James Youngman.
62510
62511 2007-01-03  Karl Berry  <karl@gnu.org>
62512
62513         * doc/error.texi: new file, explaining interaction with progname.
62514         * doc/gnulib.texi: include it.  Update copyright.
62515
62516 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62517
62518         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62519         AC_CANONICAL_HOST, to improve autobuild outputs.
62520
62521 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62522             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62523
62524         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62525         sockets, server sockets, and other file descriptors.  Count errors
62526         to compute the return value.  Reorder the code a bit to be easier
62527         to follow.  Don't set event bits that were not requested (except
62528         POLLERR and POLLHUP).
62529
62530 2007-01-01  Bruno Haible  <bruno@clisp.org>
62531
62532         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62533
62534 2007-01-03  Jim Meyering  <jim@meyering.net>
62535
62536         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62537
62538 2007-01-02  Bruno Haible  <bruno@clisp.org>
62539
62540         * modules/settime (Include): Require timespec.h.
62541         * modules/nanosleep (Include): Likewise.
62542
62543 2007-01-01  Bruno Haible  <bruno@clisp.org>
62544
62545         * gnulib-tool (func_emit_copyright_notice): Bump year.
62546         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62547
62548 2007-01-01  Bruno Haible  <bruno@clisp.org>
62549
62550         Improve support for OpenBSD.
62551         * build-aux/config.rpath (libname_spec): Export.
62552         (library_names_spec): New variable. Export.
62553         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62554         library_names_spec from the config.rpath output. Locate shared library
62555         through the name pattern in library_names_spec.
62556
62557 2007-01-01  Eric Blake  <ebb9@byu.net>
62558
62559         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62560
62561 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62564         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62565         assume the C locale, and avoid an "eval" that could cause trouble.
62566         Problem with SORT reported by Bob Proulx.
62567
62568         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62569         Define.  Trivial patch from Henning Nielsen Lund, originally
62570         sent to bug-grep@gnu.org today.
62571
62572 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62573
62574         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62575         struct stat.  Problem reported by Henning Nielsen Lund.
62576         * lib/acl.c: Include acl.h first, to check interface.  Don't
62577         bother to include sys/types.h and sys/stat.h again.
62578
62579 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         Import the following change from libc; problem reported by
62582         Sven Verdoolaege.
62583
62584         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62585
62586         [BZ #1373]
62587         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62588
62589 2006-12-28  Jim Meyering  <jim@meyering.net>
62590
62591         * build-aux/announce-gen: Do not assume that the package
62592         builds any of tar.gz, tar.bz2, and .xdelta files.
62593         Suggestion from Simon Josefsson.
62594
62595 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62596
62597         * modules/announce-gen: New file.
62598
62599 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62602         handles its gotchas now.
62603         * lib/mbswidth.c: Likewise.
62604         * lib/wcwidth.h: Likewise.
62605         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62606         and iswcntrl; the wctype module does this stuff now.
62607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62609         * modules/mbchar (Depends-on): Add wctype.
62610         * modules/mbswidth (Depends-on): Likewise.
62611         * modules/wcwidth (Depends-on): Likewise.
62612
62613 2006-12-27  Eric Blake  <ebb9@byu.net>
62614
62615         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62616         module uses more than what <wctype.h> is required to provide.
62617
62618 2006-12-26  Eric Blake  <ebb9@byu.net>
62619
62620         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62621
62622 2006-12-26  Eric Blake  <ebb9@byu.net>
62623
62624         * modules/absolute-header: New module.
62625         * modules/fcntl (Depends-on): Depend on it.
62626         * modules/inttypes (Depends-on): Likewise.
62627         * modules/stdint (Depends-on): Likewise.
62628         * modules/sys_stat (Depends-on): Likewise.
62629         * modules/wctype (Depends-on): Likewise.
62630         * MODULES.html.sh (Support for building libraries and
62631         executables): Document it.
62632
62633 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62634
62635         * gnulib-tool (SED): Remove, undoing previous change.
62636         The problem was that it broke coreutils on Solaris, because
62637         "sed --posix" leaked into a makefile.
62638         (sed): New alias, if 'alias' and GNU sed.
62639
62640 2006-12-24  Jim Meyering  <jim@meyering.net>
62641
62642         Work around an fchownat bug in glibc-2.4:
62643         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62644         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62645         in spite of the -P option.
62646         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62647         New macros.
62648         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62649         * modules/openat (Files): Add lib/fchownat.c.
62650         * lib/openat.c (fchownat): Don't define here.  Move to...
62651         * lib/fchownat.c: ...this new file.
62652
62653 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62654
62655         Fix bug reported by Bruno Haible in
62656         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62657         where quotearg.c didn't compile on Mac OS X 10.2 because it
62658         lacks <wchar.h> and wint_t.
62659         * lib/wctype_.h (__wctype_wint_t): New type.
62660         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62661         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62662         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62663         Arg is now of type __wctype_wint_t, not wint_t.
62664         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62665         substitute HAVE_WINT_T.
62666         * modules/wctype (Files): Add m4/wint_t.m4.
62667         (wctype.h): Substitute HAVE_WINT_T.
62668
62669 2006-12-23  Bruno Haible  <bruno@clisp.org>
62670
62671         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62672
62673 2006-12-23  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62676         S_ISLNK.
62677         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62678         mingw.
62679
62680 2006-12-22  Bruno Haible  <bruno@clisp.org>
62681
62682         * lib/copy-file.c: Include acl.h.
62683         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62684         Close the file descriptors only after being done with copy_acl.
62685         * modules/copy-file (Depends-on): Add acl.
62686
62687 2006-12-22  Bruno Haible  <bruno@clisp.org>
62688
62689         * gnulib-tool (SED): New variable.
62690         Use $SED instead of sed everywhere.
62691
62692 2006-12-22  Bruno Haible  <bruno@clisp.org>
62693
62694         * modules/no-c++: New file.
62695         * m4/no-c++.m4: New file.
62696         * MODULES.html.sh (Support for building libraries and executables):
62697         Add no-c++.
62698
62699 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62702         Include <limits.h>, and use its INT_MAX to rewrite the
62703         j loop so that it does not overflow 'int'.  Problem reported by
62704         Ralf Wildenhues in
62705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62706         Play it safe by shifting left by 1 rather than multiplying by 2,
62707         as GCC is less likely to optimize this away when the value
62708         is signed (when it assumes overflow leads to undefined behavior).
62709         Also, don't assume time_t uses two's complement.
62710
62711 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62712
62713         * MODULES.html.sh: New module wctype.
62714         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62715         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62716         <wctype.h>, since the new wctype module should fix this.
62717         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62718         the wctype module should arrange for it.
62719         * lib/regex_internal.h: Likewise.
62720         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62721         since the wctype module should handle this now.
62722         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62723         * modules/fnmatch (Depends-on): Add wctype.
62724         * modules/quotearg (Depends-on): Likewise.
62725         * modules/regex (Depends-on): Likewise.
62726
62727 2006-12-19  Bruno Haible  <bruno@clisp.org>
62728
62729         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62730         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62731
62732 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62733
62734         * modules/savewd (Depends-on): Fix dependency on fcntl.
62735
62736 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62737
62738         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62739         conforms to C99, rather than relying on the user's environment
62740         setting of STDINT_H.
62741
62742 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62743         and Eric Blake  <ebb9@byu.net>
62744
62745         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62746         This is more consistent with the other defines here.
62747         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62748         Port to z/OS.  Problem reported by Paul Gilmartin.
62749         Change local vars to use gl_ prefix rather than ac_.
62750         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62751         with other defines.
62752         * modules/double-slash-root: New module.
62753         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62754         (Depends-on): Add double-slash-root.
62755         * MODULES.html.sh (File system functions): Mention new module.
62756
62757 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62760         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62761         This is for the benefit of gzip, which doesn't do i18n.
62762
62763 2006-12-12  Jim Meyering  <jim@meyering.net>
62764
62765         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62766         Reported by Andreas Schwab <schwab@suse.de>.
62767
62768 2006-12-12  Bruno Haible  <bruno@clisp.org>
62769
62770         Merge these changes.
62771         2006-09-05  Bruno Haible  <bruno@clisp.org>
62772         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62773         iconv_alloc succeeded.
62774         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62775         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62776         test for " && dest " at the end - dest is always != NULL there. Call
62777         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62778         with 2xNULL arguments, also to flush the state storage. Handle the
62779         IRIX iconv behaviour. Realloc the final result, to throw away unused
62780         memory.
62781
62782 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62785         and fchmodat unconditionally, since glibc 2.4 has them.
62786         Problem reported by Arkadiusz Miskiewicz.
62787
62788 2006-12-10  Bruno Haible  <bruno@clisp.org>
62789
62790         * gnulib-tool (func_import): Show the include files only for those
62791         modules that are copied and specified.
62792         Reported by Karl Berry.
62793
62794 2006-12-08  Jim Meyering  <jim@meyering.net>
62795
62796         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62797         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62798
62799         * build-aux/announce-gen: Add two new options, both optional:
62800         --bootstrap-tools=TOOL_LIST
62801               a comma-separated list of tools, e.g.,
62802               autoconf,automake,bison,gnulib
62803         --gnulib-snapshot-date=DATE
62804               if gnulib is in the bootstrap tool list,
62805               then report this as the snapshot date.
62806               If not specified, use the current date/time.
62807               If you specify a date here, be sure it's UTC.
62808
62809 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62810
62811         * tests/test-argp-2.sh: Fix test to match actual output.
62812         (func_compare): Fix sed script to be portable.
62813
62814 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62815
62816         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62817         workaround for this case.  It is not autoconfigured now; offhand
62818         it's hard to see how to autoconfigure it.
62819
62820 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62821
62822         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62823         a directory that is about to be chowned.  Such a directory's
62824         initial file permissions should permit the owner only and this
62825         should not be changed until after the chown, since the group and
62826         other bits would be incorrect if they granted permission before
62827         the chown.
62828
62829         Fix porting problem for iswctype reported by Georg Schwarz in:
62830         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62831         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62832         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62833         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62834         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62835
62836 2006-12-03  Jim Meyering  <jim@meyering.net>
62837
62838         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62839         p->fts_statp may not yet be defined.
62840         (fts_read): Instead, set it in the caller, once p->fts_statp is
62841         sure to be defined, and corresponds to a top-level directory.
62842         This bug made du -x fail.  Here's the coreutils test case:
62843         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62844         Reported by Mike Frysinger.
62845
62846 2006-12-01  Jim Meyering  <jim@meyering.net>
62847
62848         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62849         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62850         Reported by Simon Josefsson.
62851
62852 2006-11-30  Jim Meyering  <jim@meyering.net>
62853
62854         * m4/warning.m4: Use the all-permissive copyright notice
62855         recommended by RMS (rather than LGPL).
62856         * m4/vararrays.m4: Likewise.
62857         * m4/flexmember.m4: Likewise.
62858
62859 2006-11-29  Bruno Haible  <bruno@clisp.org>
62860
62861         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62862         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62863         using +=.
62864         Reported by Simon Josefsson <simon@josefsson.org>.
62865
62866 2006-11-28  James Youngman <jay@gnu.org>
62867
62868         * README: Advise users that they might find the bug-gnulib@gnu.org
62869         and autotools-announce@gnu.org mailing lists useful.
62870
62871 2006-11-28  Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/ptrdiff_max.m4: Remove file.
62874
62875 2006-11-21  Bruno Haible  <bruno@clisp.org>
62876
62877         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62878         _AC_COMPUTE_INT.
62879         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62880         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62881         _AC_COMPUTE_INT.
62882         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62883         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62884         _AC_COMPUTE_INT.
62885         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62886
62887 2006-11-28  Jim Meyering  <jim@meyering.net>
62888
62889         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62890         warning from "gcc -Wshadow" about shadowing the builtin.
62891
62892 2006-11-27  Bruno Haible  <bruno@clisp.org>
62893
62894         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62895         _AC_COMPUTE_INT.
62896         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62897
62898 2006-11-27  Bruno Haible  <bruno@clisp.org>
62899             Paul Eggert  <eggert@cs.ucla.edu>
62900
62901         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62902
62903 2006-11-26  Bruno Haible  <bruno@clisp.org>
62904
62905         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62906         noinst_LTLIBRARIES.
62907
62908 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62909             Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62912         if compiling with "gcc -ansi".
62913
62914 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62915
62916         Fix some incompatibilities with gcc -ansi -pedantic.
62917         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62918         if compiling pedantically with GCC, unless it's C99 or later.
62919         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62920         it mishandles gcc -ansi -pedantic as well.
62921         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62922         if gcc -pedantic.
62923         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62924         initializers for struct if -pedantic, unless it's C99 or later.
62925
62926 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62927
62928         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62929         Don't close an fd more than once. Identical atimes indicate
62930         success, not failure.
62931
62932 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62933
62934         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62935
62936 2006-11-23  Jim Meyering  <jim@meyering.net>
62937
62938         * build-aux/announce-gen: New file.  From coreutils.
62939
62940 2006-11-22  Jim Meyering  <jim@meyering.net>
62941
62942         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62943         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62944         (fts_read): Use a temporary to narrow the overused st_size member
62945         before using it in a switch statement.  Reported by Matthew Woehlke.
62946
62947         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62948         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62949
62950 2006-11-20  Bruno Haible  <bruno@clisp.org>
62951
62952         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62953         changequote instead of pairs of brackets.
62954         Reported by Andreas Schwab <schwab@suse.de>.
62955
62956 2006-11-21  Jim Meyering  <jim@meyering.net>
62957
62958         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62959         so as to remain compatible with older compilers.
62960         Patch from Michael Deutschmann.
62961
62962 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62963
62964         * MODULES.html.sh (File system functions): Add openat.
62965
62966         * lib/openat.h (rpl_fstatat): New macro, if
62967         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62968         (fstatat): Define to rpl_fstatat under the same conditions,
62969         unless COMPILING_FSTATAT.
62970         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62971         seems to have the bug.
62972         * lib/fstatat.c: New file.
62973         * modules/openat (Files): Add it.
62974
62975 2006-11-20  Bruno Haible  <bruno@clisp.org>
62976
62977         * Makefile: New file.
62978
62979 2006-11-20  Jim Meyering  <jim@meyering.net>
62980
62981         The beginnings of syntax-related checks for gnulib.
62982         * lib/Makefile: New file.
62983         * lib/t-idcache: New script.  Ensure that the two halves of
62984         idcache.c stay in sync.
62985
62986         * lib/idcache.c: Adjust comments in user- and group- portions to
62987         be more accurate, and to be consistent with one another.
62988
62989 2006-11-20  Jim Meyering  <jim@meyering.net>
62990
62991         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62992         continue using the flexible array member (thus, this module performs
62993         half as many malloc calls), with the addition that...
62994         (getgroup, getuser): Consistently record a non-match via an empty
62995         "name" string, and map an empty string match to a NULL return value.
62996         * modules/idcache (Depends-on): Re-add flexmember.
62997
62998         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62999         (getuidbyname, getgroup, getgidbyname): Likewise.
63000
63001         Use cleaner syntax: NULL rather than 0.
63002         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63003
63004 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63005
63006         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63007         It mishandled the case where the group was missing.
63008         Problem reported by Greg Schafer.
63009         * modules/idcache: Likewise.
63010
63011 2006-11-18  Jim Meyering  <jim@meyering.net>
63012
63013         * check-module (%exempt_header): Add exception for some
63014         conditionally-included headers.
63015
63016         * modules/i-ring (Depends-on): Add verify.
63017         (License): Change to LGPL.
63018
63019 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63020
63021         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63022         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63023         and inttostr.h.  Use snprintf rather than uinttostr, so that
63024         LGPLed code doesn't depend on GPLed.
63025
63026 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63027
63028         * modules/inline (License): Change from GPL to LGPL.
63029
63030 2006-11-17  Jim Meyering  <jim@meyering.net>
63031
63032         * modules/d-type (License): Switch to LGPL.
63033
63034 2006-11-15  Bruno Haible  <bruno@clisp.org>
63035
63036         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63037
63038 2006-11-15  Eric Blake  <ebb9@byu.net>
63039
63040         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63041         the module dependency.
63042
63043 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63044             Bruno Haible  <bruno@clisp.org>
63045
63046         * gnulib-tool (func_create_testdir): Add license consistency check.
63047
63048 2006-11-15  Eric Blake  <ebb9@byu.net>
63049
63050         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63051         random "(cached)" in configure output.
63052
63053 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63054
63055         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63056         test for conforming inttypes.h is both announced and cached.
63057
63058         * MODULES.html.sh (seen_modules, seen_files): New variables.
63059         (func_module): Rewrite to use a few less gnulib-tool and sed
63060         invocations.  Avoid a couple of quadratic algorithms for ...
63061         (missed_modules, missed_files): ... these, with ...
63062         (func_append, func_tmpdir): ... these new functions, from
63063         gnulib-tool.  Analogously, install traps for cleanup.
63064
63065         * tests/test-gc.c (main): Remove unused variables.
63066         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63067
63068 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * modules/inttostr (License): Change to LGPL.
63071
63072 2006-11-14  Eric Blake  <ebb9@byu.net>
63073
63074         * modules/tempname (License): Change to LGPL.
63075
63076 2006-11-14  Eric Blake  <ebb9@byu.net>
63077
63078         * doc/functions.texi (Function Portability): *printf functions on
63079         Cygwin now understand all POSIX size specifiers.
63080
63081 2006-11-14  Bruno Haible  <bruno@clisp.org>
63082
63083         * modules/c-ctype (License): Change to LGPL.
63084
63085 2006-11-12  Bruno Haible  <bruno@clisp.org>
63086
63087         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63088         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63089         for GNOME libraries, for which the include files are installed in
63090         subdirectories of $prefix/include.
63091
63092 2006-11-12  Bruno Haible  <bruno@clisp.org>
63093
63094         * m4/lib-link.m4: Require at least autoconf-2.54.
63095         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63096         name to underscores for the --with option.
63097
63098 2006-11-13  Bruno Haible  <bruno@clisp.org>
63099
63100         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63101         the tests directory.
63102         Reported by Ralf Wildenhues.
63103
63104 2006-11-13  Bruno Haible  <bruno@clisp.org>
63105
63106         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63107         (func_emit_initmacro_end): Undo the override here.
63108         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63109         Works around the famous automake error in coreutils.
63110
63111 2006-11-13  Eric Blake  <ebb9@byu.net>
63112
63113         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63114         element, not its node.
63115
63116 2006-11-12  Bruno Haible  <bruno@clisp.org>
63117
63118         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63119         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63120
63121 2006-11-12  Bruno Haible  <bruno@clisp.org>
63122
63123         * gnulib-tool: New option --local-symlink.
63124         (func_usage): Document it.
63125         (lsymbolic): New variable.
63126         (func_import, func_create_testdir): If --symlink was not specified,
63127         test whether --local-symlink was specified and the file comes from
63128         the local_gnulib_dir.
63129
63130 2006-11-12  Bruno Haible  <bruno@clisp.org>
63131
63132         * gnulib-tool (func_ln): New function.
63133         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63134
63135 2006-11-12  Bruno Haible  <bruno@clisp.org>
63136
63137         Finish support for source files in subdirectories.
63138         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63139         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63140         AUTOMAKE_OPTIONS.
63141         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63142
63143 2006-11-12  Bruno Haible  <bruno@clisp.org>
63144
63145         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63146         EXTRA_lib_SOURCES augmentation.
63147         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63148
63149 2006-11-12  Jim Meyering  <jim@meyering.net>
63150
63151         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63152         file descriptors.  This also averts a failure on systems with
63153         native openat support when a traversed directory lacks "x" access.
63154         * lib/fts_.h: Include "i-ring.h"
63155         (struct FTS) [fts_fd_ring]: New member.
63156         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63157         (FCHDIR): Add parentheses.
63158         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63159         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63160         When descending, rather than simply closing the previous
63161         fts_cwd_fd value, push that file descriptor onto the ring.
63162         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63163         (fts_open): Initialize the new fd_ring member.
63164         (fts_close): Clear the ring.
63165         (fts_safe_changedir): When possible, use our new fd_ring to skip
63166         the diropen and fstat and dev/ino comparison that would normally
63167         accompany a virtual `chdir ("..")'.
63168
63169         * modules/fts (Depends-on): Add i-ring.
63170         * modules/i-ring: New module.
63171         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63172         * m4/i-ring.m4: New file.
63173
63174 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63175
63176         * gnulib-tool (func_create_testdir): Fix replacement of
63177         `build-aux' in configure.ac.  Run autotools in gltests
63178         subdirectory.
63179         (func_create_testdir, func_create_megatestdir, test): There is
63180         no need for '--force' in most autotool invocations in a new
63181         tree.  Actually fail the whole test if any of the tools, or the
63182         configure or make stages fail.
63183
63184         Sync from Automake.
63185         * build-aux/gnupload: Revert last change.  Add pointer to upload
63186         instructions of the GNU Maintenance Instructions.
63187         Suggestion by Karl Berry.
63188
63189 2006-11-10  Jim Meyering  <jim@meyering.net>
63190
63191         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63192
63193 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63196         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63197         (bind_textdomain_codeset) [! ENABLE_NLS]:
63198         Evaluate all the arguments.  That way, callers get compatible behavior
63199         if the arguments have side effects.  Also, it avoids some GCC
63200         diagnostics in some cases; Joel E. Denny reported problems when Bison
63201         was configured with --enable-gcc-warnigs.
63202
63203 2006-11-10  Jim Meyering  <jim@meyering.net>
63204
63205         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63206         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63207         account.
63208
63209 2006-11-10  Jim Meyering  <jim@meyering.net>
63210
63211         * modules/inline: New file/module.
63212         * modules/xalloc (Files): Remove m4/inline.m4.
63213         (Depends-on): Add inline, instead.
63214         * modules/oset: Likewise.
63215         * modules/list: Likewise.
63216
63217 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63218
63219         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63220         Problem reported by Matthew Woehlke.
63221
63222 2006-11-09  Bruno Haible  <bruno@clisp.org>
63223
63224         * lib/tempname.c (gen_tempname): Remove variant that invokes
63225         __gen_tempname.
63226         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63227         __gen_tempname.
63228
63229 2006-11-08  Bruno Haible  <bruno@clisp.org>
63230
63231         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63232         to 'yes' instead of 'cross-compiling'.
63233
63234 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         * lib/quotearg.h (quotearg_free): New decl.
63237         * lib/quotearg.c (quotearg_free): New function.
63238         (slot0, nslots, slotvec0, slotvec):
63239         Now file-scope so that quotearg_free can get at them.
63240
63241 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63242
63243         Sync from Automake.
63244         * build-aux/gnupload: Add missing 'gnu' to example URL.
63245         Report by Karl Berry.
63246
63247 2006-11-08  Bruno Haible  <bruno@clisp.org>
63248
63249         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63250         Suggested by Paul Eggert.
63251
63252 2006-11-08  Jim Meyering  <jim@meyering.net>
63253
63254         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63255         It's already included if !_LIBC.
63256         (fts_safe_changedir): Add a comment.
63257
63258 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63261         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63262         Matthew Woehlke.
63263
63264         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63265         definitions up, to avoid colliding with change below.
63266         (static_inline) [HAVE_INLINE]: New macro.
63267         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63268         Provide extern decls when !HAVE_INLINE.  Do not define unless
63269         static_inline is defined, either by us or by xmalloc.c.  Use
63270         static_inline rather than static inline.
63271         (XCALLOC): Optimize sizeof(T) = 1 case.
63272         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63273
63274 2006-11-07  Bruno Haible  <bruno@clisp.org>
63275
63276         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63277         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63278         AC_C_INLINE.
63279         * modules/xalloc (Files): Add m4/inline.m4.
63280
63281 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63282
63283         * README: Fix typo.
63284         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63285         (Miscellanous Notes): ...from this.
63286
63287 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63288
63289         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63290         Mention that offsetof should be used instead of sizeof.
63291         From Bruno Haible.
63292
63293 2006-11-07  Bruno Haible  <bruno@clisp.org>
63294
63295         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63296
63297 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63298
63299         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63300         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63301         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63302         (gl_tree_add_before, gl_tree_add_after):
63303         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63304         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63305         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63306         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63307         (gl_linked_add_after, gl_linked_add_at): Likewise.
63308         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63309         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63310         (gl_tree_add_before, gl_tree_add_after): Likewise.
63311         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63312         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63313         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63314
63315 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63316
63317         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63318
63319 2006-11-06  Bruno Haible  <bruno@clisp.org>
63320
63321         * m4/inline.m4: New file.
63322         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63323         * modules/list (Files): Add m4/inline.m4.
63324         * modules/oset (Files): Likewise.
63325
63326 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         * lib/idcache.c: Include <stddef.h>, for offsetof.
63329         (struct userid.name): Change from char * to a flexible array member.
63330         All uses changed.
63331         * modules/idcache (Depends-on): Add flexmember.
63332
63333         * MODULES.html.sh (Core language properties): New module flexmember.
63334         * modules/flexmember, m4/flexmember.m4: New files.
63335
63336         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63337         inline functions that are identical with the old xnmalloc_inline,
63338         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63339         that we can avoid some unnecessary integer multiplications and
63340         divisions in the common case where the element size is known at
63341         compile time.
63342         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63343         needed.
63344         (xnboundedmalloc): Remove.
63345         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63346         arguments, for consistency with rest of this header.
63347         (xcharalloc): Rewrite using XNMALLOC.
63348         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63349         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63350         versions have been moved to lib/xalloc.h and renamed to be the
63351         non-*_inline versions.
63352         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63353         and xnrealloc functions, since those functions are now inline and
63354         now call us.
63355         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63356         renaming described above.
63357         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63358         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63359         captures the dependency in AC_C_INLINE.
63360
63361         New module canonicalize-lgpl, proposed by Charles Wilson in
63362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63363         with a few small changes afterwards.
63364         * MODULES.html.sh (File system functions): New module
63365         canonicalize-lgpl.
63366         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63367         and canonicalize_file_name.
63368         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63369         * modules/canonicalize-lgpl: New files.
63370
63371 2006-11-05  Bruno Haible  <bruno@clisp.org>
63372
63373         * gnulib-tool (func_import, func_create_testdir): Create directories
63374         also for files in subdirectories of lib/.
63375
63376 2006-11-05  Bruno Haible  <bruno@clisp.org>
63377
63378         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63379         ANSI C compliant.
63380
63381 2006-11-03  Bruno Haible  <bruno@clisp.org>
63382
63383         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63384         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63385         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63386         (xnboundedmalloc): New inline function.
63387         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63388         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63389         xmalloc.
63390         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63391         xmalloc.
63392         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63393         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63394         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63395         xmalloc.
63396         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63397         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63398         xmalloc.
63399         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63400         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63401         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63402         xmalloc.
63403         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63404         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63405         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63406         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63407         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63408         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63409         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63410
63411 2006-11-03  Bruno Haible  <bruno@clisp.org>
63412
63413         * lib/c-ctype.h [C++]: Define functions without name mangling.
63414         * lib/fwriteerror.h [C++]: Likewise.
63415         * lib/gcd.h [C++]: Likewise.
63416         * lib/linebreak.h [C++]: Likewise.
63417
63418 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63421         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63422         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63423         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63424         Check for functions and headers just once.
63425         Check for declaration of canonicalize_file_name.
63426         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63427
63428 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63429
63430         * gnulib-tool (func_import): Fix typo in actioncmd.
63431
63432 2006-11-02  Bruno Haible  <bruno@clisp.org>
63433
63434         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63435         newline sequence in the Makefile.am snippet as a space, like "make"
63436         does.
63437         Reported by Roger Persson <perrog@gmail.com>.
63438
63439 2006-11-01  Bruno Haible  <bruno@clisp.org>
63440
63441         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63442         already declared in <string.h>.
63443         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63444
63445 2006-11-01  Bruno Haible  <bruno@clisp.org>
63446
63447         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63448         * lib/strcase.h: Include <string.h>.
63449         (strcasecmp): Define to rpl_strcasecmp here.
63450
63451 2006-11-01  Bruno Haible  <bruno@clisp.org>
63452
63453         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63454
63455 2006-11-01  Eric Blake  <ebb9@byu.net>
63456
63457         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63458
63459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63460
63461 2006-10-29  Bruno Haible  <bruno@clisp.org>
63462
63463         Make it compile in C++ mode.
63464         * lib/full-write.c (full_rw): Add a cast.
63465
63466 2006-11-01  Bruno Haible  <bruno@clisp.org>
63467
63468         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63469         be POSIX compliant.
63470         Reported by Roger Persson <perrog@gmail.com>.
63471
63472 2006-11-01  Eric Blake  <ebb9@byu.net>
63473
63474         * lib/getopt_.h: Fix comments.
63475
63476 2006-10-31  Eric Blake  <ebb9@byu.net>
63477
63478         * modules/tmpdir (Depends-on): Add sys_stat.
63479         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63480         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63481         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63482         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63483         tempname.
63484
63485 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63486
63487         Avoid some C++ diagnostics reported by Bruno Haible.
63488         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63489         xmalloc.
63490         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63491         (struct slotvec): Move to top level.
63492         (quotearg_n_options): Rewrite to avoid xmalloc.
63493         * lib/xalloc.h (xcharalloc): New function.
63494         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63495         [defined __cplusplus]: Add function template that provides result
63496         type propagation.  This part of the change is from Bruno Haible.
63497
63498 2006-10-29  Bruno Haible  <bruno@clisp.org>
63499
63500         Make it compile in C++ mode.
63501         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63502         * lib/strnlen1.c (strnlen1): Cast memchr result.
63503         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63504         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63505         (create_temp_dir): Rename local variable 'template'.
63506         (compile_csharp_using_sscli): Add cast.
63507         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63508         * lib/findprog.c (find_in_path): Likewise.
63509         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63510         * lib/wait-process.c (register_slave_subprocess): Likewise.
63511
63512 2006-10-22  Bruno Haible  <bruno@clisp.org>
63513
63514         * modules/tsearch: New file.
63515         * lib/tsearch.h: New file.
63516         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63517         * m4/tsearch.m4: New file.
63518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63519
63520 2006-10-29  Eric Blake  <ebb9@byu.net>
63521
63522         * lib/arcfour.c: Assume config.h.
63523         * lib/arctwo.c: Likewise.
63524         * lib/base64.c: Likewise.
63525         * lib/check-version.c: Likewise.
63526         * lib/crc.c: Likewise.
63527         * lib/des.c: Likewise.
63528         * lib/gc-gnulib.c: Likewise.
63529         * lib/gc-libgcrypt.c: Likewise.
63530         * lib/gc-pbkdf2-sha1.c: Likewise.
63531         * lib/getaddrinfo.c: Likewise.
63532         * lib/getdelim.c: Likewise.
63533         * lib/getline.c: Likewise.
63534         * lib/hmac-md5.c: Likewise.
63535         * lib/hmac-sha1.c: Likewise.
63536         * lib/iconvme.c: Likewise.
63537         * lib/md2.c: Likewise.
63538         * lib/md4.c: Likewise.
63539         * lib/memxor.c: Likewise.
63540         * lib/read-file.c: Likewise.
63541         * lib/readline.c: Likewise.
63542         * lib/rijndael-alg-fst.c: Likewise.
63543         * lib/rijndael-api-fst.c: Likewise.
63544         * lib/xgetdomainname.c: Likewise.
63545
63546 2006-10-28  Eric Blake  <ebb9@byu.net>
63547
63548         * lib/xstrndup.c: Assume config.h.
63549
63550 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63551
63552         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63553         stat-macros.h is now for our own macros, whereas stat_h is for
63554         macros in the <sys/stat.h> name space.
63555         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63556         (STAT_MACROS_H): Remove.
63557         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63558         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63559         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63560         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63561         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63562         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63563         Move these macros to ...
63564         * lib/stat_.h: here.  Don't include stat-macros.h.
63565         * lib/canonicalize.c: Don't include stat-macros.h.
63566         * lib/chown.c: Likewise.
63567         * lib/euidaccess.c: Likewise.
63568         * lib/file-type.c: Likewise.
63569         * lib/filemode.c: Likewise.
63570         * lib/glob.c: Likewise.
63571         * lib/isapipe.c: Likewise.
63572         * lib/lchown.c: Likewise.
63573         * lib/lstat.c: Likewise.
63574         * lib/mkdir-p.c: Likewise.
63575         * lib/rmdir.c: Likewise.
63576         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63578         unless mkdir isn't declared, to speed up 'configure'.
63579         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63580         would define all the S_* symbols.
63581         * modules/canonicalize (Depends-on):
63582         Depend on sys_stat, not stat-macros.
63583         * modules/chown: Likewise.
63584         * modules/euidaccess: Likewise.
63585         * modules/filemode: Likewise.
63586         * modules/file-type: Likewise.
63587         * modules/glob: Likewise.
63588         * modules/isapipe: Likewise.
63589         * modules/lchown: Likewise.
63590         * modules/lstat: Likewise.
63591         * modules/mkancesdirs: Likewise.
63592         * modules/rmdir: Likewise.
63593         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63594         * modules/modechange: Likewise.
63595         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63596         (configure.ac): Remove gl_STAT_MACROS.
63597         * modules/sys_stat (Depends-on): Remove stat-macros.
63598
63599 2006-10-27  Bruno Haible  <bruno@clisp.org>
63600
63601         * m4/signed.m4: Remove file.
63602         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63603         invocation.
63604         * modules/vasnprintf (Files): Remove m4/signed.m4.
63605
63606 2006-10-27  Bruno Haible  <bruno@clisp.org>
63607
63608         Update to GNU gettext 0.16.
63609         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63610         m4/inttypes-h.m4, m4/signed.m4.
63611         * m4/gettext.m4: Update to GNU gettext 0.16.
63612         * m4/intl.m4: New file, from GNU gettext.
63613         * m4/intldir.m4: New file, from GNU gettext.
63614         * config/srclist.txt: Update
63615
63616 2006-10-27  Eric Blake  <ebb9@byu.net>
63617
63618         * MODULES.html.sh: Document tempname.
63619         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63620         dependencies.
63621         (Files): Move lib/tempname.c...
63622         * modules/tempname: ...to this new module.
63623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63624         (gl_PREREQ_TEMPNAME): Move...
63625         * m4/tempname.m4: ...to this new file.
63626         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63627         * modules/sys_stat (Depends-on): Add stat-macros.
63628         * lib/stat_.h (includes): Pick up stat macros.
63629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63630         if stat macros are broken.
63631         * lib/tempname.c (includes): No need to include "stat-macros.h".
63632         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63633         (direxists, __path_search) [!_LIBC]: Don't compile these in
63634         gnulib; the tmpdir module covers that.
63635         * lib/tempname.h: New file.
63636
63637 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63638
63639         * COPYING: Explain how gnulib-tool converts licence headers.
63640         Almost all wording by Eric Blake.
63641
63642 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63643
63644         * lib/mbchar.h (is_basic_table): Make read-only.
63645         * lib/mbchar.c (is_basic_table): Likewise.
63646         Reported by John Darrington.
63647
63648 2006-10-25  Bruno Haible  <bruno@clisp.org>
63649
63650         * lib/progname.h (set_program_name): Undefine before defining.
63651
63652 2006-10-25  Bruno Haible  <bruno@clisp.org>
63653
63654         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63655         false for non-gcc C++ compilers.
63656         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63657
63658 2006-10-24  Bruno Haible  <bruno@clisp.org>
63659
63660         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63661         iconv implementations like Irix iconv.
63662
63663 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         * modules/vararrays: New file.
63666         * m4/vararrays.m4: New file, taken from diffutils.
63667         * MODULES.html.sh: New module vararrays.
63668
63669 2006-10-24  Karl Berry  <karl@gnu.org>
63670
63671         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63672         Don't call GNU Unix.
63673
63674 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63675
63676         * users.txt: Add Libtool.
63677
63678         Sync from Libtool:
63679
63680         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63681
63682         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63683         to gnulib's policy of including config.h unconditionally.
63684
63685 2006-10-24  Bruno Haible  <bruno@clisp.org>
63686
63687         * modules/wcwidth (Files): Add m4/wint_t.m4.
63688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63689         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63690
63691 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63692
63693         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63694         to pacify GCC with some -W flags enabled.  Problem reported by
63695         Bruno Haible.
63696
63697 2006-10-24  Jim Meyering  <jim@meyering.net>
63698
63699         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63700         Reported by Karl Berry.
63701
63702 2006-10-23  Bruno Haible  <bruno@clisp.org>
63703
63704         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63705
63706 2006-10-24  Bruno Haible  <bruno@clisp.org>
63707
63708         * lib/gl_list.h: Use C comment style, not C++ comment style.
63709
63710 2006-10-23  Eric Blake  <ebb9@byu.net>
63711
63712         * lib/getaddrinfo.c (includes): Add missing include.
63713
63714 2006-10-23  Bruno Haible  <bruno@clisp.org>
63715             Paul Eggert  <eggert@cs.ucla.edu>
63716
63717         Ability to rename obstack_free.
63718         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63719         obstack_free.
63720         (obstack_free): Invoke the __obstack_free macro.
63721         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63722
63723 2006-10-23  Bruno Haible  <bruno@clisp.org>
63724             Paul Eggert  <eggert@cs.ucla.edu>
63725
63726         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63727         __argc, __argv from the declaration. (They are defined as macros on
63728         mingw.)
63729
63730 2006-10-22  Bruno Haible  <bruno@clisp.org>
63731
63732         * doc/gnulib-intro.texi: New file.
63733         * doc/gnulib.texi: Include it.
63734
63735 2006-10-21  Bruno Haible  <bruno@clisp.org>
63736
63737         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63738         "Introduction", "Miscellanous Notes", "Particular Modules".
63739
63740 2006-10-21  Bruno Haible  <bruno@clisp.org>
63741
63742         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63743         Change mostlyclean-local rule to avoid sh syntax error from bash
63744         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63745
63746 2006-10-23  Jim Meyering  <jim@meyering.net>
63747
63748         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63749         in place of snprintf.
63750
63751         * modules/inttostr (Files): Add lib/uinttostr.c.
63752         * lib/uinttostr.c (inttostr): New file/function.
63753         * lib/inttostr.h (uinttostr): Declare.
63754         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63755         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63756         Add uinttostr.
63757         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63758
63759 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63760
63761         * lib/canonicalize.c (ELOOP): Define if not already defined.
63762         Problem reported by Bruno Haible in
63763         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63764
63765 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63766
63767         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63768         Problem reported by Perry Smith and Ville Laurikari.
63769
63770         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63771         uses.
63772
63773 2006-10-19  Bruno Haible  <bruno@clisp.org>
63774
63775         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63776         for mingw.
63777
63778 2006-10-19  Bruno Haible  <bruno@clisp.org>
63779
63780         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63781         Needed for mingw.
63782
63783 2006-10-19  Bruno Haible  <bruno@clisp.org>
63784
63785         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63786
63787 2006-10-19  Bruno Haible  <bruno@clisp.org>
63788
63789         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63790         it.
63791
63792 2006-10-19  Bruno Haible  <bruno@clisp.org>
63793
63794         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63795         invocation.
63796
63797 2006-10-19  Bruno Haible  <bruno@clisp.org>
63798
63799         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63800         mountlist by default.
63801
63802 2006-10-16  Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/c-strstr.c: Include c-strstr.h.
63805
63806 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63807
63808         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63809         in a slash.
63810
63811 2006-10-18  Bruno Haible  <bruno@clisp.org>
63812
63813         * lib/lock.h [C++]: Wrap definitions in extern "C".
63814
63815 2006-10-18  Bruno Haible  <bruno@clisp.org>
63816
63817         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63818         gl_LIBOBJS list.
63819
63820 2006-10-18  Bruno Haible  <bruno@clisp.org>
63821
63822         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63823
63824 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63825
63826         * lib/xstrtol.h: Include gettext.h.
63827         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63828         Problem reported by Eric Blake.
63829         * modules/xstrtol (Depends-on): Add gettext-h.
63830
63831 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63832
63833         * lib/strftime.c (advance): New macro.
63834         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63835         incomplete type, so you can't add 0 to it.  Problem and patch
63836         reported by Eelco Dolstra for dietlibc.
63837
63838 2006-10-18  Jim Meyering  <jim@meyering.net>
63839
63840         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63841         type for a local, and rename it: s/up/user_proc/.
63842
63843 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63844
63845         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63846         READ_UTMP_USER_PROCESS.
63847         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63848
63849 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63850
63851         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63852         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63853
63854 2006-10-17  Eric Blake  <ebb9@byu.net>
63855
63856         * lib/sigprocmask.c (sigprocmask): Fix typo.
63857
63858         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63859
63860         * modules/clean-temp (Makefile.am): Don't add to make output...
63861         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63862         config.h.
63863
63864 2006-10-17  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63867         differently if DEFAULT_TEXT_DOMAIN is set.
63868
63869 2006-10-16  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/clean-temp.c: Include fwriteerror.h.
63872
63873 2006-10-16  Bruno Haible  <bruno@clisp.org>
63874
63875         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63876
63877 2006-10-16  Bruno Haible  <bruno@clisp.org>
63878
63879         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63880         * lib/sigprocmask.h: Include <sys/types.h>.
63881         (sigset_t): Use the system's definition if present.
63882
63883 2006-10-17  Eric Blake  <ebb9@byu.net>
63884
63885         * lib/xvasprintf.c (includes): Assume config.h.
63886         * lib/xasprintf.c (includes): Likewise.
63887
63888 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63889
63890         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63891         at least as wide as intmax_t.
63892
63893 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63894
63895         (Imported from Automake.)
63896         * build-aux/gnupload: Update to version 1.1 of directive file.
63897
63898 2006-10-16  Eric Blake  <ebb9@byu.net>
63899
63900         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63901         match Automake 1.10a.
63902
63903 2006-10-14  Bruno Haible  <bruno@clisp.org>
63904
63905         * modules/sigprocmask: New file.
63906         * lib/sigprocmask.h: New file.
63907         * lib/sigprocmask.c: New file.
63908         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63909         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63910         request sigprocmask.o.
63911         (gl_PREREQ_SIGPROCMASK): New macro.
63912         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63913         (Depends-on): Add sigprocmask.
63914         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63915         gt_SIGNALBLOCKING. Test for 'raise' only once.
63916         * lib/fatal-signal.c: Include sigprocmask.h.
63917         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63918         unblock_fatal_signals): Define always.
63919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63920         sigprocmask.
63921
63922 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63923
63924         Sync from Automake.
63925         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63926         which incorrectly sets the mode of an existing destination
63927         directory.  In some cases the unpatched install-sh could do the
63928         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63929         system.  We hope this is rare in practice, but it's clearly worth
63930         fixing.  Problem reported by Alex Unleashed in
63931         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63932         Also, don't bother to check for -m bugs unless we're using -m;
63933         suggested by Stepan Kasal.
63934
63935 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63936
63937         Sync from Automake.
63938         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63939         `-c' flag, so they appear at the same position as in %FASTDEP%
63940         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63941         which ignores unknown options only after the first non-option.
63942         Bug report against M4 by Nelson H. F. Beebe.
63943
63944 2006-10-13  Jim Meyering  <jim@meyering.net>
63945
63946         Fix a bug in yesterday's change.
63947         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63948         p->fts_statp->st_dev would be used uninitialized.
63949         Ensures that we always call fts_stat on the very first entry.
63950         Miklos Szeredi reported that find -xdev stopped working.
63951
63952 2006-10-12  Bruno Haible  <bruno@clisp.org>
63953
63954         * gnulib-tool (func_get_automake_snippet): Append an automatically
63955         computed EXTRA_DIST augmentation.
63956         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63957         * modules/alloca-opt (Makefile.am): Likewise.
63958         * modules/allocsa (Makefile.am): Likewise.
63959         * modules/arcfour (Makefile.am): Likewise.
63960         * modules/arctwo (Makefile.am): Likewise.
63961         * modules/argmatch (Makefile.am): Likewise.
63962         * modules/argz (Makefile.am): Likewise.
63963         * modules/atexit (Makefile.am): Likewise.
63964         * modules/backupfile (Makefile.am): Likewise.
63965         * modules/byteswap (Makefile.am): Likewise.
63966         * modules/c-strtod (Makefile.am): Likewise.
63967         * modules/c-strtold (Makefile.am): Likewise.
63968         * modules/calloc (Makefile.am): Likewise.
63969         * modules/canon-host (Makefile.am): Likewise.
63970         * modules/canonicalize (Makefile.am): Likewise.
63971         * modules/chdir-long (Makefile.am): Likewise.
63972         * modules/chdir-safer (Makefile.am): Likewise.
63973         * modules/check-version (Makefile.am): Likewise.
63974         * modules/chown (Makefile.am): Likewise.
63975         * modules/cloexec (Makefile.am): Likewise.
63976         * modules/close-stream (Makefile.am): Likewise.
63977         * modules/closeout (Makefile.am): Likewise.
63978         * modules/crc (Makefile.am): Likewise.
63979         * modules/csharpexec (Makefile.am): Likewise.
63980         * modules/cycle-check (Makefile.am): Likewise.
63981         * modules/des (Makefile.am): Likewise.
63982         * modules/dev-ino (Makefile.am): Likewise.
63983         * modules/dirfd (Makefile.am): Likewise.
63984         * modules/dirname (Makefile.am): Likewise.
63985         * modules/dup2 (Makefile.am): Likewise.
63986         * modules/eealloc (Makefile.am): Likewise.
63987         * modules/error (Makefile.am): Likewise.
63988         * modules/euidaccess (Makefile.am): Likewise.
63989         * modules/exclude (Makefile.am): Likewise.
63990         * modules/exitfail (Makefile.am): Likewise.
63991         * modules/fcntl-safer (Makefile.am): Likewise.
63992         * modules/fcntl (Makefile.am): Likewise.
63993         * modules/file-type (Makefile.am): Likewise.
63994         * modules/fileblocks (Makefile.am): Likewise.
63995         * modules/filemode (Makefile.am): Likewise.
63996         * modules/filenamecat (Makefile.am): Likewise.
63997         * modules/fnmatch (Makefile.am): Likewise.
63998         * modules/fopen-safer (Makefile.am): Likewise.
63999         * modules/fpending (Makefile.am): Likewise.
64000         * modules/fprintftime (Makefile.am): Likewise.
64001         * modules/free (Makefile.am): Likewise.
64002         * modules/fsusage (Makefile.am): Likewise.
64003         * modules/ftruncate (Makefile.am): Likewise.
64004         * modules/fts (Makefile.am): Likewise.
64005         * modules/gc-arcfour (Makefile.am): Likewise.
64006         * modules/gc-des (Makefile.am): Likewise.
64007         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64008         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64009         * modules/gc-md4 (Makefile.am): Likewise.
64010         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64011         * modules/gc-sha1 (Makefile.am): Likewise.
64012         * modules/gc (Makefile.am): Likewise.
64013         * modules/getaddrinfo (Makefile.am): Likewise.
64014         * modules/getcwd (Makefile.am): Likewise.
64015         * modules/getdelim (Makefile.am): Likewise.
64016         * modules/getdomainname (Makefile.am): Likewise.
64017         * modules/getgroups (Makefile.am): Likewise.
64018         * modules/gethostname (Makefile.am): Likewise.
64019         * modules/gethrxtime (Makefile.am): Likewise.
64020         * modules/getline (Makefile.am): Likewise.
64021         * modules/getloadavg (Makefile.am): Likewise.
64022         * modules/getlogin_r (Makefile.am): Likewise.
64023         * modules/getndelim2 (Makefile.am): Likewise.
64024         * modules/getopt (Makefile.am): Likewise.
64025         * modules/getpagesize (Makefile.am): Likewise.
64026         * modules/getpass-gnu (Makefile.am): Likewise.
64027         * modules/getpass (Makefile.am): Likewise.
64028         * modules/getsubopt (Makefile.am): Likewise.
64029         * modules/gettime (Makefile.am): Likewise.
64030         * modules/gettimeofday (Makefile.am): Likewise.
64031         * modules/getugroups (Makefile.am): Likewise.
64032         * modules/getusershell (Makefile.am): Likewise.
64033         * modules/glob (Makefile.am): Likewise.
64034         * modules/group-member (Makefile.am): Likewise.
64035         * modules/hard-locale (Makefile.am): Likewise.
64036         * modules/hash (Makefile.am): Likewise.
64037         * modules/hmac-md5 (Makefile.am): Likewise.
64038         * modules/hmac-sha1 (Makefile.am): Likewise.
64039         * modules/human (Makefile.am): Likewise.
64040         * modules/idcache (Makefile.am): Likewise.
64041         * modules/imaxabs (Makefile.am): Likewise.
64042         * modules/imaxdiv (Makefile.am): Likewise.
64043         * modules/inet_ntop (Makefile.am): Likewise.
64044         * modules/inet_pton (Makefile.am): Likewise.
64045         * modules/intprops (Makefile.am): Likewise.
64046         * modules/inttostr (Makefile.am): Likewise.
64047         * modules/inttypes (Makefile.am): Likewise.
64048         * modules/isapipe (Makefile.am): Likewise.
64049         * modules/javaversion (Makefile.am): Likewise.
64050         * modules/lchmod (Makefile.am): Likewise.
64051         * modules/lchown (Makefile.am): Likewise.
64052         * modules/localcharset (Makefile.am): Likewise.
64053         * modules/long-options (Makefile.am): Likewise.
64054         * modules/lstat (Makefile.am): Likewise.
64055         * modules/malloc (Makefile.am): Likewise.
64056         * modules/mathl (Makefile.am): Likewise.
64057         * modules/mbchar (Makefile.am): Likewise.
64058         * modules/md2 (Makefile.am): Likewise.
64059         * modules/md4 (Makefile.am): Likewise.
64060         * modules/md5 (Makefile.am): Likewise.
64061         * modules/memcasecmp (Makefile.am): Likewise.
64062         * modules/memchr (Makefile.am): Likewise.
64063         * modules/memcmp (Makefile.am): Likewise.
64064         * modules/memcoll (Makefile.am): Likewise.
64065         * modules/memcpy (Makefile.am): Likewise.
64066         * modules/memmem (Makefile.am): Likewise.
64067         * modules/memmove (Makefile.am): Likewise.
64068         * modules/mempcpy (Makefile.am): Likewise.
64069         * modules/memrchr (Makefile.am): Likewise.
64070         * modules/memset (Makefile.am): Likewise.
64071         * modules/memxor (Makefile.am): Likewise.
64072         * modules/mkancesdirs (Makefile.am): Likewise.
64073         * modules/mkdir-p (Makefile.am): Likewise.
64074         * modules/mkdir (Makefile.am): Likewise.
64075         * modules/mkdtemp (Makefile.am): Likewise.
64076         * modules/mkstemp (Makefile.am): Likewise.
64077         * modules/mktime (Makefile.am): Likewise.
64078         * modules/modechange (Makefile.am): Likewise.
64079         * modules/mountlist (Makefile.am): Likewise.
64080         * modules/nanosleep (Makefile.am): Likewise.
64081         * modules/obstack (Makefile.am): Likewise.
64082         * modules/openat (Makefile.am): Likewise.
64083         * modules/pagealign_alloc (Makefile.am): Likewise.
64084         * modules/pathmax (Makefile.am): Likewise.
64085         * modules/physmem (Makefile.am): Likewise.
64086         * modules/poll (Makefile.am): Likewise.
64087         * modules/posixtm (Makefile.am): Likewise.
64088         * modules/posixver (Makefile.am): Likewise.
64089         * modules/putenv (Makefile.am): Likewise.
64090         * modules/quote (Makefile.am): Likewise.
64091         * modules/quotearg (Makefile.am): Likewise.
64092         * modules/raise (Makefile.am): Likewise.
64093         * modules/read-file (Makefile.am): Likewise.
64094         * modules/readline (Makefile.am): Likewise.
64095         * modules/readlink (Makefile.am): Likewise.
64096         * modules/readtokens (Makefile.am): Likewise.
64097         * modules/readutmp (Makefile.am): Likewise.
64098         * modules/realloc (Makefile.am): Likewise.
64099         * modules/regex (Makefile.am): Likewise.
64100         * modules/rename-dest-slash (Makefile.am): Likewise.
64101         * modules/rename (Makefile.am): Likewise.
64102         * modules/rijndael (Makefile.am): Likewise.
64103         * modules/rmdir (Makefile.am): Likewise.
64104         * modules/rpmatch (Makefile.am): Likewise.
64105         * modules/safe-read (Makefile.am): Likewise.
64106         * modules/safe-write (Makefile.am): Likewise.
64107         * modules/same-inode (Makefile.am): Likewise.
64108         * modules/same (Makefile.am): Likewise.
64109         * modules/save-cwd (Makefile.am): Likewise.
64110         * modules/savedir (Makefile.am): Likewise.
64111         * modules/setenv (Makefile.am): Likewise.
64112         * modules/settime (Makefile.am): Likewise.
64113         * modules/sha1 (Makefile.am): Likewise.
64114         * modules/sig2str (Makefile.am): Likewise.
64115         * modules/snprintf (Makefile.am): Likewise.
64116         * modules/stat-macros (Makefile.am): Likewise.
64117         * modules/stat-time (Makefile.am): Likewise.
64118         * modules/stdbool (Makefile.am): Likewise.
64119         * modules/stdint (Makefile.am): Likewise.
64120         * modules/stdlib-safer (Makefile.am): Likewise.
64121         * modules/stpcpy (Makefile.am): Likewise.
64122         * modules/stpncpy (Makefile.am): Likewise.
64123         * modules/strcase (Makefile.am): Likewise.
64124         * modules/strcasestr (Makefile.am): Likewise.
64125         * modules/strchrnul (Makefile.am): Likewise.
64126         * modules/strcspn (Makefile.am): Likewise.
64127         * modules/strdup (Makefile.am): Likewise.
64128         * modules/strerror (Makefile.am): Likewise.
64129         * modules/strftime (Makefile.am): Likewise.
64130         * modules/strndup (Makefile.am): Likewise.
64131         * modules/strnlen (Makefile.am): Likewise.
64132         * modules/strpbrk (Makefile.am): Likewise.
64133         * modules/strsep (Makefile.am): Likewise.
64134         * modules/strstr (Makefile.am): Likewise.
64135         * modules/strtod (Makefile.am): Likewise.
64136         * modules/strtoimax (Makefile.am): Likewise.
64137         * modules/strtok_r (Makefile.am): Likewise.
64138         * modules/strtol (Makefile.am): Likewise.
64139         * modules/strtoll (Makefile.am): Likewise.
64140         * modules/strtoul (Makefile.am): Likewise.
64141         * modules/strtoull (Makefile.am): Likewise.
64142         * modules/strtoumax (Makefile.am): Likewise.
64143         * modules/strverscmp (Makefile.am): Likewise.
64144         * modules/sys_socket (Makefile.am): Likewise.
64145         * modules/sys_stat (Makefile.am): Likewise.
64146         * modules/sysexits (Makefile.am): Likewise.
64147         * modules/time_r (Makefile.am): Likewise.
64148         * modules/timegm (Makefile.am): Likewise.
64149         * modules/timespec (Makefile.am): Likewise.
64150         * modules/tmpfile-safer (Makefile.am): Likewise.
64151         * modules/trim (Makefile.am): Likewise.
64152         * modules/unistd-safer (Makefile.am): Likewise.
64153         * modules/unlinkdir (Makefile.am): Likewise.
64154         * modules/unlocked-io (Makefile.am): Likewise.
64155         * modules/userspec (Makefile.am): Likewise.
64156         * modules/utime (Makefile.am): Likewise.
64157         * modules/utimecmp (Makefile.am): Likewise.
64158         * modules/utimens (Makefile.am): Likewise.
64159         * modules/vasnprintf (Makefile.am): Likewise.
64160         * modules/vasprintf (Makefile.am): Likewise.
64161         * modules/vsnprintf (Makefile.am): Likewise.
64162         * modules/xalloc (Makefile.am): Likewise.
64163         * modules/xgetcwd (Makefile.am): Likewise.
64164         * modules/xnanosleep (Makefile.am): Likewise.
64165         * modules/xreadlink (Makefile.am): Likewise.
64166         * modules/xstrtod (Makefile.am): Likewise.
64167         * modules/xstrtol (Makefile.am): Likewise.
64168         * modules/xstrtold (Makefile.am): Likewise.
64169         * modules/yesno (Makefile.am): Likewise.
64170         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64171
64172 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * modules/error (Makefile.am): Distribute files through
64175         EXTRA_DIST, not lib_SOURCES.
64176
64177 2006-10-12  Eric Blake  <ebb9@byu.net>
64178
64179         * modules/error (Makefile.am): Distribute files in /lib.
64180         * modules/obstack (Makefile.am): Likewise.
64181
64182 2006-10-12  Bruno Haible  <bruno@clisp.org>
64183
64184         * modules/acl (Makefile.am): Distribute all files in lib/ through
64185         EXTRA_DIST.
64186         * modules/arcfour (Makefile.am): Likewise.
64187         * modules/arctwo (Makefile.am): Likewise.
64188         * modules/argmatch (Makefile.am): Likewise.
64189         * modules/argz (Makefile.am): Likewise.
64190         * modules/atexit (Makefile.am): Likewise.
64191         * modules/backupfile (Makefile.am): Likewise.
64192         * modules/c-strtod (Makefile.am): Likewise.
64193         * modules/c-strtold (Makefile.am): Likewise.
64194         * modules/calloc (Makefile.am): Likewise.
64195         * modules/canon-host (Makefile.am): Likewise.
64196         * modules/canonicalize (Makefile.am): Likewise.
64197         * modules/chdir-long (Makefile.am): Likewise.
64198         * modules/chdir-safer (Makefile.am): Likewise.
64199         * modules/check-version (Makefile.am): Likewise.
64200         * modules/chown (Makefile.am): Likewise.
64201         * modules/cloexec (Makefile.am): Likewise.
64202         * modules/close-stream (Makefile.am): Likewise.
64203         * modules/closeout (Makefile.am): Likewise.
64204         * modules/crc (Makefile.am): Likewise.
64205         * modules/cycle-check (Makefile.am): Likewise.
64206         * modules/des (Makefile.am): Likewise.
64207         * modules/dirfd (Makefile.am): Likewise.
64208         * modules/dirname (Makefile.am): Likewise.
64209         * modules/dup2 (Makefile.am): Likewise.
64210         * modules/euidaccess (Makefile.am): Likewise.
64211         * modules/exclude (Makefile.am): Likewise.
64212         * modules/exitfail (Makefile.am): Likewise.
64213         * modules/fcntl-safer (Makefile.am): Likewise.
64214         * modules/file-type (Makefile.am): Likewise.
64215         * modules/fileblocks (Makefile.am): Likewise.
64216         * modules/filemode (Makefile.am): Likewise.
64217         * modules/filenamecat (Makefile.am): Likewise.
64218         * modules/fnmatch (Makefile.am): Likewise.
64219         * modules/fopen-safer (Makefile.am): Likewise.
64220         * modules/fpending (Makefile.am): Likewise.
64221         * modules/fprintftime (Makefile.am): Likewise.
64222         * modules/free (Makefile.am): Likewise.
64223         * modules/fsusage (Makefile.am): Likewise.
64224         * modules/ftruncate (Makefile.am): Likewise.
64225         * modules/fts (Makefile.am): Likewise.
64226         * modules/gc (Makefile.am): Likewise.
64227         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64228         * modules/getaddrinfo (Makefile.am): Likewise.
64229         * modules/getcwd (Makefile.am): Likewise.
64230         * modules/getdelim (Makefile.am): Likewise.
64231         * modules/getdomainname (Makefile.am): Likewise.
64232         * modules/getgroups (Makefile.am): Likewise.
64233         * modules/gethostname (Makefile.am): Likewise.
64234         * modules/gethrxtime (Makefile.am): Likewise.
64235         * modules/getline (Makefile.am): Likewise.
64236         * modules/getloadavg (Makefile.am): Likewise.
64237         * modules/getlogin_r (Makefile.am): Likewise.
64238         * modules/getopt (Makefile.am): Likewise.
64239         * modules/getpass (Makefile.am): Likewise.
64240         * modules/getpass-gnu (Makefile.am): Likewise.
64241         * modules/getsubopt (Makefile.am): Likewise.
64242         * modules/gettime (Makefile.am): Likewise.
64243         * modules/gettimeofday (Makefile.am): Likewise.
64244         * modules/getugroups (Makefile.am): Likewise.
64245         * modules/getusershell (Makefile.am): Likewise.
64246         * modules/glob (Makefile.am): Likewise.
64247         * modules/group-member (Makefile.am): Likewise.
64248         * modules/hard-locale (Makefile.am): Likewise.
64249         * modules/hash (Makefile.am): Likewise.
64250         * modules/hmac-md5 (Makefile.am): Likewise.
64251         * modules/hmac-sha1 (Makefile.am): Likewise.
64252         * modules/human (Makefile.am): Likewise.
64253         * modules/idcache (Makefile.am): Likewise.
64254         * modules/imaxabs (Makefile.am): Likewise.
64255         * modules/imaxdiv (Makefile.am): Likewise.
64256         * modules/inet_ntop (Makefile.am): Likewise.
64257         * modules/inet_pton (Makefile.am): Likewise.
64258         * modules/inttostr (Makefile.am): Likewise.
64259         * modules/isapipe (Makefile.am): Likewise.
64260         * modules/lchown (Makefile.am): Likewise.
64261         * modules/long-options (Makefile.am): Likewise.
64262         * modules/lstat (Makefile.am): Likewise.
64263         * modules/malloc (Makefile.am): Likewise.
64264         * modules/mathl (Makefile.am): Likewise.
64265         * modules/mbchar (Makefile.am): Likewise.
64266         * modules/md2 (Makefile.am): Likewise.
64267         * modules/md4 (Makefile.am): Likewise.
64268         * modules/md5 (Makefile.am): Likewise.
64269         * modules/memcasecmp (Makefile.am): Likewise.
64270         * modules/memchr (Makefile.am): Likewise.
64271         * modules/memcmp (Makefile.am): Likewise.
64272         * modules/memcoll (Makefile.am): Likewise.
64273         * modules/memcpy (Makefile.am): Likewise.
64274         * modules/memmem (Makefile.am): Likewise.
64275         * modules/memmove (Makefile.am): Likewise.
64276         * modules/mempcpy (Makefile.am): Likewise.
64277         * modules/memrchr (Makefile.am): Likewise.
64278         * modules/memset (Makefile.am): Likewise.
64279         * modules/memxor (Makefile.am): Likewise.
64280         * modules/mkancesdirs (Makefile.am): Likewise.
64281         * modules/mkdir (Makefile.am): Likewise.
64282         * modules/mkdir-p (Makefile.am): Likewise.
64283         * modules/mkdtemp (Makefile.am): Likewise.
64284         * modules/mkstemp (Makefile.am): Likewise.
64285         * modules/mktime (Makefile.am): Likewise.
64286         * modules/modechange (Makefile.am): Likewise.
64287         * modules/mountlist (Makefile.am): Likewise.
64288         * modules/nanosleep (Makefile.am): Likewise.
64289         * modules/openat (Makefile.am): Likewise.
64290         * modules/pagealign_alloc (Makefile.am): Likewise.
64291         * modules/physmem (Makefile.am): Likewise.
64292         * modules/poll (Makefile.am): Likewise.
64293         * modules/posixtm (Makefile.am): Likewise.
64294         * modules/posixver (Makefile.am): Likewise.
64295         * modules/putenv (Makefile.am): Likewise.
64296         * modules/quote (Makefile.am): Likewise.
64297         * modules/quotearg (Makefile.am): Likewise.
64298         * modules/raise (Makefile.am): Likewise.
64299         * modules/read-file (Makefile.am): Likewise.
64300         * modules/readline (Makefile.am): Likewise.
64301         * modules/readlink (Makefile.am): Likewise.
64302         * modules/readtokens (Makefile.am): Likewise.
64303         * modules/readutmp (Makefile.am): Likewise.
64304         * modules/realloc (Makefile.am): Likewise.
64305         * modules/regex (Makefile.am): Likewise.
64306         * modules/rename (Makefile.am): Likewise.
64307         * modules/rename-dest-slash (Makefile.am): Likewise.
64308         * modules/rijndael (Makefile.am): Likewise.
64309         * modules/rmdir (Makefile.am): Likewise.
64310         * modules/rpmatch (Makefile.am): Likewise.
64311         * modules/safe-read (Makefile.am): Likewise.
64312         * modules/safe-write (Makefile.am): Likewise.
64313         * modules/same (Makefile.am): Likewise.
64314         * modules/save-cwd (Makefile.am): Likewise.
64315         * modules/savedir (Makefile.am): Likewise.
64316         * modules/setenv (Makefile.am): Likewise.
64317         * modules/settime (Makefile.am): Likewise.
64318         * modules/sha1 (Makefile.am): Likewise.
64319         * modules/sig2str (Makefile.am): Likewise.
64320         * modules/snprintf (Makefile.am): Likewise.
64321         * modules/stdlib-safer (Makefile.am): Likewise.
64322         * modules/stpcpy (Makefile.am): Likewise.
64323         * modules/stpncpy (Makefile.am): Likewise.
64324         * modules/strcase (Makefile.am): Likewise.
64325         * modules/strcasestr (Makefile.am): Likewise.
64326         * modules/strchrnul (Makefile.am): Likewise.
64327         * modules/strcspn (Makefile.am): Likewise.
64328         * modules/strdup (Makefile.am): Likewise.
64329         * modules/strerror (Makefile.am): Likewise.
64330         * modules/strftime (Makefile.am): Likewise.
64331         * modules/strndup (Makefile.am): Likewise.
64332         * modules/strnlen (Makefile.am): Likewise.
64333         * modules/strpbrk (Makefile.am): Likewise.
64334         * modules/strsep (Makefile.am): Likewise.
64335         * modules/strstr (Makefile.am): Likewise.
64336         * modules/strtod (Makefile.am): Likewise.
64337         * modules/strtoimax (Makefile.am): Likewise.
64338         * modules/strtok_r (Makefile.am): Likewise.
64339         * modules/strtol (Makefile.am): Likewise.
64340         * modules/strtoll (Makefile.am): Likewise.
64341         * modules/strtoul (Makefile.am): Likewise.
64342         * modules/strtoull (Makefile.am): Likewise.
64343         * modules/strtoumax (Makefile.am): Likewise.
64344         * modules/strverscmp (Makefile.am): Likewise.
64345         * modules/time_r (Makefile.am): Likewise.
64346         * modules/timegm (Makefile.am): Likewise.
64347         * modules/tmpfile-safer (Makefile.am): Likewise.
64348         * modules/unistd-safer (Makefile.am): Likewise.
64349         * modules/unlinkdir (Makefile.am): Likewise.
64350         * modules/userspec (Makefile.am): Likewise.
64351         * modules/utime (Makefile.am): Likewise.
64352         * modules/utimecmp (Makefile.am): Likewise.
64353         * modules/utimens (Makefile.am): Likewise.
64354         * modules/vasnprintf (Makefile.am): Likewise.
64355         * modules/vasprintf (Makefile.am): Likewise.
64356         * modules/vsnprintf (Makefile.am): Likewise.
64357         * modules/xalloc (Makefile.am): Likewise.
64358         * modules/xgetcwd (Makefile.am): Likewise.
64359         * modules/xnanosleep (Makefile.am): Likewise.
64360         * modules/xreadlink (Makefile.am): Likewise.
64361         * modules/xstrtod (Makefile.am): Likewise.
64362         * modules/xstrtol (Makefile.am): Likewise.
64363         * modules/xstrtold (Makefile.am): Likewise.
64364         * modules/yesno (Makefile.am): Likewise.
64365
64366 2006-10-12  Jim Meyering  <jim@meyering.net>
64367
64368         * m4/getloadavg.m4: Revert the change below.
64369
64370         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64371         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64372         fail with a symlink, which is what coreutils' ./bootstrap now
64373         creates by default.
64374
64375 2006-10-12  Bruno Haible  <bruno@clisp.org>
64376
64377         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64378         mingw.
64379         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64380         MSVC and mingw explicitly.
64381
64382 2006-10-11  Simon Josefsson  <jas@extundo.com>
64383             Bruno Haible  <bruno@clisp.org>
64384
64385         Add support for multiple gnulib-tool invocations in the scope of a
64386         single configure.ac file.
64387         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64388         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64389         with the same contents as the _LIBADD variable.
64390         (func_emit_initmacro_start, func_emit_initmacro_end,
64391         func_emit_initmacro_done): New functions.
64392         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64393         gl_LIBOBJS and gl_LTLIBOBJS.
64394
64395 2006-10-11  Bruno Haible  <bruno@clisp.org>
64396
64397         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64398         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64399         autoreconf. Instead, invoke autopoint explicitly but move back the
64400         *.m4 files from gnulib.
64401
64402 2006-10-11  Bruno Haible  <bruno@clisp.org>
64403
64404         * gnulib-tool (func_usage): Make module names after --create-testdir
64405         optional.
64406         (func_create_testdir): If no module was specified, use nearly all
64407         modules.
64408
64409 2006-10-12  Jim Meyering  <jim@meyering.net>
64410
64411         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64412         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64413         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64414         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64415         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64416         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64417         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64418         (fts_set_stat_required): New function.
64419         (fts_open): Defer the calls to fts_stat, if possible or requested.
64420         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64421         into fts_stat itself.
64422         (fts_read): Perform any required (deferred) fts_stat call.
64423         (fts_build): Likewise, for the directory we're about to open and read.
64424         In the readdir loop, carefully decide whether each entry will require
64425         an eventual call to fts_stat, using dirent.d_type info if available.
64426         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64427         a command line argument into this function.  Update all callers.
64428         Map a return value of FTS_DOT to FTS_D for a command line argument.
64429         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64430         Thanks to Miklos Szeredi for his tenacity and for the initial
64431         bug report about "find" failing on a FUSE-based file system.
64432
64433         * lib/fts.c (fts_open): Use consistent indentation.
64434
64435 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64436
64437         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64438         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64439         reported by Jim Meyering.  All uses of cache variables renamed
64440         to match Autoconf's.
64441         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64442         the other one.
64443
64444         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64445         Fix misspelling in diagnostic.
64446
64447 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64448
64449         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64450         defined.  Problem reported by Matthew Woehlke.
64451
64452         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64453         Add support for Tandem NonStop R series.
64454         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64455         Use new macro.
64456
64457         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64458         (has_trailing_slash): Omit size arg; all callers changed.
64459         Omit 'inline', since it doesn't help performance and we'd
64460         need to configure it.
64461         Don't count //, ///, etc. as having a trailing slash.
64462         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64463         (rpl_rename_dest_slash): On failure, use rename's errno rather
64464         than (in some cases) an incorrect or junk errno.
64465         Simplify code by removing need to compute length; this does
64466         cause it to make two passes instead of one over the file name,
64467         but it's worth it.
64468
64469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64470         change, since Autoconf's version may no longer be appropriate now
64471         that we are using CVS Autoconf's version.  Add support for Tandem.
64472
64473 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64474             Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64477         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64478         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64479         gl_AC_TYPE_LONG_LONG.
64480
64481         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64482         instead of HAVE_LONG_LONG.
64483         * lib/printf-args.c (printf_fetchargs): Likewise.
64484         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64485         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64486         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64487         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64488         gl_AC_TYPE_LONG_LONG.
64489
64490 2006-10-11  Bruno Haible  <bruno@clisp.org>
64491
64492         * m4/longlong.m4: Add comments.
64493         * m4/ulonglong.m4: Likewise.
64494
64495 2006-10-10  Bruno Haible  <bruno@clisp.org>
64496
64497         Make it possible to #define stpcpy, strdup to aliases.
64498         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64499         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64500
64501 2006-10-10  Bruno Haible  <bruno@clisp.org>
64502
64503         Make it possible to #define gcd to an alias.
64504         * lib/gcd.c: Include config.h.
64505
64506 2006-10-10  Bruno Haible  <bruno@clisp.org>
64507
64508         Make it possible to #define c_isascii to an alias.
64509         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64510         defined. Undefine the macros before defining them, to avoid gcc
64511         warnings.
64512         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64513         define NO_C_CTYPE_MACROS early.
64514
64515 2006-10-10  Bruno Haible  <bruno@clisp.org>
64516
64517         Make it possible to #define set_program_name to an alias.
64518         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64519         ENABLE_RELOCATABLE early.
64520
64521 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64522
64523         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64524         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64525         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64526         More generally, don't assume that 64-bit signed int is available
64527         if unsigned int is, and vice versa.
64528         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64529         unsigned symbols, not on their signed counterparts.
64530         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64531         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64532         (UINT64_C, UINTMAX_C):
64533         Likewise.
64534         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64535         unsigned counterparts.
64536         (Have_long_long, Unsigned): New macros.
64537         (Int): Renamed from INT.
64538         (strtoimax): Use the new macros.
64539         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64540         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64541         * modules/inttypes (inttypes.h): Substitute
64542         HAVE_UNSIGNED_LONG_LONG_INT.
64543         * modules/stdint (stdint.h): Likewise.
64544         (Files): Add m4/ulonglong.m4.
64545
64546 2006-10-10  Bruno Haible  <bruno@clisp.org>
64547
64548         Fix a gcc -Wshadow warning.
64549         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64550         to 'bucket'.
64551         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64552         gl_linked_indexof_from_to): Likewise.
64553         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64554         Likewise.
64555         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64556         Likewise.
64557         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64558         Reported by Eric Blake.
64559
64560 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64561
64562         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64563         for NetBSD.  Problem reported by Bruno Haible.
64564
64565 2006-10-09  Jim Meyering  <jim@meyering.net>
64566
64567         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64568         Patch from Bruno Haible.
64569
64570 2006-10-09  Jim Meyering  <jim@meyering.net>
64571
64572         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64573         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64574         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64575
64576 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         Don't include <config.h> twice; this doesn't work in some cases,
64579         e.g., when config.h has "#define intmax_t long long int" and
64580         we include <config.h>, <inttypes.h>, <config.h> in that order.
64581         Problem reported by Matthew Woehlke in:
64582         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64583         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64584         * lib/fts-cycle.c: Don't include config.h.
64585         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64586         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64587         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64588         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64589         inttypes.h.
64590         * lib/xstrtoumax.c: Likewise.
64591         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64592         __strtol and the like, so that this module is more like its siblings.
64593         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64594         Remove; no longer needed now that we assume gnulib inttypes.h.
64595
64596 2006-10-08  Bruno Haible  <bruno@clisp.org>
64597
64598         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64599         option.
64600
64601 2006-10-07  Jim Meyering  <jim@meyering.net>
64602
64603         * modules/inttypes (inttypes.h): Revert what seems to have been
64604         an inadvertent part of today's change: use "|", not "/" in the
64605         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64606
64607 2006-10-07  Bruno Haible  <bruno@clisp.org>
64608
64609         * modules/sublist: New file.
64610
64611 2006-10-07  Bruno Haible  <bruno@clisp.org>
64612
64613         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64614         * modules/argz (argz.h): Likewise.
64615         * modules/arpa_inet (arpa/inet.h): Likewise.
64616         * modules/byteswap (byteswap.h): Likewise.
64617         * modules/configmake (configmake.h): Likewise.
64618         * modules/fcntl (fcntl.h): Likewise.
64619         * modules/fnmatch (fnmatch.h): Likewise.
64620         * modules/getopt (getopt.h): Likewise.
64621         * modules/glob (glob.h): Likewise.
64622         * modules/inttypes (inttypes.h): Likewise.
64623         * modules/netinet_in (netinet/in.h): Likewise.
64624         * modules/poll (poll.h): Likewise.
64625         * modules/stdbool (stdbool.h): Likewise.
64626         * modules/stdint (stdint.h): Likewise.
64627         * modules/sys_select (sys/select.h): Likewise.
64628         * modules/sys_socket (sys/socket.h): Likewise.
64629         * modules/sys_stat (sys/stat.h): Likewise.
64630         * modules/sysexits (sysexits.h): Likewise.
64631         * modules/unistd (unistd.h): Likewise.
64632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64633         Add a "DO NOT EDIT" comment to the generated file.
64634         (func_import): Likewise for gnulib-comp.m4.
64635
64636 2006-10-07  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/gl_sublist.h: New file.
64639         * lib/gl_sublist.c: New file.
64640
64641 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64642
64643         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64644         name (relative to the original working directory) and the file
64645         name component (relative to the temporary working directory).  All
64646         callers changed.
64647         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64648         * lib/mkdir-p.c (make_dir_parents): Likewise.
64649         * lib/mkdir-p.h (make_dir_parents): Likewise.
64650
64651 2006-10-06  Eric Blake  <ebb9@byu.net>
64652
64653         Define several macros for use by the clean-temp module.
64654         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64655         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64656         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64657
64658         * lib/clean-temp.h (close_stream_temp): New declaration.
64659         * lib/clean-temp.c (includes): Pull in headers according to what
64660         other modules are in use.
64661         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64662
64663 2006-10-06  Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64666         instead of fopen, fwriteerror.
64667
64668 2006-10-06  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64671         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64672         int.
64673         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64674         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64675         Return an error indicator.
64676         Suggested by Eric Blake.
64677
64678 2006-10-06  Bruno Haible  <bruno@clisp.org>
64679
64680         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64681         Reported by Eric Blake.
64682
64683 2006-10-06  Bruno Haible  <bruno@clisp.org>
64684
64685         * modules/closeout (Description): Mention stderr too.
64686
64687 2006-10-06  Bruno Haible  <bruno@clisp.org>
64688         and Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         * lib/closeout.c (close_stdout): Also close stderr.
64691         * lib/closeout.h: Update comment.
64692
64693 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64694
64695         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64696         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64697         * lib/dirchownmod.c: Include lchown.h.
64698         * lib/lchown.c: Don't include files that lchown.h now includes.
64699         Don't declare chown, since lchown.h now does that.
64700         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64701         (lchown): Define to rpl_chown if lchown is declared but
64702         does not exist.  Declare using a prototype if lchown is not
64703         declared.  Add a copyright notice.
64704         * lib/mkstemp.h: Include <unistd.h>.
64705         * lib/openat.c: Include lchown.h.
64706
64707         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64708         we now test for that separately.
64709         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64710         rather than O_NOFOLLOW, when testing whether it's possible to
64711         avoid a race condition reliably.
64712         * lib/savewd.c (savewd_chdir): Likewise.
64713
64714         Remove macros that are no longer needed now that stdint.h is
64715         reliable.
64716         * lib/fsusage.c (UINTMAX_MAX): Remove.
64717         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64718         * lib/utimecmp.c (SIZE_MAX): Remove.
64719
64720         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64721
64722         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64723         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64724         O_NOATIME works.
64725
64726 2006-10-05  Bruno Haible  <bruno@clisp.org>
64727
64728         * lib/gl_list.h (gl_sortedlist_search_from_to,
64729         gl_sortedlist_indexof_from_to): New declarations.
64730         (gl_list_implementation): New fields sortedlist_search_from_to,
64731         sortedlist_indexof_from_to.
64732         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64733         inline functions.
64734         * lib/gl_list.c (gl_sortedlist_search_from_to,
64735         gl_sortedlist_indexof_from_to): New functions.
64736         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64737         function.
64738         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64739         (gl_array_sortedlist_search_from_to): New function.
64740         (gl_array_list_implementation): Update.
64741         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64742         function.
64743         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64744         (gl_carray_sortedlist_search_from_to): New function.
64745         (gl_carray_list_implementation): Update.
64746         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64747         gl_linked_sortedlist_indexof_from_to): New functions.
64748         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64749         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64750         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64751         gl_tree_sortedlist_indexof_from_to): New functions.
64752         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64753         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64754         Update.
64755         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64756         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64757         Update.
64758
64759 2006-10-05  Bruno Haible  <bruno@clisp.org>
64760
64761         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64762         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64763         (struct gl_list_implementation): Add fields search_from_to,
64764         indexof_from_to. Remove fields search, indexof.
64765         (gl_list_search): Use the search_from_to method.
64766         (gl_list_search_from, gl_list_search_from_to): New functions.
64767         (gl_list_indexof): Use the indexof_from_to method.
64768         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64769         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64770         (gl_list_search_from, gl_list_search_from_to): New functions.
64771         (gl_list_indexof): Use the indexof_from_to method.
64772         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64773         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64774         gl_array_indexof. Add start_index, end_index arguments.
64775         (gl_array_search_from_to): Renamed from gl_array_search. Add
64776         start_index, end_index arguments.
64777         (gl_array_remove, gl_array_list_implementation): Update.
64778         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64779         gl_carray_indexof. Add start_index, end_index arguments.
64780         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64781         start_index, end_index arguments.
64782         (gl_carray_remove, gl_carray_list_implementation): Update.
64783         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64784         gl_linked_search. Add start_index, end_index arguments.
64785         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64786         start_index, end_index arguments.
64787         (gl_linked_remove): Update.
64788         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64789         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64790         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64791         field to 'size_t'.
64792         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64793         gl_tree_search. Add start_index, end_index arguments.
64794         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64795         start_index, end_index arguments.
64796         (gl_tree_remove): Update.
64797         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64798         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64799         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64800         function.
64801         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64802         gl_tree_search. Add start_index, end_index arguments.
64803         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64804         start_index, end_index arguments.
64805         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64806         Update.
64807         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64808
64809 2006-10-05  Bruno Haible  <bruno@clisp.org>
64810
64811         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64812
64813         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64814         fwriteerror_temp): New declarations.
64815         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64816         (descriptors): New variable.
64817         (cleanup): First, close the descriptors.
64818         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64819         fclose_temp, fwriteerror_temp): New functions.
64820
64821 2006-10-04  Jim Meyering  <jim@meyering.net>
64822
64823         * lib/fts.c (fts_open): Tiny comment change.
64824
64825 2006-10-04  Bruno Haible  <bruno@clisp.org>
64826
64827         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64828         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64829         gl_LOCK_BODY.
64830         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64831         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64832         gl_LOCK_EARLY_BODY.
64833         (gl_LOCK): Require gl_LOCK_BODY.
64834
64835 2006-10-04  Bruno Haible  <bruno@clisp.org>
64836
64837         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64838         (gl_oset_search_atleast): New declaration.
64839         (struct gl_oset_implementation): Add field 'search_atleast'.
64840         (gl_oset_search_atleast): New inline function.
64841         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64842         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64843         (gl_array_oset_implementation): Update.
64844         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64845         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64846         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64847
64848 2006-10-04  Bruno Haible  <bruno@clisp.org>
64849
64850         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64851
64852 2006-10-03  Bruno Haible  <bruno@clisp.org>
64853
64854         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64855         from gl_avltreehash_list_implementation.
64856
64857 2006-10-03  Bruno Haible  <bruno@clisp.org>
64858
64859         * lib/gl_oset.c (gl_oset_add): Fix return type.
64860
64861 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64862
64863         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64864
64865 2006-10-02  Eric Blake  <ebb9@byu.net>
64866
64867         * modules/strnlen (Depends-on): Add extensions.
64868
64869 2006-10-02  Eric Blake  <ebb9@byu.net>
64870
64871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64872         definition in 2.60+.
64873
64874 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64875
64876         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64877         checks.
64878
64879 2006-10-02  Bruno Haible  <bruno@clisp.org>
64880
64881         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64882         to the AUTOMAKE_OPTIONS.
64883         Reported by Jim Meyering.
64884
64885 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         Work around bug in Solaris 10 /proc file system:
64888         /proc/self/fd/NNN/.. isn't the parent directory of
64889         the directory whose file descriptor is NNN.  This needs to
64890         be worked around at run time, not compile time, since a
64891         program might be built on Solaris 8, where things work, and
64892         run on Solaris 10.
64893         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64894         to use the following interface instead:
64895         (OPENAT_BUFFER_SIZE): New macro.
64896         (openat_proc_name): New function.
64897         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64898         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64899         Likewise.
64900         * lib/openat-proc.c: New file.
64901         * modules/openat (Files): Add lib/openat-proc.c.
64902         (Depends-on): Add same-inode, stdbool.
64903         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64904
64905 2006-09-29  Bruno Haible  <bruno@clisp.org>
64906
64907         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64908         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64909         argument. Set stdout_closed before testing for ferror, not after.
64910         (fwriteerror, fwriteerror_no_ebadf): New functions.
64911
64912 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64913
64914         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64915
64916 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64917
64918         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64919         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64920
64921 2006-09-28  Jim Meyering  <jim@meyering.net>
64922
64923         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64924         Include <unistd.h>.
64925
64926 2006-09-28  Bruno Haible  <bruno@clisp.org>
64927
64928         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64929         * modules/linkedhash-list (Depends-on): Likewise.
64930         * modules/rbtreehash-list (Depends-on): Likewise.
64931
64932 2006-09-28  Bruno Haible  <bruno@clisp.org>
64933
64934         * lib/strndup.h: Simplify the redefinition of strndup.
64935         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64937
64938 2006-09-28  Bruno Haible  <bruno@clisp.org>
64939
64940         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64941         * lib/gl_linkedhash_list.c: Likewise.
64942         * lib/gl_rbtreehash_list.c: Likewise.
64943
64944 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64945
64946         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64947         getaddrinfo.
64948
64949         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64950         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64951         it causes <stdio_ext.h> to cause a compile-time error.
64952         Problem reported by Nelson H. F. Beebe.
64953         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64954         of HAVE_DECL___PENDING.
64955
64956         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64957         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64958         declaration.
64959
64960 2006-09-27  Jim Meyering  <jim@meyering.net>
64961
64962         This file could end up with a definition for a function
64963         named __strndup, rather than rpl_strndup on a system with
64964         incomplete weak_alias support.
64965         * lib/strndup.c (strndup): Rename from __strndup.
64966         Remove #defines that used to map __strndup to strndup.
64967         Don't use K&R prototypes.
64968         Remove LIBC-related code, since this file is not sync'd with glibc.
64969         * lib/strndup.h: Revamp, accordingly.
64970         * m4/strndup.m4: Modernize.
64971
64972 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64973
64974         * modules/savewd (Depends-on): Add 'raise'.
64975         * lib/savewd.c: Include <signal.h>, for 'raise'.
64976
64977 2006-09-26  Jim Meyering  <jim@meyering.net>
64978
64979         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64980         when we detect Darwin 8.7.0's acl_get_file bug.
64981         Rearrange to perform the new (below) run-test while $LIBS
64982         contains any acl-related library.  Set USE_ACL at the end.
64983         (gl_ACL_GET_FILE): New function.
64984
64985 2006-09-26  Eric Blake  <ebb9@byu.net>
64986
64987         * lib/verror.c: Include <config.h> unconditionally.
64988
64989 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64990
64991         * modules/clock-time (Maintainer): Add self.
64992         * modules/getlogin_r (Depends-on): Add extensions.
64993
64994 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64995
64996         * modules/clock-time: New module.
64997         * modules/nanosleep (Depends-on): Add clock-time.
64998         * modules/gethrxtime (Depends-on): Likewise.
64999         * modules/gettime (Depends-on): Likewise.
65000         * modules/settime (Depends-on): Likewise.
65001
65002         * modules/fts-lgpl: Depend on openat.
65003         * modules/mkancesdirs: Depend on savewd.
65004         * modules/mkdir-p: Likewise.
65005
65006 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65007
65008         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65009
65010         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65011         `gl_have_arbitrary_file_name_length_limit' to
65012         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65013         actually works between configure runs.
65014
65015 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65016             Bruno Haible  <bruno@clisp.org>
65017
65018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65019
65020 2006-09-25  Jim Meyering  <jim@meyering.net>
65021
65022         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65023         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65024
65025 2006-09-25  Eric Blake  <ebb9@byu.net>
65026
65027         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65028         exec's in 2006-09-18 patch when shuffling fds.
65029
65030 2006-09-25  Bruno Haible  <bruno@clisp.org>
65031
65032         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65033         Reported by Jim Meyering.
65034
65035 2006-09-24  Jim Meyering  <jim@meyering.net>
65036
65037         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65038         compare a pointer against a literal "0".  That caused failures with
65039         at least HP-UX's hpcc.
65040
65041 2006-09-22  Simon Josefsson  <jas@extundo.com>
65042
65043         * modules/gc-sha1:
65044         * modules/gc-md4:
65045         * modules/gc-hmac-sha1:
65046         * modules/gc-hmac-md5:
65047         * modules/gc-des:
65048         * modules/gc-arcfour: Distribute more files.
65049
65050 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65051
65052         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65053         (gl_linked_iterator_from_to): Initialize struct completely.
65054         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65055         (gl_tree_iterator_from_to): Likewise
65056         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65057         * lib/gl_array_list.c [lint] (gl_array_iterator)
65058         (gl_array_iterator_from_to): Likewise.
65059         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65060         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65061         (gl_carray_iterator_from_to): Likewise.
65062
65063         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65064         * lib/md4.c (md4_process_block): Remove unused variable.
65065         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65066         parentheses for clarity.
65067
65068 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65069
65070         * modules/bison-i18n (Depends-on): Add gettext.
65071
65072 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65073
65074         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65075         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65076         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65077         also add missing comma that caused broken test.
65078         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65079         stdlib.h, for `abort'.
65080         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65081         variables.
65082         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65083         include unistd.h if present, for `rmdir'.
65084         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65085         variables.
65086         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65087         in the process include standard headers for prototypes.
65088         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65089         gets declared on GNU/Linux.
65090         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65091         unistd.h, for `rmdir'.
65092         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65093
65094         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65095         always true.
65096         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65097
65098         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65099
65100 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65101
65102         * gnulib-tool (func_version): Create output all at once.  This
65103         may help avoid triggering unnecessary SIGPIPEs, and at any
65104         rate it doesn't hurt.
65105
65106 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65107             Bruno Haible  <bruno@clisp.org>
65108
65109         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65110         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65111         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65112
65113         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65114         (gl_FUNC_VASPRINTF): Invoke it.
65115
65116 2006-09-22  Bruno Haible  <bruno@clisp.org>
65117
65118         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65119         getloadavg.c as first argument.
65120
65121 2006-09-22  Bruno Haible  <bruno@clisp.org>
65122
65123         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65124         at the beginning of the gl_INIT macro.
65125         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65126         gl_GETLOADAVG.
65127
65128 2006-09-22  Bruno Haible  <bruno@clisp.org>
65129
65130         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65131         module.
65132         Suggested by Ralf Wildenhues.
65133
65134 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         Import this patch from libc:
65137
65138         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65139
65140         * lib/regex_internal.c (re_string_reconstruct): Handle
65141         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65142         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65143         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65144         re_string_context_at.
65145
65146         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65147         now requires it.
65148         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65149         gl_REGEX now does it for us.
65150         (gl_REGEX): Add test taken from
65151         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65152
65153         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65154         Check that large offsets work.  Modernize Autoconf usages.
65155         Prefer "yes" to mean a good thing rather than a bad.
65156         Don't put "#define mkstemp" in config.h, as this might interfere
65157         with standard system headers that "#define mkstemp mkstemp64".
65158
65159         * modules/mkstemp (Depends-on): Add extensions, so that
65160         mkstemp is visible on some platforms.
65161         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65162         (Include): Change to "mkstemp.h" from <stdlib.h>.
65163         (Files): Add mkstemp.h.
65164
65165         * lib/mkstemp.h: New file, since some standard headers
65166         #define mkstemp.
65167         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65168         Include "mkstemp.h".
65169         Make the _LIBC code resemble glibc original more,
65170         e.g., use K&R style.
65171         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65172         (mkstemp): Remove, since mkstemp.h does this for us.
65173         * lib/stdlib--.h: Include mkstemp.h.
65174
65175         Import this patch from libc:
65176
65177         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65178
65179         * lib/tempname.c (__gen_tempname): Change attempts_min
65180         into a macro.  Use preprocessor to decide how to initialize
65181         attempts [Coverity CID 67].
65182
65183 2006-09-20  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/mkdtemp.c: Import from libc.
65186         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65187                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65188                 attempts_min into a macro.  Use preprocessor to decide how to
65189                 initialize attempts [Coverity CID 67].
65190         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65191                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65192                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65193
65194 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65195
65196         * gnulib-tool (func_exit): New function, to allow to pass the
65197         exit status portably through the trap.  Use everywhere.
65198         (--help, --version): Signal a write error.
65199         (trap): catch SIGPIPE, for write errors.
65200         Exit at the end of the trap, with the correct exit status.
65201
65202 2006-09-19  Karl Berry  <karl@gnu.org>
65203
65204         * doc/gnulib.texi: note about the license texinfo files.
65205
65206 2006-09-19  Eric Blake  <ebb9@byu.net>
65207
65208         * gnulib-tool: Avoid space-tab.
65209
65210 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65211
65212         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65213         that prevented coreutils 6.1 from building.  Problem reported
65214         by Petter Reinholdtsen.
65215
65216 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         * gnulib-tool (avoidlist): Fix typo that broke options like
65219         --avoid=lock that are used by coreutils bootstrap.
65220
65221 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65222
65223         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65224         more systematically.
65225
65226 2006-09-18  Jim Meyering  <jim@meyering.net>
65227
65228         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65229
65230 2006-09-18  Bruno Haible  <bruno@clisp.org>
65231
65232         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65233
65234 2006-09-18  Bruno Haible  <bruno@clisp.org>
65235
65236         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65237         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65238         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65239         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65240         * m4/gettext.m4: Require autoconf >= 2.52.
65241         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65242         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65243         of gl_cv_header_inttypes_h.
65244
65245 2006-09-18  Bruno Haible  <bruno@clisp.org>
65246
65247         * lib/javaversion.c: Include configmake.h.
65248
65249 2006-09-18  Bruno Haible  <bruno@clisp.org>
65250
65251         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65252         avoid that the while loops be executed in a subshell.
65253
65254 2006-09-18  Bruno Haible  <bruno@clisp.org>
65255
65256         * MODULES.html.sh (func_module): Break long lines.
65257         Suggested by Bruce Korb <bkorb@gnu.org>.
65258
65259 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65260
65261         Speed up by a factor of 1.12.
65262         * gnulib-tool (nl): New variable.
65263         (func_import): Rewrite include directive extraction to only read each
65264         directive once.
65265
65266 2006-09-17  Bruno Haible  <bruno@clisp.org>
65267
65268         * modules/javaversion (Makefile.am): Remove DEFS setting.
65269         (Depends-on): Add configmake, for PKGDATADIR definition.
65270
65271 2006-09-17  Bruno Haible  <bruno@clisp.org>
65272
65273         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65274
65275 2006-09-17  Bruno Haible  <bruno@clisp.org>
65276
65277         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65278         (func_modules_transitive_closure, func_modules_add_dummy,
65279         func_modules_to_filelist, func_import, func_create_testdir,
65280         func_create_megatestdir, ...): Use it wherever possible.
65281         Suggested by Ralf Wildenhues.
65282
65283 2006-09-16  Karl Berry  <karl@gnu.org>
65284
65285         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65286         to avoid sectioning errors.
65287         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65288         [ifinfo]: blank line after @center-ed titles.
65289         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65290         Spell FSF address consistently with others.
65291         (These changes approved by rms.)
65292
65293 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65294
65295         Speed up by a factor of 1.61.
65296         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65297         already checked module names again.
65298
65299 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65300
65301         Speed up by a factor of 1.13.
65302         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65303         for new_files, and the input to func_add_or_update.
65304
65305 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65306
65307         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65308         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65309
65310 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65311
65312         * modules/mkancesdirs (Depends-on): Add fcntl.
65313         * modules/savewd: New file.
65314         * MODULES.html.sh (File system functions): Add savewd.
65315
65316         * modules/configmake (Makefile.am): Add support for the
65317         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65318
65319 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65320
65321         * m4/savewd.m4: New file.
65322
65323 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65326         (dirchownmod): New arg FD.  All callers changed.
65327         Use FD rather than opening the directory ourself, as opening is
65328         now the caller's responsibility.
65329         * lib/dirchownmod.h: Likewise.
65330         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65331         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65332         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65333         (test_dir): Remove.
65334         (mkancesdirs): Return length of prefix of FILE that has already
65335         been made, or -2 if there is a child doing the work.  Redo
65336         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65337         ".", and treat ".." specially since it might stray back into
65338         already-created areas.  Use a subprocess if necessary.  New arg
65339         WD; all users changed.  MAKE_DIR function should now return 1
65340         if it creates a directory that is not readable.  Return -2 if
65341         a child process is spun off.
65342         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65343         Adjust signature to match code.
65344         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65345         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65346         all users changed.
65347         * lib/savewd.c, lib/savewd.h: New files.
65348
65349 2006-09-15  Jim Meyering  <jim@meyering.net>
65350
65351         * modules/rename-dest-slash: New module.
65352         * MODULES.html.sh (posix_compat): Add it here.
65353
65354         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65355
65356 2006-09-15  Jim Meyering  <jim@meyering.net>
65357
65358         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65359         file.
65360
65361         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65362
65363 2006-09-15  Jim Meyering  <jim@meyering.net>
65364
65365         * lib/rename-dest-slash.c (has_trailing_slash): Use
65366         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65367         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65368         test before testing whether SRC is a directory.
65369         Suggestions from Bruno Haible.
65370
65371         Avoid a warning about an unused variable.
65372         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65373         into the #ifdef block where it's used.
65374
65375         * lib/rename-dest-slash.c: New file.
65376
65377 2006-09-14  Bruno Haible  <bruno@clisp.org>
65378
65379         * lib/allocsa.c: Include <config.h> unconditionally.
65380         * lib/asnprintf.c: Likewise.
65381         * lib/asprintf.c: Likewise.
65382         * lib/c-strcasecmp.c: Likewise.
65383         * lib/c-strcasestr.c: Likewise.
65384         * lib/c-strncasecmp.c: Likewise.
65385         * lib/c-strstr.c: Likewise.
65386         * lib/classpath.c: Likewise.
65387         * lib/clean-temp.c: Likewise.
65388         * lib/concatpath.c: Likewise.
65389         * lib/copy-file.c: Likewise.
65390         * lib/csharpcomp.c: Likewise.
65391         * lib/csharpexec.c: Likewise.
65392         * lib/execute.c: Likewise.
65393         * lib/fatal-signal.c: Likewise.
65394         * lib/findprog.c: Likewise.
65395         * lib/fwriteerror.c: Likewise.
65396         * lib/gl_array_list.c: Likewise.
65397         * lib/gl_array_oset.c: Likewise.
65398         * lib/gl_avltree_list.c: Likewise.
65399         * lib/gl_avltree_oset.c: Likewise.
65400         * lib/gl_avltreehash_list.c: Likewise.
65401         * lib/gl_carray_list.c: Likewise.
65402         * lib/gl_linked_list.c: Likewise.
65403         * lib/gl_linkedhash_list.c: Likewise.
65404         * lib/gl_list.c: Likewise.
65405         * lib/gl_oset.c: Likewise.
65406         * lib/gl_rbtree_list.c: Likewise.
65407         * lib/gl_rbtree_oset.c: Likewise.
65408         * lib/gl_rbtreehash_list.c: Likewise.
65409         * lib/imaxabs.c: Likewise.
65410         * lib/imaxdiv.c: Likewise.
65411         * lib/javacomp.c: Likewise.
65412         * lib/javaexec.c: Likewise.
65413         * lib/javaversion.c: Likewise.
65414         * lib/linebreak.c: Likewise.
65415         * lib/localcharset.c: Likewise.
65416         * lib/lock.c: Likewise.
65417         * lib/mbchar.c: Likewise.
65418         * lib/mbswidth.c: Likewise.
65419         * lib/mkdtemp.c: Likewise.
65420         * lib/pipe.c: Likewise.
65421         * lib/printf-args.c: Likewise.
65422         * lib/printf-parse.c: Likewise.
65423         * lib/progname.c: Likewise.
65424         * lib/progreloc.c: Likewise.
65425         * lib/readlink.c: Likewise.
65426         * lib/sh-quote.c: Likewise.
65427         * lib/stpcpy.c: Likewise.
65428         * lib/stpncpy.c: Likewise.
65429         * lib/strcasecmp.c: Likewise.
65430         * lib/strcasestr.c: Likewise.
65431         * lib/strcspn.c: Likewise.
65432         * lib/striconv.c: Likewise.
65433         * lib/strncasecmp.c: Likewise.
65434         * lib/strnlen1.c: Likewise.
65435         * lib/strstr.c: Likewise.
65436         * lib/strtok_r.c: Likewise.
65437         * lib/tls.c: Likewise.
65438         * lib/tmpdir.c: Likewise.
65439         * lib/unicodeio.c: Likewise.
65440         * lib/unsetenv.c: Likewise.
65441         * lib/vasnprintf.c: Likewise.
65442         * lib/vasprintf.c: Likewise.
65443         * lib/wait-process.c: Likewise.
65444         * lib/xallocsa.c: Likewise.
65445         * lib/xsetenv.c: Likewise.
65446         * lib/xstriconv.c: Likewise.
65447
65448 2006-09-13  Simon Josefsson  <jas@extundo.com>
65449
65450         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65451         that internally, suggested by Ralf Wildenhues
65452         <Ralf.Wildenhues@gmx.de>.
65453
65454 2006-09-13  Simon Josefsson  <jas@extundo.com>
65455
65456         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65457         @LIBOBJS@.
65458         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65459
65460 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65461
65462         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65463         longer worry about uses that don't define HAVE_CONFIG_H.
65464         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65465         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65466         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65467         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65468         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65469         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65470         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65471         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65472         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65473         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65474         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65475         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65476         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65477         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65478         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65479         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65480         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65481         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65482         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65483         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65484         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65485         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65486         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65487         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65488         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65489         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65490         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65491         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65492         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65493         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65494         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65495         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65496         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65497         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65498         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65499         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65500         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65501         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65502         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65503         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65504         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65505         Likewise.
65506
65507 2006-09-13  Eric Blake  <ebb9@byu.net>
65508
65509         * lib/getopt.c: Fix typo in last commit.
65510
65511 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65512
65513         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65514         dgettext.
65515
65516 2006-09-12  Jim Meyering  <jim@meyering.net>
65517
65518         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65519         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65520         Reported by Nelson H. F. Beebe.
65521
65522 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65523
65524         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65525         program_invocation_name and program_invocation_short_name are
65526         initialized.
65527         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65528         and program_invocation_short_name to argp.h, so they are visible
65529         to user programs.
65530         * lib/argp.h: Likewise
65531
65532 2006-09-10  Bruno Haible  <bruno@clisp.org>
65533
65534         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65535         m4/inttypes_h.m4, m4/uintmax_t.m4.
65536
65537 2006-09-10  Bruno Haible  <bruno@clisp.org>
65538
65539         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65540         gl_AC_TYPE_UINTMAX_T.
65541
65542 2006-09-10  Bruno Haible  <bruno@clisp.org>
65543
65544         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65545
65546 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65547
65548         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65549         convention.  Text proposed by Bruno Haible.
65550         (struct argp_option): Document the use of N_() wrappers.
65551
65552         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65553         '\v', and translate the two parts separately, instead of feeding
65554         the whole string to gettext.  This allows to exclude
65555         '\v' from the strings visible to the translator by writing doc
65556         strings as N_("..") "\v" N_("..").
65557
65558 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * config/srclist.txt: Undo latest change; the bug was fixed.
65561
65562 2006-09-09  Bruno Haible  <bruno@clisp.org>
65563
65564         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65565         assignments if building a library without libtool.
65566         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65567         in func_emit_lib_Makefile_am.
65568         (func_import): When building a static library libfoo.a, arrange to
65569         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65570         (func_create_testdir): Likewise.
65571         * modules/gc (configure.ac, Makefile.am): If building statically,
65572         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65573         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65574         * modules/striconv (configure.ac, Makefile.am): Likewise.
65575         Based on a suggestion by Ralf Wildenhues.
65576
65577 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65580         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65581         Also:
65582
65583         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65584         Add year_2050_test to catch glibc bug 2821
65585         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65586
65587         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65588         Prefer #ifdef to #if.
65589
65590         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65591         Return from 'main' instead of calling 'exit'.
65592
65593 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65596         returned the maximum time_t value rather than (time_t) -1.
65597         Problem originally reported by William Bardwell
65598         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65599
65600         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65601         Moved to here ...
65602         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65603         ... from here.
65604
65605 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65608         2821 is fixed.
65609
65610 2006-09-08  Jim Meyering  <jim@meyering.net>
65611
65612         Don't make generated files read-only.  That would bother too many
65613         people.  However, do retain the ability to work when targets are
65614         read-only: remove the destination and temporary files before writing
65615         them (when generated via sed or echo), or by using the -f option for
65616         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65617         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65618         * modules/byteswap, modules/configmake, modules/fcntl:
65619         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65620         * modules/localcharset, modules/netinet_in, modules/poll:
65621         * modules/stdbool, modules/stdint, modules/sys_select:
65622         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65623
65624 2006-09-08  Jim Meyering  <jim@meyering.net>
65625
65626         Avoid new build failure on FreeBSD 6.0.
65627         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65628         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65629         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65630
65631 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65632
65633         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65634
65635 2006-09-07  Jim Meyering  <jim@meyering.net>
65636
65637         Fix global typo in last change: use chmod u-w, not chmod u-x.
65638         Spotted by Paul Eggert and Bruce Korb.
65639         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65640         * modules/byteswap, modules/configmake, modules/fcntl:
65641         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65642         * modules/localcharset, modules/netinet_in, modules/poll:
65643         * modules/stdbool, modules/stdint, modules/sys_select:
65644         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65645
65646 2006-09-06  Jim Meyering  <jim@meyering.net>
65647
65648         Make generated files be read-only.
65649         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65650         Ensure that each generated file is now read-only.
65651         * modules/argz: Likewise.
65652         * modules/arpa_inet: Likewise.
65653         * modules/byteswap: Likewise.
65654         * modules/configmake: Likewise.
65655         * modules/fcntl: Likewise.
65656         * modules/fnmatch: Likewise.
65657         * modules/getopt: Likewise.
65658         * modules/glob: Likewise.
65659         * modules/inttypes: Likewise.
65660         * modules/netinet_in: Likewise.
65661         * modules/poll: Likewise.
65662         * modules/stdbool: Likewise.
65663         * modules/stdint: Likewise.
65664         * modules/sys_select: Likewise.
65665         * modules/sys_socket: Likewise.
65666         * modules/sys_stat: Likewise.
65667         * modules/sysexits: Likewise.
65668         * modules/localcharset: Same as above, but continue using temporary
65669         file named "t-$@" (why different?) rather than the "$@-t" used
65670         everywhere else.
65671
65672         * modules/sysexits (Makefile.am): Replace literal occurrences
65673         of "sysexit.h" more readable, and more consistent, "$@".
65674
65675 2006-09-06  Bruno Haible  <bruno@clisp.org>
65676
65677         * modules/striconv: New file.
65678         * modules/xstriconv: New file.
65679         * MODULES.html.sh (Internationalization functions): Add striconv,
65680         xstriconv.
65681
65682 2006-09-06  Bruno Haible  <bruno@clisp.org>
65683
65684         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65685         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65686         not using libtool correctly.
65687
65688 2006-09-06  Bruno Haible  <bruno@clisp.org>
65689
65690         * lib/striconv.h: New file.
65691         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65692         iconvstring.c.
65693         * lib/xstriconv.h: New file.
65694         * lib/xstriconv.c: New file.
65695
65696 2006-09-06  Bruno Haible  <bruno@clisp.org>
65697
65698         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65699         lib_..._LDFLAGS.
65700
65701 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65702
65703         * lib/argz_.h: Sync from Libtool.
65704
65705         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65706                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65707
65708         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65709
65710 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65711
65712         * modules/trim: New file.
65713
65714 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65715
65716         * lib/trim.h: New file.
65717         * lib/trim.c: New file.
65718
65719 2006-09-05  Bruno Haible  <bruno@clisp.org>
65720
65721         * MODULES.html.sh (String handling): Add trim.
65722
65723 2006-09-04  Karl Berry  <karl@gnu.org>
65724
65725         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65726         until next release.
65727
65728 2006-09-03  Bruno Haible  <bruno@clisp.org>
65729
65730         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65731         correctly.
65732
65733 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65736         not gl_GETLOADAVG.  Omit unneeded semicolons.
65737         Problems reported by Ralf Wildenhues in
65738         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65739         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65740         at the end, which is the usual gnulib style.
65741
65742         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65743         of doing all the work ourselves.
65744         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65745         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65746
65747 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65748
65749         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65750         Problem reported by Ralf Wildenhues in
65751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65752
65753         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65754         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65755
65756 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65759         yesterday's patch by changing test -n to test -z.
65760
65761 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65762
65763         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65764         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65765         the former is now obsolescent.
65766
65767         * modules/chdir-long (Depends-on): Add fcntl.
65768
65769 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65770
65771         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65772         obsolescent, and programs should use gnulib instead.
65773         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65774         but with prefixes changed.
65775
65776 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65779         or stdbool.h, because they might not exist while configuring.
65780
65781         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65782         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65783         does that for us.
65784         (O_DIRECTORY): Remove.
65785
65786 2006-08-31  Eric Blake  <ebb9@byu.net>
65787
65788         * gnulib-tool: Don't let emacs change spaces to TAB.
65789
65790 2006-08-31  Bruno Haible  <bruno@clisp.org>
65791
65792         * gnulib-tool: When calling func_import more than once, do it in a
65793         subshell.
65794         Reported by Eric Blake <ebb9@byu.net>.
65795
65796 2006-08-31  Bruno Haible  <bruno@clisp.org>
65797
65798         * gnulib-tool (nl): Remove variable.
65799         (sed_transform_lib_file): Use more robust test for config-h module.
65800         (func_import): Fix typo in 2006-08-25 patch.
65801
65802 2006-08-31  Bruno Haible  <bruno@clisp.org>
65803
65804         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65805         specified, augment Makefile.am variables instead of assigning them.
65806
65807 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         Work around a bug in both the Linux and SunOS 64-bit kernels:
65810         nanosleep mishandles sleeps for longer than 2**31 seconds.
65811         Problem reported by Frank v Waveren in
65812         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65814         Check for nanosleep bug.
65815         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65816
65817 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         Work around a bug in both the Linux and SunOS 64-bit kernels:
65820         nanosleep mishandles sleeps for longer than 2**31 seconds.
65821         Problem reported by Frank v Waveren in
65822         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65823         * lib/nanosleep.c (BILLION): New constant.
65824         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65825         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65826         implementation.
65827
65828 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * modules/nanosleep (Depends-on): Add gettime.
65831
65832 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65833         and Simon Josefsson  <jas@extundo.com>
65834         and Oskar Liljeblad  <oskar@osk.mine.nu>
65835
65836         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65837         * gnulib-tool (func_import): New license type 'unmodifiable license
65838         text'.
65839         * modules/fdl: Use it.  Longer description.
65840         * module/gpl, module/lgpl: New files.
65841
65842 2006-08-30  Jim Meyering  <jim@meyering.net>
65843
65844         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65845         shadowing the parameter.
65846
65847 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65848
65849         Sync from Libtool:
65850
65851         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65852
65853         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65854         sharing with gnulib.  Report by Eric Blake.
65855
65856 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65857
65858         * modules/isapipe: New file.
65859         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65860
65861 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65862
65863         * modules/configmake (Makefile.am): Add a comment, and omit
65864         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65865         by Bruno Haible.
65866
65867 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65868
65869         * m4/isapipe.m4: New file.
65870
65871 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * lib/isapipe.c, lib/isapipe.h: New files.
65874
65875 2006-08-29  Jim Meyering  <jim@meyering.net>
65876
65877         * modules/configmake (Makefile.am): Make configmake.h depend on
65878         Makefile.  Otherwise, a stale configmake.h could hang around.
65879
65880 2006-08-29  Eric Blake  <ebb9@byu.net>
65881
65882         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65883         resolution of upstream bug 3044.
65884
65885 2006-08-29  Bruno Haible  <bruno@clisp.org>
65886
65887         * modules/localcharset (Depends-on): Add configmake.
65888         (Makefile.am): Remove setting of LIBDIR through DEFS.
65889
65890 2006-08-29  Bruno Haible  <bruno@clisp.org>
65891
65892         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65893         defined.
65894
65895 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65896
65897         * modules/fcntl: New file.
65898         * modules/chdir-safer (Depends-on): Add fcntl.
65899         * modules/fts: Likewise.
65900         * modules/mkdir-p: Likewise.
65901
65902         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65903         This undoes the most recent change, since we're now addressing the
65904         problem in a different way.
65905
65906         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65907         into output, since the output might be called Makefile.am even
65908         if $makefile_name is something different.
65909         (func_import): Use $makefile_am rather than
65910         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65911         empty.
65912
65913         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65914
65915 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65916
65917         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65918         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65919         recent change to stdint.m4, since we're now addressing the problem in a
65920         different way.
65921
65922 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65923
65924         * m4/fcntl_h.m4: New file.
65925
65926 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65927
65928         * lib/fcntl_.h: New file.
65929         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65930         the fcntl module.
65931         * lib/dirchownmod.c: Likewise.
65932         * lib/fts.c: Likewise.
65933
65934         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65935         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65936         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65937         just before including <inttypes.h>, to avoid circular inclusion.
65938
65939 2006-08-28  Jim Meyering  <jim@meyering.net>
65940
65941         * doc/visibility.texi: Actually read and correct the grammar of the
65942         sentence affected by yesterday's change.
65943
65944 2006-08-28  Eric Blake  <ebb9@byu.net>
65945
65946         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65947         needs wrapper.
65948
65949 2006-08-28  Eric Blake  <ebb9@byu.net>
65950
65951         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65952
65953 2006-08-28  Eric Blake  <ebb9@byu.net>
65954
65955         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65956
65957 2006-08-28  Bruno Haible  <bruno@clisp.org>
65958
65959         * modules/c-strstr: New file, from GNU gettext.
65960         * MODULES.html.sh (String handling): Add c-strstr.
65961
65962 2006-08-28  Bruno Haible  <bruno@clisp.org>
65963
65964         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65965         macros.
65966         Reported by Eric Blake.
65967
65968 2006-08-28  Bruno Haible  <bruno@clisp.org>
65969
65970         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65971         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65972         * lib/vasprintf.c: Include errno.h, limits.h.
65973         (EOVERFLOW): New fallback definition.
65974         (vasprintf): Test here whether the string length is > INT_MAX.
65975         * lib/vsnprintf.c: Include errno.h, limits.h.
65976         (EOVERFLOW): New fallback definition.
65977         (vsnprintf): Fix bug when generated string was too long for the buffer.
65978         Test here whether the string length is > INT_MAX.
65979
65980 2006-08-28  Bruno Haible  <bruno@clisp.org>
65981
65982         * lib/inttypes_.h (SCNX*): Remove definitions.
65983         Reported by Eric Blake.
65984
65985 2006-08-28  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/c-strstr.h: New file, from GNU gettext.
65988         * lib/c-strstr.c: New file, from GNU gettext.
65989
65990 2006-08-28  Bruno Haible  <bruno@clisp.org>
65991
65992         * gnulib-tool: Reorder some statements.
65993
65994 2006-08-28  Bruno Haible  <bruno@clisp.org>
65995
65996         * gnulib-tool: New option --makefile-name.
65997         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65998         $makefile_name.
65999         (func_import): Write $makefile_name to the cache file, and read it from
66000         there unless explicitly specified. Use $makefile_name as file name
66001         instead of Makefile.am. Adjust the recommendations accordingly.
66002
66003 2006-08-28  Bruno Haible  <bruno@clisp.org>
66004
66005         * gnulib-tool (func_verify_module): Check against misapplying patch.
66006
66007 2006-08-28  Bruno Haible  <bruno@clisp.org>
66008
66009         * gnulib-tool (func_relativize, func_relconcat): New functions.
66010         Give an error if --local-dir is given with --update.
66011         Remove trailing slashes from $local_gnulib_dir.
66012         (func_import): Store the relativized $local_gnulib_dir in
66013         gnulib-cache.m4, and read it from there if not specified explicitly.
66014
66015 2006-08-28  Bruno Haible  <bruno@clisp.org>
66016
66017         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66018         is the current directory. Respect also $local_gnulib_dir.
66019
66020 2006-08-28  Bruno Haible  <bruno@clisp.org>
66021             Simon Josefsson  <jas@extundo.com>
66022
66023         BeOS portability.
66024         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66025
66026 2006-08-27  Jim Meyering  <jim@meyering.net>
66027
66028         * doc/visibility.texi: Remove duplicate word: "pointer".
66029
66030 2006-08-26  Bruno Haible  <bruno@clisp.org>
66031
66032         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66033         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66034         (Makefile.am): Create inttypes.h from inttypes_.h.
66035         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66036
66037         * modules/imaxabs: New file.
66038
66039         * modules/imaxdiv: New file.
66040
66041 2006-08-26  Bruno Haible  <bruno@clisp.org>
66042
66043         * m4/inttypes.m4: New file.
66044         * m4/_inttypes_h.m4: Remove file.
66045         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66046         PRI_MACROS_BROKEN.
66047         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66048
66049         * m4/imaxabs.m4: New file.
66050
66051         * m4/imaxdiv.m4: New file.
66052
66053 2006-08-26  Bruno Haible  <bruno@clisp.org>
66054
66055         * lib/inttypes_.h: New file.
66056         * lib/inttypes.h: Remove file.
66057         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66058
66059         * lib/imaxabs.c: New file.
66060
66061         * lib/imaxdiv.c: New file.
66062
66063 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         New config-h module, so that "make" output needn't be cluttered
66066         by -DHAVE_CONFIG_H.
66067         * MODULES.html.sh (Support for building libraries and executables):
66068         Add config-h.
66069         * modules/config-h: New file.
66070         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66071         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66072         the config-h module is used.
66073
66074         New configmake module, so that "make" output needn't be cluttered
66075         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66076         * MODULES.html.sh (Support for building libraries and executables):
66077         Add configmake.
66078         * modules/configmake: New file.
66079
66080 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66081
66082         * m4/config-h.m4: New file.
66083
66084 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66085
66086         * config/srclist.txt: Add elisp-comp.
66087
66088 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * MODULES.html.sh (Support for building libraries and executables):
66091         Add elisp-comp.
66092         * build-aux/elisp-comp: New file.
66093         * modules/elisp-comp: New file.
66094
66095 2006-08-24  Bruno Haible  <bruno@clisp.org>
66096
66097         * gnulib-tool (func_create_testdir): Use non-default values of
66098         sourcebase and m4base.
66099
66100 2006-08-24  Bruno Haible  <bruno@clisp.org>
66101
66102         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66103         HTML structure.
66104
66105 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66106
66107         * modules/openat (Depends-on): Add lchown.
66108
66109 2006-08-23  Bruno Haible  <bruno@clisp.org>
66110
66111         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66112         of gl_LOCK_EARLY instead of gl_LOCK.
66113
66114 2006-08-23  Bruno Haible  <bruno@clisp.org>
66115
66116         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66117         on OSF/1 to no.
66118         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66119
66120 2006-08-23  Bruno Haible  <bruno@clisp.org>
66121
66122         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66123         as unusable.
66124
66125         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66126         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66127         (gl_LOCK): New macro.
66128
66129 2006-08-22  Simon Josefsson  <jas@extundo.com>
66130
66131         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66132         to md5 module.
66133
66134 2006-08-22  Simon Josefsson  <jas@extundo.com>
66135
66136         * MODULES.html.sh: Add "Support for maintaining and release
66137         projects".
66138
66139         * build-aux/gnupload: New file, from coreutils.
66140
66141 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         Avoid the need for AC_LIBSOURCES in m4 macros.
66144         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66145         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66146         * modules/check-version (EXTRA_DIST): Add check-version.h.
66147         * modules/crc (EXTRA_DIST): Add crc.h.
66148         * modules/des (EXTRA_DIST): Add des.h.
66149         * modules/gc (EXTRA_DIST): Add gc.h.
66150         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66151         * modules/getline (EXTRA_DIST): Add getline.h.
66152         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66153         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66154         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66155         * modules/md2 (EXTRA_DIST): Add md2.h.
66156         * modules/md4 (EXTRA_DIST): Add md4.h.
66157         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66158         * modules/read-file (EXTRA_DIST): Add read-file.h.
66159         * modules/readline (EXTRA_DIST): Add readline.h.
66160         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66161         rijndael-api-fst.h.
66162
66163 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66164
66165         * m4/rijndael.m4 (gl_ARCFOUR):
66166         * m4/arctwo.m4 (gl_ARCTWO):
66167         * m4/check-version.m4 (gl_CHECK_VERSION):
66168         * m4/crc.m4 (gl_CRC):
66169         * m4/des.m4 (gl_DES):
66170         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66171         * m4/gc.m4 (gl_GC):
66172         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66173         * m4/getline.m4 (gl_FUNC_GETLINE):
66174         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66175         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66176         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66177         * m4/md2.m4 (gl_MD2):
66178         * m4/md4.m4 (gl_MD4):
66179         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66180         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66181         * m4/readline.m4 (gl_FUNC_READLINE):
66182         * m4/rijndael.m4 (gl_RIJNDAEL):
66183         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66184         to get the necessary .h files and whatnot.
66185
66186 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66189         gnulib rather than the other way around.
66190         * config/srclistvars.sh (COREUTILS): Remove.
66191
66192 2006-08-22  Jim Meyering  <jim@meyering.net>
66193
66194         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66195
66196         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66197
66198 2006-08-22  Eric Blake  <ebb9@byu.net>
66199
66200         * modules/regexprops-generic: New file.
66201         * MODULES.html.sh (Support for building documentation): List it.
66202
66203 2006-08-22  Eric Blake  <ebb9@byu.net>
66204
66205         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66206         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66207         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66208         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66209
66210 2006-08-22  Bruno Haible  <bruno@clisp.org>
66211
66212         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66213         and lib_LTLIBRARIES like the other lib_* variables.
66214
66215 2006-08-22  Bruno Haible  <bruno@clisp.org>
66216
66217         * build-aux/x-to-1.in: New file, from GNU gettext.
66218
66219 2006-08-22  Bruno Haible  <bruno@clisp.org>
66220
66221         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66222         <utmpx.h> exists.
66223
66224 2006-08-22  Bruno Haible  <bruno@clisp.org>
66225
66226         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66227         <utmpx.h> exists.
66228
66229 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66230
66231         BeOS portability.
66232         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66233         exist.
66234         Problem reported by Bruno Haible.
66235
66236 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66237
66238         Avoid the need for AC_LIBSOURCES in m4 macros.
66239         * modules/acl (EXTRA_DIST): Add acl.h.
66240         * modules/argmatch (Files): Add m4/argmatch.m4.
66241         (configure.ac): Add gl_ARGMATCH.
66242         (EXTRA_DIST): Renamed from lib_SOURCES, for
66243         consistency with the other modules.  Remove argmatch.c.
66244         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66245         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66246         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66247         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66248         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66249         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66250         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66251         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66252         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66253         * modules/closeout (EXTRA_DIST): Add closeout.h.
66254         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66255         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66256         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66257         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66258         dirname.h; remove basename.c and stripslash.c.
66259         * modules/exclude (EXTRA_DIST): Add exclude.h.
66260         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66261         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66262         * modules/file-type (EXTRA_DIST): Add file-type.h.
66263         * modules/filemode (EXTRA_DIST): Add filemode.h.
66264         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66265         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66266         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66267         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66268         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66269         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66270         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66271         * modules/getdate (EXTRA_DIST): Add getdate.c.
66272         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66273         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66274         * modules/getpass (EXTRA_DIST): Add getpass.h.
66275         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66276         * modules/group-member (EXTRA_DIST): Add group-member.h.
66277         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66278         * modules/hash (EXTRA_DIST): Add hash.h.
66279         * modules/human (EXTRA_DIST): Add human.h.
66280         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66281         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66282         * modules/lchown (EXTRA_DIST): Add lchown.h.
66283         * modules/long-options (EXTRA_DIST): Add long-options.h.
66284         * modules/lstat (EXTRA_DIST): Add lstat.h.
66285         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66286         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66287         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66288         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66289         * modules/memxor (EXTRA_DIST): Add memxor.h.
66290         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66291         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66292         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66293         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66294         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66295         * modules/physmem (EXTRA_DIST): Add physmem.h.
66296         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66297         * modules/posixver (EXTRA_DIST): Add posixver.h.
66298         * modules/quote (EXTRA_DIST): Add quote.h.
66299         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66300         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66301         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66302         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66303         regex_internal.h regexec.c.
66304         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66305         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66306         * modules/same (EXTRA_DIST): Add same.h.
66307         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66308         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66309         * modules/savedir (EXTRA_DIST): Add savedir.h.
66310         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66311         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66312         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66313         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66314         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66315         * modules/strdup (EXTRA_DIST): Add strdup.h.
66316         * modules/strftime (EXTRA_DIST): Add strftime.h.
66317         * modules/strndup (EXTRA_DIST): Add strndup.h.
66318         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66319         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66320         * modules/time_r (EXTRA_DIST): Add time_r.h.
66321         * modules/timespec (EXTRA_DIST): Add timespec.h.
66322         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66323         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66324         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66325         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66326         * modules/userspec (EXTRA_DIST): Add userspec.h.
66327         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66328         * modules/utimens (EXTRA_DIST): Add utimens.h.
66329         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66330         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66331         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66332         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66333         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66334         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66335         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66336         * modules/yesno (EXTRA_DIST): Add yesno.h.
66337
66338 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66339
66340         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66341
66342         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66343         * m4/dev-ino.m4, same-inode.m4: Remove.
66344
66345         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66346         * m4/acl.m4 (AC_FUNC_ACL):
66347         * m4/backupfile.m4 (gl_BACKUPFILE):
66348         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66349         * m4/canon-host.m4 (gl_CANON_HOST):
66350         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66351         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66352         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66353         * m4/cloexec.m4 (gl_CLOEXEC):
66354         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66355         * m4/closeout.m4 (gl_CLOSEOUT):
66356         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66357         * m4/dirname.m4 (gl_DIRNAME):
66358         * m4/exclude.m4 (gl_EXCLUDE):
66359         * m4/exitfail.m4 (gl_EXITFAIL):
66360         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66361         * m4/file-type.m4 (gl_FILE_TYPE):
66362         * m4/filemode.m4 (gl_FILEMODE):
66363         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66364         * m4/fpending.m4 (gl_FUNC_FPENDING):
66365         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66366         * m4/fts.m4 (gl_FUNC_FTS):
66367         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66368         * m4/getdate.m4 (gl_GETDATE):
66369         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66370         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66371         * m4/getpass.m4 (gl_FUNC_GETPASS):
66372         * m4/gettime.m4 (gl_GETTIME):
66373         * m4/getugroups.m4 (gl_GETUGROUPS):
66374         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66375         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66376         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66377         * m4/hash.m4 (gl_HASH):
66378         * m4/idcache.m4 (gl_IDCACHE):
66379         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66380         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66381         * m4/long-options.m4 (gl_LONG_OPTIONS):
66382         * m4/lstat.m4 (gl_FUNC_LSTAT):
66383         * m4/md5.m4 (gl_MD5):
66384         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66385         * m4/memcoll.m4 (gl_MEMCOLL):
66386         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66387         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66388         * m4/memxor.m4 (gl_MEMXOR):
66389         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66390         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66391         * m4/modechange.m4 (gl_MODECHANGE):
66392         * m4/mountlist.m4 (gl_MOUNTLIST):
66393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66394         * m4/openat.m4 (gl_FUNC_OPENAT):
66395         * m4/pathmax.m4 (gl_PATHMAX):
66396         * m4/physmem.m4 (gl_PHYSMEM):
66397         * m4/posixtm.m4 (gl_POSIXTM):
66398         * m4/posixver.m4 (gl_POSIXVER):
66399         * m4/quote.m4 (gl_QUOTE):
66400         * m4/quotearg.m4 (gl_QUOTEARG):
66401         * m4/readtokens.m4 (gl_READTOKENS):
66402         * m4/readutmp.m4 (gl_READUTMP):
66403         * m4/regex.m4 (gl_REGEX):
66404         * m4/safe-read.m4 (gl_SAFE_READ):
66405         * m4/safe-write.m4 (gl_SAFE_WRITE):
66406         * m4/same.m4 (gl_SAME):
66407         * m4/save-cwd.m4 (gl_SAVE_CWD):
66408         * m4/savedir.m4 (gl_SAVEDIR):
66409         * m4/settime.m4 (gl_SETTIME):
66410         * m4/sha1.m4 (gl_SHA1):
66411         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66412         * m4/stat-macros.m4 (gl_STAT_MACROS):
66413         * m4/stat-time.m4 (gl_STAT_TIME):
66414         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66415         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66416         * m4/strdup.m4 (gl_FUNC_STRDUP):
66417         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66418         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66419         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66420         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66421         * m4/time_r.m4 (gl_TIME_R):
66422         * m4/timespec.m4 (gl_TIMESPEC):
66423         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66424         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66425         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66426         * m4/userspec.m4 (gl_USERSPEC):
66427         * m4/utimecmp.m4 (gl_UTIMECMP):
66428         * m4/utimens.m4 (gl_UTIMENS):
66429         * m4/xalloc.m4 (gl_XALLOC):
66430         * m4/xgetcwd.m4 (gl_XGETCWD):
66431         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66432         * m4/xreadlink.m4 (gl_XREADLINK):
66433         * m4/xstrtod.m4 (gl_XSTRTOD):
66434         * m4/yesno.m4 (gl_YESNO):
66435         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66436         to get the necessary .h files and whatnot.
66437
66438 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66439             Bruno Haible  <bruno@clisp.org>
66440
66441         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66442         /bin/sh understanding of '!' conditional negation.
66443
66444 2006-08-21  Jim Meyering  <jim@meyering.net>
66445
66446         * modules/openat (Depends-on): Really alphabetize.
66447
66448         * modules/acl (Depends-on): Add error and quote.
66449
66450         * check-module (find_included_lib_files): Add at-func.c to the
66451         ok-to-include-more-than-once white list.
66452
66453         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66454
66455 2006-08-21  Bruno Haible  <bruno@clisp.org>
66456
66457         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66458         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66459         Reported by Martin Lambers <marlam@marlam.de>.
66460
66461 2006-08-21  Bruno Haible  <bruno@clisp.org>
66462
66463         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66464         specify an installation location, don't emit a noinst_LIBRARIES or
66465         noinst_LTLIBRARIES assignment.
66466
66467 2006-08-21  Bruno Haible  <bruno@clisp.org>
66468
66469         BeOS portability.
66470         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66471         BeOS has mbrtowc() but no <wctype.h>.
66472
66473 2006-08-21  Bruno Haible  <bruno@clisp.org>
66474
66475         BeOS portability.
66476         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66477         exist.
66478
66479 2006-08-21  Bruno Haible  <bruno@clisp.org>
66480
66481         BeOS portability.
66482         * lib/mbchar.h: Include <wctype.h> only if it exists.
66483
66484 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         Remove files that are no longer needed by their respective modules.
66487         * m4/obstack.m4: Remove.
66488         * m4/strerror_r.m4: Remove.
66489         * m4/uint32_t.m4: Remove.
66490         * m4/uintptr_t.m4: Remove.
66491         * m4/ullong_max.m4: Remove.
66492         * m4/xstrtoimax.m4: Remove.
66493         * m4/xstrtoumax.m4: Remove.
66494
66495         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66496         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66497         dependencies now capture this.
66498
66499         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66500         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66501         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66502         * m4/human.m4 (gl_HUMAN): Likewise.
66503         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66504         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66505
66506         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66507
66508         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66509         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66510         stdint.
66511         * m4/human.m4 (gl_HUMAN): Likewise.
66512         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66513         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66514         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66515         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66516         * m4/xstrtol (gl_XSTRTOL): Likewise.
66517
66518         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66519         AC_TYPE_LONG_LONG_INT.
66520         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66521         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66522         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66523         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66524
66525         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66526         on stdbool.
66527
66528         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66529         (gl_PREREQ_XSTRTOUL): Remove.
66530
66531         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66532
66533         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66534         mode.
66535
66536 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66537
66538         Add and change modules to make it easier for coreutils to use
66539         gnulib-tool.
66540         * modules/backupfile (Files): Remove m4/d-ino.m4.
66541         (Depends-on): Add d-ino.
66542         * modules/cycle-check (Depends-on): Add stdint.
66543         (lib_SOURCES): Add cycle-check.h.
66544         * modules/d-ino: New module.
66545         * modules/d-type: New module.
66546         * modules/error (Files): Remove m4/strerror_r.m4.
66547         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66548         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66549         m4/inttypes_h.m4, m4/uintmax_t.m4.
66550         (Depends-on): Add stdint.
66551         (lib_SOURCES): Add fsusage.h.
66552         * modules/getcwd (Files): Remove d-ino.m4.
66553         (Depends-on): Add d-ino.
66554         * modules/getndelim2 (Depends-on): Add stdint.
66555         * modules/glob (Files): Remove m4/d-type.m4.
66556         (Depends-on): Add d-type.
66557         * modules/host-os: New module.
66558         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66559         m4/inttypes_h.m4, m4/uintmax_t.m4.
66560         * Depends-on: Add stdint.
66561         (lib_SOURCES): Add human.h.
66562         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66563         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66564         m4/uintmax_t.m4, m4/ulonglong.m4.
66565         (Depends-on): Add stdint.
66566         (EXTRA_DIST): Add inttostr.h.
66567         * modules/lchmod: New module.
66568         * modules/link-follow: New module.
66569         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66570         (Depends-on): Add lchmod.
66571         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66572         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66573         (Depends-on): Add stdint.
66574         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66575         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66576         (Depends-on): Add stdint.
66577         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66578         * modules/perl: New module.
66579         * modules/regex (Depends-on): Add stdint.
66580         * modules/rmdir-errno: New module.
66581         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66582         m4/intmax_t.m4.
66583         (Depends-on): Add stdint.
66584         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66585         m4/uintmax_t.m4.
66586         (Depends-on): Add stdint.
66587         * modules/unlink-busy: New module.
66588         * modules/utimecmp (Depends-on): Add stdint.
66589         * modules/uptime: New module.
66590         * modules/winsz-ioctl: New module.
66591         * modules/winsz-termios: New module.
66592         * modules/xnanosleep (Depends-on): Add nanosleep.
66593         * modules/ullong_max: Remove.
66594         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66595         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66596         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66597         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66598         (Depends-on): Add inttypes.
66599         (lib_SOURCES): Add xstrtol.h.
66600         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66601         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66602         * MODULES.html.sh: Move 'assert' into the assert section.
66603         Move 'dummy' into the linking section.
66604         Remove ullong_max.
66605         Add section for compatibility checks for POSIX:2001 functions,
66606         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66607         winsz-ioctl, and winsz-termios into it.
66608         Add lchmod.
66609         Add top-level Misc section and put host-os, perl, and uptime
66610         into it.
66611
66612 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66613
66614         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66615         now assume the stdint module.  Do not include inttypes.h.
66616         * lib/fsusage.h: Likewise.
66617         * lib/getndelim2.c: Likewise.
66618         * lib/human.h: Likewise.
66619         * lib/inttostr.h: Likewise.
66620         * lib/obstack.c: Likewise.
66621         * lib/regex_internal.h: Likewise.
66622         * lib/tempname.c: Likewise.
66623         * lib/utimecmp.c: Likewise.
66624         * lib/xstrtol.h: Likewise.
66625
66626         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66627
66628         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66629         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66630         * lib/xtime.h: Likewise.
66631
66632 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66633
66634         * modules/openat (Files): Add lib/fchmodat.c.
66635         Fixes problem reported by Jay Youngman.
66636
66637 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66638
66639         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66640         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66641
66642 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66643             Bruno Haible  <bruno@clisp.org>
66644
66645         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66646         and is a script that invokes bison. Tighten the code. Add comments.
66647
66648 2006-08-18  Jim Meyering  <jim@meyering.net>
66649
66650         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66651         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66652         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66653         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66654
66655 2006-08-18  Bruno Haible  <bruno@clisp.org>
66656
66657         * modules/bison-i18n: New file.
66658         * MODULES.html.sh (Internationalization functions): Add it.
66659
66660 2006-08-18  Bruno Haible  <bruno@clisp.org>
66661
66662         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66663         sys/statvfs.h. When getmntinfo was found, check its declaration and
66664         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66665
66666 2006-08-18  Bruno Haible  <bruno@clisp.org>
66667
66668         * m4/bison-i18n.m4: New file, from bison.
66669
66670 2006-08-18  Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66673         (ME_DUMMY): Treat "kernfs" as a dummy.
66674         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66675
66676 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66677
66678         Update from coreutils.
66679
66680         2006-08-15  Jim Meyering  <jim@meyering.net>
66681
66682         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66683
66684         2006-01-17  Jim Meyering  <jim@meyering.net>
66685
66686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66687
66688         2006-01-11  Jim Meyering  <jim@meyering.net>
66689
66690         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66691         Check for the lchmod function.
66692
66693 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         Update from coreutils.
66696
66697         * lib/__fpending.h: Add copyright notice.
66698         * lib/fprintftime.h: Likewise.
66699         * lib/savedir.c: Use (C) in copyright notice.
66700         * lib/savedir.h: Likewise.
66701
66702         2006-08-15  Jim Meyering  <jim@meyering.net>
66703
66704         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66705         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66706         in support of the EXPECTED_ERRNO macro.
66707         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66708         definitions.  Instead, define the appropriate symbols and include
66709         "at-func.c".
66710         * lib/mkdirat.c (mkdirat): Likewise.
66711         * lib/fchmodat.c (fchmodat): Likewise.
66712         (ENOSYS): Remove definition.
66713         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66714         it.  Don't include "unistd--.h" -- it wasn't ever used.
66715
66716         2006-01-17  Jim Meyering  <jim@meyering.net>
66717
66718         Rewrite fts.c not to change the current working directory,
66719         by using openat, fstatat, fdopendir, etc..
66720
66721         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66722         (HAVE_OPENAT_SUPPORT): Define.
66723         [_LIBC] (fchdir): Don't undef or define; no longer used.
66724         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66725         Now, this `function' always succeeds, and consumes its file descriptor
66726         parameter -- so callers must not close such FDs.  Update callers.
66727         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66728         (diropen): Add parameter, SP.  Adjust all callers.
66729         Implement using diropen_fd, rather than open.
66730         (fts_open): Initialize new member, fts_cwd_fd.
66731         Remove fts_rft-setting code.
66732         (fts_close): Close fts_cwd_fd, if necessary.
66733         (__opendir2): Define in terms of opendir or opendirat,
66734         depending on whether the FST_NOCHDIR flag is set.
66735         (fts_build): Since fts_safe_changedir consumes its FD, and since
66736         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66737         and close the dup'd file descriptor upon failure.
66738         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66739         (fts_safe_changedir): Tweak semantics to reflect that this function
66740         now calls cwd_advance_fd and hence consumes its FD argument.
66741         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66742         [struct FTS] (fts_rft): Remove now-unused member.
66743         [struct FTS] (fts_cycle.state): Improve comment.
66744
66745         * lib/openat.c (openat_needs_fchdir): New function.
66746         * lib/openat.h (openat_needs_fchdir): Declare it.
66747
66748 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66749
66750         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66751         Problem and fix reported by Pádraig Brady in
66752         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66753
66754 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66755
66756         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66757
66758 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * lib/memcoll.c (memcoll): Optimize for the common case where the
66761         arguments are bytewise equal.
66762
66763 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66764
66765         * doc/regexprops-generic.texi: Add a copyright notice.
66766
66767 2006-08-15  Bruno Haible  <bruno@clisp.org>
66768
66769         * modules/tmpdir (License): Change to LGPL.
66770
66771 2006-08-15  Bruno Haible  <bruno@clisp.org>
66772
66773         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66774         module.
66775
66776 2006-08-14  Simon Josefsson  <jas@extundo.com>
66777
66778         * config/srclist.txt: Add gnupload.
66779
66780 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         Change copyright notice from LGPL 2 to GPL 2, since that's the
66783         standard form used in the gnulib repository.
66784         * tests/test-lock.c: Likewise.
66785         * tests/test-stdint.c: Likewise.
66786         * tests/test-tls.c: Likewise.
66787
66788         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66789         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66790         Add copyright notice.
66791
66792         * check-module: Add copyright notice.  Output a copyright
66793         notice if "--version" is specified.
66794         * modules/COPYING: New file.
66795         * tests/test-getaddrinfo.c: Add copyright notice.
66796         * tests/test-verify.c: Likewise.
66797
66798 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66799
66800         Change copyright notice from LGPL 2 to GPL 2, since that's the
66801         standard form used in the gnulib repository.
66802         * lib/lock.c: LGPL -> GPL.
66803         * lib/lock.h: Likewise.
66804         * lib/strnlen1.c: Likewise.
66805         * lib/strnlen1.h: Likewise.
66806         * lib/tls.c: Likewise.
66807         * lib/tls.h: Likewise.
66808         * lib/tmpdir.c: Likewise.
66809
66810         * lib/TODO: Remove; this belongs only in coreutils.
66811
66812 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66813
66814         Add copyright notices to long-enough files that lack them, since
66815         otherwise the files aren't clearly free.  Use the same notice that
66816         getdate.texi already uses.
66817         * doc/alloca-opt.texi: Add copyright notice.
66818         * doc/alloca.texi: Likewise.
66819         * doc/ctime.texi: Likewise.
66820         * doc/functions.texi: Likewise.
66821         * doc/gcd.texi: Likewise.
66822         * doc/gnulib-tool.texi: Likewise.
66823         * doc/inet_ntoa.texi: Likewise.
66824         * doc/visibility.texi: Likewise.
66825
66826         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66827         * doc/quote.texi: Add copyright notice.
66828
66829         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66830         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66831         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66832         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66833         is now obsolete, and give a pointer to the Sun list.
66834         Add copyright notice.
66835
66836 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66837
66838         * config/srclistvars.sh: Add copyright notice.
66839
66840 2006-08-14  Eric Blake  <ebb9@byu.net>
66841
66842         Import the following change from libc:
66843
66844         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66845
66846         Upstream bug 2997.
66847         * lib/misc/error.c: Add space between program name and message if file
66848         name is missing.
66849
66850 2006-08-12  Karl Berry  <karl@gnu.org>
66851
66852         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66853         remove, these originate in gnulib now.
66854
66855 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66856
66857         * doc/Makefile (standards.info standards.html standards.dvi):
66858         Also depend on make-stds.texi.
66859
66860 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66863         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66864
66865         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66866         in wchar_t.  Problem reported by Eric Blake.
66867
66868         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66869         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66870         Also, help the compiler to keep LEN in a register.
66871
66872 2006-08-11  Eric Blake  <ebb9@byu.net>
66873
66874         * users.txt: Sort.  Add tar.
66875
66876 2006-08-11  Bruno Haible  <bruno@clisp.org>
66877
66878         * users.txt: New file.
66879
66880 2006-08-11  Bruno Haible  <bruno@clisp.org>
66881
66882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66883         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66884
66885 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         * modules/snprintf (Depends-on): Remove minmax.
66888         (Maintainer): Add self and Bruno.
66889
66890 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66891
66892         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66893         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66894         (EOVERFLOW): Define if the system does not.
66895         Do not include "minmax.h"; it wasn't used.
66896         (snprintf): Don't assume size_t promotes to an unsigned type.
66897         Fix bug when generated string was too long for the buffer: the
66898         buffer's contents are supposed to be the initial prefix of the
66899         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66900         exceeds INT_MAX; do the check ourselves.
66901
66902         Import the following changes from libc:
66903
66904         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66905
66906         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66907         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66908         set wc to the byte which couldn't be converted.
66909         (re_string_reconstruct): Don't clear valid_raw_len before calling
66910         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66911         tip_context using re_string_context_at.
66912
66913         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66914
66915         * lib/posix/regex.h: g++ still cannot handled [restrict].
66916
66917         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66918
66919         * lib/posix/regex.h: Remove special handling for VMS.
66920
66921 2006-08-10  Jim Meyering  <jim@meyering.net>
66922
66923         * modules/same-inode: New module.
66924         * modules/dev-ino: New module.
66925         * modules/cycle-check: Depend on these modules, rather than simply
66926         including their .h files.
66927         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66928         required via m4/cycle-check.m4.
66929         * modules/same: Depend on new same-inode module, rather than
66930         including same-inode.h.
66931         * modules/chdir-safer: New file.
66932
66933         * modules/chown (Depends-on): Add stat-macros.
66934
66935 2006-08-10  Jim Meyering  <jim@meyering.net>
66936
66937         * m4/cycle-check.m4: New file.
66938         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66939         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66940
66941 2006-08-10  Eric Blake  <ebb9@byu.net>
66942
66943         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66944         in from original proposal.
66945
66946 2006-08-10  Eric Blake  <ebb9@byu.net>
66947         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66948
66949         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66950         namespace.
66951
66952 2006-08-10  Bruno Haible  <bruno@clisp.org>
66953
66954         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66955         as well.
66956
66957 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         Sync from coreutils.
66960
66961         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66962
66963         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66964         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66965
66966 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66967
66968         * modules/restrict: Remove; no longer needed now that we assume
66969         Autoconf 2.59 or later.
66970         * MODULES.html.sh: Remove 'restrict'.
66971         * modules/argp (Depends-on): Remove 'restrict'.
66972         * modules/base64 (Depends-on): Likewise.
66973         * modules/gc (Depends-on): Likewise.
66974         * modules/getaddrinfo (Depends-on): Likewise.
66975         * modules/glob (Depends-on): Likewise.
66976         * modules/inet_ntop (Depends-on): Likewise.
66977         * modules/inet_pton (Depends-on): Likewise.
66978         * modules/memxor (Depends-on): Likewise.
66979         * modules/regex (Depends-on): Likewise.
66980         * modules/strtok_r (Depends-on): Likewise.
66981         * modules/time_r (Depends-on): Likewise.
66982
66983 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66984
66985         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66986         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66987         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66988         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66989         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66990         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66991         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66992         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66993
66994         Merge from coreutils.
66995         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66996         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66998         * m4/time_r.m4 (gl_TIME_R): Likewise.
66999
67000 2006-08-09  Karl Berry  <karl@gnu.org>
67001
67002         * config/srclist.txt: no more gettext-tools, per Bruno.
67003
67004 2006-08-08  Eric Blake  <ebb9@byu.net>
67005
67006         * modules/verror: New module.
67007         * MODULES.html.sh: Document it.
67008
67009 2006-08-08  Eric Blake  <ebb9@byu.net>
67010
67011         * lib/verror.h, lib/verror.c: New files.
67012
67013 2006-08-08  Eric Blake  <ebb9@byu.net>
67014
67015         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67016         verror_at_line output complies with GNU Coding Standards even when
67017         file is NULL.
67018
67019 2006-08-07  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67022         versions of AIX.
67023         Reported by Ralf Wildenhues.
67024
67025 2006-08-07  Bruno Haible  <bruno@clisp.org>
67026
67027         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67028         in an AC_DEFUN. Needed so that the autoconf snippets can use
67029         AC_REQUIRE.
67030
67031 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67032
67033         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67034         Initialize pkgdata_DATA.
67035         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67036         overriding it.
67037
67038 2006-08-06  Eric Blake  <ebb9@byu.net>
67039
67040         * lib/error.h: Fold in some upstream changes from glibc.
67041         * lib/error.c: Likewise.
67042
67043 2006-08-04  Bruno Haible  <bruno@clisp.org>
67044
67045         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67046         Make the mostlyclean-local rule depend on mostlyclean-generic.
67047         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67048
67049 2006-07-31  Bruno Haible  <bruno@clisp.org>
67050
67051         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67052         <stdlib.h>, <string.h>.
67053
67054 2006-07-30  Bruno Haible  <bruno@clisp.org>
67055
67056         * modules/readlink (License): Change to LGPL.
67057
67058 2006-07-30  Bruno Haible  <bruno@clisp.org>
67059
67060         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67061         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67062         set PKGDATADIR to point to it.
67063
67064 2006-07-30  Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/csharpexec (configure.ac): Comment out macro invocation.
67067         * modules/javaexec (configure.ac): Likewise.
67068         * modules/javacomp-script (configure.ac): Likewise.
67069
67070         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67071
67072 2006-07-30  Bruno Haible  <bruno@clisp.org>
67073
67074         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67075         linked-list.
67076
67077 2006-07-30  Bruno Haible  <bruno@clisp.org>
67078
67079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67080
67081 2006-07-30  Bruno Haible  <bruno@clisp.org>
67082
67083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67084         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67085         get removed.
67086
67087 2006-07-29  Bruno Haible  <bruno@clisp.org>
67088
67089         Make it possible for gnulib-tool to work with locally modified or
67090         augmented gnulib repositories.
67091         * gnulib-tool (func_usage): Document --local-dir option.
67092         (local_gnulib_dir): New variable.
67093         Handle --local-dir option.
67094         (func_lookup_file): New function.
67095         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67096         (func_get_description, func_get_filelist, func_get_description,
67097         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67098         func_get_automake_snippet, func_get_include_directive,
67099         func_get_license, func_get_maintainer): Use func_lookup_file.
67100         (func_import, func_create_testdir): Use func_lookup_file.
67101
67102 2006-07-29  Bruno Haible  <bruno@clisp.org>
67103
67104         * modules/setenv (Depends-on): Add unistd.
67105
67106 2006-07-29  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67109
67110 2006-07-29  Bruno Haible  <bruno@clisp.org>
67111
67112         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67113
67114 2006-07-29  Bruno Haible  <bruno@clisp.org>
67115
67116         * gnulib-tool (import, update): If there is no Makefile.am, look at
67117         aclocal.m4, instead of bailing out.
67118
67119 2006-07-29  Bruno Haible  <bruno@clisp.org>
67120
67121         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67122         Categorize the options by when they are useful.
67123
67124 2006-07-29  Bruno Haible  <bruno@clisp.org>
67125
67126         * gnulib-tool (func_usage): Document option --no-libtool.
67127         Handle option --no-libtool.
67128         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67129         for changed semantics of $libtool variable.
67130         (func_import): Likewise. If libtool is not used, show this through
67131         an option --no-libtool.
67132         (func_create_testdir): Update.
67133
67134 2006-07-29  Bruno Haible  <bruno@clisp.org>
67135
67136         * gnulib-tool (func_import): Extend error message about missing
67137         --doc-base.
67138
67139 2006-07-29  Bruno Haible  <bruno@clisp.org>
67140
67141         * gnulib-tool (func_import): Don't create the $docbase directory if
67142         there is no file to store there.
67143
67144 2006-07-29  Bruno Haible  <bruno@clisp.org>
67145
67146         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67147         relevant, look for configure.ac there, not in the current directory.
67148         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67149
67150 2006-07-29  Bruno Haible  <bruno@clisp.org>
67151
67152         * gnulib-tool (SORT): New variable.
67153         (func_usage): Undocument --assume-autoconf option.
67154         Remove --assume-autoconf option handling.
67155         (autoconf_minversion): Determine from the contents of configure.ac.
67156         (func_import): Remove autoconf_minversion handling.
67157         Suggested by Eric Blake.
67158
67159 2006-07-29  Bruno Haible  <bruno@clisp.org>
67160
67161         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67162
67163 2006-07-29  Bruno Haible  <bruno@clisp.org>
67164
67165         * config/srclist.txt (*setenv.[ch]): Remove rules.
67166
67167 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67168
67169         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67170
67171 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67172
67173         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67174         arpa/inet.h.
67175
67176 2006-07-28  Simon Josefsson  <jas@extundo.com>
67177
67178         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67179         * modules/inet_pton (Depends-on): Likewise.
67180
67181 2006-07-28  Simon Josefsson  <jas@extundo.com>
67182
67183         * m4/netinet_in_h.m4: New file.
67184
67185 2006-07-28  Simon Josefsson  <jas@extundo.com>
67186
67187         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67188         #include's.
67189
67190 2006-07-28  Simon Josefsson  <jas@extundo.com>
67191
67192         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67193         #include's.
67194
67195 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67198         setgid on directories only if they set these bits.
67199         * lib/modechange.h: Remove obsolete comment about masks.
67200
67201 2006-07-28  Eric Blake  <ebb9@byu.net>
67202
67203         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67204         macro expansion.
67205
67206 2006-07-28  Bruno Haible  <bruno@clisp.org>
67207
67208         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67209
67210 2006-07-28  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67213
67214 2006-07-28  Bruno Haible  <bruno@clisp.org>
67215
67216         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67217         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67218         Define fallbacks.
67219         Avoids link error on FreeBSD 4.x.
67220         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67221
67222         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67223         encoding.
67224         * lib/mbswidth.c (iswcntrl): Likewise.
67225
67226 2006-07-27  Bruno Haible  <bruno@clisp.org>
67227
67228         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67229         test.
67230
67231 2006-07-27  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67234         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67235         defined.
67236
67237 2006-07-26  Eric Blake  <ebb9@byu.net>
67238
67239         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67240
67241 2006-07-26  Eric Blake  <ebb9@byu.net>
67242
67243         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67244         like mingw that lack mkstemp.
67245         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67246         avoid compilation warning on mingw.
67247
67248 2006-07-26  Bruno Haible  <bruno@clisp.org>
67249
67250         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67251         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67252         INT_FAST*_MIN, INTPTR_MIN.
67253
67254 2006-07-25  Bruno Haible  <bruno@clisp.org>
67255
67256         * modules/version-etc (Depends-on): Add stdarg.
67257
67258 2006-07-25  Bruno Haible  <bruno@clisp.org>
67259
67260         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67261         complex commands.
67262
67263 2006-07-25  Bruno Haible  <bruno@clisp.org>
67264
67265         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67266         defined in <stdarg.h> or config.h.
67267
67268 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67269
67270         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67271         (gl_STDIO_SAFER): Remove.
67272
67273 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         * MODULES.html.sh (File stream based Input/Output):
67276         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67277         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67278         * modules/fopen-safer, modules/tmpfile-safer: New files.
67279         * modules/stdio-safer: Remove.
67280
67281 2006-07-24  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/tmpdir: New file.
67284         * MODULES.html.sh (File system functions): Add it.
67285
67286 2006-07-24  Bruno Haible  <bruno@clisp.org>
67287
67288         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67289         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67290
67291 2006-07-24  Bruno Haible  <bruno@clisp.org>
67292
67293         * modules/clean-temp: New file.
67294
67295 2006-07-24  Bruno Haible  <bruno@clisp.org>
67296
67297         * m4/tmpdir.m4: New file, from GNU gettext.
67298
67299 2006-07-24  Bruno Haible  <bruno@clisp.org>
67300
67301         * lib/tmpdir.h: New file, from GNU gettext.
67302         * lib/tmpdir.c: New file, from GNU gettext.
67303
67304 2006-07-24  Bruno Haible  <bruno@clisp.org>
67305
67306         * lib/clean-temp.h: New file, from GNU gettext.
67307         * lib/clean-temp.c: New file, from GNU gettext.
67308
67309 2006-07-23  Eric Blake  <ebb9@byu.net>
67310
67311         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67312         (Depends-on): Add binary-io.
67313
67314 2006-07-23  Eric Blake  <ebb9@byu.net>
67315
67316         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67317
67318 2006-07-23  Eric Blake  <ebb9@byu.net>
67319
67320         * lib/tmpfile-safer.c: New file.
67321         * lib/stdio-safer.h (fopen_safer): Add prototype.
67322         * lib/stdio--.h (tmpfile): Make safer.
67323
67324 2006-07-23  Bruno Haible  <bruno@clisp.org>
67325
67326         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67327         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67328         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67329         gl_linked_remove_at): Use it.
67330
67331 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67332         and Simon Josefsson <jas@extundo.com>
67333
67334         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67335
67336         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67337
67338 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * modules/close-stream: New file.
67341         * modules/closeout (Description): Make it clear that it exits
67342         with a diagnostic on error.
67343         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67344         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67345
67346 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67347
67348         * m4/close-stream.m4: New file.
67349
67350 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/close-stream.c, lib/close-stream.h: New files.
67353
67354 2006-07-22  Bruno Haible  <bruno@clisp.org>
67355
67356         Merge from GNU gettext 0.15.
67357
67358         2006-05-01  Bruno Haible  <bruno@clisp.org>
67359
67360                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67361
67362         2006-07-22  Bruno Haible  <bruno@clisp.org>
67363
67364                 * modules/javaversion: New file.
67365                 * MODULES.html.sh (Java): Add javaversion.
67366
67367         2006-03-12  Bruno Haible  <bruno@clisp.org>
67368
67369                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67370
67371         2005-12-04  Bruno Haible  <bruno@clisp.org>
67372
67373                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67374                 (untested).
67375
67376         2006-06-21  Bruno Haible  <bruno@clisp.org>
67377
67378                 Avoid warnings from recent versions of mcs.
67379                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67380                 -o, -L, -r any more. Use options documented since mcs-1.0
67381                 instead. Similarly for -g.
67382
67383         2005-12-04  Bruno Haible  <bruno@clisp.org>
67384
67385                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67386                 .resources, not .resource.
67387
67388         2005-07-09  Bruno Haible  <bruno@clisp.org>
67389
67390                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67391                 add a .dll suffix.
67392                 Reported by Mark Junker <mjscod@gmx.de>.
67393
67394         2006-07-22  Bruno Haible  <bruno@clisp.org>
67395
67396                 * modules/gettext: Upgrade to gettext-0.15.
67397                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67398                 m4/visibility.m4.
67399                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67400
67401 2006-07-22  Bruno Haible  <bruno@clisp.org>
67402
67403         Merge from GNU gettext 0.15.
67404
67405         2006-03-25  Bruno Haible  <bruno@clisp.org>
67406
67407                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67408
67409         2006-07-21  Bruno Haible  <bruno@clisp.org>
67410
67411                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67412                 "1.1".
67413
67414         2006-05-09  Bruno Haible  <bruno@clisp.org>
67415
67416                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67417                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67418                 for the conftestver execution.
67419
67420         2006-05-01  Bruno Haible  <bruno@clisp.org>
67421
67422                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67423                 optional target-version argument. Verify that the compiler
67424                 groks source of the specified source-version, or add -source
67425                 option as necessary. Verify that the compiler produces
67426                 bytecode in the specified target-version, or add -target and
67427                 -source options as necessary. Make the result of the test
67428                 available as variable CONF_JAVAC. Also log error output in
67429                 config.log.
67430
67431         2006-03-11  Bruno Haible  <bruno@clisp.org>
67432
67433                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67434
67435         2006-05-09  Bruno Haible  <bruno@clisp.org>
67436
67437                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67438                 CLASSPATH_SEPARATOR to a semicolon.
67439
67440         2006-03-12  Bruno Haible  <bruno@clisp.org>
67441
67442                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67443                 available as variable CONF_JAVA, for subsequent autoconf
67444                 tests. Also log error output in config.log.
67445
67446         2006-07-19  Bruno Haible  <bruno@clisp.org>
67447
67448                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67449                 that getline works on glibc2 systems. Needed to avoid trouble
67450                 in relocatable.c.
67451                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67452
67453         2005-12-04  Bruno Haible  <bruno@clisp.org>
67454
67455                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67456                 launcher (untested).
67457
67458         2005-12-04  Bruno Haible  <bruno@clisp.org>
67459
67460                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67461
67462         2006-07-22  Bruno Haible  <bruno@clisp.org>
67463
67464                 * gettext.m4: Update from GNU gettext-0.15.
67465                 * nls.m4: Likewise.
67466                 * po.m4: Likewise.
67467                 * inttypes-pri.m4: Likewise.
67468                 * inttypes-h.m4: Renamed from inttypes.m4.
67469                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67470
67471 2006-07-22  Bruno Haible  <bruno@clisp.org>
67472
67473         Merge from GNU gettext 0.15.
67474
67475         2005-07-05  Bruno Haible  <bruno@clisp.org>
67476
67477                 * printf-args.c (printf_fetchargs): Work around broken
67478                 definition of wint_t on mingw.
67479
67480         2005-02-12  Bruno Haible  <bruno@clisp.org>
67481
67482                 * xallocsa.h: Add extern "C" for C++.
67483
67484         2006-05-17  Bruno Haible  <bruno@clisp.org>
67485
67486                 Cygwin portability.
67487                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67488
67489         2006-04-30  Bruno Haible  <bruno@clisp.org>
67490
67491                 * progreloc.c: Include <mach-o/dyld.h> if available.
67492                 (find_executable): Use _NSGetExecutablePath when possible.
67493
67494         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67495
67496                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67497                 function.
67498
67499         2005-12-29  Bruno Haible  <bruno@clisp.org>
67500
67501                 * progreloc.c (set_program_name_and_installdir): Fix
67502                 compilation error.
67503
67504         2005-12-04  Bruno Haible  <bruno@clisp.org>
67505
67506                 Cygwin portability.
67507                 * progreloc.c: Include <windows.h> also on Cygwin.
67508                 (find_executable): Add support for Cygwin.
67509                 (set_program_name_and_installdir): Handle also platforms with
67510                 nonempty EXEEXT.
67511
67512         2006-07-11  Bruno Haible  <bruno@clisp.org>
67513
67514                 * javacomp.c: Fix a comment.
67515                 Reported by Jim Meyering.
67516
67517         2006-04-30  Bruno Haible  <bruno@clisp.org>
67518
67519                 * javacomp.h (compile_java_class): Add source_version,
67520                 target_version arguments.
67521                 * javacomp.c: Rewritten to choose only a compiler that
67522                 respects the specified source_version and target_version.
67523
67524         2006-06-27  Bruno Haible  <bruno@clisp.org>
67525
67526                 Assume correct S_ISDIR macro.
67527                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67528
67529         2006-07-22  Bruno Haible  <bruno@clisp.org>
67530
67531                 * javaversion.h: New file, from GNU gettext.
67532                 * javaversion.c: New file, from GNU gettext.
67533                 * javaversion.java: New file, from GNU gettext.
67534                 * javaversion.class: New file, from GNU gettext.
67535
67536         2006-05-17  Bruno Haible  <bruno@clisp.org>
67537
67538                 Cygwin portability.
67539                 * javaexec.c (execute_java_class): Test for jview program
67540                 also on Cygwin.
67541
67542         2006-04-09  Bruno Haible  <bruno@clisp.org>
67543
67544                 * fatal-signal.c: Don't include string.h.
67545                 (at_fatal_signal): Use a copying loop instead of memcpy.
67546
67547         2005-12-04  Bruno Haible  <bruno@clisp.org>
67548
67549                 * csharpexec.c: Add support for 'clix' launcher (untested).
67550                 (execute_csharp_using_sscli): New function.
67551                 (execute_csharp_program): Call it.
67552
67553         2006-06-21  Bruno Haible  <bruno@clisp.org>
67554
67555                 Avoid warnings from recent versions of mcs.
67556                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67557                 -o, -L, -r any more. Use options documented since mcs-1.0
67558                 instead. Similarly for -g.
67559
67560         2005-07-09  Bruno Haible  <bruno@clisp.org>
67561
67562                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67563                 add a .dll suffix.
67564                 Reported by Mark Junker <mjscod@gmx.de>.
67565
67566         2006-06-17  Bruno Haible  <bruno@clisp.org>
67567
67568                 * config.charset: Update for NetBSD 3.0.
67569
67570         2006-05-17  Bruno Haible  <bruno@clisp.org>
67571
67572                 Cygwin portability.
67573                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67574
67575         2006-05-16  Bruno Haible  <bruno@clisp.org>
67576
67577                 * localcharset.c [CYGWIN]: Include <windows.h>.
67578                 (get_charset_aliases): For Cygwin, return the same CPxxx
67579                 aliases list as under WIN32.
67580                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67581                 the environment variables. Fall back to GetACP().
67582
67583         2006-04-05  Bruno Haible  <bruno@clisp.org>
67584
67585                 * config.charset: Update Juan Manuel Guerrero's address.
67586
67587         2005-02-12  Bruno Haible  <bruno@clisp.org>
67588
67589                 * allocsa.h: Add extern "C" for C++.
67590
67591         2005-02-10  Bruno Haible  <bruno@clisp.org>
67592
67593                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67594                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67595
67596         2006-07-22  Bruno Haible  <bruno@clisp.org>
67597
67598                 * gettext.h: Update to GNU gettext-0.15.
67599
67600 2006-07-22  Bruno Haible  <bruno@clisp.org>
67601
67602         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67603         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67604         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67605
67606 2006-07-21  Eric Blake  <ebb9@byu.net>
67607
67608         * modules/stdlib-safer: New file.
67609         * MODULES.html.sh (File stream based Input/Output): Add
67610         stdlib-safer.
67611
67612 2006-07-21  Eric Blake  <ebb9@byu.net>
67613
67614         * lib/stdlib-safer.h: New file from coreutils, required by
67615         stdlib--.h.
67616
67617 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67620
67621 2006-07-20  Bruno Haible  <bruno@clisp.org>
67622
67623         * gnulib-tool: Recognize new option --assume-autoconf.
67624         (autoconf_minversion): New variable.
67625         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67626
67627 2006-07-20  Bruno Haible  <bruno@clisp.org>
67628
67629         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67630
67631 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67632
67633         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67634         Reindent and repaginate.
67635
67636 2006-07-19  Derek Price  <derek@ximbiot.com>
67637
67638         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67639         Correct grammar.
67640
67641 2006-07-17  Bruno Haible  <bruno@clisp.org>
67642
67643         * modules/list: New file.
67644         * modules/array-list: New file.
67645         * modules/carray-list, modules/carray-list-tests: New files.
67646         * modules/linked-list, modules/linked-list-tests: New files.
67647         * modules/avltree-list, modules/avltree-list-tests: New files.
67648         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67649         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67650         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67651         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67652         * modules/oset: New file.
67653         * modules/array-oset: New file.
67654         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67655         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67656         * tests/test-carray_list.c: New file.
67657         * tests/test-linked_list.c: New file.
67658         * tests/test-avltree_list.c: New file.
67659         * tests/test-rbtree_list.c: New file.
67660         * tests/test-linkedhash_list.c: New file.
67661         * tests/test-avltreehash_list.c: New file.
67662         * tests/test-rbtreehash_list.c: New file.
67663         * tests/test-avltree_oset.c: New file.
67664         * tests/test-rbtree_oset.c: New file.
67665         * MODULES.html.sh (Container data structures): New section.
67666
67667 2006-07-17  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/gl_list.m4: New file.
67670
67671 2006-07-17  Bruno Haible  <bruno@clisp.org>
67672
67673         * lib/gl_list.h: New file.
67674         * lib/gl_list.c: New file.
67675         * lib/gl_array_list.h: New file.
67676         * lib/gl_array_list.c: New file.
67677         * lib/gl_carray_list.h: New file.
67678         * lib/gl_carray_list.c: New file.
67679         * lib/gl_linked_list.h: New file.
67680         * lib/gl_linked_list.c: New file.
67681         * lib/gl_anylinked_list1.h: New file.
67682         * lib/gl_anylinked_list2.h: New file.
67683         * lib/gl_avltree_list.h: New file.
67684         * lib/gl_avltree_list.c: New file.
67685         * lib/gl_anyavltree_list1.h: New file.
67686         * lib/gl_anyavltree_list2.h: New file.
67687         * lib/gl_rbtree_list.h: New file.
67688         * lib/gl_rbtree_list.c: New file.
67689         * lib/gl_anyrbtree_list1.h: New file.
67690         * lib/gl_anyrbtree_list2.h: New file.
67691         * lib/gl_anytree_list1.h: New file.
67692         * lib/gl_anytree_list2.h: New file.
67693         * lib/gl_linkedhash_list.h: New file.
67694         * lib/gl_linkedhash_list.c: New file.
67695         * lib/gl_anyhash_list1.h: New file.
67696         * lib/gl_anyhash_list2.h: New file.
67697         * lib/gl_avltreehash_list.h: New file.
67698         * lib/gl_avltreehash_list.c: New file.
67699         * lib/gl_rbtreehash_list.h: New file.
67700         * lib/gl_rbtreehash_list.c: New file.
67701         * lib/gl_anytreehash_list1.h: New file.
67702         * lib/gl_anytreehash_list2.h: New file.
67703
67704         * lib/gl_oset.h: New file.
67705         * lib/gl_oset.c: New file.
67706         * lib/gl_array_oset.h: New file.
67707         * lib/gl_array_oset.c: New file.
67708         * lib/gl_avltree_oset.h: New file.
67709         * lib/gl_avltree_oset.c: New file.
67710         * lib/gl_rbtree_oset.h: New file.
67711         * lib/gl_rbtree_oset.c: New file.
67712         * lib/gl_anytree_oset.h: New file.
67713
67714 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         * m4/mkancesdirs.m4: New file.
67717         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67718         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67719         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67720         it.
67721
67722 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67725         * lib/mkancesdirs.h: New files.
67726         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67727         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67728         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67729         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67730         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67731         callers changed.  Revamp internals significantly, by not
67732         attempting to create directories that are temporarily more
67733         permissive than the final results.  Do not attempt to use
67734         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67735         This removes some race conditions, fixes some bugs, and simplifies
67736         things.  Use new dirchownmod function to do owner and mode changes.
67737         * lib/mkdir-p.h: Likewise.
67738         * lib/modechange.c (octal_to_mode): New function.
67739         (struct mode_change): New member mentioned.
67740         (make_node_op_equals): New arg mentioned.  All callers changed.
67741         (mode_compile): Keep track of which mode bits the user has explicitly
67742         mentioned.
67743         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67744         New arg PMODE_BITS, to keep track of which mode bits the user
67745         mentioned; it treats S_ISUID and S_ISGID speciall.
67746         All callers changed.
67747         * lib/modechange.h: Likewise.
67748
67749 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         * MODULES.html.sh: Add mkancestors.
67752         * modules/mkancesdirs: New module.
67753         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67754         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67755         The chdir-safer and afs files are now orphans; I'll remove them
67756         unless someone speaks up.
67757         Add lib/dirchownmod.c, lib/dirchownmod.h.
67758         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67759         Add lchown, mkancesdirs.
67760         (Maintainer): Add self.
67761
67762 2006-07-15  Karl Berry  <karl@gnu.org>
67763
67764         * gnulib-tool: help message wording/arrangement.
67765
67766 2006-07-14  Simon Josefsson  <jas@extundo.com>
67767
67768         * doc/gnulib.texi (Libtool and Windows): New section.
67769
67770 2006-07-12  Simon Josefsson  <jas@extundo.com>
67771
67772         * modules/gendocs (License): Fix license, approved by Karl.
67773
67774 2006-07-12  Eric Blake  <ebb9@byu.net>
67775
67776         * MODULES.html.sh: Add gendocs.
67777
67778 2006-07-11  Eric Blake  <ebb9@byu.net>
67779
67780         * modules/fdl: New module, to install doc/fdl.texi.
67781         * MODULES.html.sh: Add new section for documentation modules.
67782         * gnulib-tool: Avoid space-tab.
67783         (--doc-base): New option, to manage files from doc.
67784
67785 2006-07-11  Eric Blake  <ebb9@byu.net>
67786
67787         * m4/absolute-header.m4: Fix comments to match recent change.
67788
67789 2006-07-11  Eric Blake  <ebb9@byu.net>
67790
67791         * gnulib-tool: List --doc-base before --tests-base.
67792
67793 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67794
67795         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67796
67797 2006-07-11  Bruno Haible  <bruno@clisp.org>
67798
67799         * README: Mention where to put documentation.
67800
67801 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67802
67803         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67804
67805 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67808         to stdint.m4.
67809
67810 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67811
67812         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67813         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67814         "no/such/file/stdint.h" when there is no such file, so that
67815         the resulting C code can be parsed by dodgy compilers.
67816         Problems reported by Bob Proulx.
67817
67818 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67819
67820         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67821         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67822         macros into the GNU _D_EXACT_NAMLEN.
67823         * lib/savedir.c:  Likewise.
67824         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67825
67826 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67827         and Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67830         * m4/savedir.m4:
67831         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67832         macros into the GNU _D_EXACT_NAMLEN.
67833
67834 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67835
67836         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67837         around the absolute name, to work around a problem with the HP-UX
67838         11.23 native C compiler, reported by Bob Proulx.
67839
67840 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         * doc/maintain.texi, make-stds.texi: Sync from
67843         <http://savannah.gnu.org/projects/gnustandards>.
67844
67845 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67848
67849 2006-07-09  Jim Meyering  <jim@meyering.net>
67850
67851         * m4/glob.m4: Remove a doubled word in a comment.
67852
67853 2006-07-09  Jim Meyering  <jim@meyering.net>
67854
67855         * lib/argp-pv.c: Remove a doubled word in a comment.
67856         * lib/check-version.c (check_version): Likewise.
67857         * lib/javacomp.c (compile_java_class): Likewise.
67858
67859 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67860
67861         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67862         for the benefit of people using Autoconf 2.60.  If you want to
67863         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67864         (or m4/onceonly.m4, if pre-2.57) manually.
67865
67866 2006-07-08  Jim Meyering  <jim@meyering.net>
67867
67868         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67869         comment.
67870         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67871         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67872         comment.
67873
67874 2006-07-08  Jim Meyering  <jim@meyering.net>
67875
67876         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67877
67878 2006-07-07  Simon Josefsson  <jas@extundo.com>
67879
67880         * tests/test-crc.c: Change expected crc value, the test vector
67881         were probably computed using the old broken crc.c?
67882
67883 2006-07-06  Simon Josefsson  <jas@extundo.com>
67884
67885         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67886         now the canonical place for the M4 file).
67887
67888         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67889         from the sys_socket dependency now.
67890
67891         * modules/inet_pton (Files): Ditto.
67892
67893         * modules/inet_ntop (Files): Ditto.
67894
67895 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67896
67897         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67898         not gl_PREREQ_GETUSERSHELL.
67899
67900 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67901
67902         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67903         with only one argument, for Autoconf 2.60.
67904         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67905         expand to nothing, so add a shell command to avoid syntax error.
67906         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67907
67908 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67909
67910         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67911
67912 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67915         no longer needed.  Check for isblank decl.
67916         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67917         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67918         of existence.
67919
67920 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * lib/getloadavg.c: Use __VMS, not VMS.
67923         * lib/getopt.c: Likewise.
67924         * lib/getpagesize.h: Likewise.
67925         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67926         and probably does not work.
67927
67928 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67929
67930         * lib/.cppi-disable: Add wcwidth.
67931         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67932         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67933         (ISGRAPH): Remove.  All uses changed to isgraph.
67934         (FOLD) [!defined _LIBC]: Remove special case.
67935         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67936         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67937         HAVE_ISBLANK.
67938         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67939         case.
67940
67941 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67942
67943         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67944         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67945         brackets.  Other minor changes to suppress some compiler
67946         warnings.
67947
67948 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67949         and Paul Eggert  <eggert@cs.ucla.edu>
67950
67951         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67952         of invoking obsolescent AC_HEADER_DIRENT macro.
67953         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67954         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67955         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67956         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67957         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67958         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67959         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67960         * m4/readdir.m4: Remove; no longer needed.
67961
67962 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67963         and Paul Eggert  <eggert@cs.ucla.edu>
67964
67965         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67966         Don't worry about this obsolete case any more.
67967         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67968         directories.
67969         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67970         worry about this obsolete case any more.
67971         * lib/fts.c: Likewise.
67972         * lib/getcwd.c: Likewise.
67973         * lib/glob.h: Likewise.
67974         * lib/savedir.c: Likewise.
67975
67976 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67979         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67980         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67981         needed.
67982         All uses removed.
67983         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67984         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67985         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67986         needed.
67987         * m4/getdate.m4 (gl_GETDATE): Likewise.
67988         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67989         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67990         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67991         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67992         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67993         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67994         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67995         needed.
67996
67997 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * lib/memcasecmp.c: Include <limits.h>.
68000         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68001         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68002         Don't assume isdigit succeeds only on '0' through '9'.
68003
68004 2006-07-05  Eric Blake  <ebb9@byu.net>
68005
68006         * modules/getaddrinfo (Depends-on): Add snprintf.
68007
68008 2006-07-05  Eric Blake  <ebb9@byu.net>
68009
68010         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68011         to avoid 'header present but could not be compiled' on cygwin.
68012
68013 2006-07-05  Eric Blake  <ebb9@byu.net>
68014
68015         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68016         missing from netdb.h.
68017         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68018
68019 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68020
68021         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68022         no longer needed.
68023         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68024         * m4/getdate.m4 (gl_GETDATE): Likewise.
68025         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68026         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68027         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68028         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68029         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68030
68031 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68032
68033         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68034         All uses of is_space replaced by isspace.
68035         * lib/exit.h: Don't talk about STDC_HEADERS.
68036         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68037         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68038         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68039         replaced by isprint etc.
68040         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68041         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68042         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68043         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68044         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68045         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68046
68047 2006-07-05  Bruno Haible  <bruno@clisp.org>
68048
68049         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68050         the function exists, before testing against AIX.
68051         Reported by Martin Lambers <marlam@marlam.de>.
68052
68053 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68054
68055         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68056         From Mark D. Baushke.
68057
68058 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68059
68060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68061         to the absolute name, not just one, to bypass Sun C 5.8's
68062         "warning: #include of /usr/include/... may be non-portable".
68063
68064 2006-07-04  Eric Blake  <ebb9@byu.net>
68065
68066         * modules/dirname-tests: New test module.
68067         * tests/test-dirname.c: New file, replacing dirname.c
68068         TEST_DIRNAME section that was recently deleted.
68069
68070 2006-07-04  Bruno Haible  <bruno@clisp.org>
68071
68072         Assume ANSI C header files and <ctype.h> functions.
68073         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68074         (mbsnwidth): Use isprint, iscntrl instead.
68075
68076 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         Merge from coreutils.
68079         * MODULES.html.sh: Add xstrtold.
68080         * modules/xstrtold: New file.
68081         * modules/cycle-check (Files): Add lib/same-inode.h.
68082         * modules/dirname (Files): Add m4/double-slash-root.m4.
68083         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68084         * modules/mkdir-p (Files): Add lib/same-inode.h.
68085         * modules/same (Files): Add lib/same-inode.h.
68086
68087 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68090         This is to keep the terminology clean; POSIX talks about
68091         "absolute pathnames", not "full pathnames", but the GNU
68092         Coding Standards say to use "path" for something else;
68093         so use "absolute" to keep both sides happy.
68094         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68095         Set gl_absolute_header, not gl_full_header_path.
68096         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68097         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68098         All uses changed.
68099
68100         Merge from coreutils.
68101
68102         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68105         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68106         want to require the building of c-strtod.o.
68107         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68108         needs -lm directly.
68109         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68110
68111         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68114         --as-needed option if available.  Problem reported by Albert Chin in
68115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68116         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68117         cc merely issues a bunch of annoying warnings for --as-needed
68118         (this problem was reported by Bob Proulx).  Also, try linking with
68119         -lm to detect a bug in binutils 2.16 (this problem was reported
68120         by Ralf Wildenhues).
68121
68122         2006-06-18  Jim Meyering  <jim@meyering.net>
68123
68124         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68125         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68126         macro.
68127         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68128         also check for glibc-2.4's abort-inducing bug.
68129
68130         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68131         Low-probability clean-up should be to use rmdir to get rid of
68132         the just-created directory, not unlink.
68133
68134         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68135         configure fail, and request a bug report to inform us about it.
68136         Add a comment that, barring reports to the contrary, in 2007 we'll
68137         assume ftruncate is universally available.
68138
68139         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68142
68143         2006-03-12  Jim Meyering  <jim@meyering.net>
68144
68145         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68146         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68147         * m4/same.m4 (gl_SAME): Likewise.
68148         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68149
68150         2006-03-11  Eric Blake  <ebb9@byu.net>
68151
68152         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68153         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68154         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68155         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68156
68157 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68158
68159         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68160         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68161         reported by Mark D. Baushke, one in
68162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68163
68164         Merge from coreutils.
68165
68166         * lib/.cppi-disable: Add stdint_.h.
68167         * lib/.cvsignore: Add stdint.h.
68168
68169         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68170
68171         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68172         both double and long double versions.
68173         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68174         * lib/xstrtold.c: New file.
68175         * lib/xstrtod.h (xstrtold): New decl.
68176
68177         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68178
68179         * lib/filemode.c (setst): Remove.
68180         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68181         (arguably) clearer, and the generated code is a bit smaller on my
68182         Debian GNU/Linux stable x86 host.
68183
68184         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68185
68186         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68187         Assume that filemode.h includes sys/types.h and sys/stat.h.
68188         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68189         (ftypelet): Reorder to put common cases first, for efficiency.
68190         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68191         to do 'M'.
68192         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68193         of 10, for compatibility with FreeBSD.  All callers changed.
68194         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68195         types that can't be deduced solely from st_mode.  First arg is now a
68196         const pointer.
68197         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68198         (strmode): Renamed from mode_string.
68199         (filemodestring): New decl.
68200         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68201         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68202         needed.
68203         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68204
68205         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68206
68207         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68208         fsusage.h now does that.  Include fsusage.h first, to test interface.
68209         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68210         at most one method (the old code could have generated decls that
68211         didn't conform to C89, not that this was ever exercised).
68212         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68213
68214         2006-03-19  Jim Meyering  <jim@meyering.net>
68215
68216         Work even in a chroot where d_ino values for entries in "/"
68217         don't match the stat.st_ino values for the same names.
68218         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68219         number, iterate through all entries again, using lstat instead.
68220         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68221         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68222
68223         * lib/getcwd.c (__getcwd): Clarify a comment.
68224         Use memcpy in place of a call to strcpy.
68225
68226         2006-03-12  Jim Meyering  <jim@meyering.net>
68227
68228         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68229         matches that of the current directory (which we're about to chdir ".."
68230         out of), then save the dev-ino of the parent, instead.
68231
68232         * lib/same-inode.h (SAME_INODE): New file/macro.
68233         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68234         Include "same-inode.h", instead.
68235         * lib/same.c: Likewise.
68236         * lib/cycle-check.h: Include "same-inode.h".
68237         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68238         * lib/cycle-check.c (SAME_INODE): Remove definition.
68239         * lib/root-dev-ino.h: Include "same-inode.h".
68240
68241         2006-03-11  Eric Blake  <ebb9@byu.net>
68242
68243         * lib/same.c (same_name): s/base_name/last_component/
68244         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68245         * lib/filenamecat.c (file_name_concat): Likewise.
68246
68247         2006-03-11  Eric Blake  <ebb9@byu.net>,
68248                     Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68251         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68252         drive prefix.
68253         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68254         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68255         (last_component): New method.
68256         * lib/dirname.c (dir_len): Determine when drive letters need a
68257         subsequent slash.  Preserve // when it is special.
68258         (dir_name): Don't append dot when drive letter is absolute.
68259         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68260         * lib/basename.c (base_name): New semantics - malloc the result.
68261         Preserve // when it is special.  Preserve relative files that look
68262         like drive letters.
68263         (base_len): Preserve // when it is special.
68264         (last_component): New method, similar to old base_name semantics.
68265         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68266         base_name.  Strip redundant slashes from ///.
68267
68268 2006-07-03  Jim Meyering  <jim@meyering.net>
68269
68270         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68271         macro is used before the first cycle_check call.
68272
68273 2006-07-03  Eric Blake  <ebb9@byu.net>
68274
68275         * modules/dirname (Depends-on): Add xstrndup.
68276
68277 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68278
68279         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68280         test cases, so that config.log is a bit easier to follow.
68281
68282 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68283
68284         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68285         both are 64 bits, since this seems to be the tradition, and this
68286         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68287         we ever run into a host that prefers long long to long in this
68288         case, we'll need another configure-time test.  Problem reported by
68289         Jim Meyering.
68290
68291 2006-07-02  Eric Blake  <ebb9@byu.net>
68292
68293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68294
68295 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68296
68297         * modules/inttypes (Depends-on): No longer depends on stdint.
68298         * modules/stdint (Description): Say more about assumptions.
68299         Say that the fast types might differ.  Say macros are used.
68300         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68301         (Makefile.am): Revise list of substituted symbols to match
68302         new stdint.m4.
68303         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68304         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68305         * tests/test-stdint.c (verify_same_types)
68306         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68307         the code conforms to C99/C89.
68308         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68309         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68310
68311 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68314         but fix a bug, by requiring at least 64 bits.
68315         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68316         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68317         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68318         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68319
68320         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68321         changes.  Make 2.59 a prerequisite.  Check and substitute for
68322         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68323         inttypes.h.  Do not use special include files; just use the
68324         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68325         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68326         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68327         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68328         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68329         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68330         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68331         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68332         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68333         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68334         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68335         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68336         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68337         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68338         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68339         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68340         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68341         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68342         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68343         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68344         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68345         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68346         not check for things that C99 does not require, e.g., int8_t.  If
68347         a test isn't needed unless <stdint.h> isn't working, and is
68348         unlikely to be needed for any other reason, then don't do it
68349         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68350         size_t, since we assume C89 freestanding at least.  Do not check
68351         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68352         the right thing even if the types are not defined.  Instead use:
68353         (gl_STDINT_TYPE_PROPERTIES): New macro.
68354         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68355         testing whether <sys/types.h> clashes, as Autoconf does this for
68356         us now.  All uses removed.
68357         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68358         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68359         (gl_CHECK_TYPE_SAME):
68360         Remove; no longer needed.
68361         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68362         exists, since we'll return 0 anyway in that case.
68363         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68364
68365 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68368         possible collision with system files.
68369         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68370         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68371         WCHAR_MIN and WCHAR_MAX in this case.
68372         (<stddef.h>): Do not include; no longer needed.
68373         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68374         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68375         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68376         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68377         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68378         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68379         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68380         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68381         !defined(__c99))]: Include in this case too, since it's harmless
68382         now.
68383         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68384         dangerous to do so.
68385         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68386         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68387         (_STDINT_MIN, _STDINT_MAX): New macros.
68388         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68389         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68390         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68391         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68392         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68393         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68394         macros, not typedefs; this simplifies things quite a bit.
68395         Use long int for all types narrower than int64_t.
68396         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68397         Define in terms of long long int or int64_t or long int,
68398         not int64_t or int32_t.  This saves some compile-time testing.
68399         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68400         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68401         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68402         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68403         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68404         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68405         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68406         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68407         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68408         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68409         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68410         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68411         undef any previous version and define our own version, for
68412         simplicity and consistency with the new macros for types.
68413         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68414         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68415         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68416         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68417         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68418         @WINT_T_SUFFIX@ to keep things simple here.
68419         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68420         Simplify by assuming typical 8/16/32/64 host, since we're
68421         already doing that elsewhere anyway.
68422         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68423         and assume long long int is 64 bits if available.  This
68424         speeds up 'configure'.
68425
68426 2006-07-01  Eric Blake  <ebb9@byu.net>
68427
68428         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68429         Reported by Andreas Buening.
68430
68431 2006-07-01  Eric Blake  <ebb9@byu.net>
68432
68433         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68434
68435 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68436
68437         * lib/getaddrinfo.c: fixed typo
68438
68439 2006-06-29  Jim Meyering  <jim@meyering.net>
68440
68441         * modules/strftime (Maintainer): Add my name, since with the
68442         FPRINTFTIME changes strftime.c has forked from glibc.
68443
68444 2006-06-29  Eric Blake  <ebb9@byu.net>
68445
68446         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68447
68448 2006-06-29  Eric Blake  <ebb9@byu.net>
68449
68450         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68451
68452 2006-06-29  Eric Blake  <ebb9@byu.net>
68453
68454         * lib/stat_.h: New file.
68455
68456 2006-06-29  Eric Blake  <ebb9@byu.net>
68457
68458         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68459         unused static function.
68460
68461 2006-06-29  Eric Blake  <ebb9@byu.net>
68462
68463         * doc/functions.texi (Function Portability): Document missing lstat
68464         on mingw.
68465
68466 2006-06-29  Eric Blake  <ebb9@byu.net>
68467
68468         * MODULES.html.sh: Add sys_stat.
68469         * modules/sys_stat: New module.
68470         * modules/mkstemp (Depends-on): Add sys_stat.
68471
68472 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68473
68474         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68475
68476 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68477
68478         * m4/c-bs-a.m4: Removed.
68479
68480 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68481
68482         * lib/strftime.c: Assume strftime() exists.
68483
68484 2006-06-29  Derek Price  <derek@ximbiot.com>
68485
68486         * modules/c-bs-a: Removed - \a is C89.
68487         * MODULES.html.sh: Remove c-bs-a.
68488
68489 2006-06-29  Bruno Haible  <bruno@clisp.org>
68490
68491         * modules/wcwidth (License): Change to LGPL.
68492
68493 2006-06-28  Simon Josefsson  <jas@extundo.com>
68494
68495         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68496         on _WIN32.
68497
68498         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68499         getnameinfo.
68500
68501 2006-06-28  Simon Josefsson  <jas@extundo.com>
68502
68503         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68504
68505 2006-06-28  Simon Josefsson  <jas@extundo.com>
68506
68507         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68508         functions there.  It will succeed on Windows XP, but on Windows
68509         2000 and (presumably) earlier, it will fail, and use the internal
68510         re-implementation.
68511         (use_win32_p): New function.
68512         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68513         Support AI_NUMERICSERV to disable getservbyname.
68514         (getnameinfo): New function, only supports
68515         NI_NUMERICHOST|NI_NUMERICSERV for now.
68516
68517         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68518         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68519         getnameinfo.
68520
68521 2006-06-28  Eric Blake  <ebb9@byu.net>
68522
68523         * modules/wcwidth: New file.
68524         * modules/mbchar (Depends-on): Add wcwidth.
68525         * modules/mbswidth (Depends-on): Add wcwidth.
68526         * MODULES.html.sh: Add wcwidth.
68527
68528 2006-06-28  Eric Blake  <ebb9@byu.net>
68529
68530         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68532
68533 2006-06-28  Eric Blake  <ebb9@byu.net>
68534
68535         * lib/xvasprintf.h: Fix comments.
68536
68537 2006-06-28  Eric Blake  <ebb9@byu.net>
68538
68539         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68540         * lib/mbswidth.c (wcwidth): Move from here...
68541         * lib/wcwidth.h: ...to this new file.
68542
68543 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68544
68545         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68546
68547         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68548         it's obsolete.
68549         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68550
68551 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68552
68553         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68554         Autoconf 2.60 says this stuff was obsolete.
68555
68556 2006-06-28  Bruno Haible  <bruno@clisp.org>
68557
68558         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68559
68560 2006-06-28  Bruno Haible  <bruno@clisp.org>
68561
68562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68563         gt_TYPE_WCHAR_T.
68564
68565 2006-06-28  Bruno Haible  <bruno@clisp.org>
68566
68567         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68568         declaration for wcwidth.
68569         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68570
68571 2006-06-28  Bruno Haible  <bruno@clisp.org>
68572
68573         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68574         (mkdir): Define using _mkdir.
68575
68576 2006-06-28  Bruno Haible  <bruno@clisp.org>
68577
68578         * lib/getaddrinfo.h: Fix POSIX URL.
68579         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68580         _WIN32.
68581         (use_win32_p): Make static.
68582         (getaddrinfo): Reject service name if it is empty or does not consist
68583         solely of decimal digits, or if its value is > 65535.
68584         (getnameinfo): Remove useless casts.
68585
68586 2006-06-27  Simon Josefsson  <jas@extundo.com>
68587
68588         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68589         Eggert and Martin Lambers.
68590
68591 2006-06-27  Simon Josefsson  <jas@extundo.com>
68592
68593         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68594         Eggert and Martin Lambers.
68595
68596 2006-06-27  Bruno Haible  <bruno@clisp.org>
68597
68598         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68599         result to 0, not to empty.
68600         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68601
68602 2006-06-27  Bruno Haible  <bruno@clisp.org>
68603
68604         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68605
68606 2006-06-26  Simon Josefsson  <jas@extundo.com>
68607
68608         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68609         present.
68610
68611 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68614         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68615         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68616
68617 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68618
68619         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68620
68621 2006-06-26  Bruno Haible  <bruno@clisp.org>
68622
68623         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68624
68625 2006-06-26  Bruno Haible  <bruno@clisp.org>
68626
68627         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68628
68629 2006-06-26  Bruno Haible  <bruno@clisp.org>
68630
68631         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68632         SGI C compiler in pre-C99 mode.
68633         Suggested by Mark D. Baushke and Larry Jones.
68634
68635 2006-06-26  Bruno Haible  <bruno@clisp.org>
68636
68637         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68638         WCHAR_MAX.
68639         Reported by Mark D. Baushke and Larry Jones.
68640
68641 2006-06-26  Bruno Haible  <bruno@clisp.org>
68642
68643         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68644         in pre-C99 mode.
68645         Suggested by Mark D. Baushke and Larry Jones.
68646
68647 2006-06-23  Simon Josefsson  <jas@extundo.com>
68648             Bruno Haible  <bruno@clisp.org>
68649
68650         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68651         Emit mostlyclean-local rule.
68652         (func_emit_tests_Makefile_am): Likewise.
68653         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68654
68655 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68656
68657         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68658
68659 2006-06-23  Bruno Haible  <bruno@clisp.org>
68660
68661         * tests/test-stdint.c: Update to match ISO C 99 Technical
68662         Corrigendum 1.
68663
68664 2006-06-23  Bruno Haible  <bruno@clisp.org>
68665
68666         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68667
68668 2006-06-23  Bruno Haible  <bruno@clisp.org>
68669
68670         * lib/stdint_.h: Treat IRIX like OpenBSD.
68671
68672 2006-06-23  Bruno Haible  <bruno@clisp.org>
68673
68674         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68675         ISO C 99 Technical Corrigendum 1.
68676
68677 2006-06-22  Simon Josefsson  <jas@extundo.com>
68678
68679         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68680         MinGW.
68681
68682 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68685         needed.  Some compiler complained about some of them.  Problem reported
68686         by Larry Jones in
68687         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68688
68689 2006-06-21  Simon Josefsson  <jas@extundo.com>
68690
68691         * tests/test-getaddrinfo.c: New file.
68692
68693         * modules/getaddrinfo-tests: New file.
68694
68695         * MODULES.html.sh: Add inet_pton.
68696
68697         * modules/inet_pton: New file.
68698
68699 2006-06-21  Simon Josefsson  <jas@extundo.com>
68700
68701         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68702         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68703         of using the (limited) gnulib implementation on Windows XP.
68704
68705         * m4/inet_pton.m4: New file.
68706
68707 2006-06-21  Simon Josefsson  <jas@extundo.com>
68708
68709         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68710         variable.
68711
68712         * lib/socket_.h: Don't define WINVER.
68713
68714         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68715         slightly modified to work in gnulib.
68716
68717 2006-06-21  Simon Josefsson  <jas@extundo.com>
68718
68719         * doc/gnulib.texi (Windows sockets): Add.
68720
68721 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * lib/read-file.c (fread_file): Start with buffer allocation of
68724         0 bytes rather than 1 byte; this simplifies the code.
68725         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68726         code to free buffer and save/restore errno.
68727         (internal_read_file): Remove unused local.
68728
68729 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68732         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68733         Problem reported by Denis Excoffier in
68734         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68735
68736 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68737
68738         * modules/sys_socket, modules/socklen: Include sys/types since
68739         FreeBSD 4.x's sys/socket.h needs it.
68740
68741 2006-06-19  Simon Josefsson  <jas@extundo.com>
68742
68743         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68744
68745 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68748
68749 2006-06-19  Bruno Haible  <bruno@clisp.org>
68750
68751         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68752         and FULL_PATH_INTTYPES_H in angle brackets.
68753         Reported by Mark D. Baushke <mdb@gnu.org>.
68754
68755 2006-06-17  Eric Blake  <ebb9@byu.net>
68756
68757         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68758         errno.
68759
68760 2006-06-17  Bruno Haible  <bruno@clisp.org>
68761
68762         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68763         <sys/inttypes.h>.
68764
68765 2006-06-17  Bruno Haible  <bruno@clisp.org>
68766
68767         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68768         whether errno is declared. Assume <errno.h> declares errno.
68769
68770 2006-06-17  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68773
68774 2006-06-17  Bruno Haible  <bruno@clisp.org>
68775
68776         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68777         problem on Solaris 2.5.1.
68778
68779 2006-06-16  Eric Blake  <ebb9@byu.net>
68780
68781         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68782         * lib/unicodeio.c [!defined errno]: Likewise.
68783         * lib/strtol.c [!defined errno]: Likewise.
68784         * lib/strtod.c [!defined errno]: Likewise.
68785
68786 2006-06-15  Eric Blake  <ebb9@byu.net>
68787
68788         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68789
68790 2006-06-15  Eric Blake  <ebb9@byu.net>
68791
68792         * config/srclist.txt (ssize_t.m4): Lose sync.
68793
68794 2006-06-15  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/stdint (Files): Include m4/full-header-path.m4,
68797         m4/size_max.m4, m4/wchar_t.m4.
68798         (Makefile.am): Many more substitutions.
68799         * modules/stdint-tests: New file.
68800         * tests/test-stdint.c: New file.
68801
68802 2006-06-15  Bruno Haible  <bruno@clisp.org>
68803
68804         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68805         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68806         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68807         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68808         gl_CHECK_TYPE_SAME): New macros.
68809
68810 2006-06-15  Bruno Haible  <bruno@clisp.org>
68811
68812         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68813
68814 2006-06-15  Bruno Haible  <bruno@clisp.org>
68815
68816         * lib/stdint_.h: Rewritten to be fully auto-configured.
68817         Fixes bug on HP-UX/IA64.
68818
68819 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * lib/getdate.y (__attribute__): Don't define if already defined.
68822         Problem reported by Larry Jones.
68823         * lib/utimens.c (__attribute__): Likewise.
68824
68825 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68828         reported by Andreas Schwab.
68829
68830 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68831             Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68834         check for the declaration of strnlen and a run test that exposes the
68835         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68836         rpl_strndup.
68837
68838 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68839             Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68842
68843 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68844
68845         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68846         compile test, for Tru64 4.0D.
68847
68848 2006-05-28  Karl Berry  <karl@gnu.org>
68849
68850         * config/srclist.txt (printf-args.c): lose sync.
68851
68852 2006-05-26  Martin Lambers  <marlam@marlam.de>
68853
68854         * lib/getpass.c: Updates the test for the native W32 API, and adds
68855         missing includes, thus fixing compilation warnings.
68856
68857 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68858
68859         * lib/exclude.c (exclude_fnmatch): New function.
68860         (excluded_file_name): Call exclude_fnmatch.
68861         * lib/exclude.h (excluded_file_name): New prototype
68862
68863 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * lib/tempname.c (small_open, large_open): New macros.
68866         (__open, __open64) [!_LIBC]: Remove.
68867         (__gen_tempname): Use small_open and large_open instead of __open
68868         and __open64.  This fixes a portability bug on HP-UX 11.11i
68869         reported by Simon Wing-Tang in
68870         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68871
68872 2006-05-24  Bruno Haible  <bruno@clisp.org>
68873
68874         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68875         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68876         Reported by Thorsten Maerz <torte@netztorte.de> via
68877         Aaron Stone <aaron@serendipity.cx>.
68878
68879 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68880
68881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68882         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68883         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68884         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68885         not really conditional on the cache.
68886         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68887
68888 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68891         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68892         (my_usleep): Don't mishandle maximum value.
68893
68894 2006-05-19  Jim Meyering  <jim@meyering.net>
68895
68896         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68897
68898 2006-05-17  Bruno Haible  <bruno@clisp.org>
68899
68900         Cygwin portability.
68901         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68902
68903 2006-05-17  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/stdint_.h: Fix recognition of Cygwin.
68906
68907 2006-05-15  Bruno Haible  <bruno@clisp.org>
68908
68909         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68910         on libtool patch by Ralf Wildenhues.
68911
68912 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68915         test for C99 conformance; (bool) 0.5 is an integer constant
68916         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68917         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68918
68919 2006-05-11  Simon Josefsson  <jas@extundo.com>
68920
68921         * m4/xvasprintf.m4: Fix obvious typo.
68922
68923 2006-05-11  Jim Meyering  <jim@meyering.net>
68924
68925         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68926         James Lemley.
68927
68928 2006-05-10  Simon Josefsson  <jas@extundo.com>
68929
68930         * lib/md4.c: Typo fix, update copyright years.
68931         (K1, K2): Don't use L because it turn computations into 64-bit on
68932         64-bit platforms.
68933
68934 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68935
68936         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68937         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68938         unwanted sign propagation, e.g., on hosts with 64-bit int.
68939         There still are some problems with reeelly weird theoretical hosts
68940         (e.g., 33-bit int) but it's not worth worrying about now.
68941         * lib/sha1.c (rol): Likewise.
68942         (K1, K2, K3, K4): Remove unnecessary L suffix.
68943
68944 2006-05-10  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/des.c: Cast to avoid warnings.
68947
68948 2006-05-09  Bruno Haible  <bruno@clisp.org>
68949
68950         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68951         (Depends-on): Depend also on xsize, stdarg.
68952         (configure.ac): Add gl_XVASPRINTF.
68953
68954 2006-05-09  Bruno Haible  <bruno@clisp.org>
68955
68956         * m4/xvasprintf.m4: New file.
68957
68958 2006-05-09  Bruno Haible  <bruno@clisp.org>
68959
68960         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68961         (EOVERFLOW): Define fallback value.
68962         (xstrcat): New function.
68963         (xvasprintf): Recognize the special case of a string concatenation.
68964
68965 2006-05-08  Eric Blake  <ebb9@byu.net>
68966
68967         * gnulib-tool (func_version): Base copyright year on CVS date.
68968         (func_emit_copyright_notice): New function.
68969         (func_emit_lib_Makefile_am): Use it.
68970         (func_emit_tests_Makefile_am): Likewise.
68971         (func_import): Likewise.
68972
68973 2006-05-08  Bruno Haible  <bruno@clisp.org>
68974
68975         * modules/stdarg: New file.
68976         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68977
68978 2006-05-08  Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/stdarg.m4: New file, from GNU gettext.
68981
68982 2006-05-08  Bruno Haible  <bruno@clisp.org>
68983
68984         * config/srclist.txt (build-aux/config.rpath): different from latest
68985         release.
68986
68987 2006-05-08  Bruno Haible  <bruno@clisp.org>
68988
68989         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68990
68991 2006-05-05  Jim Meyering  <jim@meyering.net>
68992
68993         * m4/warning.m4: New file, derived from bison's file by the same name.
68994
68995 2006-05-03  Bruno Haible  <bruno@clisp.org>
68996
68997         * lib/stdint_.h: Shorter URL.
68998         * lib/inttypes.h: Likewise.
68999
69000 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69001
69002         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69003
69004 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69005
69006         * lib/verify.h: Document the internals better.  Most of this change
69007         was written by Bruno Haible.
69008
69009 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69010
69011         * doc/verify.texi: New file, partly based on a proposal by
69012         Bruno Haible.
69013
69014 2006-05-02  Bruno Haible  <bruno@clisp.org>
69015
69016         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69017         test from here...
69018         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69019
69020 2006-04-29  Bruno Haible  <bruno@clisp.org>
69021
69022         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69023         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69024
69025 2006-04-29  Bruno Haible  <bruno@clisp.org>
69026
69027         * gnulib-tool: Make --update option actually work.
69028
69029 2006-04-29  Bruno Haible  <bruno@clisp.org>
69030
69031         * doc/gcd.texi: New file.
69032         * doc/gnulib.texi: Include it.
69033
69034 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * lib/getdate.y (get_date): When adding relative date, start with the
69037         initial time, not with the result of the first mktime call.
69038
69039 2006-04-25  Bruno Haible  <bruno@clisp.org>
69040
69041         * gnulib-tool (func_import): Output the include directives in three
69042         blocks, sorted separately.
69043         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69044
69045 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69048         to define main with arguments, for C++.  Reported by Eric Blake.
69049         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69050         Prefer 'int main ()' to 'int main (void)', for C++.
69051         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69052         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69053         for 'main', for C99 and C++.
69054
69055 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69058         Don't assume that exit status -1 is valid.
69059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69060         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69061         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69062         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69063         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69064         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69065         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69066         functions can be used without declaring them, or that you can
69067         exit with status -1.
69068         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69069
69070 2006-04-24  Karl Berry  <karl@gnu.org>
69071
69072         * config/srclist.txt (longdouble.m4): sync lost.
69073
69074 2006-04-24  Eric Blake  <ebb9@byu.net>
69075
69076         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69077
69078 2006-04-24  Bruno Haible  <bruno@clisp.org>
69079
69080         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69081         poll() implementation in AIX.
69082         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69083
69084 2006-04-24  Bruno Haible  <bruno@clisp.org>
69085
69086         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69087         assigned exactly once.
69088
69089 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69090             Bruno Haible  <bruno@clisp.org>
69091
69092         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69093         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69094         for AM_CPPFLAGS.
69095
69096 2006-04-23  Bruno Haible  <bruno@clisp.org>
69097
69098         * modules/copy-file: Depend on unistd.
69099         * modules/execute: Likewise.
69100         * modules/fatal-signal: Likewise.
69101         * modules/findprog: Likewise.
69102         * modules/mkdtemp : Likewise.
69103         * modules/pipe: Likewise.
69104         * modules/wait-process: Likewise.
69105
69106 2006-04-23  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69109         condition was already detected.
69110         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69111
69112 2006-04-23  Bruno Haible  <bruno@clisp.org>
69113
69114         * lib/copy-file.c: Include <unistd.h> unconditionally.
69115         * lib/execute.c: Likewise.
69116         * lib/fatal-signal.c: Likewise.
69117         * lib/findprog.c: Likewise.
69118         * lib/mkdtemp.c: Likewise.
69119         * lib/pipe.h: Likewise.
69120         * lib/pipe.c: Likewise.
69121         * lib/wait-process.h: Likewise.
69122
69123 2006-04-23  Bruno Haible  <bruno@clisp.org>
69124
69125         * gnulib-tool (func_usage): Fix --import description. Document
69126         --update.
69127         (func_import): Create temporary file in a temporary directory, if
69128         --dry-run is specified. Silence errors from 'grep' when there are no
69129         m4 files in $m4dir.
69130         (func_create_testdir): Silence errors from 'grep' when there are no
69131         m4 files in $m4dir.
69132         Reported by Karl Berry <karl@freefriends.org>.
69133
69134 2006-04-20  Bruno Haible  <bruno@clisp.org>
69135
69136         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69137         one argument, so that the code will be portable to Autoconf 2.60.
69138         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69139         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69140         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69141
69142 2006-04-19  Derek Price  <derek@ximbiot.com>
69143             Eric Blake  <ebb9@byu.net>
69144
69145         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69146         rather than "/full/path.h".  Update comment to match.  Shorten &
69147         generalize m4_translit call via AS_TR_CPP.
69148
69149 2006-04-19  Derek Price  <derek@ximbiot.com>
69150             Eric Blake  <ebb9@byu.net>
69151
69152         * lib/inttypes.h: Correct grammar in comment.
69153
69154 2006-04-18  Derek Price  <derek@ximbiot.com>
69155             Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * modules/inttypes: New file.
69158         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69159
69160 2006-04-18  Derek Price  <derek@ximbiot.com>
69161             Paul Eggert  <eggert@cs.ucla.edu>
69162
69163         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69164         New files.
69165
69166 2006-04-18  Derek Price  <derek@ximbiot.com>
69167             Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/inttypes.h: New file.
69170         * lib/strtoimax.c: Assume <inttypes.h>.
69171
69172 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69175         isn't mounted.  Problem reported by Kir Kolyshkin.
69176
69177 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69178
69179         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69180         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69181         Derek R. Price.
69182         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69183         implementation.
69184
69185 2006-04-12  Eric Blake  <ebb9@byu.net>
69186
69187         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69188         is now done automatically by the corresponding Autoconf macro.
69189
69190 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69191
69192         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69193         time_r.h.
69194
69195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         Merge regex changes from libc, removing some of our
69198         POSIX-conformance changes that were rejected and redoing them in a
69199         less-intrusive way.
69200
69201         * lib/regcomp.c (re_compile_internal, init_dfa):
69202         Length arg is now size_t, not Idx.  All uses changed.
69203         (peek_token): Forward decl now says internal_function.
69204         (__re_error_msgid, __re_error_msgid_idx):
69205         Now static rather than extern with attribute_hidden.
69206         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69207         For some reason libc prefers K&R style defns for external functions.
69208         (regerror) [!defined _LIBC]: Likewise.
69209         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69210         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69211         (build_range_exp, build_collating_symbol):
69212         Use K&R-style defn.
69213         (re_compile_fastmap): Use '\0' to memset, not 0.
69214         (utf8_sb_map): Make the calculations more obvious.
69215         (init_dfa, parse_bracket_exp, build_charclass_op):
69216         Call calloc and cast result, as glibc does.
69217         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69218         (build_range_exp, build_collating_symbol):
69219         Now internal functions.
69220
69221         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69222
69223         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69224         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69225         Don't depend on VMS; depend on __VMS instead, for POSIX
69226         namespace cleanness.
69227         (regoff_t): Define to ssize_t, not long int.
69228
69229         Remove the REG_ macros named below.  Instead, make the old names
69230         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69231         __USE_GNU_REGEX.
69232         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69233         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69234         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69235         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69236         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69237         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69238         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69239         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69240         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69241         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69242         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69243         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69244         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69245         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69246         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69247         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69248         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69249         (REG_NREGS):
69250         Remove.  All uses replaced by the old RE_* names.
69251         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69252         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69253         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69254         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69255         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69256         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69257         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69258         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69259         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69260         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69261         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69262         Don't bother having these macros be independent of each others'
69263         values, since they no longer exist in the POSIX name space.
69264
69265         Rename the following member names back to their old names,
69266         unless !__USE_GNU_REGEX.  All uses changed back.
69267         (buffer): Renamed from re_buffer.
69268         (allocated): Renamed from re_allocated.
69269         (used): Renamed from re_used.
69270         (syntax): Renamed from re_syntax.
69271         (fastmap): Renamed from re_fastmap.
69272         (translate): Renamed from re_translate.
69273         (can_be_null): Renamed from re_can_be_null.
69274         (regs_allocated): Renamed from re_regs_allocated.
69275         (fastmap_accurate): Renamed from re_fastmap_accurate.
69276         (no_sub): Renamed from re_no_sub.
69277         (not_bol): Renamed from re_not_bol.
69278         (not_eol): Renamed from re_not_eol.
69279         (newline_anchor): Renamed from re_newline_anchor.
69280         (num_regs): Renamed from rm_num_regs.
69281         (start): Renamed from rm_start.
69282         (end): Renamed from rm_end.
69283
69284         (free_state): Move up a bit.
69285
69286         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69287         #define to be empty.
69288         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69289         when that is what is intended.
69290         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69291         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69292         (MAX): New macro.
69293         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69294         All uses changed back to re_malloc, etc.  It's now the caller's
69295         responsibility to check for overflow; all callers changed.
69296         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69297         (re_x2nrealloc): Remove.
69298         (free_state): Remove decl.
69299
69300         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69301         (re_set_registers, re_exec):
69302         Use K&R-style defn.
69303
69304         2006-01-31  Roland McGrath  <roland@redhat.com>
69305
69306         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69307         Reported by Mike Frysinger <vapier@gentoo.org>.
69308
69309         2006-01-15  Andreas Jaeger  <aj@suse.de>
69310
69311         [BZ #1950]
69312         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69313         build_wcs_upper_buffer change.
69314         (build_wcs_upper_buffer): Change return type.
69315
69316         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69317
69318         * lib/regex_internal.h: Include <stdint.h> if available.
69319
69320         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69321
69322         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69323
69324         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69325
69326         * lib/regcomp.c: Adjust for changed secondary hash function.
69327
69328         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69329
69330         * lib/regex.h: Pretty printing.
69331         Clean up namespace a bit.
69332
69333         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69334
69335         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69336         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69337
69338         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69339                     Ulrich Drepper  <drepper@redhat.com>
69340
69341         [BZ #1302]
69342         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69343         changed.
69344         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69345
69346         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69347
69348         [BZ #281]
69349         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69350         * lib/regcomp.c: Remove unnecessary uses of
69351         unsigned RE_TRANSLATE_TYPE.
69352         * lib/regex_internal.h: Likewise.
69353         * lib/regex_internal.c: Likewise.
69354         * lib/regexec.c: Likewise.
69355         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69356
69357         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69358
69359         * lib/regexec.c (find_recover_state): Remove unnecessary
69360         initialization.
69361         (transit_state_bkref): Make DFA a const pointer.
69362         (get_subexp): Likewise.
69363         (check_arrival): Likewise.
69364         (update_cur_sifted_state): Likewise.
69365         (re_search_internal): Likewise.
69366         (prune_impossible_nodes): Likewise.
69367         (acquire_init_state_context): Likewise.
69368         (proceed_next_node): Likewise.
69369         (set_regs): Likewise.
69370         (free_fail_stack_return): Likewise.
69371         (check_arrival_expand_ecl): Mark DFA parameter as const.
69372         (check_arrival_expand_ecl_sub): Likewise.
69373         (check_subexp_limits): Likewise.
69374         (sub_epsilon_src_nodes):  Likewise.
69375         (add_epsilon_src_nodes):  Likewise.
69376         (merge_state_array): Likewise.
69377         (update_regs): Likewise.
69378         (build_trtable): Likewise.
69379         (sift_states_backward): Mark MCTX parameter as const.
69380         (build_sifted_states): Likewise.
69381         (update_cur_sifted_state): Likewise.
69382         (sift_states_mkref): Likewise.
69383         (check_arrival_expand_ecl): Mark eclosure as const.
69384         (check_dst_limits_calc_pos_1): Likewise.
69385         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69386         pointer.
69387
69388         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69389
69390         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69391         (transit_state_sb): Likewise.
69392         (transit_state_mb): Likewise.
69393         (sift_states_iter_mb): Likewise.
69394         (check_arrival_add_next_nodes): Likewise.
69395         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69396         [_LIBC] (re_search_2_stub): Use mempcpy.
69397
69398         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69399         mbrtowc for very simple UTF-8 case.
69400
69401         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69402         a pointer-to-const.
69403         (re_acquire_state_context): Likewise.
69404         * lib/regex_internal.h: Adjust prototypes.
69405
69406         * lib/regex.c: Prevent using C++ compilers.
69407
69408         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69409         (re_acquire_state_context): Likewise.
69410
69411 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * modules/regex (Depends-on): Add ssize_t.
69414
69415 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69416
69417         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69418         translation table.
69419
69420 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69421
69422         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69423
69424 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69425             Bruno Haible  <bruno@clisp.org>
69426
69427         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69428         <sys/types.h> and <inttypes.h>.
69429
69430 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69431
69432         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69433         `__error_t_defined', so argp.h will not typedef the former.
69434
69435 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69436
69437         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69438         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69439         glibc names.  Even if glibc is changed to conform to POSIX, the
69440         traditional names will be available anyway, since regex depends on
69441         the extensions module.  Also, fix a longstanding typo in the
69442         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69443         reported by Emanuele Giaquinta.  Also, change sense of cached
69444         variable, so that the message makes sense.
69445
69446 2006-03-24  Simon Josefsson  <jas@extundo.com>
69447
69448         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69449         including some doc fixes.
69450         (base64_encode_alloc): Fix +1 bug on allocation failures.
69451
69452 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69453
69454         * lib/base64.c (base64_encode): Do not read past end of array with
69455         unsanitized input on systems with CHAR_BIT > 8.
69456
69457 2006-03-24  Eric Blake  <ebb9@byu.net>
69458
69459         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69460
69461 2006-03-22  Karl Berry  <karl@gnu.org>
69462
69463         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69464         * config/srclistvars.sh (COREUTILS): new var.
69465
69466 2006-03-17  Jim Meyering  <jim@meyering.net>
69467
69468         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69469         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69470
69471 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69474         no longer needs it.  Instead, check that regoff_t is as least
69475         as wide as ptrdiff_t.
69476
69477         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69478         so that our regex.h stays compatible with the installed regex.
69479         This is helpful for installers who configure --without-included-regex.
69480         Problem reported by Emanuele Giaquinta.
69481
69482 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69485         Typedef to long int, not to off_, as POSIX will likely change
69486         in that direction.
69487
69488 2006-03-15  Eric Blake  <ebb9@byu.net>
69489
69490         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69491
69492 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69493
69494         * lib/argp-help.c (validate_uparams): Fix typo
69495         * lib/argp-parse.c (argp_default_options): Consistently begin help
69496         messages with a lowercase letter.
69497
69498 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69499
69500         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69501         overrun buffers and shouldn't be used (much as gets shouldn't be
69502         used).
69503         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69504
69505 2006-03-08  Simon Josefsson  <jas@extundo.com>
69506
69507         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69508         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69509
69510 2006-03-08  Simon Josefsson  <jas@extundo.com>
69511
69512         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69513         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69514
69515 2006-03-08  Simon Josefsson  <jas@extundo.com>
69516
69517         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69518         signal that configure disabled the device.
69519
69520 2006-03-08  Simon Josefsson  <jas@extundo.com>
69521
69522         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69523         languages.
69524
69525 2006-03-07  Simon Josefsson  <jas@extundo.com>
69526
69527         * modules/getopt (Depends-on): Add unistd.
69528
69529         * modules/unistd: New file.
69530
69531 2006-03-07  Simon Josefsson  <jas@extundo.com>
69532
69533         * modules/gc-random: New file.
69534
69535 2006-03-07  Simon Josefsson  <jas@extundo.com>
69536
69537         * m4/unistd_h.m4: New file.
69538
69539 2006-03-07  Simon Josefsson  <jas@extundo.com>
69540
69541         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69542         test to be side-effect free by storing the result in the cache
69543         variable gl_cv_lib_readline, and moving the assignment of
69544         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69545         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69546
69547 2006-03-07  Simon Josefsson  <jas@extundo.com>
69548
69549         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69550         error on missing devices (the functions will return an error).
69551
69552         * m4/gc.m4: Move random stuff to gc-random.m4
69553
69554 2006-03-07  Simon Josefsson  <jas@extundo.com>
69555
69556         * lib/unistd_.h: New file.
69557
69558 2006-03-07  Simon Josefsson  <jas@extundo.com>
69559
69560         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69561
69562 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69563
69564         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69565         Problem reported by Juan Manuel Guerrero.
69566
69567 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69570         the unistd module.
69571         * lib/getlogin_r.c: Likewise.
69572         * lib/getlogin_r.h: Likewise.
69573         * lib/glob.c: Likewise.
69574         * lib/pagealign_alloc.c: Likewise.
69575         * lib/unistd_.h: Remove; no longer needed.
69576
69577 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69580         Add unistd.
69581         * modules/c-stack (Depends-on): Add unistd.
69582         * modules/getlogin_r: Likewise.
69583         * modules/glob: Likewise.
69584         * modules/pagealign_alloc: Likewise.
69585         * modules/unistd (Files): Remove lib/unistd_.h.
69586         (EXTRA_DIST): Remove.
69587         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69588         need unistd_.h.
69589         (MOSTLYCLEANFILES): Remove unistd.h-t.
69590
69591 2006-03-03  Simon Josefsson  <jas@extundo.com>
69592
69593         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69594
69595 2006-03-03  Simon Josefsson  <jas@extundo.com>
69596
69597         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69598         libidn and bison.
69599
69600 2006-03-03  Simon Josefsson  <jas@extundo.com>
69601
69602         * build-aux/maint.mk: Add indent target.
69603
69604 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69605
69606         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69607         our replacement poll.h in any case, to avoid a differing
69608         declaration from a system header.  Seen on AIX.
69609
69610 2006-03-01  Simon Josefsson  <jas@extundo.com>
69611
69612         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69613         <kasal@ucw.cz>.
69614
69615 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * modules/gettime (Depends-on): Add extensions module.
69618         * modules/nanosleep (Depends-on): Likewise.
69619         * modules/settime (Depends-on): Likewise.
69620
69621 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69622
69623         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69624         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69625         pedantically.
69626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69627         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69628
69629         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69630         not "==".  Reported by Ralf Wildenhues.
69631
69632 2006-03-01  Karl Berry  <karl@gnu.org>
69633
69634         * doc/Copyright/request-*: new files, synced from gnuorg.
69635
69636 2006-03-01  Karl Berry  <karl@gnu.org>
69637
69638         * config/srclist.txt (Copyright/*): new entries.
69639
69640 2006-02-28  Simon Josefsson  <jas@extundo.com>
69641
69642         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69643
69644 2006-02-27  Simon Josefsson  <jas@extundo.com>
69645
69646         * lib/base64.h: Indent #define's.  From Jim Meyering
69647         <jim@meyering.net>.
69648
69649 2006-02-27  Jim Meyering  <jim@meyering.net>
69650
69651         Revert the change of 2006-02-24, so these files can continue
69652         to be sync'd from gettext.
69653         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69654         of `config.h'.
69655
69656 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * modules/intprops: New file.
69659         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69660         Add intprops.
69661         * modules/getloadavg (Files): Remove lib/intprops.h.
69662         (Depends-on): Add intprops.
69663         * modules/human: Likewise.
69664         * modules/inttostr: Likewise.
69665         * modules/openat: Likewise.
69666         * modules/sig2str: Likewise.
69667         * modules/userspec: Likewise.
69668         * modules/utimecmp: Likewise.
69669         * modules/xnanosleep: Likewise.
69670         * modules/xstrtol: Likewise.
69671
69672 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69673
69674         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69675         * modules/lock-tests (TESTS): Use $(EXEEXT).
69676         * modules/tls-tests: Likewise.
69677         * modules/argp-tests: Likewise.
69678         (check_PROGRAMS): New var, replacing...
69679         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69680
69681 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69682
69683         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69684         `config.h'.
69685
69686 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69687
69688         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69689
69690 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69691
69692         Sync from coreutils.
69693         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69694         gl_CHDIR_SAFER.
69695
69696 2006-02-22  Jim Meyering  <jim@meyering.net>
69697
69698         Sync from coreutils.
69699         * m4/chdir-safer.m4: New file.
69700
69701 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69704         AT_FDCWD exceeds INT_MAX.
69705         * lib/openat.h (AT_FDCWD): Likewise.
69706
69707 2006-02-17  Eric Blake  <address@hidden>
69708
69709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69710
69711 2006-02-16  Simon Josefsson  <jas@extundo.com>
69712
69713         * modules/getaddrinfo (Depends-on): Add sys_socket.
69714
69715 2006-02-15  Simon Josefsson  <jas@extundo.com>
69716
69717         * build-aux/maint.mk: Add dsyntax-check rule.
69718
69719 2006-02-15  Eric Blake  <ebb9@byu.net>
69720
69721         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69722         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69723         'present but cannot compile' warnings on cygwin.
69724         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69725         use ws2tcpip.h if sys/socket.h works.
69726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69727         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69728
69729 2006-02-14  Simon Josefsson  <jas@extundo.com>
69730
69731         * modules/maintainer-makefile (Files): Rename.
69732
69733         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69734         and (the local) Makefile.cfg to maint-cfg.mk.
69735
69736         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69737         to the latter.
69738
69739         * modules/maintainer-makefile: New module.
69740
69741         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69742         severaly stripped to make it possible to build it up from scratch
69743         with reliable tests.
69744
69745         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69746         fixes to permit overriding the default actions when configure and
69747         makefile are not available.
69748
69749 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         Sync from coreutils.
69752         * modules/lstat (Depends-on): Don't depend on xalloc.
69753         (License): Change from GPL to LGPL, since this is now simply a
69754         replacement for a libc function.
69755
69756 2006-02-14  Jim Meyering  <jim@meyering.net>
69757
69758         Sync from coreutils.
69759
69760         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69761         failure on deficient systems, and simplify gnulib lgpl dependencies.
69762         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69763         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69764
69765         * lib/xalloc-die.c: Remove unused definition of N_.
69766
69767 2006-02-14  Jim Meyering  <jim@meyering.net>
69768
69769         Sync from coreutils.
69770         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69771         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69772         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69773         double-quote uses of that variable, to accommodate the rare case in
69774         which getmntent is available in none of the libraries checked.  This
69775         happens at least on FreeBSD 5.0.
69776
69777 2006-02-13  Simon Josefsson  <jas@extundo.com>
69778
69779         * gnulib-tool (Usage): Fix --import, from
69780         karl@freefriends.org (Karl Berry).
69781
69782 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69783
69784         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69785
69786 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69787
69788         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69789         "autoupdate" on 2005-12-12.
69790
69791 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         * modules/closeout (Depends-on): Remove atexit.
69794
69795 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69798         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69799
69800 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69803         __EXTENSIONS__ if this causes compilation to fail.  Problem
69804         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69805         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69806
69807 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69810         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69811         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69812         All uses changed.
69813
69814 2006-01-26  Simon Josefsson  <jas@extundo.com>
69815
69816         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69817         prototype is visible on mingw32.
69818
69819         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69820         for mingw32.
69821
69822         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69823         mingw32).
69824
69825 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69826
69827         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69828         attempt to open for write; this always fails, at least on POSIX
69829         hosts.  This reinstates the 2006-01-09 change, which was
69830         inadvertently removed.
69831
69832 2006-01-26  Bruno Haible  <bruno@clisp.org>
69833
69834         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69835         Reported by Paul Eggert.
69836
69837 2006-01-26  Bruno Haible  <bruno@clisp.org>
69838             Paul Eggert  <eggert@cs.ucla.edu>
69839
69840         * lib/stdbool_.h (_Bool)
69841         [(! (defined __cplusplus || defined __BEOS__)
69842           && !defined __GNUC__
69843           && !(defined __HP_cc || defined __xlc__
69844                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69845                || defined __sgi))]:
69846         #define to signed char in these cases too; this simplifies
69847         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69848         etc., separately) and makes it more conservative.
69849
69850 2006-01-25  Simon Josefsson  <jas@extundo.com>
69851
69852         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69853         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69854         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69855
69856 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69857
69858         * lib/argp-namefrob.h: Bugfix. Remove stray #
69859
69860 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69863         so that we test the test.
69864         Check for yet another HP-UX cc bug involving *bool |= bool.
69865
69866 2006-01-25  Karl Berry  <karl@gnu.org>
69867
69868         * config/srclist.txt (vasnprintf.c): sync lost.
69869
69870 2006-01-25  Jim Meyering  <jim@meyering.net>
69871
69872         Sync from the stable (b5) branch of coreutils:
69873
69874         * lib/fts.c (fts_children): Don't let close() clobber errno from
69875         failed fchdir().
69876
69877         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69878         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69879         a dangling symlink.  That can also happen at least for ELOOP.
69880         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69881         FYI, this bug predates the inclusion of fts.c in coreutils.
69882
69883         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69884         in their own block, so pre-c99 compilers don't object.
69885
69886         Avoid the double-free (first in fts_read, second in fts_close) that
69887         would occur when an `active' directory is made inaccessible (e.g.,
69888         via chmod a-x) during a traversal.
69889         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69890         before returning.  Reproduce this failure by
69891         mkdir -p a/b; cd a; chmod a-x . b
69892         Reported by Stavros Passas.
69893
69894 2006-01-25  Jim Meyering  <jim@meyering.net>
69895
69896         * lib/fileblocks.c: Remove more useless parentheses.
69897         * lib/readutmp.h: Likewise.
69898
69899 2006-01-25  Bruno Haible  <bruno@clisp.org>
69900
69901         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69902         warnings.
69903         Reported by Paul Eggert.
69904
69905 2006-01-25  Bruno Haible  <bruno@clisp.org>
69906
69907         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69908         rid of a trap command. For Solaris sh.
69909         Reported by Mark D. Baushke <mdb@gnu.org>.
69910
69911 2006-01-24  Simon Josefsson  <jas@extundo.com>
69912
69913         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69914         Bruno.
69915
69916 2006-01-24  Karl Berry  <karl@gnu.org>
69917
69918         * config/srclist.txt (argp-namefrob.h): sync lost.
69919
69920 2006-01-24  Jim Meyering  <jim@meyering.net>
69921
69922         * modules/openat (Files): Add lib/intprops.h.
69923         From Mark D. Baushke.
69924
69925 2006-01-24  Jim Meyering  <jim@meyering.net>
69926
69927         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69928         Reported by Mark D. Baushke.
69929
69930 2006-01-24  Jim Meyering  <jim@meyering.net>
69931
69932         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69933
69934 2006-01-24  Bruno Haible  <bruno@clisp.org>
69935
69936         * modules/strnlen (Maintainer): Change from glibc to all.
69937
69938 2006-01-24  Bruno Haible  <bruno@clisp.org>
69939
69940         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69941         Patch by Paul Eggert.
69942
69943 2006-01-24  Bruno Haible  <bruno@clisp.org>
69944
69945         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69946         already has it.
69947         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69948         2005-11-26.
69949
69950         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69951         'signed char' to avoid problems with the built-in _Bool type.
69952         Reported by Paul Eggert on 2005-11-26.
69953
69954 2006-01-24  Bruno Haible  <bruno@clisp.org>
69955
69956         * gnulib-tool (func_import): Avoid constructing complicated sed
69957         expressions inside backquote.
69958         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69959
69960 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69961
69962         These changes imported from libc.
69963         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69964         test and two separate function calls.
69965         * lib/strndup.c (__strndup): Add libc_hidden_def.
69966
69967 2006-01-23  Simon Josefsson  <jas@extundo.com>
69968
69969         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69970         Remove the test_*_SOURCES variable: automake infers it by default.
69971         * modules/tls-tests: Likewise.
69972
69973 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         Work around porting bugs reported by Dieter in
69976         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69977         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69978         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69979         Include "getopt.h" first, to check interface.
69980         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69981         !HAVE_DECL_GETENV.
69982         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69983         (__strndup): Revert to K&R-style function dfns, the glibc style.
69984         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69985         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69986         Include strnlen.h first, to get prototype properly.
69987         (strnlen): Renamed from __strnlen.
69988         Remove weak alias.
69989
69990 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69993
69994 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * config/srclist.txt: Adjust to reflect glibc reorganization.
69997         This affects only comments.
69998
69999 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70000
70001          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70002          Reported by Bruce Korb <bkorb@gnu.org>.
70003
70004 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70007         to pacify gcc -Wswitch-default.
70008
70009 2006-01-22  Bruno Haible  <bruno@clisp.org>
70010
70011         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70012         temporary buffer for sprintf, take into account the precision also
70013         for 'd', 'i', 'u', 'o', 'x', 'X'.
70014
70015 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70016
70017         * modules/argp-tests: New module
70018         * tests/test-argp.c: New file
70019         * tests/test-argp-2.sh: New file
70020
70021 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70022
70023         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70024         (__argp_base_name): Removed
70025         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70026         typo.
70027         (__argp_base_name): Provide macro definition or extern declaration
70028         depending on the configuration
70029
70030 2006-01-20  Simon Josefsson  <jas@extundo.com>
70031
70032         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70033
70034 2006-01-20  Simon Josefsson  <jas@extundo.com>
70035
70036         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70037
70038 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70041         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70042         Suggested by Bruno Haible.
70043
70044 2006-01-20  Karl Berry  <karl@gnu.org>
70045
70046         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70047         until changes propagate, I guess.
70048
70049 2006-01-19  Simon Josefsson  <jas@extundo.com>
70050
70051         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70052
70053 2006-01-19  Simon Josefsson  <jas@extundo.com>
70054
70055         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70056
70057 2006-01-19  Simon Josefsson  <jas@extundo.com>
70058
70059         * gnulib-tool: Set check_PROGRAMS.
70060
70061         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70062         modules/des-tests, modules/gc-arcfour-tests,
70063         modules/gc-arctwo-tests, modules/gc-des-tests,
70064         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70065         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70066         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70067         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70068         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70069         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70070         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70071         test_*_SOURCES.
70072
70073 2006-01-18  Simon Josefsson  <jas@extundo.com>
70074
70075         * modules/socklen (Depends-on): Depend on sys_socket.
70076
70077 2006-01-18  Simon Josefsson  <jas@extundo.com>
70078
70079         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70080         modules/des-tests, modules/gc-arcfour-tests,
70081         modules/gc-arctwo-tests, modules/gc-des-tests,
70082         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70083         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70084         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70085         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70086         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70087         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70088         $(EXEEXT) to automake TESTS variable, for mingw32.
70089
70090 2006-01-17  Simon Josefsson  <jas@extundo.com>
70091
70092         * modules/socklen (Include): Need sys/socket.h.
70093
70094 2006-01-17  Bruno Haible  <bruno@clisp.org>
70095
70096         * modules/ssize_t (Include): Add <sys/types.h>.
70097
70098 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70101         it's not portable and it doesn't work with cross-compiles.
70102         Problem reported by Bruno Haible.  Fix missing-$ typo in
70103         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70104         -zignore from being used with Sun's C compiler.
70105
70106 2006-01-12  Simon Josefsson  <jas@extundo.com>
70107
70108         * lib/base64.c: Fix warning, reported by Bruno Haible
70109         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70110
70111 2006-01-12  Bruno Haible  <bruno@clisp.org>
70112
70113         * modules/ldd: New file.
70114         * build-aux/ldd.sh.in: New file.
70115         * MODULES.html.sh (Support for building libraries and executables): Add
70116         ldd.
70117
70118 2006-01-12  Bruno Haible  <bruno@clisp.org>
70119
70120         * m4/ldd.m4: New file.
70121
70122 2006-01-12  Bruno Haible  <bruno@clisp.org>
70123
70124         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70125         endless loop while replacing $auxdir with build-aux.
70126
70127 2006-01-11  Simon Josefsson  <jas@extundo.com>
70128
70129         * lib/stdint_.h (SIZE_MAX): Add missing (.
70130
70131 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70132
70133         Sync from coreutils.
70134         * lib/md5.c: Fix commentary typos.
70135         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70136         * lib/md5.h (__attribute__): Remove; unused.
70137         * lib/sha1.c: Fix commentary to match md5 better.
70138         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70139         so that we don't need to worry about alignment.  All uses changed.
70140         This merges the 2005-10-28 md5 change into sha1.
70141
70142 2006-01-11  Jim Meyering  <jim@meyering.net>
70143
70144         Sync from coreutils.
70145         * lib/md5.c (OP): Fix spacing.
70146
70147 2006-01-11  Bruno Haible  <bruno@clisp.org>
70148
70149         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70150         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70151         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70152
70153 2006-01-11  Bruno Haible  <bruno@clisp.org>
70154
70155         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70156         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70157         the "early" section as well.
70158
70159 2006-01-11  Bruno Haible  <bruno@clisp.org>
70160
70161         Avoid "ar: no archive members specified" error on MacOS X.
70162         * gnulib-tool (func_modules_add_dummy): New function.
70163         (func_import, func_create_testdir): Invoke it.
70164
70165 2006-01-11  Bruno Haible  <bruno@clisp.org>
70166
70167         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70168         with $auxdir in AC_CONFIG_FILES statements.
70169
70170 2006-01-11  Bruno Haible  <bruno@clisp.org>
70171
70172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70173         Initialize also noinst_HEADERS to empty.
70174
70175 2006-01-11  Bruno Haible  <bruno@clisp.org>
70176
70177         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70178         variables.
70179         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70180         autoreconf.
70181
70182 2006-01-11  Bruno Haible  <bruno@clisp.org>
70183
70184         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70185         overridable by the user.
70186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70187
70188 2006-01-10  Simon Josefsson  <jas@extundo.com>
70189
70190         * modules/sys_socket: New file.
70191
70192 2006-01-10  Simon Josefsson  <jas@extundo.com>
70193
70194         * m4/sys_socket_h.m4: New file.
70195
70196 2006-01-10  Simon Josefsson  <jas@extundo.com>
70197
70198         * lib/socket_.h: New file.
70199
70200 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70201
70202         * modules/readutmp (Maintainer): Add myself.
70203
70204 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70207         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70208         People who are still concerned with buggy memcmp implementations
70209         can invoke gl_FUNC_MEMCMP themselves.
70210
70211 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70212
70213         * lib/regex_internal.h (BITSET_WORD_BITS):
70214         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70215         preprocessor mishandles large unsigned values as if they were signed.
70216         Problem reported by Claudio Fontana in
70217         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70218
70219 2006-01-10  Jim Meyering  <jim@meyering.net>
70220
70221         Avoid the double-free (first in fts_read, second in fts_close) that
70222         would occur when an `active' directory is made inaccessible (e.g.,
70223         via chmod a-x) during a traversal.
70224         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70225         before returning.  Reproduce this failure by
70226         mkdir -p a/b; cd a; chmod a-x . b
70227         Reported by Stavros Passas.
70228
70229         Sync from coreutils.
70230         * lib/sha1.c: Tweak grammar in a comment.
70231
70232 2006-01-10  Jim Meyering  <jim@meyering.net>
70233
70234         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70235         Patch by Joerg Sonnenberger.
70236
70237 2006-01-10  Bruno Haible  <bruno@clisp.org>
70238
70239         * modules/readutmp: Depend on module free.
70240         * modules/strtok_r: Depend on module restrict.
70241
70242 2006-01-10  Bruno Haible  <bruno@clisp.org>
70243
70244         * modules/gettext (configure.ac): Add an invocation of
70245         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70246
70247 2006-01-10  Bruno Haible  <bruno@clisp.org>
70248
70249         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70250         Reported by Werner Lemberg <wl@gnu.org>.
70251
70252 2006-01-10  Bruno Haible  <bruno@clisp.org>
70253
70254         * lib/localcharset.c: Update from GNU gettext.
70255
70256 2006-01-10  Bruno Haible  <bruno@clisp.org>
70257
70258         * lib/argp.h (__const): Remove macro. Use const instead.
70259         * lib/argp-fmtstream.h (__const): Likewise.
70260         * lib/glob_.h (__const): Remove macro.
70261         * lib/glob-libc.h: Use const instead of __const.
70262
70263 2006-01-10  Bruno Haible  <bruno@clisp.org>
70264
70265         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70266         variable.
70267         Needed to avoid an automake error regarding the 'gettext' module.
70268
70269 2006-01-09  Simon Josefsson  <jas@extundo.com>
70270
70271         * modules/inet_ntop (Depends-on): Add restrict.
70272
70273 2006-01-09  Simon Josefsson  <jas@extundo.com>
70274
70275         * modules/gc-rijndael-tests (License): Put under LGPL.
70276
70277         * modules/gc-des-tests (License): Likewise.
70278
70279         * modules/gc-arcfour-tests (License): Likewise.
70280
70281         * modules/gc-arctwo-tests (License): Likewise.
70282
70283         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70284
70285         * modules/gc-hmac-sha1-tests (Files): Likewise.
70286
70287         * modules/gc-hmac-md5-tests (License): Likewise.
70288
70289         * modules/gc-sha1-tests (License): Likewise.
70290
70291         * modules/gc-md5-tests (License): Likewise.
70292
70293         * modules/gc-md4-tests (License): Likewise.
70294
70295         * modules/gc-md2-tests (License): Likewise.
70296
70297         * modules/gc-tests (License): Likewise.
70298
70299         * modules/des-tests (License): Likewise.
70300
70301         * modules/md4-tests (License): Likewise.
70302
70303         * modules/md2-tests (License): Likewise.
70304
70305 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         Sync from coreutils:
70308
70309         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70310         * modules/lib-ignore: New file.
70311         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70312         chdir-safer.m4, lchmod.m4.
70313         * modules/openat: Add mkdirat.c, openat-priv.h.
70314
70315 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         Sync from coreutils.
70318         * m4/lib-ignore.m4: New file.
70319         * m4/lchmod.m4: New file.
70320
70321 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         Sync from coreutils.
70324         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70325         for write access: POSIX says that must fail.
70326         * lib/fts.c (diropen): Likewise.
70327         * lib/save-cwd.c (save_cwd): Likewise.
70328         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70329         well, for minor improvements on hosts that lack O_DIRECTORY.
70330         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70331         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70332         Fall back on chown if open failed with EACCES.
70333
70334         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70335         Report an error at compile-time if only a 1-second nominal clock
70336         resolution is found.
70337
70338         * lib/lchmod.h: New file.
70339         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70340         (make_dir_parents): Use lchown rather than chown, and
70341         lchmod rather than chmod.
70342
70343         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70344         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70345         "proc" reported by n0dalus.
70346
70347         * lib/mountlist.c: Include <limits.h>.
70348         (dev_from_mount_options)
70349         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70350         New function.  It no longer assumes "dev=" has the System V meaning
70351         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70352         (read_file_system_list)
70353         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70354         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70355         dev= in that case.
70356
70357         * lib/posixtm.h (PDS_PRE_2000): New macro.
70358         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70359         allow_century.  All usages changed.  Reject dates outside the range
70360         1969-1999 if PDS_PRE_2000 is used.
70361
70362 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70363
70364         Sync from coreutils.
70365         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70366         (Time of day items): Mention the possibility of leap seconds.
70367         Problem reported by Dr. David Alan Gilbert.
70368
70369 2006-01-09  Jim Meyering  <jim@meyering.net>
70370
70371         Sync from coreutils.
70372
70373         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70374
70375         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70376
70377         * lib/modechange.c (mode_compile): Reject an invalid mode string
70378         that starts with an octal digit.  From Andreas Gruenbacher.
70379
70380         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70381         and dup to open_safer and dup_safer, respectively.
70382         (openat_permissive): Fix typo in comment.
70383
70384         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70385         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70386         (_): Remove; no longer needed.
70387         (openat): Renamed from rpl_openat; no need for rpl_openat
70388         since openat.h renames openat for us.
70389         Replace most of the body with a call to openat_permissive,
70390         to avoid duplicate code.
70391         Port to (probably hypothetical) environments were mode_t is
70392         wider than int.
70393         (openat_permissive): Require mode arg, so that we can check
70394         types better.  Put it just after flags.  Change cwd failure
70395         indicator from pointer-to-bool to pointer-to-errno-value.
70396         All callers changed.
70397         Invoke openat_save_fail and/or openat_restore_fail if
70398         cwd_errno is null, so that openat can call us.
70399         (openat_permissive, fdopendir, fstatat, unlinkat):
70400         Simplify errno handling to avoid some duplicate code,
70401         as it's OK to set errno on success.
70402         * lib/openat.h: Revamp code so that function macros depend on
70403         __OPENAT_PREFIX only, not also on AT_FDCWD.
70404         (openat_ro): Remove.  Caller changed to use openat_permissive.
70405         (openat_permissive): Now a macro, if not a function.
70406         (openat_restore_fail, openat_save_fail): Now always functions,
70407         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70408
70409         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70410         and openat.c.
70411         * lib/mkdirat.c: Include openat-priv.h.
70412         Remove definitions of macros defined therein.
70413         * lib/openat.c: Likewise.
70414
70415         * lib/mkdirat.c (mkdirat): New file and function.
70416         * lib/openat.h (mkdirat): Declare.
70417
70418         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70419
70420         * lib/openat.h (openat_permissive): Declare.
70421         (openat_ro): Define.
70422
70423         * lib/openat.c (EXPECTED_ERRNO): New macro.
70424         (openat_permissive): New function -- used in remove.c rewrite.
70425         (all functions): Set errno just before returning, only if there
70426         was an actual failure.
70427         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70428
70429         Emulate openat-family functions using Linux's procfs, if possible.
70430         Idea and some code based on Ulrich Drepper's glibc changes.
70431
70432         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70433         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70434         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70435         before falling back on save_cwd and restore_cwd.
70436         (fdopendir, fstatat, unlinkat): Likewise.
70437
70438         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70439         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70440
70441         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70442         as second argument to va_arg.  Otherwise, some versions of gcc
70443         warn that `if this code is reached, the program will abort'.
70444
70445 2006-01-09  Jim Meyering  <jim@meyering.net>
70446
70447         Sync from coreutils.
70448         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70449         Require openat-priv.h.
70450
70451 2006-01-09  Bruno Haible  <bruno@clisp.org>
70452
70453         * modules/strnlen (Include): Use strnlen.h.
70454
70455 2006-01-09  Bruno Haible  <bruno@clisp.org>
70456
70457         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70458
70459 2006-01-09  Bruno Haible  <bruno@clisp.org>
70460
70461         * lib/sysexit_.h (EX_OK): New macro.
70462         Suggested by Martin Lambers <marlam@marlam.de>.
70463
70464 2006-01-09  Bruno Haible  <bruno@clisp.org>
70465
70466         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70467         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70468
70469 2006-01-09  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70472         numbers.
70473
70474 2006-01-09  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70477         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70478         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70479         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70480
70481 2006-01-09  Bruno Haible  <bruno@clisp.org>
70482
70483         * build-aux/javacomp.sh.in: New file, moved from lib/.
70484         * modules/javacomp-script (Files): Update.
70485         (configure.ac): Add AC_CONFIG_FILES invocation.
70486         (EXTRA_DIST): Remove variable.
70487
70488         * build-aux/javaexec.sh.in: New file, moved from lib/.
70489         * modules/javaexec (Files): Update.
70490         (configure.ac): Add AC_CONFIG_FILES invocation.
70491         (EXTRA_DIST): Remove javaexec.sh.in.
70492
70493         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70494         * modules/csharpcomp-script (Files): Update.
70495         (configure.ac): Add AC_CONFIG_FILES invocation.
70496         (EXTRA_DIST): Remove variable.
70497
70498         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70499         * modules/csharpexec (Files): Update.
70500         (configure.ac): Add AC_CONFIG_FILES invocation.
70501         (EXTRA_DIST): Remove csharpexec.sh.in.
70502
70503 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70504
70505         Sync from coreutils.
70506
70507         Add POSIX ACL support
70508         * lib/acl.h (copy_acl, set_acl): Add declarations.
70509         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70510         systems other than Linux.
70511         (chmod_or_fchmod): New function: use fchmod when possible,
70512         and chmod otherwise.
70513         (file_has_acl): Add a POSIX ACL implementation, with a
70514         Linux-specific subcase.
70515         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70516         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70517         acls are unsupported.
70518         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70519         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70520         are unsupported.
70521
70522 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70523
70524         Sync from coreutils.
70525         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70526
70527 2006-01-07  Bruno Haible  <bruno@clisp.org>
70528
70529         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70530         gl_EARLY.
70531
70532 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70533
70534         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70535         Problem reported for Mingw by Mark Junker.
70536
70537 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         * README: Gnulib normally doesn't generate a tarball.
70540
70541 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70544         long int, not int, for nanosecond counts, so that people who are
70545         used to POSIX struct timespec won't be surprised.  Reported by Jim
70546         Meyering.
70547
70548 2005-12-28  Bruno Haible  <bruno@clisp.org>
70549
70550         * build-aux/config.rpath: Update from GNU gettext.
70551
70552 2005-12-16  Jim Meyering  <jim@meyering.net>
70553
70554         * modules/fprintftime: New module.
70555         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70556
70557 2005-12-16  Jim Meyering  <jim@meyering.net>
70558
70559         * m4/fprintftime.m4: New file.
70560
70561 2005-12-16  Jim Meyering  <jim@meyering.net>
70562
70563         * lib/fprintftime.c, lib/fprintftime.h: New files.
70564
70565 2005-12-15  Simon Josefsson  <jas@extundo.com>
70566
70567         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70568         new m4/socklen.m4.
70569
70570 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70571
70572         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70573         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70574
70575 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70576
70577         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70578         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70579         struct uparams is valid. Fall back to the default values if it is
70580         not.
70581
70582 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70583
70584         * modules/argp (Files): Add argp-pin.c
70585         (Depends-on): dirname
70586         (lib_SOURCES): Add argp-pin.c
70587
70588 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70589
70590         * m4/argp.m4:  Check if program_invocation_name and
70591         program_invocation_short_name are declared and define appropriate
70592         macros if they are not.
70593
70594 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70595
70596         * lib/argp-help.c (__argp_base_name): New function
70597         (__argp_short_program_name): Rewrite using __argp_base_name
70598         * lib/argp-namefrob.h: Define program_invocation_name and
70599         program_invocation_short_name if requested
70600         (__argp_base_name): Add prototype
70601         * lib/argp-parse.c (argp_def): Use gettext wrappers
70602         (argp_default_parser): Use __argp_base_name
70603         * lib/argp-pin.c: New file. Defines program_invocation_name and
70604         program_invocation_short_name on systems that lack them.
70605
70606 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70607
70608         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70609         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70610         porting problem reported by Georg Schwarz in
70611         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70612
70613 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70616         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70617         porting problem reported by Georg Schwarz in
70618         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70619
70620 2005-12-05  Bruno Haible  <bruno@clisp.org>
70621
70622         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70623         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70624         Reported by Mark Junker <mjscod@gmx.de>.
70625
70626 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70629         Use implementation from Albert Chin, with some
70630         comments/corrections by Stepan Kasal and myself.
70631
70632 2005-12-02  Bruno Haible  <bruno@clisp.org>
70633
70634         * gnulib-tool (func_import): Accept GPLed build tool modules when
70635         --lgpl is given.
70636         * modules/csharpcomp-script: New file.
70637         * modules/csharpcomp: Depend on it.
70638         * modules/javacomp-script: New file.
70639         * modules/javacomp: Depend on it.
70640         Suggested by Simon Josefsson.
70641
70642 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70645         statement, to work around an HP-UX 10.20 compiler bug reported by
70646         Peter O'Gorman.
70647
70648 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * modules/savedir (Depends-on): Add openat.
70651
70652 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70655         (uintmax_t) [defined uintmax_t]: Do not declare.
70656         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70657         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70658         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70659         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70660         sake of portability to weird hosts that C allows (though we don't
70661         know of any practical examples).
70662
70663         * lib/savedir.h (fdsavedir): New decl.
70664         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70665         contains most of the former guts of savedir.
70666         (savedir): Use savedirstream.
70667         Include "openat.h".
70668
70669 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70670
70671         * modules/obstack (Files): Add m4/ulonglong.m4.
70672         Problem reported by Davide Angelocola.
70673
70674 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70677         coreutils no longer futzes with rounding modes.
70678
70679 2005-11-14  Jim Meyering  <jim@meyering.net>
70680
70681         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70682         replacement of mkstemp.
70683
70684 2005-11-10  Simon Josefsson  <jas@extundo.com>
70685
70686         * lib/readline.c: Remove EOL.
70687
70688 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70689
70690         * modules/gethrxtime (Depends-on): Add gettime.
70691
70692 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70693
70694         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70695         or gettimeofday; no longer needed.
70696
70697 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70700         time business.
70701         (gethrxtime) [! (HAVE_NANOUPTIME
70702         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70703         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70704         our own approximation.
70705
70706 2005-11-08  Eric Blake  <ebb9@byu.net>
70707
70708         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70709
70710 2005-11-08  Eric Blake  <ebb9@byu.net>
70711
70712         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70713
70714 2005-11-04  Bruno Haible  <bruno@clisp.org>
70715
70716         * gnulib-tool: Implement --update mode.
70717
70718 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70719
70720         Fix porting problem reported by Theodoros V. Kalamatianos.
70721         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70722         Don't assume that futimes failing means we must fail.
70723
70724 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70725
70726         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70727         variables to suggest the intended function of the PATH_MAX check.
70728
70729 2005-10-30  Kean Johnston  <jkj@sco.com>
70730
70731         Trivial changes to support SCO systems.
70732         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70733         as PATH_MAX.
70734         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70735         where __ptr is null when no I/O is pending.
70736
70737 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70740         leave errno alone.  Problem reported by Dmitry V. Levin.
70741
70742 2005-10-28  Simon Josefsson  <jas@extundo.com>
70743
70744         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70745         Test more.
70746
70747         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70748
70749         * modules/md2, modules/md2-tests: New files.
70750
70751 2005-10-28  Simon Josefsson  <jas@extundo.com>
70752
70753         * m4/inet_ntop.m4: More tests.
70754
70755         * m4/gc-md2.m4, md2.m4: New file.
70756
70757 2005-10-28  Simon Josefsson  <jas@extundo.com>
70758
70759         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70760         "restrict" keywords, as per POSIX.  Protect the function
70761         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70762         Don't use K&R prototypes.  Check the sprintf return values.
70763         Re-define EAFNOSUPPORT if not present.  Indent.
70764
70765         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70766         suggested by Bruno Haible <bruno@clisp.org>.
70767
70768         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70769
70770         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70771
70772         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70773         libgcrypt).
70774
70775         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70776
70777         * lib/md2.h, lib/md2.c: New files.
70778
70779 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70780
70781         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70782         errno alone.  Problem reported by Frederic Jolliton.
70783
70784 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70785
70786         * modules/verify (License): Change from GPL to LGPL.  This is a
70787         tiny module and there are apparently near-equivalents that are
70788         under the BSD license.
70789
70790 2005-10-24  Simon Josefsson  <jas@extundo.com>
70791
70792         * modules/sha1: Relicense to LGPL.
70793
70794 2005-10-24  Simon Josefsson  <jas@extundo.com>
70795
70796         * lib/md4.h: Shrink buffer size, now that we changed the type.
70797
70798 2005-10-23  Simon Josefsson  <jas@extundo.com>
70799
70800         * gnulib-tool (func_import): Fix --tests-base.
70801
70802 2005-10-22  Simon Josefsson  <jas@extundo.com>
70803
70804         * modules/arcfour (Depends-on): Need stdint.
70805
70806 2005-10-22  Simon Josefsson  <jas@extundo.com>
70807
70808         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70809         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70810
70811 2005-10-22  Simon Josefsson  <jas@extundo.com>
70812
70813         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70814         suggested by Bruno Haible <bruno@clisp.org>.
70815
70816 2005-10-22  Simon Josefsson  <jas@extundo.com>
70817
70818         * lib/crc.h: Include stddef.h, for size_t.
70819
70820 2005-10-22  Simon Josefsson  <jas@extundo.com>
70821
70822         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70823         arcfour_context struct (simplify test vector testing in GNU
70824         Shishi).
70825
70826 2005-10-21  Simon Josefsson  <jas@extundo.com>
70827
70828         * modules/des, modules/des-tests: New files.
70829
70830         * modules/gc-des, modules/gc-des-tests: New files.
70831
70832         * tests/test-des.c, tests/test-gc-des.c: New file.
70833
70834 2005-10-21  Simon Josefsson  <jas@extundo.com>
70835
70836         * modules/arctwo, modules/arctwo-tests: New files.
70837
70838         * tests/test-arctwo.c: New file.
70839
70840         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70841
70842         * tests/test-gc-arctwo.c: New file.
70843
70844 2005-10-21  Simon Josefsson  <jas@extundo.com>
70845
70846         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70847         Bruno Haible <bruno@clisp.org>.
70848
70849         * m4/gc-des.m4: New file.
70850
70851 2005-10-21  Simon Josefsson  <jas@extundo.com>
70852
70853         * m4/arctwo.m4: New file.
70854
70855         * m4/gc-arctwo.m4: New file.
70856
70857 2005-10-21  Simon Josefsson  <jas@extundo.com>
70858
70859         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70860         block.
70861
70862 2005-10-21  Simon Josefsson  <jas@extundo.com>
70863
70864         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70865         <bruno@clisp.org>.
70866
70867         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70868
70869         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70870         Bruno Haible <bruno@clisp.org>.
70871
70872         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70873         <bruno@clisp.org>.
70874
70875 2005-10-21  Simon Josefsson  <jas@extundo.com>
70876
70877         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70878
70879 2005-10-21  Simon Josefsson  <jas@extundo.com>
70880
70881         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70882
70883 2005-10-21  Simon Josefsson  <jas@extundo.com>
70884
70885         * lib/des.h, lib/des.c: New files.
70886
70887         * lib/gc-gnulib.c: Support DES.c
70888
70889 2005-10-21  Simon Josefsson  <jas@extundo.com>
70890
70891         * lib/arctwo.h, lib/arctwo.c: New files.
70892
70893         * lib/gc-gnulib.c: Support ARCTWO.
70894
70895 2005-10-21  Simon Josefsson  <jas@extundo.com>
70896
70897         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70898         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70899
70900 2005-10-21  Simon Josefsson  <jas@extundo.com>
70901
70902         * gnulib-tool (func_import, func_create_testdir): Define automake
70903         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70904         Makefile.am snippet),
70905         suggested by Bruno Haible <bruno@clisp.org>.
70906
70907         * modules/gc (Makefile.am): Use it.
70908
70909 2005-10-21  Bruno Haible  <bruno@clisp.org>
70910
70911         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70912         patch.
70913
70914 2005-10-19  Simon Josefsson  <jas@extundo.com>
70915
70916         * tests/test-gc-rijndael.c: New file.
70917
70918         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70919
70920 2005-10-19  Simon Josefsson  <jas@extundo.com>
70921
70922         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70923         interface too.
70924
70925 2005-10-19  Simon Josefsson  <jas@extundo.com>
70926
70927         * tests/test-gc-arcfour.c: New file.
70928
70929         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70930
70931 2005-10-19  Simon Josefsson  <jas@extundo.com>
70932
70933         * modules/gc-md4, modules/gc-md4-tests: New file.
70934
70935         * tests/test-gc-md4.c: New file.
70936
70937 2005-10-19  Simon Josefsson  <jas@extundo.com>
70938
70939         * m4/gc-md4.m4: New file.
70940
70941 2005-10-19  Simon Josefsson  <jas@extundo.com>
70942
70943         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70944         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70945         <kasal@ucw.cz>.
70946
70947 2005-10-19  Simon Josefsson  <jas@extundo.com>
70948
70949         * m4/gc-arcfour.m4: New file.
70950
70951         * m4/gc-rijndael.m4: New file.
70952
70953 2005-10-19  Simon Josefsson  <jas@extundo.com>
70954
70955         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70956
70957 2005-10-19  Simon Josefsson  <jas@extundo.com>
70958
70959         * lib/gc-gnulib.c: Support ARCFOUR.
70960
70961 2005-10-19  Simon Josefsson  <jas@extundo.com>
70962
70963         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70964         support.
70965
70966         * lib/gc.h: Add ECB enum type.
70967
70968         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70969
70970 2005-10-18  Simon Josefsson  <jas@extundo.com>
70971
70972         * tests/test-md5.c: New file.
70973
70974         * modules/md5-tests: New file.
70975
70976 2005-10-18  Simon Josefsson  <jas@extundo.com>
70977
70978         * tests/test-md4.c: New file.
70979
70980         * modules/md4, modules/md4-tests: New files.
70981
70982 2005-10-18  Simon Josefsson  <jas@extundo.com>
70983
70984         * m4/md4.m4: New file.
70985
70986 2005-10-18  Simon Josefsson  <jas@extundo.com>
70987
70988         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70989
70990 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70991
70992         * gnulib-tool (func_create_testdir): Omit the second check whether
70993         BUILT_SOURCES in nonempty.
70994
70995 2005-10-17  Simon Josefsson  <jas@extundo.com>
70996
70997         * tests/test-rijndael.c: New file.
70998
70999 2005-10-17  Simon Josefsson  <jas@extundo.com>
71000
71001         * modules/sha1: Depend on stdint instead of md5.
71002
71003         * modules/md5: Depend on stdint, remove uint32_t.
71004
71005 2005-10-17  Simon Josefsson  <jas@extundo.com>
71006
71007         * modules/gc-sha1-tests: New file.
71008
71009         * tests/test-gc-sha1.c: New file.
71010
71011 2005-10-17  Simon Josefsson  <jas@extundo.com>
71012
71013         * m4/md5.m4: Remove call to uint32_t.m4.
71014
71015 2005-10-17  Simon Josefsson  <jas@extundo.com>
71016
71017         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71018
71019         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71020         md5.h.
71021
71022         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71023
71024         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71025
71026 2005-10-17  Simon Josefsson  <jas@extundo.com>
71027
71028         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71029
71030 2005-10-17  Simon Josefsson  <jas@extundo.com>
71031
71032         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71033
71034 2005-10-17  Simon Josefsson  <jas@extundo.com>
71035
71036         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71037
71038         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71039
71040 2005-10-17  Bruno Haible  <bruno@clisp.org>
71041
71042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71043         that it can also be used in a test.
71044
71045 2005-10-16  Bruno Haible  <bruno@clisp.org>
71046
71047         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71048         TESTS_ENVIRONMENT, so that individual tests can augment it.
71049
71050         * gnulib-tool (func_create_testdir): Use an intermediate target for
71051         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71052         macros, like $(ALLOCA_H), which cannot be passed through the command
71053         line.
71054
71055 2005-10-15  Simon Josefsson  <jas@extundo.com>
71056
71057         * modules/rijndael-tests: New file.
71058
71059         * modules/rijndael: New file.
71060
71061 2005-10-15  Simon Josefsson  <jas@extundo.com>
71062
71063         * m4/rijndael.m4: New file.
71064
71065 2005-10-15  Simon Josefsson  <jas@extundo.com>
71066
71067         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71068
71069         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71070
71071 2005-10-14  Simon Josefsson  <jas@extundo.com>
71072
71073         * tests/test-arcfour.c: New file.
71074
71075         * modules/arcfour, modules/arcfour-tests: New files.
71076
71077 2005-10-14  Simon Josefsson  <jas@extundo.com>
71078
71079         * m4/arcfour.m4: New file.
71080
71081 2005-10-14  Simon Josefsson  <jas@extundo.com>
71082
71083         * lib/arcfour.h, lib/arcfour.c: New files.
71084
71085 2005-10-14  Roland McGrath  <roland@redhat.com>
71086
71087         Import from libc.  [BZ #1331]
71088         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71089         macro argument.
71090         Reported by Matej Vela <vela@debian.org>.
71091
71092 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71093
71094         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71095         include <wchar.h>; no longer needed.
71096
71097 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71098
71099         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71100
71101 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71102         and  Ulrich Drepper  <drepper@redhat.com>
71103
71104         Import from libc.
71105         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71106         instead of inline stream orientation test and two separate
71107         function calls.  Pay no attention to USE_IN_LIBIO.
71108
71109 2005-10-13  Simon Josefsson  <jas@extundo.com>
71110
71111         * modules/gc-hmac-md5-tests: New file.
71112
71113         * tests/test-gc-hmac-sha1.c: New file.
71114
71115         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71116
71117         * modules/gc-hmac-md5-tests: New file.
71118
71119         * tests/test-gc-md5.c: New file.
71120
71121         * modules/gc-md5-tests: New file.
71122
71123 2005-10-13  Simon Josefsson  <jas@extundo.com>
71124
71125         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71126         Move memory allocation outside of loop.
71127
71128 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71131         intermediate directory is in a read-only file system.  Problem
71132         reported by Eric Blake.
71133
71134 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71135
71136         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71137
71138 2005-10-12  Simon Josefsson  <jas@extundo.com>
71139
71140         * tests/test-hmac-sha1.c: New file.
71141
71142         * modules/hmac-sha1-tests: New file.
71143
71144         * modules/hmac-sha1: New file.
71145
71146 2005-10-12  Simon Josefsson  <jas@extundo.com>
71147
71148         * modules/gc-sha1: New file.
71149
71150 2005-10-12  Simon Josefsson  <jas@extundo.com>
71151
71152         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71153
71154         * tests/test-gc-pbkdf2-sha1.c: New file.
71155
71156 2005-10-12  Simon Josefsson  <jas@extundo.com>
71157
71158         * modules/gc-md5, modules/gc-hmac-md5: New files.
71159
71160         * modules/gc (Files): Remove md5, memxor and hmac files.
71161
71162 2005-10-12  Simon Josefsson  <jas@extundo.com>
71163
71164         * m4/gc-pbkdf2-sha1.m4: New file.
71165
71166         * m4/gc-hmac-sha1.m4: New file.
71167
71168         * m4/gc-sha1: New file.
71169
71170         * m4/hmac-sha1.m4: New file.
71171
71172 2005-10-12  Simon Josefsson  <jas@extundo.com>
71173
71174         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71175
71176         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71177
71178 2005-10-12  Simon Josefsson  <jas@extundo.com>
71179
71180         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71181         suggested by Bruno Haible <bruno@clisp.org>.
71182
71183 2005-10-12  Simon Josefsson  <jas@extundo.com>
71184
71185         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71186
71187 2005-10-12  Simon Josefsson  <jas@extundo.com>
71188
71189         * lib/gc-pbkdf2-sha1.c: New file.
71190
71191         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71192
71193 2005-10-12  Simon Josefsson  <jas@extundo.com>
71194
71195         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71196
71197         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71198
71199 2005-10-12  Simon Josefsson  <jas@extundo.com>
71200
71201         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71202         GC_USE_HMAC_MD5, respectively.
71203
71204         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71205         (gc_md5): Fix typo.
71206
71207         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71208
71209         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71210
71211         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71212
71213 2005-10-12  Bruno Haible  <bruno@clisp.org>
71214
71215         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71216         Reported by Stepan Kasal <kasal@ucw.cz>.
71217
71218 2005-10-11  Simon Josefsson  <jas@extundo.com>
71219
71220         * tests/test-crc.c: New file.
71221
71222         * modules/crc, modules/crc-tests: New files.
71223
71224 2005-10-11  Simon Josefsson  <jas@extundo.com>
71225
71226         * m4/crc.m4: New file.
71227
71228 2005-10-11  Simon Josefsson  <jas@extundo.com>
71229
71230         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71231
71232         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71233
71234         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71235
71236 2005-10-11  Simon Josefsson  <jas@extundo.com>
71237
71238         * lib/crc.h, lib/crc.c: New files.
71239
71240         * lib/gc.h (gc_hash_buffer): Add doc.
71241
71242 2005-10-11  Bruno Haible  <bruno@clisp.org>
71243
71244         * modules/c-strcasestr: New file.
71245         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71246
71247 2005-10-11  Bruno Haible  <bruno@clisp.org>
71248
71249         * modules/c-strcase: New file.
71250         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71251
71252 2005-10-11  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/strcasecmp.c: Include limits.h.
71255         (strcasecmp): Avoid integer overflow on exotic platforms.
71256         * lib/strncasecmp.c: Include limits.h.
71257         (strncasecmp): Avoid integer overflow on exotic platforms.
71258         Reported by Paul Eggert.
71259
71260 2005-10-11  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/c-strcasestr.h: New file, from GNU gettext.
71263         * lib/c-strcasestr.c: New file, from GNU gettext.
71264
71265 2005-10-11  Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/c-strcase.h: New file, from GNU gettext.
71268         * lib/c-strcasecmp.c: New file, from GNU gettext.
71269         * lib/c-strncasecmp.c: New file, from GNU gettext.
71270
71271 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * modules/mempcpy (License): GPL -> LGPL.
71274         * modules/strchrnul (License): Likewise.
71275         * modules/sysexits (License): Likewise.
71276
71277 2005-10-08  Simon Josefsson  <jas@extundo.com>
71278
71279         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71280
71281 2005-10-07  Simon Josefsson  <jas@extundo.com>
71282
71283         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71284
71285 2005-10-06  Simon Josefsson  <jas@extundo.com>
71286
71287         * tests/test-hmac-md5.c: New file.
71288
71289         * modules/hmac-md5-tests: New file.
71290
71291         * modules/hmac-md5: New file.
71292
71293 2005-10-06  Simon Josefsson  <jas@extundo.com>
71294
71295         * m4/hmac-md5.m4: New file.
71296
71297         * m4/memxor.m4: Require gl_C_RESTRICT.
71298
71299 2005-10-06  Simon Josefsson  <jas@extundo.com>
71300
71301         * lib/memxor.c (memxor): Avoid casts and warnings.
71302
71303 2005-10-06  Simon Josefsson  <jas@extundo.com>
71304
71305         * lib/hmac-md5.c: New file.
71306
71307         * lib/hmac.h: New file.
71308
71309 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71310
71311         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71312         promotes to int, not unsigned int, to catch the AIX 5.3
71313         compiler bug.
71314
71315 2005-10-05  Simon Josefsson  <jas@extundo.com>
71316
71317         * modules/memxor: New file.
71318
71319         * modules/iconv (Files): Move config.rpath to havelib, it is used
71320         there.
71321
71322         * modules/havelib (Files): Add config.rpath.
71323
71324 2005-10-05  Simon Josefsson  <jas@extundo.com>
71325
71326         * m4/memxor.m4: New file.
71327
71328 2005-10-05  Simon Josefsson  <jas@extundo.com>
71329
71330         * lib/memxor.c (memxor): Fix compiler error.
71331
71332         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71333         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71334
71335         * lib/memxor.h, lib/memxor.c: New files.
71336
71337         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71338         we assume all systems have it, suggested by Jim Meyering
71339         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71340         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71341         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71342         same reasons.
71343
71344 2005-10-05  Simon Josefsson  <jas@extundo.com>
71345
71346         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71347
71348 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71351         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71352         needed, since the source code now assumes these .h files.
71353
71354 2005-10-05  Derek Price  <derek@ximbiot.com>
71355
71356         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71357
71358 2005-10-05  Bruno Haible  <bruno@clisp.org>
71359
71360         * modules/stdint (License): Change to LGPL.
71361
71362 2005-10-04  Simon Josefsson  <jas@extundo.com>
71363
71364         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71365         D. Baushke" <mdb@gnu.org>.
71366
71367 2005-10-04  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/verify.h (verify_true): Provide alternative definition for C++.
71370
71371 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71372
71373         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71374         (SSIZE_MAX): New macro, if not already defined.
71375         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71376         than 2 GiB.
71377
71378 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71379
71380         Sync from coreutils.
71381         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71382         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71383         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71384         ULLONG_MAX doesn't work with 2.7.2.1.
71385
71386 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71387
71388         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71389         From Ben Pfaff.
71390
71391         * modules/exclude (Depends-on): Depend on verify.
71392         * modules/strtoimax (Depends-on): Likewise.
71393         * modules/utimecmp (Depends-on): Likewise.
71394
71395 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71396
71397         * lib/exclude.c: Include verify.h.
71398         (verify): Remove.  All callers changed to use verify.h's version.
71399         * lib/strtoimax.c: Likewise.
71400         * lib/utimecmp.c: Likewis.e
71401
71402         Sync from coreutils.
71403         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71404         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71405         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71406         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71407         bother returning ENOSYS if settimeofday or stime fails; just let
71408         them return whatever errno they want to return.
71409         * lib/utimens.c: Include unistd.h, for dup2.
71410         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71411         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71412
71413 2005-10-02  Jim Meyering  <jim@meyering.net>
71414
71415         Sync from coreutils.
71416         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71417         from glibc-2.2.5 that fails for read-only files.
71418
71419 2005-10-02  Jim Meyering  <jim@meyering.net>
71420
71421         Sync from coreutils.
71422         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71423         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71424         `#if HAVE_CONFIG_H'.
71425         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71426         Remove AT_FDCWD test.
71427         Do not consume the fd unless successful.
71428         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71429         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71430         block, so that we don't even try to compile it if settimeofday is
71431         available.  This works around a compilation failure on OSF1 V5.1,
71432         due to stime requiring a `long int*' while tv_sec is `int'.
71433
71434 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71435
71436         Sync from coreutils.
71437         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71438         against `yes', rather than just testing for nonempty.
71439
71440 2005-10-01  Simon Josefsson  <jas@extundo.com>
71441
71442         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71443         and Darwin.
71444
71445         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71446         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71447         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71448         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71449         Check if struct addrinfo is declared.
71450
71451 2005-10-01  Simon Josefsson  <jas@extundo.com>
71452
71453         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71454         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71455         AI_* and EAI_* definitions.  Protect function declarations.
71456
71457 2005-10-01  Jim Meyering  <jim@meyering.net>
71458
71459         Sync from coreutils.
71460
71461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71462         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71463         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71464         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71465         in the inet and nsl libraries.  Required on Solaris 5.7.
71466
71467 2005-10-01  Jim Meyering  <jim@meyering.net>
71468
71469         Sync from coreutils.
71470         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71471         in the inet and nsl libraries.  Required on Solaris 5.7.
71472
71473 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71474
71475         * lib/getdelim.c (getdelim): Remove unused variables.
71476
71477 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71480         so that the code works even with ancient cpp.  Portability problem
71481         with GCC 2.7.2.1 reported by Thomas M.Ott.
71482
71483 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         * modules/regex (Depends-on): Add strcase.
71486
71487         * modules/gethostname (Licence): Change from GPL to LGPL, since
71488         gethostname.c is a trivial implementation of a standard library
71489         function.
71490         * modules/poll (License): Change from GPL to LGPL, since it's
71491         derived from LGPL code.
71492
71493 2005-09-27  Jim Meyering  <jim@meyering.net>
71494
71495         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71496         HAVE_CONFIG_H.
71497
71498         * lib/intprops.h (signed_type_or_expr__): Define.
71499         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71500         for unsigned types.
71501
71502 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * lib/verify.h (verify_expr): Remove, replacing with:
71505         (verify_true): New macro that returns true instead of void.
71506         (verify_type__): Remove.
71507         (verify): Use verify_true rather than verify_type__.
71508
71509 2005-09-26  Bruno Haible  <bruno@clisp.org>
71510
71511         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71512         is necessary.
71513         (lib_SOURCES): Remove mbchar.c.
71514         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71515         (Files): Add m4/mbrtowc.m4.
71516         * modules/mbiter: Likewise.
71517         * modules/mbuiter: Likewise.
71518
71519 2005-09-26  Bruno Haible  <bruno@clisp.org>
71520
71521         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71522         compile mbchar.c if they are not both present.
71523         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71524         * m4/mbiter.m4 (gl_MBITER): Likewise.
71525         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71526         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71527         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71528
71529 2005-09-25  Jim Meyering  <jim@meyering.net>
71530
71531         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71532         also uses socklen_t.
71533
71534 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         * lib/utimens.c (ENOSYS): Define if not already defined.
71537         (futimens): Support having a null PATH if the file descriptor
71538         is nonnegative.
71539
71540         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71541         Remove.
71542         (__attribute): Define to empty unless GCC 3.1 or later.
71543         This works around a core dump on OpenBSD 3.4, which has GCC
71544         2.95.3, which dumps core when given __attribute__(()).  It also
71545         simplifies other tests, since we really don't want to bother with
71546         worrying about which ancient version of GCC supported what.
71547         Original problem reported by Yoann Vandoorselaere, with part of
71548         the fix suggested by Derek Price.
71549
71550 2005-09-24  Jim Meyering  <jim@meyering.net>
71551
71552         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71553         so we can once again use a positive bitfield width of 1 -- now we
71554         don't have to explain why we were using a bitfield width of 2.
71555
71556 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71557
71558         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71559         and similarly for the other external symbols.  Problem reported
71560         by James Gallager.
71561
71562         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71563         bug reported by Jim Meyering.
71564
71565         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71566         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71567         not needed, since socklen is a prerequisite module.
71568
71569 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71570
71571         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71572         Problem reported by Eric Blake.
71573         (getaddrinfo): Initialize se so that it's not garbage.
71574         Redo internal storage allocation so that it doesn't make unportable
71575         assumptions about alignment.
71576         Fix a memory leak.
71577
71578         * lib/utimens.c (futimens): Use futimesat if available.
71579         Prefer it to futimes since it doesn't have the futimes bug.
71580
71581         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71582         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71583         Instead, declare a function that returns a pointer to an array,
71584         and use verify_type__ to declare the size of the array.
71585         Problem and germ of a solution reported by Bruno Haible.
71586         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71587         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71588
71589 2005-09-23  Jim Meyering  <jim@meyering.net>
71590
71591         Sync from coreutils.
71592         Correct build failure (socklen_t not defined) on at least
71593         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71594         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71595
71596 2005-09-23  Jim Meyering  <jim@meyering.net>
71597
71598         * modules/getaddrinfo (Depends-on): Add socklen.
71599
71600 2005-09-23  Bruno Haible  <bruno@clisp.org>
71601
71602         * tests/test-verify.c: New file.
71603
71604 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         Sync from coreutils.
71607
71608         * modules/argmatch (Depends-on): Add verify.
71609         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71610         unistd-safer.
71611         * modules/save-cwd (Depends-on): Likewise.
71612
71613         * modules/openat (Files): Add lib/openat-die.c.
71614         (Depends-on): Remove error, exitfail.
71615         Add dirname.
71616
71617         * modules/verify: New file.
71618         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71619         with "verify" module.
71620
71621 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         Sync from coreutils.
71624
71625         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71626         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71627         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71628         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71629         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71630         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71631         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71632         Don't bother checking for string.h, stdlib.h, unistd.h.
71633         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71634         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71635         module's job.
71636         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71637         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71638
71639         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71640         (gl_GETDATE): Use it.
71641
71642         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71643
71644 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         Sync from coreutils.
71647
71648         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71649         stat-time.h.
71650         * lib/argmatch.h: Include verify.h
71651         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71652         (ARGMATCH_ASSERT): Remove; unused.
71653         * lib/canonicalize.c: Assume STDC_HEADERS.
71654         * lib/exclude.c: Include "strcase.h".
71655         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71656         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71657         and stdio-safer.h.
71658         (getusershell): Call fopen, not fopen_safer.
71659         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71660         Do not include unistd-safer.h.
71661         (save_cwd): Don't call fd_safer; no longer needed
71662         now that we include fcntl--.h.
71663
71664         * lib/getdate.y (relative_time): New type.
71665         (RELATIVE_TIME_0): New constant.
71666         (parser_control): Use relative_time instead of doing it ourselves.
71667         (%union): Add new relative_time rel member.
71668         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71669         Now typeless.
71670         (relunit, relunit_snumber): Now of type rel.
71671         (zone, rel, relunit, get_date): Adjust to above changes.
71672
71673         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71674         Do not include unistd-safer.h.
71675         (getloadavg): Don't call fd_safer; no longer needed
71676         now that we include fcntl--.h.
71677
71678         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71679         (make_dir_parents): Treat ENOSYS like EEXIST.
71680
71681         Improve quality of diagnostics on restore_cwd failure.
71682         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71683         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71684         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71685         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71686         each time through the loop.  Do not diagnose restore_cwd failure;
71687         that is the caller's job (and perhaps the caller does not care).
71688
71689         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71690         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71691         If the file already exists but is not a directory, don't bother
71692         to try to make its parents.
71693         Close potential file descriptor leak if we can't chdir("/") (!).
71694         Don't always return true if chdir($PWD) fails; return true only
71695         if the requested action was done successfully (except for the
71696         chdir($PWD)).
71697         Don't log final directory unless we actually made it.
71698         Refactor to avoid duplicate code to fix up permissions.
71699         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71700
71701         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71702         to make it a bit faster and (I hope) clearer.
71703         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71704         Fix bug in formats like %2N.
71705
71706         * lib/verify.h: New file.
71707
71708 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71709
71710         Sync from coreutils.
71711         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71712
71713 2005-09-22  Jim Meyering  <jim@meyering.net>
71714
71715         Sync from coreutils.
71716
71717         * m4/lstat.m4 (gl_FUNC_LSTAT):
71718         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71719         Remove obsolete comment.
71720         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71721         * m4/xstrtod.m4: Likewise.
71722
71723         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71724
71725 2005-09-22  Jim Meyering  <jim@meyering.net>
71726
71727         Sync from coreutils.
71728
71729         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71730
71731         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71732         the .tm_year member, since otherwise gcc-4.0 would now warn about
71733         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71734
71735         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71736         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71737
71738         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71739         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71740         when run in a time zone for which daylight savings time is in effect
71741         for the starting date.
71742
71743         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71744         stop us from restricting permissions of just-created absolute-named
71745         directories.
71746         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71747         to restore initial working directory.
71748         * lib/mkdir-p.c (make_dir_parents): New parameter:
71749         different_working_dir, to tell caller if/when we change the working
71750         directory and are unable to return to the initial one.
71751         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71752         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71753         `return false'.  This fixes a bug introduced on 2004-07-30.
71754
71755         * lib/openat.c (fdopendir): Be sure to close the supplied
71756         file descriptor before returning.  This makes our replacement
71757         implementation a little closer to Solaris's, where fdopendir
71758         ties the file descriptor to the returned DIR* pointer.
71759         * lib/openat.c (unlinkat): New function.
71760         * lib/openat.h (unlinkat): Add prototype.
71761         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71762         (openat_restore_fail): Rename from openat_restore_die.
71763         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71764
71765         Provide an alternative to exiting immediately upon save_cwd or
71766         restore_cwd failure.  Now, an application can arrange e.g.,
71767         to perform a longjump in that case.
71768         * lib/openat.c: Include dirname.h.
71769         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71770         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71771         and openat_restore_die rather than calling error directly.
71772         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71773
71774         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71775         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71776         define.
71777
71778         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71779         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71780                             int utc, int nanoseconds);
71781         Background:
71782         date should not have to allocate a megabyte of virtual memory to
71783         handle a format argument like +%1048575T.  When implemented with
71784         strftime, it must allocate such a buffer, use strftime to fill it
71785         in, print it, then free it.
71786         With fprintftime, it simply prints everything and exits.
71787         With no need for memory allocation, that's one fewer way to fail.
71788         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71789         optional field width, not before, so we accept %9:z, not %:9z.
71790         (my_strftime): Be sure to use L_('x') for literals.
71791
71792         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71793         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71794         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71795         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71796         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71797         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71798         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71799         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71800         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71801         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71802         * lib/xgethostname.c, lib/xreadlink.c:
71803         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71804
71805         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71806         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71807         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71808         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71809         and don't include <sys/file.h>).
71810
71811 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71812
71813         Sync from coreutils.
71814
71815         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71816         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71817         [!LDAV_DONE]: Avoid unused variable warning.
71818
71819 2005-09-21  Bruno Haible  <bruno@clisp.org>
71820
71821         * lib/unicodeio.h (unicode_to_mb): New declaration.
71822
71823 2005-09-20  Derek Price  <derek@ximbiot.com>
71824
71825         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71826         getaddrinfo.h.
71827
71828 2005-09-20  Bruno Haible  <bruno@clisp.org>
71829
71830         * gnulib-tool: Remove trailing slashes from the values specified for
71831         --source-base, --m4-base, --tests-base, --aux-dir.
71832         Suggested by Simon Josefsson <jas@extundo.com>.
71833
71834 2005-09-20  Bruno Haible  <bruno@clisp.org>
71835
71836         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71837         func_modules_to_filelist, func_import, func_create_testdir): Make all
71838         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71839         change when gnulib-tool is invoked in a different locale.
71840
71841 2005-09-19  Simon Josefsson  <jas@extundo.com>
71842
71843         * m4/socklen.m4: Fix typo.
71844
71845 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71846
71847         Use a consistent style for including <config.h>.
71848         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71849         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71850         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71851         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71852         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71853         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71854         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71855         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71856         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71857         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71858         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71859         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71860         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71861         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71862         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71863         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71864         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71865         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71866         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71867         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71868         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71869         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71870         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71871         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71872         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71873         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71874         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71875         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71876         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71877         lib/xstrtoumax.c, lib/yesno.c:
71878         Standardize inclusion of config.h.
71879         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71880         lib/inttostr.h:  Removed inclusion of config.h from header files.
71881         * lib/inttostr.c:  Adjusted in-tree users.
71882         * lib/timespec.h: Remove superfluous warning to include config.h.
71883         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71884         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71885         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71886         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71887         config.h with HAVE_CONFIG_H.
71888
71889 2005-09-19  Jim Meyering  <jim@meyering.net>
71890
71891         * modules/pathmax (License): Change to LGPL.
71892
71893 2005-09-19  Derek Price  <derek@ximbiot.com>
71894
71895         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71896
71897 2005-09-19  Bruno Haible  <bruno@clisp.org>
71898
71899         * gnulib-tool (import): Provide default for --tests-base.
71900
71901 2005-09-19  Bruno Haible  <bruno@clisp.org>
71902
71903         * doc/quote.texi: New file, extracted from gnulib.texi.
71904         * doc/ctime.texi: New file, extracted from gnulib.texi.
71905         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71906         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71907         * doc/gnulib.texi: Include them.
71908
71909 2005-09-18  Bruno Haible  <bruno@clisp.org>
71910
71911         Portability fix.
71912         * gnulib-tool (func_readlink): New function.
71913         (func_ln_if_changed): Use it.
71914
71915 2005-09-18  Bruno Haible  <bruno@clisp.org>
71916
71917         * gnulib-tool: Support --with-tests also with --import.
71918         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71919         (func_import): Use variables $testsbase and $inctests. Emit a
71920         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71921         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71922         SUBDIRS += $testsdir.
71923         (func_create_testdir): Update.
71924
71925 2005-09-18  Bruno Haible  <bruno@clisp.org>
71926
71927         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71928         instead of $dry_run.
71929         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71930         (func_ln_if_changed): Don't handle dry-run here.
71931         (func_import): In dry-run mode, detect more precisely which actions
71932         would be performed, and don't use "...ing" verbs.
71933
71934 2005-09-18  Bruno Haible  <bruno@clisp.org>
71935
71936         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71937         (func_import): Use join on two temporary files instead of three nested
71938         loops, in order to determine which files are new or old.
71939
71940 2005-09-18  Bruno Haible  <bruno@clisp.org>
71941
71942         * gnulib-tool (func_import): Comment out code that spits out the
71943         new files with --dry-run.
71944
71945 2005-09-18  Bruno Haible  <bruno@clisp.org>
71946
71947         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71948
71949 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71950
71951         * lib/stat-time.h: New file.
71952         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71953         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71954         in a different way.
71955         (timespec_cmp): New function.
71956         * lib/utimecmp.c: Include stat-time.h.
71957         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71958         members exist, not on the obsolescent ST_MTIM_NSEC.
71959         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71960
71961 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71964
71965 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71966
71967         * MODULES.html.sh (File system functions): Add stat-time.
71968         * modules/stat-time: New file.
71969         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71970         is now done in a different way, by the stat-time module.
71971         * modules/utimecmp (Depends-on): Add stat-time.
71972
71973 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * m4/st_mtim.m4: Remove.  Superseded by...
71976         * m4/stat-time.m4: New file.
71977         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71978         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71979
71980 2005-09-15  Derek Price  <derek@ximbiot.com>
71981
71982         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71983
71984 2005-09-15  Derek Price  <derek@ximbiot.com>
71985
71986         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71987         * lib/regex_internal.c: Ditto, using this...
71988         (__GNUC_PREREQ): ...new macro.
71989         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71990         using...
71991         (__GNUC_PREREQ): ...this new macro.
71992
71993         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71994
71995 2005-09-15  Derek Price  <derek@ximbiot.com>
71996             Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71999         changes, consolidating in...
72000         * lib/regex_internal.h: ...this file.
72001
72002 2005-09-13  Jim Meyering  <jim@meyering.net>
72003
72004         * lib/canon-host.c: Filter through gnu indent and reword comments
72005         slightly.
72006         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72007
72008 2005-09-13  Derek Price  <derek@ximbiot.com>
72009
72010         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72011         failure.
72012         Reported by Jim Meyering  <jim@meyering.net>.
72013
72014 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72015
72016         * lib/base64.c: Typo.
72017         (base64_encode): Put b64str in initialized data section.
72018
72019 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         Merge glibc and coreutils changes into gnulib, plus a few
72022         extra fixes.
72023         * lib/md5.c: Use #error rather than a string.
72024         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72025         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72026         (__attribute__): Define to empty for non recent-GCC.
72027         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72028         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72029         Renamed from their non-__ counterparts, with new macros replacing
72030         them if not _LIBC.  Add __THROW attribute.
72031         (rol): Remove.
72032         (struct md5_ctx): Align buffer if using GCC.
72033         * lib/sha1.h (struct sha1_ctx): Likewise.
72034         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72035         The old name was backwards.
72036         (NOTSWAP): Remove; not used.
72037         (rol): New macro, moved here from md5.h.
72038         (sha1_process_block): Remove a FIXME that doesn't make sense.
72039
72040 2005-09-12  Derek Price  <derek@ximbiot.com>
72041
72042         Return usable errors from canon-host.
72043         * lib/canon-host.h: New file.
72044         * lib/canon-host.c (canon_host): Wrap...
72045         (canon_host_r): ...this new function, which now relies exclusively on
72046         getaddrinfo.
72047         (ch_strerror): New function.
72048         (last_cherror): New global.
72049         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72050         interface.
72051         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72052         void *.
72053         (freeaddrinfo): Free ai->ai_canonname when set.
72054
72055 2005-09-12  Derek Price  <derek@ximbiot.com>
72056
72057         Make canon-host require getaddrinfo.
72058         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72059         AC_LIBSOURCE canon-host.h.  Call...
72060         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72061         gl_GETADDRINFO.
72062         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72063
72064 2005-09-12  Derek Price  <derek@ximbiot.com>
72065
72066         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72067         LGPL.
72068         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72069
72070 2005-09-12  Derek Price  <derek@ximbiot.com>
72071
72072         * lib/gai_strerror.c: Include config.h when available.  Include
72073         getaddrinfo.h before other headers to test interface.
72074         Reported by Larry Jones <lawrence.jones@ugs.com>.
72075
72076 2005-09-12  Derek Price  <derek@ximbiot.com>
72077             Paul Eggert  <eggert@cs.ucla.edu>
72078
72079         * modules/glob (Files): Add glob-libc.h.
72080
72081 2005-09-12  Derek Price  <derek@ximbiot.com>
72082             Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72085         glob_.h, glob-libc.h.
72086         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72087
72088 2005-09-12  Derek Price  <derek@ximbiot.com>
72089             Paul Eggert  <eggert@cs.ucla.edu>
72090
72091         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72092         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72093         protecting things that should be done only in gnulib contexts.
72094         * lib/glob_.h: New file, containing only the glob things needed for
72095         gnulib.
72096         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72097         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72098         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72099         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72100         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72101         and to respect the namespace rules better.
72102
72103 2005-09-08  Simon Josefsson  <jas@extundo.com>
72104
72105         * modules/socklen: New file.
72106
72107 2005-09-08  Simon Josefsson  <jas@extundo.com>
72108
72109         * m4/socklen.m4: New file.
72110
72111 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * modules/utimens (Files): Add m4/utimbuf.m4, since
72114         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72115         Reported by Sergey Poznyakoff.
72116
72117 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72120         definitions, since that's the preferred style in glibc.
72121         Fix a minor spacing issue, and update copyright notice to match
72122         glibc's.
72123
72124 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72125
72126         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72127
72128 2005-09-06  Simon Josefsson  <jas@extundo.com>
72129
72130         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72131         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72132
72133 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72134
72135         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72136         warning.
72137
72138 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * config/srclist.txt: Add glibc bug 1302.
72141
72142 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         Change bitset word type from unsigned int to unsigned long int,
72145         as this has better performance on typical 64-bit hosts.
72146         Port bitset code to hosts with unusual word sizes.
72147         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72148         (build_collating_symbol):
72149         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72150         argument is a bitset.  This is merely a style issue, but it makes
72151         it clearer that an entire array is expected.
72152         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72153         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72154         Port to the case where bitset_word is not the same as unsigned int.
72155         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72156         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72157         Likewise.
72158         * lib/regexec.c (check_dst_limits_calc_pos_1,
72159         check_subexp_matching_top):
72160         (build_trtable, group_nodes_into_DFAstates):
72161         Likewise.
72162         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72163         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72164         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72165         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72166         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72167         * lib/regcomp.c (optimize_subexps, lower_subexp):
72168         Work even if bitset_word has holes in its bitwise representation.
72169         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72170         * lib/regexec.c (check_dst_limits_calc_pos_1,
72171         check_subexp_matching_top):
72172         Likewise.
72173         * lib/regex_internal.c (re_string_reconstruct):
72174         Don't assume UCHAR_MAX == 255.
72175         * lib/regex_internal.h (bitset_set_all): Likewise.
72176         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72177         All uses changed.
72178         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72179         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72180         All uses changed.
72181         (BITSET_WORD_MAX): New macro.
72182         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72183         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72184         (bitset_empty, bitset_copy):
72185         Prefer sizeof (bitset) to multiplying it out ourselves.
72186         (bitset_not_merge): Remove; unused.
72187         (bitset_contain): Return bool, not unsigned int with one bit on.
72188         All callers changed.
72189         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72190         alignment than re_node_set; do this by defining a new internal
72191         type struct dests_alloc and using it to allocate memory.
72192
72193 2005-09-05  Bruno Haible  <bruno@clisp.org>
72194
72195         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72196         links.
72197
72198 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72199
72200         * modules/size_max (Makefile.am): Add size_max.h
72201
72202 2005-09-04  Derek Price  <derek@ximbiot.com>
72203
72204         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72205
72206 2005-09-03  Simon Josefsson  <jas@extundo.com>
72207
72208         * gnulib-tool: Fix typo.
72209
72210 2005-09-03  Simon Josefsson  <jas@extundo.com>
72211
72212         * config/srclist.txt: Add glibc bug 1293.
72213
72214 2005-09-03  Derek Price  <derek@ximbiot.com>
72215
72216         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72217         From Larry Jones <lawrence.jones@ugs.com>.
72218
72219 2005-09-02  Simon Josefsson  <jas@extundo.com>
72220
72221         * modules/socklen: New file.
72222
72223 2005-09-02  Simon Josefsson  <jas@extundo.com>
72224
72225         * modules/havelib: New module.
72226
72227         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72228         Use havelib.
72229
72230 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         Check for arithmetic overflow when calculating sizes, to prevent
72233         some buffer-overflow issues.  These patches are conservative, in the
72234         sense that when I couldn't determine whether an overflow was possible,
72235         I inserted a run-time check.
72236         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72237         macros.
72238         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72239         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72240         (re_xnrealloc, re_x2nrealloc): New inline functions.
72241         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72242         parse_bracket_exp):
72243         (build_equiv_class, build_charclass): Check for arithmetic overflow
72244         in size expression calculations.
72245         * lib/regex_internal.c (re_string_realloc_buffers):
72246         (build_wcs_upper_buffer, re_node_set_add_intersect):
72247         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72248         (re_dfa_add_node, register_state): Likewise.
72249         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72250         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72251         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72252         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72253
72254 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72257         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72258
72259 2005-09-02  Bruno Haible  <bruno@clisp.org>
72260
72261         Support for lib vs. lib64 distinction on biarch platforms.
72262         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72263         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72264         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72265
72266 2005-09-02  Bruno Haible  <bruno@clisp.org>
72267
72268         * gnulib-tool (import): In the other first-use case, provide defaults
72269         as well.
72270
72271 2005-09-02  Bruno Haible  <bruno@clisp.org>
72272
72273         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72274         patches not yet found in the latest gettext release.
72275
72276 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72277
72278         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72279         to avoid a collision with bits/local_lim.h in glibc.
72280         All uses changed.  Problem reported by Dmitry V. Levin in
72281         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72282
72283         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72284         bugs in int versus size_t comparisons.
72285         (re_string_context_at): Fix bug where the code assumed that
72286         Idx is signed.
72287
72288         Use bool where appropriate.
72289         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72290         All callers changed.
72291         (calc_eclosure_iter): Likewise, for ROOT arg.
72292         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72293         (build_charclass_op): Likewise, for NON_MATCH arg.
72294         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72295         (re_string_construct_common): Likewise, for ICASE arg.
72296         * lib/regexec.c (re_search_2_stub, re_search_stub):
72297         Likewise, for RET_LEN arg.
72298         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72299         (set_regs): Likewise, for FL_BACKTRACK arg.
72300         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72301         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72302         (calc_eclosure_iter, parse_bracket_exp):
72303         Use bool for internal variables that are booleans.
72304         * lib/regexec.c (re_search_internal, check_matching,
72305         proceed_next_node):
72306         (set_regs, build_sifted_states, sift_states_bkref):
72307         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72308         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72309         (find_collation_sequence_value):
72310         Likewise.
72311         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72312         (re_node_set_compare):
72313         Return bool, not int. All callers changed.
72314         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72315         (build_trtable, check_node_accept): Likewise.
72316         * lib/regex_internal.h: Include stdbool.h.
72317
72318         Fix bugs uncovered when converting to bool.
72319         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72320         failure instead of charging ahead blindly.
72321         * lib/regex_internal.c (register_state): Likewise.
72322         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72323         for freeing internal storage.
72324         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72325         bitset pieces used as boolean, to avoid undefined behavior
72326         on hosts that do int overflow checking.
72327
72328 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * config/srclist.txt: Add glibc bugs 1285-1287.
72331
72332 2005-09-01  Jim Meyering  <jim@meyering.net>
72333
72334         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72335         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72336         Require gl_STAT_MACROS, too.
72337
72338 2005-09-01  Bruno Haible  <bruno@clisp.org>
72339
72340         * gnulib-tool (import): In the first-use case, provide defaults.
72341
72342 2005-09-01  Bruno Haible  <bruno@clisp.org>
72343
72344         * gnulib-tool (func_import): Remove the .tmp files.
72345
72346 2005-09-01  Bruno Haible  <bruno@clisp.org>
72347
72348         * gnulib-tool (func_import): Fix handling of symbolic links.
72349
72350 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72353         old glibc regex code mishandles strings longer than 2**31 bytes.
72354         This patch fixes this when the regex code is used in gnulib
72355         (i.e., outside glibc).
72356
72357         This patch should not affect the use of the regex code inside
72358         glibc.  No doubt this problem also needs to be handled for glibc
72359         as well, but the result will be an incompatible change to the
72360         glibc ABI, and the old ABI will have to be supported too.  That
72361         can be the the subject for another patch.
72362
72363         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72364         governing whether the rest of this patch is active.  By default,
72365         the macro is disabled and the patch has no effect.
72366         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72367         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72368         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72369         (re_match_2, re_set_registers): Use the new types.
72370         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72371         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72372         New macros.
72373         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72374         (re_string_context_at, bin_tree_t, re_dfastate_t):
72375         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72376         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72377         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72378         (re_string_char_size_at, re_string_wchar_at):
72379         (re_string_elem_size_at):
72380         Use the new types and macros to port to 64-bit hosts.
72381         Use unsigned types for internal values, so that the code
72382         mostly works even for arrays larger than SSIZE_MAX.
72383         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72384         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72385         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72386         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72387         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72388         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72389         (calc_inveclosure, parse_dup_op, build_range_exp):
72390         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72391         (fetch_number, create_token_tree, mark_opt_subexp):
72392         Likewise.
72393         * lib/regex_internal.c (re_string_construct_common,
72394         create_ci_newstate):
72395         (create_cd_newstate, re_string_allocate, re_string_construct):
72396         (re_string_realloc_buffers, build_wcs_upper_buffer):
72397         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72398         (re_string_reconstruct, re_string_peek_byte_case):
72399         (re_string_fetch_byte_case, re_string_context_at):
72400         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72401         (re_node_set_init_copy, re_node_set_add_intersect):
72402         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72403         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72404         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72405         (re_acquire_state, re_acquire_state_context, register_state):
72406         Likewise.
72407         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72408         search_cur_bkref_entry):
72409         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72410         (re_search_internal, re_search_2_stub, re_search_stub)
72411         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72412         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72413         (update_cur_sifted_state, check_dst_limits):
72414         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72415         (check_subexp_limits, sift_states_bkref, merge_state_array):
72416         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72417         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72418         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72419         (expand_bkref_cache, check_node_accept_bytes):
72420         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72421         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72422         (acquire_init_state_context, check_halt_node_context):
72423         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72424         (sift_states_backward, clean_state_log_if_needed):
72425         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72426         (find_recover_state, transit_state_sb, transit_state_mb):
72427         (transit_state_bkref, build_trtable, match_ctx_clean):
72428         Likewise.
72429         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72430         to work around an assumption that REG_MISSING is negative.
72431
72432         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72433         (seek_collating_symbol_entry) [defined _LIBC]:
72434         (lookup_collation_sequence_value) [defined _LIBC]:
72435         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72436         Use prototypes rather than old-style function definitions.
72437         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72438         (transit_state_sb) [0]:
72439         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72440
72441         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72442         rm_eo.
72443
72444         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72445         (optimize_subexps, lower_subexp):
72446         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72447         since the signed shift might overflow.  Use 1u<<31 instead.
72448         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72449         Likewise.
72450         * lib/regexec.c (check_dst_limits_calc_pos_1,
72451         check_subexp_matching_top): Likewise.
72452
72453         * lib/regcomp.c (optimize_subexps, lower_subexp):
72454         Use CHAR_BIT rather than 8, for clarity.
72455         * lib/regexec.c (check_dst_limits_calc_pos_1):
72456         (check_subexp_matching_top): Likewise.
72457         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72458         have to worry about portability issues when shifting it left.
72459         Remove no-longer-needed test for table_size > 0.
72460         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72461         in a word, as the resulting behavior is undefined.
72462         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72463         in one case, a <= should have been an <, and in another case the
72464         whole test was missing.
72465         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72466         the standard name CHAR_BIT.
72467         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72468         this is not true on one's complement and signed-magnitude hosts.
72469
72470         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72471         next_last_offset.
72472         (struct re_dfa_t): Remove unused member states_alloc.
72473         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72474
72475 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72478         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72479         and large-file glibc and in 32-bit large-file Solaris.
72480
72481 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72484         lengths fit in regoff_t; this isn't true if regoff_t is the same
72485         width as size_t.
72486         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72487         (= START + RANGE) instead of RANGE.  This avoids overflow
72488         problems when regoff_t is the same width as size_t.
72489         All callers changed.
72490         (re_search_2_stub): Check for overflow when adding the
72491         sizes of the two strings.
72492         (re_search_stub): Check for overflow when adding START
72493         to RANGE; if it occurs, substitute the extreme value.
72494
72495 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72498
72499 2005-08-31  Jim Meyering  <jim@meyering.net>
72500
72501         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72502         a pointer-to-const.
72503         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72504         (register_state): Likewise.
72505         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72506         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72507         (group_nodes_into_DFAstates): Likewise.
72508
72509 2005-08-31  Jim Meyering  <jim@meyering.net>
72510
72511         * check-module: Add a FIXME comment.
72512
72513 2005-08-31  Eric Blake  <ebb9@byu.net>
72514
72515         * modules/unistd-safer (Files): Add unistd--.h.
72516         * modules/stdio-safer (Files): Add stdio--.h.
72517
72518 2005-08-31  Derek Price  <derek@ximbiot.com>
72519
72520         * lib/getdelim.c (getdelim): Return EOF on EOF.
72521         Reported by Larry Jones <lawrence.jones@ugs.com>.
72522
72523 2005-08-31  Bruno Haible  <bruno@clisp.org>
72524
72525         Avoid unnecessary diffs in the generated lib/Makefile.am.
72526         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72527         the generated files.
72528         (func_import): Don't set cmd.
72529
72530 2005-08-31  Bruno Haible  <bruno@clisp.org>
72531
72532         * lib/strstr.c: Include <stddef.h>, for NULL.
72533         * lib/strcasestr.c: Likewise.
72534         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72535
72536 2005-08-31  Bruno Haible  <bruno@clisp.org>
72537
72538         * gnulib-tool: New option --macro-prefix.
72539         (func_import): Use macro_prefix.
72540         (import): Handle option --macro-prefix.
72541
72542 2005-08-31  Bruno Haible  <bruno@clisp.org>
72543
72544         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72545         Also use new variables cached_lgpl, cached_libtool.
72546
72547 2005-08-31  Bruno Haible  <bruno@clisp.org>
72548
72549         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72550         always instantiating them.
72551
72552 2005-08-31  Bruno Haible  <bruno@clisp.org>
72553
72554         * gnulib-tool (func_import): Read the previous cached settings
72555         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72556         earlier added by gnulib but are now dropped. Warn when a gnulib file
72557         overwrites a non-gnulib file.
72558
72559 2005-08-31  Bruno Haible  <bruno@clisp.org>
72560
72561         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72562         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72563         projects that don't keep autogenerated files in CVS. Put into
72564         actioncmd only the specified modules, not the transitive closure.
72565
72566 2005-08-31  Bruno Haible  <bruno@clisp.org>
72567
72568         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72569         Create directories that shall be filled.
72570         (import): Don't look for gl_* macros in configure.ac. Recurse across
72571         all directories containing a gnulib-cache.m4 files, if meaningful.
72572
72573 2005-08-31  Bruno Haible  <bruno@clisp.org>
72574
72575         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72576         (import): Set seen_libtool when we see gl_LIBTOOL.
72577
72578 2005-08-31  Bruno Haible  <bruno@clisp.org>
72579
72580         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72581         declaration macro definitions from generated gnulib.m4.
72582
72583 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72584
72585         * lib/iconvme.h: Add prototype for iconv_alloc.
72586
72587 2005-08-29  Simon Josefsson  <jas@extundo.com>
72588
72589         * lib/iconvme.c: Fix errno.
72590
72591 2005-08-29  Bruno Haible  <bruno@clisp.org>
72592
72593         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72594         that it works when the directory contains spaces.
72595
72596 2005-08-29  Bruno Haible  <bruno@clisp.org>
72597
72598         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72599
72600 2005-08-29  Bruno Haible  <bruno@clisp.org>
72601
72602         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72603         Emit more advice.
72604
72605 2005-08-29  Bruno Haible  <bruno@clisp.org>
72606         and Stepan Kasal  <kasal@ucw.cz>
72607
72608         * check-module: If more parameters are given, check each of them
72609         separately; add more exceptions, as noted by Jim Meyering.
72610         (check_module): New procedure.
72611         (%exempt_header): Now contains all exceptions.
72612
72613 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72614
72615         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72616
72617 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72618
72619         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72620
72621 2005-08-28  Bruno Haible  <bruno@clisp.org>
72622
72623         * m4/gnulib-tool.m4: New file.
72624
72625 2005-08-27  Jim Meyering  <jim@meyering.net>
72626
72627         * modules/unistd-safer (Files): Add pipe-safer.c.
72628         * modules/fcntl-safer (Files): Add creat-safer.c.
72629
72630 2005-08-27  Jim Meyering  <jim@meyering.net>
72631
72632         * m4/stdlib-safer.m4: New file.  From coreutils.
72633         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72634         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72635         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72636         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72637         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72638
72639 2005-08-27  Jim Meyering  <jim@meyering.net>
72640
72641         * lib/fopen-safer.c: Merge minor changes from coreutils.
72642         * lib/dup-safer.c: Likewise.
72643         * lib/fd-safer.c: Likewise.
72644
72645         Merge from coreutils.
72646         * lib/stdio--.h: New file.
72647         * lib/stdlib--.h: New file.
72648         * lib/mkstemp-safer.c: New file.
72649
72650         GNU tar needs these.
72651         * lib/pipe-safer.c: New file.
72652         * lib/creat-safer.c: New file.
72653         * lib/fcntl--.h (creat): Define to creat_safer.
72654         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72655         * lib/unistd--.h (pipe): Define to pipe_safer.
72656         * lib/unistd-safer.h: Declare pipe_safer.
72657
72658 2005-08-26  Simon Josefsson  <jas@extundo.com>
72659
72660         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72661         Haible <bruno@clisp.org>.
72662
72663 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * lib/regex_internal.h: Remove all references to
72666         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72667         or better.
72668         (bitset_not, bitset_merge, bitset_not_merge):
72669         (bitset_mask, re_string_allocate, re_string_construct):
72670         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72671         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72672         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72673         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72674         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72675         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72676         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72677         (re_acquire_state_context):
72678         Remove unnecessary forward decls.
72679         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72680         Put __attribute at function definition,
72681         now that the function decl has been removed.
72682         * lib/regex_internal.c (re_string_peek_byte_case):
72683         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72684         Likewise.
72685
72686 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72687
72688         * m4/regex.m4: Add AC_PREREQ(2.50).
72689         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72690
72691 2005-08-25  Simon Josefsson  <jas@extundo.com>
72692
72693         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72694         __fsetlocking.
72695
72696 2005-08-25  Simon Josefsson  <jas@extundo.com>
72697
72698         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72699         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72700         GLIBC specific code.
72701
72702 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72703
72704         Make regex safe for g++.  This fixes one real bug (an "err"
72705         that should have been "*err").  g++ problem reported by
72706         Sam Steingold.
72707         * lib/regex_internal.h (re_calloc): New macro, consistent with
72708         re_malloc etc.  All callers of calloc changed to use re_calloc.
72709         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72710         not int.  All callers changed.
72711         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72712         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72713         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72714         (find_recover_state): Change "err" to "*err"; this fixes what
72715         appears to be a real bug.
72716         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72717         versus int.
72718
72719 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         * modules/regex (Depends-on): Add malloc, since the code
72722         assumes that !malloc(0) means failure.
72723
72724 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72727
72728         alloca modernization/simplification for regex.
72729         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72730         needs to be at the start of the file, and can be moved into
72731         regex_internal.h and simplified.
72732         * lib/regex_internal.h: Include <alloca.h>.
72733         (__libc_use_alloca) [!defined _LIBC]: New macro.
72734         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72735         now works outside glibc.
72736
72737 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * config/srclist.txt: Add glibc bugs 1241, 1245.
72740
72741 2005-08-25  Jim Meyering  <jim@meyering.net>
72742
72743         * lib/open-safer.c: Include <config.h>.
72744         Otherwise, we'd lose LARGEFILE support in any file using
72745         e.g. "fcntl--.h"
72746
72747 2005-08-25  Bruno Haible  <bruno@clisp.org>
72748
72749         * m4/minmax.m4: Require autoconf 2.52.
72750         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72751         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72752         alternatives of translit over the alphabet.
72753         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72754
72755 2005-08-24  Simon Josefsson  <jas@extundo.com>
72756
72757         * tests/test-getpass.c: New file.
72758
72759 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72760
72761         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72762         for GNU regex features.
72763
72764 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72765
72766         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72767         * lib/regex.h (regerror): Likewise.
72768
72769         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72770         requires this.  (The code never needed it.)
72771
72772         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72773         All uses of recently-renamed identifiers changed to use the new,
72774         POSIX-compliant names.  The code will build and run just fine
72775         without these changes, but it's better to eat our own dog food
72776         and use the standard-conforming names.
72777
72778         * lib/regex.h: Fix a multitude of POSIX name space violations.
72779         These changes have an effect only for programs that define
72780         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72781         do not change anything for programs compiled in the normal way.
72782         Also, there is no effect on the ABI.
72783
72784         (_REGEX_SOURCE): New macro.
72785         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72786         defined and _GNU_SOURCE is not; this fixes a name space violation.
72787
72788         Rename the following macros to obey POSIX requirements.
72789         The old names are still visible as macros if _REGEX_SOURCE is defined.
72790         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72791         RE_BACKSLASH_ESCAPE_IN_LISTS.
72792         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72793         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72794         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72795         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72796         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72797         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72798         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72799         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72800         (REG_INTERVALS): renamed from RE_INTERVALS.
72801         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72802         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72803         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72804         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72805         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72806         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72807         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72808         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72809         RE_UNMATCHED_RIGHT_PAREN_ORD.
72810         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72811         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72812         (REG_DEBUG): renamed from RE_DEBUG.
72813         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72814         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72815         unusual, since we can't clash with the POSIX REG_ICASE.
72816         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72817         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72818         (REG_NO_SUB): renamed from RE_NO_SUB.
72819         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72820         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72821         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72822         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72823         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72824         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72825         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72826         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72827         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72828         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72829         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72830         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72831         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72832         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72833         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72834         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72835         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72836         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72837         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72838         (REG_FIXED): Renamed from REGS_FIXED.
72839         (REG_NREGS): Renamed from RE_NREGS.
72840
72841         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72842         of other REG_* macros, since POSIX says the user is allowed to
72843         #undef these macros selectively.
72844
72845         (reg_errcode_t): Update comment stating what other tables need
72846         to be consistent.
72847
72848         Rename the following enum values to obey POSIX requirements.
72849         The old names are still visible as macros.
72850         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72851         is not defined, since GNU is supposed to be a superset of POSIX as
72852         much as possible, and since we want reg_errcode_t to be a signed
72853         type for implementation consistency.
72854         (_REG_NOERROR): Renamed from REG_NOERROR.
72855         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72856         (_REG_BADPAT): Renamed from REG_BADPAT.
72857         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72858         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72859         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72860         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72861         (_REG_EBRACK): Renamed from REG_EBRACK.
72862         (_REG_EPAREN): Renamed from REG_EPAREN.
72863         (_REG_EBRACE): Renamed from REG_EBRACE.
72864         (_REG_BADBR): Renamed from REG_BADBR.
72865         (_REG_ERANGE): Renamed from REG_ERANGE.
72866         (_REG_ESPACE): Renamed from REG_ESPACE.
72867         (_REG_BADRPT): Renamed from REG_BADRPT.
72868         (_REG_EEND): Renamed from REG_EEND.
72869         (_REG_ESIZE): Renamed from REG_ESIZE.
72870         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72871         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72872         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72873         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72874         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72875
72876         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72877         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72878         changed.  But support the old name if the new one is not defined
72879         and if _REGEX_SOURCE.
72880
72881         Change the following member names in struct re_pattern_buffer.
72882         The old names are still supported if !_REGEX_SOURCE.
72883         The new names are always supported, regardless of _REGEX_SOURCE.
72884         (re_buffer): Renamed from buffer.
72885         (re_allocated): Renamed from allocated.
72886         (re_used): Renamed from used.
72887         (re_syntax): Renamed from syntax.
72888         (re_fastmap): Renamed from fastmap.
72889         (re_translate): Renamed from translate.
72890         (re_can_be_null): Renamed from can_be_null.
72891         (re_regs_allocated): Renamed from regs_allocated.
72892         (re_fastmap_accurate): Renamed from fastmap_accurate.
72893         (re_no_sub): Renamed from no_sub.
72894         (re_not_bol): Renamed from not_bol.
72895         (re_not_eol): Renamed from not_eol.
72896         (re_newline_anchor): Renamed from newline_anchor.
72897
72898         Change the following member names in struct re_registers.
72899         The old names are still supported if !_REGEX_SOURCE.
72900         The new names are always supported, regardless of _REGEX_SOURCE.
72901         (rm_num_regs): Renamed from num_regs.
72902         (rm_start): Renamed from start.
72903         (rm_end): Renamed from end.
72904
72905         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72906         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72907         Prepend __ to parameter names.
72908
72909         Undo yesterday's changes.
72910
72911 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72914         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72915         lib/regex.c.
72916
72917 2005-08-24  Jim Meyering  <jim@meyering.net>
72918
72919         Sync from coreutils.
72920         * m4/fcntl-safer.m4: New file.
72921
72922         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72923         and object files for this module.
72924
72925 2005-08-24  Jim Meyering  <jim@meyering.net>
72926
72927         Sync from coreutils.
72928         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72929
72930 2005-08-24  Jim Meyering  <jim@meyering.net>
72931
72932         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72933         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72934
72935 2005-08-24  Jim Meyering  <jim@meyering.net>
72936
72937         * modules/fcntl-safer: New module.
72938         * modules/fts (Depends-on): Add fcntl-safer.
72939         * MODULES.html.sh (File descriptor based Input/Output):
72940         Add fcntl-safer.
72941
72942 2005-08-24  Bruno Haible  <bruno@clisp.org>
72943
72944         Support for unit test modules.
72945         * modules/README: Mention tests modules.
72946         * modules/TEMPLATE-TESTS: New file.
72947         * gnulib-tool: New options --extract-tests-module, --with-tests and
72948         --tests-base (unused for the moment).
72949         (testsbase, inctests): New variables.
72950         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72951         (func_verify_module): Exclude TEMPLATE-TESTS.
72952         (func_verify_nontests_module, func_verify_tests_module): New functions.
72953         (func_get_dependencies): Add implicit dependency for tests modules.
72954         (func_get_tests_module): New function.
72955         (func_modules_transitive_closure): When --with-tests was specified,
72956         include the unit tests as well, unless explicitly avoided.
72957         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72958         (func_emit_tests_Makefile_am): New function.
72959         (func_create_testdir): When --with-tests was specified, emit a
72960         tests/ directory.
72961         * MODULES.html.sh (Future developments): Update.
72962
72963 2005-08-24  Bruno Haible  <bruno@clisp.org>
72964
72965         * modules/tls-tests: New file.
72966         * tests/test-tls.c: New file, from GNU gettext.
72967
72968 2005-08-24  Bruno Haible  <bruno@clisp.org>
72969
72970         * modules/lock-tests: New file.
72971         * tests/test-lock.c: New file, from GNU gettext.
72972
72973 2005-08-24  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/lock.h: Add multiple inclusion guard.
72976         * lib/tls.h: Add multiple inclusion guard.
72977
72978 2005-08-24  Bruno Haible  <bruno@clisp.org>
72979
72980         * gnulib-tool: Add support for the --aux-dir option to
72981         --create-testdir, --create-megatestdir, --test, --megatest.
72982         (func_create_testdir, func_create_megatestdir): Optionally emit a
72983         AC_CONFIG_AUX_DIR directive.
72984         (create-testdir, create-megatestdir, test, megatest): Provide a
72985         default value for $auxdir.
72986
72987 2005-08-24  Bruno Haible  <bruno@clisp.org>
72988
72989         * gnulib-tool (import): Use compound statement instead of subshell
72990         where possible.
72991
72992 2005-08-24  Bruno Haible  <bruno@clisp.org>
72993
72994         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72995
72996 2005-08-24  Bruno Haible  <bruno@clisp.org>
72997
72998         * gnulib-tool (func_version): Update.
72999
73000 2005-08-24  Bruno Haible  <bruno@clisp.org>
73001
73002         * gnulib-tool (func_import, func_create_testdir,
73003         func_create_megatestdir): Quote all autoconf macro arguments.
73004
73005 2005-08-24  Bruno Haible  <bruno@clisp.org>
73006
73007         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73008         option --force, because --force causes the aclocal.m4 of each
73009         subdirectory to be newer than the corresponding config.h.in.
73010
73011 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73014         All contents moved to gl_REGEX.
73015         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73016         assume that it does.
73017
73018 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         * lib/regex.h (REG_NOSYS)
73021         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73022         Define, since POSIX requires it as of 2001.
73023         (_REG_ENOSYS)
73024         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73025         New private symbol, used to keep the enum signed in all cases.
73026         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73027         Youngman in
73028         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73029
73030         * lib/regex_internal.c (re_string_skip_chars, register_state):
73031         (calc_state_hash):
73032         Remove forward decls; no longer needed now that we use prototypes.
73033         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73034         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73035         (clean_state_log_if_needed): Likewise.
73036
73037 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73038
73039         * config/srclist.txt: Add glibc bugs 1231-1233.
73040
73041 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         Fix problems reported by Sam Steingold in
73044         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73045         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73046         assumed that reg_errcode_t is a signed type, which is not
73047         necessarily true if _XOPEN_SOURCE is not defined.
73048         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73049         since some compilers warn about it otherwise.
73050
73051 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73052
73053         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73054         (init_word_char, create_initial_state, duplicate_node_closure):
73055         (fetch_token, peek_token_bracket, build_range_exp):
73056         (build_collating_symbol): Remove forward decls; no longer needed
73057         now that we use prototypes.
73058
73059         * lib/regcomp.c:
73060         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73061         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73062         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73063         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73064         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73065         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73066         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73067         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73068         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73069         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73070         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73071         (build_charclass, build_charclass_op, fetch_number, create_tree):
73072         (create_token_tree, mark_opt_subexp, duplicate_tree):
73073         Use prototypes rather than old-style definitions.
73074
73075         * lib/regex_internal.c:
73076         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73077         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73078         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73079         (re_string_reconstruct, re_string_peek_byte_case):
73080         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73081         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73082         (re_node_set_init_copy, re_node_set_add_intersect):
73083         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73084         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73085         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73086         (re_acquire_state, re_acquire_state_context, register_state):
73087         (create_ci_newstate, create_cd_newstate, free_state):
73088         Likewise.
73089         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73090         re_search_2):
73091         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73092         (re_search_internal, prune_impossible_nodes):
73093         (acquire_init_state_context, check_matching, static):
73094         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73095         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73096         (update_regs, sift_states_backward, build_sifted_states):
73097         (clean_state_log_if_needed, merge_state_array):
73098         (update_cur_sifted_state, add_epsilon_src_nodes):
73099         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73100         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73101         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73102         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73103         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73104         (check_arrival, check_arrival_add_next_nodes):
73105         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73106         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73107         (check_node_accept_bytes, check_node_accept, extend_buffers):
73108         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73109         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73110         (sift_ctx_init):
73111         Likewise.
73112
73113         * lib/regex_internal.h:
73114         (re_string_allocate, re_string_construct, re_string_reconstruct):
73115         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73116         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73117         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73118         (re_string_context_at, re_string_peek_byte_case):
73119         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73120         is defined, since we now use prototypes always.
73121
73122         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73123         C89 or better.  All uses removed.
73124
73125 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73126
73127         * config/srclist.txt: Add glibc bugs 1220-1227.
73128
73129 2005-08-20  Jim Meyering  <jim@meyering.net>
73130
73131         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73132         of unused local, dfa.
73133
73134 2005-08-20  Bruno Haible  <bruno@clisp.org>
73135
73136         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73137
73138 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73139
73140         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73141         (re_node_set_insert_last, re_dfa_add_node):
73142         Rename local variables to avoid GCC shadowing warnings.
73143
73144 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73147         [defined lint]: Suppress bogus uninitialized-variable warnings.
73148
73149         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73150         and let the caller return REG_ESPACE if out of space.  This
73151         removes an uninitialied-variable warning with GCC 4.0.1, and also
73152         avoids taking the address of a local variable.  All callers
73153         changed.
73154
73155 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73158         $LIBCSRC/posix/regexec.c.
73159         Add glibc bug 1217 for regcomp.c.
73160
73161 2005-08-19  Jim Meyering  <jim@meyering.net>
73162
73163         * lib/regexec.c (proceed_next_node): Redo local variables to
73164         avoid GCC shadowing warnings.
73165
73166 2005-08-18  Bruno Haible  <bruno@clisp.org>
73167
73168         * lib/strstr.c (strstr): Fix return value in multibyte case.
73169         * lib/strcasestr.c (strcasestr): Likewise.
73170
73171 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73174
73175 2005-08-17  Jim Meyering  <jim@meyering.net>
73176
73177         Make the %s format (seconds since the epoch) work for a negative
73178         number and when used with a zero-padded field width, e.g. %015s.
73179
73180         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73181         label so that it precedes the code to set `digits'.  Otherwise,
73182         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73183         print `00-22'.  Now, it prints `-0022', as it should.
73184
73185 2005-08-17  Bruno Haible  <bruno@clisp.org>
73186
73187         * modules/strstr (Files): Add m4/mbrtowc.m4.
73188         (Depends-on): Add mbuiter.
73189
73190 2005-08-17  Bruno Haible  <bruno@clisp.org>
73191
73192         * modules/strcasestr: New file.
73193         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73194         strcasestr.
73195
73196 2005-08-17  Bruno Haible  <bruno@clisp.org>
73197
73198         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73199
73200 2005-08-17  Bruno Haible  <bruno@clisp.org>
73201
73202         * modules/mbuiter: New file.
73203         * MODULES.html.sh (Extended multibyte and wide character utilities):
73204         Add mbuiter.
73205
73206 2005-08-17  Bruno Haible  <bruno@clisp.org>
73207
73208         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73209         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73210
73211 2005-08-17  Bruno Haible  <bruno@clisp.org>
73212
73213         * m4/strcasestr.m4: New file.
73214
73215 2005-08-17  Bruno Haible  <bruno@clisp.org>
73216
73217         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73218         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73219
73220 2005-08-17  Bruno Haible  <bruno@clisp.org>
73221
73222         * lib/strcasestr.h: New file.
73223         * lib/strcasestr.c: New file.
73224
73225 2005-08-17  Bruno Haible  <bruno@clisp.org>
73226
73227         * lib/strcasecmp.c: Use mbuiter.h.
73228
73229 2005-08-17  Bruno Haible  <bruno@clisp.org>
73230
73231         * lib/mbuiter.h: New file.
73232
73233 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73236         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73237         and gl_GETOPT are both invoked via different paths (as happens
73238         with GNU tar CVS because it uses both argp and getopt), the former
73239         wins.
73240
73241 2005-08-16  Bruno Haible  <bruno@clisp.org>
73242
73243         * modules/tls: New file.
73244         * MODULES.html.sh (Multithreading): Add tls.
73245
73246 2005-08-16  Bruno Haible  <bruno@clisp.org>
73247
73248         * modules/strnlen1: New file.
73249         * MODULES.html.sh (String handling): Add strnlen1.
73250
73251 2005-08-16  Bruno Haible  <bruno@clisp.org>
73252
73253         * modules/strcase (Files): Add m4/mbrtowc.m4.
73254         (Depends-on): Add strnlen1, mbchar.
73255
73256 2005-08-16  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/mbiter: New file.
73259         * MODULES.html.sh (Extended multibyte and wide character utilities):
73260         Add mbiter.
73261
73262 2005-08-16  Bruno Haible  <bruno@clisp.org>
73263
73264         * modules/mbfile: New file.
73265         * MODULES.html.sh (Extended multibyte and wide character utilities):
73266         Add mbfile.
73267
73268 2005-08-16  Bruno Haible  <bruno@clisp.org>
73269
73270         * modules/mbchar: New file.
73271         * MODULES.html.sh (Extended multibyte and wide character utilities):
73272         New section.
73273
73274 2005-08-16  Bruno Haible  <bruno@clisp.org>
73275
73276         * m4/tls.m4: New file, from GNU gettext.
73277
73278 2005-08-16  Bruno Haible  <bruno@clisp.org>
73279
73280         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73281         always.
73282         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73283
73284 2005-08-16  Bruno Haible  <bruno@clisp.org>
73285
73286         * m4/mbiter.m4: New file.
73287
73288 2005-08-16  Bruno Haible  <bruno@clisp.org>
73289
73290         * m4/mbfile.m4: New file.
73291
73292 2005-08-16  Bruno Haible  <bruno@clisp.org>
73293
73294         * m4/mbchar.m4: New file.
73295
73296 2005-08-16  Bruno Haible  <bruno@clisp.org>
73297
73298         * lib/tls.h: New file, from GNU gettext.
73299         * lib/tls.c: New file, from GNU gettext.
73300
73301 2005-08-16  Bruno Haible  <bruno@clisp.org>
73302
73303         * lib/strnlen1.h: New file.
73304         * lib/strnlen1.c: New file.
73305
73306 2005-08-16  Bruno Haible  <bruno@clisp.org>
73307
73308         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73309         (mbi_init): Update.
73310         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73311         NUL byte, not after it.
73312
73313 2005-08-16  Bruno Haible  <bruno@clisp.org>
73314
73315         * lib/strcase.h (strcasecmp): Add note in comments.
73316         * lib/strncasecmp.c: Use code from strcasecmp.c.
73317         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73318         (strcasecmp): Work correctly in multibyte locales.
73319
73320 2005-08-16  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/mbiter.h: New file.
73323
73324 2005-08-16  Bruno Haible  <bruno@clisp.org>
73325
73326         * lib/mbfile.h: New file.
73327
73328 2005-08-16  Bruno Haible  <bruno@clisp.org>
73329
73330         * lib/mbchar.h: New file.
73331         * lib/mbchar.c: New file.
73332
73333 2005-08-16  Bruno Haible  <bruno@clisp.org>
73334
73335         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73336         the valid ones. Makes the comparison operations transitive:
73337         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73338         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73339
73340 2005-08-15  Simon Josefsson  <jas@extundo.com>
73341
73342         * modules/ssize_t (License): Change to 'unlimited'.
73343
73344         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73345
73346 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73349         Add comments for each pending glibc patch.
73350
73351 2005-08-15  Bruno Haible  <bruno@clisp.org>
73352
73353         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73354         __cplusplus is defined.
73355
73356 2005-08-14  Jim Meyering  <jim@meyering.net>
73357
73358         Sync from coreutils.
73359
73360         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73361         Use the hash-table-based cycle-detection code not just when
73362         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73363         Reported by James Youngman in
73364         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73365         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73366         FTS_TIGHT_CYCLE_CHECK.
73367         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73368         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73369         once again.
73370         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73371         * lib/fts.c (fd_safer): Remove decl.
73372         Include fcntl--.h rather than unistd-safer.h
73373         (fts_safe_changedir): Don't call fd_safer; no longer needed
73374         now that we include fcntl--.h.
73375
73376 2005-08-12  Simon Josefsson  <jas@extundo.com>
73377
73378         * modules/getndelim2: Use ssize_t module.
73379         * modules/getnline: Likewise.
73380         * modules/safe-read: Likewise.
73381         * modules/xreadlink: Likewise.
73382
73383         * modules/ssize_t: New file.
73384
73385 2005-08-12  Simon Josefsson  <jas@extundo.com>
73386
73387         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73388
73389 2005-08-12  Simon Josefsson  <jas@extundo.com>
73390
73391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73392         ssize_t.
73393
73394 2005-08-12  Simon Josefsson  <jas@extundo.com>
73395
73396         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73397         readline, getdelim and check_version.
73398         (Support for systems lacking ISO C 99: Sizes of integer types):
73399         Add size_max.
73400
73401 2005-08-12  Bruno Haible  <bruno@clisp.org>
73402
73403         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73404
73405 2005-08-11  Simon Josefsson  <jas@extundo.com>
73406
73407         * modules/readline: New file.
73408
73409         * modules/strnlen (Files): Add strnlen.h.
73410
73411 2005-08-11  Simon Josefsson  <jas@extundo.com>
73412
73413         * m4/readline.m4: New file.
73414
73415 2005-08-11  Simon Josefsson  <jas@extundo.com>
73416
73417         * lib/readline.h, readline.c: New file.
73418
73419 2005-08-11  Simon Josefsson  <jas@extundo.com>
73420
73421         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73422         gl_AVOID.
73423
73424 2005-08-11  Bruno Haible  <bruno@clisp.org>
73425
73426         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73427
73428 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73429
73430         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73431
73432 2005-08-10  Simon Josefsson  <jas@extundo.com>
73433
73434         * tests/test-iconvme.c: New file.
73435
73436 2005-08-10  Simon Josefsson  <jas@extundo.com>
73437
73438         * m4/strnlen.m4: New file.
73439
73440         * m4/strndup.m4: Don't check for strnlen declaration, done in
73441         strnlen.m4.
73442
73443 2005-08-10  Simon Josefsson  <jas@extundo.com>
73444
73445         * lib/strndup.c: Use strnlen.h.
73446
73447         * lib/strnlen.h: New file.
73448
73449 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73450
73451         * README: Typos.
73452
73453 2005-08-02  Simon Josefsson  <jas@extundo.com>
73454
73455         * modules/readline: New file.
73456
73457 2005-08-02  Simon Josefsson  <jas@extundo.com>
73458
73459         * modules/getdelim: New file.
73460
73461         * modules/getline: Rewrite, don't use getndelim2.
73462
73463 2005-08-02  Simon Josefsson  <jas@extundo.com>
73464
73465         * m4/getline.m4: Separate out getdelim stuff into separate module.
73466
73467         * m4/getdelim.m4: New file.
73468
73469 2005-08-02  Simon Josefsson  <jas@extundo.com>
73470
73471         * lib/getline.h, getline.c: Rewrite.
73472
73473         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73474
73475 2005-07-31  Bruno Haible  <bruno@clisp.org>
73476
73477         * lib/lock.h (gl_lock_initializer): New macro.
73478         (gl_lock_define_initialized): Use it.
73479         (gl_rwlock_initializer): New macro.
73480         (gl_rwlock_define_initialized): Use it.
73481         (gl_recursive_lock_initializer): New macro.
73482         (gl_recursive_lock_define_initialized): Use it.
73483
73484 2005-07-30  Karl Berry  <karl@gnu.org>
73485
73486         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73487         Report from Ben Pfaff, regarding getopt.
73488
73489 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73490
73491         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73492         normal way.
73493         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73494         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73495         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73496         (gl_GETOPT): Use the new macros.  Most of the implementation
73497         is moved to the new macros.  This is for programs like Emacs
73498         that don't want all the functionality of gl_GETOPT.
73499
73500 2005-07-26  Bruno Haible  <bruno@clisp.org>
73501
73502         * m4/lock.m4: Update from GNU gettext.
73503
73504 2005-07-26  Bruno Haible  <bruno@clisp.org>
73505
73506         * lib/lock.h: Update from GNU gettext.
73507         * lib/lock.c: Update from GNU gettext.
73508
73509 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73512         obsolescent AC_TRY_RUN.  Include the default includes files, for
73513         'exit'.
73514
73515 2005-07-24  Bruno Haible  <bruno@clisp.org>
73516
73517         * modules/visibility: New file.
73518         * MODULES.html.sh (Misc): Add visibility.
73519
73520 2005-07-24  Bruno Haible  <bruno@clisp.org>
73521
73522         * m4/visibility.m4: New file.
73523
73524 2005-07-24  Bruno Haible  <bruno@clisp.org>
73525
73526         * doc/visibility.texi: New file.
73527
73528 2005-07-22  Bruno Haible  <bruno@clisp.org>
73529
73530         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73531         $(ALLOCA_H), redundant through BUILT_SOURCES.
73532         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73533         redundant through BUILT_SOURCES.
73534         * modules/byteswap (Makefile.am): Remove explicit dependency on
73535         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73536         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73537         $(FNMATCH_H), redundant through BUILT_SOURCES.
73538         * modules/getopt (Makefile.am): Remove explicit dependency on
73539         $(GETOPT_H), redundant through BUILT_SOURCES.
73540         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73541         redundant through BUILT_SOURCES.
73542         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73543         redundant through BUILT_SOURCES.
73544         * modules/stdbool (Makefile.am): Remove explicit dependency on
73545         $(STDBOOL_H), redundant through BUILT_SOURCES.
73546         * modules/stdint (Makefile.am): Remove explicit dependency on
73547         $(STDINT_H), redundant through BUILT_SOURCES.
73548         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73549         Remove explicit dependency on $(SYSEXITS_H).
73550         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73551
73552 2005-07-18  Simon Josefsson  <jas@extundo.com>
73553
73554         * lib/check-version.c (check_version): Accept identical versions too.
73555
73556 2005-07-18  Bruno Haible  <bruno@clisp.org>
73557
73558         * modules/lock: New file.
73559         * MODULES.html.sh (Multithreading): New section.
73560
73561 2005-07-18  Bruno Haible  <bruno@clisp.org>
73562
73563         * m4/lock.m4: New file, from GNU gettext.
73564
73565 2005-07-18  Bruno Haible  <bruno@clisp.org>
73566
73567         * lib/lock.h: New file, from GNU gettext.
73568         * lib/lock.c: New file, from GNU gettext.
73569
73570 2005-07-18  Bruno Haible  <bruno@clisp.org>
73571
73572         * lib/lock.h (gl_once_t): New type.
73573         (gl_once_define, gl_once): New macros.
73574         * lib/lock.c (fresh_once): New variable.
73575         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73576         functions.
73577
73578 2005-07-16  Simon Josefsson  <jas@extundo.com>
73579
73580         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73581         workaround, suggested by Bruno.
73582
73583 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73584
73585         * modules/xalloc (Depends-on): Add xalloc-die.
73586         * modules/xvasprintf (Depends-on): Add xalloc-die.
73587
73588 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73589
73590         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73591         with a minor change.
73592
73593 2005-07-15  Bruno Haible  <bruno@clisp.org>
73594
73595         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73596         When using lib/poll.c, define poll as rpl_poll.
73597
73598 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         * modules/argp (Depends-on): Remove unlocked-io.
73601
73602 2005-07-14  Derek Price  <derek@ximbiot.com>
73603
73604         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73605         for glob symlink bug.
73606
73607 2005-07-14  Bruno Haible  <bruno@clisp.org>
73608
73609         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73610         Instead, test for *_unlocked function declarations directly.
73611
73612 2005-07-11  Simon Josefsson  <jas@extundo.com>
73613
73614         * modules/size_max: New file.
73615
73616         * modules/xsize: Depend on size_max module for size_max.m4.
73617
73618 2005-07-11  Simon Josefsson  <jas@extundo.com>
73619
73620         * lib/size_max.h: New file.
73621
73622 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73625         copyright symbol and the year.
73626         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73627         (version_etc_va): Use parameterized copyright notice.
73628         Reword to conform to the current GNU coding standards.
73629
73630 2005-07-11  Karl Berry  <karl@gnu.org>
73631
73632         * doc/gnulib.texi (Quoting): new node.
73633         (Initial import): more info, from Patrice.
73634
73635 2005-07-11  Bruno Haible  <bruno@clisp.org>
73636
73637         * gnulib-tool (func_usage): Document option --avoid.
73638         (Command line options): Handle --avoid.
73639         (func_acceptable): New function.
73640         (func_modules_transitive_closure): Use it.
73641
73642 2005-07-11  Bruno Haible  <bruno@clisp.org>
73643
73644         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73645         Reported by Jim Meyering.
73646
73647 2005-07-10  Bruno Haible  <bruno@clisp.org>
73648
73649         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73650         Needed when size_t is smaller than 'unsigned int'.
73651         Reported by Paul Eggert.
73652
73653 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73654
73655         * modules/argp (Depends-on): Add unlocked-io
73656
73657 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73658
73659         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73660         block of defines.
73661
73662 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73665         fix now.
73666
73667 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73668         and Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73671         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73672
73673 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         * modules/regex (Files): Add lib/regex_internal.c,
73676         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73677         (Depends-on): Add extensions.
73678         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73679
73680 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73683         pathconf.
73684         * m4/same.m4 (gl_SAME): Likewise.
73685         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73686
73687         * m4/regex.m4: Adjust to new libc regex implementation.
73688         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73689         all the .c and .h parts of (the new) regex.
73690         Quote the m4 stuff better.
73691         Check for RE_ICASE bug of old gnulib.
73692         Check for REG_STARTEND of recent libc.
73693         Rename local variables from jm_* to gl_*.
73694         Quote operand of "test -f".
73695         Say "recent enough" version of libc, not "version 2".
73696         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73697         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73698         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73699         Remove check for btowc, isascii.
73700         Require AM_LANGINFO_CODESET.
73701
73702 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73703
73704         * lib/regex.c, regex.h: Sync from libc.
73705         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73706         * lib/regexec.c:
73707         New files, synced from libc, except that regex_internal.h
73708         currently has a small porting fix.
73709
73710 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73711
73712         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73713         regex_internal.c, regexec.c.
73714         Add regex_internal.h too, but as a comment, since the libc version
73715         is currently broken in gnulib mode.
73716
73717 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         Support programs like Emacs that use gnulib but not gettext.
73720         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73721         * modules/gettext-h: New file.
73722         * modules/gettext (Files): Remove lib/gettext.h.
73723         (Depends-on): Add gettext-h.
73724         (Makefile.am): Remove lib_SOURCES.
73725         * modules/argmatch, modules/c-stack, modules/closeout:
73726         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73727         * modules/execute, modules/file-type, modules/getaddrinfo:
73728         * modules/getopt, modules/human, modules/javacomp:
73729         * modules/javaexec, modules/mkdir-p, modules/obstack:
73730         * modules/openat, modules/pagealign_alloc, modules/pipe:
73731         * modules/quotearg, modules/regex, modules/rpmatch:
73732         * modules/unicodeio, modules/userspec, modules/version-etc:
73733         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73734         * modules/xsetenv:
73735         Depend on gettext-h, not gettext.
73736
73737 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * gnulib-tool (func_import): Add support for 'public domain' license.
73740         * modules/alloca, modules/atexit, modules/memmove:
73741         Now public domain, not GPL.
73742         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73743         * modules/realloc, modules/strerror, modules/strtod:
73744         Now LGPL, not GPL.
73745
73746 2005-07-05  Bruno Haible  <bruno@clisp.org>
73747
73748         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73749         autoconf CVS. Needed for mingw.
73750
73751 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73752
73753         Remove the dependency of the strftime module on the tzset module.
73754         * modules/strftime (Depends-on): Remove dependency on tzset.
73755
73756 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73757
73758         Remove the dependency of the strftime module on the tzset module.
73759         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73760         gl_FUNC_TZSET_CLOBBER.
73761
73762 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         Remove the dependency of the strftime module on the tzset module.
73765         * lib/strftime.c (my_strftime)
73766         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73767         Copy the input structure, to work around some of the bug with
73768         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73769         Solaris releases, you should also use the tzset module, but we won't
73770         require it as a dependency any more since we don't want LGPLed code
73771         to depend on GPLed code.
73772
73773 2005-07-02  Jim Meyering  <jim@meyering.net>
73774
73775         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73776         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73777         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73778         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73779
73780 2005-07-02  Jim Meyering  <jim@meyering.net>
73781
73782         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73783
73784 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73785
73786         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73787         declares only 'struct timespec;' (!).
73788
73789 2005-07-01  Jim Meyering  <jim@meyering.net>
73790
73791         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73792         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73793         * lib/save-cwd.c, tempname.c:
73794         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73795         and don't include <sys/file.h>).
73796
73797 2005-06-29  Jim Meyering  <jim@meyering.net>
73798
73799         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73800         type name.  Use the variable name instead.
73801         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73802         Likewise.
73803
73804 2005-06-28  Simon Josefsson  <jas@extundo.com>
73805
73806         * modules/check-version (Files): Add check-version.m4.
73807
73808 2005-06-28  Simon Josefsson  <jas@extundo.com>
73809
73810         * m4/check-version.m4: New file, suggested by Jim Meyering
73811         <jim@meyering.net>.
73812
73813 2005-06-28  Simon Josefsson  <jas@extundo.com>
73814
73815         * lib/check-version.h, lib/check-version.c: New files.
73816
73817 2005-06-28  Simon Josefsson  <jas@extundo.com>
73818
73819         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73820         collision with global variable.  Better indentation.  Don't
73821         increment buffer pointer beyond buffer end.  Based on comments
73822         from Paul Eggert <eggert@cs.ucla.edu>.
73823
73824         * lib/base64.h: Indent.
73825
73826 2005-06-28  Simon Josefsson  <jas@extundo.com>
73827
73828         * doc/gnulib.texi (Library version handling): New section.
73829
73830 2005-06-28  Jim Meyering  <jim@meyering.net>
73831
73832         * check-module (find_included_lib_files): Hard-code another
73833         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73834         but modules/fts-lgpl (correctly) does not list those files.
73835
73836         * modules/canonicalize (Files): Add lib/pathmax.h.
73837
73838 2005-06-25  Simon Josefsson  <jas@extundo.com>
73839
73840         * modules/check-version: New file.
73841
73842 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73845         initializer of struct addrinfo, as an indication that we don't
73846         care how many members the structure has.
73847
73848 2005-06-24  Derek Price  <derek@ximbiot.com>
73849         and Bruno Haible  <bruno@clisp.org>
73850
73851         Remove stat module & update lstat.
73852         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73853         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73854         * m4/stat.m4: Remove this file.
73855
73856 2005-06-24  Derek Price  <derek@ximbiot.com>
73857         and Bruno Haible  <bruno@clisp.org>
73858
73859         Remove stat module & update lstat.
73860         * lib/stat.c: Remove this file...
73861         (slash_aware_lstat): ...moving this content and its support...
73862         * lib/lstat.c (rpl_lstat): ...into here.
73863         * lib/lstat.h: New file.
73864
73865 2005-06-24  Derek Price  <derek@ximbiot.com>
73866         and Bruno Haible  <bruno@clisp.org>
73867
73868         Remove stat module & update lstat.
73869         * config/srclist.txt (libc sources): Remove stat.
73870
73871 2005-06-24  Derek Price  <derek@ximbiot.com>
73872         and Bruno Haible  <bruno@clisp.org>
73873
73874         Remove stat module & update lstat.
73875         * MODULES.html.sh (stat): Remove.
73876         * MODULES.html: Regenerated.
73877         * modules/lstat (Description): Correct function name.
73878         (Files): Add "lstat.h".
73879         (Depends-on): Remove stat, add xalloc, stat-macros.
73880         * modules/stat: Remove this file.
73881         (Include): Add "lstat.h", remove <sys/stat.h>.
73882
73883 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73886         (ranged_convert): Don't save conversion in a temporary struct.
73887         This causes a warning with GCC 4.0.0, and anyway in the typical
73888         case it's not worth the extra 100 bytes or so of code.
73889         (ranged_convert, __mktime_internal): When calling a function via a
73890         pointer P, use P () rather than (*P) (), as we now assume C89 or
73891         better.
73892
73893 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73896         "who -r" failed to give output.  Problem reported by Tim Waugh.
73897
73898         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73899         (xcalloc): Use it to avoid needless tests.
73900         Problem reported by Jim Meyering.
73901
73902 2005-06-20  Derek Price  <derek@ximbiot.com>
73903
73904         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73905         unnecessary for Autoconfs > 2.59c.
73906
73907 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73908
73909         * lib/argp.h (__option_is_short): Check upper limit of
73910         __key. Isprint() requires its argument to have the value
73911         of an unsigned char or EOF.
73912
73913 2005-06-16  Jim Meyering  <jim@meyering.net>
73914
73915         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73916         when either N or S is zero.
73917
73918 2005-06-16  Derek Price  <derek@ximbiot.com>
73919
73920         * m4/bison.m4: Declare YACC & YFLAGS precious.
73921
73922 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73925         multibyte string or pattern, fall back on unibyte matching.
73926         Problem reported by James Youngman.
73927
73928 2005-06-08  Bruno Haible  <bruno@clisp.org>
73929
73930         * modules/csharpcomp: New file.
73931         * MODULES.html.sh (C#): Add csharpcomp.
73932
73933 2005-06-08  Bruno Haible  <bruno@clisp.org>
73934
73935         * m4/csharpcomp.m4: New file, from GNU gettext.
73936
73937 2005-06-08  Bruno Haible  <bruno@clisp.org>
73938
73939         * lib/csharpcomp.h: New file, from GNU gettext.
73940         * lib/csharpcomp.c: New file, from GNU gettext.
73941         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73942
73943 2005-06-08  Bruno Haible  <bruno@clisp.org>
73944
73945         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73946         warning on mingw.
73947
73948 2005-06-07  Derek Price  <derek@ximbiot.com>
73949
73950         Sync from CVS.
73951         * lib/glob_.h: Indent nested #ifdef.
73952
73953 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73954
73955         Sync from coreutils.
73956         Use "file name" when talking about file names, instead of "filename"
73957         or "path", as per the GNU coding standards.
73958         * lib/mkdir-p.c: Renamed from makepath.c.
73959         (make_dir_parents): Renamed from make_path.  All callers changed.
73960         * lib/mkdir-p.h: Likewise.  All includers changed.
73961         * lib/filenamecat.c: Renamed from path-concat.c.
73962         (file_name_concat): Renamed from path_concat.  All callers changed.
73963         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73964         * lib/filenamecat.h: Likewise.  All includers changed.
73965         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73966         in comments or local variable names.
73967         * lib/basename.c: Likewise.
73968         * lib/canonicalize.c, canonicalize.h: Likewise.
73969         * lib/dirname.c, dirname.h: Likewise.
73970         * lib/euidaccess.c: Likewise.
73971         * lib/exclude.c: Likewise
73972         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73973         * lib/fsusage.c, fsuage.h: Likewise.
73974         * lib/fts.c, fts_.h: Likewise.
73975         * lib/getcwd.c: Likewise.
73976         * lib/getloadavg.c: Likewise.
73977         * lib/mkstemp.c: Likewise.
73978         * lib/mountlist.c, mountlist.h: Likewise.
73979         * lib/openat.c, openat.h: Likewise.
73980         * lib/readlink-stub.c: Likewise.
73981         * lib/readutmp.c, readutmp.h: Likewise.
73982         * lib/rename.c: Likewise.
73983         * lib/rmdir.c: Likewise.
73984         * lib/same.c: Likewise.
73985         * lib/savedir.c: Likewise.
73986         * lib/stripslash.c: Likewise.
73987         * lib/tempname.c: Likewise.
73988         * lib/xreadlink.c: Likewise.
73989         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73990         All uses changed.
73991         * lib/exclude.h: Likewise.
73992
73993         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73994         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73995         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73996         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73997         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73998         files have been getting away with it for years (MORE/BSD 4.3
73999         is extinct now).
74000         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74001         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74002
74003         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74004         Define to 256, not 255, as per modern POSIX.
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         * MODULES.html.sh: mkdir-p renamed from makepath.
74012         filenamecat renamed from path-concat.
74013         * modules/filenamecat: Renamed from modules/path-concat.
74014         (Files): filenamecat.h and filenamecat.c renamed from
74015         path-concat.h and path-concat.c.
74016         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74017         (Include): filenamecat.h, not path-concat.h.
74018         * modules/mkdir-p: Renamed from modules/makepath.
74019         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74020         makepath.c.
74021         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74022         (Include): mkdir-p.h, not makepath.h.
74023
74024 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         Sync from coreutils.
74027         * m4/mkdir-p.m4: Renamed from makepath.m4.
74028         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74029         Rename files from makepath.c to mkdir-p.c, and from
74030         makepath.h to mkdir-p.h.
74031         * m4/filenamecat.m4: Renamed from path-concat.m4.
74032         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74033         Rename files from path-concat.c to filenamecat.c,
74034         and from path-concat.h to filenamecat.h.
74035         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74036         "file name" in local variables or comments.
74037         * m4/rename.m4: Likewise.
74038
74039 2005-06-01  Bruno Haible  <bruno@clisp.org>
74040
74041         * modules/csharpexec: New file.
74042         * MODULES.html.sh (C#): New section.
74043
74044 2005-06-01  Bruno Haible  <bruno@clisp.org>
74045
74046         * m4/csharp.m4: New file, from GNU gettext.
74047         * m4/csharpexec.m4: New file, from GNU gettext.
74048
74049 2005-06-01  Bruno Haible  <bruno@clisp.org>
74050
74051         * lib/csharpexec.h: New file, from GNU gettext.
74052         * lib/csharpexec.c: New file, from GNU gettext.
74053         * lib/csharpexec.sh.in: New file, from GNU gettext.
74054
74055 2005-05-31  Derek Price  <derek@ximbiot.com>
74056             Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         Sync from cvs.
74059         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74060
74061 2005-05-31  Derek Price  <derek@ximbiot.com>
74062             Paul Eggert  <eggert@cs.ucla.edu>
74063
74064         Sync from cvs.
74065         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74066
74067 2005-05-29  Derek Price  <derek@ximbiot.com>
74068
74069         * config/srclist.txt (glob_.h, glob.c): Add these files.
74070
74071 2005-05-29  Derek Price  <derek@ximbiot.com>
74072
74073         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74074         * modules/glob: New file.
74075         * modules/getlogin_r: Add link to POSIX spec in description.
74076
74077 2005-05-29  Derek Price  <derek@ximbiot.com>
74078             Paul Eggert  <eggert@cs.ucla.edu>
74079
74080         * m4/glob.m4: New file.
74081
74082 2005-05-29  Derek Price  <derek@ximbiot.com>
74083             Paul Eggert  <eggert@cs.ucla.edu>
74084
74085         * lib/glob_.h, lib/glob.c: New files.
74086
74087 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74088
74089         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74090         * modules/fts-lgpl (Depends-on): Remove gettext.
74091
74092 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74093
74094         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74095         and don't require gt_INTTYPES_PRI.
74096
74097 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74100
74101         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74102         the configuration hassle isn't worth it.
74103         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74104         (LONGEST_MODIFIER, PRIuMAX): Remove.
74105
74106 2005-05-27  Bruno Haible  <bruno@clisp.org>
74107
74108         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74109
74110 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74111
74112         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74113         _POSIX_PTHREAD_SEMANTICS for Solaris.
74114
74115 2005-05-25  Derek Price  <derek@ximbiot.com>
74116
74117         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74118
74119 2005-05-25  Derek Price  <derek@ximbiot.com>
74120             Paul Eggert  <eggert@cs.ucla.edu>
74121
74122         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74123         * lib/getlogin_r.c, getlogin_r.h: New files.
74124
74125 2005-05-25  Bruno Haible  <bruno@clisp.org>
74126             Derek Price  <derek@ximbiot.com>
74127
74128         * lib/getlogin_r.h: Simplify API documentation.
74129
74130 2005-05-23  Derek Price  <derek@ximbiot.com>
74131
74132         * modules/minmax (Files): Add m4/minmax.m4.
74133         (configure.ac): Add gl_MINMAX.
74134
74135 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74138         so that unistd-safer.h (GPL'ed code) need not be included.
74139
74140 2005-05-22  Bruno Haible  <bruno@clisp.org>
74141
74142         * m4/minmax.m4: New file.
74143         Based on a patch by Derek Price <derek@ximbiot.com>.
74144
74145 2005-05-22  Bruno Haible  <bruno@clisp.org>
74146
74147         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74148         (INT64_MIN): Fix definition.
74149         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74150
74151         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74152         NEED_SIGNED_INT_TYPES.
74153
74154         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74155         HAVE_SYSTEM_INTTYPES.
74156
74157 2005-05-22  Bruno Haible  <bruno@clisp.org>
74158
74159         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74160         Also include <sys/param.h> if it defines MIN, MAX.
74161         Based on a patch by Derek Price <derek@ximbiot.com>.
74162
74163 2005-05-21  Jim Meyering  <jim@meyering.net>
74164
74165         * modules/fts (Files): Add m4/inttypes-pri.m4.
74166         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74167
74168 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74169
74170         New fts module.
74171         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74172         (setup_dir, free_dir): New functions.
74173         (enter_dir, leave_dir): Define trivial
74174         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74175         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74176         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74177         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74178         Move to fts-cycle.c.
74179         (fts_open): Use setup_dir.
74180         (fts_close): Use free_dir.
74181         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74182         This adds a label and some gotos, but the alternatives were messier.
74183         Check for memory allocation failure when entering a dir.
74184         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74185         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74186         (FTS): New member fts_cycle, that is a union that contains the
74187         old active_dir_ht and cycle_state.  All uses changed to mention
74188         fts_cycle.ht and fts_cycle.state.
74189         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74190         fts.c, with the following changes:
74191         (setup_dir, free_dir): New functions.
74192         (enter_dir): Now returns bool.  Return true if successful, false
74193         if memory exhausted.  All callers changed.
74194         Do not bother partly cleaning up on
74195         memory allocation failure; that is free_dir's job.
74196         However, free ad if hash_insert fails, to avoid memory leak.
74197         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74198         fts->fts_options to see which union member to use.
74199
74200 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74201
74202         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74203         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74204
74205 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74206
74207         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74208
74209 2005-05-20  Jim Meyering  <jim@meyering.net>
74210
74211         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74212         Now a macro, to pacify GCC.
74213
74214 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74215
74216         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74217         of -1.
74218
74219 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74220
74221         * lib/chown.c (rpl_chown): Return -1 on failure.
74222
74223 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74226         Don't check for stddef.h.
74227         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74228         don't use its results.
74229         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74230         since we include them unconditionally.  Don't require
74231         AM_STDBOOL_H, since stdbool is a prerequisite.
74232         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74233         since we assume C89 or better.
74234         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74235         as we don't use their results.
74236         Don't check for fchdir, memmove, memset, strrchr, as we use
74237         them unconditionally.
74238         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74239         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74240
74241 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74242
74243         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74244         Include <stddef.h> unconditionally, since we assume C89 now.
74245         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74246         * lib/fts.c: Include fts_.h first, to check interface.
74247         Do not include intprops.h; no longer needed.
74248         Include cycle-check.h and hash.h, since fts_.h no longer does.
74249         Remove unnecessary casts of closedir to void.
74250         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74251         decide whether to decrement nlinks.
74252         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74253         (FTS): Use struct hash_table * instead of Hash_table, so that
74254         we no longer need to include hash.h here.
74255
74256 2005-05-18  Jim Meyering  <jim@meyering.net>
74257
74258         * modules/dirfd (License): Change to LGPL.  Most of the code
74259         is already in the public domain.
74260
74261 2005-05-18  Jim Meyering  <jim@meyering.net>
74262
74263         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74264         Reported by Yoann Vandoorselaere.
74265
74266 2005-05-17  Jim Meyering  <jim@meyering.net>
74267
74268         * m4/fts.m4: New file, from coreutils.
74269
74270 2005-05-17  Jim Meyering  <jim@meyering.net>
74271
74272         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74273
74274 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74275
74276         Sync from coreutils.
74277         * m4/unlinkdir.m4: New file.
74278
74279 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74280
74281         Sync from coreutils.
74282         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74283         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74284         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74285         White space changes only.
74286         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74287         special.
74288         * lib/yesno.c: Include getline.h, not ctype.h.
74289         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74290         Use getline to remove arbitrary restriction on response length.
74291
74292 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74293
74294         * config/srclist-update: Spell out "Street" in FSF postal
74295         mail address; this is the style the FSF seems to prefer.
74296
74297         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74298         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74299         this updates FSF postal mail address.
74300
74301         Sync from coreutils.
74302         * modules/unlinkdir: New file.
74303         * modules/yesno (Depends-on): Add getline.
74304         * MODULES.html.sh (File system functions): Add unlinkdir.
74305
74306 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74309         lib/strsep.h:
74310         Change the initial comment to refer to GPL, not LGPL.
74311         gnulib-tool will change it to LGPL as needed.
74312
74313         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74314         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74315         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74316         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74317         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74318         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74319         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74320         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74321         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74322         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74323         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74324         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74325         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74326         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74327         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74328         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74329         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74330         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74331         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74332         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74333         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74334         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74335         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74336         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74337         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74338         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74339         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74340         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74341         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74342         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74343         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74344         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74345         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74346         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74347         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74348         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74349         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74350         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74351         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74352         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74353         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74354         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74355         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74356         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74357         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74358         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74359         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74360         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74361         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74362         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74363         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74364         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74365         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74366         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74367         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74368         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74369         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74370         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74371         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74372         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74373         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74374         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74375         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74376         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74377         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74378         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74379         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74380         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74381         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74382         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74383         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74384         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74385         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74386         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74387         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74388         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74389         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74390         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74391         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74392         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74393         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74394         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74395         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74396         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74397         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74398         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74399         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74400         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74401         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74402         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74403         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74404         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74405         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74406         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74407         lib/yesno.c, lib/yesno.h:
74408         Update FSF postal mail address.
74409
74410 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74411
74412         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74413         tests/test-memmem.c, tests/test-stpncpy.c:
74414         Update FSF postal mail address.
74415
74416 2005-05-13  Bruno Haible  <bruno@clisp.org>
74417
74418         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74419         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74420         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74421         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74422         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74423         Add support for 64-bit integers in the MSVC compiler.
74424
74425 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74426
74427         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74428
74429 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74430
74431         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74432
74433 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * doc/getdate.texi (General date syntax): Don't say that date
74436         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74437         Problem reported by Nic Ferrier.
74438
74439 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74440
74441         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74442         specified in ai_socktype. Fix invalid ai_protocol
74443         check. ai_protocol is usually set to 0 or depending on
74444         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74445         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74446         ai_socktype / ai_protocol in the returned addrinfo structure.
74447
74448 2005-05-10  Simon Josefsson  <jas@extundo.com>
74449
74450         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74451         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74452
74453 2005-05-10  Karl Berry  <karl@gnu.org>
74454
74455         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74456         (from http://www.gnu.org/licenses).
74457         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74458         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74459         fdl.texi suffices.
74460
74461 2005-05-10  Karl Berry  <karl@gnu.org>
74462
74463         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74464         (COPYING.DOC): remove.
74465
74466         * config/srclist-update: new FSF address.
74467
74468 2005-05-10  Derek Price  <derek@ximbiot.com>
74469
74470         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74471         possible.
74472
74473 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74474             Bruno Haible  <bruno@clisp.org>
74475
74476         * modules/inet_ntop: New file.
74477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74478         inet_ntop.
74479
74480 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74481             Bruno Haible  <bruno@clisp.org>
74482
74483         * m4/inet_ntop.m4: New file.
74484
74485 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74486             Bruno Haible  <bruno@clisp.org>
74487
74488         * lib/inet_ntop.h: New file.
74489         * lib/inet_ntop.c: New file, from glibc with modifications.
74490
74491 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * modules/time_r (License): Change to LGPL.
74494         * modules/extensions (License): Change to LGPL.  Actually,
74495         the license is more permissive than that, but currently gnulib-tool
74496         doesn't know how to handle more-permissive licenses.
74497
74498         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74499         Problem reported by Dave Love.
74500
74501 2005-05-08  Jim Meyering  <jim@meyering.net>
74502
74503         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74504         blank.
74505
74506 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74507
74508         * modules/argmatch (Depends-on): Add stdbool.
74509         * modules/backupfile (Depends-on): Likewise.
74510         * modules/chdir-long (Depends-on): Likewise.
74511         * modules/closeout (Depends-on): Likewise.
74512         * modules/cycle-check (Depends-on): Likewise.
74513         * modules/dirname (Depends-on): Likewise.
74514         * modules/fnmatch (Depends-on): Likewise.
74515         * modules/fsusage (Depends-on): Likewise.
74516         * modules/fwriteerror (Depends-on): Likewise.
74517         * modules/getcwd (Depends-on): Likewise.
74518         * modules/getloadavg (Depends-on): Likewise.
74519         * modules/hard-locale (Depends-on): Likewise.
74520         * modules/makepath (Depends-on): Likewise.
74521         * modules/mountlist (Depends-on): Likewise.
74522         * modules/nanosleep (Depends-on): Likewise.
74523         * modules/posixtm (Depends-on): Likewise.
74524         * modules/quotearg (Depends-on): Likewise.
74525         * modules/readtokens (Depends-on): Likewise.
74526         * modules/readtokens0 (Depends-on): Likewise.
74527         * modules/readutmp (Depends-on): Likewise.
74528         * modules/save-cwd (Depends-on): Likewise.
74529         * modules/strftime (Depends-on): Likewise.
74530         * modules/userspec (Depends-on): Likewise.
74531         * modules/utimecmp (Depends-on): Likewise.
74532         * modules/xgetcwd (Depends-on): Likewise.
74533         * modules/xnanosleep (Depends-on): Likewise.
74534         * modules/xstrtod (Depends-on): Likewise.
74535         * modules/yesno (Depends-on): Likewise.
74536
74537 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74540         needless checks.
74541
74542 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74543
74544         Merge from coreutils.  Among other things,
74545         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74546         * lib/fd-safer.c: New file.
74547         * lib/fcntl-safer.h, open-safer.c: Remove.
74548         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74549         * lib/dup-safer.c: Include unistd-safer.h first.
74550         Don't include errno.h.
74551         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74552         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74553         * lib/file-type.c: Rely on file-type.h change.
74554         * lib/getloadavg.c: Include unistd-safer.h.
74555         (getloadavg): Use safer open.
74556         * lib/getusershell.c: Include "stdio-safer.h".
74557         (getusershell): Use safer fopen.
74558         * lib/long-options.c (long_options): Use NULL rather than 0.
74559         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74560         'free'.
74561         * lib/modechange.c: Likewise.
74562         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74563         (MODE_DONE): New constant.
74564         (struct mode_change): Remove 'next' member.
74565         (make_node_op_equals): New function; like the old one of the
74566         same name, except it allocates an array.
74567         (mode_compile, mode_create_from_ref): Use it.
74568         (mode_compile): Allocate result as an array, not a linked list.
74569         Parse octal string ourself, so that we catch mistakes like "+0".
74570         (mode_adjust): Arg is an array, not a linked list.
74571         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74572         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74573         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74574         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74575         Remove.  This is now stat-macros.h's job.
74576         (talloc): Remove.  All callers replaced by xalloc, so that
74577         our invokers don't have to worry about reporting memory failures.
74578         (make_node_op_equals): Remove.
74579         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74580         New constants.
74581         (struct mode_change): Moved here from modechange.h.
74582         (mode_append_entry): Remove.
74583         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74584         apps to have incorrect behavior.  Use simpler algorithm for head
74585         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74586         Detect more invalid usages rather than having somewhat-random behavior.
74587         Don't insert an "a=" action, as that leads to incorrect behavior.
74588         (mode_compile, mode_create_from_ref): Return NULL on error instead
74589         of an enum, since now there's only one way to have an error.  All
74590         callers changed.
74591         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74592         at the correct time.  Simplify calculation of "+u" and its ilk.
74593         Don't mishandle "+X".
74594         (mode_free): Remove "register" and localize decls.
74595         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74596         (struct mode_change): Move to modechange.c; callers don't
74597         need to see this stuff.
74598         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74599         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74600         (mode_change, mode_adjust): Reflect the new signatures noted above.
74601         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74602         that might redefine system include files.
74603         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74604         (my_usleep): Use NULL rather than (void *) 0.
74605         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74606         Use siginterrupt to specify that system calls should be interrupted.
74607         (rpl_nanosleep): Move initialization of suspended closer to call of
74608         my_usleep.
74609         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74610         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74611         (desirable_utmp_entry): New function.
74612         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74613         using x2nrealloc, to simplify logic.
74614         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74615         size calculation.  Do not assume utmp file is a regular file.
74616         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74617         (READ_UTMP_CHECK_PIDS): New constant.
74618         * lib/save-cwd.c: Include unistd-safer.h.
74619         (save_cwd): Use fd_safer.
74620         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74621         [!_LIBC] Include "stat-macros.h" instead.
74622         * lib/unistd-safer.h (fd_safer): New decl.
74623
74624 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74625
74626         * modules/getloadavg (Depends-on): Add unistd-safer.
74627         * modules/getusershell (Depends-on): Add stdio-safer.
74628         * modules/lstat (Depends-on): Remove xalloc.
74629         * modules/mkstemp (Depends-on): Add stat-macros.
74630         * modules/modechange (Depends-on): Remove xstrtol.
74631         Add stat-macros, xalloc.
74632         * modules/save-cwd (Depends-on): Add unistd-safer.
74633         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74634         * modules/unistd-safer (Files): Add lib/fd-safer.c
74635         (Makefile.am): Remove lib_SOURCES.
74636
74637         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74638         Remove fcntl-safer; unistd-safer supersedes it.
74639
74640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74643         AC_HEADER_STAT.
74644         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74645         (gl_PREREQ_CHOWN): Remove.
74646         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74647         it.  Don't require AC_HEADER_STAT.
74648         (gl_PREREQ_LSTAT): Remove.
74649         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74650         Don't require AC_HEADER_STAT.
74651         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74652         (gl_PREREQ_RMDIR): Remove.
74653         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74654         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74655         the stat-macros module a prerequisite.
74656         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74657         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74658         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74659         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74660         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74661         variable names.
74662         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74663         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74664         variable prefixes.
74665         * m4/fcntl-safer.m4: Remove.
74666         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74667         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74668         Invoke gl_PREREQ_FD_SAFER.
74669         (gl_PREREQ_FD_SAFER): New macro.
74670         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74671         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74672         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74673         Remove duplicate call to AC_LIBOBJ(readutmp).
74674         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74675
74676         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74677         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74678
74679 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74680
74681         * MODULES.html.sh (Misc): Add byteswap.
74682
74683 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74684
74685         * modules/getcwd (Depends-on): Add extensions.
74686         * modules/openat (Depends-on): Likewise.
74687
74688 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74689
74690         * modules/byteswap: New file.
74691
74692 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74693
74694         * m4/byteswap.m4: New file.
74695
74696 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74697
74698         * lib/byteswap_.h: New file.
74699
74700 2005-04-25  Karl Berry  <karl@gnu.org>
74701
74702         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74703
74704 2005-04-25  Albert Chin  <china@thewrittenword.com>
74705
74706         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74707         Toolkit C bug.
74708
74709 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74710
74711         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74712         (func_ln_if_changed): Remove forcibly for no error message
74713         in case file does not exist.
74714
74715 2005-04-19  Simon Josefsson  <jas@extundo.com>
74716
74717         * gnulib-tool (Options): Make --symlink mean --symbolic.
74718
74719 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74720
74721         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74722
74723 2005-04-16  Simon Josefsson  <jas@extundo.com>
74724
74725         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74726
74727 2005-04-15  Simon Josefsson  <jas@extundo.com>
74728
74729         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74730
74731 2005-04-15  Simon Josefsson  <jas@extundo.com>
74732
74733         * gnulib-tool: Rename --symlink to --symbolic.
74734
74735 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74736
74737         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74738         symbolic links to files instead of copying/moving.  Add --aux-dir,
74739         specifying directory relative --dir where auxiliary build tools
74740         are placed.
74741
74742 2005-04-14  Bruno Haible  <bruno@clisp.org>
74743
74744         * modules/allocsa (License): Change to LGPL.
74745         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74746
74747 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74750         that "UTC +1 second" continues to work.  Problem reported
74751         by Dmitry V. Levin.
74752         (relunit_snumber): New rule.
74753         (relunit): Use it.
74754
74755 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * lib/getdate.y (universal_time_zone_table): New constant.
74758         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74759         universal_time_zone_table.
74760         (lookup_zone): Prefer universal_time_zone_table to
74761         local_time_zone_table, so that "GMT" time stamps are allowed in
74762         London during the summer.  Problem reported by Ian Abbott.
74763
74764 2005-04-12  Jim Meyering  <jim@meyering.net>
74765
74766         * lib/human.c (humblock): Set *options even when returning due to
74767         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74768         warning from gcc-4.
74769
74770 2005-04-09  Jim Meyering  <jim@meyering.net>
74771
74772         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74773         -Wuninitialized: initialize tm0.tm_year.
74774
74775 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74778         count, since there's no maximum.  All uses changed.
74779         Add member dsts_seen.
74780         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74781         not being INT_MAX.
74782         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74783         Use pc_rels_seen to decide whther a date is absolute.
74784
74785         * lib/getdate.y (number): Don't overwrite year.
74786         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74787         check.
74788
74789 2005-04-02  Simon Josefsson  <jas@extundo.com>
74790
74791         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74792         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74793
74794 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74795
74796         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74797         where no absolute path name can be longer than PATH_MAX.
74798
74799 2005-03-27  Jim Meyering  <jim@meyering.net>
74800
74801         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74802
74803 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74806         "one's complement" -> "ones' complement" in comment, as per Knuth.
74807         "value of type" -> "type or expression" in comment.
74808         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74809
74810 2005-03-26  Jim Meyering  <jim@meyering.net>
74811
74812         Comment nits.
74813         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74814         Correct typos: s/or/of/.
74815
74816 2005-03-26  Jim Meyering  <jim@meyering.net>
74817
74818         * modules/check-include-files: Move to ../ and rename to...
74819         * check-module: ...this.
74820
74821 2005-03-25  Jim Meyering  <jim@meyering.net>
74822
74823         * modules/xvasprintf (Files): Add xalloc.h.
74824
74825 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * modules/gettext (Files): config/config.rpath ->
74828         build-aux/config.rpath
74829         * modules/iconv (Files): Likewise.
74830         Problem reported by Oskar Liljeblad.
74831
74832 2005-03-23  Jim Meyering  <jim@meyering.net>
74833
74834         * modules/check-include-files: New script to check for
74835         missing dependencies, multiple includes, etc.
74836
74837         * modules/c-strtold (Depends-on): Add xalloc.
74838         * modules/c-strtod (Depends-on): Add xalloc.
74839         * modules/hash (Depends-on): Add xalloc.
74840         (Files): Remove lib/xalloc.h.
74841
74842         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74843         * modules/userspec (Files): Add lib/inttostr.h.
74844
74845 2005-03-23  Jim Meyering  <jim@meyering.net>
74846
74847         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74848
74849 2005-03-22  Jim Meyering  <jim@meyering.net>
74850
74851         * modules/stat-macros: New module.
74852         * modules/canonicalize, modules/euidaccess, modules/file-type,
74853         * modules/filemode, modules/lchown, modules/makepath,
74854         * modules/rmdir, modules/stat: Depend on new stat-macros module
74855         rather than listing lib/stat-macros.h manually.
74856         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74857
74858 2005-03-22  Jim Meyering  <jim@meyering.net>
74859
74860         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74861
74862 2005-03-22  Bruno Haible  <bruno@clisp.org>
74863
74864         * config/srclist.txt: Replace target directory 'config' with
74865         'build-aux'.
74866         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74867         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74868         ../build-aux/.
74869
74870 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74871
74872         * modules/chdir-long (Depends-on): Add mempcpy.
74873
74874         * modules/acl, modules/backupfile, modules/c-strtod,
74875         modules/c-strtold, modules/canon-host, modules/canonicalize,
74876         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74877         modules/exclude, modules/exitfail, modules/file-type,
74878         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74879         modules/getdate, modules/getline, modules/getpagesize,
74880         modules/getpass, modules/getugroups, modules/group-member,
74881         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74882         modules/inttostr, modules/long-options, modules/makepath,
74883         modules/md5, modules/memcasecmp, modules/memcoll,
74884         modules/modechange, modules/mountlist, modules/path-concat,
74885         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74886         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74887         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74888         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74889         modules/strftime, modules/strndup, modules/strverscmp,
74890         modules/timespec, modules/unlocked-io, modules/userspec,
74891         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74892         modules/yesno:
74893         Remove lib_SOURCES line from Makefile.am section, as this is now
74894         done automatically by the corresponding Autoconf macro.
74895
74896 2005-03-21  Jim Meyering  <jim@meyering.net>
74897
74898         Changes imported from coreutils.
74899
74900         * lib/cycle-check.c: Don't include xalloc.h.
74901
74902         * lib/path-concat.c: Don't include assert.h.
74903         (path_concat): Remove assertion that would have triggered
74904         for ABASE starting with more than one slash.
74905         Reported by Andreas Schwab.
74906
74907         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74908         properly when ABASE is an absolute file name.
74909         Correct the description of this function.
74910         Include <assert.h>.
74911         Add an assertion and a test driver.
74912         This fixes a bug introduced on 2004-07-02.
74913         Andreas Schwab reported the resulting failure of cp --parents:
74914         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74915
74916 2005-03-21  Jim Meyering  <jim@meyering.net>
74917
74918         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74919         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74920
74921 2005-03-21  Jim Meyering  <jim@meyering.net>
74922         and  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74925         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74926         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74927         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74928         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74929         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74930         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74931         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74932         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74933         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74934         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74935         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74936         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74937         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74938         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74939         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74940         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74941         for these modules.
74942
74943 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74944
74945         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74946         (which shouldn't happen), generate nothing instead of returning 0
74947         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74948
74949 2005-03-16  Bruno Haible  <bruno@clisp.org>
74950
74951         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74952         HAVE_LONGLONG_64BIT.
74953
74954 2005-03-16  Bruno Haible  <bruno@clisp.org>
74955
74956         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74957         HAVE_LONGLONG_64BIT.
74958
74959 2005-03-16  Bruno Haible  <bruno@clisp.org>
74960
74961         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74962         HAVE_LONGLONG_64BIT.
74963
74964 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74967         reliably distinguish strftime failure from empty output on POSIX
74968         hosts.
74969
74970 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74973         (iconv_string): Don't guess a size-zero buffer, as that might cause
74974         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74975         result would be 'too large', where 'too large' is (heuristically)
74976         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74977         overflow concerns.  This will prevent some unwanted malloc failures
74978         when the inputs are very large.
74979
74980 2005-03-15  Karl Berry  <karl@gnu.org>
74981
74982         * config/srclist.txt (config.rpath): from gettext.
74983         * config/config.rpath: update.
74984
74985 2005-03-15  Bruno Haible  <bruno@clisp.org>
74986
74987         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74988         to 'negate'.
74989
74990         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74991         variable.
74992
74993         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74994         results.
74995
74996 2005-03-14  Simon Josefsson  <jas@extundo.com>
74997
74998         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74999         <fx@gnu.org>.
75000
75001 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75004         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75005         intprops.h.
75006         * lib/strtol.c: Likewise.
75007
75008 2005-03-14  Jim Meyering  <jim@meyering.net>
75009
75010         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75011         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75012         to be nonzero so that we (and caller) can detect the difference
75013         between a valid zero-length expansion and an error return, even
75014         when the underlying strftime fails before writing anything into
75015         that location.
75016
75017 2005-03-14  Bruno Haible  <bruno@clisp.org>
75018
75019         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75020         Update from GNU gettext 0.14.3.
75021
75022 2005-03-10  Jim Meyering  <jim@meyering.net>
75023
75024         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75025
75026 2005-03-10  Jim Meyering  <jim@meyering.net>
75027
75028         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75029         so that this module works on systems without fchdir.
75030
75031 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         Factor int-properties macros into a single file, except for
75034         glibc-related files.
75035         * lib/intprops.h: New file.
75036         * lib/getloadavg.c: Include it instead of limits.h.
75037         (INT_STRLEN_BOUND): Remove.
75038         * lib/human.c: Include intprops.h.
75039         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75040         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75041         302/1000.
75042         * lib/inttostr.h: Include intprops.h instead of limits.h.
75043         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75044         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75045         for consistency with intprops.h.
75046         (time_t_is_integer, twos_complement_arithmetic): Use them.
75047         * lib/sig2str.h: Include <signal.h>, intprops.h.
75048         (INT_STRLEN_BOUND): Remove.
75049         * lib/strftime.c (TYPE_SIGNED): Remove.
75050         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75051         * lib/strtol.c: Adjust comments to match intprops.h.
75052         * lib/userspec.c: Include intprops.h.
75053         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75054         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75055         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75056         instead of rolling our own expressions.
75057         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75058
75059         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75060         instead of int.
75061         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75062         the right thing even if adding 1900 would overflow.  Similarly
75063         for tm_mon + 1 and tm_yday + 1.
75064         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75065         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75066         (DO_SIGNED_NUMBER): New macro.
75067         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75068
75069 2005-03-07  Bruno Haible  <bruno@clisp.org>
75070
75071         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75072
75073 2005-03-07  Bruno Haible  <bruno@clisp.org>
75074
75075         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75076
75077 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75078
75079         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75080         (func_import): Only replace files via --import when they have actually
75081         changed.
75082
75083 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75084
75085         * m4/mmap-anon.m4: New file.
75086         * m4/pagealign_alloc.m4: New file.
75087
75088 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75089             Bruno Haible  <bruno@clisp.org>
75090
75091         * modules/pagealign_alloc: New file.
75092         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75093
75094 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75095             Bruno Haible  <bruno@clisp.org>
75096
75097         * lib/pagealign_alloc.h: New file.
75098         * lib/pagealign_alloc.c: New file.
75099
75100 2005-03-03  Bruno Haible  <bruno@clisp.org>
75101
75102         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75103         Use an all-permissive copyright notice, recommended by RMS.
75104
75105 2005-03-02  Bruno Haible  <bruno@clisp.org>
75106
75107         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75108         of AIX, the replacement has to be done only after <string.h> is
75109         included, therefore not in config.h. stpncpy.h does the replacement,
75110         and stpncpy.c uses it.
75111
75112 2005-03-02  Bruno Haible  <bruno@clisp.org>
75113
75114         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75115         stpncpy.c uses it.
75116
75117 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75120         The workaround isn't strictly needed for POSIX conformance, and
75121         it's too much of a pain to configure and maintain.  We'll ask
75122         people to fix their kernels instead.
75123         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75124         (NANOSLEEP_BUG_WORKAROUND): Remove.
75125         (xnanosleep): Remove the workaround.
75126
75127 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75130         Reported by Derek Price.
75131         (Include): Add "timespec.h".
75132
75133         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75134
75135 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75138         to detect nanosleep bug.
75139
75140 2005-03-01  Bruno Haible  <bruno@clisp.org>
75141
75142         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75143
75144 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75145
75146         * modules/gethrxtime: New file.
75147         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75148         (Depends-on): Add gethrxtime.
75149         (configure.ac): Add gl_XNANOSLEEP.
75150         (Makefile.am): Remove lib_SOURCES line.
75151
75152 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75153
75154         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75155         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75156
75157 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75158
75159         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75160         * lib/timespec.h (gettime): Return void, since it always
75161         succeeds now.  All uses changed.
75162         * lib/gettime.c (gettime): Likewise.
75163         [HAVE_NANOTIME]: Prefer nanotime.
75164         Assume gettimeofday succeeds, as POSIX requires.
75165         Assime time () succeeds, since other code already does.
75166         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75167         (timespec_subtract): Remove.
75168         (NANOSLEEP_BUG_WORKAROUND): New constant.
75169         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75170         things considerably.  Use it only on GNU/Linux hosts, since the
75171         workaround shouldn't be needed elsewhere.
75172
75173 2005-02-24  Bruno Haible  <bruno@clisp.org>
75174
75175         * modules/gettext (Files): Add m4/glibc2.m4.
75176
75177 2005-02-24  Bruno Haible  <bruno@clisp.org>
75178
75179         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75180         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75181         * m4/progtest.m4:
75182         Update from GNU gettext 0.14.2.
75183         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75184
75185 2005-02-24  Bruno Haible  <bruno@clisp.org>
75186
75187         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75188         * lib/config.charset: Update from GNU gettext 0.14.2.
75189
75190 2005-02-24  Bruno Haible  <bruno@clisp.org>
75191
75192         * lib/gettext.h: Update from GNU gettext 0.14.2.
75193
75194 2005-02-23  Simon Josefsson  <jas@extundo.com>
75195
75196         * m4/iconvme.m4: New file.
75197
75198 2005-02-23  Jim Meyering  <jim@meyering.net>
75199
75200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75201         change.
75202         Thanks to Bruno Haible for catching it.
75203
75204 2005-02-22  Simon Josefsson  <jas@extundo.com>
75205
75206         * modules/iconvme: New file.
75207
75208         * MODULES.html.sh: Add iconvme.
75209
75210 2005-02-22  Simon Josefsson  <jas@extundo.com>
75211
75212         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75213
75214 2005-02-22  Simon Josefsson  <jas@extundo.com>
75215
75216         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75217
75218 2005-02-22  Jim Meyering  <jim@meyering.net>
75219
75220         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75221         s/ifndef/ifdef/.
75222
75223 2005-02-20  Neil Conway  <neilc@samurai.com>
75224
75225         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75226         returned by OSX/Darwin if the specified buffer is not large
75227         enough for the hostname.
75228
75229 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75230
75231         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75232         pass it to _help, otherwise the latter coredumps trying to
75233         dereference state.root_argp.
75234
75235 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75236
75237         * modules/chdir-long (Depends-on): Add memrchr.
75238         * modules/memrchr (Files): Add lib/memrchr.h.
75239         (Include): "memrchr.h".
75240
75241 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75244
75245 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * lib/memrchr.h: New file.
75248         * lib/chdir-long.c: Include it.
75249         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75250         Don't bother including stddef.h.
75251
75252 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75253
75254         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75255         inclusion.
75256         Include <sys/types.h>, for dev_t.
75257         (ME_DUMMY, ME_REMOTE): Move from here....
75258         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75259         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75260         Dmitry V. Levin.
75261         Include mountlist.h first, to test the interface.
75262
75263 2005-01-29  Bruno Haible  <bruno@clisp.org>
75264
75265         * lib/progname.c (program_name): Initialize.
75266         Needed when linking statically on MacOS X.
75267
75268 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75269
75270         Sync from coreutils.
75271         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75272         (Depends-on): Add c-strtod.
75273         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75274
75275 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75276
75277         Sync from coreutils.
75278         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75279
75280         Remove files that are specific to coreutils.
75281         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75282
75283 2005-01-28  Bruno Haible  <bruno@clisp.org>
75284
75285         * modules/javacomp: New file.
75286         * MODULES.html.sh (Java): Add javacomp.
75287
75288 2005-01-28  Bruno Haible  <bruno@clisp.org>
75289
75290         * m4/javacomp.m4: New file, from GNU gettext.
75291
75292 2005-01-28  Bruno Haible  <bruno@clisp.org>
75293
75294         * lib/javacomp.sh.in: New file, from GNU gettext.
75295         * lib/javacomp.h: New file, from GNU gettext.
75296         * lib/javacomp.c: New file, from GNU gettext.
75297
75298 2005-01-26  Simon Josefsson  <jas@extundo.com>
75299
75300         * lib/gai_strerror.c: Use GPL in header.
75301
75302 2005-01-26  Bruno Haible  <bruno@clisp.org>
75303
75304         * modules/javaexec: New file.
75305         * MODULES.html.sh (Java): Add javaexec.
75306
75307 2005-01-26  Bruno Haible  <bruno@clisp.org>
75308
75309         * m4/javaexec.m4: New file, from GNU gettext.
75310
75311 2005-01-26  Bruno Haible  <bruno@clisp.org>
75312
75313         * lib/javaexec.sh.in: New file, from GNU gettext.
75314         * lib/javaexec.h: New file, from GNU gettext.
75315         * lib/javaexec.c: New file, from GNU gettext.
75316
75317 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75318
75319         * modules/lchown (Depends-on): Remove lchown.h
75320
75321 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75322
75323         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75324         must be defined if the header file was not found, in order
75325         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75326
75327 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75328
75329         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75330         initializers for struct pentry_state.
75331         (__argp_error): Check return value of __asprintf
75332         (__argp_failure): Translate error message
75333
75334         * lib/argp-parse.c: Removed braces around the expansion of N_()
75335
75336 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75339         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75340         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75341         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75342         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75343         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75344         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75345         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75346         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75347         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75348         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75349         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75350         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75351         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75352         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75353         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75354         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75355         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75356         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75357         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75358         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75359         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75360         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75361         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75362         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75363         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75364         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75365         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75366         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75367         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75368         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75369         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75370         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75371         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75372         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75373         Use an all-permissive copyright notice, recommended by RMS.
75374
75375 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         * modules/chdir-long (Depends-on): Remove mempcpy.
75378
75379 2005-01-21  Jim Meyering  <jim@meyering.net>
75380
75381         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75382         same value as for Solaris 9.
75383
75384         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75385         component length.  This included changing the parameter to be
75386         of type `char *' rather than `char const *'.
75387         * lib/chdir-long.h (chdir_long): Update prototype.
75388
75389         * lib/openat.c (fdopendir, fstatat): New functions.
75390         * lib/openat.h: Include headers required for use of DIR and struct
75391         stat.
75392         [AT_SYMLINK_NOFOLLOW]: Define.
75393         (fdopendir, fstatat): Add prototypes.
75394
75395 2005-01-21  Bruno Haible  <bruno@clisp.org>
75396
75397         * modules/classpath: New file.
75398         * MODULES.html.sh (Java): Add classpath.
75399
75400 2005-01-21  Bruno Haible  <bruno@clisp.org>
75401
75402         * lib/classpath.h: New file, from GNU gettext.
75403         * lib/classpath.c: New file, from GNU gettext.
75404
75405 2005-01-20  Simon Josefsson  <jas@extundo.com>
75406
75407         * modules/version-etc-fsf: New file.
75408
75409 2005-01-20  Simon Josefsson  <jas@extundo.com>
75410
75411         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75412         * lib/version-etc.c: Remove version_etc_copyright.
75413         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75414         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75415
75416 2005-01-20  Simon Josefsson  <jas@extundo.com>
75417
75418         * lib/base64.h (isbase64): Add.
75419
75420         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75421         using a unsigned prototype, don't inline.
75422         (base64_decode): Use it.
75423
75424 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75427         it.
75428
75429 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * lib/save-cwd.c (save_cwd): Remove code to support the case
75432         where fchdir is missing or flaky.
75433
75434 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75437
75438 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75439
75440         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75441         AC_LIBSOURCES now does this.
75442         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75443         with new ullong_max module.
75444
75445 2005-01-19  Bruno Haible  <bruno@clisp.org>
75446
75447         * modules/sh-quote: New file.
75448         * MODULES.html.sh (Executing programs): Add sh-quote.
75449
75450 2005-01-19  Bruno Haible  <bruno@clisp.org>
75451
75452         * lib/sh-quote.h: New file, from GNU gettext.
75453         * lib/sh-quote.c: New file, from GNU gettext.
75454
75455 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         Merge from coreutils.
75458         * m4/ullong_max.m4: New file.
75459         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75460         (gl_MACROS): Assume localeconv exists.
75461
75462 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         Merge changes from coreutils, as described below in several
75465         changelogs dated today.
75466
75467         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75468         (O_DIRECTORY): Remove; not needed here, since "." must be
75469         a directory.  All uses removed.
75470         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75471         universal on Suns, and we also need to test for IRIX.
75472         Revamp code to use 'if' rather than '#if'.
75473         Avoid unnecessary comparison of cwd->desc to 0.
75474
75475         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75476         for known valid error numbers rather than observed invalid ones.
75477
75478 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * modules/ullong_max: New file.
75481
75482         * modules/chdir-long, modules/openat: New files.
75483         * modules/save-cwd (Depends-on): Depend on chdir-long.
75484         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75485
75486 2005-01-18  Jim Meyering  <jim@meyering.net>
75487
75488         Merge from coreutils.
75489         * m4/chdir-long.m4, m4/openat.m4: New files.
75490         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75491         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75492         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75493         is sane and DOES follow symlinks.  Besides, testing 20 different
75494         systems found no broken chown implementations.
75495         Prompted by a change in rsync's copy of this macro.
75496         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75497
75498         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75499
75500         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75501         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75502         NULL-means-set-to-current-time semantics.
75503         Remove temporary file immediately, rather than waiting
75504         for configure's at-exit trap code to do it.
75505
75506 2005-01-18  Jim Meyering  <jim@meyering.net>
75507
75508         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75509
75510         * lib/utimens.c (futimens): Account for the fact that futimes
75511         can also fail with errno == ENOSYS or errno == ENOENT.
75512         Patch from Dmitry V. Levin.
75513
75514         Change the name of the robust chdir function from chdir to chdir_long.
75515         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75516         (restore_cwd): Use chdir_long, not chdir.
75517         * lib/chdir-long.c: Renamed from chdir.c.
75518         * lib/chdir-long.h: Renamed from chdir.h.
75519         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75520         Hurd.
75521
75522 2005-01-18  Bruno Haible  <bruno@clisp.org>
75523
75524         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75525         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75526         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75527         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75528         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75529         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75530         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75531         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75532         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75533         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75534         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75535         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75536         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75537         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75538         Use an all-permissive copyright notice, recommended by RMS.
75539
75540 2005-01-18  Bob Proulx  <bob@proulx.com>
75541
75542         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75543         simplify offsetof() macro construct to avoid compile failure with
75544         native HP-UX 11.0 ANSI C compiler.
75545
75546 2005-01-17  Bruno Haible  <bruno@clisp.org>
75547
75548         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75549         redundant because stpncpy.m4 takes care of it.
75550
75551 2005-01-17  Bruno Haible  <bruno@clisp.org>
75552
75553         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75554
75555 2005-01-17  Bruno Haible  <bruno@clisp.org>
75556
75557         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75558         used.
75559
75560 2005-01-17  Bruno Haible  <bruno@clisp.org>
75561
75562         * lib/fwriteerror.h (fwriteerror): Change specification to include
75563         fclose.
75564         * lib/fwriteerror.c: Include <stdbool.h>.
75565         (fwriteerror): At the end, close the file stream. Record whether
75566         stdout was already closed.
75567
75568 2005-01-17  Bruno Haible  <bruno@clisp.org>
75569
75570         * lib/execute.c (environ): Declare if needed.
75571         * lib/pipe.c (environ): Likewise.
75572         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75573
75574 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75575
75576         * modules/argp: Depend on vsnprintf
75577
75578 2005-01-10  Jim Meyering  <jim@meyering.net>
75579
75580         * modules/closeout (Depends-on): Add atexit.
75581
75582 2005-01-06  Bruno Haible  <bruno@clisp.org>
75583
75584         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75585
75586 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75587
75588         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75589         definitions to be after all include files, to avoid collisions.
75590         Problem reported by Bob Proulx.
75591
75592 2005-01-04  Jim Meyering  <jim@meyering.net>
75593
75594         Changes imported from coreutils.
75595         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75596         as the mkstemp template, use a temporary directory and an
75597         8.3-friendly template to avoid trouble on systems like DJGPP.
75598         Reported by Juan M. Guerrero via Stepan Kasal.
75599         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75600         close. Remove the temporary directory right away, rather than waiting
75601         for configure's at-exit trap code to do it.
75602         Suggestion from Stepan Kasal.
75603
75604 2005-01-01  Simon Josefsson  <jas@extundo.com>
75605
75606         * gnulib-tool: Print #include directives when --import'ing.
75607
75608 2004-12-28  Simon Josefsson  <jas@extundo.com>
75609
75610         * tests/test-base64.c: Include required header files.  Remove
75611         unused variables.
75612
75613 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         * modules/error (Depends-on): Remove gettext.
75616
75617 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75620         not needed.  This removes a dependency on the gettext module.
75621         [defined _LIBC]: Do not include <libintl.h>; not needed.
75622
75623 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75626         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75627
75628 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75629
75630         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75631         HAVE_DECL_STRTOLD.
75632
75633 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75634
75635         * modules/getdate (Depends-on): Remove alloca-opt.
75636
75637 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75640
75641 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75642
75643         * lib/argp-parse.c: Include <stddef.h>.
75644         (alignof, alignto): New macros.
75645         (parser_init): Don't assume that void * is aligned sufficiently
75646         for struct option.
75647
75648         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75649         need to extend the stack.
75650         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75651         large.
75652
75653 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75654
75655         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75656
75657 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75658
75659         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75660         (2004-10-24) change.  Apparently this was a false alarm.
75661
75662         * modules/getdate: Depend on alloca-opt, not alloca.
75663
75664 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75667         Remove now-obsolete comment about AIX.
75668         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75669         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75670         (YYMAXDEPTH): New macro.
75671
75672 2004-12-18  Simon Josefsson  <jas@extundo.com>
75673
75674         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75675
75676 2004-12-18  Bruno Haible  <bruno@clisp.org>
75677
75678         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75679
75680 2004-12-18  Bruno Haible  <bruno@clisp.org>
75681
75682         * lib/fatal-signal.c (fatal_signals): Make non-const.
75683         (init_fatal_signals): New function.
75684         (uninstall_handlers, install_handlers): Ignore signals that were set to
75685         SIG_IGN.
75686         (at_fatal_signal): Call init_fatal_signals.
75687         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75688         SIG_IGN.
75689         Reported by Paul Eggert.
75690
75691 2004-12-18  Bruno Haible  <bruno@clisp.org>
75692
75693         * doc/alloca.texi: New file.
75694         * doc/alloca-opt.texi: New file.
75695
75696 2004-12-17  Jim Meyering  <jim@meyering.net>
75697
75698         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75699         Otherwise, install-sh could exit with improper exit status when
75700         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75701
75702 2004-12-16  Simon Josefsson  <jas@extundo.com>
75703
75704         * tests/test-base64.c: Add license.
75705
75706 2004-12-15  Stepan Kasal  <address@hidden>
75707
75708         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75709
75710 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * modules/getcwd (Files): Add m4/d-ino.m4.
75713         Suggested by Mark D. Baushke.
75714
75715 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         * lib/getdate.y (textint): New member "negative".
75718         (time_zone_hhmm): New function.
75719         Expect 14 shift-reduce conflicts, not 13.
75720         (o_colon_minutes): New rule.
75721         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75722         (yylex): Set the "negative" member of signed numbers.
75723
75724 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         * doc/getdate.texi (Time of day items, Time zone items):
75727         Describe new formats +00:00, UTC+00:00.
75728
75729 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75732         spurious "-l"s.  Problem reported by Stepan Kasal.
75733
75734 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75737         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75738
75739 2004-12-04  Simon Josefsson  <jas@extundo.com>
75740
75741         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75742         Vandoorselaere <yoann@prelude-ids.org>.
75743
75744 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         Changes imported from coreutils.
75747         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75748         exist.
75749         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75750
75751 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75752
75753         Changes imported from coreutils.
75754         * lib/hard-locale.c: Assume <locale.h> exists.
75755         Include "strdup.h".
75756         (GLIBC_VERSION): New macro.
75757         (hard_locale): Assume setlocale exists.
75758         Rewrite to avoid #ifdef.
75759         Use strdup rather than malloc + strcpy.
75760         * lib/human.c: Assume <locale.h> exists.
75761         (human_readable): Assume localeconv exists.
75762
75763 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * modules/hard-locale (Depends-on): Add strdup.
75766
75767 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75768
75769         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75770         convert T2, not T.  (Imported from libc.)
75771
75772 2004-11-30  Simon Josefsson  <jas@extundo.com>
75773
75774         * modules/restrict (License): Change to LGPL.
75775
75776 2004-11-30  Simon Josefsson  <jas@extundo.com>
75777
75778         * m4/restrict.m4: Add copyright and copying conditions.
75779
75780 2004-11-30  Simon Josefsson  <jas@extundo.com>
75781
75782         * m4/base64.m4: New file.
75783
75784 2004-11-30  Simon Josefsson  <jas@extundo.com>
75785
75786         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75787         base64.
75788
75789         * tests/test-base64.c: New file.
75790
75791         * modules/base64: New file.
75792
75793 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75794
75795         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75796         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75797
75798         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75799
75800 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75803         (__getcwd.c): Don't restore errno; glibc doesn't.
75804         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75805         first, falling back to our code only if its results look suspicious.
75806         Ensure that the resulting buffer is only as large as necessary.
75807
75808         * lib/readutmp.c: Include readutmp.h first.
75809         Include <errno.h>, since readutmp.h no longer does that.
75810         * lib/readutmp.h: Don't include <errno.h>,
75811         <sys/param.h>, <time.h>; not needed to establish interface.
75812         (errno): Remove decl.
75813         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75814         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75815         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75816
75817 2004-11-28  Simon Josefsson  <jas@extundo.com>
75818
75819         * lib/base64.h, base64.c: New file.
75820
75821 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75824
75825 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75828         (Depends-on): Remove pathmax, same.  Add mempcpy.
75829         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75830         (Makefile.am): Append getcwd.h to lib_SOURCES.
75831         (Include): Add getcwd.h.
75832         (Maintainer): Change from Jim Meyering to "all, glibc",
75833         since getdate now uses intended-for-glibc code.
75834         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75835         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75836
75837 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75840         HP's ANSI C compiler.
75841         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75842         Declaring int functions causes warnings on some modern systems and
75843         shouldn't be needed to compile on ancient ones.
75844         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75845         defined.
75846
75847         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75848         with the following changes.
75849         (__set_errno): Parenthesize properly.
75850         Include <stdbool.h>.
75851         (MIN, MAX, MATCHING_INO): New macros.
75852         (__getcwd): Define with prototype, not K&R form.
75853         Use heuristics to allocate default buffer on stack if possible.
75854         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75855         behavior, and to avoid the PATH_MAX limit when computing
75856         ../../../../...
75857         Use MATCHING_INO to compare inode number to file.
75858         Check for arithmetic overflow in size calculations.
75859         Fix bug in reallocation of dot array that caused getcwd to fail
75860         on directories nested deeper than 75.
75861         Be more careful about saving errno on error.
75862         Do not use realloc; use only free+malloc, as this is a bit
75863         more flexible and avoids a needless copy operation.
75864         Do not inspect st_dev and st_ino for symbolic links; POSIX
75865         doesn't specify the latter.
75866         Check for closedir errors.
75867         Avoid needless casts.
75868         Use "#ifdef weak_alias" around weak_alias, to be like other
75869         glibc code.
75870         The following changes to getcwd.c have effect only when used in
75871         gnulib; they have no effect inside glibc proper.
75872         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75873         as alloca isn't used.
75874         (alloca, __alloca): Likewise.
75875         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75876         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75877         unconditionally, as gnulib assumes C89 or better.
75878         Do not include <sys/param.h>.
75879         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75880         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75881         better.
75882         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75883         Include <dirent.h> in a way that is compatible with modern Autoconf.
75884         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75885         New macros, if not already defined.
75886         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75887         Use "_LIBC", not "defined _LIBC", for consistency.
75888         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75889         a mempcpy module.
75890         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75891         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75892         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75893         credit only to Jim Meyering and adjust the copyright dates.
75894         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75895         <stdlib.h>, <unistd.h>, "pathmax.h".
75896         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75897         (INITIAL_BUFFER_SIZE): Remove.
75898         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75899
75900 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75903         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75904         Use the _ONCE methods, for efficiency.
75905         Check for fcntl.h.  In test program, include <errno.h>
75906         and <fcntl.h> if available.  Remove old K&R cruft from
75907         test program.  Check for common errors in GNU/Linux,
75908         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75909         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75910         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75911         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75912         name accordingly.
75913         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75914         accommodate new getcwd.c.
75915         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75916         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75917         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75918         that's all we need now.
75919
75920 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75921
75922         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75923         argp-parse.c depends on getopt internals, that means we should
75924         always use our getopt, to be on the safe side.
75925         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75926         order not to spoil the result of an eventual previous invocation
75927         of gl_GETOPT_SUBSTITUTE.
75928
75929 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75930
75931         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75932         redefinition warnings. To avoid them, include the defines
75933         in `#if !defined __need_getopt ... #endif'. The only place
75934         where __getopt_argv_const is used is in definitions
75935         of getopt_long and getopt_long_only below, which are as well
75936         protected by `#ifndef __need_getopt'.
75937         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75938         __need_getopt after including <stdio.h> and <unistd.h> These
75939         headers might have defined it.
75940
75941 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75942
75943         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75944
75945 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75946
75947         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75948         (futimens): New function, which uses futimes if available.
75949         (futimens, utimens): Support timespec==NULL, with same semantics
75950         as utime and utimens.
75951         * lib/utimens.h (futimens): New decl.
75952
75953 2004-11-23  Jim Meyering  <jim@meyering.net>
75954
75955         * lib/getopt_.h: Remove trailing blanks.
75956
75957 2004-11-23  Jim Meyering  <jim@meyering.net>
75958
75959         * lib/__fpending.c: Add comment.
75960
75961 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75962
75963         * modules/canonicalize (Depends-on): Add xreadlink.
75964         Problem reported by James Youngman.
75965
75966 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75969         New macros.
75970         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75971         optopt): Use them instead of invoking ## directly; otherwise, the
75972         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75973
75974 2004-11-19  Bruno Haible  <bruno@clisp.org>
75975
75976         * lib/strtok_r.c: Move comments from here...
75977         * lib/strtok_r.h: ... to here.
75978
75979 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75982         implementations that mishandle size_t overflow.
75983
75984 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75987         might fail.  Problem reported by Yoann Vandoorselaere.
75988         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75989         implementations that mishandle size_t overflow.
75990
75991 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * modules/canon-host (Depends-on): Add strdup.
75994
75995 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75998
75999 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * lib/canon-host.c: Include "strdup.h".
76002         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76003         Use strdup instead of malloc/strcpy to duplicate strings.
76004
76005         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76006         (human_space_before_unit): New constant.
76007         * lib/human.c (human_readable): Support it.
76008
76009         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76010         (xgetcwd): Set errno correctly when failing.
76011         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76012         the failure is actually due to a PATH_MAX problem.
76013
76014         Further getopt changes to make it more likely that glibc will
76015         buy the changes back.
76016         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76017         (getopt): Use it, so to preserve glibc semantic
76018         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76019         when compiling for libc.
76020         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76021         (getopt_long, getopt_long_only): Use it.
76022
76023         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76024         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76025         (getopt): Argv is now char * const *, as per standard.
76026         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76027         not char *__getopt_argv_const *.
76028         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76029         _getopt_long_only_r): Likewise.
76030         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76031         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76032         _getopt_long_r, _getopt_long_only_r): Likewise.
76033         * lib/getopt_.h (__getopt_argv_const): Remove.
76034         (getopt): Argv is now char * const *, as per standard.
76035
76036         * lib/getdate.y (tORDINAL): New token.
76037         (day, relunit): Allow it for relative times.
76038         (relative_time_table): Use tORDINAL for ordinals.
76039
76040 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76041
76042         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76043         Document that "second" isn't allowed as an ordinal number.
76044
76045 2004-11-16  Jim Meyering  <jim@meyering.net>
76046
76047         * modules/closeout (Depends-on): Add fpending.
76048
76049 2004-11-15  Jim Meyering  <jim@meyering.net>
76050
76051         * lib/closeout.c: Include "__fpending.h" once again.
76052         Include <stdbool.h>.
76053         (close_stdout): Don't fail just because stdout was closed initially,
76054         since some programs don't write to stdout in the normal course of
76055         operation (other than --version and --help), and we don't want this
76056         function to make e.g. `touch file >&-' fail.
76057         But do fail if it was closed and someone has tried to write to it.
76058         E.g., `printf foo >&-' must fail.
76059
76060 2004-11-13  Jim Meyering  <jim@meyering.net>
76061
76062         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76063
76064 2004-11-12  Simon Josefsson  <jas@extundo.com>
76065
76066         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76067         small doc fix is still pending.
76068
76069 2004-11-11  Simon Josefsson  <jas@extundo.com>
76070
76071         * modules/strtok_r: New file.
76072
76073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76074         strtok_r.
76075
76076 2004-11-11  Simon Josefsson  <jas@extundo.com>
76077
76078         * m4/strtok_r.m4: New file.
76079
76080         * m4/getopt.m4: Replace opterr.
76081
76082 2004-11-11  Simon Josefsson  <jas@extundo.com>
76083
76084         * lib/strtok_r.h, strtok_r.c: New file.
76085
76086 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76089         of replacing opterr, getopt, etc.  This should handle the
76090         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76091
76092 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76093
76094         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76095         we can stop lying to compilers about the constness of argv when we
76096         are compiled outside glibc.
76097         (getopt, getopt_long, getopt_long_only): Use it.
76098         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76099         _getopt_internal, getopt): Likewise.
76100         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76101         _getopt_long_only_r): Likewise.
76102         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76103         _getopt_long_r, _getopt_long_only_r): Likewise.
76104
76105         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76106         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76107         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76108         the other external symbols.
76109         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76110         declaration, since the above renaming now works around collisions.
76111
76112 2004-11-11  Jim Meyering  <jim@meyering.net>
76113
76114         * lib/linebreak.c: Remove trailing blanks.
76115         * lib/alloca_.h: Likewise.
76116         * lib/acosl.c: Likewise.
76117         * lib/euidaccess.c: Likewise.
76118         * lib/allocsa.h: Likewise.
76119
76120 2004-11-10  Simon Josefsson  <jas@extundo.com>
76121
76122         * m4/getaddrinfo.m4: New file.
76123
76124 2004-11-10  Simon Josefsson  <jas@extundo.com>
76125
76126         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76127
76128 2004-11-10  Simon Josefsson  <jas@extundo.com>
76129
76130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76131         getaddrinfo.
76132
76133         * modules/getaddrinfo: New file.
76134
76135 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76136
76137         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76138
76139 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * lib/mktime.c (SHR): New macro, which is a portable
76142         substitute for >> that should work even on Crays.
76143         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76144         Problem reported by Mark D. Baushke in
76145         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76146         * lib/getdate.y (SHR): Likewise.
76147         (tm_diff): Use it.
76148         * lib/strftime.c (SHR): Likewise.
76149         (tm_diff): Use it.
76150         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76151         quote_these_too, so that right shifts are well defined.  All uses
76152         changed.
76153
76154 2004-11-10  Jim Meyering  <jim@meyering.net>
76155
76156         Ensure that no close failure goes unreported.
76157         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76158         return early when it seems there's nothing to flush.
76159         Don't include __fpending.h.
76160
76161 2004-11-10  Jim Meyering  <jim@meyering.net>
76162
76163         * modules/closeout (Depends-on): Remove fpending.
76164
76165 2004-11-10  Jim Meyering  <jim@meyering.net>
76166
76167         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76168
76169 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76172         gl_FUNC_STRFTIME.
76173         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76174         and AC_REQUIRE when possible, to avoid duplicate checks.
76175         Check for <wchar.h>.
76176
76177 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76180
76181 2004-11-09  Bruno Haible  <bruno@clisp.org>
76182
76183         * m4/sockpfaf.m4: New file.
76184
76185 2004-11-05  Bruno Haible  <bruno@clisp.org>
76186
76187         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76188         Reported by Mark D. Baushke <mdb@cvshome.org>.
76189
76190 2004-11-04  Bruno Haible  <bruno@clisp.org>
76191
76192         2004-09-11  Bruno Haible  <bruno@clisp.org>
76193                 * allocsa.valgrind: New file.
76194         2004-02-06  Bruno Haible  <bruno@clisp.org>
76195                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76196                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76197                 Reported by Christopher Seip <chris.seip@hp.com>.
76198
76199 2004-11-04  Bruno Haible  <bruno@clisp.org>
76200
76201         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76202         (Makefile.am): Distribute it.
76203
76204 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76205
76206         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76207         with errno == ERANGE if the buffer is too small.
76208         Problem reported by Mark D. Baushke.
76209
76210 2004-11-03  Albert Chin  <china@thewrittenword.com>
76211             Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76214         equivalent, substitute $ac_type for equivalent type rather than
76215         blindly using uint32_t *always* which won't work if uint32_t is not
76216         available.  Define _UINT32_T to work around typedef of uint32_t if
76217         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76218         2.5.1.
76219
76220 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * m4/jm-macros.m4: Sync from coreutils.
76223         (gl_MACROS): Check for mbrlen, for pathchk.
76224         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76225
76226 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76227
76228         * lib/xreadlink.c (MAXSIZE): New macro.
76229         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76230         size does not exceed MAXSIZE.  Avoid cast.
76231         As suggested by Mark D. Baushke in
76232         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76233         if readlink fails with buffer size just under MAXSIZE, try again
76234         with MAXSIZE.
76235
76236 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76239
76240 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76241         and  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76244         (get_date): Overparenthesize to avoid GCC warning.
76245
76246 2004-11-02  Bruno Haible  <bruno@clisp.org>
76247
76248         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76249         returns void.
76250
76251 2004-11-02  Bruno Haible  <bruno@clisp.org>
76252
76253         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76254         function returns void.
76255
76256 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76257
76258         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76259         fflush_unlocked, flockfile, funlockfile, funlockfile,
76260         fputs_unlocked, putc_unlocked.
76261
76262 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76265         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76266         already declared.
76267
76268 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * modules/getdate (Files): Add doc/getdate.texi.
76271         (Depends-on): Add setenv, xalloc.
76272
76273 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         * lib/getdate.y: Add support for TZ="foo" within a date string.
76276         Fix some bugs near time_t boundaries.  Reject dates with
76277         out-of-range components, e.g., "Sept 31".
76278         Include <stdlib.h>, "setenv.h", "xalloc.h".
76279         (ISDIGIT_LOCALE): Remove; unused.
76280         Note that the TZ and time functions used here are not reentrant.
76281         (mktime_ok, get_tz): New functions.
76282         (TZBUFSIZE): New constant.
76283         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76284         This requires that we sometimes generate our own TZ="XXX..." setting.
76285
76286 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * doc/getdate.texi: New file, from coreutils with modifications for
76289         the new TZ parsing.
76290
76291 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76292
76293         * lib/mktime.c (not_equal_tm): Remove redundant check.
76294
76295 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         * modules/regex (lib_SOURCES): Add regex.c.
76298         Reported by James Youngman in
76299         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76300
76301 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * lib/getdate.y: Use Bison 1.875 features, and some minor
76304         code cleanups.  This change does not affect semantics.
76305         Don't include <stdlib.h>; no longer needed.
76306         Don't include unlocked-io.h; only the "#if TEST" code uses
76307         stdio, and performance isn't crucial there.
76308         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76309         Bison 1.875 features as described below.
76310         All uses of "PC." replaced by "pc->".
76311         (YYSTYPE): Add a forward declaration.
76312         (yylex, yyerror): Use full prototypes in forward decls.
76313         Use "%pure-parser" rather than obsolescent "%pure_parser".
76314         Use %parse-param and %lex-param instead of obsolescent
76315         YYPARSE_PARAM and YYLEX_PARAM.
76316         (meridian_table, month_and_day_table, time_units_table,
76317         relative_time_table, time_zone_table, military_table,
76318         lookup_zone, lookup_word, get_date):
76319         Use NULL instead of 0 where appropriate.
76320         (to_hour): Avoid abort (), to avoid a dependency on
76321         stdlib.h.
76322         (yyerror, yylex): Now accepts parser_control * arg.
76323         (main) [TEST]: Use '\0' rather than 0 for char.
76324
76325 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76328
76329 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76332         It's now the caller's responsibility to handle the case where
76333         !HAVE_GETPAGESIZE && !defined getpagesize.
76334
76335         * lib/mktime.c (leapyear): Arg is long int, not int.
76336
76337 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76338
76339         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76340
76341 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76344         missing.  Problem reported by James Youngman.
76345
76346 2004-10-16  Simon Josefsson  <jas@extundo.com>
76347
76348         * gnulib-tool: Fix comments.  Fix parse problem.
76349         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76350
76351 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76352
76353         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76354         implementation of getopt_long.  Problem reported by Alexander Taler in:
76355         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76356
76357 2004-10-15  Bruno Haible  <bruno@clisp.org>
76358
76359         * gnulib-tool: Untabify. Initialize supplied_libname.
76360         (func_usage): More homogenous output.
76361         (func_modules_transitive_closure, func_modules_to_filelist,
76362         func_emit_lib_Makefile_am): New functions.
76363         (func_import): New function, extracted from big case statement. Use
76364         func_get_license, func_modules_transitive_closure,
76365         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76366         opt_lgpl. Don't use test -a, as it's not portable.
76367         (func_create_testdir): Use func_modules_transitive_closure,
76368         func_modules_to_filelist, func_emit_lib_Makefile_am.
76369
76370 2004-10-15  Bruno Haible  <bruno@clisp.org>
76371
76372         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76373
76374 2004-10-15  Bruno Haible  <bruno@clisp.org>
76375
76376         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76377         the portions belonging to each module.
76378         Suggested by Derek Robert Price <derek@ximbiot.com>.
76379
76380 2004-10-12  Simon Josefsson  <jas@extundo.com>
76381
76382         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76383         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76384         to real functions.
76385
76386 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76387
76388         * modules/vsnprintf: New file.
76389
76390 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76391
76392         * m4/vsnprintf.m4: New file.
76393
76394 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76395
76396         * lib/vsnprintf.h: New file.
76397         * lib/vsnprintf.c: New file.
76398
76399 2004-10-11  Bruno Haible  <bruno@clisp.org>
76400
76401         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76402         vsnprintf.
76403
76404 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76405
76406         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76407
76408 2004-10-07  Bruno Haible  <bruno@clisp.org>
76409
76410         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76411         fits into the provided buffer.
76412
76413 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76414
76415         * lib/diacrit.c, diacrit.h: Add GPL notice.
76416
76417         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76418         notice.
76419         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76420         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76421         This avoids a potential constant-folding bug.
76422
76423 2004-10-05  Bruno Haible  <bruno@clisp.org>
76424
76425         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76426         for the declaration of strsep.
76427
76428 2004-10-05  Bruno Haible  <bruno@clisp.org>
76429
76430         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76431
76432 2004-10-04  Simon Josefsson  <jas@extundo.com>
76433
76434         * modules/memmem: New file.
76435         * tests/test-memmem.c: New file.
76436         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76437
76438 2004-10-04  Simon Josefsson  <jas@extundo.com>
76439
76440         * m4/memmem.m4: New file.
76441
76442 2004-10-04  Simon Josefsson  <jas@extundo.com>
76443
76444         * lib/memmem.h: New file.
76445         * lib/memmem.c: New file, taken from glibc.
76446
76447 2004-10-04  Simon Josefsson  <jas@extundo.com>
76448
76449         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76450         '#ifdef USE_UNLOCKED_IO'.
76451
76452 2004-10-04  Simon Josefsson  <jas@extundo.com>
76453
76454         * config/srclist.txt: Add memmem from glibc.
76455
76456 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76459
76460         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76461         modules/exclude, modules/getdate, modules/getline,
76462         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76463         modules/getusershell, modules/linebuffer, modules/md5,
76464         modules/mountlist, modules/posixtm, modules/readtokens,
76465         modules/readutmp, modules/regex, modules/sha1,
76466         modules/version-etc, modules/yesno:
76467         Remove dependency on unlocked-io.
76468
76469 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76472
76473         * m4/unlocked-io.m4: Add copyright notice.
76474         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76475
76476 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76479         * lib/xmalloc.c (xmemdup): Likewise.
76480         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76481         XFREE): Remove these long-obsolescent macros.
76482         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76483         * lib/xstrdup.c: Remove.
76484
76485         * lib/regex.c (re_comp): Cast gettext return value to char *,
76486         Problem reported by Martin Neitzel via Mark D. Baushke.
76487
76488 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76489
76490         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76491         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76492         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76493         regex.c, sha1.c, version-etc.c, yesno.c:
76494         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76495         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76496         the includer's responsibility.
76497
76498         Sync from coreutils.
76499
76500         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76501         points to the start of a string, as the C Standard says the
76502         resulting behavior is undefined.
76503
76504         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76505         simple -> simple_backups, numbered_existing ->
76506         numbered_existing_backups, numbered -> numbered_backups
76507         to avoid shadowing problems.  All uses changed.
76508         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76509         * lib/backupfile.c (check_extension, numbered_backup):
76510         Rename locals to avoid shadowing 'basename'.
76511         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76512         once.
76513
76514         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76515         * lib/.cvsignore: Add getopt.h.
76516
76517 2004-10-04  Bruno Haible  <bruno@clisp.org>
76518
76519         * modules/README: New file.
76520         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76521         not a module.
76522
76523 2004-10-02  Jim Meyering  <jim@meyering.net>
76524
76525         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76526
76527 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76528
76529         * modules/strsep: New file.
76530
76531 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76532
76533         * m4/strsep.m4: New file.
76534
76535 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76536
76537         * lib/strsep.h: New file.
76538         * lib/strsep.c: New file.
76539
76540 2004-10-01  Simon Josefsson  <jas@extundo.com>
76541
76542         * lib/snprintf.c (snprintf): Handle size==0.
76543
76544 2004-10-01  Simon Josefsson  <jas@extundo.com>
76545             Bruno Haible  <bruno@clisp.org>
76546
76547         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76548         (snprintf): Declare 'args'.
76549
76550 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         * lib/snprintf.c: Remove comments as to why each header is needed.
76553
76554 2004-10-01  Bruno Haible  <bruno@clisp.org>
76555
76556         * MODULES.html.sh: Add strsep.
76557
76558 2004-09-30  Simon Josefsson  <jas@extundo.com>
76559
76560         * modules/snprintf: New file.
76561
76562 2004-09-30  Simon Josefsson  <jas@extundo.com>
76563
76564         * m4/snprintf.m4: New file.
76565
76566 2004-09-30  Simon Josefsson  <jas@extundo.com>
76567
76568         * lib/snprintf.h, lib/snprintf.c: New files.
76569
76570 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76571
76572         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76573         (hol_entry_help): Never translate an empty string.
76574         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76575         * lib/argp.h (OPTION_NO_TRANS): New option.
76576
76577 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76578
76579         * modules/argp (Maintainer): Replace Simon Josefsson
76580         by Sergey Poznyakoff.
76581
76582 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76585         changes merged back into glibc.
76586
76587 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76590
76591 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76592
76593         * lib/xvasprintf.c: Include xalloc.h.
76594         (xvasprintf): Use xalloc_die, not xmalloc_die.
76595
76596 2004-09-29  Bruno Haible  <bruno@clisp.org>
76597
76598         * modules/alloca-opt: New file, derived from modules/alloca.
76599         * modules/allocsa: Depend on alloca-opt instead of alloca.
76600         * modules/setenv: Likewise.
76601         * modules/vasnprintf: Likewise.
76602         * MODULES.html.sh: Add alloca-opt.
76603
76604 2004-09-28  Simon Josefsson  <jas@extundo.com>
76605
76606         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76607         LGPL, and to replace license template from GPL to LGPL.
76608
76609 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         * modules/dummy: Change license to LGPL.
76612
76613 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76616
76617 2004-09-24  Simon Josefsson  <jas@extundo.com>
76618
76619         * modules/minmax (License): Change from GPL to LGPL.
76620
76621 2004-09-23  Simon Josefsson  <jas@extundo.com>
76622
76623         * gnulib-tool (--import): Typo.
76624
76625 2004-09-23  Simon Josefsson  <jas@extundo.com>
76626
76627         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76628
76629 2004-09-22  Bruno Haible  <bruno@clisp.org>
76630
76631         * modules/*: Add 'License' field.
76632         * gnulib-tool: Accept --extract-license option.
76633         (func_get_license): New function.
76634
76635 2004-09-21  Bruno Haible  <bruno@clisp.org>
76636
76637         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76638         Reported by Simon Josefsson.
76639
76640 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76643         gl_AC_TYPE_LONG_LONG.
76644
76645 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76648
76649 2004-09-18  Simon Josefsson  <jas@extundo.com>
76650         and  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76653         calls with autoreconf.  Define GL_LIB.
76654
76655 2004-09-14  Karl Berry  <karl@gnu.org>
76656
76657         * config/srclist.txt: unsync setenv.c, sigh.
76658
76659 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76662         Problem reported by Bruno Haible in:
76663         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76664
76665 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         * config/srclist.txt: Comment out argp-pvh.c.
76668
76669 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76672         in case some system header has #define'd it.  Problem reported by
76673         Soeren D. Schulze in
76674         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76675
76676 2004-09-09  Karl Berry  <karl@gnu.org>
76677
76678         * regex.[ch]: delete from the root.  These were supposed to be
76679                 synced with emacs cvs, but this has not happened for about
76680                 a year, and anyway nothing else uses emacs regex.[ch].
76681                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76682                 lib/regex[.ch] is untouched.
76683
76684 2004-09-09  Bruno Haible  <bruno@clisp.org>
76685
76686         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76687
76688 2004-09-09  Bruno Haible  <bruno@clisp.org>
76689
76690         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76691         modifications.
76692         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76693
76694 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76695
76696         * modules/xvasprintf: New file.
76697         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76698
76699 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76700
76701         * lib/xvasprintf.h: New file.
76702         * lib/xvasprintf.c: New file.
76703         * lib/xasprintf.c: New file.
76704
76705 2004-09-08  Bruno Haible  <bruno@clisp.org>
76706
76707         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76708
76709 2004-09-08  Bruno Haible  <bruno@clisp.org>
76710
76711         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76712         length is > INT_MAX.
76713         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76714         more.
76715
76716 2004-09-08  Bruno Haible  <bruno@clisp.org>
76717
76718         * lib/stdint_.h: New file, taken from GNU clisp.
76719
76720 2004-09-08  Bruno Haible  <bruno@clisp.org>
76721             Oskar Liljeblad  <oskar@osk.mine.nu>
76722
76723         * modules/stdint: New file.
76724         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76725
76726 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         Import from coreutils.
76729         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76730         strings on unbounded length.  alloca's performance benefits aren't
76731         that important here.
76732         (V_STRDUP): Remove.
76733         (parse_with_separator): New function, with most of the internals
76734         of the old parse_user_spec.  Allow user to omit both user and group,
76735         for compatibility with FreeBSD.
76736         Clone only the user name, not the entire spec.
76737         Do not set *uid, *gid unless entirely successful.
76738         Avoid memory leak in some failing cases.
76739         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76740         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76741         (parse_user_spec): Rewrite to use parse_with_separator.
76742
76743 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * modules/userspec: Don't depend on alloca.
76746
76747 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76750
76751 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76752
76753         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76754         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76755         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76756
76757 2004-08-16  Simon Josefsson  <jas@extundo.com>
76758
76759         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76760         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76761         Add --dry-run for --import.
76762         Let user provided command line parameters override configure.ac
76763         settings.
76764
76765 2004-08-12  Simon Josefsson  <jas@extundo.com>
76766
76767         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76768         as discussed with Paul Eggert in threads rooted at
76769         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76770         and
76771         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76772         Before, the test was empty, and relied on ELIDE_CODE in source
76773         code.)
76774         (gl_PREREQ_GETOPT): New macro.
76775         (gl_GETOPT): Use them.
76776
76777 2004-08-12  Simon Josefsson  <jas@extundo.com>
76778
76779         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76780         * lib/getopt_.h: Renamed from getopt.h.
76781
76782 2004-08-12  Simon Josefsson  <jas@extundo.com>
76783
76784         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76785         Change default library name from libfoo to libgnu.
76786         Now, if you have a configure.ac that says:
76787                 gl_SOURCE_BASE(gl)
76788                 gl_M4_BASE(gl/m4)
76789                 gl_MODULES(error getopt etcetera)
76790                 gl_INIT
76791         you can import all you need by running:
76792                 ../gnulib/gnulib-tool --import
76793
76794         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76795         (Makefile.am): Rewrite, use logic from argz.
76796         (Include): Use <getopt.h> instead of "getopt.h".
76797
76798 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * modules/argp (Files): Add m4/unlocked-io.m4.
76801         (Depends-on): Add extensions.
76802
76803 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76806         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76807         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76808         Check for program_invocation_name, program_invocation_short_name,
76809         flockfile, funlockfile, features.h, _getopt_long_only_r.
76810
76811 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76812
76813         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76814         its complicated substitute.
76815         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76816         and program_invocation_name.
76817         (__argp_basename) [!_LIBC]: Remove; the only use was
76818         replaced by its body.
76819         (__argp_short_program_name): Change condition from
76820         !defined __argp_short_program_name to
76821         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76822         to match argp-namefrob.h.
76823         (__argp_failure): Don't assume strerror_r returns char *.
76824         * lib/argp-parse.c (N_): Define unconditionally.
76825         (argp_default_options): Fill out initializers with 0 to avoid
76826         gcc warnings.
76827
76828 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76829
76830         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76831         getopt1.c.
76832
76833 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         Merge from coreutils.
76836
76837         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76838
76839         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76840         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76841
76842 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76843
76844         Merge from coreutils.
76845
76846         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76847         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76848         for Reliant Unix 5.43.
76849
76850         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76851         (union fooround): Use uintmax_t, not long int.
76852         The rest is a merge from libc:
76853         [defined _LIBC]: Include <shlib-compat.h>.
76854         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76855
76856         * lib/settime.c (settime): Recode to avoid warning with
76857         Sun Forte C 6U2.
76858
76859         * lib/strverscmp.c: Convert to UTF-8.
76860
76861 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76862
76863         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76864         m4/uintmax_t.m4.
76865
76866 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76867
76868         * modules/xalloc-die: New file.
76869         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76870
76871         * modules/md5 (Files): Add m4/uint32_t.m4.
76872         * modules/sha1: Renamed from modules/sha.
76873         (Files):
76874         Rename lib/sha.h to lib/sha1.h.
76875         Rename lib/sha.c to lib/sha1.c.
76876         Rename m4/sha.m4 to m4/sha1.m4.
76877         (lib_SOURCES): Likewise.
76878         (configure.ac): Rename gl_SHA to gl_SHA1.
76879         (Include): sha.h -> sha1.h.
76880
76881 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76884         * m4/sha1.m4: Renamed from sha.m4.
76885         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76886
76887 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * lib/obstack.h (obstack_empty_p):
76890         Don't assume that chunk->contents is suitably aligned.
76891         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76892         Likewise. Problem reported by Benno in
76893         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76894
76895         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76896         readable.  This could be improved further but it'd take some work.
76897
76898 2004-08-08  Simon Josefsson  <jas@extundo.com>
76899
76900         * modules/xgethostname (Depends-on): Remove exit and error (not
76901         used).
76902
76903         * modules/getpass-gnu: Add getpass.h.
76904         (Depends-on): Add stdbool.
76905         * modules/getpass: Add getpass.h.
76906
76907 2004-08-08  Simon Josefsson  <jas@extundo.com>
76908
76909         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76910         Check getpass declaration.
76911
76912 2004-08-08  Simon Josefsson  <jas@extundo.com>
76913
76914         * lib/xgethostname.c: Don't include error.h (not used).
76915
76916         * lib/getpass.h: Add.
76917         * lib/getpass.c: Include getpass.h first.
76918
76919 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * lib/xalloc-die.c: New file.
76922         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76923         All uses removed.
76924         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76925         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76926         xalloc-die.c.
76927         (_, N_, xalloc_die): Move to xalloc-die.c.
76928         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76929         so that we needn't mess with xalloc_msg_memory_exhausted.
76930
76931         * lib/sha1.h: Renamed from sha.h.
76932         (SHA1_H): Renamed from _SHA_H.
76933         (sha1_ctx): Renamed from sha_ctx.
76934         (sha1_init_ctx): Renamed from sha_init_ctx.
76935         (sha1_process_block): Renamed from sha_process_block.
76936         (sha1_process_bytes): Renamed from sha_process_bytes.
76937         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76938         (sha1_read_ctx): Renamed from sha_read_ctx.
76939         (sha1_stream): Renamed from sha_stream.
76940         (sha1_buffer): Renamed from sha_buffer.
76941         * lib/sha1.c: Likewise; renamed from sha.c.
76942         Do not include <sys/types.h>.
76943         Include <stddef.h> rather than <stdlib.h>.
76944
76945 2004-08-08  Bruno Haible  <bruno@clisp.org>
76946
76947         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76948         FILESYSTEM_PREFIX_LEN.
76949         * lib/progreloc.c: Likewise.
76950         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76951
76952 2004-08-06  Simon Josefsson  <jas@extundo.com>
76953
76954         * modules/progname (Depends-on): Don't depend on stdbool.
76955
76956 2004-08-06  Simon Josefsson  <jas@extundo.com>
76957
76958         * modules/getsubopt: New file.
76959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76960         getsubopt.
76961
76962 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         More merge from coreutils.
76965
76966         * m4/utimens.m4, m4/utimecmp.m4: New files.
76967         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76968         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76969         prereq.m4, sha.m4: Import changes from coreutils.
76970
76971 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         More merge from coreutils.
76974         * modules/raise, modules/readtokens0, modules/utimens:
76975         * modules/utimecmp, module/xnanosleep: New files.
76976         * modules/strftime: Add lib/strftime.h.
76977         Change include from <time.h> to "strftime.h".
76978         * modules/yesno: Add lib/yesno.h.
76979         * modules/backupfile: Remove lib/addext.c.
76980         * modules/euidaccess: Add stat-macros.h.
76981         * modules/canonicalize, modules/euidaccess,
76982         modules/filemode, modules/lchown, modules/makepath,
76983         modules/rmdir, modules/stat: Likewise.
76984
76985 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76986
76987         Merge from tar.
76988         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76989         SIZE_MAX is a valid preprocessor constant.
76990         (__argp_basename): Change from "#ifndef _LIBC"
76991         to "#ifndef __argp_short_program_name", so that
76992         we don't compile these functions for tar.
76993
76994         More merges from coreutils.
76995         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76996         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76997         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76998         * lib/addext.c: Remove; no longer needed.
76999         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77000         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77001         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77002         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77003         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77004         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77005         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77006         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77007         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77008         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77009         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77010         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77011         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77012         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77013         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77014         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77015         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77016         Import changes from coreutils.
77017
77018 2004-08-05  Simon Josefsson  <jas@extundo.com>
77019
77020         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77021
77022 2004-08-05  Simon Josefsson  <jas@extundo.com>
77023
77024         * m4/getsubopt.m4: New file.
77025
77026 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         Merge from coreutils.
77029
77030         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77031         * m4/getcwd-path-max.m4: New files.
77032
77033         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77034         FILESYSTEM_PREFIX_LEN ->
77035         FILE_SYSTEM_PREFIX_LEN.
77036         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77037         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77038         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77039         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77040
77041         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77042         prerequisite modules now handle the DOS stuff.
77043         Don't check for unistd.h.
77044
77045 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         Merge from coreutils.
77048
77049         * lib/.gdb-history: Remove; this doesn't belong here.
77050
77051         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77052         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77053         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77054         * lib/getcwd.c: New files.
77055
77056         * lib/dirname.h: Include <stdbool.h>.
77057         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77058         for consistency with POSIX terminology.  All uses changed.
77059         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77060         (strip_trailing_slashes): Use bool for booleans.
77061         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77062
77063         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77064         sometimes returns a positive errno value even when it succeeds.
77065         (print_errno_message) [!LIBC]: Fall back on strerror if
77066         __strerror_r fails.
77067
77068         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77069         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77070         (longest_relative_suffix): New function.
77071         (path_concat): Use it.  Assume first argument is not NULL.
77072         Port to DOS.  Omit redundant separators.
77073         Report an error instead of returning NULL.
77074         Use mempcpy instead of memcpy.
77075         (xpath_concat): Remove: not declared or used.
77076
77077         * lib/same.h: Include <stdbool.h>
77078         (same_name): Return bool, not int.
77079         * lib/same.c (same_name): Likewise.
77080         (errno): Don't declare; we assume C89 or better now.
77081
77082         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77083         if not already defined.
77084
77085         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77086         * lib/dup-safer.c (errno): Likewise.
77087
77088 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77089
77090         Merge from coreutils.
77091         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77092         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77093         * modules/path-concat: Don't depend on strdup.
77094
77095 2004-08-03  Simon Josefsson  <jas@extundo.com>
77096
77097         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77098         * lib/progname.h: Don't include stdbool.h.
77099
77100 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77101
77102         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77103         * MODULES.html.sh (func_all_modules): Remove fatal.
77104
77105 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77106
77107         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77108
77109 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77112         working.
77113
77114 2004-08-02  Simon Josefsson  <jas@extundo.com>
77115
77116         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77117         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77118         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77119
77120 2004-08-01  Simon Josefsson  <jas@extundo.com>
77121
77122         * lib/xgetdomainname.c: Include stdlib.h, for free().
77123
77124 2004-07-19  Bruno Haible  <bruno@clisp.org>
77125
77126         * MODULES.html.sh (func_all_modules): Add dummy.
77127
77128 2004-07-16  Simon Josefsson  <jas@extundo.com>
77129
77130         * modules/dummy: New file.
77131
77132 2004-07-16  Simon Josefsson  <jas@extundo.com>
77133
77134         * lib/dummy.c: New file.
77135
77136 2004-07-16  Bruno Haible  <bruno@clisp.org>
77137
77138         * lib/backupfile.h: Add extern "C" for C++.
77139         * lib/closeout.h: Likewise.
77140         * lib/copy-file.h: Likewise.
77141         * lib/findprog.h: Likewise.
77142         * lib/full-write.h: Likewise.
77143         * lib/pathname.h: Likewise.
77144         * lib/progname.h: Likewise.
77145         * lib/stpcpy.h: Likewise.
77146         * lib/stpncpy.h: Likewise.
77147         * lib/strcase.h: Likewise.
77148         * lib/strstr.h: Likewise.
77149         * lib/xalloc.h: Likewise.
77150
77151         * lib/mbswidth.h: Add extern "C" for C++.
77152         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77153
77154 2004-07-13  Robert Millan  <robertmh@gnu.org>
77155
77156         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77157
77158 2004-07-09  Simon Josefsson  <jas@extundo.com>
77159
77160         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77161         failed without this.)
77162
77163 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         * modules/chown (Files): Add lib/fchown-stub.c, since
77166         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77167
77168 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77169
77170         * lib/fchown-stub.c: New file.
77171
77172 2004-06-24  Jim Meyering  <jim@meyering.net>
77173
77174         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77175
77176 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         * modules/argz: Omit "#include".
77179
77180         * MODULES.html.sh (func_all_modules): Add calloc, to match
77181         2004-06-01 addition of calloc module.
77182
77183 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77184
77185         * m4/argz.m4: New file, which is autoupdated from libtool.
77186
77187 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77190         libtool.
77191
77192 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77193
77194         * config/srclist-update: Don't insist on "USA." before the
77195         close-comment, as libtool omits the period and puts the */ on a
77196         separate line.
77197         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77198         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77199
77200 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77201
77202         * modules/argz: New file.
77203         * MODULES.html.sh (func_all_modules): Add argz.
77204
77205 2004-06-12  Jim Meyering  <jim@meyering.net>
77206         and  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * modules/hash (Files): Add lib/xalloc.h.
77209         * modules/pipe (Depends-on): Add wait-process.
77210         * modules/stat (Depends-on): Add xalloc.
77211         * modules/userspec (Files): Add lib/userspec.h.
77212         * modules/xstrto
77213
77214         Upgrade from gettext-0.13.
77215         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77216         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77217         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77218
77219 2004-06-10  Jim Meyering  <jim@meyering.net>
77220
77221         * lib/calloc.c: New file.
77222
77223 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77224
77225         * lib/getdate.y (yylex): Allow space between sign and number.
77226         Problem reported by Dan Jacobson.
77227
77228 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77229
77230         Merge from coreutils CVS.
77231
77232         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77233         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77234         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77235         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77236         xstrtol.m4: Fix copyright date and/or serial number.
77237
77238         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77239         See if we need an fchown replacement.
77240         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77241         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77242         and use the replacement function if we detect either defect.
77243
77244         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77245         gl_UTIMECMP.
77246
77247 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77248         and  Jim Meyering  <jim@meyering.net>
77249
77250         Merge from coreutils CVS.
77251
77252         * lib/stat-macros.h: New file, with contents from file-type.h
77253         and coreutils' system.h.
77254         * lib/file-type.c: Include "stat-macros.h".
77255         * lib/file-type.h (file_type): Move all macro definitions to new file,
77256         stat-macros.h.
77257
77258         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77259         Wrap old code with this conditional.
77260         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77261         function that does not dereference symlinks.
77262         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77263
77264         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77265         dependency problems.
77266         (xreadlink): Accept new arg SIZE, for efficiency.
77267         All decls and uses changed.
77268         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77269
77270         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77271         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77272
77273         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77274         sysexits.h.
77275
77276 2004-06-01  Jim Meyering  <jim@meyering.net>
77277
77278         * m4/calloc.m4: New file.
77279
77280 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77283         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77284         Also, fix a typo in a diagnostic.
77285
77286 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77287
77288         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77289         or AC_FUNC_REALLOC.
77290
77291 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77292
77293         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77294         macros to be defined.
77295         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77296         the allocator returns NULL because the requested size is zero.
77297
77298 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77299
77300         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77301         var.  Add comment explaining why libc still defines it.  This
77302         merges the following patch from glibc:
77303         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77304
77305 2004-05-20  Andreas Schwab  <schwab@suse.de>
77306
77307         * m4/free.m4: Replace free if it not known to work, not the other
77308         way round.
77309
77310 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77313         present in glibc since revision 1.1 of this file.
77314         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77315         obstack_alignment_mask, obstack_alloc, obstack_base,
77316         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77317         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77318         obstack_grow0, obstack_init, obstack_int_grow,
77319         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77320         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77321         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77322         nonexistent functions.
77323
77324 2004-05-18  Karl Berry  <karl@gnu.org>
77325
77326         * config/srclist.txt: break link for vasnprintf.c.
77327
77328 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77329
77330         Port obstack to the AS/400, where pointers are 16 bytes wide and
77331         you cannot cast an integer to a valid pointer.  This patch is
77332         currently waiting to be integrated into glibc; see
77333         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77334
77335         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77336         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77337         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77338         (struct obstack): temp member is now a union of a pointer and
77339         an integer, instead of an integer.  All integer uses changed.
77340         This does not affect the physical layout of struct obstack,
77341         except on hosts (like the AS/400) where the size or alignment of
77342         void * is greater than that of ptrdiff_t.
77343         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77344         __STDC__)]: Store temporary in pointer member of union, not
77345         integer member.
77346         * lib/obstack.c: Include <stddef.h>, for offsetof.
77347         (struct fooalign): Remove; it doesn't need a name.
77348         (union fooround): Change double to long double, and add void *.
77349         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77350         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77351         not a macro.  Hence the values are always int; so remove all
77352         casts-to-int in uses.
77353
77354 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77357         we can get this patch merged into glibc.
77358
77359 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77360             Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * m4/argp: Depend on alloca.
77363
77364 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77365             Paul Eggert  <eggert@cs.ucla.edu>
77366
77367         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77368         freecoding.
77369
77370 2004-05-17  Bruno Haible  <bruno@clisp.org>
77371
77372         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77373         precision that consists of a '.' followed by an empty digit string.
77374         Patch by Tor Lillqvist <tml@iki.fi>.
77375
77376 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77377
77378         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77379         for backward compatibility with older code.  We need our own
77380         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77381         it under some other name, and our alloca.h will define it.
77382
77383 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77384             Derek Price  <derek@ximbiot.com>
77385
77386         * lib/alloca.c: Include <alloca.h>, to get our interface.
77387         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77388         include <alloca.h> first.  Use C89 prototype for alloca; this
77389         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77390         Use #elif for simplicity, since we can assume C89 now.
77391         Don't try to source the system alloca.h since it will not be found
77392         and to prevent recursively including its replacement.
77393         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77394         * lib/regex.c: Likewise.
77395
77396 2004-05-16  Derek Price  <derek@ximbiot.com>
77397             Paul Eggert  <eggert@cs.ucla.edu>
77398
77399         getline cleanup.  This changes the getndelim2 API: both order of
77400         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77401         no delimiter).
77402
77403         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77404         interface does that.
77405         (getline): Always use getdelim, so that we don't have two
77406         copies of this code.
77407         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77408         if available.
77409         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77410         (GETNDELIM2_MAXIMUM): New macro.
77411         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77412         instead of the old practice of delim2==0.  All callers changed.
77413         Return -1 on overflow, instead of returning junk.
77414         Do not set *linesize unless allocation succeeds.
77415         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77416         that we include sys/types.h.
77417         * lib/getnline.h: Likewise.
77418         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77419         (getndelim2): Reorder arguments.
77420         * lib/getnline.c (getnline, getndelim):
77421         Don't discard the NMAX argument.
77422         (getnline): Invoke getndelim, to avoid code duplication.
77423         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77424         of (size_t) -1 by callers of the getnline family.
77425
77426 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77427
77428         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77429         Check for gettimeofday.
77430         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77431         Check for settimeofday, stime.
77432
77433 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * lib/nanosleep.c (suspended): Change its type from int to
77436         sig_atomic_t volatile.
77437         (first_call): Make it private to rpl_nanosleep, and have it
77438         be zero initially as that's a bit faster.
77439         (my_usleep): Round up fractional times instead of truncating them,
77440         as this is the usual meaning for 'sleep'.
77441
77442         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77443         doesn't work.
77444         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77445         (ENOSYS): Define if not defined.
77446         (settime): Fall back on stime if it exists and settimeofday fails.
77447         But don't bother with fallbacks if a method fails with errno == EPERM.
77448
77449 2004-05-11  Jim Meyering  <jim@meyering.net>
77450
77451         Prior to this change, the save_cwd caller required read access to the
77452         current directory on most systems (ones with the fchdir function).
77453
77454         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77455         fails, try write-only, and finally, resort to using xgetcwd.
77456
77457 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * lib/obstack.c, obstack.h: Import changes from libc.
77460
77461 2004-04-28  Bruno Haible  <bruno@clisp.org>
77462
77463         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77464         also implicitly appends .exe to executables.
77465         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77466         accepts Windows pathnames.
77467         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77468         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77469         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77470         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77471         Reported by Derek Robert Price <derek@ximbiot.com>.
77472
77473 2004-04-21  Karl Berry  <karl@gnu.org>
77474
77475         * config/srclist.txt (localcharset.c): break sync.
77476
77477 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77478
77479         * m4/host-os.m4: Add a copyright notice.
77480
77481 2004-04-20  Jim Meyering  <jim@meyering.net>
77482
77483         Change UTILS_ to gl_ in AC_DEFINE'd names.
77484         Change utils_- and jm_-prefixed variables, too.
77485         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77486         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77488
77489         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77490         Don't emit trailing blanks.
77491         Also rename jm_-prefixed variables to have gl_ prefix.
77492
77493         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77494         Also rename jm_-prefixed variables to have gl_ prefix.
77495
77496         * m4/jm-macros.m4: Reflect the renamings.
77497         * m4/prereq.m4: Likewise.
77498
77499 2004-04-20  Jim Meyering  <jim@meyering.net>
77500
77501         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77502         memory.
77503
77504 2004-04-20  Jim Meyering  <jim@meyering.net>
77505             Bruno Haible  <bruno@clisp.org>
77506
77507         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77508         memory when realloc fails.
77509
77510 2004-04-19  Jim Meyering  <jim@meyering.net>
77511
77512         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77513         now that readutmp.c may call `free (0)'.
77514
77515 2004-04-19  Bruno Haible  <bruno@clisp.org>
77516
77517         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77518         * m4/inttypes_h.m4: Likewise.
77519         * m4/stdint_h.m4: Likewise.
77520         * m4/intmax_t.m4: Likewise.
77521         * m4/uintmax_t.m4: Likewise.
77522
77523 2004-04-18  Jim Meyering  <jim@meyering.net>
77524
77525         * m4/prereq.m4: Don't forbid jm_ prefix.
77526
77527         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77528         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77529         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77530         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77531         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77532         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77533         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77534         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77535         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77536         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77537         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77538         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77539         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77540         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77541         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77542         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77543         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77544         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77545         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77546
77547 2004-04-18  Jim Meyering  <jim@meyering.net>
77548
77549         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77550         failure, don't leak memory and do call END_UTMP_ENT.
77551
77552 2004-04-16  Jim Meyering  <jim@meyering.net>
77553
77554         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77555         coreutils' stat program.
77556         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77557
77558 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77559
77560         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77561         C89.
77562         (CHAR_BIT): Remove, since we assume C89.
77563         Include <stdint.h> if available, as per current Autoconf CVS advice.
77564
77565 2004-03-31  Jim Meyering  <jim@meyering.net>
77566
77567         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77568         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77569         * m4/xalloc.m4: Likewise.
77570
77571 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77572
77573         Merge from coreutils.
77574
77575         * m4/inttostr.m4: New file.
77576         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77577         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77578         Require gl_CLOCK_TIME.
77579         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77580
77581 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77582
77583         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77584         not bool, to be more consistent with Unix conventions.
77585         Suggested by Bruno Haible.
77586
77587         Merge from coreutils.
77588
77589         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77590         * lib/umaxtostr.c: New files.
77591
77592         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77593         the usual <time.h> dance.
77594         (get_date): Change signature to support fractional time stamps.
77595         All callers changed.
77596         * lib/getdate.y: Include "getdate.h" first, as we can now
77597         assume C89 and don't need to worry about 'const'.
77598         Similarly, include "unlocked-io.h" near start, not in middle.
77599         Include <limits.h>.
77600         (textint.value): Use long int rather than int.
77601         (textint.digits): Use size_t rather than int.
77602         (BILLION, LOG10_BILLION): New constants.
77603         (parser_control): New member rel_ns.  Members day_ordinal,
77604         time_zone, month, day, hour, minutes, rel_year, rel_month,
77605         rel_day, rel_hour, rel_minutes, rel_seconds
77606         are now long int, not int.  Member seconds is now struct timespec,
77607         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77608         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77609         not int.
77610         (%union.intval): Now long int, not int.
77611         New member timespec.
77612         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77613         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77614         (spec): Now is a timespec or an item list.
77615         (timespec, items): New nonterminals.
77616         (time, rel, relunit, number, get_date):
77617         Add support for fractional seconds.
77618         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77619         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77620         (to_hour): First arg is now long int, not int.
77621         (to_year): Returns long int, not int.
77622         Don't treat year -70 like 70.
77623         (tm_diff): Returns long int, not int.
77624         (lookup_word): Use bool instead of int when appropriate.
77625         (yylex): Use size_t for count, not int.
77626         Detect overflow when parsing large integer constants.
77627         Add support for fractions.
77628         (get_date): Make pointers 'const' if possible.
77629         Use more-portable code to detect integer overflow.
77630         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77631         Don't use ctime; it's not reliable if the year has >4 digits.
77632
77633         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77634         This is for compatibility with BSD.
77635
77636         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77637         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77638         From coreutils' system.h.
77639
77640         * lib/userspec.c: Don't include "posixver.h".
77641         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77642         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77643         compatible extension.  Simplify code by removing a boolean int
77644         that was always nonzero if a string was nonnull.
77645
77646 2004-03-30  Jim Meyering  <jim@meyering.net>
77647
77648         Merge from coreutils.
77649
77650         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77651         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77652         on some systems one must include <grp.h> before it.
77653         Reported by Christian Krackowizer.
77654
77655 2004-03-30  Jim Meyering  <jim@meyering.net>
77656
77657         Merge from coreutils.
77658
77659         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77660
77661         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77662         an empty input stream.
77663
77664         * lib/readtokens.c: Include <stdbool.h>.
77665         (readtoken): Use `size_t' rather than int/long.
77666         All callers adjusted.
77667         Use `bool' rather than `int' where appropriate.
77668         Use memset rather than an explicit loop.
77669         Use x2nrealloc rather than xrealloc.
77670         Allow the use of `\0' as a delimiter.
77671         (readtokens): Likewise.
77672         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77673
77674 2004-03-30  Jim Meyering  <jim@meyering.net>
77675
77676         * m4/realloc.m4: Remove file, since now it does no more than
77677         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77678         the `configure.ac' section of module/realloc.
77679         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77680
77681 2004-03-30  Bruno Haible  <bruno@clisp.org>
77682
77683         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77684         nonnull.
77685
77686 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77687
77688         Merge changes to getloadavg.c from coreutils and Emacs.
77689
77690         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77691         Define to an expression, not to the empty string.
77692         Include cloexec.h and xalloc.h.
77693         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77694         Use set_cloexec_flag rather than rolling our own.
77695         * lib/cloexec.c, lib/cloexec.h: New files.
77696
77697 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77698
77699         * m4/cloexec.m4: New file.
77700
77701 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77702
77703         * lib/getopt.h: Sync with libc CVS.
77704
77705 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77706             Bruno Haible  <bruno@clisp.org>
77707
77708         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77709         mbswidth.
77710
77711 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77712             Bruno Haible  <bruno@clisp.org>
77713
77714         * lib/mbswidth.h: Include <wchar.h> only if
77715         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77716         <wchar.h>.
77717         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77718
77719 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77720
77721         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77722         Sync with libc CVS.
77723         * lib/getopt_int.h: New file, also synced from libc.
77724
77725 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77726
77727         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77728         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77729         Bring back getopt.c, getopt.h, getopt1.c.
77730
77731 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77732
77733         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77734         All uses changed.  Check for sa_sigaction member; this fixes
77735         a bug first reported by Jason Andrade in
77736         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77737
77738 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77739
77740         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77741         '#if' expressions.  Unlike the code it replaces, it does not
77742         depend on (defined _SC_PAGESIZE).  However, it does depend on
77743         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77744         first reported by Jason Andrade in
77745         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77746
77747 2004-02-25  Simon Josefsson  <jas@extundo.com>
77748
77749         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77750
77751 2004-02-25  Simon Josefsson  <jas@extundo.com>
77752
77753         * lib/strdup.h: New file.
77754         * lib/strdup.c: Include it.
77755         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77756         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77757
77758 2004-02-23  Karl Berry  <karl@gnu.org>
77759
77760         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77761         (from fencepost.gnu.org:/gd/gnuorg).
77762
77763 2004-02-23  Karl Berry  <karl@gnu.org>
77764
77765         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77766         * config/srclist.txt: add maintain/standards documents.
77767
77768 2004-02-18  Bruno Haible  <bruno@clisp.org>
77769
77770         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77771         Reported by Derek Robert Price <derek@ximbiot.com>.
77772
77773 2004-02-16  Karl Berry  <karl@gnu.org>
77774
77775         * config/mkinstalldirs, install-sh: update from automake.
77776
77777 2004-02-06  Karl Berry  <karl@gnu.org>
77778
77779         * m4/po.m4: update from gettext 0.14.1.
77780
77781 2004-02-06  Karl Berry  <karl@gnu.org>
77782
77783         * lib/config.charset: update from gettext 0.14.1.
77784
77785 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77786
77787         Add comments and code, prompted by suggestions from Bruno Haible
77788         for sh-quote.
77789         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77790         describing the enum quoting_style values.
77791         * lib/quotearg.c (quotearg_alloc): New function.
77792         (quotearg_buffer_restyled): Treat lone { and } as special.
77793         Treat = as special.  Work around bug with older shells
77794         that "see" a '\' that is really the 2nd byte of a multibyte char.
77795         Quote empty string with shell_quoting_style.
77796
77797 2004-02-03  Bruno Haible  <bruno@clisp.org>
77798
77799         * m4/pipe.m4: New file, from GNU gettext.
77800
77801 2004-02-03  Bruno Haible  <bruno@clisp.org>
77802
77803         * lib/pipe.h: New file, from GNU gettext.
77804         * lib/pipe.c: New file, from GNU gettext.
77805
77806 2004-01-27  Bruno Haible  <bruno@clisp.org>
77807
77808         * m4/execute.m4: New file, from GNU gettext.
77809
77810 2004-01-27  Bruno Haible  <bruno@clisp.org>
77811
77812         * lib/execute.h: New file, from GNU gettext.
77813         * lib/execute.c: New file, from GNU gettext.
77814         * lib/w32spawn.h: New file, from GNU gettext.
77815
77816 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77817
77818         Merge from diffutils.
77819
77820         * lib/file-type.c (file_type): Add typed memory objects.
77821         * lib/file-type.h (S_TYPEISTMO): New macro.
77822
77823         * lib/c-stack.h (c_stack_action): Remove argv argument.
77824         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77825         (die): Don't calculate message unless segv_action returns.
77826         (get_stack_location, min_address_from_argv, max_address_from_argv,
77827         volatile stack_base, volatile_stack_size): Remove.
77828         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77829         that every segmentation violation is a stack overflow.  (Ouch!)
77830         See Debian bug 136249 (still outstanding) for more info about why
77831         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77832
77833 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77834
77835         Exit-status fix from coreutils.
77836
77837         Use exit_failure consistently in place of EXIT_FAILURE,
77838         so that program exit statuses are consistent on failure.
77839
77840         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77841         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77842         * lib/argmatch.h: Comment fix to match the above.
77843         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77844         Now a macro referring to exit_failure, instead of a separate
77845         variable.  Include "exitfail.h" to get it.
77846         * lib/xstrtol.h: Include "exitfail.h".
77847         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77848
77849         * lib/long-options.c (parse_long_options): Use prototype
77850         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77851         for clarity.
77852
77853 2004-01-21  Jim Meyering  <jim@meyering.net>
77854
77855         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77856         so as not to conflict with a different-sized __mktime_internal
77857         function in GNU libc.
77858         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77859         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77860
77861 2004-01-20  Karl Berry  <karl@gnu.org>
77862
77863         * config/config.guess: update from config.
77864
77865         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77866
77867 2004-01-20  Bruno Haible  <bruno@clisp.org>
77868
77869         Safer stack allocation.
77870         * lib/setenv.c: Include allocsa.h.
77871         (alloca): Remove fallback definition.
77872         (freea): Remove macro.
77873         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77874         instead of freea.
77875
77876 2004-01-20  Bruno Haible  <bruno@clisp.org>
77877
77878         * m4/eealloc.m4: New file, from GNU gettext.
77879
77880 2004-01-20  Bruno Haible  <bruno@clisp.org>
77881
77882         * m4/allocsa.m4: New file, from GNU gettext.
77883
77884 2004-01-20  Bruno Haible  <bruno@clisp.org>
77885
77886         * lib/xallocsa.h: New file, from GNU gettext.
77887         * lib/xallocsa.c: New file, from GNU gettext.
77888
77889 2004-01-20  Bruno Haible  <bruno@clisp.org>
77890
77891         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77892
77893 2004-01-20  Bruno Haible  <bruno@clisp.org>
77894
77895         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77896         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77897         specially.
77898
77899 2004-01-20  Bruno Haible  <bruno@clisp.org>
77900
77901         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77902         patch.
77903
77904 2004-01-20  Bruno Haible  <bruno@clisp.org>
77905
77906         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77907
77908 2004-01-20  Bruno Haible  <bruno@clisp.org>
77909
77910         * lib/eealloc.h: New file.
77911
77912 2004-01-20  Bruno Haible  <bruno@clisp.org>
77913
77914         * lib/binary-io.h: Avoid warnings on Cygwin.
77915
77916 2004-01-20  Bruno Haible  <bruno@clisp.org>
77917
77918         * lib/allocsa.h: New file, from GNU gettext.
77919         * lib/allocsa.c: New file, from GNU gettext.
77920
77921 2004-01-18  Karl Berry  <karl@gnu.org>
77922
77923         * doc/gpl.texi, doc/lgpl.texi: new files.
77924
77925 2004-01-18  Karl Berry  <karl@gnu.org>
77926
77927         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77928         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77929
77930 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77931
77932         Merge from coreutils.
77933
77934         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77935         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77936         (gl_DEFAULT_POSIX2_VERSION): Move
77937         the documentation from 'configure' into 'config.hin',
77938         so that 'configure --help' isn't burdened by it and
77939         we don't have to worry about its formatting there.
77940         Reword the documentation so that it's more succinct
77941         and can be run together into a single paragraph.
77942         * m4/same.m4 (gl_SAME): Check for pathconf.
77943
77944 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77945
77946         Merge from coreutils.
77947
77948         * lib/posixver.c: Include posixver.h.
77949
77950         * lib/same.c: Include <stdbool.h>, <limits.h>.
77951         (_POSIX_NAME_MAX): Define if not defined.
77952         (MIN): New macro.
77953         (same_name): If file names are silently truncated, report
77954         that the file names are the same if they are the same after
77955         the silent truncation.
77956
77957         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77958         conversion function.
77959         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77960         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77961         longer needed.
77962
77963 2004-01-15  Jim Meyering  <jim@meyering.net>
77964
77965         Merge from coreutils.
77966
77967         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77968         if no library is required.
77969         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77970         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77971         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77972         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77973         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77974         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77975         value, $ac_cv_search_crypt, if it's "none required".
77976         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77977         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77978         not gl_FUNC_GETLOADAVG.
77979         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77980         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77981
77982 2004-01-15  Jim Meyering  <jim@meyering.net>
77983
77984         Merge from coreutils.
77985
77986         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77987         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77988         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77989
77990         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77991         optional configure-time default.
77992
77993         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77994
77995         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77996
77997 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77998
77999         Merge from coreutils.
78000
78001         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78002         value, $ac_cv_search_nanosleep, if it's "none required".
78003
78004 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78005
78006         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78007         with like-named macro in fnmatch.c.
78008         (EXT): Use an internal constant instead.
78009
78010         Merge fnmatch patches from glibc.
78011         * lib/fnmatch.c (mbsinit): Remove define.
78012         Add libc_hidden_ver (__fnmatch, fnmatch).
78013         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78014         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78015
78016 2004-01-14  Karl Berry  <karl@gnu.org>
78017
78018         * config/install-sh: update from automake.
78019
78020 2004-01-13  Karl Berry  <karl@gnu.org>
78021
78022         * config/install-sh: update from automake.
78023
78024 2004-01-09  Karl Berry  <karl@gnu.org>
78025
78026         * config/install-sh: update from automake.
78027
78028 2004-01-05  Karl Berry  <karl@gnu.org>
78029
78030         * config/config.{sub,guess}: update from config.
78031
78032 2003-12-31  Karl Berry  <karl@gnu.org>
78033
78034         * config/depcomp: update from automake.
78035
78036 2003-12-14  Karl Berry  <karl@gnu.org>
78037
78038         * lib/config.charset: update from gettext-runtime.
78039
78040 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78041
78042         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78043         Bug reported by Alfred M. Szmidt.
78044
78045 2003-12-03  Bruno Haible  <bruno@clisp.org>
78046
78047         * m4/gettext.m4: Upgrade from gettext-0.13.
78048         * m4/po.m4: Upgrade from gettext-0.13.
78049         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78050         * m4/intmax.m4: New file, from gettext-0.13.
78051         * m4/printf-posix.m4: New file, from gettext-0.13.
78052
78053 2003-11-29  Karl Berry  <karl@gnu.org>
78054
78055         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78056
78057 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78058             Bruno Haible  <bruno@clisp.org>
78059
78060         * lib/printf-parse.h: Don't include sys/types.h.
78061         (ARG_NONE): New macro.
78062         (char_directive): Change type of *arg_index fields to size_t.
78063         * lib/printf-parse.c: Don't include sys/types.h.
78064         (SSIZE_MAX): Remove macro.
78065         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78066         Remove unnecessary overflow check.
78067         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78068         fields.
78069
78070 2003-11-25  Bruno Haible  <bruno@clisp.org>
78071
78072         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78073
78074 2003-11-25  Bruno Haible  <bruno@clisp.org>
78075
78076         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78077         gt_TYPE_SSIZE_T.
78078
78079 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78080
78081         * modules/alloca: Remove dependency on xalloc.
78082
78083 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78084
78085         * lib/alloca.c: Remove dependency on xalloc module.
78086         (xalloc_die): Remove.
78087         (memory_full) [!defined emacs]: New macro.
78088         [!defined emacs]: Don't include xalloc.h.
78089         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78090         address arithmetic overflows.  Change datatypes a bit to avoid
78091         unnecessary casts.
78092
78093 2003-11-22  Jim Meyering  <jim@meyering.net>
78094
78095         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78096         s/size/size_t/.
78097
78098 2003-11-21  Karl Berry  <karl@gnu.org>
78099
78100         * config/config.{sub,guess}: update from config.
78101
78102 2003-11-18  Karl Berry  <karl@gnu.org>
78103
78104         * config/config.{sub,guess}: update from config.
78105
78106         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78107
78108 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78109
78110         * README: Mention that S+T cannot overflow if S is the size of
78111         an existing object and T is sufficiently small.
78112
78113 2003-11-17  Jim Meyering  <jim@meyering.net>
78114
78115         On systems without utime and without a utimes function capable of
78116         dealing with a NULL struct utimbuf* argument, this utime replacement
78117         could -- in unusual circumstances -- leak a file descriptor.
78118         * lib/utime.c: Include <unistd.h> and <errno.h>.
78119         (utime_null): Be sure to close `fd' and to preserve errno.
78120         Reported by Geoff Collyer via Arnold Robbins.
78121
78122 2003-11-17  Bruno Haible  <bruno@clisp.org>
78123
78124         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78125         (Depends-on): Add xsize.
78126
78127 2003-11-17  Bruno Haible  <bruno@clisp.org>
78128
78129         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78130
78131 2003-11-17  Bruno Haible  <bruno@clisp.org>
78132
78133         * lib/vasnprintf.c (alloca): Remove fallback definition.
78134         (freea): Remove definition.
78135         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78136         Reported by Paul Eggert.
78137
78138 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78139             Bruno Haible  <bruno@clisp.org>
78140
78141         Protect against address arithmetic overflow.
78142         * lib/printf-args.h: Include stddef.h.
78143         (arguments): Change type of field 'count' to size_t.
78144         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78145         'unsigned int' where appropriate.
78146         * lib/printf-parse.h: Include sys/types.h.
78147         (char_directive): Change type of *arg_index fields to ssize_t.
78148         (char_directives): Change type of fields 'count', max_*_length to
78149         size_t.
78150         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78151         (SSIZE_MAX): Define fallback value.
78152         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78153         instead of 'int' where appropriate. Check a_allocated, d_allocated
78154         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78155         * lib/vasnprintf.c: Include xsize.h.
78156         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78157         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78158         overflow. Avoid wraparound when converting a width or precision from
78159         decimal to binary.
78160
78161 2003-11-16  Bruno Haible  <bruno@clisp.org>
78162
78163         Update from GNU gettext.
78164         * lib/printf-parse.c: Generalize to it can be compiled for wide
78165         strings.
78166         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78167         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78168         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78169         SNPRINTF): New macros.
78170         Don't include <alloca.h> if the file is used inside libintl.
78171         (local_wcslen): New function, for Solaris 2.5.1.
78172         (VASNPRINTF): Use it instead of wcslen.
78173
78174 2003-11-16  Bruno Haible  <bruno@clisp.org>
78175
78176         * lib/xsize.h (xmax): New function.
78177         (xsum, xsum3, xsum4): Declare as "pure" functions.
78178
78179 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78180
78181         * modules/xalloc (Files): Undo latest change, since xalloc.h
78182         no longer needs SIZE_MAX or PTRDIFF_MAX.
78183
78184 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78185
78186         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78187         gl_PTRDIFF_MAX.
78188
78189 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78190
78191         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78192         "return", to pacify some unknown compiler.  Problem reported
78193         by Joerg Schilling.
78194
78195 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78196
78197         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78198         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78199         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78200         heuristic is just as accurate as far as we know, and it removes a
78201         dependency on size_max.m4 and ptrdiff_max.m4.
78202
78203 2003-11-11  Bruno Haible  <bruno@clisp.org>
78204
78205         * modules/xsize (Files): Add m4/size_max.m4.
78206         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78207
78208 2003-11-11  Bruno Haible  <bruno@clisp.org>
78209
78210         * m4/size_max.m4: New file.
78211         * m4/ptrdiff_max.m4: New file.
78212         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78213         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78214         (gl_XALLOC): Invoke it.
78215
78216 2003-11-11  Bruno Haible  <bruno@clisp.org>
78217
78218         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78219         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78220         defined.
78221
78222 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78223
78224         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78225         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78226         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78227         From Bruno Haible.
78228         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78229         not (size_t) -1, since it's defined here.
78230
78231 2003-11-09  Karl Berry  <karl@gnu.org>
78232
78233         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78234
78235 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78236
78237         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78238         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78239         Reject sizes of exactly SIZE_MAX bytes.
78240         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78241         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78242
78243 2003-11-05  Bruno Haible  <bruno@clisp.org>
78244
78245         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78246         SIZE_MAX defined in <limits.h> on Solaris.
78247
78248 2003-11-04  Jim Meyering  <jim@meyering.net>
78249
78250         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78251         variable names, rather than @VAR@.
78252         * modules/poll: Likewise.
78253
78254 2003-11-04  Bruno Haible  <bruno@clisp.org>
78255
78256         * modules/xsize: New file.
78257         * modules/linebreak: Depend on xsize.
78258         * MODULES.html.sh (func_all_modules): Add xsize.
78259
78260 2003-11-04  Bruno Haible  <bruno@clisp.org>
78261
78262         * m4/xsize.m4: New file.
78263
78264 2003-11-04  Bruno Haible  <bruno@clisp.org>
78265
78266         * lib/xsize.h: New file.
78267         * lib/linebreak.c: Include xsize.h.
78268         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78269         argument for overflow.
78270         Suggested by Paul Eggert.
78271
78272 2003-11-03  Karl Berry  <karl@gnu.org>
78273
78274         * config/config.{guess,sub}: update from config.
78275
78276 2003-11-03  Jim Meyering  <jim@meyering.net>
78277
78278         * modules/userspec (lib_SOURCES): Add userspec.h.
78279         (Include): Add "userspec.h".
78280         Improve description.
78281
78282 2003-11-03  Jim Meyering  <jim@meyering.net>
78283
78284         * lib/userspec.c: Include "userspec.h".
78285         * lib/userspec.h: New file.
78286
78287 2003-11-03  Bruno Haible  <bruno@clisp.org>
78288
78289         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78290
78291 2003-11-03  Bruno Haible  <bruno@clisp.org>
78292
78293         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78294         available, to avoid (extremely rare) race condition.
78295         Suggested by Paul Eggert.
78296
78297 2003-11-02  Karl Berry  <karl@gnu.org>
78298
78299         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78300
78301 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78302
78303         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78304         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78305         (read_filesystem_list): Set and use me_type_malloced.
78306         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78307         whatever the type happens to be), for brevity and consistency.
78308         Check for size calculation overflow on Alphas running OSF/1.
78309
78310 2003-10-31  Jim Meyering  <jim@meyering.net>
78311
78312         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78313
78314         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78315
78316 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78317             Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78320         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78321
78322 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78325         netbsd*-gnu*.  Suggested by Robert Millan.
78326
78327 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78328
78329         * modules/group-member: Depend on stdbool.
78330
78331 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78332
78333         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78334
78335 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78336
78337         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78338         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78339         after the 'gnu' in these cases.  This fixes some bugs in the
78340         previous change, and is based on suggestions by Robert Millan.
78341
78342 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78343
78344         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78345         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78346         no longer needed.
78347         * lib/quotearg.c (quotearg_n_options): Use it.
78348         * lib/group-member.c: Include <stdbool.h>.
78349         (free_group_info): Arg is now const *; don't free arg.
78350         (get_group_info): Now returns bool and accepts struct group_info *,
78351         rather than returning a malloc'ed struct group_info *.
78352         All uses changed.  Check for overflow in internal size calculation.
78353
78354         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78355         rather than xmalloc/xrealloc.
78356         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78357         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78358         conformance bug: the old code used a pointer after freeing the
78359         storage that it addressed.
78360         * lib/hash.c (hash_initialize): Simplify the code by using
78361         xalloc_oversized rather than doing it by hand.
78362         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78363         the buffer preserved.  Use free and xmalloc instead.
78364         * lib/quotearg.c (quotearg_n_options): Likewise.
78365         Use a simpler test for size overflow.  Don't use xalloc_oversized
78366         because unsigned int might be wider than size_t (!); this suggests
78367         that we should switch from unsigned int to size_t for slot numbers.
78368
78369 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78370
78371         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78372         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78373         NetBSD kernels.  Requested by Richard Stallman.
78374
78375 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78376
78377         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78378         to allocate the returned structure.  Do not allocate a subarray,
78379         as x2nrealloc will do that.
78380         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78381         instead of xnrealloc.
78382         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78383
78384 2003-10-27  Bruno Haible  <bruno@clisp.org>
78385
78386         * lib/stdbool_.h: Better support for BeOS.
78387
78388 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78389
78390         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78391         now uses inline.
78392
78393 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78394
78395         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78396         callers that want to do their own size-overflow checking.  Include
78397         <stdbool.h>, since xalloc_oversized returns bool.
78398         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78399         to use xalloc_oversized.
78400
78401         Add two functions x2realloc, x2nrealloc, for programs that grow
78402         arrays dynamically by doubling their sizes.
78403         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78404         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78405         New functions.
78406
78407         Port to C99 semantics for 'inline' of external functions.
78408         Bug reported by Bruno Haible.
78409         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78410         with the old contents of xnmalloc.
78411         (xnmalloc, xmalloc): Use it.
78412         (xnrealloc_inline): New static inline function,
78413         with the old contents of xnrealloc.
78414         (xnrealloc, xrealloc): Use it.
78415
78416         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78417         that.
78418
78419 2003-10-26  Karl Berry  <karl@gnu.org>
78420
78421         * config/srclist.txt (COPYING.DOC): no longer available from
78422         /gd/gnuorg; don't know where the ultimate source is.
78423
78424 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78425
78426         Fix several address-calculation bugs in the hash modules,
78427         plus some minor code cleanup.
78428
78429         * lib/hash.h: Include <stdbool.h>, for bool.
78430         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78431         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78432         hash_get_n_entries, hash_get_max_bucket_length,
78433         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78434         hash_rehash): Use size_t rather than unsigned.
78435         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78436         hash_get_n_buckets_used, hash_get_n_entries,
78437         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78438         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78439         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78440         Likewise.
78441         (SIZE_MAX): Define if not defined.
78442         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78443         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78444         hash_print):
78445         Use const * when possible.
78446         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78447         (check_tuning): Fix bug: if tuning parameters were very close to
78448         0 or 1, rounding errors could have caused subscript violations.
78449         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78450         (hash_initialize): Add 'fail:' label
78451         to free table and return NULL, and use it to simplify code.
78452         Use calloc rather than clearing the storage ourself.
78453         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78454         buffer size calculations.
78455         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78456         Include <stddef.h>, for size_t.
78457         * lib/hash-pjw.c (hash_pjw): Likewise.
78458         Switch to method described by Bruno Haible.
78459         Include <limits.h>, for CHAR_BIT.
78460         (SIZE_BITS): New macro.
78461
78462 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78463
78464         * m4/getline.m4 (AM_FUNC_GETLINE):
78465         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78466         hosts.  Problem reported by Derek Robert Price in
78467         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78468         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78469         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78470
78471 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78472
78473         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78474         ceiling the allocation at NMAX bytes rather than silently
78475         discarding input bytes before NMAX is reached.  This makes
78476         a difference only if NMAX exceeds SIZE_MAX / 2.
78477
78478         * lib/obstack.c: Merge from glibc.
78479         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78480         Add libc_hidden_def (_obstack_newchunk).
78481         (_obstack_free) [! defined _LIBC]: Remove.
78482         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78483         a clone of the function body.
78484         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78485         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78486
78487         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78488         glibc.
78489         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78490         arg to memcpy.
78491
78492         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78493         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78494         Don't use lvalue casts, as GCC plans to remove support for them
78495         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78496         was also present in the non-GCC version, indicating that this
78497         code had always been buggy and had never been widely used.
78498         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78499         Use the fast variant of each macro, rather than copying the
78500         definiens of the fast variant; that way, we'll be more likely to
78501         catch future bugs in the fast variants.
78502
78503 2003-10-20  Bruno Haible  <bruno@clisp.org>
78504
78505         * modules/wait-process: New file.
78506         * MODULES.html.sh (func_all_modules): Add wait-process.
78507
78508 2003-10-20  Bruno Haible  <bruno@clisp.org>
78509
78510         * m4/wait-process.m4: New file.
78511
78512 2003-10-20  Bruno Haible  <bruno@clisp.org>
78513
78514         * lib/wait-process.h: New file, from GNU gettext.
78515         * lib/wait-process.c: New file, from GNU gettext.
78516
78517 2003-10-19  Jim Meyering  <jim@meyering.net>
78518
78519         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78520         HPUX 10.20.
78521
78522 2003-10-18  Karl Berry  <karl@gnu.org>
78523
78524         * config/config.guess: update from config.
78525
78526 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78527
78528         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78529         (getgroups): First arg is int, not size_t.
78530         Don't let 'free' mangle errno.
78531
78532 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78533
78534         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78535
78536 2003-10-16  Karl Berry  <karl@gnu.org>
78537
78538         * config/config.{guess,sub}: update from config.
78539
78540 2003-10-16  Jim Meyering  <jim@meyering.net>
78541
78542         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78543         memcpy.
78544
78545 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78546
78547         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78548         (SIZE_MAX): Remove.
78549         (new_exclude, add_exclude_file): Initial size no longer needs to
78550         be a power of 2.
78551         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78552         our own address arithmetic overflow checking.
78553
78554         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78555         (fnmatch): Do not alloca more than 2000 wide characters;
78556         instead, use malloc for large buffers.
78557         Check for address arithmetic overflow, and return -1
78558         with errno set to ENOMEM in that case.
78559         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78560         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78561         instead, return -1.  Check for address arithmetic overflow.
78562
78563 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78564
78565         Handle invalid suffixes and overflow independently, so that
78566         callers can treat them independently as needed.  Fix some bugs in
78567         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78568         suffix for a human-readable blocksize.  The major caller-visible
78569         change is the addition of a new
78570         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78571         that both overflow and suffix chars were found.
78572
78573         * lib/human.c (humblock): Don't check separately for invalid suffix
78574         char; that is xstrtoumax's job (now that its bug is fixed).
78575         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78576         INTMAX_MAX]: New macros.
78577         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78578         TYPE_MAXIMUM): New macros.
78579         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78580         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78581         if overflow occurs, as it's what __strtol does and it's more useful
78582         in practice.
78583         (__xstrtol): If __strtol reports some error other than ERANGE,
78584         reflect it to the caller as LONGINT_INVALID.  If it reports
78585         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78586         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78587         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78588         value.
78589         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78590         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78591         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78592         [defined UINTMAX_MAX]: New macros.
78593
78594 2003-10-14  Bruno Haible  <bruno@clisp.org>
78595
78596         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78597
78598 2003-10-14  Bruno Haible  <bruno@clisp.org>
78599
78600         * m4/sig_atomic_t: New file, from GNU gettext.
78601         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78602
78603 2003-10-14  Bruno Haible  <bruno@clisp.org>
78604
78605         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78606         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78607         Also use volatile where needed.
78608
78609 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78610
78611         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78612         Change maintainer from Bruno Haible to 'all'.
78613
78614 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78615
78616         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78617
78618 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78619
78620         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78621         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78622         and define in terms of the other primitives.
78623         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78624         (SIZE_MAX): Define if not already defined.
78625         (array_size_overflow): New function.
78626         (xalloc_die): Abort instead of exiting if 'error' returns.
78627         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78628         (xmalloc, xrealloc): Use them.
78629         (xcalloc): Check for address arithmetic overflow.
78630         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78631         a bit faster than strcpy.
78632
78633 2003-10-10  Simon Josefsson  <jas@extundo.com>
78634
78635         * modules/argp (Depends-on): Add restrict and strcase.
78636
78637 2003-10-10  Simon Josefsson  <jas@extundo.com>
78638
78639         * m4/argp.m4: Add AC_C_INLINE.
78640
78641 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78642
78643         Merge getpass from libc, plus a few fixes.
78644
78645         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78646         Include <stdbool.h>.
78647         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78648         __fsetlocking to empty.
78649         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78650         do include <bits/libc-lock.h>.
78651         Do not include <fcntl.h>; not needed.
78652         [_LIBC]: Include <wchar.h>.
78653         (NOTCANCEL_MODE): New macro.
78654         (flockfile, funlockfile) [_LIBC]: New macros.
78655         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78656         [!_LIBC]: New macros.
78657         (call_fclose): New function.
78658         (getpass): Use it.  Save tty stream separately; this simplifies the
78659         code and makes it more reliable if stdin happens to equal stdout.
78660         Invoke __fsetlocking on tty.
78661         Handle thread cancellation if needed.
78662         Namespace cleanup (use __tcgetattr, __getline).
78663         Use bool for Booleans.
78664         [USE_IN_LIBIO]: Handle wide streams.
78665         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78666         stream might go where.
78667
78668         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78669         doesn't have to include <stdio.h> before us.
78670         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78671         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78672         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78673         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78674         if not declared, so that we can use getpass.c code from libc without
78675         rewriting it.
78676         (flockfile, ftrylockfile, funlockfile): New macros.
78677
78678 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78679
78680         * modules/getpass: Depend on stdbool.
78681
78682 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78683
78684         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78685
78686 2003-10-07  Karl Berry  <karl@gnu.org>
78687
78688         * config/config.{guess,sub}: update from config.
78689
78690 2003-10-06  Jim Meyering  <jim@meyering.net>
78691             Bruno Haible  <bruno@clisp.org>
78692
78693         This lets translators provide better translations for the
78694         "Written by ..." part of --version output.
78695         * lib/version-etc.h: Include stdarg.h.
78696         (version_etc_copyright): Declare as readonly.
78697         (version_etc): Make this function variadic with a NULL-terminated list
78698         of author name strings.
78699         (version_etc_va): New declaration.
78700         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78701         (version_etc_copyright): Declare as readonly.
78702         (version_etc_va): New function. Provide a different translatable string
78703         for each possible number of authors < 10. Abbreviate when there are 10
78704         authors or more.
78705         (version_etc): Make this function variadic. Call version_etc_va.
78706         Suggestion from Gary V. Vaughan.
78707
78708         * lib/long-options.h (parse_long_options): Change prototype: the
78709         authors string is moved to the end and becomes variadic.
78710         * lib/long-options.c: Include stdarg.h.
78711         (parse_long_options): Make this function variadic, too.
78712         Call version_etc_va, not version_etc.
78713
78714 2003-10-06  Bruno Haible  <bruno@clisp.org>
78715
78716         * modules/version-etc-2: Remove file.
78717         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78718
78719 2003-10-06  Bruno Haible  <bruno@clisp.org>
78720
78721         * modules/fatal-signal: New file.
78722         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78723
78724 2003-10-06  Bruno Haible  <bruno@clisp.org>
78725
78726         * m4/fatal-signal.m4: New file.
78727         * m4/signalblocking.m4: New file, from GNU gettext.
78728
78729 2003-10-06  Bruno Haible  <bruno@clisp.org>
78730
78731         * lib/version-etc-2.h: Remove file.
78732         * lib/version-etc-2.c: Remove file.
78733
78734 2003-10-06  Bruno Haible  <bruno@clisp.org>
78735
78736         * lib/fatal-signal.h: New file, from GNU gettext.
78737         * lib/fatal-signal.c: New file, from GNU gettext.
78738
78739 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78740
78741         * README: Rework advice for preventing empty .o files.
78742         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78743         not <sys/types.h>.
78744
78745 2003-10-04  Karl Berry  <karl@gnu.org>
78746
78747         * lib/argp*: update from libc.
78748
78749 2003-10-04  Karl Berry  <karl@gnu.org>
78750
78751         * config/config.{guess,sub}: update from config.
78752
78753 2003-10-02  Bruno Haible  <bruno@clisp.org>
78754
78755         * modules/lchown (Include): Add lchown.h.
78756         * modules/time_r (Include): Use "..." syntax.
78757         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78758
78759 2003-10-01  Simon Josefsson  <jas@extundo.com>
78760
78761         * MODULES.html.sh (func_all_modules): Move gethostname from section
78762         'based on' to section 'lacking' POSIX:2001.
78763
78764 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78765
78766         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78767         to output mode on the same stream.
78768
78769 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78770
78771         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78772         Fix arg typo in previous patch.
78773
78774 2003-09-28  Jim Meyering  <jim@meyering.net>
78775
78776         * lib/error.c: Correct cpp indentation.
78777
78778 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78779
78780         * modules/free: New file.
78781
78782 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78783
78784         * m4/free.m4: New file.
78785
78786 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78787
78788         * lib/minmax.h (MIN, MAX)
78789         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78790         Omit the special code that used __typeof__, since we worry that
78791         it could be more trouble than it's worth.  See:
78792         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78793         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78794
78795         * lib/free.c: New file.
78796
78797 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78798
78799         Trivial fixes to Makefile.am parts of module listings.
78800         * modules/strstr: Append strstr.h to lib_SOURCES.
78801         * modules/strcase: Likewise, for strcase.h.
78802
78803 2003-09-27  Karl Berry  <karl@gnu.org>
78804
78805         * config/mkinstalldirs: update from automake.
78806
78807 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78808
78809         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78810         (error_tail): Do not loop, reallocating temporary buffer, since
78811         the output cannot contain more wide characters than the input
78812         contains bytes, the size must be big enough already.  This avoids
78813         one potential size overflow calculation.  Check for size overflow
78814         when calculating temporary buffer size.  Free temporary buffer
78815         when done, if it was allocated with malloc; this plugs a memory
78816         leak.  Remove casts from void * to pointers, that are no longer
78817         needed now that we're assuming C89 or better.
78818
78819         Merge error changes from glibc.
78820
78821         * lib/error.c, error.h: Update copyright notice header to match glibc.
78822         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78823         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78824         Disable cancellation while printing error.
78825         * lib/error.h: Prepend __ to parameter names.
78826
78827 2003-09-26  Jim Meyering  <jim@meyering.net>
78828
78829         * lib/error.c (error_tail): Move some declarations
78830         into inner scope where the local variables are used.
78831
78832 2003-09-26  Bruno Haible  <bruno@clisp.org>
78833
78834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78835         stpncpy().
78836         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78837
78838 2003-09-26  Bruno Haible  <bruno@clisp.org>
78839
78840         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78841         (stpncpy): Define as alias for gnu_stpncpy.
78842         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78843
78844 2003-09-25  Simon Josefsson  <jas@extundo.com>
78845
78846         * lib/xgetdomainname.h: New file.
78847         * lib/xgetdomainname.c: New file.
78848
78849 2003-09-25  Simon Josefsson  <jas@extundo.com>
78850             Bruno Haible  <bruno@clisp.org>
78851
78852         * modules/getdomainname: New file.
78853         * modules/xgetdomainname: New file.
78854         * MODULES.html.sh (func_all_modules): Add getdomainname,
78855         xgetdomainname.
78856
78857 2003-09-25  Simon Josefsson  <jas@extundo.com>
78858             Bruno Haible  <bruno@clisp.org>
78859
78860         * m4/getdomainname.m4: New file.
78861
78862 2003-09-25  Simon Josefsson  <jas@extundo.com>
78863             Bruno Haible  <bruno@clisp.org>
78864
78865         * lib/getdomainname.h: New file.
78866         * lib/getdomainname.c: New file.
78867
78868 2003-09-25  Karl Berry  <karl@gnu.org>
78869
78870         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78871
78872 2003-09-25  Karl Berry  <karl@gnu.org>
78873
78874         * config/install-sh: update from automake.
78875
78876 2003-09-25  Bruno Haible  <bruno@clisp.org>
78877
78878         * modules/version-etc-2: New file, from modules/version-etc with
78879         modifications.
78880         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78881
78882 2003-09-25  Bruno Haible  <bruno@clisp.org>
78883
78884         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78885         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78886
78887 2003-09-24  Simon Josefsson  <jas@extundo.com>
78888
78889         * modules/xgethostname: Add xgethostname.h.
78890
78891 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78892
78893         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78894         the buffer associated with the argument.  Bug reported by
78895         Simon Josefsson.
78896
78897 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78898
78899         * README: Document assumptions that 'int' is at least 32 bits
78900         wide, that integer arithmetic is 2's complement without overflow,
78901         that there are no holes in integer values, that adding sizes of
78902         two nonoverlapping objects can't overflow, and that all-bits-zero
78903         yields scalar zero.  Fix spelling and capitalization typos.
78904
78905 2003-09-19  Karl Berry  <karl@gnu.org>
78906
78907         * lib/argp.h: update from libc.
78908
78909 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78910
78911         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78912         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78913         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78914
78915 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78916
78917         * gnulib-tool: Use "test -h", not "test -L", for portability
78918         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78919         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78920         (sed_extract_prog): Issue s commands one-by-one, rather than
78921         using \| in one s command.
78922
78923 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78924
78925         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78926         input error, instead of returning NULL the next time we are called
78927         (and therefore losing track of errno).
78928
78929 2003-09-16  Bruno Haible  <bruno@clisp.org>
78930
78931         * gnulib-tool (func_create_testdir): Warn about duplicated
78932         dependencies.
78933
78934 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78935
78936         * modules/argmatch, modules/fatal, modules/obstack,
78937         modules/xalloc, modules/xgethostname: Sort dependencies by
78938         importance, not alphabetically.
78939
78940 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78941
78942         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78943         fails, so that the caller gets the proper errno.
78944
78945         * lib/readutmp.c (read_utmp): Likewise.
78946         Check for fstat error.  Close stream and free storage
78947         when failing.
78948
78949 2003-09-14  Karl Berry  <karl@gnu.org>
78950
78951         * config/srclist.txt (strdup.c): disable for c89 changes.
78952
78953 2003-09-14  Jim Meyering  <jim@meyering.net>
78954
78955         * lib/getloadavg.c: Correct cpp indentation.
78956         * lib/strdup.c: Likewise.
78957         * lib/vasnprintf.c: Likewise.
78958
78959 2003-09-14  Bruno Haible  <bruno@clisp.org>
78960
78961         * modules/fwriteerror: New file.
78962         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78963
78964 2003-09-14  Bruno Haible  <bruno@clisp.org>
78965
78966         * lib/fwriteerror.h: New file.
78967         * lib/fwriteerror.c: New file.
78968
78969 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78970
78971         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78972         modules/xgethostname, modules/xalloc: Depend on exit.
78973
78974 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78975
78976         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78977
78978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78979         and AC_MINIX, too, so that their extensions are available.
78980
78981         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78982         This macro has been superseded by gl_BACKUPFILE.
78983
78984         More patches to assume C89 or better.
78985
78986         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78987
78988         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78989         unconditionally.
78990         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78991         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78992         Include <string.h>, <stdlib.h> unconditionally.
78993         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78994         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78995         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78996         headers or for string.h.
78997         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78998         or strtoul.
78999
79000         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79001         headers.
79002         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79003         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79004         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79005         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79006         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79007         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79008         memcpy, memset.
79009         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79010         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79011         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79012         strtol.
79013         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79014         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79016         strtoul.
79017
79018 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79019
79020         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79021         * lib/obstack.c [!defined _LIBC]: Likewise.
79022         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79023         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79024         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79025
79026         More changes to assume C89 or better.
79027
79028         * lib/error.c (error_tail): Assume vprintf.
79029
79030         * lib/argmatch.c (getenv): Remove decl.
79031         * lib/progreloc.c (get_full_program_name): Define via prototype.
79032         * lib/setenv.c (clearenv): Likewise.
79033         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79034         needed.
79035         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79036         (malloc, memcpy): Remove decls.
79037         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79038         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79039         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79040         (memcpy): Remove macro.
79041         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79042         (__P): Remove.  All uses removed.
79043         (PTR): Remove.  All uses changed to void *.
79044         (CHAR_BIT, NULL): Remove.
79045         (spaces, zeros, memset_space, memset_zero)
79046         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79047         Remove.
79048         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79049         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79050         Define with prototype.
79051         Remove now-unnecessary prototype decl.
79052         (extra_args_spec): Assume ANSI C.  All uses changed.
79053         (extra_args_spec_iso): Remove.
79054         (my_strftime, emacs_strftimeu): Define via prototype.
79055         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79056         unconditionally.
79057         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79058         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79059         (strtoul, strtol): Remove decls.
79060         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79061         LONG_MAX): Remove.
79062         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79063         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79064         (LOCALE_PARAM_PROTO): New macro.
79065         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79066         (INTERNAL (strtol), strtol): Define with a prototype.
79067         (PARAMS): Remove.  All uses removed.
79068         * lib/tempname.c: Include <string.h> unconditionally.
79069         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79070         * lib/xgethostname.c (main): Define with a prototype.
79071         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79072         Include <stdlib.h> unconditionally.
79073         (calloc, malloc, realloc, free): Remove decls.
79074         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79075         Include <stdlib.h> unconditionally.  Sort include file names.
79076         (strtod): Remove.
79077         (xstrtod): Define with a prototype.
79078         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79079         (strtol, strtoul): Remove decls.
79080
79081 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79082
79083         More patches to assume C89 or better.
79084         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79085         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79086         string.h, memchr, STDC_HEADERS.
79087
79088 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79089
79090         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79091         Include <stdlib.h>, <string.h> unconditionally.
79092         Remove now-unnecessary cast to char *.
79093         * lib/strnlen.c: Include <string.h> unconditionally.
79094         * lib/yesno.c (yesno): Define with a prototype.
79095
79096 2003-09-11  Bruno Haible  <bruno@clisp.org>
79097
79098         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79099
79100 2003-09-10  Jim Meyering  <jim@meyering.net>
79101
79102         * lib/error.c: Correct indentation of cpp directives.
79103
79104 2003-09-10  Bruno Haible  <bruno@clisp.org>
79105
79106         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79107         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79108         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79109         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79110         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79111         <stdlib.h> and <string.h> checks.
79112         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79113         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79114
79115 2003-09-10  Bruno Haible  <bruno@clisp.org>
79116
79117         * lib/strcspn.c: Include <string.h> unconditionally.
79118         * lib/strpbrk.c: Include <string.h> unconditionally.
79119         * lib/strstr.c: Include <string.h> unconditionally.
79120         * lib/unicodeio.c: Include <string.h> unconditionally.
79121         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79122         * lib/unsetenv.c: Likewise.
79123         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79124         * lib/yesno.c: Include <stdlib.h> unconditionally.
79125         (rpmatch): Add prototype.
79126
79127 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79128
79129         More patches to assume C89 or better.
79130         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79131         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79132         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79133         or for string.h.
79134         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79135         stdlib.h.
79136         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79137         C headers.
79138         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79139         string.h.
79140         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79141         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79142         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79143         or for string.h.
79144         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79145         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79146         C headers.
79147         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79148         memcpy.
79149         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79150         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79151         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79152         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79153         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79154         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79155         string.h, free.
79156         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79157         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79158         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79159         C headers, or for string.h.
79160         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79161         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79162         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79163         headers, memory.h, stdlib.h, string.h, strings.h.
79164         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79165         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79166         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79167         strchr.
79168         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79169         headers, memory.h, string.h.
79170         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79171         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79172         free.
79173         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79174         headers.
79175         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79176         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79177         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79178         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79179         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79180
79181 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79182
79183         More K&R removal.
79184
79185         * lib/acosl.c (main): Use a prototype.
79186         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79187         tanl.c: Likewise.
79188
79189         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79190
79191         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79192         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79193         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79194         with a prototype.
79195         * lib/getopt.c (const): Remove macro.
79196         Include <string.h> unconditionally.
79197         (my_index): Remove; all uses changed to strchr.
79198         (strlen): Remove decl.
79199         (exchange): Remove forward decl; no longer needed.
79200         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79201         Define with prototype.
79202         * lib/getopt1.c (const): Remove macro.
79203         (getopt_long, getopt_long_only, main): Define with prototype.
79204
79205         * lib/getugroups.c: Include <string.h> unconditionally.
79206
79207         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79208         (getusershell, setusershell, endusershell, readname, main):
79209         Define with prototypes.
79210
79211         * lib/group-member.c: Include group-member.h first.
79212         Include <stdlib.h> unconditionally.
79213
79214         * lib/hard-locale.c: Include hard-locale.h first.
79215         Include <stdlib.h>, <string.h> unconditionally.
79216
79217         * lib/hash.c (free, malloc): Remove decls.
79218         Include <stdlib.h> unconditionally.
79219
79220         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79221         (getenv): Do not declare.
79222
79223         * lib/idcache.c: Include <string.h> unconditionally.
79224
79225         * lib/long-options.c: Include long-options.h first, to test interface.
79226         Include <stdlib.h> unconditionally.
79227
79228         * lib/makepath.c: Include makepath.h first, to test interface.
79229         Include <stdlib.h> and <string.h> unconditionally.
79230
79231         * lib/linebuffer.c: Include <stdlib.h>.
79232         (free): Remove decl.
79233
79234         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79235         stddef.h. rpl_malloc returns void *, not char *.
79236         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79237         prototype.
79238
79239         * lib/md5.h: Include <limits.h> unconditionally.
79240         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79241         (__P): Remove; all uses removed.
79242         * lib/md5.c: Include "md5.h" first.
79243         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79244         md5_buffer, md5_process_bytes, md5_process_block):
79245         Define with prototypes.
79246         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79247         * lib/sha.c: Include "sha.h" first.
79248         Include <stdlib.h>, <string.h> unconditionally.
79249
79250         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79251         * lib/memcmp.c (__ptr_t): Likewise.
79252         * lib/memrchr.c (__ptr_t): Likewise.
79253         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79254         Include <string.h> unconditionally.
79255         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79256         * lib/memchr.c: Include <stdlib.h> unconditionally.
79257         * lib/memchr.c (LONG_MAX): Remove.
79258         * lib/memrchr.c (LONG_MAX): Likewise.
79259         * lib/memchr.c (__memchr): Define via a prototype.
79260         * lib/memrchr.c (__memrchr): Likewise.
79261         * lib/memcmp.c (__P): Remove, and remove all uses.
79262         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79263         Remove forward decls; no longer needed.
79264         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79265         Use types required by C89 in prototype.
79266
79267         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79268         * lib/savedir.c: Likewise.
79269         * lib/mkdir.c (free): Remove decl.
79270         * lib/rmdir.c (rmdir): Define with a prototype.
79271         * lib/savedir.c: Include savedir.h first, to test interface.
79272
79273         * lib/mktime.c (STDC_HEADERS): Remove.
79274         Include <stdlib.h>, <string.h> unconditionally.
79275
79276         * lib/modechange.c: Include <stdlib.h> unconditionally.
79277         (malloc): Remove decl.
79278
79279         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79280         (free): Remove decl.
79281
79282         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79283         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79284         (This type really should be intptr_t, but that's a C99ism.)
79285         (_obstack_memcpy): Remove: all uses changed to memcpy.
79286         Include <string.h> unconditionally.
79287         (struct obstack): Assume __STDC__ for types of members
79288         chunkfun, freefun, extra_arg.
79289         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79290         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79291         obstack_begin, obstack_specify_allocation,
79292         obstack_specify_allocation_with_arg, obstack_chunkfun,
79293         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79294         Remove unprototyped decls and the macros that use them.
79295         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79296         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79297         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79298         (defined __STDC__ && __STDC__)]:
79299         Remove nonprototyped code.
79300         Include <stdlib.h> unconditionally.
79301         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79302         _obstack_allocated_p, _obstack_free, obstack_free,
79303         _obstack_memory_used, print_and_abort):
79304         Define using prototypes.
79305         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79306         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79307         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79308         obstack_next_free, obstack_object_size, obstack_room) [0]:
79309         Remove unused, unprototyped code.
79310
79311         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79312
79313         * lib/physmem.c (physmem_total, physmem_available, main): Define
79314         with prototypes.
79315
79316         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79317         (main): Define with a prototype.
79318
79319         * lib/posixver.c (getenv): Remove decl.
79320
79321         * lib/putenv.c (malloc): Returns void *, not char *.
79322         Include <string.h> unconditionally.
79323         (strchr, memcpy, NULL): Do not define.
79324
79325         * lib/readtokens.c: Include readtokens.h first, to test interface.
79326         Include <stdlib.h>, <string.h> unconditionally.
79327         (init_tokenbuffer): Define with a prototype.
79328
79329         * lib/regex.c (PARAMS): Remove.  All uses removed.
79330         All uses of _RE_ARGS removed, too.
79331         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79332         unconditionally.
79333         (bzero): Assume memset exists.
79334         (memcmp, memcpy, NULL): Remove.
79335         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79336         char, or assignments to local vars of type signed char.
79337         (init_syntax_once, PREFIX(extract_number_and_incr),
79338         PREFIX(print_partial_compiled_pattern),
79339         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79340         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79341         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79342         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79343         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79344         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79345         wcs_compile_range, byte_compile_range, truncate_wchar,
79346         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79347         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79348         count_mbs_length, wcs_re_match_2_internal,
79349         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79350         PREFIX(alt_match_null_string_p),
79351         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79352         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79353         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79354         now-unnecessary declaration, if any.
79355         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79356         regcomp, regexec):
79357         Remove now-unnecessary casts among pointer types.
79358         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79359
79360         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79361         (free): Remove decl.
79362
79363         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79364
79365         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79366         (free): Remove decl.
79367
79368         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79369         * lib/xgetcwd.c: Likewise.
79370
79371         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79372         (free): Remove decl.
79373
79374         * lib/strchrnul.c (strchrnul): Define with a prototype.
79375         Fix bug: c_in was not converted to char before searching.
79376
79377         The following changes are not K&R related:
79378
79379         * lib/group-member.h: Include <sys/types.h>, so that this file is
79380         self-contained.
79381         * lib/makepath.h: Likewise.
79382
79383         * lib/getusershell.c (readname, default_index, line_size, readname):
79384         Use size_t, not int, for sizes.
79385         (readname): If the size overflows, report an error instead of
79386         looping forever.
79387
79388 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79389
79390         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79391         libc.
79392
79393 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79394
79395         * README: New section: portability guidelines.
79396
79397 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79398
79399         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79400         C89 spec.
79401
79402 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79403
79404         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79405
79406 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79407
79408         Assume C89 or better; remove K&R cruft.
79409         A few of these changes were first proposed by Derek Robert Price
79410         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79411
79412         * lib/addext.c: Include <string.h> unconditionally.
79413         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79414         Don't declare getenv or malloc.
79415
79416         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79417         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79418         (NULL): Remove.
79419         (find_stack_direction, alloca): Use prototypes.
79420
79421         * lib/atexit.c (atexit): Define using a prototype.
79422
79423         * lib/basename.c, dirname.c, stripslash.c:
79424         Include <string.h> unconditionally.
79425
79426         * lib/bcopy.c: Include <stddef.h>.
79427         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79428
79429         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79430
79431         * lib/error.h (error, error_at_line, error_print_progname)
79432         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79433         * lib/error.c: Include error.h first, to check interface.
79434         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79435         (VA_START): Remove; all uses changeed to va_start.
79436         (exit, strerror): Remove decls.
79437         (error_print_progname): Prototype uncondionally.
79438         Don't include <errno.h>; no longer needed.
79439         (private_strerror): Remove.
79440         (error_tail): Always define.
79441         (error, error_at_line): Assume C89 or better; always use prototypes.
79442         * lib/fatal.c: Include "fatal.h" first, to test interface.
79443         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79444         (VA_START): Remove; all uses changed to va_start.
79445         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79446         this case.
79447         (exit): Remove decl.
79448         (fatal): Prototype unconditionally.  Assume va_start works.
79449         Abort at end, to pacify gcc.
79450
79451         * lib/euidaccess.c (main): Define with a prototype.
79452
79453         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79454
79455         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79456
79457         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79458         prototypes.
79459         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79460         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79461         (getenv): Remove decl.
79462         (fnmatch): Define using a prototype.
79463         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79464         (FCT): Define using a prototype.
79465
79466         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79467
79468         * lib/gethostname.c: Include <stddef.h>.
79469         (gethostname): Define with prototype.  Length is size_t, not int.
79470
79471 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79472
79473         Assume C89 or better; remove K&R cruft.
79474         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79475         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79476         string.h, getenv, malloc.
79477         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79478         headers.
79479         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79480         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79481         do not check for strerror.
79482         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79483         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79484         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79485         do not check for doprnt or vprintf.
79486         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79487         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79488
79489 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79490
79491         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79492         getversion.c should have been removed then, but was accidentally
79493         preserved.
79494
79495         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79496         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79497
79498 2003-09-08  Karl Berry  <karl@gnu.org>
79499
79500         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79501                 config, forget about prep.
79502
79503         * config/depcomp, missing: update from automake.
79504
79505 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79506
79507         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79508         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79509
79510 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79511
79512         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79513         copy_tm_result.  Bug reported by Simon Josefsson in
79514         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79515
79516 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79517
79518         * m4/time_r.m4: New file.
79519         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79520         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79521         is. Check for timegm declaration.
79522         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79523         Do not check for gmtime_r.
79524         Replace mktime if __mktime_internal does not exist and if mktime
79525         hasn't been replaced already.
79526
79527 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79528
79529         * lib/time_r.c, lib/time_r.h: New files.
79530
79531         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79532         __localtime_r.
79533         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79534         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79535
79536         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79537         __gmtime_r.
79538         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79539         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79540         Include <time_r.h>.
79541
79542         * lib/timegm.c: Switch to glibc implementation, with the following
79543         changes:
79544         [defined HAVE_CONFIG_H]: Include <config.h>.
79545         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79546         (__mktime_internal) [!defined _LIBC]: New decl.
79547         (__gmtime_r) [!defined _LIBC]: New macro and function.
79548         (timegm): Use a prototype, since gnulib assumes C89.
79549         Do not bother declaring tmp to be const, as it's not really usefu.
79550         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79551         (timegm): Declare only if HAVE_DECL_TIMEGM.
79552
79553 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79554
79555         * MODULES.html.sh (func_all_modules): Add time_r.
79556         * modules/time_r: New file.
79557         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79558         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79559
79560 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79561
79562         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79563         Bug reported by Lute Kamstra in
79564         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79565
79566         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79567         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79568         course with correspondingly smaller numbers for tomorrow and
79569         yesterday.  From Tadayoshi Funaba.  Originally installed into
79570         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79571         coreutils merge?).
79572
79573 2003-08-31  Simon Josefsson  <jas@extundo.com>
79574
79575         * modules/timegm: New file.
79576         * MODULES.html.sh (func_all_modules): Add timegm.
79577
79578 2003-08-31  Simon Josefsson  <jas@extundo.com>
79579
79580         * m4/timegm.m4: New file.
79581
79582 2003-08-31  Simon Josefsson  <jas@extundo.com>
79583
79584         * lib/timegm.h: New file.
79585         * lib/timegm.c: New file.  Based on
79586         wget-1.8.2/src/http.c:mktime_from_utc.
79587
79588 2003-08-31  Karl Berry  <karl@gnu.org>
79589
79590         * lib/argp.h: update from libc.
79591
79592 2003-08-28  Bruno Haible  <bruno@clisp.org>
79593
79594         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79595         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79596         followed by '#define fnmatch fnmatch_posix' gives an error.
79597
79598 2003-08-28  Bruno Haible  <bruno@clisp.org>
79599
79600         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79601         warning on QNX, which defines O_BINARY to 000000.
79602
79603 2003-08-27  Jim Meyering  <jim@meyering.net>
79604
79605         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79606         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79607         would fail after 32.  Reported by Danny Levinson.  Details here:
79608         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79609
79610 2003-08-24  Bruno Haible  <bruno@clisp.org>
79611
79612         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79613         MSVC7 <stdio.h> is included later.
79614
79615 2003-08-22  Simon Josefsson  <jas@extundo.com>
79616
79617         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79618
79619 2003-08-20  Karl Berry  <karl@gnu.org>
79620
79621         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79622
79623 2003-08-20  Bruno Haible  <bruno@clisp.org>
79624
79625         * modules/progname: New file.
79626         * MODULES.html.sh (func_all_modules): Add progname.
79627
79628 2003-08-20  Bruno Haible  <bruno@clisp.org>
79629
79630         * lib/progname.h: New file, from GNU gettext.
79631         * lib/progname.c: New file, from GNU gettext.
79632         * lib/progreloc.c: New file, from GNU gettext.
79633
79634 2003-08-19  Jim Meyering  <jim@meyering.net>
79635
79636         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79637         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79638
79639 2003-08-19  Bruno Haible  <bruno@clisp.org>
79640
79641         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79642         more.
79643
79644 2003-08-19  Bruno Haible  <bruno@clisp.org>
79645
79646         * lib/xstrdup.c: Assume <string.h> exists.
79647
79648 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79649
79650         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79651         in makefile rules.
79652
79653 2003-08-18  Jim Meyering  <jim@meyering.net>
79654
79655         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79656         * m4/lib-ld.m4: Likewise.
79657
79658 2003-08-18  Jim Meyering  <jim@meyering.net>
79659
79660         * lib/setenv.h: Indent nested cpp directive.
79661         * lib/vasnprintf.c: Remove trailing blanks.
79662
79663 2003-08-17  Simon Josefsson  <jas@extundo.com>
79664
79665         * modules/xstrndup: New file.
79666         * MODULES.html.sh (func_all_modules): Add xstrndup.
79667
79668 2003-08-17  Simon Josefsson  <jas@extundo.com>
79669
79670         * modules/argp: Fix autoconf macro name. Add more dependencies.
79671
79672 2003-08-17  Simon Josefsson  <jas@extundo.com>
79673
79674         * m4/xstrndup.m4: New file.
79675
79676 2003-08-17  Simon Josefsson  <jas@extundo.com>
79677
79678         * m4/argp.m4: New file.
79679
79680 2003-08-17  Simon Josefsson  <jas@extundo.com>
79681             Bruno Haible  <bruno@clisp.org>
79682
79683         * lib/xstrndup.h: New file.
79684         * lib/xstrndup.c: New file.
79685
79686 2003-08-17  Bruno Haible  <bruno@clisp.org>
79687
79688         * modules/strndup (Files, Include): Add lib/strndup.h.
79689
79690 2003-08-17  Bruno Haible  <bruno@clisp.org>
79691
79692         * modules/euidaccess (Files): Add lib/euidaccess.h.
79693
79694 2003-08-17  Bruno Haible  <bruno@clisp.org>
79695
79696         * lib/strndup.h: New file.
79697
79698 2003-08-17  Bruno Haible  <bruno@clisp.org>
79699
79700         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79701         like AC_GNU_SOURCE.
79702         * modules/extensions (configure.ac): Comment out the invocation of
79703         gl_USE_SYSTEM_EXTENSIONS.
79704
79705 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79706
79707         Merges from coreutils, etc.
79708         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79709         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79710         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79711         fixing a typo.
79712         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79713         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79714
79715 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79716
79717         Document merge from coreutils.
79718         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79719         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79720         * modules/utime: Add m4/utimes-null.m4.
79721
79722 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79723
79724         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79725         space, undoing this 2003-08-12 change:
79726         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79727
79728 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79729
79730         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79731         strtoul.c from libc, undoing this 2003-08-12 change:
79732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79733
79734 2003-08-16  Jim Meyering  <jim@meyering.net>
79735
79736         Merges from coreutils.
79737         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79738         prefix.  Adjust cache variables similarly.  Create 500 rather than
79739         just 300 files, to exercise bug on Darwin6.5, too.
79740         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79741         $missing_dir.
79742         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79743         AM_SYS_POSIX_TERMIOS.
79744         Reported by mkc@mathdogs.com.
79745         Also change use of $am_cv_sys_posix_termios
79746         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79747         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79748         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79749         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79750         in /proc/mounts until it finds one with matching device number.  This
79751         is unnecessary when the FILE argument *is* a mount point.  No stat call
79752         is necessary in that case.  So, disable the statvfs-testing code on
79753         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79754         as RedHat bug# 84846.
79755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79756         to 1MB, so as not to render systems with no stack size limit (e.g.,
79757         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79758         Include <unistd.h>.  On some systems,
79759         it is required for the definition of _SC_PAGESIZE.
79760
79761 2003-08-16  Jim Meyering  <jim@meyering.net>
79762
79763         Merge from coreutils.
79764         * lib/xstrtoimax.c: #else #if -> #elif.
79765         * lib/xstrtoumax.c: Likewise.
79766
79767 2003-08-16  Jim Meyering  <jim@meyering.net>
79768
79769         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79770         * m4/utimes.m4: Removed.
79771         * m4/utimes-null.m4: Renamed from utimes.m4.
79772
79773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79774         to 1MB, so as not to render systems with no stack size limit (e.g.,
79775         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79776         Include <unistd.h>.  On some systems,
79777         it is required for the definition of _SC_PAGESIZE.
79778
79779 2003-08-16  Jim Meyering  <jim@meyering.net>
79780         and Paul Eggert  <eggert@cs.ucla.edu>
79781
79782         Merges from coreutils, etc.
79783
79784         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79785         using the latest version from cvs.  This avoids problems with #line
79786         directives using a vendor (Sun) compiler.
79787         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79788         Don't set GETGROUPS_LIB here; now it's
79789         done via getgroups.m4's wrapper function.
79790         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79791         rather than just in sh-util/configure.in, so that the
79792         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79793         same.
79794         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79795         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79796         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79797         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79798         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79799         Remove code that is now done by the newly-required macros.
79800         Append $(EXEEXT) to DF_PROG.
79801         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79802         Do not invoke or require the following here,
79803         since prereq.m4 or some gnulib .m4 now does this for us:
79804         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79805         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79806         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79807         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79808         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79809         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79810         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79811         AC_FUNC_OBSTACK.
79812         Do not replace the following functions, as this is now the job
79813         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79814         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79815         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79816         atexit getpass, strdup, getpagesize.
79817         Replace 'raise'.
79818         Do not check for the following functions, as this is now the job
79819         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79820         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79821         setregid.
79822         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79823         Check for sys/sysctl.h.
79824         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79825         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79826         of checking for ssize_t ourselves.
79827
79828         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79829         Require every macro that gnulib/modules/* suggests for us.
79830         (jm_PREREQ_ADDEXT): New macro.
79831         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79832         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79833
79834         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79835         (gl_PHYSMEM): Use it.
79836         Also check for `table' function.
79837         Check for new headers and functions.
79838         Add check for sys/sysmp.h.
79839         With suggestions from Kaveh Ghazi.
79840         Ignore headers that are present but cannot be compiled.  This
79841         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79842         C 5.4.
79843
79844 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79845
79846         Document merge from coreutils.
79847         * modules/userspec: Depend on posixver.
79848         * modules/strftime: Depend on tzset.
79849
79850 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79851
79852         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79853         rather than tab, after '#' in shell-script copyright notices.
79854         Suggested by Bruno Haible.
79855
79856 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79857
79858         * config/srclist-update: Use three spaces, rather than tab, after '#'
79859         in shell-script copyright notices.  Suggested by Bruno Haible.
79860         Remove unnecessary parenthesization in regular expression.
79861
79862 2003-08-15  Jim Meyering  <jim@meyering.net>
79863
79864         Merge from coreutils.
79865         * lib/xgethostname.c: Include <stdlib.h>.
79866         (xghostname): Don't exit for anything other than memory-related
79867         failure; just return NULL.
79868         * lib/userspec.c: Include "posixver.h".
79869         (parse_user_spec): Accept `.' as a separator only
79870         in pre-POSIX-200112 mode.
79871         * lib/strtoimax.c: Use #elif rather than #else #if.
79872         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79873         Remove function, now that we can rely on a working tzset function.
79874         [!_LIBC]: Ensure that the required autoconf test has been run.
79875         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79876         Use underlying_strftime for %r.
79877         * lib/sha.c: Merge in some clean-up and optimization changes from
79878         glibc.
79879         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79880         Ensure that it is a multiple of 64.
79881         Rearrange loop exit tests so as to avoid performing an
79882         additional fread after encountering an error or EOF.
79883         * lib/realloc.c: Update copyright date.
79884
79885 2003-08-15  Jim Meyering  <jim@meyering.net>
79886         and Paul Eggert  <eggert@twinsun.com>
79887
79888         Merge from coreutils.
79889         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79890         member but strut utmpx does not.  Needed for AIX 4.3.3.
79891         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79892
79893 2003-08-15  Jim Meyering  <jim@meyering.net>
79894         and Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         Merges from coreutils, etc.
79897         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79898         Require gl_FUNC_TZSET_CLOBBER.
79899         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79900         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79901         members.
79902
79903 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79904
79905         Help the merge from coreutils.
79906         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79907         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79908         * m4/tzset.m4: Use it too.
79909
79910 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79911
79912         * modules/tzset: New file.
79913
79914 2003-08-14  Jim Meyering  <jim@meyering.net>
79915
79916         Merges from coreutils.
79917         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79918         variable names, rather than @FNMATCH_H@.
79919         * modules/alloca: Likewise for $(ALLOCA_H).
79920
79921         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79922         the three copies of the literal target, `fnmatch.h'.
79923         * modules/alloca (alloca.h): Likewise.
79924
79925 2003-08-14  Jim Meyering  <jim@meyering.net>
79926
79927         Merge from coreutils.
79928         * m4/tzset.m4: New file.
79929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79930         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79931         otherwise, AIX 5.1 systems would end up using the latter.
79932         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79933         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79934         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79935         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79936
79937 2003-08-14  Jim Meyering  <jim@meyering.net>
79938
79939         Merge from coreutils.
79940         * lib/obstack.h: Whitespace changes.
79941         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79942         and xcalloc return values.
79943         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79944         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79945         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79946         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79947         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79948         error from mntctl.
79949         Use mntctl's return value to drive the entry-processing loop, since
79950         we can't rely on the value of the vmt_length member in the last
79951         entry.  On some systems doing so could result in exhausting
79952         virtual memory.  Based in part on a patch from Mike Jetzer.
79953
79954 2003-08-14  Jim Meyering  <jim@meyering.net>
79955         and Paul Eggert  <eggert@twinsun.com>
79956
79957         Merges from coreutils, plus other fixes.
79958         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79959         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79960         for credits and details.  Thanks to Kaveh Ghazi for helping
79961         to keep these files in sync.
79962         (ARRAY_SIZE): Define it.
79963         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79964         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79965         (memcasecmp): Don't assume size_t fits in unsigned int.
79966         Remove casts and duplicate code.
79967         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79968         (memcpy): Remove definition.
79969         Merge in some clean-up and optimization changes from glibc.
79970         [BLOCKSIZE]: Move definition to top of file.
79971         Ensure that it is a multiple of 64.
79972         Rearrange loop exit tests so as to avoid performing an
79973         additional fread after encountering an error or EOF.
79974         * lib/md5.h (md5_uintptr): Define.
79975         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79976         return to the initial working directory.  Preserve errno
79977         for caller.
79978         * lib/idcache.c: Include "xalloc.h".
79979         (xmalloc, xrealloc): Remove decls.
79980         (getuser): Remove casts no longer required in C89.
79981         * lib/human.c: Include stdio.h, for sprintf.
79982         * lib/group-member.c: Include "xalloc.h".
79983         (xmalloc, xrealloc): Remove decls.
79984         (get_group_info): Remove casts no longer required in C89.
79985         * lib/getusershell.c (readname): Remove casts no longer required in
79986         C89.
79987         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79988         * lib/getline.c: Whitespace fix, from coreutils.
79989
79990 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79991
79992         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79993         Check for isascii.
79994
79995         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79996         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79997         Undo previous (whitespace-only) change.
79998
79999 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80000
80001         * lib/exclude.c: Include <ctype.h>
80002         (IN_CTYPE_DOMAIN): New macro.
80003         (is_space): New fn.
80004         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80005         and empty lines.
80006
80007         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80008         Undo previous (whitespace-only) change.
80009
80010 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80011
80012         * config/srclist-update: Change update back to the old behavior,
80013         leaving whitespace alone.  Use one 'sed' command rather than a
80014         pipeline.
80015         (fixlicense): Now a variable, not a function.
80016         (remove_trailing_blanks): Remove.
80017         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80018         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80019         Undo previous (whitespace-only) change.
80020
80021 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80022
80023         Merge from coreutils.
80024         * modules/euidaccess: Add lib_SOURCES, include for new
80025         file euidaccess.h
80026
80027 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80028
80029         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80030         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80031         Normalize leading white space and remove trailing white space.
80032
80033         Merge from coreutils
80034         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80035
80036         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80037         0.12.1.  These files are now being upgraded automatically by
80038         ../config/srclist-update.
80039
80040 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80041
80042         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80043         Normalize leading white space and remove trailing white space.
80044         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80045         notice, as per ../config/srclist-update.
80046
80047         Merge from coreutils.
80048         * lib/euidaccess.h: New file.
80049         * lib/euidaccess.c: Include it.
80050         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80051         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80052         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80053
80054 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80055
80056         * config/srclist-update: Add copyright notice.
80057         (remove_id_lines, remove_trailing_blanks): New constants.
80058         (fixfile): Use them to normalize spacing a bit in copied files.
80059         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80060         Normalize leading white space and remove trailing white space.
80061
80062         * config/texinfo.tex: Sync with texinfo.
80063
80064         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80065         strtoul.c from libc, to merge coreutils whitespace changes.
80066
80067         * config/srclist.txt: Get the following m4 files from gettext:
80068         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80069         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80070         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80071         wint_t.m4.
80072
80073 2003-08-12  Karl Berry  <karl@gnu.org>
80074
80075         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80076         been made.
80077
80078 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80079
80080         * modules/gnu-source, m4/gnu-source.m4:
80081         Remove; we're assuming Autoconf 2.54 or later now.
80082         Suggested by Bruno Haible.
80083         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80084
80085 2003-08-11  Bruno Haible  <bruno@clisp.org>
80086
80087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80088
80089 2003-08-11  Bruno Haible  <bruno@clisp.org>
80090
80091         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80092         (vasnprintf): Use it instead of wcslen.
80093
80094 2003-08-11  Bruno Haible  <bruno@clisp.org>
80095
80096         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80097         value to ensure that _Bool promotes to int. Use #define for _Bool when
80098         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80099
80100 2003-08-10  Karl Berry  <karl@gnu.org>
80101
80102         * lib/regex.h: update from libc (whitespace fix).
80103
80104 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80105
80106         Merge some files from coreutils.  These changes were
80107         originally made by Jim Meyering.
80108         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80109         many older Unixes require this.
80110         * lib/alloca.c (alloca): Remove cast to argument of free;
80111         no longer needed in C89.
80112         * lib/alloca_.h, regex.h: Fix white space to match
80113         what GNU indent does.
80114
80115 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80116
80117         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80118         apparently Emacs's Unicode mode got confused before my 2003-08-05
80119         checkin.
80120
80121 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80122
80123         * m4/extensions.m4: New file.
80124         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80125         Require gl_USE_SYSTEM_EXTENSIONS.
80126         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80127         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80128
80129 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80130
80131         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80132         * modules/extensions, modules/gnu-source: New files.
80133         * modules/timespec, modules/unlocked-io: Depend on extensions.
80134
80135 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80136
80137         * modules/restrict: New file.
80138         * MODULES.html.sh (func_all_modules): Add restrict.
80139         * modules/regex: Depend on restrict.
80140
80141 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80142
80143         * m4/restrict.m4: New file.
80144         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80145
80146 2003-08-07  Bruno Haible  <bruno@clisp.org>
80147
80148         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80149         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80150
80151 2003-08-07  Bruno Haible  <bruno@clisp.org>
80152
80153         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80154         makes the module 'getndelim2' compatible with the module 'getline'.
80155
80156 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80157
80158         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80159         byte with "\201" to avoid glitches when editing that source file
80160         with multi-gnome-terminal.
80161
80162 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80163
80164         * lib/bumpalloc.h: Remove.
80165
80166 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80167
80168         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80169         * modules/bumpalloc: Remove.
80170
80171 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80172
80173         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80174         GNU coding style.
80175
80176         Merge from coreutils.
80177         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80178         1. From glibc.
80179         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80180         from Karl Berry, implemented by Jim Meyering.
80181         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80182         from Dmitry V. Levin.
80183         Remove anachronistic cast of xrealloc.
80184         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80185         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80186         type. Otherwise, it wouldn't compile with at least /bin/cc on
80187         ymp-cray-unicos9.0.2.X.
80188         Combine two mostly-identical uses of alloca into one.
80189         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80190
80191 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80192
80193         [From Emacs.]
80194
80195         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80196         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80197         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80198         obsolete NLIST_NAME_UNION.
80199         [__GNU__]: Undef BSD and FSCALE.
80200         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80201
80202 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80203
80204         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80205         an enum type, so that it's guaranteed to promote to int.  See:
80206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80207
80208 2003-08-03  Karl Berry  <karl@gnu.org>
80209
80210         * config/depcomp: update from automake.
80211
80212 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80213
80214         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80215         (strerror): Don't assume that a printable int fits in 14 bytes.
80216
80217 2003-07-31  Bruno Haible  <bruno@clisp.org>
80218
80219         * modules/getpass-gnu: New file.
80220         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80221
80222 2003-07-31  Bruno Haible  <bruno@clisp.org>
80223
80224         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80225
80226 2003-07-24  Karl Berry  <karl@gnu.org>
80227
80228         * config/missing: update from automake.
80229
80230 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80231             Bruno Haible  <bruno@clisp.org>
80232
80233         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80234         * lib/getline.c (getline, getdelim): Likewise.
80235         Remove _GNU_SOURCE define; now it's defined in config.h through
80236         m4/getline.m4.
80237
80238 2003-07-23  Karl Berry  <karl@gnu.org>
80239
80240         * config/config.sub: update from prep.
80241
80242 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80243
80244         * modules/xalloc (Depends-on): Add exitfail.
80245         * modules/xmemcoll: Likewise.
80246
80247 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80248
80249         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80250         over-parenthesization in macros.
80251
80252         Sync with coreutils.
80253
80254         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80255         required by C99.
80256
80257         Use `exit_failure' for xalloc and xmemcoll instead of their own
80258         private exit-failure variables.
80259         * lib/xalloc.h (xalloc_exit_failure): Remove.
80260         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80261         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80262         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80263         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80264         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80265
80266 2003-07-20  Jim Meyering  <jim@meyering.net>
80267
80268         * modules/closeout (Depends-on): Add exitfail.
80269         Suggestion from Bruno Haible.
80270
80271 2003-07-19  Karl Berry  <karl@gnu.org>
80272
80273         * config/config.sub: update from prep.
80274
80275 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80276
80277         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80278         Remove.
80279         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80280         to test that it can stand by itself.  Include "exitfail.h".
80281         Clients should set exit_failure instead.
80282         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80283
80284 2003-07-18  Bruno Haible  <bruno@clisp.org>
80285
80286         * modules/getndelim2: New file.
80287         * modules/getline: Share files with module getndelim2.
80288         * modules/getnline: Depend on getndelim2 instead of sharing files with
80289         it. Add getnline.c to lib_SOURCES.
80290         * MODULES.html.sh (func_all_modules): Add getndelim2.
80291
80292 2003-07-18  Bruno Haible  <bruno@clisp.org>
80293
80294         * m4/getndelim2.m4: New file.
80295         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80296         invoke gl_PREREQ_GETNDELIM2.
80297         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80298         gl_PREREQ_GETNDELIM2.
80299         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80300         gl_GETNDELIM2.
80301
80302 2003-07-18  Bruno Haible  <bruno@clisp.org>
80303
80304         * lib/getndelim2.h: New file.
80305         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80306         getndelim2.h.
80307         (getndelim2): Make non-static. Change return type to ssize_t.
80308         * lib/getline.h: Change argument names.
80309         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80310         * lib/getnline.c: Include getndelim2.h.
80311
80312 2003-07-18  Andreas Schwab  <schwab@suse.de>
80313
80314         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80315
80316 2003-07-17  Karl Berry  <karl@gnu.org>
80317
80318         * config/config.sub: update from prep.
80319
80320 2003-07-17  Bruno Haible  <bruno@clisp.org>
80321
80322         * modules/getnline: New file.
80323         * modules/getline: Add lib/getndelim2.c to source file list.
80324         * MODULES.html.sh (func_all_modules): Add getnline.
80325
80326 2003-07-17  Bruno Haible  <bruno@clisp.org>
80327
80328         * m4/getnline.m4: New file.
80329
80330 2003-07-17  Bruno Haible  <bruno@clisp.org>
80331
80332         * m4/Makefile.am.in: Remove file.
80333         * m4/Makefile.am: Remove file.
80334         * m4/Makefile.in: Remove file.
80335
80336 2003-07-17  Bruno Haible  <bruno@clisp.org>
80337
80338         * lib/getnline.h: New file.
80339         * lib/getnline.c: New file.
80340         * lib/getndelim2.c: New file, extracted from getline.c.
80341         (getndelim2): Renamed from getdelim2, with added nmax argument.
80342         * lib/getline.c: Include getndelim2.c.
80343         (getdelim2): Moved out to getndelim2.c.
80344         (getline, getdelim): Update.
80345
80346 2003-07-17  Bruno Haible  <bruno@clisp.org>
80347
80348         * lib/Makefile.am: Remove file.
80349         * lib/Makefile.in: Remove file.
80350
80351 2003-07-17  Bruno Haible  <bruno@clisp.org>
80352
80353         * configure.in: Remove file.
80354         * Makefile.in: Remove file.
80355
80356 2003-07-17  Bruno Haible  <bruno@clisp.org>
80357
80358         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80359
80360 2003-07-16  Karl Berry  <karl@gnu.org>
80361
80362         * config/srclist-update: was running fixlicense twice, which caused
80363                 texinfo.tex to be nullified for some reason.  Simplify,
80364                 $gplsrc is no longer needed as far as I can see?
80365
80366 2003-07-16  Jim Meyering  <jim@meyering.net>
80367
80368         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80369
80370 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80371
80372         * config/srclist.txt: Get the following files from gettext-runtime/intl
80373         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80374         ref-del.sin.  From Bruno Haible.
80375         * config/srclist-update (fixfile): Change grep pattern again, since the
80376         previous fix didn't work (there was another trailing $).  Use
80377         '[$]' to escape the $s.
80378
80379 2003-07-15  Karl Berry  <karl@gnu.org>
80380
80381         * lib/vasnprintf.c: update from gettext.
80382
80383 2003-07-15  Karl Berry  <karl@gnu.org>
80384
80385         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80386         gets expanded when surrounded by '$'.
80387
80388 2003-07-15  Jim Meyering  <jim@meyering.net>
80389
80390         * modules/save-cwd: Don't depend on error.  From Derek Price.
80391
80392 2003-07-15  Jim Meyering  <jim@meyering.net>
80393
80394         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80395
80396 2003-07-14  Simon Josefsson  <jas@extundo.com>
80397
80398         * modules/mempcpy: New file.
80399         * MODULES.html.sh (func_all_modules): Add mempcpy.
80400
80401 2003-07-14  Simon Josefsson  <jas@extundo.com>
80402
80403         * m4/mempcpy.m4: New file.
80404
80405 2003-07-14  Simon Josefsson  <jas@extundo.com>
80406
80407         * lib/mempcpy.h: New file.
80408         * lib/mempcpy.c: New file.
80409
80410 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80411
80412         * modules/getdate, modules/posixtm: Depend on mktime.
80413
80414 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80415
80416         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80417         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80418         unicodeio.c, unicodeio.h, unlocked-io.h:
80419         Switch from LGPL to GPL.
80420
80421 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80422
80423         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80424         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80425         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80426         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80427         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80428         updated automatically by ../config/srclist-update.  This changes
80429         their license from LPGL to GPL.
80430
80431 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80432
80433         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80434         assumed to refer to the root of the most recent stable gettext version.
80435         * config/srclistvars.sh: Add defaults for eggert.
80436         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80437         Match "This program" as well as "The program".  This is needed
80438         for gettext.
80439
80440 2003-07-14  Jim Meyering  <jim@meyering.net>
80441
80442         Don't emit diagnostics.  Let callers do that.
80443         * lib/save-cwd.c: Don't include "error.h".
80444         (save_cwd): Don't call error.  Ensure that errno is valid
80445         when returning nonzero.
80446
80447         * lib/save-cwd.h (restore_cwd): Update prototype.
80448         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80449         Simplify.  Don't call error upon failure.  Let callers do that.
80450         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80451         when auditing is enabled.  But don't bother updating the #if.
80452
80453 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80454
80455         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80456         it breaks C++ compilation.
80457         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80458
80459 2003-07-10  Simon Josefsson  <jas@extundo.com>
80460
80461         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80462
80463 2003-07-10  Jim Meyering  <jim@meyering.net>
80464
80465         * m4/clock_time.m4: Remove trailing blank.
80466         * m4/intmax_t.m4: Likewise.
80467
80468 2003-07-10  Jim Meyering  <jim@meyering.net>
80469
80470         * lib/vasnprintf.c: Remove trailing blanks.
80471         Make cpp indentation consistent.
80472
80473 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80474
80475         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80476         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80477         Switch from LGPL to GPL.
80478
80479 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80480
80481         * config/srclist.txt: Sort sublists.  Add
80482         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80483         that differ from gnulib for one reason or another; we'd like this list
80484         to be smaller but for now let's document what we have.
80485
80486 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80487
80488         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80489         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80490         and sweeter "eval x=$x".
80491         * config/srclist.txt: Get lib/argp* from glibc.
80492
80493 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80494
80495         * lib/mktime.c: Fix some boundary cases and remove need for floating
80496         point.
80497
80498         Issue a compile-time diagnostic if time_t is floating point, or if
80499         two's complement arithmetic is not in effect, or if arithmetic
80500         right shift does not propagate the sign.  These assumptions were
80501         all in the original code but they weren't checked.
80502
80503         (TIME_T_MIDPOINT, verify): New macros.
80504         (__isleap): Remove; it has integer overflow problems.
80505         (leapyear): New function, without those problems.
80506         (ydhms_tm_diff): Remove; splitting into two parts.
80507         (ydhms_diff): New function, containing the arithmetic part of
80508         the old ydhms_tm_diff function.  Issue a compile-time
80509         diagnostic if we are not using C99 integer division.
80510         Avoid casts when possible.
80511         (guess_time_tm): New function, containing the checking part of
80512         the old ydhms_tm_diff function.  Return the new value, rather than
80513         the difference between it and the old.  Accept a new argument T
80514         so that *T specifies the old value.  Check for overflow in the result.
80515
80516         (__mktime_internal): Use a time_t offset, not a long int offset.
80517         This undoes the 2003-06-04 change, which is no longer needed now
80518         that we have better overflow checking.
80519         (localtime_offset): Likewise.
80520
80521         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80522         and long are 64-bit but int is only 32-bit.
80523         (ydhms_diff): Use long int to store year1 and yday1.
80524         Issue a compile-time diagnostic if long int is not wide enough.
80525
80526         (__mktime_internal): Use long int to store adjusted year and yday.
80527         Use plain C rather than preprocessor commands, if that doesn't
80528         affect efficiency.
80529         Check for overflow (and try to repair) after each probe
80530         rather than checking only at the very end.  This avoids some bugs
80531         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80532         does not equal GMT offset at maximum time).
80533         Use integer to check for overflow rather than floating point; this
80534         is more portable to non-IEEE hosts, and is a tad faster.
80535         When we detect that we are oscillating between two values,
80536         don't check whether tm_isdst has the requested value, since
80537         we already know the answer.  When tm_isdst has the wrong value,
80538         use a different heuristic to find the right one, based on the
80539         extreme values actually observed in practice in tz2003a,
80540         rather than the (overly optimistic) "previous 3 calendar quarters".
80541
80542         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80543         "T const" to accommodate glibc style.
80544         (check_result): Use less-confusing report format.  "long" -> "long int.
80545         (main): Likewise.
80546         Don't loop if the iteration overflows time_t.
80547         Allow a negative step in the iteration.
80548
80549 2003-07-06  Karl Berry  <karl@gnu.org>
80550
80551         * config/depcomp: update from automake.
80552         * config/config.sub: update from prep.
80553
80554 2003-07-03  Karl Berry  <karl@gnu.org>
80555
80556         * config/config.guess: update from prep.
80557
80558 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80559
80560         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80561         xreadlink.c now includes it unconditionally.
80562
80563 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80564
80565         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80566         having it depend on HAVE_SYS_TYPES_H.
80567
80568 2003-07-01  Bruno Haible  <bruno@clisp.org>
80569
80570         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80571         <sys/types.h> should be sufficient.
80572         Reported by Paul Eggert.
80573
80574 2003-06-26  Karl Berry  <karl@gnu.org>
80575
80576         * config/depcomp: update from automake.
80577
80578 2003-06-26  Bruno Haible  <bruno@clisp.org>
80579
80580         * modules/human: Depend on module stdbool.
80581
80582 2003-06-25  Bruno Haible  <bruno@clisp.org>
80583
80584         * modules/readlink: New file.
80585         * modules/xreadlink: Depend on it.
80586         * MODULES.html.sh (func_all_modules): Add readlink.
80587
80588 2003-06-25  Bruno Haible  <bruno@clisp.org>
80589
80590         * m4/readlink.m4: New file.
80591
80592 2003-06-25  Bruno Haible  <bruno@clisp.org>
80593
80594         * lib/readlink.c: New file.
80595
80596 2003-06-22  Karl Berry  <karl@gnu.org>
80597
80598         * config/srclist.txt: update mkinstalldirs from automake.
80599         * config/mkinstalldirs: update.
80600
80601 2003-06-22  Bruno Haible  <bruno@clisp.org>
80602
80603         Portability to mingw32.
80604         * m4/ssize_t.m4: New file, from GNU gettext.
80605         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80606         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80607
80608 2003-06-22  Bruno Haible  <bruno@clisp.org>
80609
80610         * modules/safe-read: Add m4/ssize_t.m4.
80611         * modules/xreadlink: Add m4/ssize_t.m4.
80612
80613 2003-06-20  Bruno Haible  <bruno@clisp.org>
80614
80615         Assume C89, so PARAMS isn't needed.
80616         * lib/unicodeio.h (PARAMS): Remove.
80617         * lib/unicodeio.c: Don't use PARAMS.
80618
80619 2003-06-18  Karl Berry  <karl@gnu.org>
80620
80621         * config/config.{guess,sub}: update from prep.
80622
80623 2003-06-18  Jim Meyering  <jim@meyering.net>
80624
80625         Merge changes from coreutils.
80626         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80627         Remove explicit declarations of xmalloc and realloc.
80628         Include xalloc.h.
80629         (read_utmp): Remove anachronistic cast of xmalloc.
80630
80631 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80632
80633         Assume C89, so PARAMS isn't needed.
80634         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80635         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80636         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80637         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80638         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80639         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80640         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80641         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80642         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80643         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80644         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80645         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80646         no longer needed. Anyway, config.h should always be included before any
80647         other file.
80648
80649 2003-06-11  Simon Josefsson  <jas@extundo.com>
80650
80651         * modules/sysexits: New file.
80652         * MODULES.html.sh (func_all_modules): Add sysexits.
80653
80654 2003-06-11  Simon Josefsson  <jas@extundo.com>
80655
80656         * lib/sysexit_.h: New file.
80657
80658 2003-06-11  Derek Price  <derek@ximbiot.com>
80659
80660         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80661         necessary.
80662
80663 2003-06-11  Bruno Haible  <bruno@clisp.org>
80664
80665         * m4/sysexits.m4: New file.
80666
80667 2003-06-10  Simon Josefsson  <jas@extundo.com>
80668
80669         * lib/argp.h: New file, from glibc.
80670         * lib/argp-ba.c: New file, from glibc.
80671         * lib/argp-eexst.c: New file, from glibc.
80672         * lib/argp-fmtstream.c: New file, from glibc.
80673         * lib/argp-fmtstream.h: New file, from glibc.
80674         * lib/argp-fs-xinl.c: New file, from glibc.
80675         * lib/argp-help.c: New file, from glibc.
80676         * lib/argp-namefrob.h: New file, from glibc.
80677         * lib/argp-parse.c: New file, from glibc.
80678         * lib/argp-pv.c: New file, from glibc.
80679         * lib/argp-pvh.c: New file, from glibc.
80680         * lib/argp-xinl.c: New file, from glibc.
80681
80682 2003-06-10  Simon Josefsson  <jas@extundo.com>
80683
80684         * modules/strchrnul: New file.
80685
80686 2003-06-10  Simon Josefsson  <jas@extundo.com>
80687
80688         * modules/argp: New file.
80689
80690 2003-06-10  Simon Josefsson  <jas@extundo.com>
80691
80692         * m4/strchrnul.m4: New file.
80693
80694 2003-06-10  Simon Josefsson  <jas@extundo.com>
80695
80696         * lib/strchrnul.h: New file.
80697         * lib/strchrnul.c: New file.
80698
80699 2003-06-10  Bruno Haible  <bruno@clisp.org>
80700
80701         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80702
80703 2003-06-07  Karl Berry  <karl@gnu.org>
80704
80705         * config/config.{guess,sub}: update from prep.
80706
80707 2003-06-07  Jim Meyering  <jim@meyering.net>
80708
80709         * modules/strtod: Use $(...) notation, not @...@ for
80710         AC_REPLACE'd variables.
80711         * modules/localcharset: Likewise.
80712
80713 2003-06-07  Jim Meyering  <jim@meyering.net>
80714
80715         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80716         in place of my name in the copyright comment.
80717         Remove definition and uses of __P.
80718
80719         From coreutils.
80720         * lib/stat.c: Don't declare xmalloc explicitly.
80721         Instead, include "xalloc.h".
80722         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80723         xrealloc, and xcalloc return values.
80724         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80725         Improve comment.
80726         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80727
80728 2003-06-07  Bruno Haible  <bruno@clisp.org>
80729
80730         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80731         avoid AC_CONFIG_LINKS.
80732         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80733         fnmatch.h, to avoid AC_CONFIG_LINKS.
80734         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80735
80736 2003-06-07  Bruno Haible  <bruno@clisp.org>
80737
80738         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80739         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80740         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80741         directory.
80742         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80743         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80744         directory.
80745
80746 2003-06-06  Jim Meyering  <jim@meyering.net>
80747
80748         Merge from coreutils.
80749         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80750         Consolidate declarations and initializations of *_base* locals.
80751
80752         Merge from coreutils.
80753         This avoids a core dump on systems without GNU putenv,
80754         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80755         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80756         (unsetenv): New static function, from GNU libc.
80757         (rpl_putenv): Use it.
80758
80759         * lib/modechange.c: Remove trailing blanks.
80760
80761         Merge from coreutils.
80762         * lib/fsusage.c: Remove declaration of statfs.
80763         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80764
80765         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80766
80767 2003-06-06  Jim Meyering  <jim@meyering.net>
80768
80769         * lib/stdbool_.h: Renamed from stdbool.h.in.
80770
80771 2003-06-06  Jim Meyering  <jim@meyering.net>
80772             Bruno Haible  <bruno@clisp.org>
80773
80774         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80775         Adjust Makefile.am snippet not to redirect directly to target.
80776         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80777
80778 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80779
80780         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80781         mismatch, look in future quarters as well as past.  This fixes a
80782         bug when processing fall-backwards gaps immediately after a long
80783         period of daylight-saving time.
80784
80785         * lib/mktime.c: Assume freestanding C89 or better.
80786         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80787         (__P): Remove; not used.
80788         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80789         (mktime, not_equal_tm, print_tm, check_result,
80790         main): Use prototypes.  Use const * where appropriate.
80791         (main): Fix typo in testing code that uncovered by above changes.
80792         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80793
80794 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80795
80796         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80797         locale.h, localeconv.  This merges changes from coreutils.
80798
80799         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80800         It can be removed after the next Autoconf is released.
80801         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80802         needed.
80803
80804 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80805
80806         * lib/mktime.c: Fix Debian bug 177940
80807         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80808         (localtime_offset): Now long int, not time_t, because we want it
80809         to be guaranteed to be signed.  All uses changed.
80810         (__mktime_internal): If overflow would occur when adding offset,
80811         don't add it.
80812
80813         Merge 'human' changes from coreutils.  Rewrite to support
80814         locale-specific notations like thousands separators.
80815         * lib/human.c: Simplify authorship notice.
80816         Include human.h immediately after config.h.
80817         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80818         <limits.h>: Do not include, since human.h does.
80819         (SIZE_MAX, UINTMAX_MAX): New macros.
80820         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80821         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80822         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80823         (power_letter): Renamed from suffixes.
80824         (generate_suffix_backwards): Remove.
80825         (adjust_value): Now takes int style (because of human.h changes)
80826         and long double value (for greater precision on some platforms).
80827         (group_number): New function.
80828         (human_readable): Use it.  Use integer options, not enum.
80829         Put the options before the sizes in the arg list.
80830         Support all the new options.
80831         The old human_readable function has been removed;
80832         use inttostr.h instead.
80833         (human_readable, default_block_size, humblock):
80834         Use uintmax_t, not int, for block sizes.
80835         (human_readable_inexact, block_size_types): Remove.
80836         (block_size_opts): New constant.
80837         (human_options): Renamed from human_block_size, with new signature
80838         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80839         * lib/human.h: Add copyright and authorship notice.
80840         Include <limits.h> and <stdbool.h> unconditionally.
80841         (PARAMS): Remove.  All uses removed.
80842         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80843         (enum human_inexact_style): Remove tag; now a nameless enum.
80844         (human_floor, human_ceiling, human_round_to_even): Now have
80845         values 2, 0, 1 rather than -1, 1, 0.
80846         (human_group_digits, human_suppress_point_zero, human_autoscale,
80847         human_base_1024, human_SI, human_B): New constants.
80848         (human_readable_inexact, human_block_size): Remove.
80849         (human_readable): Size args are now uintmax_t, not int.
80850         (human_options): New decl.
80851
80852         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80853         unnecessary now that we assume C89 or better.  This change
80854         imported from coreutils.
80855
80856         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80857         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80858         in the 2003-05-30 sync from glibc.
80859
80860         .h files should stand alone, but we shouldn't include <sys/types.h>
80861         if we can get away with just <stddef.h>.
80862
80863         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80864         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80865         rather than <sys/types.h>, as we merely need size_t.
80866         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80867         to get size_t.
80868         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80869         Include <stdio.h>, to get FILE.
80870         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80871         memcasecmp.h has included <stddef.h> and all we need is size_t.
80872         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80873         our interface, instead of including <sys/types.h>
80874
80875 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80876
80877         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80878         now, as glibc mktime is buggy on non-glibc systems.
80879
80880 2003-06-03  Karl Berry  <karl@gnu.org>
80881
80882         * config/config.sub: update from prep.
80883
80884 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80885
80886         [from coreutils]
80887         Fix some minor time-related bugs with POSIX time arguments.
80888         Some valid time stamps were being rejected (notably -1, and
80889         time stamps before 1900 on 64-bit hosts).  And some invalid
80890         time stamps were being accepted, e.g. September 31.
80891
80892         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80893         that we can return (time_t) -1 successfully.
80894         * lib/posixtm.c: Likewise.
80895         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80896         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80897         (t): Remove static var.
80898         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80899         of static var.  All uses changed.
80900         (year): Do not reject years before 1900; they can occur with
80901         64-bit time_t.
80902         (posix_time_parse): Do not check for out-of-range components;
80903         that is now the caller's responsibility, since our checks were
80904         only approximations.
80905         (posixtime): Use mktime to check for out-of-range components,
80906         since it knows them exactly.
80907         If mktime returns (time_t) -1, check whether an error actually occurred
80908         by invoking localtime on -1.
80909         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80910         posixtime failures better.
80911         Improve the test data (in comments only).
80912
80913 2003-06-02  Karl Berry  <karl@gnu.org>
80914
80915         * config/mkinstalldirs (version): new variable.
80916         (--version): new option.
80917         (usage): improve message.
80918
80919 2003-05-30  Karl Berry  <karl@gnu.org>
80920
80921         * lib/mktime.c: update from libc.
80922
80923 2003-05-30  Bruno Haible  <bruno@clisp.org>
80924
80925         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80926         * config/config.rpath: Upgrade to gettext-0.12.1.
80927
80928 2003-05-30  Bruno Haible  <bruno@clisp.org>
80929
80930         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80931         * m4/nls.m4: New file, from gettext-0.12.1.
80932         * m4/po.m4: New file, from gettext-0.12.1.
80933         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80934
80935 2003-05-30  Bruno Haible  <bruno@clisp.org>
80936
80937         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80938         * lib/localcharset.h: Likewise.
80939         * lib/localcharset.c: Likewise.
80940
80941 2003-05-29  Karl Berry  <karl@gnu.org>
80942
80943         * config/config.rpath: update from gettext.
80944
80945 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80946
80947         Assume the headers required for C89 freestanding compilers.
80948         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80949         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80950         * m4/human.m4 (gl_HUMAN): Likewise.
80951         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80952         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80953         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80954         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80955         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80956         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80957
80958 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80959
80960         Assume the headers required for C89 freestanding compilers.
80961         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80962         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80963         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80964         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80965         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80966         define, since <limits.h> is guaranteed to do that.
80967         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80968         * lib/exclude.c: Include <stdbool.h> unconditionally.
80969         * lib/tempname.c: Include <stddef.h> unconditionally.
80970         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80971         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80972         <stddef.h> does that.
80973         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80974         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80975         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80976         needed.
80977         * lib/xstrtol.c: Likewise.
80978         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80979         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80980
80981         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80982         warnings on some platforms.
80983
80984         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80985         arbitrarily.
80986
80987 2003-05-26  Jim Meyering  <jim@meyering.net>
80988
80989         Merge in a change from coreutils:
80990         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80991         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80992         that condition, rather than `-1' which is slightly misleading.
80993         Change the name of the cache variable to have the gl_ prefix.
80994         Prompted by a patch from Richard Dawe for DJGPP.
80995
80996 2003-05-24  Karl Berry  <karl@gnu.org>
80997
80998         * config/config.guess: update from prep.
80999
81000 2003-05-22  Karl Berry  <karl@gnu.org>
81001
81002         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81003
81004 2003-05-20  Karl Berry  <karl@gnu.org>
81005
81006         * config/config.guess: update from prep.
81007
81008 2003-05-18  Karl Berry  <karl@gnu.org>
81009
81010         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81011         might actually be set by the user.
81012
81013         * config/depcomp, install-sh, mdate-sh: update from automake.
81014
81015 2003-05-17  Bruno Haible  <bruno@clisp.org>
81016
81017         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81018         invalid expansion for AC_EGREP_CPP.
81019         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81020         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81021         Suggested by Akim Demaille <akim@epita.fr> in
81022         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81023
81024 2003-05-12  Jim Meyering  <jim@meyering.net>
81025
81026         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81027         the space-padded-by-default conversion specifiers, %e, %k, %l.
81028
81029 2003-05-12  Bruno Haible  <bruno@clisp.org>
81030
81031         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81032         the string is longer than 4 KB.
81033
81034 2003-05-11  Karl Berry  <karl@gnu.org>
81035
81036         * config/config.{guess,sub}: update from prep.
81037
81038 2003-05-09  Bruno Haible  <bruno@clisp.org>
81039
81040         * modules/error: Add m4/strerror_r.m4 to file list.
81041
81042 2003-05-03  Bruno Haible  <bruno@clisp.org>
81043
81044         Upgrade to Unicode-4.0.
81045         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81046         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81047         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81048         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81049         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81050         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81051         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81052         Change width of U+E0100..U+E01EF from 1 to 0.
81053
81054 2003-04-25  Jim Meyering  <jim@meyering.net>
81055
81056         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81057         of type size_t, not int.
81058
81059 2003-04-25  Bruno Haible  <bruno@clisp.org>
81060
81061         * lib/copy-file.c: Include <stddef.h>, for size_t.
81062
81063 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81064
81065         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81066         code which expansion is under static control.  Patch imported from
81067         Akim Demaille's patch to Bison; see
81068         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81069
81070 2003-04-14  Bruno Haible  <bruno@clisp.org>
81071
81072         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81073
81074 2003-04-11  Jim Meyering  <jim@meyering.net>
81075
81076         Merge changes from Coreutils.
81077
81078         2003-03-22  Jim Meyering  <jim@meyering.net>
81079
81080         * lib/strftime.c (widen): Cast alloca return value to proper type.
81081
81082         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81083
81084         From GNU libc.
81085         * lib/strftime.c (my_strftime): Handle very large width
81086         specifications for numeric values correctly.  Improve checks for
81087         overflow.
81088
81089         2003-01-19  Jim Meyering  <jim@meyering.net>
81090
81091         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81092         definitions.
81093         (nl_get_alt_digit) [! defined my_strftime]: Define.
81094         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81095         _nl_get_alt_digit and _nl_get_walt_digit.
81096
81097         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81098         libc. These changes have no effect outside of _LIBC.
81099
81100 2003-04-10  Bruno Haible  <bruno@clisp.org>
81101
81102         * modules/findprog: New file.
81103         * MODULES.html.sh (func_all_modules): Add it.
81104
81105 2003-04-10  Bruno Haible  <bruno@clisp.org>
81106
81107         * m4/findprog.m4: New file.
81108         * m4/eaccess.m4: New file.
81109
81110 2003-04-10  Bruno Haible  <bruno@clisp.org>
81111
81112         * lib/findprog.h: New file, from GNU gettext.
81113         * lib/findprog.c: New file, from GNU gettext.
81114
81115 2003-04-05  Jim Meyering  <jim@meyering.net>
81116
81117         Merge changes from Coreutils.
81118
81119         * lib/exclude.h (PARAMS): Remove definition and uses.
81120         * lib/exclude.c: Remove uses of `PARAMS'.
81121
81122         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81123         Add test-cases for DOS filenames. Declare program_name.
81124         (main): Set up program_name.  Patch by Rich Dawe.
81125
81126         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81127         error from mntctl.
81128         Use mntctl's return value to drive the entry-processing loop, since
81129         we can't rely on the value of the vmt_length member in the last
81130         entry.  On some systems doing so could result in exhausting
81131         virtual memory.  Based in part on a patch from Mike Jetzer.
81132
81133 2003-04-04  Bruno Haible  <bruno@clisp.org>
81134
81135         * modules/linebreak: New file.
81136         * MODULES.html.sh (func_all_modules): Add it.
81137
81138 2003-04-04  Bruno Haible  <bruno@clisp.org>
81139
81140         * m4/linebreak.m4: New file.
81141
81142 2003-04-04  Bruno Haible  <bruno@clisp.org>
81143
81144         * lib/linebreak.h: New file, from GNU gettext.
81145         * lib/linebreak.c: New file, from GNU gettext with slight
81146         modifications.
81147         * lib/lbrkprop.h: New file, from GNU gettext.
81148
81149 2003-04-03  Bruno Haible  <bruno@clisp.org>
81150
81151         * modules/utf8-ucs4: New file.
81152         * modules/utf16-ucs4: New file.
81153         * modules/ucs4-utf8: New file.
81154         * modules/ucs4-utf16: New file.
81155         * MODULES.html.sh (func_all_modules): Add them.
81156
81157 2003-04-03  Bruno Haible  <bruno@clisp.org>
81158
81159         * m4/utf-ucs4.m4: New file.
81160         * m4/ucs4-utf.m4: New file.
81161
81162 2003-04-03  Bruno Haible  <bruno@clisp.org>
81163
81164         * lib/utf8-ucs4.h: New file, from GNU gettext.
81165         * lib/utf16-ucs4.h: New file, from GNU gettext.
81166         * lib/ucs4-utf8.h: New file, from GNU gettext.
81167         * lib/ucs4-utf16.h: New file, from GNU gettext.
81168
81169 2003-04-02  Bruno Haible  <bruno@clisp.org>
81170
81171         * modules/binary-io: New file.
81172         * MODULES.html.sh (func_all_modules): Add it.
81173
81174 2003-04-02  Bruno Haible  <bruno@clisp.org>
81175
81176         * lib/binary-io.h: New file, from GNU gettext.
81177
81178 2003-04-01  Bruno Haible  <bruno@clisp.org>
81179
81180         * modules/pathname: New file.
81181         * MODULES.html.sh (func_all_modules): Add it.
81182
81183 2003-04-01  Bruno Haible  <bruno@clisp.org>
81184
81185         * lib/pathname.h: New file, from GNU gettext.
81186         * lib/concatpath.c: New file, from GNU gettext.
81187
81188 2003-03-30  Bruno Haible  <bruno@clisp.org>
81189
81190         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81191
81192 2003-03-30  Bruno Haible  <bruno@clisp.org>
81193
81194         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81195         function chown() doesn't exist.
81196
81197 2003-03-28  Bruno Haible  <bruno@clisp.org>
81198
81199         * modules/copy-file: New file.
81200         * MODULES.html.sh (func_all_modules): Add it.
81201
81202 2003-03-28  Bruno Haible  <bruno@clisp.org>
81203
81204         * m4/copy-file.m4: New file.
81205
81206 2003-03-28  Bruno Haible  <bruno@clisp.org>
81207
81208         * lib/copy-file.h: New file, from GNU gettext.
81209         * lib/copy-file.c: New file, from GNU gettext.
81210
81211 2003-03-18  Jim Meyering  <jim@meyering.net>
81212
81213         * lib/quote.c (quote_n): Fix typo in comment.
81214
81215 2003-03-18  Bruno Haible  <bruno@clisp.org>
81216
81217         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81218         checking.
81219         * m4/onceonly_2_57.m4: Likewise.
81220
81221 2003-03-17  Bruno Haible  <bruno@clisp.org>
81222
81223         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81224         (m4_quote): Remove macro.
81225         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81226
81227 2003-03-14  Jim Meyering  <jim@meyering.net>
81228
81229         Merge changes from Coreutils.
81230         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81231         to be const, in order to avoid warnings.
81232         (obstack_room): Likewise.
81233         (obstack_empty_p): Likewise.
81234
81235 2003-03-14  Bruno Haible  <bruno@clisp.org>
81236
81237         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81238         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81239
81240 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81241
81242         Merge changes from Bison.
81243         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81244         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81245         when compiling Bison 1.875's `bitset bset = obstack_alloc
81246         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81247         * lib/hash.c: Include <stdbool.h> unconditionally.
81248
81249 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81250
81251         * m4/onceonly.m4 (m4_quote): New macro.
81252         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81253         Quote AC_FOREACH variable-expansions properly.
81254
81255 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81256
81257         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81258
81259 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81260
81261         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81262         Reported by Bruce Becker; see:
81263         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81264
81265 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81266             Bruno Haible  <bruno@clisp.org>
81267
81268         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81269         Reported by John Hughes, see
81270         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81271
81272 2003-02-20  Bruno Haible  <bruno@clisp.org>
81273
81274         * MODULES.html.sh (func_all_modules): Add poll.
81275
81276 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81277
81278         * modules/poll: New file.
81279
81280 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81281
81282         * lib/poll_.h: New file.
81283         * lib/poll.c: New file.
81284
81285 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81286
81287         * m4/poll.m4: New file.
81288
81289 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81290
81291         * modules/mathl: New file.
81292
81293 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81294
81295         * lib/mathl.h: New file.
81296         * lib/acosl.c: New file.
81297         * lib/asinl.c: New file.
81298         * lib/atanl.c: New file.
81299         * lib/ceill.c: New file.
81300         * lib/cosl.c: New file.
81301         * lib/expl.c: New file.
81302         * lib/floorl.c: New file.
81303         * lib/frexpl.c: New file.
81304         * lib/ldexpl.c: New file.
81305         * lib/logl.c: New file.
81306         * lib/sincosl.c: New file.
81307         * lib/sinl.c: New file.
81308         * lib/sqrtl.c: New file.
81309         * lib/tanl.c: New file.
81310         * lib/trigl.c: New file.
81311         * lib/trigl.h: New file.
81312
81313 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81314
81315         * m4/mathl.m4: New file.
81316
81317 2003-02-18  Bruno Haible  <bruno@clisp.org>
81318
81319         * MODULES.html.sh (func_all_modules): Add mathl.
81320
81321 2003-02-17  Bruno Haible  <bruno@clisp.org>
81322
81323         * modules/mkdtemp: New module.
81324         * MODULES.html.sh (func_all_modules): Add it.
81325
81326 2003-02-17  Bruno Haible  <bruno@clisp.org>
81327
81328         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81329
81330 2003-02-17  Bruno Haible  <bruno@clisp.org>
81331
81332         * lib/mkdtemp.h: New file, from GNU gettext.
81333         * lib/mkdtemp.c: New file, from GNU gettext.
81334
81335 2003-02-02  Jim Meyering  <jim@meyering.net>
81336
81337         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81338         e.g. glibc-2.2.93.
81339
81340 2003-01-31  Bruno Haible  <bruno@clisp.org>
81341
81342         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81343         'rpl_rename'.
81344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81345         'rpl_strnlen'.
81346         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81347         'rpl_strtod'.
81348         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81349         'rpl_utime'.
81350
81351 2003-01-31  Bruno Haible  <bruno@clisp.org>
81352
81353         * lib/rename.c: #undef rename before defining rpl_rename.
81354         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81355
81356 2003-01-30  Bruno Haible  <bruno@clisp.org>
81357
81358         * modules/vasnprintf, modules/vasprintf: New modules.
81359         * MODULES.html.sh (func_all_modules): Add them.
81360
81361 2003-01-30  Bruno Haible  <bruno@clisp.org>
81362
81363         * m4/signed.m4: New file, from GNU gettext.
81364         * m4/longdouble.m4: New file, from GNU gettext.
81365         * m4/wchar_t.m4: New file, from GNU gettext.
81366         * m4/wint_t.m4: New file, from GNU gettext.
81367         * m4/vasnprintf.m4: New file.
81368         * m4/vasprintf.m4: New file.
81369
81370 2003-01-30  Bruno Haible  <bruno@clisp.org>
81371
81372         * lib/printf-args.h: New file, from GNU gettext.
81373         * lib/printf-args.c: New file, from GNU gettext.
81374         * lib/printf-parse.h: New file, from GNU gettext.
81375         * lib/printf-parse.c: New file, from GNU gettext.
81376         * lib/vasnprintf.h: New file, from GNU gettext.
81377         * lib/vasnprintf.c: New file, from GNU gettext.
81378         * lib/asnprintf.c: New file, from GNU gettext.
81379         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81380         * lib/vasprintf.c: New file, from GNU gettext.
81381         * lib/asprintf.c: New file, from GNU gettext.
81382
81383 2003-01-29  Bruno Haible  <bruno@clisp.org>
81384
81385         * modules/stpncpy: New module.
81386         * MODULES.html.sh (func_all_modules): Add it.
81387
81388 2003-01-29  Bruno Haible  <bruno@clisp.org>
81389
81390         * m4/stpncpy.m4: New file.
81391
81392 2003-01-29  Bruno Haible  <bruno@clisp.org>
81393
81394         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81395         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81396
81397 2003-01-28  Bruno Haible  <bruno@clisp.org>
81398
81399         * modules/c-ctype: New module.
81400         * MODULES.html.sh (func_all_modules): Add it.
81401
81402 2003-01-28  Bruno Haible  <bruno@clisp.org>
81403
81404         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81405         Paul Eggert.
81406         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81407         Paul Eggert.
81408
81409 2003-01-27  Bruno Haible  <bruno@clisp.org>
81410
81411         * modules/xsetenv: New module.
81412         * MODULES.html.sh (func_all_modules): Add it.
81413
81414 2003-01-27  Bruno Haible  <bruno@clisp.org>
81415
81416         * lib/xsetenv.h: New file, from GNU gettext.
81417         * lib/xsetenv.c: New file, from GNU gettext.
81418
81419 2003-01-23  Jim Meyering  <jim@meyering.net>
81420
81421         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81422         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81423
81424 2003-01-23  Bruno Haible  <bruno@clisp.org>
81425
81426         * modules/minmax: New module.
81427         * MODULES.html.sh (func_all_modules): Add it.
81428
81429 2003-01-23  Bruno Haible  <bruno@clisp.org>
81430
81431         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81432         Eggert.
81433
81434 2003-01-22  Bruno Haible  <bruno@clisp.org>
81435
81436         * modules/exit: New module.
81437         * MODULES.html.sh (func_all_modules): Add it.
81438
81439 2003-01-22  Bruno Haible  <bruno@clisp.org>
81440
81441         * lib/exit.h: New file, from GNU gettext.
81442
81443 2003-01-19  Bruno Haible  <bruno@clisp.org>
81444
81445         * gnulib-tool: Recognize option --extract-maintainer.
81446         (func_get_maintainer): New function.
81447         * modules/*: Add Maintainer entry.
81448
81449 2003-01-16  Jim Meyering  <jim@meyering.net>
81450
81451         * m4/regex.m4: The `regex' struct is both input and output.
81452         Initialize it before each use.  Patch by Tim Waugh.
81453
81454 2003-01-16  Bruno Haible  <bruno@clisp.org>
81455
81456         * MODULES.html.sh: Add a table of contents. Add the module name as
81457         leftmost column. Add hyperlinks.
81458
81459 2003-01-15  Bruno Haible  <bruno@clisp.org>
81460
81461         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81462
81463 2003-01-15  Bruno Haible  <bruno@clisp.org>
81464
81465         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81466         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81467         suffix.
81468
81469 2003-01-15  Bruno Haible  <bruno@clisp.org>
81470
81471         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81472
81473 2003-01-15  Bruno Haible  <bruno@clisp.org>
81474
81475         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81476         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81477
81478 2003-01-14  Jim Meyering  <jim@meyering.net>
81479
81480         * lib/same.c (same_name): Tweak a comment.
81481
81482 2003-01-14  Bruno Haible  <bruno@clisp.org>
81483
81484         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81485         when a string comparison is sufficient.
81486
81487 2003-01-14  Bruno Haible  <bruno@clisp.org>
81488
81489         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81490         'unsigned int'.
81491
81492 2003-01-14  Bruno Haible  <bruno@clisp.org>
81493
81494         * lib/hash-pjw.c: Add comment about low quality of this function.
81495
81496 2003-01-13  Bruno Haible  <bruno@clisp.org>
81497
81498         * modules/stpcpy: Distribute lib/stpcpy.h.
81499         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81500
81501 2003-01-13  Bruno Haible  <bruno@clisp.org>
81502
81503         * modules/*: Add a description.
81504         * modules/strpbrk: Fix Makefile.am snippet.
81505         * modules/strtoimax: Fix dependencies.
81506         * modules/strtoumax: Likewise.
81507
81508 2003-01-13  Bruno Haible  <bruno@clisp.org>
81509
81510         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81511         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81512         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81513
81514 2003-01-13  Bruno Haible  <bruno@clisp.org>
81515
81516         * gnulib-tool (func_create_testdir): Store config/* files in the main
81517         directory.
81518         * config.rpath: Move to ...
81519         * config/config.rpath: ... here.
81520         * modules/gettext: Contains config/config.rpath, not config.rpath.
81521         * modules/iconv: Likewise.
81522
81523 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81524
81525         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81526         to avoid collisions with libcurses and libreadline.
81527
81528         * m4/getstr.m4: Remove.
81529         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81530
81531 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81532
81533         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81534         to avoid collisions with libcurses and libreadline.
81535
81536         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81537         * lib/getstr.h, getstr.c: Remove.
81538         * lib/getline.c: Include "getline.h", to check interface.
81539         Move body of old getstr.c here: this defines MIN_CHUNK and
81540         declares getdelim2, which is renamed from getstr.
81541         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81542
81543         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81544         All uses changed.
81545         * lib/linebuffer.h: Likewise.
81546         (readline): Remove backward-compatibility macro.
81547
81548 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81549
81550         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81551         to avoid collisions with libcurses and libreadline.
81552         * getstr: Remove.
81553         * MODULES.html.sh: Remove getstr.
81554         * modules/getline: Depend on unlocked-io, not getstr.
81555
81556 2003-01-12  Jim Meyering  <jim@meyering.net>
81557
81558         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81559
81560 2003-01-10  Bruno Haible  <bruno@clisp.org>
81561
81562         * modules/alloca: Change Makefile.am requirements. Simplify Include
81563         requirements. Add lib/alloca_.h to file list.
81564
81565 2003-01-10  Bruno Haible  <bruno@clisp.org>
81566
81567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81568
81569 2003-01-10  Bruno Haible  <bruno@clisp.org>
81570
81571         * lib/alloca_.h: New file.
81572         * lib/getdate.y: Unconditionally include alloca.h.
81573         * lib/makepath.c: Likewise.
81574         * lib/setenv.c: Likewise.
81575         * lib/userspec.c: Likewise.
81576
81577 2003-01-09  Karl Berry  <karl@gnu.org>
81578
81579         * MODULES.html.sh: include `dirname $0` in PATH, to find
81580         gnulib-tool.
81581
81582 2003-01-09  Bruno Haible  <bruno@clisp.org>
81583
81584         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81585         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81586
81587 2003-01-09  Bruno Haible  <bruno@clisp.org>
81588
81589         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81590
81591 2003-01-09  Bruno Haible  <bruno@clisp.org>
81592
81593         * lib/stdbool.h.in: New file.
81594
81595 2003-01-09  Bruno Haible  <bruno@clisp.org>
81596
81597         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81598         * MODULES.html.sh: Likewise.
81599
81600 2003-01-08  Jim Meyering  <jim@meyering.net>
81601
81602         * lib/full-write.c: Undefine and define-away `const' after inclusion
81603         of errno.h, not before.  Suggestion from Bruno Haible.
81604
81605 2003-01-08  Bruno Haible  <bruno@clisp.org>
81606
81607         * modules/full-read: Depend on full-write.
81608
81609 2003-01-08  Bruno Haible  <bruno@clisp.org>
81610
81611         * lib/safe-read.c: Include specification header first, to ensure its
81612         selfcontainedness.
81613         * lib/full-write.c: Likewise.
81614
81615 2003-01-07  Jim Meyering  <jim@meyering.net>
81616
81617         * lib/full-write.c: Rework so that it may serve to define full_read,
81618         too.
81619         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81620
81621 2003-01-07  Bruno Haible  <bruno@clisp.org>
81622
81623         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81624         <inttypes.h>.
81625         * lib/xstrtol.h: Likewise.
81626         * lib/xstrtoimax.c: Likewise.
81627         * lib/xstrtoumax.c: Likewise.
81628         * lib/human.h: Likewise.
81629
81630         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81631         on systems that have <inttypes.h> but not <stdint.h>.
81632
81633 2003-01-07  Bruno Haible  <bruno@clisp.org>
81634
81635         * MODULES.html.sh: Add copyright notice.
81636         (missed_files): Omit CVS directory entries.
81637         (func_module): Make it work with sed-3.02.
81638         * MODULES.txt: Remove file.
81639
81640 2003-01-06  Jim Meyering  <jim@meyering.net>
81641
81642         * lib/version-etc.c: Update year in translatable copyright string.
81643
81644 2003-01-03  Karl Berry  <karl@gnu.org>
81645
81646         * config/config.{guess,sub}: update from prep.
81647
81648 2003-01-02  Karl Berry  <karl@gnu.org>
81649
81650         * doc/COPYING.DOC: belatedly updated to 1.2.
81651
81652 2003-01-01  Karl Berry  <karl@gnu.org>
81653
81654         * gnulib-tool (func_verify_module): report module name $module in
81655         error message, not $1.
81656         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81657         be created, only if it doesn't exist.
81658         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81659
81660 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81661
81662         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81663
81664 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81665
81666         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81667         memcmp if strcoll doesn't work.
81668
81669 2002-12-31  Bruno Haible  <bruno@clisp.org>
81670
81671         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81672         nonempty.
81673
81674 2002-12-31  Bruno Haible  <bruno@clisp.org>
81675
81676         * lib/memcoll.c (STRCOLL): New macro.
81677         (memcoll): Use it.
81678
81679 2002-12-31  Bruno Haible  <bruno@clisp.org>
81680
81681         * lib/localcharset.h: New file.
81682         * lib/localcharset.c: Include it.
81683         * lib/unicodeio.c: Likewise.
81684
81685 2002-12-31  Bruno Haible  <bruno@clisp.org>
81686
81687         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81688         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81689
81690 2002-12-31  Bruno Haible  <bruno@clisp.org>
81691
81692         * lib/getline.h: Include <stddef.h>, for size_t.
81693
81694         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81695         * lib/unicodeio.c: Don't include <stddef.h>.
81696
81697 2002-12-31  Bruno Haible  <bruno@clisp.org>
81698
81699         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81700         HAVE_TM_ZONE.
81701
81702 2002-12-24  Karl Berry  <karl@gnu.org>
81703
81704         * config/config.guess: update from prep.
81705
81706 2002-12-24  Bruno Haible  <bruno@clisp.org>
81707
81708         General infrasructure.
81709         * m4/README: Rewritten.
81710         * m4/onceonly.m4: New file.
81711         * m4/onceonly_2_57.m4: New file.
81712
81713         Module atexit.
81714         * m4/atexit.m4: New file.
81715
81716         Module strtod.
81717         * m4/strtod.m4: New file.
81718
81719         Module strtol.
81720         * m4/strtol.m4: New file.
81721
81722         Module strtoul.
81723         * m4/strtoul.m4: New file.
81724
81725         Module memchr.
81726         * m4/memchr.m4: New file.
81727
81728         Module memcmp.
81729         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81730         (jm_FUNC_MEMCMP): Invoke it.
81731
81732         Module memcpy.
81733         * m4/memcpy.m4: New file.
81734
81735         Module memmove.
81736         * m4/memmove.m4: New file.
81737
81738         Module memset.
81739         * m4/memset.m4: New file.
81740
81741         Module strcspn.
81742         * m4/strcspn.m4: New file.
81743
81744         Module strpbrk.
81745         * m4/strpbrk.m4: New file.
81746
81747         Module strstr.
81748         * m4/strstr.m4: New file.
81749
81750         Module strerror.
81751         * m4/strerror.m4: New file.
81752
81753         Module mktime.
81754         * m4/mktime.m4: Renamed from jm-mktime.m4.
81755         (gl_PREREQ_MKTIME): New macro.
81756         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81757
81758         Module malloc.
81759         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81760         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81761         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81762
81763         Module realloc.
81764         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81765         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81766         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81767
81768         Module strftime.
81769         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81770         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81771         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81772         gl_TM_GMTOFF.
81773         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81774
81775         Module xalloc.
81776         * m4/xalloc.m4: New file.
81777
81778         Module alloca.
81779         * m4/alloca.m4: New file.
81780
81781         Module putenv.
81782         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81783         (jm_FUNC_PUTENV): Invoke it.
81784
81785         Module setenv.
81786         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81787         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81788         when invoked twice.
81789         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81790         gt_FUNC_SETENV.
81791
81792         Module memrchr.
81793         * m4/memrchr.m4: New file.
81794
81795         Module stpcpy.
81796         * m4/stpcpy.m4: New file.
81797
81798         Module strcase.
81799         * m4/strcase.m4: New file.
81800
81801         Module strdup.
81802         * m4/strdup.m4: New file.
81803
81804         Module strnlen.
81805         * m4/strnlen.m4: New file.
81806
81807         Module strndup.
81808         * m4/strndup.m4: New file.
81809
81810         Module xstrtod.
81811         * m4/xstrtod.m4: New file.
81812
81813         Module xstrtol.
81814         * m4/xstrtol.m4: New file.
81815
81816         Module getdate.
81817         * m4/getdate.m4: New file.
81818
81819         Module unlocked-io.
81820         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81821         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81822         * m4/jm-glibc-io.m4n: Remove file.
81823
81824         Module long-options.
81825         * m4/long-options.m4: New file.
81826
81827         Module md5.
81828         * m4/md5.m4: New file.
81829
81830         Module sha.
81831         * m4/sha.m4: New file.
81832
81833         Module getstr.
81834         * m4/getstr.m4: New file.
81835
81836         Module getline.
81837         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81838         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81839         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81840         simply getline. Infoke gl_PREREQ_GETLINE.
81841
81842         Module obstack.
81843         * m4/obstack.m4: New file.
81844
81845         Module hash.
81846         * m4/hash.m4: New file.
81847
81848         Module readtokens.
81849         * m4/readtokens.m4: New file.
81850
81851         Module strverscmp.
81852         * m4/strverscmp.m4: New file.
81853
81854         Module stdbool.
81855         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81856         OSF/1.
81857
81858         Module strtoll.
81859         * m4/strtoll.m4: New file.
81860
81861         Module strtoull.
81862         * m4/strtoull.m4: New file.
81863
81864         Module strtoimax.
81865         * m4/strtoimax.m4: New file.
81866
81867         Module strtoumax.
81868         * m4/strtoumax.m4: New file.
81869
81870         Module xstrtoimax.
81871         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81872         jm_AC_PREREQ_XSTRTOIMAX.
81873         Moved the strtol prerequisites to strtol.m4.
81874         Moved the strtoll prerequisites to strtoll.m4.
81875         Moved the strtoimax prerequisites to strtoimax.m4.
81876
81877         Module xstrtoumax.
81878         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81879         jm_AC_PREREQ_XSTRTOUMAX.
81880         Moved the strtoul prerequisites to strtoul.m4.
81881         Moved the strtoull prerequisites to strtoull.m4.
81882         Moved the strtoumax prerequisites to strtoumax.m4.
81883
81884         Module chown.
81885         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81886         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81887
81888         Module dup2.
81889         * m4/dup2.m4: New file.
81890
81891         Module ftruncate.
81892         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81893         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81894
81895         Module getgroups.
81896         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81897         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81898
81899         Module gettimeofday.
81900         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81901         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81902         gl_PREREQ_GETTIMEOFDAY.
81903
81904         Module mkdir.
81905         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81906         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81907
81908         Module mkstemp.
81909         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81910         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81911         jm_AC_TYPE_UINTMAX_T.
81912         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81913
81914         Module stat.
81915         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81916         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81917
81918         Module lstat.
81919         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81920         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81921
81922         Module timespec.
81923         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81924         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81925         * m4/st_mtim.m4: Indentation.
81926
81927         Module nanosleep.
81928         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81929         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81930         gl_PREREQ_NANOSLEEP.
81931
81932         Module regex.
81933         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81934         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81935         (gl_REGEX): New macro.
81936
81937         Module rename.
81938         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81939         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81940
81941         Module rmdir.
81942         * m4/rmdir.m4: New file.
81943
81944         Module utime.
81945         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81946         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81947         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81948
81949         Module dirname.
81950         * m4/dirname.m4: New file.
81951
81952         Module getopt.
81953         * m4/getopt.m4: New file.
81954
81955         Module unistd-safer.
81956         * m4/unistd-safer.m4: New file.
81957
81958         Module fnmatch.
81959         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81960         declaration.
81961         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81962         (gl_FUNC_FNMATCH_POSIX): New macro.
81963         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81964         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81965         simply fnmatch.
81966
81967         Module exclude.
81968         * m4/exclude.m4: New file.
81969
81970         Module human.
81971         * m4/human.m4: New file.
81972
81973         Module acl.
81974         * m4/acl.m4: Nop.
81975
81976         Module backupfile.
81977         * m4/backupfile.m4: New file.
81978         * m4/d-ino.m4: Indentation.
81979
81980         Module fsusage.
81981         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81982         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81983         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81984
81985         Module dirfd.
81986         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81987         requirements.
81988
81989         Module euidaccess.
81990         * m4/euidaccess.m4: New file.
81991
81992         Module file-type.
81993         * m4/file-type.m4: New file.
81994
81995         Module fileblocks.
81996         * m4/fileblocks.m4: New file.
81997
81998         Module filemode.
81999         * m4/filemode.m4: New file.
82000
82001         Module isdir.
82002         * m4/isdir.m4: New file.
82003
82004         Module lchown.
82005         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82006         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82007
82008         Module makepath.
82009         * m4/makepath.m4: New file.
82010
82011         Module modechange.
82012         * m4/modechange.m4: New file.
82013
82014         Module mountlist.
82015         * m4/mountlist.m4: New file.
82016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82017         Indentation.
82018
82019         Module path-concat.
82020         * m4/path-concat.m4: New file.
82021
82022         Module pathmax.
82023         * m4/pathmax.m4: New file.
82024
82025         Module same.
82026         * m4/same.m4: New file.
82027
82028         Module save-cwd.
82029         * m4/save-cwd.m4: New file.
82030
82031         Module savedir.
82032         * m4/savedir.m4: New file.
82033
82034         Module xgetcwd.
82035         * m4/xgetcwd.m4: New file.
82036         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82037
82038         Module xreadlink.
82039         * m4/xreadlink.m4: New file.
82040
82041         Module safe-read.
82042         * m4/safe-read.m4: New file.
82043
82044         Module safe-write.
82045         * m4/safe-write.m4: New file.
82046
82047         Module closeout.
82048         * m4/closeout.m4: New file.
82049
82050         Module stdio-safer.
82051         * m4/stdio-safer.m4: New file.
82052
82053         Module getpass.
82054         * m4/getpass.m4: New file.
82055
82056         Module getugroups.
82057         * m4/getugroups.m4: New file.
82058
82059         Module group-member.
82060         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82061         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82062
82063         Module idcache.
82064         * m4/idcache.m4: New file.
82065
82066         Module userspec.
82067         * m4/userspec.m4: New file.
82068
82069         Module gettime.
82070         * m4/clock_time.m4: New file.
82071         * m4/gettime.m4: New file.
82072
82073         Module settime.
82074         * m4/settime.m4: New file.
82075
82076         Module posixtm.
82077         * m4/posixtm.m4: New file.
82078
82079         Module gethostname.
82080         * m4/gethostname.m4: New file.
82081
82082         Module canon-host.
82083         * m4/canon-host.m4: New file.
82084
82085         Module gettext.
82086         * m4/codeset.m4: New file, from gettext-0.11.5.
82087         * m4/gettext.m4: New file, from gettext-0.11.5.
82088         * m4/glibc21.m4: New file, from gettext-0.11.5.
82089         * m4/iconv.m4: New file, from gettext-0.11.5.
82090         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82091         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82092         * m4/inttypes.m4: New file, from gettext-0.11.5.
82093         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82094         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82095         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82096         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82097         * m4/lib-link.m4: New file, from gettext-0.11.5.
82098         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82099         * m4/progtest.m4: New file, from gettext-0.11.5.
82100         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82101         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82102         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82103
82104         Module localcharset.
82105         * m4/localcharset.m4: New file.
82106
82107         Module hard-locale.
82108         * m4/hard-locale.m4: New file.
82109
82110         Module mbswidth.
82111         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82112         onceonly macros.
82113         * m4/mbrtowc.m4: Add comment.
82114
82115         Module memcasecmp.
82116         * m4/memcasecmp.m4: New file.
82117
82118         Module memcoll.
82119         * m4/memcoll.m4: New file.
82120
82121         Module unicodeio.
82122         * m4/unicodeio.m4: New file.
82123
82124         Module rpmatch.
82125         * m4/rpmatch.m4: New file.
82126
82127         Module yesno.
82128         * m4/yesno.m4: New file.
82129
82130         Module exitfail.
82131         * m4/exitfail.m4: New file.
82132
82133         Module c-stack.
82134         * m4/c-stack.m4 (gl_C_STACK): New macro.
82135         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82136
82137         Module error.
82138         * m4/error.m4 (gl_ERROR): New macro.
82139         (jm_PREREQ_ERROR): Use onceonly macros.
82140
82141         Module fatal.
82142         * m4/fatal.m4: New file.
82143
82144         Module getloadavg.
82145         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82146         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82147
82148         Module getpagesize.
82149         * m4/getpagesize.m4: New file.
82150
82151         Module getusershell.
82152         * m4/getusershell.m4: New file.
82153
82154         Module physmem.
82155         * m4/physmem.m4: New file.
82156
82157         Module posixver.
82158         * m4/posixver.m4: New file.
82159
82160         Module quotearg.
82161         * m4/quotearg.m4: New file.
82162
82163         Module quote.
82164         * m4/quote.m4: New file.
82165
82166         Module readutmp.
82167         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82168
82169         Module sig2str.
82170         * m4/sig2str.m4: New file.
82171
82172         Other.
82173         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82174         ulonglong.m4.
82175         * m4/intmax_t.m4: New file.
82176         * m4/d-type.m4: Indentation.
82177         * m4/jm-macros.m4: Update.
82178         * m4/prereq.m4 (jm_PREREQ): Update.
82179         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82180         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82181         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82182         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82183         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82184         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82185         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82186         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82187         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82188         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82189         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82190         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82191         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82192         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82193         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82194         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82195         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82196         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82197         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82198
82199 2002-12-24  Bruno Haible  <bruno@clisp.org>
82200
82201         * MODULES.txt: Update according to m4/ changes.
82202
82203         Module gettext.
82204         * config.rpath: New file, from gettext-0.11.5.
82205
82206         * modules/*: New module descriptions.
82207         * gnulib-tool: New file.
82208         * MODULES.html.sh: New file.
82209
82210 2002-12-21  Karl Berry  <karl@gnu.org>
82211
82212         * doc/fdl.texi: update to version 1.2.
82213
82214 2002-12-19  Karl Berry  <karl@gnu.org>
82215
82216         * config/config.guess: update from prep.
82217
82218 2002-12-18  Bruno Haible  <bruno@clisp.org>
82219
82220         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82221         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82222
82223 2002-12-17  Bruno Haible  <bruno@clisp.org>
82224
82225         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82226         stdlib.h, string.h.
82227
82228 2002-12-17  Bruno Haible  <bruno@clisp.org>
82229
82230         * lib/canon-host.c (strdup): Remove unused declaration.
82231
82232         * lib/fsusage.c: Include full_read.h.
82233         (get_fs_usage): Use full_read instead of safe_read.
82234
82235         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82236
82237 2002-12-12  Karl Berry  <karl@gnu.org>
82238
82239         * config/config.guess: update from prep.
82240
82241 2002-12-11  Bruno Haible  <bruno@clisp.org>
82242
82243         * m4/setenv.m4: New file, from gettext-0.11.5.
82244
82245 2002-12-11  Bruno Haible  <bruno@clisp.org>
82246
82247         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82248         not unsetenv().
82249         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82250         modifications:
82251
82252         2002-12-11  Bruno Haible  <bruno@clisp.org>
82253
82254                 * setenv.c (alloca): Fall back to malloc.
82255                 (freea): New macro.
82256                 (setenv): Use freea() to free memory allocated with alloca().
82257
82258         2002-11-13  Bruno Haible  <bruno@clisp.org>
82259
82260                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82261                 function declarations.
82262                 * unsetenv.c (unsetenv): Likewise.
82263
82264         2002-03-04  Bruno Haible  <bruno@clisp.org>
82265
82266                 Portability to AIX 4.3.3.
82267                 * unsetenv.c: New file, extracted from setenv.c.
82268                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82269
82270         2001-12-20  Bruno Haible  <bruno@clisp.org>
82271
82272                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82273                 use malloc instead. For SunOS 4.
82274
82275         2001-12-11  Bruno Haible  <bruno@clisp.org>
82276
82277                 * setenv.c: Declare alloca.
82278                 (compar_fn_t): New typedef.
82279                 (KNOWN_VALUE, STORE_VALUE): Use it.
82280
82281         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82282         setenv.h.
82283
82284 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82285
82286         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82287         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82288         Choose values that are less likely to collide with system fnmatch
82289         options.
82290         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82291         defined (e.g., a pure POSIX system).
82292         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82293         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82294
82295 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82296
82297         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82298         a pain in practice to deal with generated m4 files.  This change
82299         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82300
82301         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82302         and jm-glibc-io.m4, as they are no longer a special case.
82303         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82304         kludge and the auto-generation stuff.  Check only whether the
82305         functions are declared, not whether they exist, since older hosts
82306         that don't declare the functions can't use the optimization anyway.
82307
82308 2002-12-06  Jim Meyering  <jim@meyering.net>
82309
82310         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82311
82312         Merge in changes from libc's misc/error.c, in preparation
82313         for the merge of gnulib's changes back into libc.
82314
82315         * lib/error.c (_): Define only if not already defined.
82316         Move definition to follow all #include directives.
82317         Include unlocked-io.h only if !_LIBC.
82318         [_LIBC]: Include <libio/libioP.h>.
82319         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82320         (fflush): Tweak definition to use INTUSE.
82321         (putc): Define.
82322
82323 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82324
82325         * lib/alloca.c [defined emacs]: Include "lisp.h".
82326         (xalloc_die) [defined emacs]: New macro.
82327         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82328         [! defined emacs]: Include <xalloc.h>.
82329         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82330         (pointer): Typedef to POINTER_TYPE *.
82331         (malloc): Remove decl; we now always use xmalloc.
82332         (alloca): Use old-style definition, since Emacs needs this.
82333         Check for arithmetic overflow when computing combined size.
82334
82335 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82336
82337         Do not generate unlocked-io.h automatically, since it's easier to
82338         maintain it by hand.
82339
82340         * lib/unlocked-io.h: New file, from GNU diffutils,
82341         but with proper copyright notice and attribution.
82342         * lib/gen-uio: Remove.
82343         * lib/Makefile.am: Add copyright notice.
82344         (libfetish_a_SOURCES): Add unlocked-io.h.
82345         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82346         (DISTCLEANFILES, io_functions): Remove macros.
82347         (EXTRA_DIST): Remove gen_uio.
82348         (unlocked-io.h): Remove rule.
82349
82350 2002-12-04  Jim Meyering  <jim@meyering.net>
82351
82352         Reflect the fact that stat.c and lstat.c are no longer generated.
82353         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82354         (DISTCLEANFILES): Likewise.
82355         (EXTRA_DIST): Likewise.
82356         (all_local): Don't depend on stat.c or lstat.c.
82357         (stat.c, lstat.c): Remove rules.
82358         (EXTRA_DIST): Remove xstat.in.
82359
82360         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82361         * lib/stat.c: New file.  Contents mostly from xstat.in.
82362         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82363         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82364
82365         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82366         too.
82367         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82368
82369 2002-12-03  Jim Meyering  <jim@meyering.net>
82370
82371         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82372         but not semantics, to minimize the differences between these two files.
82373         (safe_read): Change comment to mention SAFE_READ_ERROR.
82374
82375         * lib/safe-read.c (IS_EINTR): Define.
82376         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82377
82378 2002-12-02  Jim Meyering  <jim@meyering.net>
82379
82380         * lib/safe-read.c (EINTR): Define.
82381         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82382         (INT_MAX): Provide fallback.
82383         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82384
82385         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82386
82387 2002-12-02  Bruno Haible  <bruno@clisp.org>
82388
82389         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82390         Define, taken from safe-read.c.
82391         (INT_MAX): Provide fallback.
82392         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82393         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82394
82395         * lib/safe-read.c (EINTR): Remove definition.
82396         (safe_read): Don't use EINTR if it is absent.
82397
82398 2002-12-01  Jim Meyering  <jim@meyering.net>
82399
82400         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82401         zero.
82402         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82403
82404 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82405
82406         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82407         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82408         with `if (! (value < limit)) abort ();', for readability.
82409
82410 2002-11-26  Karl Berry  <karl@gnu.org>
82411
82412         * lib/strdup.c: copy from libc again, with jim's ok.
82413         * lib/.cppi-disable: re-add strdup.c
82414
82415 2002-11-25  Karl Berry  <karl@gnu.org>
82416
82417         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82418         instead of "strtol.c".
82419
82420 2002-11-25  Karl Berry  <karl@gnu.org>
82421
82422         * config/install-sh: update from automake for variable quoting, $0 in
82423         error msgs, etc.
82424
82425         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82426         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82427         entry.
82428
82429 2002-11-25  Jim Meyering  <jim@meyering.net>
82430
82431         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82432
82433 2002-11-24  Karl Berry  <karl@gnu.org>
82434
82435         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82436         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82437
82438 2002-11-24  Jim Meyering  <jim@meyering.net>
82439
82440         Update from coreutils:
82441
82442         * lib/mktime.c: Merge in changes from libc.
82443
82444         Avoid a link-time failure on some Linux systems.
82445         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82446         (otherwise).
82447         (__mon_yday): Declare with the STATIC attribute.
82448         (__mktime_internal): Likewise.
82449         Based on a report from Greg Schafer.
82450
82451 2002-11-23  Jim Meyering  <jim@meyering.net>
82452
82453         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82454         Use `unsigned', not `int', as type of index.
82455
82456         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82457
82458         * lib/fsusage.c: Remove unneeded parentheses around operands of
82459         `defined'.
82460
82461 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82462
82463         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82464         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82465         so that we can be included first.
82466         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82467         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82468         No need to include stddef.h or sys/types.h any more.
82469         Surround local include files with "", not "<>".
82470         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82471         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82472         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82473         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82474         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82475         (ISPRINT): Remove; no longer needed now that we assume C89.
82476
82477         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82478         Preserve errno.
82479
82480         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82481         quotearg_char): Use SIZE_MAX rather than
82482         (size_t) -1 when we are talking about "infinity".
82483
82484         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82485
82486 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82487
82488         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82489         hint that one should use `if (! x) abort ();' rather than `assert
82490         (x);', and anyway it's one less thing to worry about configuring.
82491         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82492         hash_rehash, hash_insert): Use abort rather than assert.
82493
82494 2002-11-22  Bruno Haible  <bruno@clisp.org>
82495
82496         * lib/safe-read.h: Assume C89. Add comments.
82497         (safe_read): Change return type to size_t.
82498         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82499         byte counts > SSIZE_MAX correctly.
82500         * lib/safe-write.h: New file.
82501         * lib/safe-write.c: New file.
82502         * lib/full-read.h: New file.
82503         * lib/full-read.c: New file.
82504         * lib/full-write.h: Assume C89. Add comments.
82505         * lib/full-write.c: Include safe-write.h.
82506         (full_write): Rewritten to use safe_write.
82507         Suggested by Jim Meyering and Paul Eggert.
82508
82509 2002-11-21  Jim Meyering  <jim@meyering.net>
82510
82511         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82512
82513         Merge in changes from the coreutils.
82514
82515         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82516         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82517         <stdint.h>.
82518         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82519         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82520         int.  Work more efficiently if X is the same width as uintmax_t.
82521         Do not compare X to -1, to avoid bogus compiler warning.
82522         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82523         Don't assume that f_frsize and f_bsize are the same type.
82524
82525         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82526         warning on FreeBSD.
82527
82528         * lib/makepath.c (make_path): Restore umask *before* creating the final
82529         component.
82530         (make_path): Minor reformatting.
82531
82532         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82533         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82534         HAVE_MALLOC/HAVE_REALLOC.
82535
82536         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82537         dummy ones.  At least on GNU/Linux systems, `auto' means something
82538         else.
82539         From Michael Stone.
82540
82541 2002-11-21  Bruno Haible  <bruno@clisp.org>
82542
82543         Remove case insensitive option matching.
82544         * lib/argmatch.h (argcasematch): Remove declaration.
82545         (ARGCASEMATCH): Remove macro.
82546         (__xargmatch_internal): Remove case_sensitive argument.
82547         (XARGMATCH): Update.
82548         (XARGCASEMATCH): Remove macro.
82549         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82550         case_sensitive argument.
82551         (argcasematch): Remove function.
82552         (__xargmatch_internal): Remove case_sensitive argument.
82553         (main): Use XARGMATCH instead of XARGCASEMATCH.
82554
82555         * lib/xmalloc.c: Change compile-time error message. Add comment about
82556         required autoconf version.
82557
82558 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82559
82560         Merge argmatch cleanups from Bison.  Assume C89.
82561
82562         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82563         Include stdlib.h, for EXIT_FAILURE.
82564         Always include <string.h>, since we assume C89.
82565         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82566         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82567         Include <stddef.h> instead, since it's all we need for size_t.
82568         (PARAMS): Remove.  All uses removed.
82569         (ARRAY_CARDINALITY): Do not bother to #undef.
82570         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82571         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82572         Remove unnecessary parentheses.
82573         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82574         Insert necessary parentheses.
82575         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82576         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82577
82578 2002-11-19  Bruno Haible  <bruno@clisp.org>
82579
82580         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82581         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82582
82583         * lib/mbswidth.h (PARAMS): Remove macro.
82584         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82585         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82586
82587         * lib/gcd.h (PARAMS): Remove macro.
82588         (gcd): Use ANSI C function declarations.
82589         * lib/gcd.c (gcd): Likewise.
82590
82591 2002-11-15  Bruno Haible  <bruno@clisp.org>
82592
82593         * lib/strcspn.c: Include <stddef.h>.
82594         (strcspn): Use ANSI C function declaration. Change return type to
82595         size_t. Use NULL.
82596         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82597         (strpbrk): Use NULL.
82598         * lib/strpbrk.h (PARAMS): Remove macro.
82599         (strpbrk): Use ANSI C function declaration.
82600         * lib/strstr.c: Don't include <sys/types.h>.
82601         * lib/strstr.h (PARAMS): Remove macro.
82602         (strstr): Use ANSI C function declarations.
82603
82604 2002-11-14  Karl Berry  <karl@gnu.org>
82605
82606         * config/mkinstalldirs: `do' on separate line, instead of
82607         `for var; do'.
82608
82609 2002-11-06  Bruno Haible  <bruno@clisp.org>
82610
82611         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82612         * lib/gcd.c (gcd): Likewise.
82613
82614 2002-11-05  Bruno Haible  <bruno@clisp.org>
82615
82616         * lib/gcd.h: New file, from gettext-0.11.5.
82617         * lib/gcd.c: New file, from gettext-0.11.5.
82618
82619 2002-11-05  Bruno Haible  <bruno@clisp.org>
82620
82621         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82622         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82623         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82624         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82625
82626         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82627         <libintl.h>.
82628         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82629         <libintl.h>.
82630
82631         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82632         * lib/human.c: Include gettext.h instead of <libintl.h>.
82633         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82634         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82635         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82636         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82637         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82638         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82639         (textdomain): Remove definition.
82640         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82641
82642         * lib/long-options.c: Remove include of <libintl.h> and definition of
82643         _.
82644         * lib/same.c: Remove include of <libintl.h> and definition of _.
82645
82646 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82647
82648         * lib/config.charset: A few additions for Solaris.
82649
82650 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82651
82652         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82653         * lib/localcharset.c (locale_charset): Declare as extern "C".
82654
82655 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82656
82657         * lib/config.charset: msdos in uk_UA uses CP1125.
82658
82659 2002-11-04  Bruno Haible  <bruno@clisp.org>
82660
82661         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82662         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82663         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82664         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82665         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82666
82667 2002-11-04  Bruno Haible  <bruno@clisp.org>
82668
82669         * lib/localcharset.c (locale_charset): Don't return an empty string.
82670
82671 2002-11-04  Bruno Haible  <bruno@clisp.org>
82672
82673         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82674         aliases.
82675
82676 2002-11-04  Bruno Haible  <bruno@clisp.org>
82677
82678         * lib/config.charset: Update for newest glibc. Add canonical names
82679         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82680
82681 2002-11-04  Bruno Haible  <bruno@clisp.org>
82682
82683         * lib/config.charset: Add support for NetBSD.
82684
82685 2002-11-04  Bruno Haible  <bruno@clisp.org>
82686
82687         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82688
82689 2002-11-01  Bruno Haible  <bruno@clisp.org>
82690
82691         * configure.in: Add AC_CONFIG_AUX_DIR call.
82692         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82693         test/Makefile.
82694         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82695
82696 2002-09-28  Karl Berry  <karl@gnu.org>
82697
82698         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82699         installed automake until the next release, since changes have been
82700         made.
82701
82702 2002-09-25  Karl Berry  <karl@gnu.org>
82703
82704         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82705         * lib/getopt*: copy from libc/posix.
82706         * lib/gettext.h: copy from gettext.
82707         * lib/.cppi-disable: add strdup.c, gettext.h.
82708
82709 2002-09-25  Karl Berry  <karl@gnu.org>
82710
82711         * config/srclist.txt: enable gettext.h check.
82712         * config/config.{guess,sub}: update from prep.
82713         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82714                 from automake 1.6.3.
82715         See srclist*.
82716
82717 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82718
82719         * regex.c (PATFETCH): Remove the translating fetch.
82720         (PATFETCH_RAW): Rename to PATFETCH.
82721         (set_image_of_range): New fun.
82722         (SET_RANGE_TABLE_WORK_AREA): Use it.
82723         (regex_compile): Don't translate the pattern chars so eagerly.
82724         Only do it when inserting an `exactn' bytecode or when handling
82725         a char-range.
82726         (mutually_exclusive_p): Avoid empty statement.
82727
82728 2002-07-06  Jim Meyering  <meyering@lucent.com>
82729
82730         * m4/README: Don't mention Makefile.am.in.
82731         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82732
82733 2002-07-01  Jim Meyering  <meyering@lucent.com>
82734
82735         * lib/c-stack.c: Include sys/time.h.
82736         From Volker Borchert.
82737
82738 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82739
82740         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82741
82742 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82743
82744         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82745         New macro.  Use it uniformly instead of
82746         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82747         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82748         reported by Vin Shelton.
82749
82750 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82751
82752         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82753         Do not assume SA_SIGINFO behavior.
82754         Bug reported by Jim Meyering on NetBSD 1.5.2.
82755
82756 2002-06-22  Jim Meyering  <meyering@lucent.com>
82757
82758         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82760
82761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82762         now that configure.ac uses AC_GNU_SOURCE.
82763         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82764         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82765
82766         Update to latest tools.  Suggestions from Paul Eggert.
82767         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82768         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82769         * m4/fnmatch.m4: Likewise.
82770         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82771         to AC_HEADER_STDBOOL
82772
82773 2002-06-22  Jim Meyering  <meyering@lucent.com>
82774
82775         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82776         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82777
82778 2002-06-22  Jim Meyering  <meyering@lucent.com>
82779
82780         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82781
82782         * lib/exitfail.c, exitfail.h: Likewise.
82783         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82784
82785         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82786         of fnmatch.h.
82787         (EXTRA_DIST): Add fnmatch_loop.c.
82788         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82789
82790         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82791         * lib/fnmatch.c: Update from diffutils-2.8.2.
82792         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82793         * lib/fnmatch.h: Remove file.
82794
82795 2002-06-21  Jim Meyering  <meyering@lucent.com>
82796
82797         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82798         * m4/mbrtowc.m4: Likewise.
82799
82800         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82801         * m4/mbswidth.m4: Reflect name change:
82802         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82803         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82804
82805         * m4/lib-link.m4: Update from gettext-0.11.2.
82806         * m4/gettext.m4: Likewise.
82807
82808         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82809         From Alfred M. Szmidt.
82810
82811 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82812
82813         * lib/file-type.h: Report an error if neither S_ISREG nor
82814         S_IFREG is defined, instead of using a test specific to glibc
82815         2.2.  This should be safe, since POSIX requires S_ISREG and
82816         Unix Version 7 had S_IFREG.  We don't need to check for
82817         <sys/types.h> since we don't use any symbols that it defines.
82818
82819 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82820
82821         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82822         $@-t, so that each temporary file name is unique and valid in the first
82823         8 characters, for operation under DOS.
82824
82825 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82826
82827         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82828
82829 2002-06-15  Jim Meyering  <meyering@lucent.com>
82830
82831         Work even with DJGPP 2.03, which lacks support for symlinks.
82832         From Richard Dawe.
82833         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82834         is defined.
82835         * lib/lchown.c (S_ISLNK): Likewise.
82836
82837 2002-06-15  Jim Meyering  <meyering@lucent.com>
82838
82839         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82840         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82841         have been included before this file.
82842
82843 2002-06-14  Jim Meyering  <meyering@lucent.com>
82844
82845         * lib/file-type.h: Use the version from diffutils-2.8.2.
82846         * lib/file-type.c: Likewise.
82847
82848 2002-06-07  Jim Meyering  <meyering@lucent.com>
82849
82850         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82851         They're needed at least for NetBSD 1.5.2.
82852         ($statxfs_includes): Include those same headers.
82853         ($statxfs_includes): Include sys/vfs.h if available.
82854         ($statxfs_includes): Likewise for sys/statvfs.h.
82855         Check for the following members in both structs statfs and statvfs:
82856         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82857
82858 2002-06-01  Jim Meyering  <meyering@lucent.com>
82859
82860         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82861         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82862
82863 2002-05-28  Jim Meyering  <meyering@lucent.com>
82864
82865         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82866         Reported by Volker Borchert.
82867
82868 2002-05-27  Jim Meyering  <meyering@lucent.com>
82869
82870         Fix a problem seen only on nonconforming systems whereby ls.c's
82871         use of localtime, and then of gettimeofday would cause trouble:
82872         the localtime call used to initialize rpl_gettimeofday's save
82873         mechanism would clobber ls's current local time information so
82874         that in any long listing the first file would always be listed
82875         with date 1970-01-01.  Analysis by Volker Borchert.
82876
82877         * lib/gettimeofday.c (localtime): Undefine.
82878         (rpl_localtime): New function.
82879
82880 2002-05-27  Jim Meyering  <meyering@lucent.com>
82881
82882         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82883         localtime.
82884
82885         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82886         use the replacement function; it wouldn't resolve at link time.
82887         Reported by Volker Borchert.
82888
82889 2002-05-22  Jim Meyering  <meyering@lucent.com>
82890
82891         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82892         file-type.h.
82893         * lib/file-type.h: New file.
82894         * lib/file-type.c (file_type): New file/function.  Extracted from
82895         diffutils.
82896
82897 2002-04-30  Jim Meyering  <meyering@lucent.com>
82898
82899         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82900
82901 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82902
82903         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82904
82905 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82906
82907         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82908         Do not check for alloca.h (no longer used) or stdbool.h (was never
82909         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82910
82911 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82912
82913         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82914
82915 2002-04-29  Jim Meyering  <meyering@lucent.com>
82916
82917         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82918         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82919         Use AC_FUNC_STRNLEN here instead.
82920
82921         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82922         With autoconf-2.53a, it's part of AC_PROG_CC.
82923
82924 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82925
82926         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82928
82929 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82930
82931         * lib/sig2str.h, lib/sig2str.c: New files.
82932         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82933
82934 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82935
82936         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82937         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82938         of 127, since 64 is the largest conceivable number for ancient
82939         nonstandard hosts.
82940         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82941
82942 2002-04-28  Jim Meyering  <meyering@lucent.com>
82943
82944         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82945
82946 2002-04-24  Jim Meyering  <meyering@lucent.com>
82947
82948         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82949         (jm_PREREQ): Use it.
82950
82951         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82952         mach/mach.h fcntl.h.
82953         Check for this function: setlocale.
82954
82955 2002-04-24  Jim Meyering  <meyering@lucent.com>
82956
82957         * lib/gettext.h: New file, from Gettext.
82958         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82959         (libfetish_a_SOURCES): Add gettext.h.
82960
82961 2002-04-16  Jim Meyering  <meyering@lucent.com>
82962
82963         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82964         ut_pid, ut_id, ut_exit.
82965
82966 2002-04-16  Jim Meyering  <meyering@lucent.com>
82967
82968         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82969         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82970         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82971
82972 2002-04-12  Jim Meyering  <meyering@lucent.com>
82973
82974         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82975         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82976         existence of the getmntinfo function.  Needed for Darwin 5.3.
82977
82978         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82979         This is necessary at least on Darwin 5.3.
82980
82981         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82982         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82983         strnlen.o in the library, and that makes some versions of ranlib
82984         object.
82985
82986 2002-04-12  Jim Meyering  <meyering@lucent.com>
82987
82988         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82989
82990 2002-04-09  Jim Meyering  <meyering@lucent.com>
82991
82992         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82993         to be more precise.  Rather than saying we're checking whether the
82994         function `works', say what we're testing.
82995         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82996         Reported by Bruno Haible.
82997
82998 2002-03-10  Jim Meyering  <meyering@lucent.com>
82999
83000         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83001         Suggestion from Santiago Vila.
83002
83003 2002-03-08  Jim Meyering  <meyering@lucent.com>
83004
83005         * lib/rename.c: Mention that this wrapper is needed also on
83006         mips-dec-ultrix4.4 systems.
83007
83008 2002-03-02  Jim Meyering  <meyering@lucent.com>
83009
83010         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83011         not HAVE_CLOCK_SETTIME.
83012
83013 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83014
83015         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83016         Check for clock_settime.
83017
83018 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83019
83020         * lib/nanosleep.h: Rename to....
83021         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83022
83023         * lib/gettime.c: New file.
83024         * lib/settime.c: New file.
83025         * lib/stime.c: Remove.
83026
83027         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83028         timespec.h.  Remove nanosleep.h.
83029
83030 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83031
83032         * m4/acl.m4: New file.
83033         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83034         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83035
83036 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83037
83038         * lib/acl.c, lib/acl.h: New files.
83039         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83040
83041 2002-02-24  Jim Meyering  <meyering@lucent.com>
83042
83043         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83044         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83045         cause trouble.  Reported by Nelson Beebe.
83046
83047 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83048
83049         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83050         compilers that don't know that xalloc_die never returns.
83051
83052 2002-02-20  Jim Meyering  <meyering@lucent.com>
83053
83054         * lib/getdate.c: Regenerate using bison-1.33.
83055
83056 2002-02-17  Jim Meyering  <meyering@lucent.com>
83057
83058         * config/config.guess (main): Don't use `head -1'; it's no longer
83059         portable. Use `sed 1q' instead.
83060
83061 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83062
83063         * m4/codeset.m4: Upgrade to gettext-0.11.
83064         * m4/gettext.m4: Upgrade to gettext-0.11.
83065         * m4/glibc21.m4: Upgrade to gettext-0.11.
83066         * m4/iconv.m4: Upgrade to gettext-0.11.
83067         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83068         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83069         * m4/lib-ld.m4: New file, from gettext-0.11.
83070         * m4/lib-link.m4: New file, from gettext-0.11.
83071         * m4/lib-prefix.m4: New file, from gettext-0.11.
83072         * m4/progtest.m4: Upgrade to gettext-0.11.
83073
83074 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83075
83076         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83077         (jm_PREREQ): Use it.
83078
83079 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83080
83081         * lib/posixver.c, lib/posixver.h: New files.
83082         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83083
83084 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83085             Bruno Haible  <bruno@clisp.org>
83086
83087         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83088         (fwrite_success_callback): New declaration.
83089         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83090         print_unicode_char. Call failure callback instead of error.
83091         (fwrite_success_callback): New function.
83092         (exit_failure_callback): New function.
83093         (fallback_failure_callback): New function.
83094         (print_unicode_char): Call unicode_to_mb.
83095
83096 2002-01-26  Jim Meyering  <meyering@lucent.com>
83097
83098         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83099         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83100
83101 2002-01-26  Jim Meyering  <meyering@lucent.com>
83102
83103         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83104
83105 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83106
83107         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83108
83109 2002-01-22  Jim Meyering  <meyering@lucent.com>
83110
83111         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83112         Otherwise, some versions of automake would omit the rule that makes
83113         Makefile from Makefile.in.
83114
83115 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83116
83117         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83118         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83119         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83120         (memcoll): Set errno to zero if there is no error.
83121
83122         * lib/quotearg.c (quotearg_buffer_restyled):
83123         Fix bug with quoting buffers containing NUL when backslashing escapes.
83124         This bug was exposed by the other changes in this patch.
83125         (quotearg_n_options): New arg ARGSIZE.
83126         All callers changed.
83127         (quoting_options_from_style): New function.
83128         (quotearg_n_style): Use it.
83129         (quotearg_n_style_mem): New function.
83130
83131         * lib/quotearg.h (quotearg_n_style_mem): New function.
83132
83133 2002-01-19  Jim Meyering  <meyering@lucent.com>
83134
83135         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83136         Remove useless quotes: DF_PROG="df".
83137         * m4/strnlen.m4: New file.
83138
83139 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83140
83141         * lib/backupfile.c (ISDIGIT): Comment fix.
83142         * lib/getdate.y (ISDIGIT): Likewise.
83143         * lib/posixtm.c (ISDIGIT, year): Likewise.
83144         * lib/strverscmp.c (ISDIGIT): Likewise.
83145         * lib/userspec.c (ISDIGIT): Likewise.
83146
83147 2002-01-16  Jim Meyering  <meyering@lucent.com>
83148
83149         * lib/getdate.y: Add three semicolons, each just before a closing
83150         brace. Bison (as of version 1.31) no longer papers over that mistake.
83151
83152 2002-01-05  Jim Meyering  <meyering@lucent.com>
83153
83154         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83155
83156 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83157
83158         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83159         not silently exit merely because the output buffer happens to
83160         have nothing pending.
83161
83162 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83163
83164         See the big note in ../ChangeLog.
83165         * lib/human.c (suffixes): Prefer K to k for 1024.
83166         (generate_suffix_backwards): New function.
83167         (human_readable_inexact): Use it.
83168         * lib/xstrtol.c (__xstrtol): If there is no number but there
83169         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83170         Accept 'K' as well as 'k'.
83171
83172 2001-12-15  Jim Meyering  <meyering@lucent.com>
83173
83174         * lib/regex.h (__restrict_arr): Update from libc.
83175
83176         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83177         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83178         (STREQ): Define.
83179
83180 2001-12-14  Jim Meyering  <meyering@lucent.com>
83181
83182         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83183         Suggestion from Bruno Haible.
83184
83185 2001-12-10  Jim Meyering  <meyering@lucent.com>
83186
83187         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83188         xrealloc, Instead, include "xalloc.h".
83189         (initbuffer): Don't cast xmalloc return value to char*.
83190         (readline): Reword comment.
83191         Don't cast xrealloc return value to char*
83192         Return NULL, not 0.
83193
83194 2001-12-09  Jim Meyering  <meyering@lucent.com>
83195
83196         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83197         about `signed and unsigned type in conditional expression'.
83198         * lib/posixtm.c (posix_time_parse): Likewise.
83199
83200         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83201
83202         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83203         to avoid a pedantic warning.
83204
83205         * lib/getstr.c: Don't include assert.h.
83206         (getstr): Remove warning-evoking assertions.
83207         Return -1 if offset parameter is out of bounds.
83208         Change the type of a local from int to size_t.
83209
83210         * lib/strftime.c (my_strftime_localtime_r): Include this function
83211         definition in the `#if ! HAVE_TM_GMTOFF' block.
83212
83213         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83214         Include xalloc.h instead.
83215
83216 2001-12-02  Jim Meyering  <meyering@lucent.com>
83217
83218         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83219         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83220         included.
83221
83222         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83223         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83224
83225 2001-11-30  Akim Demaille  <akim@epita.fr>
83226
83227         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83228         before being defined.
83229
83230 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83231
83232         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83233         First arg is int, not unsigned.
83234         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83235         (SIZE_MAX, UINT_MAX): New macros.
83236         (quotearg_n_options): Abort if N is negative.
83237         Avoid overflow check on hosts where size_t is 64 bits and int
83238         is 32 bits, as overflow is impossible there.
83239         Fix off-by-one typo that caused unnecessary reallocation.
83240
83241 2001-11-27  Jim Meyering  <meyering@lucent.com>
83242
83243         * lib/tempname.c: Merge with version from libc.
83244         * lib/regex.c: Likewise.
83245
83246         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83247         systems for which STDC_HEADERS is 0, it was not included, resulting in
83248         a warning about an integer-to-pointer conversion problem with getenv.
83249         Reported by Volker Borchert.
83250
83251 2001-11-26  Jim Meyering  <meyering@lucent.com>
83252
83253         * lib/gtod.h: Remove file.
83254         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83255         * lib/gettimeofday.c: Don't include gtod.h.
83256         (GTOD_init): Remove function.
83257         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83258         Suggestion from Volker Borchert.
83259
83260 2001-11-23  Jim Meyering  <meyering@lucent.com>
83261
83262         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83263         it.
83264         * lib/hash.c (struct hash_table): Define it here instead.
83265
83266 2001-11-22  Jim Meyering  <meyering@lucent.com>
83267
83268         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83269
83270 2001-11-20  Jim Meyering  <meyering@lucent.com>
83271
83272         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83273         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83274
83275 2001-11-19  Jim Meyering  <meyering@lucent.com>
83276
83277         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83278         directory.  Use "conftestXXXXXX" as the template.
83279         Suggestion from Paul Eggert.
83280
83281         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83282         immediately, so the test doesn't mistakenly hit the max-open-files
83283         limit.
83284
83285 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83286
83287         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83288         (TEMPORARIES): New macro.
83289         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83290         removes an artificial limitation (e.g. HP-UX 10.20, where
83291         TMP_MAX is 17576).
83292
83293 2001-11-18  Jim Meyering  <meyering@lucent.com>
83294
83295         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83296
83297 2001-11-18  Jim Meyering  <meyering@lucent.com>
83298
83299         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83300         on SunOS 4.
83301
83302         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83303         files will be created before anything else.
83304
83305 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83306
83307         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83308         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83309
83310 2001-11-17  Jim Meyering  <meyering@lucent.com>
83311
83312         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83313         Prompted by a report from Bob Proulx.
83314
83315         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83316         Instead, require UTILS_FUNC_MKSTEMP.
83317
83318 2001-11-17  Jim Meyering  <meyering@lucent.com>
83319
83320         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83321         Now, that's done as part of AC_FUNC_STRTOD.
83322
83323 2001-11-17  Jim Meyering  <meyering@lucent.com>
83324
83325         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83326         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83327         rather than group writable.  Patch by Juan F. Codagnone.
83328
83329         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83330         xrealloc, Instead, include "xalloc.h".
83331
83332         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83333         Remove explicit declarations of xmalloc, xrealloc,
83334         and xstrdup.  Instead, include "xalloc.h".
83335
83336         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83337         unlocked-io.h.
83338         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83339         Likewise.
83340         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83341
83342         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83343         Reported by Padraig Brady.
83344
83345         * lib/mkstemp.c: #undef mkstemp.
83346         Include config.h.
83347         (rpl_mkstemp): Rename from mkstemp.
83348         Protoize.
83349
83350 2001-11-16  Jim Meyering  <meyering@lucent.com>
83351
83352         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83353         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83354         determine the amount of total physical memory, use pstat_getstatic.
83355         HPUX-11 doesn't define _SC_PHYS_PAGES.
83356         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83357         If sysconf couldn't be used to determine the amount of available
83358         physical memory, use both pstat_getstatic and pstat_getdynamic.
83359         Based on a patch from Bob Proulx.
83360
83361 2001-11-10  Jim Meyering  <meyering@lucent.com>
83362
83363         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83364         (jm_PREREQ): Use it.
83365
83366 2001-11-09  Jim Meyering  <meyering@lucent.com>
83367
83368         * m4/jm-macros.m4: Require autoconf-2.52f.
83369         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83370         Use these AC_-prefixed names, not the AM_-prefixed ones.
83371
83372         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83373
83374 2001-11-05  Jim Meyering  <meyering@lucent.com>
83375
83376         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83377
83378 2001-11-04  Jim Meyering  <meyering@lucent.com>
83379
83380         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83381         $DEFS.
83382
83383 2001-11-03  Jim Meyering  <meyering@lucent.com>
83384
83385         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83386         of AC_DEFUN.
83387
83388         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83389         know the name of the variable in the macro definition.
83390
83391 2001-11-03  Jim Meyering  <meyering@lucent.com>
83392
83393         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83394         in argmatch_to_argument call.
83395
83396         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83397         argument.
83398
83399         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83400         e.g., a fault due to an attempt to free a NULL pointer.
83401
83402 2001-11-01  Jim Meyering  <meyering@lucent.com>
83403
83404         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83405         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83406
83407 2001-11-01  Jim Meyering  <meyering@lucent.com>
83408
83409         * lib/dirfd.c, lib/dirfd.h: New files.
83410         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83411
83412         * lib/hash.c (hash_print) [TESTING]: Clean up.
83413
83414 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83415
83416         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83417         to avoid a warning if -Wall.
83418
83419 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83420
83421         * README: New file
83422         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83423         (per RMS's instructions, this is now the canonical source)
83424         * lgpl/, gpl/: New directories.
83425
83426 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83427
83428         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83429
83430 2001-10-21  Jim Meyering  <meyering@lucent.com>
83431
83432         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83433         this code would end up calling gettext even in packages built
83434         with --disable-nls.
83435         * lib/getopt.c (_): Likewise.
83436         * lib/regex.c (_): Likewise.
83437
83438 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83439
83440         * m4/error.m4 (jm_PREREQ_ERROR):
83441         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83442         AC_FUNC_STRERROR_R does that.
83443         Check for strerror declaration.
83444
83445         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83446         are supposed to have them these days.
83447         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83448         Merge changes from latest Autoconf CVS.
83449         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83450         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83451         POSIX decided to standardize on the int flavor of strerror_r.
83452
83453 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83454
83455         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83456         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83457         Use strerror_r that is only a macro, even if it is not a function.
83458         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83459         (private_strerror): Use prototypes, not old-style function definition.
83460         (print_errno_message): New function.
83461         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83462         char*-flavored one.
83463         (error_tail, error, error_at_line): Use it.
83464
83465 2001-10-11  Jim Meyering  <meyering@lucent.com>
83466
83467         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83468         and quote_n (1, ... to avoid clobbering a buffer.
83469
83470 2001-10-05  Jim Meyering  <meyering@lucent.com>
83471
83472         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83473         hash-pjw.h.
83474         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83475         * lib/hash-pjw.h: New file.
83476
83477 2001-09-30  Jim Meyering  <meyering@lucent.com>
83478
83479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83480         `struct fsstat' has the `f_fstypename' member.
83481         Use that to define FS_TYPE, which is now used to make
83482         the getfsstat link test tighter.
83483
83484 2001-09-30  Jim Meyering  <meyering@lucent.com>
83485
83486         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83487         Include <sys/ucred.h>, for Apple Darwin.
83488         Include sys/mount.h and sys/fs_types.h only if available.
83489         (FS_TYPE): Define.
83490         (read_filesystem_list): Use FS_TYPE.
83491
83492 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83493
83494         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83495         a boolean context.
83496
83497 2001-09-29  Jim Meyering  <meyering@lucent.com>
83498
83499         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83500         [one-argument getmntent function]): Include stdio.h before mntent.h.
83501         SunOS 4.1.x needs it for the declaration of `FILE'.
83502         Patch by Volker Borchert.
83503
83504         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83505         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83506         sys/fs_types.h, and make the link-test for getfsstat guard #include
83507         directives with appropriate #if HAVE_*_H tests so that we can
83508         detect getfsstat on Apple Darwin1.3.7 systems.
83509         Reported by Nelson Beebe.
83510         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83511
83512 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83513
83514         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83515         #defines strtoimax.  Also treat the other strto* functions
83516         like strtoimax.
83517
83518         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83519         Check for strtoul and strtoumax,
83520         as those declarations are made even in the signed case.
83521         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83522         Likewise, for strtol and strtoimax.
83523
83524 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83525
83526         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83527         #defines strtoimax.  Also treat the other strto* functions
83528         like strtoimax.
83529
83530         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83531         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83532         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83533
83534 2001-09-26  Jim Meyering  <meyering@lucent.com>
83535
83536         Most macros in unlocked-io.h had the wrong number of arguments.
83537         * lib/gen-uio: New script.
83538         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83539         * lib/unlocked-io.hin: Remove file.
83540         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83541         rather than trying to embed it here.
83542         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83543         Reported by Padraig Brady.
83544
83545 2001-09-25  Volker Borchert  <bt@teknon.de>
83546
83547         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83548         `result'.
83549
83550 2001-09-24  Jim Meyering  <meyering@lucent.com>
83551
83552         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83553
83554 2001-09-23  Jim Meyering  <meyering@lucent.com>
83555
83556         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83557         instead of the mere test for existence of mntent.h.  The latter
83558         would get a false-positive on AIX 3.4 systems.
83559         In the outer getmntent if-block, don't die if neither of the getmntent
83560         tests succeeds.  Instead, just fall through and continue with the
83561         remaining tests.
83562
83563 2001-09-23  Jim Meyering  <meyering@lucent.com>
83564
83565         * lib/mountlist.c: Remove useless parentheses in #if directives.
83566         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83567         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83568
83569 2001-09-22  Jim Meyering  <meyering@lucent.com>
83570
83571         * m4/gettext.m4: New file.  From gettext.
83572         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83573         * m4/progtest.m4: Likewise
83574         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83575         * m4/glibc21.m4: Likewise.
83576
83577         * m4/libintl.m4: Remove.  No longer used.
83578
83579 2001-09-22  Jim Meyering  <meyering@lucent.com>
83580
83581         * lib/localcharset.c: Update from latest gettext.
83582         * lib/config.charset: Likewise.
83583
83584 2001-09-20  Jim Meyering  <meyering@lucent.com>
83585
83586         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83587         strtoimax.
83588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83589         strtoumax.
83590
83591 2001-09-20  Jim Meyering  <meyering@lucent.com>
83592
83593         * lib/xstrtol.c (strtoimax): Guard declaration with
83594         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83595         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83596         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83597         (strtoumax): Likewise, for completeness (it wasn't necessary).
83598
83599 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83600
83601         * lib/strtoimax.c (HAVE_LONG_LONG):
83602         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83603         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83604         to work around bug in IBM C compiler.
83605
83606 2001-09-17  Jim Meyering  <meyering@lucent.com>
83607
83608         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83609         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83610         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83611         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83612         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83613         whenever the right hand side need not be expanded by the shell.
83614
83615 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83616
83617         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83618         library.  It's not correct, as some older glibcs are buggy.
83619         fnmatch wasn't fixed until glibc 2.2.
83620
83621         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83622         special shell magic here.
83623
83624 2001-09-16  Jim Meyering  <meyering@lucent.com>
83625
83626         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83627         * m4/jm-macros.m4: Require it.
83628
83629 2001-09-16  Jim Meyering  <meyering@lucent.com>
83630
83631         * lib/mkdir.c: New file.
83632
83633 2001-09-15  Jim Meyering  <meyering@lucent.com>
83634
83635         * m4/jm-macros.m4: Check for help2man.
83636
83637 2001-09-11  Jim Meyering  <meyering@lucent.com>
83638
83639         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83640         The body, by Paul Eggert, was moved here from configure.in.
83641         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83642
83643 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83644
83645         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83646         (jm_PREREQ): Use it.
83647
83648 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83649
83650         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83651         Use ssize_t, not int, to store result of readlink.
83652         Check for ssize_t overflow as well as size_t overflow,
83653         as POSIX says the result of readlink is implementation-defined
83654         when ssize_t overflows.
83655         Remove unnecessary cast to char*.
83656         Use free+malloc instead of realloc, as the storage doesn't need
83657         to be preserved and it's clearer and can be more efficient that way.
83658         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83659         * lib/xreadlink.h (xreadlink): Update prototype.
83660
83661 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83662
83663         * lib/xgetcwd.c: Revert some of the previous change; intead,
83664         fix the HAVE_GETCWD_NULL code to behave more like the
83665         !HAVE_GETCWD_NULL code used to.
83666
83667         Include "xalloc.h".
83668         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83669         invoke xalloc_die.
83670
83671 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83672
83673         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83674         sys/param.h, as pathmax.h includes them.
83675
83676 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83677
83678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83679         (jm_PREREQ_XGETCWD): New macro.
83680
83681         * m4/getcwd.m4: New file.
83682
83683 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83684
83685         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83686         like the HAVE_GETCWD_NULL code.
83687         Include pathmax.h if not HAVE_GETCWD.
83688         Do not include xalloc.h.
83689         (INITIAL_BUFFER_SIZE): New symbol.
83690         Do not use xmalloc / xrealloc, since the caller is responsible for
83691         handling errors.  Preserve errno around `free' during failure.
83692         Do not overrun buffer when using getwd.
83693
83694 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83695
83696         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83697         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83698         getcwd (NULL, 0).
83699
83700 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83701
83702         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83703         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83704         spotted by Jim Meyering.
83705
83706 2001-09-03  Jim Meyering  <meyering@lucent.com>
83707
83708         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83709         failure.
83710
83711 2001-09-02  Jim Meyering  <meyering@lucent.com>
83712
83713         * lib/error.c: Update from GNU libc.
83714
83715 2001-09-01  Jim Meyering  <meyering@lucent.com>
83716
83717         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83718         Used by df.
83719
83720 2001-09-01  Jim Meyering  <meyering@lucent.com>
83721
83722         * lib/xreadlink.c: New file.
83723         * lib/xreadlink.h: New file.
83724         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83725         xreadlink.h.
83726
83727         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83728         doesn't conflict with sparc Solaris 7's definition in
83729         /usr/include/sys/int_types.h.
83730
83731         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83732         files.
83733         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83734         and strncasecmp as r-values.  Unixware didn't have declarations.
83735
83736 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83737
83738         * lib/xstrtol.h: Add copyright notice.
83739         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83740         LONGINT_INVALID_SUFFIX_CHAR.
83741
83742 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83743
83744         * lib/xstrtol.c (strtoimax): New decl.
83745
83746 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83747
83748         * lib/xgetcwd.c: Don't include pathmax.h.
83749         Include stdlib.h and unistd.h if available.
83750         Include xalloc.h.
83751         (xmalloc, xstrdup, free): Remove decls.
83752         (xgetcwd): Don't assume sizes fit in unsigned.
83753         Check for overflow when computing sizes.
83754         Simplify reallocation code.
83755
83756 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83757
83758         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83759         a directory's st_size can have an arbitrary value, so the old
83760         usage could waste an arbitrary amount of memory.  All uses
83761         changed.
83762         * lib/savedir.h: Update prototype.
83763
83764 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83765
83766         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83767
83768         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83769         old strtoimax.c.
83770
83771         Also, make the following further changes to make this file's
83772         configuration more similar to that of strtol.c:
83773         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83774         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83775         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83776         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83777         changed to signed values.
83778
83779         And make the following changes as well:
83780         Fix copyright notice, as 1999 was missing.
83781         (verify): New macro.
83782         (strtoimax): Check sizes at compile-time, not run-time.
83783         Prefer strtol to strtoll if both work.
83784         (main): Remove; it was not that useful and was a pain to maintain.
83785
83786         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83787
83788 2001-08-31  Jim Meyering  <meyering@lucent.com>
83789
83790         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83791         Use an initial, malloc'd, buffer of length 128 rather than
83792         a statically allocated one of length 1024.
83793
83794 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83795
83796         Simplify code, partly by assuming autoconf 2.52 semantics.
83797
83798         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83799
83800         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83801         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83802         All uses removed.
83803         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83804         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83805         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83806         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83807         jm_AC_HEADER_INTTYPES_H.
83808         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83809
83810         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83811
83812         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83813         Quote first arg of AC_DEFUN.
83814         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83815         since they are needed to parse the include file even if we need
83816         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83817         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83818         but with opposite signedness.
83819
83820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83821
83822         Merge 'exclude' changes from tar 1.13.22.
83823         This fixes one or two unlikely storage allocation overflow bugs,
83824         but doesn't change user-visible behavior otherwise.
83825
83826 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83827
83828         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83829         (jm_PREREQ_EXCLUDE): New macro.
83830
83831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83832
83833         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83834         tm to be declared.
83835
83836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83837
83838         * lib/hash.c: Remove '2001' from copyright notice.
83839
83840 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83841
83842         * lib/full-write.h: New file.
83843         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83844         * lib/full-write.c: Correct credits, as cccp.c no longer
83845         exists and anyway it was so heavily changed from the old cccp
83846         code as to be unrecognizable.  Include full-write.h.
83847         (full_write): Return size_t, with short writes meaning failure.
83848         All callers changed.  This fixes a bug with large buffers
83849         on 64-bit hosts.
83850         * lib/utime.c: Include full-write.h.
83851
83852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83853
83854         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83855         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83856         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83857         Include if available.
83858         (<xalloc.h>): Include
83859         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83860         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83861         collide with FNM macros.
83862         (struct patopts): New struct.
83863         (struct exclude): Use it, as exclude patterns now come with options.
83864         (new_exclude): Support above changes.
83865         (new_exclude, add_exclude_file):
83866         Initial size must now be a power of two to simplify overflow checking.
83867         (free_exclude, fnmatch_no_wildcards): New function.
83868         (excluded_filename): No longer requires options arg, as the options
83869         are determined by add_exclude.  Now returns bool, not int.
83870         (excluded_filename, add_exclude):
83871         Add support for the fancy new exclusion options.
83872         (add_exclude, add_exclude_file): Now takes int options arg.
83873         Check for arithmetic overflow when computing sizes.
83874         (add_exclude_file): xrealloc might modify errno, so don't
83875         realloc until after errno might be used.
83876
83877         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83878         New macros.
83879         (free_exclude): New decl.
83880         (add_exclude, add_exclude_file): Now takes int options arg.
83881         (excluded_filename): No longer requires options arg, as the options
83882         are determined by add_exclude.  Now returns bool, not int.
83883
83884 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83885
83886         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83887
83888 2001-08-27  Jim Meyering  <meyering@lucent.com>
83889
83890         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83891
83892         * lib/version-etc.c (N_): Remove definition.
83893         Revert most of last change.
83894         Instead, simply don't mark the `Copyright...' string for translation.
83895         Based on advice from Paul Eggert.
83896
83897         * lib/strtoxmax.c: Tweak comment.
83898
83899 2001-08-26  Jim Meyering  <meyering@lucent.com>
83900
83901         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83902
83903         * m4/xstrtoimax.m4: New file.
83904         * m4/xstrtoumax.m4: Add comments explaining why we
83905         AC_REPLACE_FUNCS(strtol).
83906
83907 2001-08-26  Jim Meyering  <meyering@lucent.com>
83908
83909         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83910         of copyright with `%s' so translators don't get an untranslated
83911         message in 2002.
83912         (COPYRIGHT_YEAR): Define.
83913         (version_etc): Use fprintf rather than fputs.
83914         Suggestion from Ulrich Drepper.
83915
83916         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83917
83918         * lib/strtoll.c: New file, from GNU libc.
83919         * lib/xstrtoimax.c: New file.
83920
83921         * lib/xstrtol.h: Add xstrtoimax.
83922         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83923         * lib/strtoimax.c: New file.  Likewise, but first define
83924         STRTOUXMAX_SIGNED.
83925
83926         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83927         ...
83928         * lib/strtoxmax.c: ... then renamed to this.
83929
83930 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83931
83932         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83933         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83934         (jm_AC_TYPE_INTMAX_T): New macro.
83935         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83936
83937         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83938
83939         * m4/longlong.m4: Renamed from ulonglong.m4.
83940         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83941         * m4/uintmax_t.m4: Removed.
83942
83943 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83944
83945         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83946         Port to Solaris 8, where 'sed' requires a space after the 'r'
83947         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83948         Redirect output to $tmp just once.
83949
83950 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83951
83952         * lib/addext.c (<errno.h>): Include.
83953         (errno): Declare if not defined.
83954         (addext): Work correctly when pathconf returns -1 and leaves
83955         errno alone because there is no limit.  Also, work even if
83956         pathconf returns a value greater than SIZE_MAX.
83957
83958 2001-08-12  Jim Meyering  <meyering@lucent.com>
83959
83960         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83961         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83962         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83963         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83964         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83965         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83966         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83967         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83968         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83969         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83970         utime.m4, utimes.m4, xstrtoumax.m4:
83971         Quote the first argument in each use of AC_DEFUN.
83972
83973 2001-08-12  Jim Meyering  <meyering@lucent.com>
83974
83975         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83976         Simply `return getcwd (NULL, 0);'.
83977         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83978         Use 1300 as initial value for length, not PATH_MAX.
83979
83980         * lib/pathmax.h: Clean up cpp syntax.
83981
83982 2001-08-12  Jim Meyering  <meyering@lucent.com>
83983
83984         * lib/gettimeofday.c: New file.
83985         * lib/gtod.h: New file.
83986         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83987
83988 2001-08-05  Jim Meyering  <meyering@lucent.com>
83989
83990         * m4/jm-macros.m4: Require autoconf-2.52.
83991
83992 2001-08-04  Jim Meyering  <meyering@lucent.com>
83993
83994         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83995         stmt, to get in sync with glibc.
83996
83997 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83998
83999         The following changes are from gettext 0.10.39 as maintained by
84000         Bruno Haible.
84001
84002         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84003         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84004         with inverted sense.  All uses changed.
84005
84006         * lib/mbswidth.c: Don't include <limits.h>.
84007         Include <stdlib.h> and <string.h> unconditionally.
84008         (iswcntrl, mbsinit, ISCNTRL): New macros.
84009         (mbsnwidth): Use K&R style function declarations.
84010         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84011         can optimize it when MB_CUR_MAX == 1.
84012         The width of control characters is zero, not 1.
84013
84014 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84015
84016         The following changes are from gettext 0.10.39 as maintained by
84017         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84018
84019         * m4/codeset.m4: Upgrade to serial AM1.
84020         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84021         all uses changed.  Quote first arg of AC_DEFUN.
84022         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84023
84024         * m4/iconv.m4: Upgrade to serial AM2.
84025         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84026         Add --with-libconv-prefix.
84027         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84028         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84029         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84030         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84031         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84032
84033         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84034         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84035         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84036         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84037         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84038         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84039         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84040         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84041         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84042
84043         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84044         string.h any more.
84045
84046         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84047         not the default value.
84048
84049         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84050         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84051         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84052         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84053         Also check for iswcntrl, used for wcwidth fallback.
84054         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84055         to Autoconf 2.13.
84056
84057 2001-08-03  Jim Meyering  <meyering@lucent.com>
84058
84059         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84060         as it was in the original.  Reported by Paul Eggert.
84061
84062 2001-07-16  Jim Meyering  <meyering@lucent.com>
84063
84064         * m4/gettimeofday.m4: New file.
84065         Prompted by a report from Bernhard Baehr.
84066
84067 2001-07-15  Jim Meyering  <meyering@lucent.com>
84068
84069         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84070         stuff. Now it's in ../Makefile.cfg.
84071
84072 2001-07-15  Jim Meyering  <meyering@lucent.com>
84073
84074         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84075         (BUILT_SOURCES): Add unlocked-io.h.
84076         (io_functions): Define.
84077         (unlocked-io.h): New rule.
84078         (DISTCLEANFILES): Add unlocked-io.h.
84079         (all-local): Depend on unlocked-io.h, to ensure it is created.
84080
84081         * lib/unlocked-io.hin: New file
84082
84083         * lib/regex.c: Update from glibc.
84084
84085 2001-07-05  Jim Meyering  <meyering@lucent.com>
84086
84087         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84088         recommendation.
84089         (libfetish_a_SOURCES): Put all .h files here instead.
84090         Remove a thus-exposed (better checks in automake) duplicate and
84091         two unnecessary .h files.
84092
84093 2001-07-04  Jim Meyering  <meyering@lucent.com>
84094
84095         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84096         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84097         distcheck failure.
84098
84099 2001-07-02  Jim Meyering  <meyering@lucent.com>
84100
84101         The following changes were prompted by suggestions from Bruno Haible.
84102
84103         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84104         is now generated.
84105         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84106         definition of EXTRA_DIST.
84107         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84108         ensure that the generated file is created/updated whenever the list
84109         of $(unlocked_functions) is changed.
84110         (jm-glibc-io.m4): New rule.
84111         (unlocked-io.h): New rule -- currently unused.
84112
84113 2001-06-24  Jim Meyering  <meyering@lucent.com>
84114
84115         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84116         unmatched right bracket, rather than kludging it with an extra,
84117         falsely-matching quote in a comment.  Patch by Akim Demaille.
84118
84119 2001-06-11  Jim Meyering  <meyering@lucent.com>
84120
84121         * lib/regex.c: Update from GNU libc.
84122
84123 2001-05-27  Jim Meyering  <meyering@lucent.com>
84124
84125         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84126         Check for ut_type in struct utmp.
84127
84128 2001-05-27  Jim Meyering  <meyering@lucent.com>
84129
84130         * lib/readutmp.h (UT_TYPE): Define.
84131
84132 2001-05-24  Jim Meyering  <meyering@lucent.com>
84133
84134         * lib/argmatch.c: Include "quote.h".
84135         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84136         quote function.  Reported by Göran Uddeborg.
84137
84138 2001-05-22  Jim Meyering  <meyering@lucent.com>
84139
84140         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84141         now that we use the package-supplied version unconditionally.
84142         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84143
84144 2001-05-21  Jim Meyering  <meyering@lucent.com>
84145
84146         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84147         shell syntax errors.
84148
84149 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84150
84151         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84152
84153 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84154
84155         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84156         Don't bother to check library strftime, since
84157         we'll be using our own my_strftime function anyway.
84158         Define my_strftime instead of strftime.
84159
84160 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84161
84162         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84163         which is not yet declared.
84164
84165 2001-05-15  Jim Meyering  <meyering@lucent.com>
84166
84167         * m4/regex.m4: Use proper quoting so brackets appear in the test
84168         program.
84169         Reported by, and with help from, Bruno Haible.
84170
84171 2001-05-13  Jim Meyering  <meyering@lucent.com>
84172
84173         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84174         undefined.
84175
84176 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84177
84178         dirname code cleanup.  base_name now behaves more compatibly
84179         with POSIX basename when given file names that have trailing
84180         slashes, and similarly for dir_name.  Add new primitives
84181         base_len and dir_len.  Put the directory-name-related decls
84182         into dirname.h.
84183
84184         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84185         * lib/backupfile.c (base_name): Likewise.
84186         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84187         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84188         * lib/makepath.c (strip_trailing_slashes): Likewise.
84189         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84190         ISSLASH): Likewise.
84191         * lib/rename.c (strip_trailing_slashes): Likewise.
84192         * lib/same.c (base_name): Likewise.
84193         * lib/stripslash.c (ISSLASH): Likewise.
84194
84195         * lib/addext.c: Include <dirname.h> after size_t is defined.
84196         * lib/backupfile.c: Likewise.
84197
84198         * lib/addext.c (addext): Use base_len to trim redundant
84199         trailing slashes instead of doing it ourselves.
84200         But do not trim the last slash if it is not redundant.
84201
84202         * lib/backupfile.c (find_backup_file_name,
84203         max_backup_version): Use base_len instead of rolling it ourselves.
84204         Handle the case of "" and (on DOS) "C:" correctly.
84205
84206         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84207         needed. Include <string.h>, <dirname.h>.
84208         (base_name): Allow file names ending in slashes, other than names
84209         that are all slashes.  In this case, return the basename followed
84210         by the slashes.  This is more general, and can be used in places
84211         where the original base_name purposely had an assertion failure.
84212         (base_len): New function.
84213
84214         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84215         Do not include <assert.h>; no longer needed.
84216         Include xalloc.h.
84217         (memrchr): Remove decl.
84218         (dir_name_r): Remove.
84219         (dir_len): Renamed from dirlen.  All callers changed.
84220         Rewrite in terms of base_name, for simplicity and consistency.
84221         (dir_name): Never return NULL.  All callers changed.
84222         Do not include <stdlib.h> in test program; no longer needed.
84223         return 0; is fine for test program.
84224
84225         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84226         New macros.
84227         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84228
84229         * lib/path-concat.c (path_concat): Use base_len to compute
84230         base length, not strlen; this means we cannot rely on memcpy
84231         to null-terminate.
84232
84233         * lib/same.c (STREQ): Remove.
84234         (same_name): Handle the case where the basename ends in trailing '/'.
84235
84236         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84237         a slash was stripped.  Do not strip the last slash after a
84238         file system prefix.
84239
84240 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84241
84242         * lib/Makefile.am (libfetish_a_SOURCES):
84243         Add strftime.c, since we now compile it on all hosts.
84244
84245         * lib/strftime.c (my_strftime):
84246         Define to nstrftime if emacs, but only if my_strftime is not defined.
84247         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84248         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84249         Add one more extra argument: a nanoseconds value.
84250         All uses changed.
84251         (ns): New macro.
84252         (my_strftime function): Add %N format.
84253         (emacs_strftimeu): Renamed from emacs_strftime,
84254         with extra ut argument.
84255
84256 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84257
84258         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84259
84260 2001-04-21  Jim Meyering  <meyering@lucent.com>
84261
84262         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84263         doesn't interfere.
84264
84265 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84266
84267         * m4/ftruncate.m4: Check for chsize.
84268         Link with ftruncate.o unconditionally if ftruncate is missing.
84269         This was required when cross-compiling to i586-mingw32msvc.
84270
84271 2001-04-08  Jim Meyering  <meyering@lucent.com>
84272
84273         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84274         recomputed; that's necessary when the offset spans a DST transition.
84275         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84276
84277 2001-04-02  Jim Meyering  <meyering@lucent.com>
84278
84279         * lib/regex.h, regex.c: Update from GNU libc.
84280
84281 2001-03-24  Jim Meyering  <meyering@lucent.com>
84282
84283         * m4/jm-macros.m4: Require autoconf-2.49d.
84284
84285 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84286
84287         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84288
84289 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84290
84291         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84292
84293 2001-03-17  Jim Meyering  <meyering@lucent.com>
84294
84295         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84296         now that the version in autoconf is equivalent.
84297         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84298
84299         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84300         Suggestion from Akim Demaille.
84301
84302         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84303         (jm_PREREQ_TEMPNAME): New function.
84304
84305 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84306
84307         * lib/tempname.c (uint64_t): Define to uintmax_t if
84308         not defined, and if UINT64_MAX is not defined.
84309         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84310         Reported by John David Anglin.
84311
84312 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84313
84314         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84315         resolve alias if codeset is empty.
84316         * lib/config.charset (BeOS): Use wildcard syntax.
84317
84318 2001-03-13  Jim Meyering  <meyering@lucent.com>
84319
84320         * lib/path-concat.c (path_concat)
84321         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84322         concatenating e.g., `C:' and `foo'.
84323         From Bruno Haible.
84324
84325 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84326
84327         * lib/localcharset.c (locale_charset): Don't use
84328         setlocale(LC_CTYPE,NULL). Don't return NULL.
84329         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84330
84331 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84332
84333         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84334         support for DOS/DJGPP.
84335
84336 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84337
84338         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84339         lacks mkstemp.  Compile our own tempname.c if we compile our own
84340         mkstemp.c, as mkstemp relies on tempname.
84341
84342 2001-03-01  Jim Meyering  <meyering@lucent.com>
84343
84344         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84345         AH_VERBATIM really does output its argument verbatim.
84346
84347 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84348
84349         * lib/Makefile.am (libfetish_a_SOURCES):
84350         Add dup-safer.c, fopen-safer.c.
84351         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84352
84353         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84354         * lib/unistd-safer.h: New files.
84355
84356 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84357
84358         The mkstemp replacement is taken from glibc 2.2.2, with some
84359         portability fixes for use outside glibc, as follows:
84360
84361         * lib/tempname.c (struct_stat64): New macro.
84362         (direxists, __gen_tempname): Use it.
84363         This avoids a portability problem with Solaris 8.
84364
84365         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84366         (<stddef.h>, <stdint.h>, <string.h>):
84367         Include only if STDC_HEADERS || _LIBC.
84368         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84369         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84370         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84371         (__set_errno): Define this macro if <errno.h> doesn't.
84372         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84373         Define these macros if <stdio.h> doesn't.
84374         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84375         Define these macros if <sys/stat.h>
84376         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84377         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84378         __xstat64): Define if not _LIBC.
84379         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84380         (__gen_tempname): Invoke gettimeofday only if
84381         HAVE_GETTIMEOFDAY || _LIBC;
84382         otherwise, fall back on plain "time".
84383         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84384
84385         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84386
84387         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84388
84389 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84390
84391         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84392
84393 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84394
84395         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84396         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84397         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84398         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84399
84400 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84401
84402         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84403         Remove workaround macros for hosts that have mbrtowc but not
84404         mbstate_t, as we now insist on proper declarations for both
84405         before using mbrtowc.
84406
84407 2001-02-17  Jim Meyering  <meyering@lucent.com>
84408
84409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84410         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84411         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84412         UnixWare 7.1.1.
84413
84414         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84415         rather than AC_CACHE_VAL.
84416
84417 2001-02-17  Jim Meyering  <meyering@lucent.com>
84418
84419         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84420         around included file name.
84421
84422         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84423
84424         * lib/strftime.c: Update from GNU libc (the only changes were to
84425         comments).
84426
84427 2001-02-17  Jim Meyering  <meyering@lucent.com>
84428
84429         * lib/regex.c: Update from libc.
84430
84431 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84432
84433         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84434         clash.
84435
84436 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84437
84438         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84439         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84440         Reported by Mark Hounschell via Paul Eggert.
84441
84442 2001-02-07  Jim Meyering  <meyering@lucent.com>
84443
84444         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84445
84446 2001-02-05  Jim Meyering  <meyering@lucent.com>
84447
84448         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84449         it includes the patch required for `large file' support with at least
84450         HP-UX's 10.20 /bin/cc.
84451
84452 2001-02-03  Jim Meyering  <meyering@lucent.com>
84453
84454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84455         AS_IF, now that it works once again (mysteriously).
84456         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84457
84458 2001-01-30  Jim Meyering  <meyering@lucent.com>
84459
84460         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84461         * m4/chown.m4: Rename conftestchown to conftest.chown.
84462         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84463         s/conftestdir2/conftest.d2/.
84464         * m4/utimes.m4: s/conftestdata/conftest.data/
84465         Inspired by Pavel Roskin's change in autoconf.
84466
84467 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84468
84469         * lib/config.charset: Update for FreeBSD 4.2.
84470
84471 2001-01-27  Jim Meyering  <meyering@lucent.com>
84472
84473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84474         a use of AS_IF.
84475         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84476
84477 2001-01-26  Jim Meyering  <meyering@lucent.com>
84478
84479         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84480         quotearg.c includes it.
84481
84482 2001-01-26  Jim Meyering  <meyering@lucent.com>
84483
84484         * lib/quotearg.c: Include stddef.h.
84485         * lib/quote.c: Include stddef.h.
84486         Reported by Axel Kittenberger.
84487
84488         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84489         line in double quotes so that it evokes a better diagnostic.
84490         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84491         Reported by Axel Kittenberger.
84492
84493 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84494
84495         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84496         as if it was a `charset'.
84497
84498 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84499
84500         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84501         has const.
84502
84503 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84504
84505         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84506         to avoid a warning.  Add back 'const' to inptr.
84507
84508 2001-01-20  Jim Meyering  <meyering@lucent.com>
84509
84510         Be sure that headers are checked before used in code compiled
84511         for the type checks.
84512         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84513         In place of that, invoke jm_CHECK_ALL_TYPES.
84514         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84515         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84516         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84517         The check for ssize_t was mistakenly run before the test for unistd.h.
84518
84519         The configure-time check for stdbool.h was missing.
84520         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84521         (jm_PREREQ_HASH): New function.
84522
84523 2001-01-17  Jim Meyering  <meyering@lucent.com>
84524
84525         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84526         for autoconf-2.49c.
84527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84528
84529 2001-01-16  Jim Meyering  <meyering@lucent.com>
84530
84531         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84532         From Bruno Haible.
84533
84534 2001-01-14  Jim Meyering  <meyering@lucent.com>
84535
84536         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84537         foo and bar.  Create conftestdir/ in the script, not in the C code.
84538         Remove directories in the script, not in the C code.
84539         Remove conftestdir{,2} before trying to create the directory.
84540         Make the entire configure script fail if the mkdir fails.
84541
84542 2001-01-14  Jim Meyering  <meyering@lucent.com>
84543
84544         * lib/rename.c: New file.  From Volker Borchert.
84545         Include stdlib.h, string.h or strings.h, and xalloc.h.
84546         Use strip_trailing_slashes rather than open-coding it.
84547
84548 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84549
84550         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84551
84552 2001-01-03  Jim Meyering  <meyering@lucent.com>
84553
84554         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84555         of local `inptr' to avoid warning with some system declarations of
84556         iconv.
84557
84558 2001-01-02  Volker Borchert  <bt@teknon.de>
84559
84560         * m4/rename.m4: New file.
84561         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84562
84563 2001-01-01  Jim Meyering  <meyering@lucent.com>
84564
84565         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84566         even on systems with utmpx.h.  It's necessary for the declaration of
84567         utmp's ut_user member.  Reported by Andreas Jaeger.
84568
84569         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84570         available. They are required for the declarations of getgrgid and
84571         getpwuid resp.
84572         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84573         Reported by Andreas Jaeger.
84574
84575 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84576
84577         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84578         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84579         so `make install' also works in VPATH builds.
84580
84581 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84582
84583         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84584         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84585         can be used in subdirectories.
84586
84587 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84588
84589         * lib/modechange.c: Do not assume that mode_t uses the
84590         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84591         the other-execute bit of FOO even if S_IXOTH != 1.
84592
84593         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84594         WOTH, XOTH, ALLM): New macros.
84595         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84596          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84597         Use them.
84598         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84599         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84600         (mode_compile):
84601         No need to use uintmax_t; unsigned long is long enough.
84602         Don't bother to get suffix since we don't use it.
84603
84604 2000-12-26  Jim Meyering  <meyering@lucent.com>
84605
84606         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84607         better with autoheader.
84608
84609 2000-12-24  Jim Meyering  <meyering@lucent.com>
84610
84611         * lib/hash.c (is_prime): Return explicit boolean values.
84612         (hash_get_first): Return NULL to appease Irix5.6's 89.
84613         Reported by Nelson Beebe.
84614
84615 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84616
84617         * lib/localcharset.c (locale_charset): Add support for Win32.
84618
84619 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84620
84621         * lib/physmem.h, lib/physmem.c: New files.
84622
84623         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84624         (noinst_HEADERS): Add physmem.h.
84625
84626         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84627         't' for compatibility with Solaris 8 sort.
84628
84629 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84630
84631         * lib/config.charset: Add support for BeOS.
84632
84633 2000-12-17  Jim Meyering  <meyering@lucent.com>
84634
84635         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84636         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84637
84638 2000-12-16  Jim Meyering  <meyering@lucent.com>
84639
84640         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84641         N and M) would have treated it like `chown N:N FILE'.
84642
84643         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84644
84645 2000-12-16  Jim Meyering  <meyering@lucent.com>
84646
84647         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84648         SHELLS_FILE to a file name that's useful on djgpp systems.
84649         Include stdlib.h.
84650         (ADDITIONAL_DEFAULT_SHELLS): Define.
84651         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84652         Based mostly on a patch from Prashant TR.
84653
84654 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84655
84656         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84657         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84658         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84659
84660 2000-12-08  Andreas Schwab  <schwab@suse.de>
84661
84662         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84663         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84664
84665 2000-12-07  Jim Meyering  <meyering@lucent.com>
84666
84667         * lib/stripslash.c (ISSLASH): Define.
84668         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84669         `/'.
84670         From Prashant TR.
84671
84672         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84673         (dir_name_r): Declare this function as static.
84674         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84675         manifest itself on a name containing a mix of slashes and
84676         backslashes.
84677         Make this function work with names starting with a DOS-style
84678         drive letter and colon prefix.
84679         (dir_name): Append `.' if necessary.
84680         Based mostly on patches from Prashant TR and Eli Zaretskii.
84681
84682         * lib/dirname.h (dir_name_r): Remove prototype.
84683
84684 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84685
84686         * m4/off_t-format.m4: Remove this file.
84687         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84688
84689 2000-12-06  Jim Meyering  <meyering@lucent.com>
84690
84691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84692         replacement strtoull, we may well need the replacement strtoul, too.
84693         Check for declarations of strtoul and strtoull.
84694         Check for strtol.  Mainly as a cue to cause automake to include
84695         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84696         Check for limits.h -- strtol.c needs it.
84697
84698 2000-12-05  Jim Meyering  <meyering@lucent.com>
84699
84700         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84701
84702 2000-12-04  Jim Meyering  <meyering@lucent.com>
84703
84704         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84705         Also include memory.h, stdlib.h, unistd.h if appropriate.
84706         Reported by Andreas Jaeger (conflicting declaration of malloc).
84707
84708 2000-12-02  Jim Meyering  <meyering@lucent.com>
84709
84710         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84711         * m4/jm-macros.m4 (jm_MACROS): require it.
84712
84713 2000-12-02  Jim Meyering  <meyering@lucent.com>
84714
84715         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84716
84717 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84718
84719         * lib/memrchr.c: Include <config.h> before any system include file.
84720
84721 2000-11-30  Jim Meyering  <meyering@lucent.com>
84722
84723         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84724
84725 2000-11-30  Jim Meyering  <meyering@lucent.com>
84726
84727         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84728
84729 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84730
84731         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84732
84733 2000-11-26  Jim Meyering  <meyering@lucent.com>
84734
84735         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84736
84737 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84738
84739         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84740         size of (size_t) -1; it's not portable.
84741
84742 2000-11-17  Jim Meyering  <meyering@lucent.com>
84743
84744         * lib/strstr.c: Update from GNU libc.
84745
84746 2000-11-17  Akim Demaille  <akim@epita.fr>
84747
84748         * lib/obstack.h: Formatting changes.
84749         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84750         prevent type checking.
84751         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84752         cast the value to (void *): assigning a `foo *' to a `void *'
84753         variable is valid.
84754         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84755
84756 2000-11-16  Jim Meyering  <meyering@lucent.com>
84757
84758         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84759
84760 2000-11-11  Jim Meyering  <meyering@lucent.com>
84761
84762         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84763
84764 2000-11-10  Jim Meyering  <meyering@lucent.com>
84765
84766         * lib/obstack.h: Update from GNU libc.
84767         * lib/obstack.c: Likewise.
84768
84769 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84770
84771         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84772
84773 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84774
84775         * lib/getusershell.c (setusershell): Use rewind rather than
84776         fseek/fseeko, to avoid configuration hassles with fseeko.
84777         Don't bother opening SHELLS_FILE if shellstream is NULL;
84778         it's not necessary.
84779
84780 2000-11-05  Jim Meyering  <meyering@lucent.com>
84781
84782         * lib/makepath.h (make_dir): Declare.
84783         * lib/makepath.c (make_dir): Remove `static' attribute.
84784         Tweak a comment.
84785
84786 2000-11-04  Jim Meyering  <meyering@lucent.com>
84787
84788         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84789
84790 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84791
84792         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84793         last one in a bucket, advance to the next bucket.
84794
84795 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84796
84797         * lib/fnmatch.c: Do not comment out all the code if we are using
84798         the GNU C library, because in some cases we are replacing buggy
84799         code in the GNU C library itself.
84800
84801 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84802
84803         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84804         (regex_compile): Catch bogus \(\1\).
84805
84806 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84807
84808         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84809         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84810         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84811
84812 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84813
84814         * lib/error.h, getline.h, modechange.h:
84815         Remove "2000" from Copyright line, as the file hasn't been
84816         changed this year other than in the copyright notice.
84817
84818         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84819         was changed this year.
84820
84821 2000-10-29  Jim Meyering  <meyering@lucent.com>
84822
84823         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84824         renaming.
84825         * m4/ls-mntd-fs.m4: Likewise
84826
84827 2000-10-29  Jim Meyering  <meyering@lucent.com>
84828
84829         * lib/xstat.in: Fix grammar in comment.
84830
84831 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84832
84833         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84834         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84835         doesn't define __restrict_arr.
84836
84837 2000-10-28  Jim Meyering  <meyering@lucent.com>
84838
84839         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84840         (jm_PREREQ_MEMCHR): New function.
84841
84842 2000-10-28  Jim Meyering  <meyering@lucent.com>
84843
84844         * lib/memchr.c: Update from libc.
84845         Adjust for portability:
84846         [HAVE_STDLIB_H]: Include stdlib.h.
84847         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84848         Undef __memchr, too.
84849         [!weak_alias]: Define __memchr to memchr.
84850
84851         * lib/regex.c: Update from libc.
84852         * lib/regex.h: Likewise.
84853         * lib/getopt1.c: Likewise.
84854         * lib/memcmp.c: Likewise.
84855
84856         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84857         Avoid using fseek, when possible -- it's broken by design.
84858         Patch by Ulrich Drepper.
84859
84860 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84861
84862         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84863         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84864         Giving in to popular pressure to shut up the compiler with casts.
84865
84866 2000-10-26  Jim Meyering  <meyering@lucent.com>
84867
84868         * lib/strftime.c: Update from libc.
84869
84870 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84871
84872         * regex.c: More `unsigned char' -> `re_char' changes.
84873         Also change several `int' into `re_wchar_t'.
84874         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84875         (PUSH_FAILURE_POINTER): Don't cast any more.
84876         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84877         We want GCC to complain, since this piece of code makes
84878         re_match non-reentrant, which *should* be fixed.
84879         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84880         (EXTEND_BUFFER): Use RETALLOC.
84881         (SET_LIST_BIT): Don't cast.
84882         (re_wchar_t): New type.
84883         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84884         that those two functions will always properly return.
84885         (IMMEDIATE_QUIT_CHECK): Cast to void.
84886         (analyse_first): Use recursion rather than an explicit stack.
84887         (re_compile_fastmap): Can't fail anymore.
84888         (re_search_2): Don't check re_compile_fastmap for failure.
84889         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84890         Now also sets the new value (passed in a new argument).
84891         (re_match_2_internal): Use it.
84892         Also, use a new var `reg' of type size_t when looping through regs
84893         rather than reuse the inappropriate `mcnt'.
84894
84895 2000-10-25  Jim Meyering  <meyering@lucent.com>
84896
84897         * lib/obstack.c: Update from libc.
84898
84899 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84900
84901         * regex.c (regex_compile): Change the way of handling a range from
84902         a char less than 256 to a char not less than 256.
84903
84904 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84905
84906         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84907         NT-Emacs only.
84908         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84909         so that re_search functions only quit when callers expect them to.
84910
84911 2000-10-23  Jim Meyering  <meyering@lucent.com>
84912
84913         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84914         wrong.  That set_locale call must not have any side effects.
84915         From Paul Eggert.
84916
84917 2000-10-22  Jim Meyering  <meyering@lucent.com>
84918
84919         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84920         [CYCLIC]: Remove now-unused definition.
84921
84922         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84923         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84924         Suggestion from Ulrich Drepper.
84925
84926 2000-10-21  Jim Meyering  <meyering@lucent.com>
84927
84928         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84929         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84930         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84931
84932 2000-10-21  Jim Meyering  <meyering@lucent.com>
84933
84934         * lib/dirname.c (memrchr): Declare if necessary.
84935         (dir_name): Remove the restriction that there be no
84936         trailing slashes.  Now, this code skips past them, effectively
84937         ignoring them.
84938         [TEST_DIRNAME] (main): New unit tests.
84939
84940         * lib/memrchr.c: New file from GNU libc.
84941         Undef __memrchr, too.
84942         [!weak_alias]: Define __memrchr to memrchr.
84943         Guard weak_alias use with `#ifdef weak_alias'.
84944
84945 2000-10-21  Jim Meyering  <meyering@lucent.com>
84946
84947         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84948         (dir_name): Use dir_name_r.
84949         * lib/dirname.h (dir_name_r): Declare it.
84950
84951 2000-10-17  Jim Meyering  <meyering@lucent.com>
84952
84953         * lib/quote.h (PARAMS): Define and use.
84954         Reported by Akim Demaille.
84955
84956         * lib/getopt.c: Update from libc.
84957
84958 2000-10-16  Jim Meyering  <meyering@lucent.com>
84959
84960         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84961         setlocale.
84962         From Jan Fedak.
84963
84964 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84965
84966         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84967
84968 2000-09-25  Jim Meyering  <meyering@lucent.com>
84969
84970         * lib/md5.h (rol): Define (from GnuPG).
84971
84972         * lib/sha.c: Give credit (GnuPG) where due.
84973         (M): Use rol rather than open-coding it.
84974         Add a FIXME comment.
84975
84976 2000-09-21  Jim Meyering  <meyering@lucent.com>
84977
84978         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84979         Reported by Michael Stone.
84980
84981 2000-09-20  Jim Meyering  <meyering@lucent.com>
84982
84983         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84984         (noinst_HEADERS): Add sha.h.
84985         Based on code from Scott G. Miller and from GnuPG.
84986
84987 2000-09-18  Jim Meyering  <meyering@lucent.com>
84988
84989         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84990         LIBS. Otherwise, everyone ends up linking with -lelf for some
84991         configurations.
84992         Reported by Mike Stone.
84993
84994 2000-09-15  Jim Meyering  <meyering@lucent.com>
84995
84996         * lib/regex.c: Update from libc.
84997
84998 2000-09-10  Jim Meyering  <meyering@lucent.com>
84999
85000         * lib/getopt.c (_getopt_internal): Update from glibc.
85001
85002 2000-09-09  Jim Meyering  <meyering@lucent.com>
85003
85004         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85005         think it should be used as a general replacement for isascii.
85006         * lib/fnmatch.c: Likewise.
85007         * lib/mbswidth.c: Likewise
85008         * lib/regex.c: Likewise.
85009
85010         Don't use atoi.
85011         * lib/userspec.c: Include sys/param.h and limits.h.
85012         Include xstrtol.h.
85013         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85014         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85015         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85016         UID, GID.  Check range.
85017
85018 2000-09-06  Jim Meyering  <meyering@lucent.com>
85019
85020         * lib/getopt.c (_getopt_internal): Update from glibc.
85021
85022 2000-08-30  Jim Meyering  <meyering@lucent.com>
85023
85024         * lib/strftime.c: Merge in changes from GNU libc.
85025
85026 2000-08-26  Jim Meyering  <meyering@lucent.com>
85027
85028         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85029         * m4/fpending.m4: New file.
85030
85031 2000-08-26  Jim Meyering  <meyering@lucent.com>
85032
85033         * lib/closeout.c: Include "__fpending.h".
85034         (close_stdout_status): Return right away if there's nothing to flush.
85035
85036         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85037         * lib/__fpending.c: New file.
85038         * lib/__fpending.h: New file.
85039
85040 2000-08-20  Jim Meyering  <meyering@lucent.com>
85041
85042         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85043         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85044         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85045
85046 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85047
85048         Improve fileutils installation on systems where running
85049         programs (like install) can't be unlinked.
85050         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85051         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85052
85053 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85054
85055         Standardize on "memory exhausted" instead of "Memory exhausted"
85056         or "virtual memory exhausted".
85057         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85058         "virtual memory exhausted".
85059         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85060         our own message.
85061         * lib/userspec.c (parse_user_spec): Likewise.
85062         * lib/bumpalloc.h: comment fix
85063         * lib/same.c, userspec.c: Include xalloc.h.
85064
85065         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85066         not char *const and pointing to a constant array.
85067         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85068         (xrealloc): Comment fix.
85069
85070         * lib/userspec.c (parse_user_spec):
85071         Don't translate a message until just before returning,
85072         to avoid unnecessary translation.
85073
85074 2000-08-07  Jim Meyering  <meyering@lucent.com>
85075
85076         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85077         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85078         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85079         getgroups.c, gethostname.c, getopt.h, group-member.c,
85080         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85081         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85082         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85083         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85084         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85085         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85086         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85087         yesno.c: Back out Copyright date changes for each file with no change
85088         this year.  This eases coordination with other programs using the same
85089         source code modules.  From Paul Eggert.
85090
85091 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85092
85093         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85094         not char, for compatibility with glibc 2.1.3 strftime.c.
85095
85096 2000-08-03  Greg McGary  <greg@mcgary.org>
85097
85098         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85099         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85100         (EXTEND_BUFFER): Use them.
85101
85102 2000-08-01  Jim Meyering  <meyering@lucent.com>
85103
85104         * lib/dirname.c (ISSLASH): Define.
85105         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85106         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85107         both `\' and `/' may be use as path separators.
85108         Based on a patch from Prashant TR.
85109
85110 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85111
85112         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85113         slot vector a constant, since it might get modified.
85114
85115 2000-07-31  Jim Meyering  <meyering@lucent.com>
85116
85117         * lib/xmalloc.c: Use `virtual memory exhausted', not
85118         `Memory exhausted'.
85119         * lib/obstack.c (print_and_abort): Likewise.
85120
85121 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85122
85123         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85124         buffer, so that the caller can always quote one small
85125         component of a "memory exhausted" message in slot 0.
85126         From a suggestion by Jim Meyering.
85127
85128 2000-07-30  Jim Meyering  <meyering@lucent.com>
85129
85130         * lib/makepath.c (make_path): Quote the other instance, too.
85131
85132         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85133         (STATIC_BUF_SIZE): Define.
85134         (quotearg_n_options): Use only statically allocated storage when
85135         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85136         than STATIC_BUF_SIZE.
85137
85138 2000-07-29  Jim Meyering  <meyering@lucent.com>
85139
85140         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85141         * lib/dirname.c (dir_name): Likewise.
85142
85143         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85144         `/'.
85145
85146         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85147         (dir_name): Assert that there are no trailing slashes.
85148
85149 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85150
85151         * lib/mbswidth.h (mbswidth): Add a flags argument.
85152         (mbswidth): New declaration.
85153         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85154         * lib/mbswidth.c (mbswidth): Add a flags argument.
85155         (mbsnwidth): New function.
85156
85157 2000-07-24  Jim Meyering  <meyering@lucent.com>
85158
85159         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85160
85161 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85162
85163         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85164
85165 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85166
85167         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85168         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85169         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85170         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85171         invoke multibyte primitives.
85172
85173 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85174
85175         * lib/quotearg.c:
85176         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85177         so that mbstate_t is always defined.
85178
85179         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85180         be 1 in at least one GCC installation, and this configuration
85181         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85182         performance on hosts that have mbrtowc but have only unibyte
85183         locales, but I assume these hosts are rare.
85184
85185 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85186
85187         * lib/mbswidth.c (_XOPEN_SOURCE):
85188         Don't define; this causes problems on Solaris 7.
85189         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85190
85191 2000-07-23  Jim Meyering  <meyering@lucent.com>
85192
85193         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85194         too: getgrgid, getpwuid, getuid.
85195
85196 2000-07-23  Jim Meyering  <meyering@lucent.com>
85197
85198         * lib/basename.c (base_name): Add an assertion.
85199
85200 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85201
85202         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85203         shadow its mbsinit function.
85204
85205 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85206
85207         * lib/mbswidth.h: New file.
85208         * lib/mbswidth.c: New file.
85209         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85210         (noinst_HEADERS): Add mbswidth.h.
85211
85212 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85213
85214         * lib/config.charset: Add support for FreeBSD. Improve support for
85215         HP-UX and IRIX 6.
85216
85217 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85218
85219         * m4/mbswidth.m4: New file.
85220         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85221
85222 2000-07-15  Jim Meyering  <meyering@lucent.com>
85223
85224         * lib/makepath.c: Include quote.h.
85225         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85226         corresponding argument in a `quote (...)' call.
85227         Give better diagnostics.
85228
85229         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85230         (noinst_HEADERS): Add quote.h.
85231
85232         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85233         from tar's src/misc.c.
85234         * lib/quote.h: New file.  Prototypes for same.
85235
85236 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85237
85238         From a suggestion by Bruno Haible.
85239         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85240         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85241         to decide whether to define the BeOS workaround macro;
85242         this adjusts to the change to AC_MBSTATE_T.
85243
85244 2000-07-14  Jim Meyering  <meyering@lucent.com>
85245
85246         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85247         jm_AC_TYPE_UINTMAX_T.
85248
85249 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85250
85251         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85252
85253         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85254         quotearg_buffer_restyled): Add support for
85255         clocale_quoting_style.  Undo previous change to
85256         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85257         and "{RIGHT QUOTATION MARK}" msgids.
85258
85259 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85260
85261         From a suggestion by Bruno Haible.
85262         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85263         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85264         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85265         and mbstate_t, to a single-part test that simply defines mbstate_t.
85266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85267         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85268
85269 2000-07-10  Jim Meyering  <meyering@lucent.com>
85270
85271         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85272
85273         * m4/gnu-source.m4: Output to confdefs.h directly.
85274         Suggestion from Akim Demaille.
85275
85276 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85277
85278         The old behavior of quoting `like this' doesn't look good with
85279         newer, ISO-style fonts.  See:
85280         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85281
85282         Instead, quote "like this" by default.  Let the translator
85283         tailor the locale-specific quoting behavior by providing
85284         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85285
85286         * lib/quotearg.c (N_): New macro.
85287         (gettext_default): New function.
85288         (quotearg_buffer_restyled): Use
85289         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85290         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85291
85292 2000-07-09  Jim Meyering  <meyering@lucent.com>
85293
85294         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85295         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85296
85297         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85299
85300 2000-07-09  Jim Meyering  <meyering@lucent.com>
85301
85302         * lib/Most files: Update copyright dates to include 2000.
85303
85304 2000-07-08  Jim Meyering  <meyering@lucent.com>
85305
85306         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85307         if not defined.
85308         (xgethostname): Remove now-unnecessary #ifdef.
85309         Move declaration of `err' into loop where it's used.
85310
85311 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85312         and Bruno Haible  <haible@clisp.cons.org>
85313
85314         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85315         only if the test for an object-type mbstate_t fails.  This
85316         prevents us from mistakenly reporting that mbstate_t is a
85317         system object type after we "#define mbstate_t int" to work
85318         around its lack.
85319
85320 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85321         and Bruno Haible  <haible@clisp.cons.org>
85322
85323         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85324
85325 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85326
85327         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85328         to strerror_r.
85329         Include <ctype.h> for use of isalpha.
85330
85331 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85332
85333         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85334         by allocating a larger buffer. Test the gethostname return value for
85335         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85336         returns an error and ENAMETOOLONG isn't defined.
85337
85338 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85339
85340         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85341         dimension.
85342
85343 2000-07-04  Jim Meyering  <meyering@lucent.com>
85344
85345         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85346         of the deprecated AC_CHECKING.
85347
85348 2000-07-04  Jim Meyering  <meyering@lucent.com>
85349
85350         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85351         Reported by Bruno Haible.
85352
85353 2000-07-04  Jim Meyering  <meyering@lucent.com>
85354
85355         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85356         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85357         lacks mbrtowc.
85358
85359 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85360
85361         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85362         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85363
85364 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85365         and Bruno Haible  <haible@clisp.cons.org>
85366
85367         * lib/quotearg.c (mbrtowc):
85368         Assign to *pwc, and return 1 only if result is nonzero.
85369         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85370
85371 2000-07-03  Jim Meyering  <meyering@lucent.com>
85372
85373         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85374
85375 2000-07-03  Jim Meyering  <meyering@lucent.com>
85376
85377         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85378         This is necessary to get a definition of e.g., UTMP_FILE on
85379         HP-UX 10.20.
85380         From Bob Proulx.
85381
85382 2000-07-02  Jim Meyering  <meyering@lucent.com>
85383
85384         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85385
85386         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85387         AC_LIBOBJ(function_name).
85388         * m4/chown.m4: Likewise.
85389         * m4/fnmatch.m4: Likewise.
85390         * m4/ftruncate.m4: Likewise.
85391         * m4/getgroups.m4: Likewise.
85392         * m4/getline.m4: Likewise.
85393         * m4/group-member.m4: Likewise.
85394         * m4/jm-macros.m4: Likewise.
85395         * m4/lstat.m4: Likewise.
85396         * m4/malloc.m4: Likewise.
85397         * m4/memcmp.m4: Likewise.
85398         * m4/nanosleep.m4: Likewise.
85399         * m4/putenv.m4: Likewise.
85400         * m4/realloc.m4: Likewise.
85401         * m4/regex.m4: Likewise.
85402         * m4/stat.m4: Likewise.
85403         * m4/strftime.m4: Likewise.
85404
85405 2000-07-02  Jim Meyering  <meyering@lucent.com>
85406
85407         * lib/quotearg.c (mbstate_t): Don't define here.
85408
85409 2000-07-02  Jim Meyering  <meyering@lucent.com>
85410
85411         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85412
85413 2000-07-01  Jim Meyering  <meyering@lucent.com>
85414
85415         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85416
85417 2000-07-01  Jim Meyering  <meyering@lucent.com>
85418
85419         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85420         problem.
85421
85422 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85423
85424         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85425         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85426
85427 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85428
85429         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85430         per change in ../m4/ls-mntd-fs.m4.
85431         (read_filesystem_list): Ignore symbolic links.
85432
85433 2000-06-29  Jim Meyering  <meyering@lucent.com>
85434
85435         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85436         for declaration of strcmp.
85437
85438         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85439
85440         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85441         Avoid warning by casting result to `char *' to remove `const'.
85442
85443 2000-06-28  Jim Meyering  <meyering@lucent.com>
85444
85445         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85446         included by quotearg.c, for which we perform this test.  From
85447         Bruno Haible.
85448
85449 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85450
85451         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85452         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85453         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85454
85455 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85456
85457         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85458
85459 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85460
85461         savedir now sets errno on failure and invokes xmalloc to get memory.
85462         Fix a couple of other minor bugs while we're at it.
85463
85464         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85465         (NAMLEN): Remove macro.
85466         (malloc, realloc): Remove decls.
85467         (stpcpy): Likewise.
85468         ("xalloc.h"): Include.
85469         (NAME_SIZE_DEFAULT): New macro.
85470         (savedir): Use xmalloc / xrealloc to allocate memory.
85471         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85472         Skip "" directory entries.
85473         Use strlen to calculate directory entry length, since the old method
85474         is rarely used these days and isn't worth supporting.
85475         Don't use a pointer after freeing it.
85476         Check for integer overflow when calculating allocation size.
85477         Use memcpy to copy entries, instead of stpcpy.
85478         Set errno properly when returning NULL.
85479         Check for readdir error.
85480
85481 2000-06-26  Jim Meyering  <meyering@lucent.com>
85482
85483         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85484
85485 2000-06-25  Jim Meyering  <meyering@lucent.com>
85486
85487         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85488         Linux header bug when _XOPEN_SOURCE is defined to 500.
85489
85490 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85491
85492         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85493         deficiency.
85494
85495 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85496
85497         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85498         Include xalloc.h.
85499         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85500
85501 2000-06-24  Jim Meyering  <meyering@lucent.com>
85502
85503         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85504         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85505         for which strerror does return char*, but which lacks a conveniently
85506         accessible declaration of the function.  If the compile-test says
85507         strerror_r doesn't work, then resort to a `run'-test that works on
85508         BeOS and segfaults on DEC Unix.
85509
85510 2000-06-24  Jim Meyering  <meyering@lucent.com>
85511
85512         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85513
85514 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85515
85516         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85517         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85518
85519 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85520
85521         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85522         (mbrtowc, mbstate_t): Define substitutes if
85523         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85524         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85525         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85526
85527 2000-06-23  Jim Meyering  <meyering@lucent.com>
85528
85529         * m4/afs.m4: Add missing AC_MSG_RESULT.
85530         Reported by Bruno Haible.
85531
85532         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85533         Suggestion from Bruno Haible.
85534
85535 2000-06-23  Jim Meyering  <meyering@lucent.com>
85536
85537         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85538
85539 2000-06-21  Jim Meyering  <meyering@lucent.com>
85540
85541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85542
85543 2000-06-21  Jim Meyering  <meyering@lucent.com>
85544
85545         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85546         (noinst_HEADERS): Add getstr.h.
85547
85548         * lib/getline.c (getstr): Move into a separate file.
85549         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85550         the following changes: new parameter, delim2; both delim[12]
85551         parameters have type `int', not `char'.  The latter would lose
85552         with 8-bit delimiters.
85553         * lib/getstr.h: New file.
85554
85555 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85556
85557         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85558         than 1024, return a memory chunk of least possible size, instead
85559         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85560         Use free/xmalloc instead of xrealloc to avoid copying for very long
85561         paths.
85562
85563 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85564
85565         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85566         the empty string.
85567
85568 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85569
85570         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85571         address, not strdup.  Include <stdlib.h> and don't declare free().
85572
85573 2000-06-19  Jim Meyering  <meyering@lucent.com>
85574
85575         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85576
85577 2000-06-18  Jim Meyering  <meyering@lucent.com>
85578
85579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85580
85581         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85582         `checking whether...' message to be consistent with that of the
85583         lstat test.
85584
85585 2000-06-18  Jim Meyering  <meyering@lucent.com>
85586
85587         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85588         Besides, these days every porting target provides a mkdir function.
85589
85590         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85591         needed. (this snippet comes from src/system.h).
85592
85593 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85594
85595         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85596
85597 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85598
85599         * lib/human.c (adjust_value): New function.
85600         (human_readable_inexact): Apply rounding style even when
85601         printing approximate values.
85602
85603 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85604
85605         * lib/human.c (human_readable_inexact): Allow an input block
85606         size that is not a multiple of the output block size, and vice versa.
85607         Reported by Piergiorgio Sartor.
85608
85609 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85610
85611         * lib/getdate.y (get_date): Apply relative times after time
85612         zone indicator, not before.  Reported by Todd A. Jacobs.
85613
85614 2000-06-13  Jim Meyering  <meyering@lucent.com>
85615
85616         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85617
85618         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85619
85620 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85621
85622         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85623
85624 2000-06-12  Jim Meyering  <meyering@lucent.com>
85625
85626         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85627         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85628         optional argument.
85629         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85630         the optional argument, `lib'.
85631
85632 2000-06-08  Jim Meyering  <meyering@lucent.com>
85633
85634         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85635
85636 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85637
85638         Rewrite largefile configuration so that we don't need to run
85639         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85640         AC_CANONICAL_HOST in configure.in -- jmm]
85641
85642         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85643         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85644         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85645         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85646         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85647         All uses changed.
85648         Instead of inspecting the output of getconf, try to compile the
85649         test program without and with the macro definition.
85650         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85651         for getconf.  Instead, check for the needed flags by compiling
85652         test programs.
85653
85654 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85655
85656         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85657
85658 2000-06-04  Jim Meyering  <meyering@lucent.com>
85659
85660         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85661         SunOS 4.1.4 for which gid_t is an unsigned type.
85662
85663 2000-06-03  Jim Meyering  <meyering@lucent.com>
85664
85665         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85666         now that autoconf requires that.
85667
85668         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85669         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85670         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85671
85672 2000-06-03  Jim Meyering  <meyering@lucent.com>
85673
85674         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85675
85676 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85677
85678         * m4/glibc21.m4: New file.
85679         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85680
85681 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85682
85683         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85684         newer, don't install charset.alias.
85685         * lib/config.charset: Change the Linux/glibc rules so they become empty
85686         on glibc-2.1 or newer.
85687
85688 2000-06-02  Jim Meyering  <meyering@lucent.com>
85689
85690         * lib/mountlist.c: Back out last change.  Instead, do this...
85691         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85692         me_dummy member using the same `ignore'-testing code.
85693         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85694         fs_type strings.
85695         From Mark D. Roth.
85696
85697 2000-05-29  Jim Meyering  <meyering@lucent.com>
85698
85699         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85700         mounts with the `ignore' attribute.  Based on a patch from
85701         Mark D. Roth.
85702
85703 2000-05-28  Jim Meyering  <meyering@lucent.com>
85704
85705         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85706         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85707         * m4/stat.m4: Likewise.
85708         * m4/lstat.m4: Likewise.
85709         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85710
85711         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85712         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85713
85714 2000-05-26  Jim Meyering  <meyering@lucent.com>
85715
85716         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85717
85718 2000-05-24  Jim Meyering  <meyering@lucent.com>
85719
85720         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85721         autoconf requires that.
85722         * m4/lib-check.m4: Likewise.
85723         * m4/jm-macros.m4: Likewise.
85724         * m4/strftime.m4: Likewise.
85725
85726         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85727         AC_CHECK_DECLS, now that autoconf requires that.
85728
85729 2000-05-22  Jim Meyering  <meyering@lucent.com>
85730
85731         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85732         * m4/lstat.m4: Likewise.
85733
85734 2000-05-22  Jim Meyering  <meyering@lucent.com>
85735
85736         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85737
85738 2000-05-20  Jim Meyering  <meyering@lucent.com>
85739
85740         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85741         (jm_PREREQ): Use it.
85742
85743 2000-05-18  Jim Meyering  <meyering@lucent.com>
85744
85745         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85746         back, too, since it may have been modified by allocate_entry.
85747         (hash_delete): Rewrite to use neither the assignment operator
85748         nor the comma operator in an if-expression.
85749
85750 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85751
85752         * lib/closeout.c:
85753         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85754         Remove; no longer needed.
85755         "quotearg.h": Add include.
85756         (file_name): Do not bother to explicitly initialize to NULL; it's less
85757         efficient on some hosts.
85758         (close_stdout_status): Remove test as to whether stdout was already
85759         closed; it breaks for the case "echo x | sort >&-".
85760         Quote file name colons.
85761         Do not assume that _("write error") lacks format strings.
85762
85763 2000-05-15  Jim Meyering  <meyering@lucent.com>
85764
85765         * lib/version-etc.c (version_etc_copyright): Update the copyright
85766         string used in all --version output.
85767
85768 2000-05-14  Jim Meyering  <meyering@lucent.com>
85769
85770         * lib/closeout.c (close_stdout_set_file_name): New function.
85771         (close_stdout_status): Use new file-scoped global.
85772         Return right away if fstat says the stdout file descriptor is invalid.
85773         * lib/closeout.h (close_stdout_set_file_name): Declare.
85774
85775 2000-05-10  Jim Meyering  <meyering@lucent.com>
85776
85777         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85778         (close_stdout_set_status): New function.
85779         * lib/closeout.h (close_stdout_set_status): Declare.
85780
85781 2000-05-09  Jim Meyering  <meyering@lucent.com>
85782
85783         * m4/gettext.m4: Rename this...
85784         * m4/libintl.m4: ...to this.
85785
85786 2000-05-08  Jim Meyering  <meyering@lucent.com>
85787
85788         * lib/long-options.c: Don't include closeout.h.
85789         (parse_long_options): Don't call close_stdout for --version.
85790
85791 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85792
85793         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85794         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85795         2.1.3 bug.  This avoids a clash when files like regex.c define
85796         _GNU_SOURCE.
85797
85798 2000-05-06  Jim Meyering  <meyering@lucent.com>
85799
85800         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85801         (AC_REPLACE_FUNCS): Add strnlen.
85802
85803         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85804         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85805
85806         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85807         AC_SEARCH_LIBS call for nanosleep.
85808         (LIB_NANOSLEEP): Set and AC_SUBST.
85809
85810 2000-05-06  Jim Meyering  <meyering@lucent.com>
85811
85812         * lib/strnlen.c: Undefine __strnlen and strnlen.
85813         [!weak_alias]: Define __strnlen to strnlen.
85814
85815         * lib/atexit.c: New file, from libiberty.
85816
85817 2000-05-06  Jim Meyering  <meyering@lucent.com>
85818
85819         * lib/closeout.c (close_stdout_status): Also check for errors on the
85820         stderr stream.
85821
85822 2000-05-05  Jim Meyering  <meyering@lucent.com>
85823
85824         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85825         AC_SEARCH_LIBS call for clock_gettime.
85826         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85827
85828         * m4/search-libs.m4: Update from autoconf.
85829
85830         su doesn't work on Solaris 2.6.
85831         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85832         <shadow.h>.  Reported by Dragos Harabor.
85833
85834 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85835
85836         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85837         memcpy instead of xmalloc, xrealloc, path_concat.
85838         (locale_charset): Treat empty environment variables as absent.
85839         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85840
85841 2000-05-04  Jim Meyering  <meyering@lucent.com>
85842
85843         * lib/getopt.c: Update from glibc.
85844         * lib/obstack.c: Likewise.
85845         * lib/obstack.h: Likewise.
85846         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85847         file
85848
85849         * lib/regex.h: Likewise.
85850         * lib/strndup.c: Likewise.
85851         * lib/strnlen.c: New file, from glibc.
85852
85853 2000-05-03  Jim Meyering  <meyering@lucent.com>
85854
85855         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85856
85857 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85858
85859         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85860         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85861         compile-time test, rather than inspecting host and OS, to
85862         decide whether to define _LARGEFILE_SOURCE.
85863
85864 2000-05-01  Jim Meyering  <meyering@lucent.com>
85865
85866         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85867
85868         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85869         Based on a patch from Bruno Haible.
85870
85871 2000-05-01  Jim Meyering  <meyering@lucent.com>
85872
85873         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85874
85875 2000-04-29  Jim Meyering  <meyering@lucent.com>
85876
85877         * lib/path-concat.c: Declare strdup only if it's not defined.
85878         * lib/canon-host.c: Likewise.
85879
85880 2000-04-28  Jim Meyering  <meyering@lucent.com>
85881
85882         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85883         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85884         is included first, then limits.h is included by locale.h by libintl.h.
85885         From John David Anglin.
85886
85887 2000-04-25  Jim Meyering  <meyering@lucent.com>
85888
85889         * lib/makepath.c (S_IRWXUGO): Define.
85890         (make_path): Always perform explicit chmod if MODE specifies any
85891         of the `special' permission bits.  Prompted by a bug report against
85892         install from Mate Wierdl and Joost van Baal.
85893
85894 2000-04-18  Jim Meyering  <meyering@lucent.com>
85895
85896         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85897         (jm_PREREQ): Use it.
85898
85899 2000-04-18  Jim Meyering  <meyering@lucent.com>
85900
85901         * lib/README: New file.
85902
85903         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85904         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85905
85906 2000-04-17  Jim Meyering  <meyering@lucent.com>
85907
85908         Get it right :-)
85909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85910         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85911         Suggestion from Akim Demaille.
85912
85913 2000-04-17  Jim Meyering  <meyering@lucent.com>
85914
85915         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85916         the definition of it to rpl_strftime also defined-away the system's
85917         declaration.
85918
85919 2000-04-15  Jim Meyering  <meyering@lucent.com>
85920
85921         Use `C' to denote so-called `contiguous' files, the same way
85922         that tar does.
85923         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85924         (ftypelet): Use S_ISCTG.
85925         From Michael Deutschmann.
85926
85927 2000-04-14  Jim Meyering  <meyering@lucent.com>
85928
85929         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85930         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85931         clobbered.
85932
85933 2000-04-14  Jim Meyering  <meyering@lucent.com>
85934
85935         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85936
85937 2000-04-13  Jim Meyering  <meyering@lucent.com>
85938
85939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85940         AH_VERBATIM to insert required #ifndef into config.h.in.
85941         Suggestion from Akim Demaille.
85942
85943 2000-04-12  Jim Meyering  <meyering@lucent.com>
85944
85945         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85946         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85947         Christian Krackowizer.
85948
85949         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85950         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85951         (AC_SYS_LARGEFILE): Require.
85952         (AM_C_PROTOTYPES): Require.
85953
85954 2000-04-08  Jim Meyering  <meyering@lucent.com>
85955
85956         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85957         names don't conflict.  Reported by Eli Zaretskii.
85958
85959 2000-04-07  Jim Meyering  <meyering@lucent.com>
85960
85961         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85962         sys/types.h, to work around system header problems on AIX 3.2.5.
85963         From Bruno Haible.
85964
85965 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85966
85967         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85968         bug.  Deal with the different error behavior of Irix iconv.
85969
85970 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85971
85972         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85973         IRIX if the installer said otherwise.
85974
85975 2000-04-05  Jim Meyering  <meyering@lucent.com>
85976
85977         Portability tweaks required for ultrix4.3.
85978         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85979         (jm_CHECK_DECLS): Add getutent to the list of functions.
85980         (_jm_DECL_HEADERS): Add utmpx.h.
85981         From John David Anglin.
85982
85983         * m4/strftime.m4: Back out the 2000-04-02 change.
85984         Instead of that change, simply undefine putenv in the test program.
85985
85986 2000-04-05  Jim Meyering  <meyering@lucent.com>
85987
85988         Portability tweaks required for ultrix4.3.
85989         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85990         getutent.
85991         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85992         * lib/canon-host.c: Declare strdup.
85993         * lib/path-concat.c: Likewise.
85994         From John David Anglin.
85995
85996 2000-04-04  Jim Meyering  <meyering@lucent.com>
85997
85998         Be more DOS 8.3-friendly.
85999         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86000         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86001         * lib/Makefile.am: Reflect renaming.
86002         Reported by Eli Zaretskii.
86003
86004         Use a temporary file name that won't clash with `charset.alias'
86005         in the DOS 8.3 name space.
86006         * lib/Makefile.am (charset_tmp): Define.
86007         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86008         (uninstall-local): Likewise.
86009         Reported by Eli Zaretskii.
86010
86011 2000-04-03  Jim Meyering  <meyering@lucent.com>
86012
86013         * m4/gettext.m4: Fix typo in comment.
86014
86015         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86016         textutils/configure.in).  Suggestion from Paul Eggert.
86017         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86018
86019 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86020
86021         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86022         variable in the shell rather than using putenv, which isn't
86023         portable.  This avoids the configure-time inter-test dependency
86024         on the potentially-renamed putenv function.
86025
86026 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86027
86028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86029         before checking struct stat.st_blksize, so that
86030         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86031
86032 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86033
86034         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86035         since strftime.c uses HAVE_STRFTIME to decide whether to use
86036         the underlying strftime.
86037
86038 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86039
86040         * lib/time/strftime.c (my_strftime): Make sure we call the system
86041         strftime, not ourselves, when invoking the underlying strftime.
86042
86043 2000-03-24  Jim Meyering  <meyering@lucent.com>
86044
86045         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86046         (charset_alias): Define.
86047         (install-exec-local): Factor out common code.
86048         (uninstall-local): Split lines longer than 80.
86049         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86050         (SUFFIXES): Define.
86051         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86052         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86053
86054 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86055
86056         * lib/config.charset: Output a line containing "Packages using this
86057         file".
86058         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86059         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86060         ref-del.sed): New rules.
86061
86062 2000-03-17  Jim Meyering  <meyering@lucent.com>
86063
86064         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86065         Otherwise, include <strings.h>
86066
86067 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86068
86069         * lib/unicodeio.c (utf8_wctomb): New function.
86070         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86071         format instead of in UCS-4 with platform dependent endianness.
86072
86073 2000-03-10  Jim Meyering  <meyering@lucent.com>
86074
86075         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86076         From Marco Franzen.
86077
86078 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86079
86080         * lib/savedir.c (savedir): Work even if directory size is
86081         negative; this can happen with some screwy NFS configurations.
86082
86083 2000-03-06  Jim Meyering  <meyering@lucent.com>
86084
86085         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86086         if it's NULL (because we ran out of memory).  From Bruno Haible.
86087
86088 2000-03-05  Jim Meyering  <meyering@lucent.com>
86089
86090         * lib/localcharset.c ("path-concat.h"): Include.
86091         (get_charset_aliases): Use path_concat instead of ANSI string
86092         concatenation.
86093
86094         * lib/unicodeio.h (PARAMS): Define.
86095         Use it to guard prototype.
86096
86097 2000-03-04  Jim Meyering  <meyering@lucent.com>
86098
86099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86100         for lib/localcharset.c.
86101
86102 2000-03-04  Jim Meyering  <meyering@lucent.com>
86103
86104         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86105         installing into it.
86106         (uninstall-local): Uncomment this rule so `make distcheck' works
86107         once again.
86108
86109         * lib/unicodeio.c (<errno.h>): Include it.
86110         (errno): Declare if not defined.
86111
86112         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86113
86114         * lib/config.charset: New version, incorporating remarks from a linux
86115         i18n mailing list.  From Bruno Haible.
86116
86117 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86118
86119         * m4/codeset.m4: New file.
86120         * m4/iconv.m4: New file.
86121         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86122
86123 2000-03-03  Jim Meyering  <meyering@lucent.com>
86124
86125         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86126
86127 2000-03-02  Jim Meyering  <meyering@lucent.com>
86128
86129         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86130         the messages come out on separate lines.
86131
86132         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86133         rather than jm_CHECK_DECLARATIONS.
86134         * m4/decl.m4: Remove now-unused file.
86135
86136         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86137         geteuid.
86138
86139 2000-03-02  Jim Meyering  <meyering@lucent.com>
86140
86141         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86142
86143 2000-03-01  Jim Meyering  <meyering@lucent.com>
86144
86145         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86146         * lib/unicodeio.c: Likewise.
86147
86148 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86149
86150         * lib/config.charset: New file.
86151         * lib/localcharset.c: New file.
86152         * lib/unicodeio.h, lib/unicodeio.c: New files.
86153         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86154         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86155         (noinst_HEADERS): Add unicodeio.h.
86156         (all-local, install-exec-local, charset.alias): New targets.
86157
86158 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86159
86160         * lib/quotearg.c (ALERT_CHAR): New macro.
86161         (quotearg_buffer_restyled): Use it.
86162
86163 2000-02-27  Jim Meyering  <meyering@lucent.com>
86164
86165         * m4/check-decl.m4: Add getenv to the list.
86166
86167 2000-02-27  Jim Meyering  <meyering@lucent.com>
86168
86169         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86170         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86171
86172         * lib/backupfile.c: Guard inclusion of stdlib.h with
86173         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86174         Declare malloc if needed.
86175
86176         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86177         `#ifndef HAVE_DECL..'
86178         now that autoconf always defines the HAVE_DECL_ symbols.
86179         * lib/human.c: Likewise.
86180         * lib/same.c: Likewise.
86181         * lib/strtoumax.c: Likewise.
86182
86183         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86184         declaration check was not run.
86185         * lib/hash.c: Likewise.
86186         * lib/human.c: Likewise.
86187         * lib/same.c: Likewise.
86188         * lib/strtoumax.c: Likewise.
86189
86190         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86191         `.', then first look up the entire `.'-containing string as a login
86192         name.
86193
86194 2000-02-23  Jim Meyering  <meyering@lucent.com>
86195
86196         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86197         in place of my hack.
86198
86199 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86200
86201         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86202         (textint): New typedef.
86203         (parser_control): Member year changed from int to textint.
86204         All uses changed.
86205         (YYSTYPE): Removed; replaced by %union with int and textint members.
86206         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86207         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86208         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86209         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86210         (date, number, to_year): Use width of number in digits, not its value,
86211         to determine whether it's a 2-digit year, or a 2-digit time.
86212         (yylex): Store number of digits of numeric tokens.
86213         Reported by John Kendall.
86214
86215         (parser_control): Changed from struct parser_control to typedef (for
86216         consistency).  All uses changed.
86217
86218         (tID): Removed; not used.
86219         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86220
86221 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86222
86223         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86224         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86225
86226 2000-02-12  Jim Meyering  <meyering@lucent.com>
86227
86228         * lib/userspec.c (ISDIGIT): Define it.
86229         (isdigit): Remove definition.
86230         (is_number): Use ISDIGIT, not isdigit.
86231         <libintl.h>: Include.
86232         (_ and N_): Define.
86233         (parse_user_spec): Mark translatable strings.
86234
86235 2000-02-10  Jim Meyering  <meyering@lucent.com>
86236
86237         With these changes, nanosleep.[ch] are finally enough like the other
86238         lib/* replacement files to compile on a few more losing systems.
86239
86240         * lib/nanosleep.h: Don't include config.h.
86241         Remove prototype from declaration of nanosleep.
86242         (PARAMS): Remove now-unneeded definition.
86243         * lib/nanosleep.c: #undef nanosleep.
86244         (rpl_nanosleep): Rename from nanosleep.
86245
86246 2000-02-10  Jim Meyering  <meyering@lucent.com>
86247
86248         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86249         gnu_nanosleep to rpl_nanosleep.
86250
86251 2000-02-09  Jim Meyering  <meyering@lucent.com>
86252
86253         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86254         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86255
86256 2000-02-08  Akim Demaille  <akim@epita.fr>
86257
86258         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86259         `[' and `]' and remove uses of `changequote'.
86260         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86261         (AC_SYS_LARGEFILE): Likewise.
86262         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86263         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86264         of changequote.
86265         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86266         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86267         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86268         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86269
86270 2000-02-05  Jim Meyering  <meyering@lucent.com>
86271
86272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86273         Remove explicit use of AC_HEADER_TIME.  It is required by
86274         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86275         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86276         in autoconf whereby the expansion of the latter ended up preceding
86277         the expansion of its prerequisite, AC_HEADER_TIME.
86278         Reported by Volker Borchert.
86279
86280 2000-02-03  Jim Meyering  <meyering@lucent.com>
86281
86282         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86283
86284 2000-02-03  Jim Meyering  <meyering@lucent.com>
86285
86286         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86287         rather than with `#if HAVE_UTMPNAME'.
86288
86289 2000-02-02  Jim Meyering  <meyering@lucent.com>
86290
86291         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86292         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86293         Reported by Eli Zaretskii.
86294
86295 2000-02-01  Jim Meyering  <meyering@lucent.com>
86296
86297         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86298
86299 2000-01-31  Jim Meyering  <meyering@lucent.com>
86300
86301         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86302         functions.  Add the time.h and sys/time.h headers along with the
86303         AC_REQUIRE'ment of AC_HEADER_TIME.
86304
86305 2000-01-31  Jim Meyering  <meyering@lucent.com>
86306
86307         * lib/nanosleep.h (nanosleep): Guard declaration with
86308         `#if ! HAVE_DECL_NANOSLEEP'.
86309         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86310         the declaration in that vendor's sys/timers.h.
86311         Reported by Christian Krackowizer.
86312
86313         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86314         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86315         (ISPRINT): Likewise.
86316         Reported by Tom Tromey.
86317
86318 2000-01-30  Jim Meyering  <meyering@lucent.com>
86319
86320         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86321
86322         * m4/prereq.m4 (utmp_includes): Define.
86323         Check for ut_user and ut_name members in both struct utmpx
86324         and struct utmp.
86325
86326 2000-01-30  Jim Meyering  <meyering@lucent.com>
86327
86328         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86329         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86330         header files where only utmpx.ut_user is declared.
86331
86332         * lib/readutmp.h (UT_USER): Define.
86333
86334 2000-01-29  Jim Meyering  <meyering@lucent.com>
86335
86336         * m4/lib-check.m4: New file containing library-related checks from
86337         fileutils and sh-utils (textutils had none).
86338
86339 2000-01-28  Jim Meyering  <meyering@lucent.com>
86340
86341         * m4/perl.m4: Change format of warning message to look more like that
86342         from the missing script.  Suggestion from François Pinard.
86343
86344 2000-01-25  Jim Meyering  <meyering@lucent.com>
86345
86346         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86347         well as time.h in the compile check.
86348         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86349         Fix typo in cross-compiling case: s/yes/no/.
86350
86351 2000-01-23  Jim Meyering  <meyering@lucent.com>
86352
86353         * m4/jm-macros.m4: Move df-related tests here from
86354         fileutils/configure.in
86355
86356         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86357         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86358
86359         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86360         s/space/ac_fsusage_space/.
86361         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86362
86363         * m4/ftruncate.m4: New file (derived from part of
86364         fileutils/configure.in).
86365         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86366         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86367
86368         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86369         AC_SUBST these here, rather than just in sh-util/configure.in, so
86370         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86371         all the same.
86372         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86373         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86374         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86375         (AC_SUBST(POW_LIBM)): Likewise.
86376         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86377
86378 2000-01-23  Jim Meyering  <meyering@lucent.com>
86379
86380         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86381         obstack.c.
86382
86383 2000-01-22  Jim Meyering  <meyering@lucent.com>
86384
86385         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86386
86387         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86388
86389         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86390         configure.in
86391         (AC_CHECK_HEADERS): Likewise for sh-utils.
86392         (AC_CHECK_HEADERS): Likewise for textutils.
86393         Merge the three lists of headers.
86394
86395         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86396         from fileutils' configure.in.
86397
86398         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86399         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86400         check-decl.m4.
86401
86402         * m4/check-decl.m4: Use #if rather than #ifdef.
86403         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86404         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86405         (_jm_DECL_HEADERS): Define new function.
86406         (jm_CHECK_DECLARATIONS): Require it.
86407
86408 2000-01-22  Jim Meyering  <meyering@lucent.com>
86409
86410         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86411         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86412         Required for some AIX systems.  Reported by Christian Krackowizer.
86413         [TESTING] (main): New function.
86414
86415         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86416         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86417         letters.
86418
86419         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86420         iswprint.
86421
86422         * lib/strverscmp.c (ISDIGIT): Define.
86423         (strverscmp): Use ISDIGIT, not isdigit.
86424
86425 2000-01-19  Jim Meyering  <meyering@lucent.com>
86426
86427         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86428         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86429         defines `struct timespec' in <sys/time.h>
86430
86431         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86432         Thanks to Akim for explaining.
86433
86434 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86435
86436         * lib/nanosleep.c (nanosleep):
86437         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86438         POSIX.1 doesn't require SA_INTERRUPT and some systems
86439         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86440         it's been part of POSIX.1 since day 1 (in 1988).
86441
86442 2000-01-17  Jim Meyering  <meyering@lucent.com>
86443
86444         * lib/interlock: Remove unused file.  Reported by François Pinard.
86445
86446 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86447
86448         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86449         alert, backslash, formfeed, and vertical tab unnecessarily in
86450         shell quoting style.
86451
86452 2000-01-16  Jim Meyering  <meyering@lucent.com>
86453
86454         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86455         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86456         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86457         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86458
86459 2000-01-16  Jim Meyering  <meyering@lucent.com>
86460
86461         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86462         because the latter didn't work.
86463
86464 2000-01-15  Jim Meyering  <meyering@lucent.com>
86465
86466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86467         (AC_REPLACE_FUNCS): Add memcpy and memset.
86468         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86469         Add strpbrk.
86470         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86471
86472 2000-01-12  Jim Meyering  <meyering@lucent.com>
86473
86474         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86475         (jm_PREREQ): Use it.
86476         (jm_PREREQ_READUTMP): New macro.
86477         (jm_PREREQ): Use it.
86478
86479 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86480
86481         Quote multibyte characters correctly.
86482         * m4/c-bs-a.m4: New file.
86483         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86484         (jm_PREREQ): Use it.
86485
86486 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86487
86488         * m4/uintmax_t.m4: Port to autoconf 2.13.
86489
86490 2000-01-08  Jim Meyering  <meyering@ascend.com>
86491
86492         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86493         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86494
86495 2000-01-04  Jim Meyering  <meyering@ascend.com>
86496
86497         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86498         jm_STRUCT_DIRENT_D_TYPE.
86499         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86500         jm_STRUCT_DIRENT_D_INO.
86501         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86502         jm_STRUCT_UTIMBUF.
86503         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86504         renamings.
86505         * m4/utime.m4: Likewise.
86506
86507         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86508         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86509
86510 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86511
86512         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86513         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86514
86515 2000-01-02  Jim Meyering  <meyering@ascend.com>
86516
86517         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86518         remember if this is necessary.
86519
86520 1999-12-26  Jim Meyering  <meyering@ascend.com>
86521
86522         * m4/jm-macros.m4: Use it here.
86523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86524
86525 1999-12-23  Jim Meyering  <meyering@ascend.com>
86526
86527         * m4/jm-macros.m4: Check for clock_gettime (moved from
86528         fileutils/configure.in)
86529         Check for gettimeofday.
86530
86531 1999-12-20  Jim Meyering  <meyering@ascend.com>
86532
86533         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86534         autoconf-2.14a-1999-12-20.
86535
86536 1999-12-19  Jim Meyering  <meyering@ascend.com>
86537
86538         * m4/lstat-slash.m4: New file.
86539         * m4/jm-macros.m4: Use the new macro:
86540         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86541
86542 1999-12-07  Jim Meyering  <meyering@ascend.com>
86543
86544         * m4/perl.m4: Require that File::Compare be available, too.
86545         Too many systems seem to lack it.
86546
86547         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86548         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86549
86550 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86551
86552         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86553         problem with the QNX 4.25 shell, which doesn't propagate exit
86554         status of failed commands inside shell assignments.
86555
86556 1999-11-17  Jim Meyering  <meyering@ascend.com>
86557
86558         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86559
86560 1999-11-07  Jim Meyering  <meyering@ascend.com>
86561
86562         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86563
86564 1999-11-06  Jim Meyering  <meyering@ascend.com>
86565
86566         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86567         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86568
86569 1999-11-05  Jim Meyering  <meyering@ascend.com>
86570
86571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86572         configure.in of textutils, fileutils, and sh-utils into this one
86573         (shared between those packages) file.
86574         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86575         AC_STRUCT_ST_BLKSIZE.
86576
86577 1999-11-03  Jim Meyering  <meyering@ascend.com>
86578
86579         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86580         of AC_CHECK_TYPE checks includes unistd.h.
86581         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86582         Suggestion from Akim Demaille.
86583
86584 1999-10-30  Jim Meyering  <meyering@ascend.com>
86585
86586         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86587         m4-quoted string.
86588         * m4/ls-mntd-fs.m4: Likewise.
86589         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86590         * m4/jm-winsz1.m4: Likewise.
86591
86592         * m4/const.m4: Remove file, since the fix made it into the experimental
86593         version of autoconf.
86594         * m4/mktime.m4: Likewise.
86595
86596         * m4/check-type.m4: Remove file, now that the latest version of
86597         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86598
86599         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86600         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86601         AC_CHECK_TYPE.
86602
86603 1999-10-04  Jim Meyering  <meyering@ascend.com>
86604
86605         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86606
86607 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86608
86609         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86610         2.95.1 bug with HP-UX 10.20.
86611
86612 1999-09-17  Jim Meyering  <meyering@ascend.com>
86613
86614         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86615         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86616         due to missing strdup (against sh-utils-2.0).
86617
86618 1999-08-29  Jim Meyering  <meyering@ascend.com>
86619
86620         * m4/jm-macros.m4: Require jm_BISON.
86621         * m4/bison.m4: New file.
86622
86623 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86624
86625         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86626         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86627
86628 1999-08-05  Jim Meyering  <meyering@ascend.com>
86629
86630         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86631         to avoid conflicts with `conftest' on 8+3 filesystems.
86632         Suggestion from Eli Zaretskii.
86633
86634 1999-08-04  Jim Meyering  <meyering@ascend.com>
86635
86636         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86637         fileutils and sh-utils (textutils's getline test was inadequate).
86638         (AM_FUNC_GETLINE): Run this test.
86639         (AC_CHECK_FUNCS): Check for getdelim.
86640         Reported by Bob Proulx.
86641
86642 1999-08-02  Jim Meyering  <meyering@ascend.com>
86643
86644         * m4/jm-macros.m4: Add a comment.
86645
86646 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86647
86648         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86649         <inttypes.h> defines strtoumax as a macro (and not as a
86650         function).
86651
86652 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86653
86654         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86655         that we can shift, multiply and divide unsigned long long
86656         values; Ultrix cc can't do it.
86657
86658 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86659
86660         * m4/mktime.m4: New file, which is a preview of what should appear
86661         in the next public autoconf release.
86662
86663 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86664
86665         * m4/lfs.m4: Remove this file.
86666         * m4/largefile.m4: New file.  It contains the old contents of
86667         lfs.m4, except that all names with prefix AC_LFS have been
86668         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86669         compatible with future autoconf versions.  Also, some minor m4
86670         quoting problems have been fixed.
86671
86672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86673
86674         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86675         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86676         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86677         and simplify the shell code.
86678
86679 1999-08-01  Jim Meyering  <meyering@ascend.com>
86680
86681         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86682         m4.
86683
86684 1999-07-20  Jim Meyering  <meyering@ascend.com>
86685
86686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86687
86688 1999-07-15  Jim Meyering  <meyering@ascend.com>
86689
86690         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86691
86692 1999-05-22  Jim Meyering  <meyering@ascend.com>
86693
86694         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86695
86696 1999-05-20  Jim Meyering  <meyering@ascend.com>
86697
86698         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86699         Add a colon after each `then' in case $4 is empty.
86700
86701 1999-05-16  Jim Meyering  <meyering@ascend.com>
86702
86703         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86704
86705 1999-05-10  Jim Meyering  <meyering@ascend.com>
86706
86707         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86708
86709         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86710         AC_FUNC_MKTIME.
86711
86712 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86713
86714         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86715
86716 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86717
86718         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86719         not CPPFLAGS, so that linking works correctly in IRIX.
86720
86721 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86722
86723         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86724
86725 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86726
86727         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86728         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86730         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86731         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86732
86733         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86734
86735 1999-04-20  Jim Meyering  <meyering@ascend.com>
86736
86737         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86738         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86739         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86740
86741 1999-04-18  Jim Meyering  <meyering@ascend.com>
86742
86743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86744         * m4/jm-macros.m4: Use it.
86745
86746 1999-04-06  Jim Meyering  <meyering@ascend.com>
86747
86748         * m4/strftime.m4: Remove test for %f.
86749
86750 1999-03-29  Jim Meyering  <meyering@ascend.com>
86751
86752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86753         superset of the AC_TYPE_* checks in the textutils, fileutils,
86754         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86755         AC_TYPE_PID_T.
86756
86757 1999-03-28  Jim Meyering  <meyering@ascend.com>
86758
86759         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86760         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86761         replaced e.g., in the *.sh files of the sh-utils.
86762
86763 1999-03-20  Jim Meyering  <meyering@ascend.com>
86764
86765         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86766         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86767         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86768
86769 1999-03-19  Jim Meyering  <meyering@ascend.com>
86770
86771         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86772
86773 1999-03-12  Jim Meyering  <meyering@ascend.com>
86774
86775         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86776
86777 1999-03-07  Jim Meyering  <meyering@ascend.com>
86778
86779         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86780         declared.
86781
86782 1999-02-17  Jim Meyering  <meyering@ascend.com>
86783
86784         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86785         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86786
86787 1999-02-07  Jim Meyering  <meyering@ascend.com>
86788
86789         * m4/group-member.m4: New file -- extracted from sh-utils'
86790         configure.in.
86791
86792         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86793         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86794
86795 1999-02-06  Jim Meyering  <meyering@ascend.com>
86796
86797         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86798         * m4/fnmatch.m4: Likewise.
86799         * m4/getgroups.m4: Likewise.
86800         * m4/lstat.m4: Likewise.
86801         * m4/malloc.m4: Likewise.
86802         * m4/putenv.m4: Likewise.
86803         * m4/realloc.m4: Likewise.
86804         * m4/regex.m4: Likewise.
86805         * m4/stat.m4: Likewise.
86806         * m4/strftime.m4: Likewise.
86807         Suggestion from Alain Magloire.
86808
86809         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86810         * m4/fnmatch.m4: Likewise.
86811         * m4/getgroups.m4: Likewise.
86812         * m4/getline.m4: Likewise.
86813         * m4/lstat.m4: Likewise.
86814         * m4/malloc.m4: Likewise.
86815         * m4/memcmp.m4: Likewise.
86816         * m4/putenv.m4: Likewise.
86817         * m4/realloc.m4: Likewise.
86818         * m4/regex.m4: Likewise.
86819         * m4/stat.m4: Likewise.
86820         * m4/strftime.m4: Likewise.
86821         Suggestion from Alain Magloire.
86822
86823         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86824         an argument.
86825
86826         * m4/regex.m4: Add a run-time Test for proper operation of
86827         re_compile_pattern.
86828
86829 1999-01-31  Jim Meyering  <meyering@ascend.com>
86830
86831         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86832
86833 1999-01-30  Jim Meyering  <meyering@ascend.com>
86834
86835         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86836
86837         * m4/jm-mktime.m4: Make this a wrapper around the official
86838         AM_FUNC_MKTIME rather than my private copy, now that the official one
86839         is up to date.
86840         * m4/mktime.m4: Remove file.
86841
86842         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86843         * m4/uptime.m4: Likewise.
86844         * m4/uintmax_t.m4: Likewise.
86845
86846 1999-01-28  Jim Meyering  <meyering@ascend.com>
86847
86848         * m4/jm-macros.m4: Use jm_AFS.
86849         * m4/afs.m4: New file (from fileutils' configure.in).
86850
86851         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86852         * m4/chown.m4: Likewise.
86853         * m4/d-ino.m4: Likewise.
86854         * m4/d-type.m4: Likewise.
86855         * m4/fnmatch.m4: Likewise.
86856         * m4/getgroups.m4: Likewise.
86857         * m4/gettext.m4: Likewise.
86858         * m4/jm-mktime.m4: Likewise.
86859         * m4/jm-winsz2.m4: Likewise.
86860         * m4/lcmessage.m4: Likewise.
86861         * m4/ls-mntd-fs.m4: Likewise.
86862         * m4/malloc.m4: Likewise.
86863         * m4/memcmp.m4: Likewise.
86864         * m4/putenv.m4: Likewise.
86865         * m4/realloc.m4: Likewise.
86866         * m4/st_mtim.m4: Likewise.
86867         * m4/strftime.m4: Likewise.
86868
86869 1999-01-16  Jim Meyering  <meyering@ascend.com>
86870
86871         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86872         (ARGMATCH_DIE_DECL): Define.
86873
86874 1999-01-12  Jim Meyering  <meyering@ascend.com>
86875
86876         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86877         Reported by Lars Hecking.
86878
86879 1999-01-10  Jim Meyering  <meyering@ascend.com>
86880
86881         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86882         gross kludge.
86883         * m4/inttypes_h.m4: Likewise.
86884         * m4/lstat.m4: Likewise.
86885         * m4/malloc.m4: Likewise.
86886         * m4/readdir.m4: Likewise.
86887         * m4/realloc.m4: Likewise.
86888         * m4/st_dm_mode.m4: Likewise.
86889         * m4/stat.m4: Likewise.
86890         * m4/utimbuf.m4: Likewise.
86891         * m4/utimes.m4: Likewise.
86892
86893         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86894         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86895         comments in config.h.in are meaningful.
86896
86897         * m4/jm-macros.m4: Require autoconf-2.13 here.
86898
86899         * m4/regex.m4: By default, don't use the included regex.c on systems
86900         with glibc 2.  Suggestion from Uli Drepper.
86901
86902 1999-01-02  Jim Meyering  <meyering@ascend.com>
86903
86904         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86905
86906 1998-12-18  Jim Meyering  <meyering@ascend.com>
86907
86908         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86909         Based on a suggestion from Lars Hecking.
86910
86911 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86912
86913         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86914
86915 1998-11-16  Jim Meyering  <meyering@ascend.com>
86916
86917         * m4/lfs.m4: Double-quote the `uname...` expression.
86918
86919 1998-11-14  Jim Meyering  <meyering@ascend.com>
86920
86921         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86922         * m4/stat.m4: Likewise.
86923
86924 1998-11-03  Jim Meyering  <meyering@ascend.com>
86925
86926         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86927         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86928
86929 1998-10-18  Jim Meyering  <meyering@ascend.com>
86930
86931         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86932
86933 1998-10-17  Jim Meyering  <meyering@ascend.com>
86934
86935         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86936         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86937         calls for those previously hard-coded headers.  Instead, take a new
86938         parameter.
86939         (jm_CHECK_DECLARATIONS): Reflect interface change.
86940         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86941         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86942
86943         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86944
86945 1998-10-14  Jim Meyering  <meyering@ascend.com>
86946
86947         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86948         instead of "TZ=America/Vancouver".  From Paul Eggert.
86949
86950 1998-10-11  Jim Meyering  <meyering@ascend.com>
86951
86952         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86953         This adds a test for a recently added compatibility fix for mktime.c.
86954         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86955
86956 1998-09-27  Jim Meyering  <meyering@ascend.com>
86957
86958         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86959
86960         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86961         ../configure.in, including a change from Gordon Matzigkeit to allow
86962         cross-compiling for the Hurd.
86963
86964         * m4/glibc.m4: New file/macro to test for the GNU C Library
86965         versions 1 and 2.  From Gordon Matzigkeit.
86966         Indent.
86967
86968 1998-09-21  Jim Meyering  <meyering@ascend.com>
86969
86970         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86971
86972 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86973
86974         Port nanosecond-resolution times to UnixWare 2.1.2 and
86975         pedantic Solaris 2.6.
86976
86977         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86978         AC_STRUCT_ST_MTIM.
86979         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86980         Generate name of ns member, instead of just 1 or undef.
86981         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86982
86983 1998-08-15  Jim Meyering  <meyering@ascend.com>
86984
86985         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86986         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86987         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86988         instead of jm_TYPE_SSIZE_T.
86989
86990 1998-08-12  Jim Meyering  <meyering@ascend.com>
86991
86992         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86993
86994 1998-08-02  Jim Meyering  <meyering@ascend.com>
86995
86996         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86997         in acconfig.h manually.
86998
86999 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87000
87001         * m4/st_mtim.m4: New file.
87002
87003 1998-07-28  Jim Meyering  <meyering@ascend.com>
87004
87005         * m4/utimes.m4: Undef stat.
87006
87007 1998-07-25  Jim Meyering  <meyering@ascend.com>
87008
87009         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87010         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87011
87012 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87013
87014         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87015         uid and gid actually remain unchanged.
87016
87017 1998-07-07  Jim Meyering  <meyering@ascend.com>
87018
87019         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87020
87021 1998-07-04  Jim Meyering  <meyering@ascend.com>
87022
87023         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87024         to prove that this macro can be used in packages without regex.c.
87025
87026 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87027
87028         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87029         is to be used.
87030
87031 1998-07-03  Jim Meyering  <meyering@ascend.com>
87032
87033         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87034
87035         * m4/gettext.m4: New file -- from gettext-0.10.35.
87036         * m4/lcmessage.m4: Likewise.
87037         * m4/progtest.m4: Likewise.
87038
87039         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87040         * m4/jm-macros.m4: Require the new macro.
87041
87042 1998-06-29  Jim Meyering  <meyering@ascend.com>
87043
87044         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87045         for the definition of NGROUPS (used in a system header included
87046         by sys/mount.h).
87047
87048 1998-06-28  Jim Meyering  <meyering@ascend.com>
87049
87050         * m4/ls-mntd-fs.m4: New file.
87051         * m4/fstypename.m4: New file.
87052
87053         * m4/jm-macros.m4: Require the new macro.
87054         * m4/jm-glibc-io.m4: New file.
87055
87056 1998-05-19  Jim Meyering  <meyering@ascend.com>
87057
87058         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87059         * m4/lchown.m4: New file.
87060
87061         * m4/Makefile.am.in: New file.
87062         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87063
87064 1998-05-14  Jim Meyering  <meyering@ascend.com>
87065
87066         * m4/Makefile.am (EXTRA_DIST): Add them.
87067         * m4/jm-macros.m4: New file.
87068         * m4/utimbuf.m4: New file.
87069
87070 1998-05-12  Jim Meyering  <meyering@ascend.com>
87071
87072         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87073
87074 1998-05-11  Jim Meyering  <meyering@ascend.com>
87075
87076         * m4/isc-posix.m4: New file.
87077
87078 1998-05-10  Jim Meyering  <meyering@ascend.com>
87079
87080         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87081
87082 1998-05-09  Jim Meyering  <meyering@ascend.com>
87083
87084         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87085         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87086         with automake.
87087
87088         * m4/ssize_t.m4: New file.
87089         * m4/mktime.m4: Remove file -- the new automake has this now.
87090
87091 1998-04-26  Jim Meyering  <meyering@ascend.com>
87092
87093         * m4/assert.m4: New file.
87094         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87095
87096 1998-04-05  Jim Meyering  <meyering@ascend.com>
87097
87098         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87099         (jm_PREREQ): Use it here.
87100
87101 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87102
87103         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87104         in acconfig.h.
87105
87106 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87107
87108         * m4/prereq.m4: New file.
87109         * m4/error.m4: New file.
87110         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87111
87112 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87113
87114         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87115         cache-check for the same variable -- that defeated the purpose of
87116         the test; the test program was never run.  This was a problem only
87117         on systems with losing getline functions -- HP-UX 10.20 is one.
87118         Reported by Bjorn Helgaas.
87119
87120 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87121
87122         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87123
87124 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87125
87126         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87127
87128         * m4/const.m4: New file.  Use an initializer in this declaration
87129         typedef int charset[2]; const charset x;
87130         Reported by Bob Glickstein.
87131
87132 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87133
87134         * m4/chown.m4: Fix reversed types on -1 args to chown.
87135         From Kaveh Ghazi.
87136
87137 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87138
87139         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87140         Add lseek and memchr.
87141
87142         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87143         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87144         have a 20-character limit on names.
87145
87146 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87147
87148         * m4/inttypes_h.m4: New file.
87149         * m4/uintmax_t.m4: New file.
87150         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87151
87152
87153         -----
87154
87155         Local Variables:
87156         coding: utf-8
87157         End:
87158
87159         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87160
87161         Copying and distribution of this file, with or without
87162         modification, are permitted provided the copyright notice
87163         and this notice are preserved.