4b51d086ff659e466cf00a3973029293474bbc3a
[gnulib.git] / ChangeLog
1 2011-09-25  Bruno Haible  <bruno@clisp.org>
2
3         msvc-inval: Make handler multithread-safe.
4         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6         declarations.
7         (gl_msvc_inval_current): New declaration.
8         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9         Operate on the structure returned by gl_msvc_inval_current().
10         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11         Remove varaiables.
12         (tls_index, tls_initialized): New variables.
13         (not_per_thread): New variable.
14         (gl_msvc_inval_current): New function.
15         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
16         returned by gl_msvc_inval_current().
17
18 2011-09-25  Bruno Haible  <bruno@clisp.org>
19
20         msvc-inval: Install handler globally.
21         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
22         !_MSC_VER.
23         (gl_msvc_invalid_parameter_handler): Remove declaration.
24         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
25         declarations.
26         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27         Install the handler globally, don't uninstall it.
28         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
29         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
30         currently valid, call RaiseException instead.
31         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
32         for !_MSC_VER.
33
34 2011-09-25  Bruno Haible  <bruno@clisp.org>
35
36         strerror_r-posix: Fix for MSVC 9.
37         * lib/strerror_r.c (local_snprintf): New function.
38         (snprintf): Define to local_snprintf, not to _snprintf.
39
40 2011-09-25  Bruno Haible  <bruno@clisp.org>
41
42         ftruncate: Support for MSVC 9.
43         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
44         (chsize_nothrow): New function.
45         (chsize): Redefine as a macro.
46         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47         * modules/ftruncate (Depends-on): Add msvc-inval.
48
49 2011-09-25  Bruno Haible  <bruno@clisp.org>
50
51         New module 'fstat'.
52         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
53         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
54         * lib/fchdir.c (rpl_fstat): Remove function.
55         * m4/fstat.m4: New file.
56         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
57         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
58         declared.
59         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
60         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
61         * modules/fstat: New file.
62         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
63         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
64         is set.
65         * doc/posix-functions/fstat.texi: Mention the new module and the
66         problem on MSVC.
67         * NEWS: Mention the change.
68         * modules/acl (Depends-on): Add fstat.
69         * modules/chdir-safer (Depends-on): Likewise.
70         * modules/chown (Depends-on): Likewise.
71         * modules/copy-file (Depends-on): Likewise.
72         * modules/fchdir (Depends-on): Likewise.
73         * modules/fdopendir (Depends-on): Likewise.
74         * modules/fopen (Depends-on): Likewise.
75         * modules/fts (Depends-on): Likewise.
76         * modules/getcwd (Depends-on): Likewise.
77         * modules/isapipe (Depends-on): Likewise.
78         * modules/linkat (Depends-on): Likewise.
79         * modules/lseek (Depends-on): Likewise.
80         * modules/mkdir-p (Depends-on): Likewise.
81         * modules/open (Depends-on): Likewise.
82         * modules/openat (Depends-on): Likewise.
83         * modules/read-file (Depends-on): Likewise.
84         * modules/renameat (Depends-on): Likewise.
85         * modules/utimens (Depends-on): Likewise.
86
87 2011-09-25  Bruno Haible  <bruno@clisp.org>
88
89         linkat: Fix compilation on MSVC 9.
90         * lib/linkat.c: Don't include <stdint.h>.
91
92 2011-09-25  Bruno Haible  <bruno@clisp.org>
93
94         fclose: Support for MSVC 9.
95         * lib/fclose.c: Include msvc-inval.h.
96         (fclose_nothrow): New function.
97         (rpl_fclose): Use it.
98         * modules/fclose (Depends-on): Add msvc-inval.
99         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
100
101 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
102
103         dup2: minor simplifications
104         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
105         that it's a performance win.
106         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
107         ! defined __CYGWIN__)" to "ifdef F_GETFL".
108
109 2011-09-24  Jim Meyering  <meyering@redhat.com>
110
111         test-futimens: avoid a warning from gcc -Wshadow
112         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
113         to avoid a shadowing warning.
114
115 2011-09-24  Bruno Haible  <bruno@clisp.org>
116
117         fdopen: Support for MSVC 9.
118         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
119         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
120         * lib/fdopen.c: Include msvc-inval.h.
121         (fdopen_nothrow): New function.
122         (rpl_fdopen): Use it.
123         * modules/fdopen (Depends-on): Add msvc-inval.
124         * modules/fclose-tests (Depends-on): Add fdopen.
125         * modules/fflush-tests (Depends-on): Likewise.
126         * modules/fgetc-tests (Depends-on): Likewise.
127         * modules/fputc-tests (Depends-on): Likewise.
128         * modules/fread-tests (Depends-on): Likewise.
129         * modules/freopen-tests (Depends-on): Likewise.
130         * modules/fseeko-tests (Depends-on): Likewise.
131         * modules/ftello-tests (Depends-on): Likewise.
132         * modules/fwrite-tests  (Depends-on): Likewise.
133         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
134
135 2011-09-24  Bruno Haible  <bruno@clisp.org>
136
137         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
138         * modules/fgetc-tests (Depends-on): Add unistd.
139         * modules/fputc-tests (Depends-on): Likewise.
140         * modules/fread-tests (Depends-on): Likewise.
141         * modules/fwrite-tests (Depends-on): Likewise.
142
143 2011-09-24  Bruno Haible  <bruno@clisp.org>
144
145         dup: Simplify autoconf test.
146         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
147         on gl_MSVC_INVAL's result.
148
149 2011-09-24  Bruno Haible  <bruno@clisp.org>
150
151         Tests for function fwrite().
152         * modules/fwrite-tests: New file.
153         * tests/test-fwrite.c: New file.
154         * modules/stdio-tests (Depends-on): Add fwrite-tests.
155
156         Tests for function fread().
157         * modules/fread-tests: New file.
158         * tests/test-fread.c: New file.
159         * modules/stdio-tests (Depends-on): Add fread-tests.
160
161         Activate fputc tests.
162         * modules/stdio-tests (Depends-on): Add fputc-tests.
163
164         Enhance fgetc, fputc tests.
165         * tests/test-fgetc.c (main): Also test the stream's error indicator.
166         * tests/test-fputc.c (main): Likewise.
167
168 2011-09-24  Bruno Haible  <bruno@clisp.org>
169
170         write: Support for MSVC 9.
171         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
172         is not 1.
173         * lib/write.c (write_nothrow): New function.
174         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
175         not 1. Use write_nothrow.
176         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
177         invalid parameter handler.
178         (gl_PREREQ_WRITE): New macro.
179         * modules/write (Depends-on): Add msvc-inval.
180         (configure.ac): Invoke gl_PREREQ_WRITE.
181         * doc/posix-functions/write.texi: Mention the problem on MSVC.
182
183 2011-09-24  Bruno Haible  <bruno@clisp.org>
184
185         read: Fix last commit.
186         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
187
188 2011-09-24  Bruno Haible  <bruno@clisp.org>
189
190         dup2: Fix last commit.
191         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
192         (rpl_dup2): Disable fcntl workaround on native Windows.
193
194         sigprocmask: Make code safer.
195         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
196         section that changes macro definitions for this compilation unit.
197
198 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
199
200         dup2: clarify by coalescing Windows-specific material
201         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
202         "msvc-nothrow.h"' to the Windows-specific section, so that the
203         Emacs source need not contain these include files.
204         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
205         Windows-specific fixes into this function rather than just the
206         nothrow fix, as this shortens and clarifies the code.  Always
207         define as a function, as that's a bit cleaner than having it be
208         sometimes a function and sometimes a macro.
209         (rpl_dup2): Move the Windows-specific stuff out of here and into
210         ms_windows_dup2.  Don't protect the Haiku-related fix with
211         "#if !defined __linux__", as the same code also works around
212         a Linux kernel bug, and it doesn't add any system calls on any
213         platform.  Add comment about FreeBSD 6.1.
214
215         sigprocmask: move #include directive
216         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
217         Windows-specific section, so that the Emacs source need not
218         contain msvc-inval.h.
219
220 2011-09-23  Bruno Haible  <bruno@clisp.org>
221
222         read: Support for MSVC 9.
223         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
224         is not 1.
225         * lib/read.c (read_nothrow): New function.
226         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
227         read_nothrow.
228         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
229         invalid parameter handler.
230         (gl_PREREQ_READ): New macro.
231         * modules/read (Depends-on): Add msvc-inval.
232         (configure.ac): Invoke gl_PREREQ_READ.
233         * doc/posix-functions/read.texi: Mention the problem on MSVC.
234
235 2011-09-23  Bruno Haible  <bruno@clisp.org>
236
237         close: Support for MSVC 9.
238         * lib/close.c: Include <errno.h>, msvc-inval.h.
239         (close_nothrow): New function.
240         (rpl_close): Use it.
241         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
242         invalid parameter handler.
243         * modules/close (Depends-on): Add msvc-inval.
244         * modules/dup2-tests (Depends-on): Add close.
245         * modules/dup3-tests (Depends-on): Likewise.
246         * modules/fcntl-tests (Depends-on): Likewise.
247         * modules/spawn-pipe-tests (Depends-on): Likewise.
248         * modules/unistd-safer-tests (Depends-on): Likewise.
249         * doc/posix-functions/close.texi: Mention the problem on MSVC.
250
251 2011-09-23  Bruno Haible  <bruno@clisp.org>
252
253         New module 'dup'.
254         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
255         Allow replacement.
256         * lib/dup.c: New file.
257         * lib/fchdir.c (rpl_dup): Remove function.
258         * m4/dup.m4: New file.
259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
260         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
261         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
262         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
263         * modules/dup: New file.
264         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
265         'dup' module is in use.
266         * modules/fdopendir (Depends-on): Add dup.
267         * modules/fdutimensat-tests (Depends-on): Likewise.
268         * modules/fts (Depends-on): Likewise.
269         * modules/futimens-tests (Depends-on): Likewise.
270         * modules/posix_spawnp-tests (Depends-on): Likewise.
271         * modules/unistd-safer-tests (Depends-on): Likewise.
272         * modules/utimens-tests (Depends-on): Likewise.
273         * doc/posix-functions/dup.texi: Mention the new module and the problem
274         on MSVC.
275
276 2011-09-23  Bruno Haible  <bruno@clisp.org>
277
278         getdtablesize: Support for MSVC 9.
279         * lib/getdtablesize.c: Include msvc-inval.h.
280         (_setmaxstdio_nothrow): New function.
281         (_setmaxstdio): Redefine it.
282         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
283         * modules/getdtablesize (Depends-on): Add msvc-inval.
284         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
285
286 2011-09-23  Bruno Haible  <bruno@clisp.org>
287
288         signal-h: Rename from signal.
289         * modules/signal-h: Renamed from modules/signal.
290         * modules/pthread_sigmask (Depends-on): Update.
291         * modules/raise (Depends-on): Likewise.
292         * modules/sigaction (Depends-on): Likewise.
293         * modules/sigpipe (Depends-on): Likewise.
294         * modules/sigprocmask (Depends-on): Likewise.
295         * modules/sys_select (Depends-on): Likewise.
296         * modules/signal-h-tests: Renamed from modules/signal-tests.
297         (Files, Depends-on, Makefile.am): Update.
298         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
299         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
300         (Files, Makefile.am): Update.
301         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
302         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
303         * modules/signal: New placeholder file.
304         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
305         * doc/posix-headers/signal.texi: Update.
306         * NEWS: Mention the change.
307
308 2011-09-23  Bruno Haible  <bruno@clisp.org>
309
310         sigprocmask: Avoid crashes through signal() on MSVC 9.
311         * lib/sigprocmask.c: Include msvc-inval.h.
312         (signal_nothrow): New function.
313         (signal): Redefine it.
314         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
315         * modules/sigprocmask (Depends-on): Add msvc-inval.
316         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
317
318 2011-09-23  Bruno Haible  <bruno@clisp.org>
319
320         Tests for module 'raise'.
321         * modules/raise-tests: New file.
322         * tests/test-raise.c: New file.
323
324         raise: Support for MSVC.
325         * lib/signal.in.h (raise): New declaration.
326         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
327         for native Windows platforms.
328         * m4/raise.m4: New file.
329         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
330         HAVE_RAISE, REPLACE_RAISE.
331         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
332         REPLACE_RAISE.
333         * modules/raise (Status, Notice): Remove fields.
334         (Files): Add m4/raise.m4.
335         (Depends-on): Add signal, msvc-inval.
336         (configure.ac): Use the common idioms.
337         (Maintainer): Add me.
338         * tests/test-signal-c++.cc: Check the signature of raise.
339         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
340
341 2011-09-23  Bruno Haible  <bruno@clisp.org>
342
343         pipe2: Fix compilation on pre-C99 compilers.
344         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
345
346 2011-09-23  Bruno Haible  <bruno@clisp.org>
347
348         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
349         * lib/msvc-nothrow.h: New file.
350         * lib/msvc-nothrow.c: New file.
351         * m4/msvc-nothrow.m4: New file.
352         * modules/msvc-nothrow: New file.
353         * lib/dup2.c: Include msvc-nothrow.h.
354         (rpl_dup2): No need to protect _get_osfhandle call here.
355         * lib/accept4.c: Include msvc-nothrow.h.
356         * lib/error.c: Likewise.
357         * lib/fcntl.c: Likewise.
358         * lib/lseek.c: Likewise.
359         * lib/nonblocking.c: Likewise.
360         * lib/poll.c: Likewise.
361         * lib/read.c: Likewise.
362         * lib/select.c: Likewise.
363         * lib/sockets.h: Likewise.
364         * lib/sockets.c: Likewise.
365         * lib/stdio-read.c: Likewise.
366         * lib/stdio-write.c: Likewise.
367         * lib/write.c: Likewise.
368         * lib/w32sock.h: Likewise.
369         * lib/w32spawn.h: Likewise.
370         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
371         * lib/fsync.c: Likewise.
372         * lib/isapipe.c: Likewise.
373         * modules/dup2 (Depends-on): Add msvc-nothrow.
374         * modules/accept4 (Depends-on): Likewise.
375         * modules/error (Depends-on): Likewise.
376         * modules/fcntl (Depends-on): Likewise.
377         * modules/lseek (Depends-on): Likewise.
378         * modules/nonblocking (Depends-on): Likewise.
379         * modules/poll (Depends-on): Likewise.
380         * modules/read (Depends-on): Likewise.
381         * modules/select (Depends-on): Likewise.
382         * modules/sockets (Depends-on): Likewise.
383         * modules/sigpipe (Depends-on): Likewise.
384         * modules/write (Depends-on): Likewise.
385         * modules/accept (Depends-on): Likewise.
386         * modules/bind (Depends-on): Likewise.
387         * modules/connect (Depends-on): Likewise.
388         * modules/gethostname (Depends-on): Likewise.
389         * modules/getpeername (Depends-on): Likewise.
390         * modules/getsockname (Depends-on): Likewise.
391         * modules/getsockopt (Depends-on): Likewise.
392         * modules/ioctl (Depends-on): Likewise.
393         * modules/listen (Depends-on): Likewise.
394         * modules/recv (Depends-on): Likewise.
395         * modules/recvfrom (Depends-on): Likewise.
396         * modules/send (Depends-on): Likewise.
397         * modules/sendto (Depends-on): Likewise.
398         * modules/setsockopt (Depends-on): Likewise.
399         * modules/shutdown (Depends-on): Likewise.
400         * modules/socket (Depends-on): Likewise.
401         * modules/execute (Depends-on): Likewise.
402         * modules/spawn-pipe (Depends-on): Likewise.
403         * modules/flock (Depends-on): Likewise.
404         * modules/fsync (Depends-on): Likewise.
405         * modules/isapipe (Depends-on): Likewise.
406         * tests/test-cloexec.c: Include msvc-nothrow.h.
407         * tests/test-dup-safer.c: Likewise.
408         * tests/test-dup2.c: Likewise.
409         * tests/test-dup3.c: Likewise.
410         * tests/test-fcntl.c: Likewise.
411         * tests/test-pipe.c: Likewise.
412         * tests/test-pipe2.c: Likewise.
413         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
414         * modules/unistd-safer-tests (Depends-on): Likewise.
415         * modules/dup2-tests (Depends-on): Likewise.
416         * modules/dup3-tests (Depends-on): Likewise.
417         * modules/fcntl-tests (Depends-on): Likewise.
418         * modules/pipe-posix-tests (Depends-on): Likewise.
419         * modules/pipe2-tests (Depends-on): Likewise.
420
421 2011-09-23  Bruno Haible  <bruno@clisp.org>
422
423         dup2: Make code more maintainable.
424         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
425         (rpl_dup2): Use it.
426         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
427         * modules/dup2 (configure.ac): Invoke it.
428         Reported by Paul Eggert.
429
430 2011-09-23  Bruno Haible  <bruno@clisp.org>
431
432         msvc-inval: Fix compilation error.
433         * lib/msvc-inval.h: Include <excpt.h>.
434
435 2011-09-23  Bruno Haible  <bruno@clisp.org>
436
437         mkdir: Tweak for MSVC 9.
438         * lib/sys_stat.in.h: Update comments.
439         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
440
441         Tests for module 'chdir'.
442         * modules/chdir-tests: New file.
443         * tests/test-chdir.c: New file.
444
445         New module 'chdir'.
446         * modules/chdir: New file.
447         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
448         (chdir): New declaration.
449         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
450         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
451         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
452         * tests/test-unistd-c++.cc: Check signature of chdir.
453         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
454         * modules/chdir-long (Depends-on): Add chdir.
455         * modules/fchdir (Depends-on): Likewise.
456         * modules/rename (Depends-on): Likewise.
457         * modules/savewd (Depends-on): Likewise.
458
459         rmdir: Support for mingw, MSVC 9.
460         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
461         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
462
463         getcwd: Tweak for MSVC 9.
464         * lib/unistd.in.h: Update comments.
465         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
466
467 2011-09-22  Bruno Haible  <bruno@clisp.org>
468
469         strerror_r-posix: Avoid a link error on MSVC.
470         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
471         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
472
473 2011-09-22  Bruno Haible  <bruno@clisp.org>
474
475         select: Avoid link errors on MSVC.
476         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
477         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
478         * modules/pselect (Link): Likewise.
479         * NEWS: Mention the change.
480         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
481         test-select-stdin against $(LIB_SELECT).
482         * modules/pselect-tests (Makefile.am): Link test-pselect against
483         $(LIB_SELECT).
484
485 2011-09-22  Bruno Haible  <bruno@clisp.org>
486
487         select: Avoid compilation error on MSVC.
488         * lib/select.c: Don't include <stdbool.h>.
489
490 2011-09-21  Bruno Haible  <bruno@clisp.org>
491
492         Consolidate all uses of PATH_MAX in *.m4 files.
493         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
494         macros.
495         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
496         and gl_PATHMAX_SNIPPET.
497         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
498         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
499         * modules/chdir-long (Files): Add m4/pathmax.m4.
500         * modules/getcwd (Files): Likewise.
501
502 2011-09-21  Bruno Haible  <bruno@clisp.org>
503
504         ftruncate: Un-deprecate, concentrate on Win32 support.
505         * modules/ftruncate (Status, Notice): Remove sections.
506         (Depends-on): Add largefile.
507         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
508         non-mingw platforms.
509         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
510         include <io.h>.
511         * modules/perror-tests (Depends-on): Add ftruncate.
512         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
513         'ftruncate' module.
514
515 2011-09-21  Bruno Haible  <bruno@clisp.org>
516
517         Add dependencies to new dirent related modules.
518         * modules/opendir (Depends-on): Add closedir.
519         * modules/getcwd (Depends-on): Add opendir, closedir.
520         * modules/dirent-safer-tests (Depends-on): Likewise.
521         * modules/fdopendir-tests (Depends-on): Likewise.
522         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
523         * modules/renameat-tests (Depends-on): Likewise.
524
525 2011-09-21  Bruno Haible  <bruno@clisp.org>
526
527         opendir: Avoid compilation error on mingw.
528         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
529         * modules/opendir (Depends-on): Add unistd.
530
531 2011-09-21  Bruno Haible  <bruno@clisp.org>
532
533         ftruncate tests: Avoid a test failure on mingw.
534         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
535
536 2011-09-21  Bruno Haible  <bruno@clisp.org>
537
538         select tests: Avoid test failures on OSF/1 5.1 and mingw.
539         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
540         native Windows.
541
542 2011-09-21  Bruno Haible  <bruno@clisp.org>
543
544         New module 'fdopen'.
545         * lib/stdio.in.h (fdopen): New declaration.
546         * lib/fdopen.c: New file.
547         * m4/fdopen.m4: New file.
548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
549         REPLACE_FDOPEN.
550         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
551         REPLACE_FDOPEN.
552         * modules/fdopen: New file.
553         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
554         * tests/test-stdio-c++.cc: Check signature of fdopen.
555         * doc/posix-functions/fdopen.texi: Mention the new module.
556
557 2011-09-21  Bruno Haible  <bruno@clisp.org>
558
559         unlockpt tests: Avoid test failure on NetBSD 5.1.
560         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
561         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
562
563 2011-09-21  Bruno Haible  <bruno@clisp.org>
564
565         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
566         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
567         * tests/test-getlogin_r.c (main): Likewise.
568
569 2011-09-20  Bruno Haible  <bruno@clisp.org>
570
571         time tests: Don't require pid_t.
572         * doc/posix-headers/time.texi: Revert last change.
573         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
574         * tests/test-time.c: Comment out the check for pid_t.
575
576 2011-09-20  Bruno Haible  <bruno@clisp.org>
577
578         fsync tests: Avoid a test failure on mingw.
579         * tests/test-fsync.c (main): Allow a failure with EIO.
580
581 2011-09-20  Bruno Haible  <bruno@clisp.org>
582
583         euidaccess: Update comments.
584         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
585
586 2011-09-20  Bruno Haible  <bruno@clisp.org>
587
588         Ensure EBADF returns for socket functions on mingw.
589         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
590         descriptor is invalid.
591         * lib/bind.c (rpl_bind): Likewise.
592         * lib/connect.c (rpl_connect): Likewise.
593         * lib/getpeername.c (rpl_getpeername): Likewise.
594         * lib/getsockname.c (rpl_getsockname): Likewise.
595         * lib/getsockopt.c (rpl_getsockopt): Likewise.
596         * lib/listen.c (rpl_listen): Likewise.
597         * lib/recv.c (rpl_recv): Likewise.
598         * lib/recvfrom.c (rpl_recvfrom): Likewise.
599         * lib/send.c (rpl_send): Likewise.
600         * lib/sendto.c (rpl_sendto): Likewise.
601         * lib/setsockopt.c (rpl_setsockopt): Likewise.
602         * lib/shutdown.c (rpl_shutdown): Likewise.
603
604 2011-09-20  Bruno Haible  <bruno@clisp.org>
605
606         select tests: EBADF tests.
607         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
608         test_bad_fd): New functions.
609         (test_function): Invoke also test_bad_fd.
610
611 2011-09-20  Bruno Haible  <bruno@clisp.org>
612
613         Tests for module 'posix_spawn_file_actions_addopen.
614         * modules/posix_spawn_file_actions_addopen-tests: New file.
615         * tests/test-posix_spawn_file_actions_addopen.c: New file.
616
617         Tests for module 'posix_spawn_file_actions_adddup2'.
618         * modules/posix_spawn_file_actions_adddup2-tests: New file.
619         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
620
621         Tests for module 'posix_spawn_file_actions_addclose'.
622         * modules/posix_spawn_file_actions_addclose-tests: New file.
623         * tests/test-posix_spawn_file_actions_addclose.c: New file.
624
625 2011-09-20  Bruno Haible  <bruno@clisp.org>
626
627         Tests for module 'unlockpt'.
628         * modules/unlockpt-tests: New file.
629         * tests/test-unlockpt.c: New file.
630         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
631
632         Tests for module 'grantpt'.
633         * modules/grantpt-tests: New file.
634         * tests/test-grantpt.c: New file.
635         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
636
637 2011-09-20  Bruno Haible  <bruno@clisp.org>
638
639         freopen tests: EBADF tests.
640         * tests/test-freopen.c: Include errno.h, unistd.h.
641         (main): Add tests for EBADF, commented out for the moment.
642
643         fclose tests: EBADF tests.
644         * tests/test-fclose.c (main): Add tests for EBADF.
645
646         fflush tests: EBADF tests.
647         * tests/test-fflush.c: Include errno.h, macros.h.
648         (main): Add tests for EBADF.
649
650         ftello tests: EBADF tests.
651         * tests/test-ftello4.sh: New file.
652         * tests/test-ftello4.c: New file.
653         * modules/ftello-tests (Files): Add them.
654         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
655
656         fseeko tests: EBADF tests.
657         * tests/test-fseeko4.sh: New file.
658         * tests/test-fseeko4.c: New file.
659         * modules/fseeko-tests (Files): Add them.
660         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
661
662         Tests for function fputc().
663         * modules/fputc-tests: New file.
664         * tests/test-fputc.c: New file.
665         * modules/stdio-tests (Depends-on): Add fputc-tests.
666
667         Tests for function fgetc().
668         * modules/fgetc-tests: New file.
669         * tests/test-fgetc.c: New file.
670         * modules/stdio-tests (Depends-on): Add fgetc-tests.
671
672         Tests for function fdopen().
673         * modules/fdopen-tests: New file.
674         * tests/test-fdopen.c: New file.
675         * modules/stdio-tests (Depends-on): Add fdopen-tests.
676
677         Tests for module 'vdprintf'.
678         * modules/vdprintf-tests: New file.
679         * tests/test-vdprintf.c: New file.
680
681         Tests for module 'dprintf'.
682         * modules/dprintf-tests: New file.
683         * tests/test-dprintf.c: New file.
684
685 2011-09-20  Bruno Haible  <bruno@clisp.org>
686
687         Tests for module 'ioctl'.
688         * modules/ioctl-tests: New file.
689         * tests/test-ioctl.c: New file.
690
691 2011-09-20  Bruno Haible  <bruno@clisp.org>
692
693         fcntl tests: EBADF tests.
694         * tests/test-fcntl.c (main): Add more tests for EBADF.
695
696 2011-09-20  Bruno Haible  <bruno@clisp.org>
697
698         utimensat tests: EBADF tests.
699         * tests/test-utimensat.c (main): Add tests for EBADF.
700
701         renameat tests: EBADF tests.
702         * tests/test-renameat.c (main): Add tests for EBADF.
703
704         mkfifoat tests: EBADF tests.
705         * tests/test-mkfifoat.c (main): Add tests for EBADF.
706
707         readlinkat tests: EBADF tests.
708         * tests/test-readlinkat.c (main): Add tests for EBADF.
709
710         symlinkat tests: EBADF tests.
711         * tests/test-symlinkat.c (main): Add tests for EBADF.
712
713         linkat tests: EBADF tests.
714         * tests/test-linkat.c (main): Add tests for EBADF.
715
716         Tests for module 'faccessat'.
717         * modules/faccessat-tests: New file.
718         * tests/test-faccessat.c: New file.
719
720         fdopendir tests: EBADF tests.
721         * tests/test-fdopendir.c (main): Add more tests for EBADF.
722
723         openat tests: EBADF tests.
724         * tests/test-fchownat.c (main): Add tests for EBADF.
725         * tests/test-fstatat.c (main): Likewise.
726         * tests/test-mkdirat.c (main): Likewise.
727         * tests/test-openat.c (main): Likewise.
728         * tests/test-unlinkat.c (main): Likewise.
729         * tests/test-fchmodat.c: New file.
730         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
731         (Makefile.am): Also run 'test-fchmodat'.
732
733 2011-09-20  Bruno Haible  <bruno@clisp.org>
734
735         utimens, futimens, fdutimensat tests: EBADF tests.
736         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
737
738         Tests for function fstat().
739         * modules/fstat-tests: New file.
740         * tests/test-fstat.c: New file.
741         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
742
743 2011-09-20  Bruno Haible  <bruno@clisp.org>
744
745         test-ttyname_r tests: EBADF tests.
746         * tests/test-ttyname_r.c (main): Add tests for EBADF.
747
748         Tests for module 'isatty'.
749         * modules/isatty-tests: New file.
750         * tests/test-isatty.c: New file.
751
752         Tests for module 'write'.
753         * modules/write-tests: New file.
754         * tests/test-write.c: New file.
755
756         Tests for module 'read'.
757         * modules/read-tests: New file.
758         * tests/test-read.c: New file.
759
760         pwrite tests: EBADF tests.
761         * tests/test-pwrite.c (main): Add tests for EBADF.
762
763         pread tests: EBADF tests.
764         * tests/test-pread.c (main): Add tests for EBADF.
765
766         lseek tests: EBADF tests.
767         * tests/test-lseek.c (main): Add more tests for EBADF.
768
769         Tests for module 'ftruncate'.
770         * modules/ftruncate-tests: New file.
771         * tests/test-ftruncate.sh: New file.
772         * tests/test-ftruncate.c: New file.
773
774         fsync tests: EBADF tests.
775         * tests/test-fsync.c (main): Add more tests for EBADF.
776
777         fdatasync tests: EBADF tests.
778         * tests/test-fdatasync.c (main): Add more tests for EBADF.
779
780         Tests for module 'fchown'.
781         * modules/fchown-tests: New file.
782         * tests/test-fchown.c: New file.
783
784         Tests for module 'fchmod'.
785         * modules/fchmod-tests: New file.
786         * tests/test-fchmod.c: New file.
787
788         fchdir tests: EBADF tests.
789         * tests/test-fchdir.c (main): Add more tests for EBADF.
790
791         dup2 tests: EBADF tests.
792         * tests/test-dup2.c (main): Add more tests for EBADF.
793
794         Tests for module 'dup'.
795         * modules/dup-tests: New file.
796         * tests/test-dup.c: New file.
797
798         Tests for module 'close'.
799         * modules/close-tests: New file.
800         * tests/test-close.c: New file.
801
802 2011-09-20  Bruno Haible  <bruno@clisp.org>
803
804         Tests for module 'shutdown'.
805         * modules/shutdown-tests: New file.
806         * tests/test-shutdown.c: New file.
807
808         Tests for module 'setsockopt'.
809         * modules/setsockopt-tests: New file.
810         * tests/test-setsockopt.c: New file.
811
812         Tests for module 'sendto'.
813         * modules/sendto-tests: New file.
814         * tests/test-sendto.c: New file.
815
816         Tests for module 'send'.
817         * modules/send-tests: New file.
818         * tests/test-send.c: New file.
819
820         Tests for module 'recvfrom'.
821         * modules/recvfrom-tests: New file.
822         * tests/test-recvfrom.c: New file.
823
824         Tests for module 'recv'.
825         * modules/recv-tests: New file.
826         * tests/test-recv.c: New file.
827
828         Tests for module 'listen'.
829         * modules/listen-tests: New file.
830         * tests/test-listen.c: New file.
831
832         Tests for module 'getsockopt'.
833         * modules/getsockopt-tests: New file.
834         * tests/test-getsockopt.c: New file.
835
836         Tests for module 'getsockname'.
837         * modules/getsockname-tests: New file.
838         * tests/test-getsockname.c: New file.
839
840         Tests for module 'getpeername'.
841         * modules/getpeername-tests: New file.
842         * tests/test-getpeername.c: New file.
843
844         Tests for module 'connect'.
845         * modules/connect-tests: New file.
846         * tests/test-connect.c: New file.
847
848         Tests for module 'bind'.
849         * modules/bind-tests: New file.
850         * tests/test-bind.c: New file.
851
852         accept4 tests: Fix for native Windows.
853         * tests/test-accept4.c: Include sockets.h.
854         (main): Invoke gl_sockets_startup.
855         * modules/accept4-tests (Depends-on): Add sockets.
856
857         accept tests: Fix for native Windows.
858         * tests/test-accept.c: Include sockets.h.
859         (main): Invoke gl_sockets_startup.
860         * modules/accept-tests (Depends-on): Add sockets.
861
862 2011-09-19  Bruno Haible  <bruno@clisp.org>
863
864         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
865         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
866         do...while(0).
867         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
868         Suggested by Paul Eggert.
869
870 2011-09-19  Bruno Haible  <bruno@clisp.org>
871
872         sched: Ensure pid_t is defined.
873         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
874         not define pid_t.
875         * lib/sched.in.h: Include <sys/types.h>.
876         * doc/posix-headers/sched.texi: Mention the pid_t problem.
877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
878
879 2011-09-19  Bruno Haible  <bruno@clisp.org>
880
881         msvc-inval: Ensure the entire expansion is a single statement.
882         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
883         of braces.
884
885 2011-09-19  Jim Meyering  <meyering@redhat.com>
886
887         tests: use printf, not echo in init.sh's warn_ function
888         * tests/init.sh (warn_): Use printf, not echo.  The latter would
889         misbehave when given strings containing a backslash or starting
890         with e.g., -n.  James Youngman suggested setting IFS.
891
892 2011-09-19  Eric Blake  <eblake@redhat.com>
893
894         futimens: enhance test
895         * tests/test-futimens.h (test_futimens): Also check for EBADF on
896         closed non-negative fd.
897
898         date: accept 'hence' as opposite of 'ago'
899         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
900         * tests/test-parse-datetime.c (main): Enhance test.
901         Suggested by Jesse Wilson.
902
903 2011-09-19  Jim Meyering  <meyering@redhat.com>
904
905         getcwd: don't fail in a deep directory on a system without openat
906         Before this change, getcwd would fail when called from a directory
907         of depth PATH_MAX / 3 or greater.  That was due to the fact that
908         the non-openat implementation used "..", "../..", "../../..", etc.
909         to access ancestor directories.  With too many, that string would
910         be longer than PATH_MAX.
911         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
912         using gnulib's openat replacement.
913         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
914         we're using the replacement function.
915
916 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
917
918         maint.mk: avoid warnings from perl about missing files
919         * top/maint.mk (def_sym_regex): Ignore files listed in
920         $(gl_other_headers_) that do not exist, say because a project
921         does not use a corresponding module.
922
923 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
924
925         stat: use pathmax.h only if needed
926         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
927         This is better for Emacs, which does not have a mingw port and
928         therefore can avoid the pathmax module.
929
930         utimens: remove dependency on dup2
931         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
932         to work around the Linux kernel bug.
933         * modules/utimens (Depends-on): Remove dup2.
934
935 2011-09-18  Bruno Haible  <bruno@clisp.org>
936
937         inet_ntop, inet_pton: Look for it also in libresolv.
938         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
939         libnsl, search for it in libresolv.
940         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
941         Needed on Solaris 7.
942
943 2011-09-18  Bruno Haible  <bruno@clisp.org>
944
945         accept, accept4 tests: Avoid link error on Solaris.
946         * modules/accept-tests (Makefile.am): Link test-accept against
947         $(LIBSOCKET).
948         * modules/accept4-tests (Makefile.am): Link test-accept4 against
949         $(LIBSOCKET).
950
951         accept4: Avoid link error on Solaris.
952         * modules/accept4 (Link): New section.
953
954         socket functions: Avoid link errors on Solaris.
955         * modules/accept (Depends-on): Add socketlib.
956         (Link): New section.
957         * modules/bind (Depends-on): Add socketlib.
958         (Link): New section.
959         * modules/connect (Depends-on): Add socketlib.
960         (Link): New section.
961         * modules/getpeername (Depends-on): Add socketlib.
962         (Link): New section.
963         * modules/getsockname (Depends-on): Add socketlib.
964         (Link): New section.
965         * modules/getsockopt (Depends-on): Add socketlib.
966         (Link): New section.
967         * modules/listen (Depends-on): Add socketlib.
968         (Link): New section.
969         * modules/recv (Depends-on): Add socketlib.
970         (Link): New section.
971         * modules/recvfrom (Depends-on): Add socketlib.
972         (Link): New section.
973         * modules/send (Depends-on): Add socketlib.
974         (Link): New section.
975         * modules/sendto (Depends-on): Add socketlib.
976         (Link): New section.
977         * modules/setsockopt (Depends-on): Add socketlib.
978         (Link): New section.
979         * modules/shutdown (Depends-on): Add socketlib.
980         (Link): New section.
981         * modules/socket (Depends-on): Add socketlib.
982         (Link): New section.
983
984 2011-09-18  Bruno Haible  <bruno@clisp.org>
985
986         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
987         * tests/test-ptsname.c (main): Terminate the test if it takes longer
988         than 5 seconds.
989         * modules/ptsname-tests (configure.ac): Test for alarm.
990
991 2011-09-18  Bruno Haible  <bruno@clisp.org>
992
993         posix_spawn_file_actions_add*: Fix module dependencies.
994         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
995         posix_spawn_file_actions_init.
996         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
997         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
998
999 2011-09-18  Bruno Haible  <bruno@clisp.org>
1000
1001         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1002         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1003         * tests/test-renameat.c (main): Likewise.
1004
1005 2011-09-18  Bruno Haible  <bruno@clisp.org>
1006
1007         Tests for module 'accept4'.
1008         * modules/accept4-tests: New file.
1009         * tests/test-accept4.c: New file.
1010
1011 2011-09-18  Bruno Haible  <bruno@clisp.org>
1012
1013         Tests for module 'accept'.
1014         * modules/accept-tests: New file.
1015         * tests/test-accept.c: New file.
1016
1017 2011-09-18  Bruno Haible  <bruno@clisp.org>
1018
1019         dup2: Support for MSVC.
1020         * lib/dup2.c: Include msvc-inval.h.
1021         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1022         _get_osfhandle calls.
1023         * modules/dup2 (Depends-on): Add msvc-inval.
1024         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1025
1026         New module 'msvc-inval'.
1027         * lib/msvc-inval.h: New file.
1028         * lib/msvc-inval.c: New file.
1029         * m4/msvc-inval.m4: New file.
1030         * modules/msvc-inval: New file.
1031
1032 2011-09-17  Bruno Haible  <bruno@clisp.org>
1033
1034         Tests for module 'pclose'.
1035         * modules/pclose-tests: New file.
1036
1037         New module 'pclose'.
1038         * lib/stdio.in.h (pclose): New declaration.
1039         * lib/pclose.c: New file.
1040         * m4/pclose.m4: New file.
1041         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1042         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1043         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1044         * modules/pclose: New file.
1045         * modules/popen-tests (Depends-on): Add pclose.
1046         * modules/popen-safer-tests (Depends-on): Likewise.
1047         * doc/posix-functions/pclose.texi: Mention the new module.
1048
1049 2011-09-17  Bruno Haible  <bruno@clisp.org>
1050
1051         popen: Support for MSVC.
1052         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1053         * lib/popen.c (popen): Provide alternate definition for native Windows.
1054         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1056         * modules/popen (Depends-on, configure.ac): Update condition.
1057         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1058         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1059         fixed.
1060
1061 2011-09-17  Bruno Haible  <bruno@clisp.org>
1062
1063         isnanl, isnand, isnanf: Work around MSVC bug.
1064         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1065
1066 2011-09-17  Bruno Haible  <bruno@clisp.org>
1067
1068         sys_socket tests: Fix recent mistake.
1069         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1070
1071 2011-09-17  Bruno Haible  <bruno@clisp.org>
1072
1073         putenv: Support for MSVC.
1074         * modules/putenv (Depends-on): Add environ.
1075         * lib/putenv.c (environ): Disable declaration.
1076         * lib/unistd.in.h: Update comment.
1077
1078 2011-09-17  Bruno Haible  <bruno@clisp.org>
1079
1080         math: Avoid macro redefinition warnings on MSVC.
1081         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1082         Undefine before redefining.
1083
1084 2011-09-17  Bruno Haible  <bruno@clisp.org>
1085
1086         doc: Mention functions which are declared as macros.
1087         * doc/posix-functions/*[fl].texi: Mention that some functions are
1088         defined as macros with arguments only.
1089
1090 2011-09-17  Bruno Haible  <bruno@clisp.org>
1091
1092         Add dependencies to new dirent related modules.
1093         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1094         * modules/fts (Depends-on): Likewise.
1095         * modules/glob (Depends-on): Likewise.
1096         * modules/savedir (Depends-on): Likewise.
1097         * modules/scandir (Depends-on): Likewise.
1098         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1099         * modules/fdopendir (Depends-on): Add opendir.
1100
1101 2011-09-17  Bruno Haible  <bruno@clisp.org>
1102
1103         inet_pton: Support for MSVC on Windows Vista or newer.
1104         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1105         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1106         HAVE_DECL_INET_PTON is defined.
1107         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1108         On platforms with <winsock2.h>, test whether inet_pton is declared in
1109         <ws2tcpip.h>. If so, arrange to replace it.
1110         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1111         REPLACE_INET_PTON.
1112         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1113         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1114         (Depends-on, configure.ac): Update condition.
1115         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1116
1117 2011-09-17  Bruno Haible  <bruno@clisp.org>
1118
1119         inet_ntop: Support for MSVC on Windows Vista or newer.
1120         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1121         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1122         HAVE_DECL_INET_NTOP is defined.
1123         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1124         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1125         <ws2tcpip.h>. If so, arrange to replace it.
1126         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1127         REPLACE_INET_NTOP.
1128         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1129         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1130         (Depends-on, configure.ac): Update condition.
1131         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1132
1133 2011-09-16  Eric Blake  <eblake@redhat.com>
1134
1135         test-fsync: yet another enhancement
1136         * tests/test-fsync.c (main): Also test behavior on read-only text
1137         file.
1138
1139 2011-09-16  Bruno Haible  <bruno@clisp.org>
1140
1141         Enhance fsync, fdatasync tests.
1142         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1143         * tests/test-fdatasync.c (main): Likewise.
1144
1145 2011-09-16  Bruno Haible  <bruno@clisp.org>
1146
1147         Support for MSVC compiler: Ensure mode_t gets defined.
1148         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1149         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1150         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1151         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1152         * tests/test-fcntl-h.c: Check that mode_t is defined.
1153         * tests/test-sys_stat.c: Likewise.
1154         * tests/test-sys_types.c: Likewise.
1155         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1156         * doc/posix-headers/sys_stat.texi: Likewise.
1157         * doc/posix-headers/sys_types.texi: Likewise.
1158
1159 2011-09-16  Bruno Haible  <bruno@clisp.org>
1160
1161         sys_stat: Support for MSVC.
1162         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1163         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1164         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1165         MSVC.
1166
1167 2011-09-16  Bruno Haible  <bruno@clisp.org>
1168
1169         Support for MSVC compiler: Ensure off_t gets defined.
1170         * lib/unistd.in.h: Include <sys/types.h>.
1171         * tests/test-fcntl-h.c: Check that off_t is defined.
1172         * tests/test-sys_stat.c: Likewise.
1173         * tests/test-sys_types.c: Likewise.
1174
1175 2011-09-16  Eric Blake  <eblake@redhat.com>
1176
1177         fdatasync: port to Solaris
1178         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1179         * modules/fdatasync (Link): Document it.
1180         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1181
1182         fdatasync: port to MacOS X 10.7
1183         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1184         declared.
1185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1186         * modules/unistd (Makefile.am): Substitute it.
1187         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1188         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1189
1190         fdatasync: minor improvements
1191         * modules/fdatasync (Depends-on): Add condition for fsync.
1192         * lib/fdatasync.c (fdatasync): Add comment.
1193         * tests/test-unistd-c++.cc: Test fdatasync.
1194
1195         unistd: update refs to newer POSIX
1196         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1197         Suggested by Bruno Haible.
1198
1199         fdatasync: new module
1200         * modules/fsync (Description): Document difference to fdatasync.
1201         * modules/fdatasync: New module.
1202         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1203         * lib/fdatasync.c (fdatasync): Likewise.
1204         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1205         defaults.
1206         * modules/unistd (Makefile.am): Set witnesses.
1207         * lib/unistd.in.h (fdatasync): Declare.
1208         * MODULES.html.sh: Document it.
1209         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1210         * modules/fdatasync-tests: New test.
1211         * tests/test-fdatasync.c: Likewise.
1212
1213 2011-09-16  Eric Blake  <eblake@redhat.com>
1214
1215         test-fsync: enhance tests
1216         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1217         * tests/test-fsync.c (main): Enhance test.
1218
1219 2011-09-15  Bruno Haible  <bruno@clisp.org>
1220
1221         Support for MSVC compiler: Ensure ssize_t gets defined.
1222         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1223         * doc/posix-headers/stdio.texi: Likewise.
1224         * modules/stdio (Depends-on): Add ssize_t.
1225         * modules/sys_socket (Depends-on): Likewise.
1226         * modules/sys_types (Depends-on): Likewise.
1227         * modules/sys_uio (Depends-on): Likewise.
1228         * modules/unistd (Depends-on): Likewise.
1229         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1230         * tests/test-sys_types.c: Check that ssize_t is defined.
1231
1232 2011-09-14  Bruno Haible  <bruno@clisp.org>
1233
1234         Avoid using #, the m4 comment starter character, near brackets.
1235         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1236         delimiter character in sed expressions.
1237         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1238         Suggested by Eric Blake.
1239
1240         Properly quote AC_CHECK_DECLS' 4th argument.
1241         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1242         argument.
1243         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1244         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1245         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1246         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1247         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1248         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1249         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1250         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1251         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1252         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1253         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1254         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1255         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1256         * m4/isinf.m4 (gl_ISINF): Likewise.
1257         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1258         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1259         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1260         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1261         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1262         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1263         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1264         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1265         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1266         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1267         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1268         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1270         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1272         Reported by Eric Blake.
1273
1274         Properly quote AC_CHECK_DECL's 4th argument.
1275         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1276         argument.
1277         * m4/argp.m4 (gl_ARGP): Likewise.
1278         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1279         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1280         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1281         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1282         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1283         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1285         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1286         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1287         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1288         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1289         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1290         Reported by Eric Blake.
1291
1292 2011-09-14  Eric Blake  <eblake@redhat.com>
1293
1294         opendir: avoid compile warning
1295         * lib/opendir.c (includes): Always include errno.h.
1296         Reported by Tatsuro MATSUOKA.
1297
1298 2011-09-14  Jim Meyering  <meyering@redhat.com>
1299
1300         maint.mk: sc_tight_scope: propagate failure from sub-make
1301         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1302         Reported by Martin von Gagern.
1303
1304 2011-09-13  Bruno Haible  <bruno@clisp.org>
1305
1306         tempname: Support for MSVC.
1307         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1308         MSVC.
1309         * modules/tempname (Depends-on): Add fcntl-h.
1310
1311 2011-09-13  Bruno Haible  <bruno@clisp.org>
1312
1313         sys_time: Support for MSVC.
1314         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1315         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1316         include <winsock2.h>.
1317         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1318         function declarations that collide with POSIX.
1319         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1320         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1321
1322 2011-09-13  Bruno Haible  <bruno@clisp.org>
1323
1324         stat: Support for MSVC.
1325         * lib/stat.c: Include pathmax.h.
1326         * modules/stat (Depends-on): Add pathmax.
1327
1328         pathmax: Support for native Windows.
1329         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1330
1331 2011-09-12  Bruno Haible  <bruno@clisp.org>
1332
1333         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1334         * lib/dirent.in.h (struct dirent): New type.
1335         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1336         DT_WHT): New macros.
1337         (DIR): New type.
1338         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1339         (readdir, rewinddir): New declarations.
1340         * lib/dirent-private.h: New file.
1341         * lib/opendir.c: New file.
1342         * lib/readdir.c: New file.
1343         * lib/rewinddir.c: New file.
1344         * lib/closedir.c: New file.
1345         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1346         * m4/opendir.m4: New file.
1347         * m4/readdir.m4: New file.
1348         * m4/rewinddir.m4: New file.
1349         * m4/closedir.m4: New file.
1350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1351         REPLACE_CLOSEDIR here.
1352         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1353         readdir, rewinddir are declared.
1354         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1355         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1356         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1357         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1358         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1359         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1360         * modules/opendir: New file.
1361         * modules/readdir: New file.
1362         * modules/rewinddir: New file.
1363         * modules/closedir: New file.
1364         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1365         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1366         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1367         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1368         * NEWS: Mention the 'fchdir' change.
1369
1370 2011-09-11  Bruno Haible  <bruno@clisp.org>
1371
1372         asm-underscore.m4: Support for MSVC.
1373         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1374         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1375
1376 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1377
1378         Doc about crypt functions.
1379         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1380         needing for _GNU_SOURCE to get crypt.
1381         * doc/posix-functions/encrypt.texi: Likewise.
1382         * doc/posix-functions/setkey.texi: Likewise.
1383
1384 2011-09-11  Bruno Haible  <bruno@clisp.org>
1385
1386         doc: Update regarding MSVC 9.
1387         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1388         tested".
1389         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1390         * doc/posix-headers/*.texi: Likewise.
1391         * doc/pastposix-functions/*.texi: Likewise.
1392         * doc/glibc-functions/*.texi: Likewise.
1393         * doc/glibc-headers/*.texi: Likewise.
1394
1395 2011-09-11  Bruno Haible  <bruno@clisp.org>
1396
1397         unistd et al.: Don't assume <unistd.h> exists.
1398         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1399         does not exist.
1400         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1401         exist. But include <stdlib.h>.
1402         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1403         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1404         symlink() does not exist.
1405         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1406         include <io.h> instead.
1407         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1408         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1409         include <direct.h> instead.
1410         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1411         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1412         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1413         <io.h> instead.
1414         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1415         correctly if the system does not have hard links.
1416         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1417         <direct.h> instead.
1418         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1419         it when looking for function declarations.
1420         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1421         <direct.h> and <io.h> instead.
1422         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1423
1424 2011-09-11  Bruno Haible  <bruno@clisp.org>
1425
1426         strcase: Support for MSVC.
1427         * modules/strcase (Status, Notice): Remove obsoletion mark.
1428         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1429         * doc/posix-functions/strncasecmp.texi: Likewise.
1430
1431         strings: Don't assume <strings.h> exists.
1432         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1433         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1434         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1435         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1436
1437 2011-09-11  Bruno Haible  <bruno@clisp.org>
1438
1439         dirent: Don't assume <dirent.h> exists.
1440         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1441         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1442         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1443         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1444
1445 2011-09-11  Bruno Haible  <bruno@clisp.org>
1446
1447         Fix wint_t on MSVC.
1448         * lib/wchar.in.h (wint_t): On MSVC, override it.
1449         * lib/wctype.in.h (wint_t): Likewise.
1450         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1451         MSVC.
1452         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1453         * doc/posix-headers/wctype.texi: Likewise.
1454
1455 2011-09-11  Bruno Haible  <bruno@clisp.org>
1456
1457         sys_types: Fix typo.
1458         * lib/sys_types.in.h: Fix typo in comment.
1459         Reported by Paul Eggert.
1460
1461         Support for MSVC compiler: Ensure size_t gets defined.
1462         * modules/strings (Depends-on): Add 'sys_types'.
1463         * modules/sys_uio (Depends-on): Likewise.
1464         * lib/sys_uio.in.h: Update comment.
1465
1466         C++ tests for module 'sys_types'.
1467         * modules/sys_types-c++-tests: New file.
1468         * tests/test-sys_types-c++.cc: New file.
1469
1470         Tests for module 'sys_types'.
1471         * modules/sys_types-tests: New file.
1472         * tests/test-sys_types.c: New file.
1473
1474         New module 'sys_types'.
1475         * lib/sys_types.in.h: New file.
1476         * m4/sys_types_h.m4: New file.
1477         * modules/sys_types: New file.
1478         * doc/posix-headers/sys_types.texi: Mention the new module and the
1479         size_t problem on MSVC 9.
1480
1481 2011-09-11  Bruno Haible  <bruno@clisp.org>
1482
1483         Support for MSVC compiler: Avoid division by a literal 0.
1484         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1485         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1486         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1487         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1488         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1489         * tests/infinity.h: New file.
1490         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1491         on MSVC.
1492         * tests/test-ceilf1.c: Include infinity.h.
1493         (main): Use Infinityf.
1494         * tests/test-ceil1.c: Include infinity.h.
1495         (main): Use Infinityd.
1496         * tests/test-ceill.c: Include infinity.h.
1497         (main): Use Infinityl.
1498         * tests/test-dprintf-posix.c: Include infinity.h.
1499         (test_function): Use Infinityd.
1500         * tests/test-floorf1.c: Include infinity.h.
1501         (main): Use Infinityf.
1502         * tests/test-floor1.c: Include infinity.h.
1503         (main): Use Infinityd.
1504         * tests/test-floorl.c: Include infinity.h.
1505         (main): Use Infinityl.
1506         * tests/test-fprintf-posix.c: Include infinity.h.
1507         (test_function): Use Infinityd.
1508         * tests/test-frexp.c: Include infinity.h.
1509         (main): Use Infinityd.
1510         * tests/test-frexpl.c: Include infinity.h.
1511         (main): Use Infinityl.
1512         * tests/test-isfinite.c: Include infinity.h.
1513         (test_isfinitef): Use Infinityf.
1514         (test_isfinited): Use Infinityd.
1515         (test_isfinitel): Use Infinityl.
1516         * tests/test-isinf.c: Include infinity.h.
1517         (test_isinff): Use Infinityf.
1518         (test_isinfd): Use Infinityd.
1519         (test_isinfl): Use Infinityl.
1520         * tests/test-isnan.c: Include infinity.h.
1521         (test_float): Use Infinityf.
1522         (test_double): Use Infinityd.
1523         (test_long_double): Use Infinityl.
1524         * tests/test-isnanf.h: Include infinity.h.
1525         (main): Use Infinityf.
1526         * tests/test-isnand.h: Include infinity.h.
1527         (main): Use Infinityd.
1528         * tests/test-isnanl.h: Include infinity.h.
1529         (main): Use Infinityl.
1530         * tests/test-ldexpl.c: Include infinity.h.
1531         (main): Use Infinityl.
1532         * tests/test-printf-posix.h: Include infinity.h.
1533         (test_function): Use Infinityd.
1534         * tests/test-roundf1.c: Include infinity.h.
1535         (main): Use Infinityf.
1536         * tests/test-round1.c: Include infinity.h.
1537         (main): Use Infinityd.
1538         * tests/test-roundl.c: Include infinity.h.
1539         (main): Use Infinityl.
1540         * tests/test-signbit.c: Include infinity.h.
1541         (test_signbitf): Use Infinityf.
1542         (test_signbitd): Use Infinityd.
1543         (test_signbitl): Use Infinityl.
1544         * tests/test-snprintf-posix.h: Include infinity.h.
1545         (test_function): Use Infinityd, Infinityl.
1546         * tests/test-sprintf-posix.h: Include infinity.h.
1547         (test_function): Use Infinityd, Infinityl.
1548         * tests/test-truncf1.c: Include infinity.h.
1549         (main): Use Infinityf.
1550         * tests/test-trunc1.c: Include infinity.h.
1551         (main): Use Infinityd.
1552         * tests/test-truncl.c: Include infinity.h.
1553         (main): Use Infinityl.
1554         * tests/test-vasnprintf-posix.c: Include infinity.h.
1555         (test_function): Use Infinityd, Infinityl.
1556         * tests/test-vasprintf-posix.c: Include infinity.h.
1557         (test_function): Use Infinityd, Infinityl.
1558         * modules/ceilf-tests (Files): Add tests/infinity.h.
1559         * modules/ceil-tests (Files): Likewise.
1560         * modules/ceill-tests (Files): Likewise.
1561         * modules/dprintf-posix-tests (Files): Likewise.
1562         * modules/floorf-tests (Files): Likewise.
1563         * modules/floor-tests (Files): Likewise.
1564         * modules/floorl-tests (Files): Likewise.
1565         * modules/fprintf-posix-tests (Files): Likewise.
1566         * modules/frexp-tests (Files): Likewise.
1567         * modules/frexp-nolibm-tests (Files): Likewise.
1568         * modules/frexpl-tests (Files): Likewise.
1569         * modules/frexpl-nolibm-tests (Files): Likewise.
1570         * modules/isfinite-tests (Files): Likewise.
1571         * modules/isinf-tests (Files): Likewise.
1572         * modules/isnan-tests (Files): Likewise.
1573         * modules/isnanf-tests (Files): Likewise.
1574         * modules/isnanf-nolibm-tests (Files): Likewise.
1575         * modules/isnand-tests (Files): Likewise.
1576         * modules/isnand-nolibm-tests (Files): Likewise.
1577         * modules/isnanl-tests (Files): Likewise.
1578         * modules/isnanl-nolibm-tests (Files): Likewise.
1579         * modules/ldexpl-tests (Files): Likewise.
1580         * modules/printf-posix-tests (Files): Likewise.
1581         * modules/roundf-tests (Files): Likewise.
1582         * modules/round-tests (Files): Likewise.
1583         * modules/roundl-tests (Files): Likewise.
1584         * modules/signbit-tests (Files): Likewise.
1585         * modules/snprintf-posix-tests (Files): Likewise.
1586         * modules/sprintf-posix-tests (Files): Likewise.
1587         * modules/truncf-tests (Files): Likewise.
1588         * modules/trunc-tests (Files): Likewise.
1589         * modules/truncl-tests (Files): Likewise.
1590         * modules/vasnprintf-posix-tests (Files): Likewise.
1591         * modules/vasprintf-posix-tests (Files): Likewise.
1592         * modules/vdprintf-posix-tests (Files): Likewise.
1593         * modules/vfprintf-posix-tests (Files): Likewise.
1594         * modules/vprintf-posix-tests (Files): Likewise.
1595         * modules/vsnprintf-posix-tests (Files): Likewise.
1596         * modules/vsprintf-posix-tests (Files): Likewise.
1597         * modules/xprintf-posix-tests (Files): Likewise.
1598
1599 2011-09-11  Bruno Haible  <bruno@clisp.org>
1600
1601         Ensure pid_t gets defined.
1602         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1603         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1604         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1605         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1606         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1607         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1608         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1609         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1610         * tests/test-fcntl-h.c: Check that pid_t is defined.
1611         * tests/test-sched.c: Likewise.
1612         * tests/test-termios.c: Likewise.
1613         * tests/test-time.c: Likewise.
1614         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1615         * doc/posix-headers/signal.texi: Likewise.
1616         * doc/posix-headers/sys_types.texi: Likewise.
1617         * doc/posix-headers/time.texi: Likewise.
1618
1619 2011-09-11  Bruno Haible  <bruno@clisp.org>
1620
1621         acl: Fix compilation on Solaris 10 (older version).
1622         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1623         of ACE_EVERYONE.
1624         * lib/set-mode-acl.c (qset_acl): Likewise.
1625         Reported by Christian Jullien <eligis@orange.fr>.
1626
1627 2011-09-10  Bruno Haible  <bruno@clisp.org>
1628
1629         iconv, unsetenv: Add support for MSVC compiler.
1630         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1631         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1632
1633 2011-09-10  Bruno Haible  <bruno@clisp.org>
1634
1635         *printf: Add support for MSVC compiler.
1636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1637         handles the exception caused by the %n directive. When cross-compiling,
1638         guess no on native Windows.
1639         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1640         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1641         emulate it through vsnprintf.
1642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1643         * doc/posix-functions/dprintf.texi: Update documentation regarding
1644         MSVC 9.
1645         * doc/posix-functions/fprintf.texi: Likewise.
1646         * doc/posix-functions/printf.texi: Likewise.
1647         * doc/posix-functions/snprintf.texi: Likewise.
1648         * doc/posix-functions/sprintf.texi: Likewise.
1649         * doc/posix-functions/swprintf.texi: Likewise.
1650         * doc/posix-functions/vdprintf.texi: Likewise.
1651         * doc/posix-functions/vfprintf.texi: Likewise.
1652         * doc/posix-functions/vprintf.texi: Likewise.
1653         * doc/posix-functions/vsnprintf.texi: Likewise.
1654         * doc/posix-functions/vsprintf.texi: Likewise.
1655         * doc/glibc-functions/asprintf.texi: Likewise.
1656         * doc/glibc-functions/obstack_printf.texi: Likewise.
1657         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1658         * doc/glibc-functions/vasprintf.texi: Likewise.
1659
1660 2011-09-10  Bruno Haible  <bruno@clisp.org>
1661
1662         nocrash: Add support for native Windows.
1663         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1664
1665 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1666             Bruno Haible  <bruno@clisp.org>
1667
1668         absolute-header, include-next: Add support for MSVC compiler.
1669         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1670         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1671         directory separator in #line directives.
1672         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1673         recognize also backslash as directory separator in #line directives.
1674
1675 2011-09-08  Jim Meyering  <meyering@redhat.com>
1676
1677         maint.mk: mark the post-release commit log with "maint: " prefix
1678         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1679         one-line commit-log summary.
1680
1681 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1682             Bruno Haible  <bruno@clisp.org>
1683
1684         Doc about crypt functions.
1685         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1686         systems.
1687         * doc/posix-functions/encrypt.texi: Likewise.
1688         * doc/posix-functions/setkey.texi: Likewise.
1689
1690 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1691
1692         * lib/gc.h: Fix copyright header.
1693
1694 2011-09-07  Bruno Haible  <bruno@clisp.org>
1695
1696         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1697         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1698         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1699
1700 2011-09-07  Bruno Haible  <bruno@clisp.org>
1701
1702         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1703         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1704         * lib/freopen.c: Likewise.
1705         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1706         * lib/lstat.c: Likewise.
1707         * lib/stat.c: Likewise.
1708         * lib/open.c: Use different syntax for include of <fcntl.h>.
1709         * lib/openat.c: Include fcntl.h again, explicitly.
1710
1711 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1712
1713         parse-datetime: document the newly accepted format
1714         * doc/parse-datetime.texi (Combined date and time of day items):
1715         New section.
1716
1717 2011-09-06  Bruno Haible  <bruno@clisp.org>
1718
1719         acl: Fix a test failure on newer Solaris 10 with ZFS.
1720         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1721         ENOSYS as no ACL.
1722         Reported by Jim Meyering.
1723
1724 2011-09-06  Bruno Haible  <bruno@clisp.org>
1725
1726         acl: Update for AIX >= 5.3 with NFS.
1727         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1728         ENOSYS as no ACL.
1729
1730         acl: Fix a test failure on AIX >= 5.3 with NFS.
1731         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1732         as no ACL.
1733
1734 2011-09-06  Bruno Haible  <bruno@clisp.org>
1735
1736         acl: Fix a test failure on IRIX 6.5 with NFS.
1737         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1738         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1739         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1740         * lib/copy-acl.c (qcopy_acl): Likewise.
1741
1742 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1743
1744         openat: port to AIX 7.1 with large files
1745         AIX 7.1 does a "#define openat open64at" if large files are in use,
1746         so we can't simply #undef openat.  Use the orig_openat trick (similar
1747         to orig_open in lib/open.c) to work around the problem.  Problem
1748         reported by Kevin Brott for GNU tar, in the thread containing
1749         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1750         * lib/openat.c (__need_system_fcntl_h): Define first.
1751         Include <fcntl.h> and <sys/types.h> before undefining.
1752         (orig_openat) [HAVE_OPENAT]: New inline function.
1753         (openat) [HAVE_OPENAT]: Do not undef.
1754         (rpl_openat): Use orig_openat, not openat.
1755
1756 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1757             Bruno Haible  <bruno@clisp.org>
1758
1759         acl: Avoid errors on NonStop Kernel.
1760         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1761         ENOTSUP errors.
1762
1763 2011-09-05  Bruno Haible  <bruno@clisp.org>
1764
1765         acl: Clean up Solaris code.
1766         * lib/acl-internal.h: Remove no-op #if.
1767         * lib/file-has-acl.c: Likewise.
1768         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1769         * lib/copy-acl.c (qcopy_acl): Likewise.
1770
1771 2011-09-05  Bruno Haible  <bruno@clisp.org>
1772
1773         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1774         binaries built on the original Solaris 10.
1775         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1776         trivial.
1777
1778 2011-09-05  Bruno Haible  <bruno@clisp.org>
1779
1780         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1781         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1782         10.
1783         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1784         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1785         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1786         instead of acl_get, facl_get, acl_set, facl_set.
1787
1788 2011-09-05  Bruno Haible  <bruno@clisp.org>
1789
1790         copy-file: Try unit tests on more file systems.
1791         * tests/test-copy-file-1.sh: New file.
1792         * tests/test-copy-file-2.sh: New file.
1793         * modules/copy-file-tests (Files): Add them.
1794         (Makefile.am): Add them to TESTS.
1795
1796         acl: Try unit tests on more file systems.
1797         * tests/test-file-has-acl-1.sh: New file.
1798         * tests/test-file-has-acl-2.sh: New file.
1799         * tests/test-set-mode-acl-1.sh: New file.
1800         * tests/test-set-mode-acl-2.sh: New file.
1801         * tests/test-copy-acl-1.sh: New file.
1802         * tests/test-copy-acl-2.sh: New file.
1803         * modules/acl-tests (Files): Add them.
1804         (Makefile.am): Add them to TESTS.
1805
1806 2011-09-04  Bruno Haible  <bruno@clisp.org>
1807
1808         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1809         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1810         10.
1811         (OLD_ALLOW, OLD_DENY): New macros.
1812         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1813         ACE_ACCESS_ALLOWED_ACE_TYPE.
1814         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1815         ACE_ACCESS_DENIED_ACE_TYPE.
1816         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1817         (NEW_ACE_EXECUTE): Fix value.
1818         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1819         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1820         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1821         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1822         NEW_ACE_SYNCHRONIZE): New macros.
1823         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1824         instead of acl_fromtext, acl_set, facl_set.
1825         Fixes a coreutils/tests/cp/perm failure.
1826
1827 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1828
1829         openat: test for fstatat (..., 0) bug
1830         Further testing with tar suggests that fstatat (..., 0)
1831         does not work in general, on AIX 7.1; see
1832         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1833         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1834         replacement fstatat (which is what older AIX releases were using
1835         anyway).
1836         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1837         use is now changed to orig_fstatat.  This was probably the right
1838         thing to do anyway.
1839         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1840         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1841         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1842         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1843         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1844         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1845         if the bug is found.
1846
1847         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1848         This tests for another fstatat bug on AIX 7.1:
1849         fstatat (AT_FDCWD, ..., 0) does not work.  See
1850         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1851         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1852         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1853         (rpl_fstatat): Adjust so that it works around either (or both)
1854         bugs if present.
1855         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1856
1857 2011-09-03  Karl Berry  <karl@gnu.org>
1858
1859         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1860         in index entries.
1861
1862 2011-09-02  Bruno Haible  <bruno@clisp.org>
1863
1864         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1865         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1866         values of AR, ARFLAGS, RANLIB.
1867         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1868
1869 2011-09-02  Bruno Haible  <bruno@clisp.org>
1870
1871         Find 'ar' program that fits with --host argument.
1872         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1873
1874 2011-09-02  Bruno Haible  <bruno@clisp.org>
1875
1876         tests: init.sh: Support any non-GNU diff.
1877         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1878         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1879         Solaris 8.
1880
1881 2011-09-02  Bruno Haible  <bruno@clisp.org>
1882
1883         tests: init.sh: work also with any non-GNU diff that supports -u
1884         * tests/init.sh: Relax check for diff -u support.
1885         Rather than checking for GNU diff via --version, simply check
1886         for support for -u itself.  Useful at least on OpenBSD 4.9,
1887         AIX 7.1, IRIX 6.5, and Solaris 10.
1888
1889 2011-09-01  Bruno Haible  <bruno@clisp.org>
1890
1891         strtoimax, strtoumax: Document problem on HP-UX 11.
1892         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1893         * doc/posix-functions/strtoumax.texi: Likewise.
1894
1895 2011-09-01  Bruno Haible  <bruno@clisp.org>
1896
1897         strtoumax: Avoid link error on OSF/1 with DTK cc.
1898         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1899         defined as a function.
1900         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1901         strtoumax is defined, not whether it is declared.
1902
1903 2011-09-01  Bruno Haible  <bruno@clisp.org>
1904
1905         strtoimax: Avoid link error on OSF/1 with DTK cc.
1906         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1907         defined as a function.
1908         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1909         strtoimax is defined, not whether it is declared.
1910
1911 2011-09-01  Bruno Haible  <bruno@clisp.org>
1912
1913         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1914         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1915         as a function.
1916         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1917         whether it is declared.
1918
1919 2011-09-01  Bruno Haible  <bruno@clisp.org>
1920
1921         imaxabs: Avoid link error on OSF/1 with DTK cc.
1922         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1923         as a function.
1924         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1925         whether it is declared.
1926
1927 2011-09-01  Bruno Haible  <bruno@clisp.org>
1928
1929         Tests for module 'strtoumax'.
1930         * modules/strtoumax-tests: New file.
1931         * tests/test-strtoumax.c: New file.
1932
1933         Tests for module 'strtoimax'.
1934         * modules/strtoimax-tests: New file.
1935         * tests/test-strtoimax.c: New file.
1936
1937         Tests for module 'imaxdiv'.
1938         * modules/imaxdiv-tests: New file.
1939         * tests/test-imaxdiv.c: New file.
1940
1941         Tests for module 'imaxabs'.
1942         * modules/imaxabs-tests: New file.
1943         * tests/test-imaxabs.c: New file.
1944
1945 2011-09-01  Bruno Haible  <bruno@clisp.org>
1946
1947         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1948         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1949         pthread_create.
1950
1951 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1952
1953         openat: work around AIX 7.1 fstatat issue
1954         This should fix the problem that was not properly fixed
1955         in the previous change, dated 2011-08-30.
1956         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1957         __need_system_stat_h defined.
1958         (orig_fstatat) [HAVE_FSTATAT]: New function.
1959         (rpl_fstatat): Go back to the old way of doing things,
1960         except call orig_fstatat instead of fstatat.
1961         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1962         Remove unnecessary check whether fstatat fills in st_size etc.
1963
1964 2011-09-01  Bruno Haible  <bruno@clisp.org>
1965
1966         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1967         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1968         just include the system's header.
1969
1970 2011-08-31  Jim Meyering  <meyering@redhat.com>
1971
1972         tests: avoid spurious assertion failure in test-float.c on ppc64
1973         * tests/test-float.c (test_long_double): Comment out an assertion,
1974         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1975         with gcc-4.4.4.
1976
1977         maint: indent with spaces, not TABs
1978         I need to get in the habit of running gnulib's "make check".
1979         Both of these would have been caught.
1980         * m4/largefile.m4: Indent with spaces, not TABs.
1981         * lib/parse-datetime.y (iso_8601_time): Likewise.
1982         Spotted by Pádraig Brady.
1983
1984         test-parse-datetime.c: accommodate a relatively strict gcc warning
1985         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1986         to avoid a warning from gcc's -Werror=missing-declarations.
1987         Insert a few spaces-before-funcall-parenthesis.
1988
1989 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1990
1991         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1992         The parser now accepts ISO 8601 date-time strings with "T" as the
1993         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1994         with a space between the date and time strings.  Now it also parses
1995         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1996         variants like "2004-02-29T16:21:42.333-07:00"
1997         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1998         of day representation using the 'T' separator character.
1999         * doc/parse-datetime.texi (General date syntax): replace use of
2000         deprecated --iso-8601 option with --rfc-3339 in example of date
2001         command output formats that can be parsed.
2002         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2003         lib/parse-datetime.y.
2004         (gmt_offset): New function.
2005         (main): Add additional test cases to validate ISO8601 extended
2006         date and time of day parsing.
2007
2008 2011-08-31  Bruno Haible  <bruno@clisp.org>
2009
2010         freopen: Documentation.
2011         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2012         name.
2013         Reported by Claudio Bley <claudio.bley@gmail.com>.
2014
2015 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2016
2017         freopen: Don't crash if the filename argument is NULL.
2018         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2019         NULL.
2020
2021 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2022
2023         openat: work around AIX 7.1 fstatat bug
2024         Problem reported by Kevin Brott for GNU tar, in the thread containing
2025         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2026         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2027         FSTATAT_ST_SIZE_ETC_BROKEN.
2028         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2029         rpl_fstatat.
2030         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2031         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2032         AC_CHECK_FUNCS_ONCE for fstatat.
2033         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2034         fchmodat, mkdirat, openat and unlinkat.
2035
2036 2011-08-30  Bruno Haible  <bruno@clisp.org>
2037
2038         Avoid endless recursions if config.h includes some header files.
2039         * lib/fopen.c (__need_FILE): Define already before including config.h.
2040         * lib/freopen.c (__need_FILE): Likewise.
2041         * lib/open.c (__need_system_fcntl_h): Likewise.
2042         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2043         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2044         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2045
2046 2011-08-25  Karl Berry  <karl@gnu.org>
2047
2048         * config/srclist.txt (ylwrap): new try.
2049         * build-aux/ylwrap: new file.
2050
2051 2011-08-23  Bruno Haible  <bruno@clisp.org>
2052
2053         tmpdir: Use a good default directory on native Windows.
2054         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2055         (P_tmpdir): Default to _P_tmpdir on native Windows.
2056         (path_search): On native Windows, try the value returned by GetTempPath
2057         before trying P_tmpdir.
2058         * modules/tmpdir (Depends-on): Add pathmax.
2059         Suggested by John Darrington <john@darrington.wattle.id.au>.
2060
2061 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2062
2063         doc: fix typo in README-release
2064         * top/README-release: Capitalize first word of a sentence.
2065
2066 2011-08-19  Jim Meyering  <meyering@redhat.com>
2067
2068         fts: do not exhaust memory when processing million-entry directories
2069         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2070         directory would require about 256*N bytes of memory.  Thus, it was
2071         easy to construct a directory too large to be processed by any of
2072         those tools.  With this change, fts' maximum memory utilization is
2073         now limited to around 30MB.
2074         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2075         (fts_read): When we've processed the final entry (i.e., when
2076         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2077         using the parent entry to read any remaining entries.  Dispatch
2078         depending on what fts_build returns:
2079         - NULL+stop, aka failure: stop
2080         - NULL otherwise: move up in the dir hierarchy
2081         - non-NULL: handle this new entry
2082         (fts_build): Declare and use new local, continue_readdir.
2083         Prepare to be called from fts_read, when the entries
2084         from a partially-read directory have just been exhausted.
2085         In that case, we'll skip the opendir and instead use the parent's
2086         fts_dirp and derive dir_fd from that.
2087         Finally, in the readdir loop, if we read max_entries entries,
2088         exit the loop ensuring *not* to call closedir.  This is required
2089         so that fts_dirp can be reused on a subsequent call.
2090         Prompted by Ben England's report of memory exhaustion in find
2091         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2092
2093         maint: fts: move decl of `dp' down into while loop; split a long line
2094         * lib/fts.c (fts_build): No semantic change.
2095
2096         fts: add/use new struct member, fts_dirp
2097         We are about to use this to manage any directory with
2098         too many entries to read all of them into memory at once.
2099         To do that, we'll need to save the DIR* pointer in each
2100         affected FTSENT struct.
2101         * lib/fts_.h: Include <dirent.h>.
2102         (struct FTSENT) [fts_dirp]: New member.
2103         * lib/fts.c (closedir_and_clear): Define.
2104         Use it in place of closedir so that we are sure to
2105         clear the new fts_dirp member when done with it.
2106         (fts_alloc): Initialize the new member.
2107         (fts_lfree): Free, if needed.
2108
2109         maint: fts: give __opendir2 a new parameter and rename
2110         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2111         than surreptitiously using sole caller's "dir_fd".
2112         (fts_opendir): Rename from __opendir2.
2113
2114         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2115         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2116
2117         maint: fts.c: correct off-by-one indentation
2118         * lib/fts.c (fts_build): Correct indentation, change style
2119         of a couple of block comments, and bracing style.
2120
2121         maint: fts.c: move __opendir2 #define "up" out of function body
2122         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2123
2124         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2125         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2126         out for a long time and besides was useful only on BSD systems.
2127
2128 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2129
2130         regex: port to Stratus OpenVOS
2131         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2132         define to empty, rather than attempting nonportable optimizations.
2133         Problem reported by Paul Green in:
2134         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2135         and fix suggested by Eric Blake in:
2136         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2137
2138 2011-08-17  Eric Blake  <eblake@redhat.com>
2139
2140         getcwd: fix test failures on mingw
2141         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2142         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2143         test if long directory cannot be created, and allow mingw errno.
2144
2145         getcwd-lgpl: fix m4 to match relaxed test for BSD
2146         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2147         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2148         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2149         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2150         signature problem.
2151
2152         getcwd: fix compilation on mingw64
2153         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2154         getcwd.
2155         Reported by Marc-André Lureau.
2156
2157         pipe2: silence compiler warning
2158         * lib/pipe2.c (pipe2): Hide label if it is not used.
2159
2160 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2161
2162         relocatable-prog: fix link error
2163         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2164         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2165         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2166         into modules/relocatable-lib without noticing that
2167         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2168         also needs to build relocatable.c.
2169
2170 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2171
2172         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2173         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2174         shell code: it contained a 'break' that was not in a loop.
2175         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2176         via a shell-language loop; this may have been true in old Autoconf
2177         versions, but it's not true in Autoconf 2.68.  I found this bug
2178         when testing coreutils git on Solaris 8, whose shell complains
2179         about the syntax error.
2180
2181 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2182
2183         * lib/base64.c: Fix comment to reference RFC 4648.
2184         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2185         <gvtulder@gmail.com>.
2186
2187 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2188
2189         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2190
2191         po/Makefile.in.in: fix make -q problem
2192         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2193         rule, since there's no file named 'check-macro-version' and its
2194         use as a file breaks make -q.
2195         (all): Don't depend on check-macro-version.
2196         (CHECK_MACRO_VERSION): New macro.
2197         (stamp-po): Use it.
2198
2199         configmake: fix make -q problem
2200         * modules/configmake (configmake.h): Update configmake.h's time stamp
2201         even if the file does not change.  Otherwise, 'make -q' fails.
2202         Problem reported by Simon Josefsson in
2203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2204
2205 2011-08-11  Jim Meyering  <meyering@redhat.com>
2206
2207         git-version-gen: correct the advice in a comment
2208         * build-aux/git-version-gen: Correct comment.
2209         Don't recommend to list .tarball-version in .gitignore.
2210
2211 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2212
2213         base64: fix off-by-one buffer size bug
2214         Problem and (trivial) fix reported by Gijs van Tulder in
2215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2216         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2217         * tests/test-base64.c (main): Catch the bug.
2218
2219 2011-08-10  Eric Blake  <eblake@redhat.com>
2220
2221         closein: correct comments
2222         * lib/closein.c (close_stdin): Improve comments.
2223
2224 2011-08-09  Bruno Haible  <bruno@clisp.org>
2225
2226         More tests for 'fseeko'.
2227         * tests/test-fseeko3.c: New file, from Eric Blake.
2228         * tests/test-fseeko3.sh: New file.
2229         * modules/fseeko-tests (Files): Add them.
2230         (TESTS): Add test-fseeko3.sh.
2231         (check_PROGRAMS): Add test-fseeko3.
2232
2233 2011-08-09  Eric Blake  <eblake@redhat.com>
2234
2235         fseeko: remove unneeded hack
2236         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2237
2238         fseeko: fix bug on glibc
2239         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2240         Reported by John W. Eaton.
2241
2242 2011-08-08  Bruno Haible  <bruno@clisp.org>
2243
2244         unictype/base: Fix interoperability with preinstalled libunistring.
2245         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2246         Reported by Simon Josefsson.
2247
2248 2011-08-08  Bruno Haible  <bruno@clisp.org>
2249
2250         iswblank: Detect declaration correctly.
2251         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2252         AC_CHECK_DECLS invocation.
2253
2254 2011-08-08  Bruno Haible  <bruno@clisp.org>
2255
2256         tcgetsid: Detect declaration correctly.
2257         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2258         AC_CHECK_DECLS invocation.
2259         Reported by Simon Josefsson.
2260
2261 2011-08-08  Eric Blake  <eblake@redhat.com>
2262
2263         largefile: fix typo that regressed large file support
2264         * modules/largefile (configure.ac-early): Fix section name.
2265
2266 2011-08-06  Karl Berry  <karl@gnu.org>
2267
2268         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2269         a separate module.
2270
2271 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2272
2273         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2274         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2275         get prototype for free.
2276
2277 2011-08-04  Bruno Haible  <bruno@clisp.org>
2278
2279         Tests for module 'pathmax'.
2280         * modules/pathmax-tests: New file.
2281         * tests/test-pathmax.c: New file.
2282
2283         canonicalize-lgpl: Support larger filenames on the Hurd.
2284         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2285         Reported by Paul Eggert.
2286
2287         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2288         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2289         * lib/chdir-long.h: Include pathmax.h.
2290         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2291         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2292         (PATH_MAX): Remove code that is done by pathmax.h.
2293         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2294         * lib/tmpfile.c: Add a comment.
2295         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2296         * modules/chdir-long (Depends-on): Add pathmax.
2297         * modules/getcwd (Depends-on): Add pathmax.
2298         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2299         is not defined.
2300         * doc/posix-headers/limits.texi: Mention the pathmax module.
2301         * NEWS: Mention the change.
2302
2303 2011-08-02  Bruno Haible  <bruno@clisp.org>
2304
2305         pthread_sigmask: Actually use results of gl_THREADLIB.
2306         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2307         gl_THREADLIB, not gl_[]THREADLIB.
2308         Reported by Eric Blake.
2309
2310 2011-08-02  Jim Meyering  <meyering@redhat.com>
2311
2312         maint.mk: relax the default _gl_TS_function_match regexp
2313         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2314         space between function name and "(" in an "extern" declaration.
2315         That would fail to match a decl with no space there: extern void foo();
2316
2317 2011-07-31  Iain Nicol  <iain@thenicols.net>
2318
2319         git-version-gen: document that EXTRA_DIST must include .version
2320         * build-aux/git-version-gen: In the how-to-use comment, document
2321         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2322         will fail when run from an unpacked distribution tarball.
2323
2324 2011-08-01  Bruno Haible  <bruno@clisp.org>
2325
2326         wctype-h: Fix last change.
2327         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2328         REPLACE_TOWLOWER to 0.
2329         Reported by Sam Steingold <sds@gnu.org>.
2330
2331 2011-07-31  Bruno Haible  <bruno@clisp.org>
2332
2333         frexpl: Update autoconf test.
2334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2335         according to changes of 2011-06-20.
2336
2337 2011-07-31  Bruno Haible  <bruno@clisp.org>
2338
2339         sys_utsname: Add support for Minix.
2340         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2341         <sys/utsname.h>.
2342         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2343         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2344
2345 2011-07-31  Bruno Haible  <bruno@clisp.org>
2346
2347         strings: Add support for Minix.
2348         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2349         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2350         * doc/posix-headers/strings.texi: Document the Minix problem.
2351
2352 2011-07-31  Bruno Haible  <bruno@clisp.org>
2353
2354         wctype-h: Add support for Minix.
2355         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2356         REPLACE_TOWLOWER.
2357         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2358         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2359         REPLACE_ISWCNTRL.
2360
2361 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2362
2363         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2364         This is a performance improvement for 64-bit hosts: it causes the
2365         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2366
2367 2011-07-31  Bruno Haible  <bruno@clisp.org>
2368
2369         stdioext: Add support for Minix.
2370         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2371         * lib/fpurge.c (fpurge): Likewise.
2372         * lib/freadahead.c (freadahead): Likewise.
2373         * lib/freadable.c (freadable): Likewise.
2374         * lib/freading.c (freading): Likewise.
2375         * lib/freadptr.c (freadptr): Likewise.
2376         * lib/freadseek.c (freadptrinc): Likewise.
2377         * lib/fseeko.c (rpl_fseeko): Likewise.
2378         * lib/fseterr.c (fseterr): Likewise.
2379         * lib/fwritable.c (fwritable): Likewise.
2380         * lib/fwriting.c (fwriting): Likewise.
2381         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2382         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2383
2384 2011-07-31  Bruno Haible  <bruno@clisp.org>
2385
2386         errno: Port to Minix.
2387         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2388         ECONNABORTED are defined.
2389         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2390         GNULIB_defined_ECONNABORTED): New macros.
2391         * lib/strerror-override.h (strerror_override): Test also
2392         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2393         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2394         ECONNABORTED.
2395         * doc/posix-headers/errno.texi: Mention the Minix problem.
2396
2397 2011-07-31  Bruno Haible  <bruno@clisp.org>
2398
2399         Work around declaration collisions on Minix.
2400         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2401         defined, set REPLACE_MBSINIT.
2402         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2403         defined, set REPLACE_MBRTOWC.
2404         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2405         set REPLACE_MBRLEN.
2406         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2407         defined, set REPLACE_MBSRTOWCS.
2408         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2409         defined, set REPLACE_WCRTOMB.
2410         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2411         defined, set REPLACE_WCSRTOMBS.
2412
2413 2011-07-31  Bruno Haible  <bruno@clisp.org>
2414
2415         Add support for Minix with ACK compiler.
2416         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2417         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2418         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2419
2420 2011-07-31  Bruno Haible  <bruno@clisp.org>
2421
2422         Documentation about Minix.
2423         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2424         * doc/glibc-headers/*.texi: Likewise.
2425         * doc/posix-functions/*.texi: Likewise.
2426         * doc/glibc-functions/*.texi: Likewise.
2427
2428 2011-07-31  Bruno Haible  <bruno@clisp.org>
2429
2430         snippet/warn-on-use: Fix indentation.
2431         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2432
2433 2011-07-25  Jim Meyering  <meyering@redhat.com>
2434
2435         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2436         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2437         commands.
2438
2439 2011-07-27  Jim Meyering  <meyering@redhat.com>
2440
2441         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2442         * top/maint.mk (gl_extract_significant_defines_): Now that
2443         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2444         gnulib/lib/signal.in.h, and now that we recommend to
2445         define-if-undefined those two symbols in application code,
2446         we must filter them out of the "significant" list.
2447         This avoids a "make syntax-check" failure in coreutils.
2448
2449 2011-07-26  Eric Blake  <eblake@redhat.com>
2450
2451         warnings: add comments about previous patch
2452         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2453         * m4/include_next.m4: Likewise.
2454         * m4/warn-on-use.m4: Likewise.
2455         * m4/warnings.m4: Likewise, and simplify use.
2456         Suggested by Stefano Lattarini.
2457
2458         include-next, warnings: support older autoconf
2459         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2460         AS_VAR_PUSHDEF in a way that works with older autoconf.
2461         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2462         Reported by Daniel P. Berrange.
2463
2464 2011-07-25  Bruno Haible  <bruno@clisp.org>
2465
2466         fseek, ftell: Fix doc.
2467         * doc/posix-functions/fseek.texi: Reword statement about
2468         AC_SYS_LARGEFILE.
2469         * doc/posix-functions/ftell.texi: Likewise.
2470
2471 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2472             Bruno Haible  <bruno@clisp.org>
2473
2474         Add dependencies to the 'largefile' module.
2475         * modules/fopen (Depends-on): Add 'largefile'.
2476         * modules/freopen (Depends-on): Likewise.
2477         * modules/fseeko (Depends-on): Likewise.
2478         * modules/ftello (Depends-on): Likewise.
2479         * modules/glob (Depends-on): Likewise.
2480         * modules/lseek (Depends-on): Likewise.
2481         * modules/lstat (Depends-on): Likewise.
2482         * modules/mkostemp (Depends-on): Likewise.
2483         * modules/mkostemps (Depends-on): Likewise.
2484         * modules/mkstemp (Depends-on): Likewise.
2485         * modules/mkstemps (Depends-on): Likewise.
2486         * modules/open (Depends-on): Likewise.
2487         * modules/openat (Depends-on): Likewise.
2488         * modules/pread (Depends-on): Likewise.
2489         * modules/pwrite (Depends-on): Likewise.
2490         * modules/scandir (Depends-on): Likewise.
2491         * modules/stat (Depends-on): Likewise.
2492         * modules/tmpfile (Depends-on): Likewise.
2493         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2494         since the containing module now depends on the largefile module.
2495         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2496         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2497         off_t is fixed by gnulib.
2498         * doc/posix-functions/freopen.texi: Likewise.
2499         * doc/posix-functions/fseeko.texi: Likewise.
2500         * doc/posix-functions/fstatat.texi: Likewise.
2501         * doc/posix-functions/ftello.texi: Likewise.
2502         * doc/posix-functions/glob.texi: Likewise.
2503         * doc/posix-functions/lseek.texi: Likewise.
2504         * doc/posix-functions/lstat.texi: Likewise.
2505         * doc/posix-functions/mkstemp.texi: Likewise.
2506         * doc/posix-functions/open.texi: Likewise.
2507         * doc/posix-functions/openat.texi: Likewise.
2508         * doc/posix-functions/pread.texi: Likewise.
2509         * doc/posix-functions/pwrite.texi: Likewise.
2510         * doc/posix-functions/scandir.texi: Likewise.
2511         * doc/posix-functions/stat.texi: Likewise.
2512         * doc/posix-functions/tmpfile.texi: Likewise.
2513         * doc/glibc-functions/mkostemp.texi: Likewise.
2514         * doc/glibc-functions/mkostemps.texi: Likewise.
2515         * doc/glibc-functions/mkstemps.texi: Likewise.
2516
2517 2011-07-25  Bruno Haible  <bruno@clisp.org>
2518
2519         fcntl: Move AC_LIBOBJ invocation to module description.
2520         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2521         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2522
2523         fcntl: Remove call-in from fchdir.m4.
2524         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2526
2527         dup3: Remove potential call-in from fchdir.m4.
2528         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2530
2531         dup2: Move AC_LIBOBJ invocation to module description.
2532         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2533         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2534         Don't invoke AC_LIBOBJ.
2535         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2536
2537         dup2: Remove call-in from fchdir.m4.
2538         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2540
2541         fclose: Move AC_LIBOBJ invocation to module description.
2542         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2543         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2544         to 1.
2545         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2546
2547         fclose: Remove call-in from close.m4.
2548         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2549         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2550
2551         close: Move AC_LIBOBJ invocation to module description.
2552         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2553         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2554         1.
2555         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2556
2557         close: Remove call-in from fchdir.m4.
2558         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2559         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2560
2561         open: Move AC_LIBOBJ invocation to module description.
2562         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2563         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2564         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2565
2566         open: Remove call-in from fchdir.m4.
2567         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2569
2570         fchdir: Start to remove gl_REPLACE_* idiom.
2571         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2572         (gl_FUNC_FCHDIR): Invoke it.
2573
2574 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2575
2576         * lib/ftell.c (ftell): Comment out cast.
2577
2578         close: use gl_REPLACE_FCLOSE only if defined
2579         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2580         is defined.  The close module doesn't depend on the fclose module
2581         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2583         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2584
2585 2011-07-24  Jim Meyering  <meyering@redhat.com>
2586
2587         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2588         * tests/test-select.h (test_function): Declare as "static".
2589
2590 2011-07-24  Bruno Haible  <bruno@clisp.org>
2591
2592         doc: Mention the effects of AC_SYS_LARGEFILE.
2593         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2594         on this function.
2595         * doc/posix-functions/aio_error.texi: Likewise.
2596         * doc/posix-functions/aio_fsync.texi: Likewise.
2597         * doc/posix-functions/aio_read.texi: Likewise.
2598         * doc/posix-functions/aio_return.texi: Likewise.
2599         * doc/posix-functions/aio_suspend.texi: Likewise.
2600         * doc/posix-functions/aio_write.texi: Likewise.
2601         * doc/posix-functions/fgetpos.texi: Likewise.
2602         * doc/posix-functions/fopen.texi: Likewise.
2603         * doc/posix-functions/freopen.texi: Likewise.
2604         * doc/posix-functions/fsetpos.texi: Likewise.
2605         * doc/posix-functions/fstatvfs.texi: Likewise.
2606         * doc/posix-functions/ftruncate.texi: Likewise.
2607         * doc/posix-functions/ftw.texi: Likewise.
2608         * doc/posix-functions/getrlimit.texi: Likewise.
2609         * doc/posix-functions/glob.texi: Likewise.
2610         * doc/posix-functions/lio_listio.texi: Likewise.
2611         * doc/posix-functions/lockf.texi: Likewise.
2612         * doc/posix-functions/mkstemp.texi: Likewise.
2613         * doc/posix-functions/mmap.texi: Likewise.
2614         * doc/posix-functions/nftw.texi: Likewise.
2615         * doc/posix-functions/openat.texi: Likewise.
2616         * doc/posix-functions/opendir.texi: Likewise.
2617         * doc/posix-functions/posix_fadvise.texi: Likewise.
2618         * doc/posix-functions/posix_fallocate.texi: Likewise.
2619         * doc/posix-functions/pread.texi: Likewise.
2620         * doc/posix-functions/pwrite.texi: Likewise.
2621         * doc/posix-functions/readdir.texi: Likewise.
2622         * doc/posix-functions/readdir_r.texi: Likewise.
2623         * doc/posix-functions/rewinddir.texi: Likewise.
2624         * doc/posix-functions/scandir.texi: Likewise.
2625         * doc/posix-functions/seekdir.texi: Likewise.
2626         * doc/posix-functions/setrlimit.texi: Likewise.
2627         * doc/posix-functions/statvfs.texi: Likewise.
2628         * doc/posix-functions/telldir.texi: Likewise.
2629         * doc/posix-functions/tmpfile.texi: Likewise.
2630         * doc/posix-functions/truncate.texi: Likewise.
2631         * doc/glibc-functions/fallocate.texi: Likewise.
2632         * doc/glibc-functions/fstatfs.texi: Likewise.
2633         * doc/glibc-functions/fts_children.texi: Likewise.
2634         * doc/glibc-functions/fts_read.texi: Likewise.
2635         * doc/glibc-functions/getdirentries.texi: Likewise.
2636         * doc/glibc-functions/mkostemp.texi: Likewise.
2637         * doc/glibc-functions/mkostemps.texi: Likewise.
2638         * doc/glibc-functions/mkstemps.texi: Likewise.
2639         * doc/glibc-functions/preadv.texi: Likewise.
2640         * doc/glibc-functions/pwritev.texi: Likewise.
2641         * doc/glibc-functions/sendfile.texi: Likewise.
2642         * doc/glibc-functions/statfs.texi: Likewise.
2643
2644 2011-07-24  Bruno Haible  <bruno@clisp.org>
2645
2646         doc: Fix typo.
2647         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2648
2649 2011-07-24  Bruno Haible  <bruno@clisp.org>
2650
2651         doc: Mention fsusage.
2652         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2653
2654 2011-07-24  Bruno Haible  <bruno@clisp.org>
2655
2656         doc: Mention new glibc headers and functions.
2657         * doc/glibc-headers/gshadow.texi: New file.
2658         * doc/glibc-functions/endsgent.texi: New file.
2659         * doc/glibc-functions/fgetsgent.texi: New file.
2660         * doc/glibc-functions/fgetsgent_r.texi: New file.
2661         * doc/glibc-functions/getsgent.texi: New file.
2662         * doc/glibc-functions/getsgent_r.texi: New file.
2663         * doc/glibc-functions/getsgnam.texi: New file.
2664         * doc/glibc-functions/getsgnam_r.texi: New file.
2665         * doc/glibc-functions/putsgent.texi: New file.
2666         * doc/glibc-functions/setsgent.texi: New file.
2667         * doc/glibc-functions/sgetsgent.texi: New file.
2668         * doc/glibc-functions/sgetsgent_r.texi: New file.
2669         * doc/glibc-functions/malloc_info.texi: New file.
2670         * doc/glibc-functions/preadv.texi: New file.
2671         * doc/glibc-functions/pwritev.texi: New file.
2672         * doc/glibc-functions/register_printf_modifier.texi: New file.
2673         * doc/glibc-functions/register_printf_specifier.texi: New file.
2674         * doc/glibc-functions/register_printf_type.texi: New file.
2675         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2676         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2677         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2678         * doc/glibc-functions/pthread_getname_np.texi: New file.
2679         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2680         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2681         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2682         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2683         * doc/glibc-functions/pthread_setname_np.texi: New file.
2684         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2685         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2686         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2687         * doc/glibc-functions/qsort_r.texi: New file.
2688         * doc/glibc-functions/quick_exit.texi: New file.
2689         * doc/glibc-functions/syncfs.texi: New file.
2690         * doc/gnulib.texi: Include them.
2691         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2692         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2693         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2694         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2695         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2696         * doc/glibc-functions/execvpe.texi: Likewise.
2697
2698 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2699
2700         ftell: don't include <unistd.h>
2701         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2702         guaranteed to define off_t, and the ftell module depends on the
2703         stdio module.
2704
2705         ftell: do not assume wraparound signed arithmetic
2706         * lib/ftell.c: Include <limits.h>.
2707         (ftell): Don't assume wraparound signed arithmetic.
2708
2709 2011-07-24  Bruno Haible  <bruno@clisp.org>
2710
2711         close: No longer depend on module 'fclose'.
2712         * modules/close (Depends-on): Remove fclose.
2713         * NEWS: Mention the change.
2714         Suggested by Sam Steingold <sds@gnu.org>.
2715
2716 2011-07-24  Bruno Haible  <bruno@clisp.org>
2717
2718         fsusage: Enable large volume support on AIX >= 5.2.
2719         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2720         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2721         instead of STAT_STATVFS.
2722         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2723
2724         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2726         f_blocks field only on MacOS X.
2727
2728         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2729         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2730         * modules/fsusage (Depends-on): Add largefile.
2731
2732 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2733
2734         * README: Modernize discussion of signed integers.
2735         Assuming overflow wraparound is no longer safe.
2736         Mention ones' complement and signed magnitude.
2737
2738 2011-07-22  Bruno Haible  <bruno@clisp.org>
2739
2740         select tests, pselect tests: Refactor.
2741         * tests/test-select.h: New file, extracted from tests/test-select.c.
2742         (select_fn): New type.
2743         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2744         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2745         test_pipe): Add my_select argument.
2746         (test_function): Renamed from main. Add my_select argument.
2747         * tests/test-select.c: Move most code to tests/test-select.h. Include
2748         test-select.h.
2749         * modules/select-tests (Files): Add tests/test-select.h.
2750         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2751         (my_select, main): New functions.
2752         * modules/pselect-tests (Files): Add tests/test-select.h,
2753         tests/macros.h, tests/signature.h.
2754         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2755         (configure.ac): Check for <sys/wait.h>.
2756
2757 2011-07-22  Bruno Haible  <bruno@clisp.org>
2758
2759         sys_select tests: Check the signature of FD_*.
2760         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2761         signature tests from here...
2762         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2763         here.
2764         * modules/sys_select-tests (Files): Add tests/signature.h.
2765
2766 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2767
2768         largefile: new module, replacing large-inode
2769         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2770         * MODULES.html.sh: Add largefile, remove large-inode.
2771         * modules/largefile, m4/largefile.m4: New files.
2772         * modules/large-inode, m4/large-inode.m4: Remove.
2773
2774         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2775         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2776         implementations that use only 32 bits to count blocks.
2777         On typical hosts with 1024-byte blocks, this fails with file
2778         systems as small as 4 TiB.  Problem reported by Herb Wartens
2779         <http://debbugs.gnu.org/9140> and this should also fix a similar
2780         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2781
2782         large-inode: New module
2783         * MODULES.html.sh: Add it.
2784         * modules/large-inode, m4/large-inode.m4: New files.
2785
2786         extensions: Enable extensions on MacOS X 10.5 and later.
2787         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2788
2789 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2790
2791         file-has-acl: use acl_extended_file_nofollow if available
2792         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2793         (acl_extended_file): New macro.
2794         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2795         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2796
2797 2011-07-21  Bruno Haible  <bruno@clisp.org>
2798
2799         Declare system functions in a way that works with C++.
2800         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2801         declare fdopendir as extern "C".
2802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2803         declare frexpl as extern "C".
2804         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2805         declare gai_strerror as extern "C".
2806         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2807         programs, declare gai_strerror as extern "C".
2808         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2809         declare getlogin_r as extern "C".
2810         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2811         as extern "C".
2812         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2813         declare ldexpl as extern "C".
2814         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2815         as extern "C".
2816         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2817         program, declare getmntinfo as extern "C".
2818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2819         stpncpy as extern "C".
2820         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2821         program, declare __xpg_strerror_r as extern "C".
2822         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2823         strndup as extern "C".
2824         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2825         declare memset and bzero as extern "C".
2826         Reported by Sam Steingold <sds@gnu.org>.
2827
2828 2011-07-12  Jim Meyering  <meyering@redhat.com>
2829
2830         maint.mk: prohibit inclusion of "verify.h" without use
2831         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2832
2833 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2834
2835         timer-time: A new module to check for timer_settime()
2836         * m4/timer_time.m4: Check for the posix function.
2837         * modules/timer-time: Add the new module.
2838         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2839         Mention it.
2840
2841 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2842             Bruno Haible  <bruno@clisp.org>
2843
2844         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2845         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2846         not defined, assume POSIX threads and look for pthread_sigmask in
2847         $LIBS, without changing $CPPFLAGS.
2848
2849 2011-07-19  Bruno Haible  <bruno@clisp.org>
2850
2851         strstr: Update cross-compilation guess.
2852         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2853         CPUs, guess no, in view of glibc
2854         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2855         Suggested by Eric Blake. Reported by Reuben Thomas.
2856
2857 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2858
2859         getopt-gnu: suppress core dumps from detection code
2860         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2861         to suppress core dumps that may well occur on glibc systems.
2862         * modules/getopt-gnu: Depend on nocrash.
2863
2864 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2865
2866         pthread_sigmask: ensure usleep is declared
2867         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2868         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2869
2870 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2871
2872         doc: Document NonStop portability issues.
2873         * doc/posix-functions/sigaction.texi (sigaction):
2874         * doc/posix-headers/signal.texi (signal.h):
2875         Document NonStop.  See Joachim Schmitz in
2876         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2877
2878 2011-07-15  Bruno Haible  <bruno@clisp.org>
2879
2880         ffsl, ffsll: Avoid unportable behaviour.
2881         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2882
2883 2011-07-15  Bruno Haible  <bruno@clisp.org>
2884
2885         ffs: More tests.
2886         * tests/test-ffs.c (NBITS): New macro.
2887         (main): Add more tests.
2888         * tests/test-ffsl.c (NBITS): New macro.
2889         (main): Add more tests.
2890         * tests/test-ffsll.c (NBITS): New macro.
2891         (main): Add more tests.
2892
2893 2011-07-15  Eric Blake  <eblake@redhat.com>
2894
2895         ffsl, ffsll: new modules
2896         * modules/ffsl: New file.
2897         * modules/ffsll: Likewise.
2898         * m4/ffsl.m4: Likewise.
2899         * m4/ffsll.m4: Likewise.
2900         * lib/ffsl.c: Likewise.
2901         * lib/ffsl.h: Likewise.
2902         * lib/ffsll.c: Likewise.
2903         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2904         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2905         * modules/string (Makefile.am): Substitute witnesses.
2906         * lib/strings.in.h (ffsl, ffsll): Declare.
2907         * modules/ffsl-tests: New test file.
2908         * modules/ffsll-tests: Likewise.
2909         * tests/test-ffsl.c: Likewise.
2910         * tests/test-ffsll.c: Likewise.
2911         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2912         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2913         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2914
2915         ffs: fix m4 prerequisite
2916         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2917
2918         ffs: avoid undefined behavior
2919         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2920         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2921         Reported by Bruno Haible.
2922
2923 2011-07-12  Bruno Haible  <bruno@clisp.org>
2924
2925         pthread_sigmask: Rely on module 'threadlib'.
2926         * modules/pthread_sigmask (Depends-on): Add threadlib.
2927         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2928         is defined.
2929
2930 2011-07-12  Bruno Haible  <bruno@clisp.org>
2931
2932         regex: Depend on module 'strcase'.
2933         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2934
2935 2011-07-12  Jim Meyering  <meyering@redhat.com>
2936
2937         warn-on-use: fix typo in file name
2938         * modules/snippet/warn-on-use (Files): Correct file name:
2939         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2940
2941 2011-07-12  Bruno Haible  <bruno@clisp.org>
2942
2943         strings: Document module.
2944         * doc/posix-headers/strings.texi: Mention module 'strings'.
2945
2946 2011-07-12  Bruno Haible  <bruno@clisp.org>
2947
2948         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2949         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2950         (Files, Makefile.am): Update.
2951         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2952         * modules/stdlib (Depends-on): Update.
2953
2954 2011-07-12  Bruno Haible  <bruno@clisp.org>
2955
2956         * NEWS: Mention the changes.
2957
2958         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2959         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2960         (Files, Makefile.am): Update.
2961         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2962         * modules/arpa_inet (Depends-on): Update.
2963         * modules/ctype (Depends-on): Update.
2964         * modules/dirent (Depends-on): Update.
2965         * modules/fcntl-h (Depends-on): Update.
2966         * modules/glob (Depends-on): Update.
2967         * modules/iconv-h (Depends-on): Update.
2968         * modules/inttypes-incomplete (Depends-on): Update.
2969         * modules/langinfo (Depends-on): Update.
2970         * modules/locale (Depends-on): Update.
2971         * modules/math (Depends-on): Update.
2972         * modules/netdb (Depends-on): Update.
2973         * modules/poll-h (Depends-on): Update.
2974         * modules/pty (Depends-on): Update.
2975         * modules/search (Depends-on): Update.
2976         * modules/signal (Depends-on): Update.
2977         * modules/spawn (Depends-on): Update.
2978         * modules/stdio (Depends-on): Update.
2979         * modules/stdlib (Depends-on): Update.
2980         * modules/string (Depends-on): Update.
2981         * modules/strings (Depends-on): Update.
2982         * modules/sys_file (Depends-on): Update.
2983         * modules/sys_ioctl (Depends-on): Update.
2984         * modules/sys_select (Depends-on): Update.
2985         * modules/sys_socket (Depends-on): Update.
2986         * modules/sys_stat (Depends-on): Update.
2987         * modules/sys_time (Depends-on): Update.
2988         * modules/sys_times (Depends-on): Update.
2989         * modules/sys_utsname (Depends-on): Update.
2990         * modules/sys_wait (Depends-on): Update.
2991         * modules/termios (Depends-on): Update.
2992         * modules/time (Depends-on): Update.
2993         * modules/unistd (Depends-on): Update.
2994         * modules/wchar (Depends-on): Update.
2995         * modules/wctype-h (Depends-on): Update.
2996         * MODULES.html.sh (Support for building libraries and executables):
2997         Update.
2998
2999         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3000         * modules/snippet/unused-parameter: Renamed from
3001         modules/unused-parameter.
3002         (Files, Makefile.am): Update.
3003         * build-aux/snippet/unused-parameter.h: Renamed from
3004         build-aux/unused-parameter.h.
3005         * modules/selinux-h (Depends-on): Update.
3006         * modules/unistr/base (Depends-on): Update.
3007         * MODULES.html.sh (Core language properties): Update.
3008
3009         Rename module 'link-warning' to 'snippet/link-warning'.
3010         * modules/snippet/link-warning: Renamed from modules/link-warning.
3011         (Files, Makefile.am): Update.
3012         * build-aux/snippet/link-warning.h: Renamed from
3013         build-aux/link-warning.h.
3014         * MODULES.html.sh (Support for building libraries and executables):
3015         Update.
3016
3017         Rename module 'c++defs' to 'snippet/c++defs'.
3018         * modules/snippet/c++defs: Renamed from modules/c++defs.
3019         (Files, Makefile.am): Update.
3020         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3021         * modules/arpa_inet (Depends-on): Update.
3022         * modules/ctype (Depends-on): Update.
3023         * modules/dirent (Depends-on): Update.
3024         * modules/fcntl-h (Depends-on): Update.
3025         * modules/glob (Depends-on): Update.
3026         * modules/iconv-h (Depends-on): Update.
3027         * modules/langinfo (Depends-on): Update.
3028         * modules/locale (Depends-on): Update.
3029         * modules/math (Depends-on): Update.
3030         * modules/netdb (Depends-on): Update.
3031         * modules/poll-h (Depends-on): Update.
3032         * modules/pty (Depends-on): Update.
3033         * modules/search (Depends-on): Update.
3034         * modules/signal (Depends-on): Update.
3035         * modules/spawn (Depends-on): Update.
3036         * modules/stdio (Depends-on): Update.
3037         * modules/stdlib (Depends-on): Update.
3038         * modules/string (Depends-on): Update.
3039         * modules/strings (Depends-on): Update.
3040         * modules/sys_ioctl (Depends-on): Update.
3041         * modules/sys_select (Depends-on): Update.
3042         * modules/sys_socket (Depends-on): Update.
3043         * modules/sys_stat (Depends-on): Update.
3044         * modules/sys_time (Depends-on): Update.
3045         * modules/sys_wait (Depends-on): Update.
3046         * modules/termios (Depends-on): Update.
3047         * modules/time (Depends-on): Update.
3048         * modules/unistd (Depends-on): Update.
3049         * modules/wchar (Depends-on): Update.
3050         * modules/wctype-h (Depends-on): Update.
3051
3052         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3053         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3054         (Files, Makefile.am): Update.
3055         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3056         * modules/argv-iter (Depends-on): Update.
3057         * modules/arpa_inet (Depends-on): Update.
3058         * modules/dirent (Depends-on): Update.
3059         * modules/fcntl-h (Depends-on): Update.
3060         * modules/fnmatch (Depends-on): Update.
3061         * modules/getopt-posix (Depends-on): Update.
3062         * modules/glob (Depends-on): Update.
3063         * modules/iconv-h (Depends-on): Update.
3064         * modules/inttypes-incomplete (Depends-on): Update.
3065         * modules/locale (Depends-on): Update.
3066         * modules/math (Depends-on): Update.
3067         * modules/netdb (Depends-on): Update.
3068         * modules/search (Depends-on): Update.
3069         * modules/signal (Depends-on): Update.
3070         * modules/spawn (Depends-on): Update.
3071         * modules/stdio (Depends-on): Update.
3072         * modules/stdlib (Depends-on): Update.
3073         * modules/string (Depends-on): Update.
3074         * modules/strings (Depends-on): Update.
3075         * modules/sys_socket (Depends-on): Update.
3076         * modules/sys_stat (Depends-on): Update.
3077         * modules/sys_time (Depends-on): Update.
3078         * modules/sys_times (Depends-on): Update.
3079         * modules/sys_utsname (Depends-on): Update.
3080         * modules/time (Depends-on): Update.
3081         * modules/unistd (Depends-on): Update.
3082         * modules/wchar (Depends-on): Update.
3083         * MODULES.html.sh (Support for building libraries and executables):
3084         Update.
3085
3086 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3087
3088         Improvements on _Noreturn and related modules.
3089
3090         modules/_Exit-tests: test _Noreturn too
3091         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3092         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3093         (main): Use them.
3094
3095         stdnoreturn, stdnoreturn-tests: remove modules
3096         They're not needed here and a bit premature for use elsewhere.  See
3097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3098         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3099         * tests/test-stdnoreturn.c: Remove files.
3100         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3101         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3102         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3103         and using noreturn.
3104         * modules/openat, modules/sigpipe-die, modules/xalloc:
3105         * modules/xmemdup0, modules/xstrtol:
3106         Remove dependency on stdnoreturn.
3107
3108         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3109         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3110         Reparenthesize to avoid GCC warning.
3111         Support Microsoft's syntax.
3112         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3113
3114         _Noreturn-tests: remove module
3115         * modules/_Noreturn-tests: Remove.
3116         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3117         * tests/test-_Noreturn.c: Remove.
3118         * tests/test-stdnoreturn.c: Merge from the old
3119         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3120
3121 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3122
3123         _Noreturn, stdnoreturn, and related modules.
3124
3125         * top/maint.mk: Adjust to new noreturn support.
3126         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3127         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3128
3129         xalloc: use stdnoreturn.h
3130         * lib/xalloc.h: Include <stdnoreturn.h>.
3131         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3132         * modules/xalloc (Depends-on): Add stdnoreturn.
3133
3134         xstrtol: use stdnoreturn.h
3135         * lib/xstrtol.h: Include <stdnoreturn.h>.
3136         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3137         * modules/xstrtol (Depends-on): Add stdnoreturn.
3138
3139         xmemdup0: use stdnoreturn.h
3140         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3141         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3142         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3143
3144         sigpipe-die: use stdnoreturn.h
3145         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3146         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3147         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3148
3149         openat: use stdnoreturn.h
3150         * lib/openat.h: Include <stdnoreturn.h>.
3151         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3152         * modules/openat (Depends-on): Add stdnoreturn.
3153
3154         * lib/openat-die.c (openat_save_fail): Modernize comment.
3155
3156         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3157
3158         * lib/glthread/thread.h: Modernize comment.
3159
3160         obstack: use _Noreturn
3161         * lib/obstack.c (__attribute__): Remove macro.
3162         (print_and_abort): Use _Noreturn.
3163
3164         c-stack: use _Noreturn
3165         * lib/c-stack.c (die, overflow_handler, segv_handler):
3166         Use _Noreturn rather than __attribute__((noreturn)).
3167
3168         argmatch-tests, exclude_tests: use _Noreturn
3169         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3170         Remove.
3171         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3172
3173         stdlib: use _Noreturn
3174         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3175         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3176         * modules/stdlib (Depends-on): Add _Noreturn.
3177         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3178
3179         stdnoreturn-tests: new module
3180         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3181
3182         stdnoreturn: new module
3183         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3184         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3185
3186         _Noreturn-tests: new module
3187         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3188
3189         _Noreturn: new module
3190         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3191         New section, mentioning it.
3192         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3193
3194         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3195
3196 2011-07-11  Eric Blake  <eblake@redhat.com>
3197
3198         ffs: new module
3199         * modules/ffs: New file.
3200         * m4/ffs.m4: Likewise.
3201         * lib/ffs.c: Likewise.
3202         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3203         * modules/strings (Makefile.am): Substitute witness.
3204         (Depends-on): Add c++defs.
3205         * lib/strings.in.h (ffs): Declare.
3206         * modules/ffs-tests: New test file.
3207         * tests/test-ffs.c: Test new module.
3208         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3209         * doc/posix-functions/ffs.texi (ffs): Likewise.
3210
3211         regex: avoid compiler warning
3212         * lib/regex.c (includes): Include <strings.h>, for use of
3213         strcasecmp in regcomp.c.
3214         Reported by Joachim Schmitz.
3215
3216 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3217
3218         stdint: respect system's intmax_t if INTMAX_MAX
3219         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3220         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3221         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3222         long but int64_t is long long, and where we will clash with the
3223         system intmax_t if we override it.  See
3224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3225         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3226         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3227         similarly for UINTMAX_C.
3228
3229 2011-07-08  Bruno Haible  <bruno@clisp.org>
3230
3231         pthread_sigmask tests: Avoid a compiler warning.
3232         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3233         non-zero.
3234
3235         sigprocmask tests: A better way to avoid a compiler warning.
3236         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3237         (main): Complain if system() returns non-zero.
3238         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3239
3240 2011-07-08  Bruno Haible  <bruno@clisp.org>
3241
3242         pthread_sigmask: Work around IRIX bug.
3243         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3244         bug.
3245         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3246         there may be unblocked pending signals.
3247         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3248
3249 2011-07-08  Bruno Haible  <bruno@clisp.org>
3250
3251         pthread_sigmask: Work around Cygwin bug.
3252         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3253         bug.
3254         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3255         the system's pthread_sigmask function.
3256         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3257
3258 2011-07-08  Bruno Haible  <bruno@clisp.org>
3259
3260         pthread_sigmask: Work around bug in single-threaded implementation.
3261         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3262         FreeBSD, HP-UX, Solaris bug.
3263         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3264         * lib/pthread_sigmask.c: Include <stddef.h>.
3265         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3266         the system's pthread_sigmask function.
3267         * modules/pthread_sigmask (configure.ac): Invoke
3268         gl_PREREQ_PTHREAD_SIGMASK.
3269         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3270         HP-UX, Solaris.
3271
3272 2011-07-08  Eric Blake  <eblake@redhat.com>
3273
3274         test-sigprocmask: avoid compiler warning
3275         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3276         * tests/test-sigprocmask.c (main): Use it to silence warning.
3277         Reported by Jim Meyering.
3278
3279         test-snprintf: avoid compiler warning
3280         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3281         * tests/test-vsnprintf.c (main): Likewise.
3282         Reported by Jim Meyering.
3283
3284 2011-07-08  Bruno Haible  <bruno@clisp.org>
3285
3286         Tests for module 'pthread_sigmask'.
3287         * modules/pthread_sigmask-tests: New file.
3288         * tests/test-pthread_sigmask1.c: New file, based on
3289         tests/test-sigprocmask.c.
3290         * tests/test-pthread_sigmask2.c: New file.
3291
3292 2011-07-08  Jim Meyering  <meyering@redhat.com>
3293
3294         test-getopt.h: avoid warning about an unused variable
3295         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3296
3297 2011-07-07  Jim Meyering  <meyering@redhat.com>
3298
3299         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3300         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3301         now that it no longer contains leading TABs.
3302         Remove unused "url=FIXME" statement.
3303
3304 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3305
3306         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3307         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3308         When gl_THREADLIB is not in use, assume that the POSIX sematics
3309         are desired.  This is better for Emacs, which uses POSIX semantics
3310         on GNUish and/or POSIXish platforms, and does not use threads at
3311         all otherwise.
3312
3313         pthread_sigmask: fix typo when testing for libraries
3314         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3315         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3316
3317 2011-07-08  Eric Blake  <eblake@redhat.com>
3318
3319         fts: introduce FTS_NOATIME
3320         * lib/fts_.h (FTS_NOATIME): New bit flag.
3321         (FTS_OPTIONMASK): Adjust.
3322         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3323         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3324
3325 2011-07-08  Bruno Haible  <bruno@clisp.org>
3326
3327         Tests for module 'thread'.
3328         * modules/thread-tests: New file.
3329         * tests/test-thread_self.c: New file.
3330         * tests/test-thread_create.cc: New file.
3331
3332 2011-07-08  Bruno Haible  <bruno@clisp.org>
3333
3334         thread: Avoid gcc warnings when using gl_thread_self().
3335         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3336         'void *'.
3337         (gl_thread_self_pointer): Update.
3338
3339 2011-07-07  Bruno Haible  <bruno@clisp.org>
3340
3341         signal-c++-tests: Check declaration of pthread_sigmask.
3342         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3343         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3344         $(LIB_PTHREAD_SIGMASK).
3345
3346 2011-07-07  Bruno Haible  <bruno@clisp.org>
3347
3348         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3349         * lib/signal.in.h (pthread_sigmask): Override if
3350         REPLACE_PTHREAD_SIGMASK is 1.
3351         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3352         REPLACE_PTHREAD_SIGMASK.
3353         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3354         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3355         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3356         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3357         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3358
3359 2011-07-07  Bruno Haible  <bruno@clisp.org>
3360
3361         pthread_sigmask: Ensure declaration in <signal.h>.
3362         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3363         include <pthread.h>.
3364         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3365         problem.
3366
3367 2011-07-07  Bruno Haible  <bruno@clisp.org>
3368
3369         pthread_sigmask: Document the module.
3370         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3371
3372 2011-07-07  Bruno Haible  <bruno@clisp.org>
3373
3374         pthread_sigmask: Follow gnulib conventions.
3375         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3376         gl_PTHREAD_SIGMASK.
3377         * modules/pthread_sigmask (configure.ac): Update.
3378
3379 2011-07-07  Bruno Haible  <bruno@clisp.org>
3380
3381         pthread_sigmask: Make declaration C++ safe.
3382         * lib/signal.in.h: In two special conditions, just do an #include_next.
3383         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3384         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3385         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3386         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3387         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3388         not REPLACE_PTHREAD_MASK.
3389         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3390         not REPLACE_PTHREAD_MASK.
3391         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3392
3393 2011-07-07  Bruno Haible  <bruno@clisp.org>
3394
3395         pthread_sigmask: Fix return value.
3396         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3397         * lib/pthread_sigmask.c: New file.
3398         * modules/pthread_sigmask (Files): Add it.
3399         (configure.ac): Invoke AC_LIBOBJ.
3400
3401 2011-07-07  Eric Blake  <eblake@redhat.com>
3402
3403         getopt: more portable argv creation
3404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3405         const, use char arrays rather than strings.
3406         Suggested by Paul Eggert.
3407
3408 2011-07-07  Bruno Haible  <bruno@clisp.org>
3409
3410         Tests for module 'sigprocmask'.
3411         * modules/sigprocmask-tests: New file.
3412         * tests/test-sigprocmask.c: New file.
3413
3414 2011-07-07  Bruno Haible  <bruno@clisp.org>
3415
3416         float tests: Tweak.
3417         * tests/test-float.c (main): Tweak skip message.
3418
3419 2011-07-07  Eric Blake  <eblake@redhat.com>
3420
3421         getopt: avoid compiler warning during configure
3422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3423         assigning string literals to non-const pointer.
3424
3425         getopt-gnu: avoid crash in glibc getopt
3426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3427         * tests/test-getopt.h (test_getopt): Enhance test.
3428         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3429         * doc/posix-functions/getopt.texi (getopt): Document it.
3430         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3431         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3432         Likewise.
3433
3434 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3435
3436         getopt: handle W; without long options in getopt [BZ #12922]
3437         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3438         but no long options are defined, just return 'W'.
3439
3440 2011-07-07  Bruno Haible  <bruno@clisp.org>
3441
3442         Avoid literal tabs.
3443         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3444         variable containing a tab instead of a literal tab.
3445         Reported by Jim Meyering.
3446
3447 2011-07-07  Bruno Haible  <bruno@clisp.org>
3448
3449         Comments.
3450         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3451
3452 2011-07-06  Bruno Haible  <bruno@clisp.org>
3453
3454         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3455         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3456         <winsock2.h>.
3457         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3458         lib/sys_socket.in.h.
3459         (close, gethostname): Hide declarations from <winsock2.h>.
3460         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3461         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3462         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3463         (select): Don't override if gnulib's <sys/select.h> was already
3464         included.
3465         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3466         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3467         setsockopt, shutdown, select): Tweak indentation.
3468
3469 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3470
3471         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3472         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3473         in an application that does not use the sys_select module.
3474
3475 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3476
3477         poll: do not return 0 on timeout=-1
3478         * lib/poll.c: Loop with yield if no events occured
3479
3480 2011-07-06  Eric Blake  <eblake@redhat.com>
3481
3482         pthread_sigmask: always replace when not using pthread
3483         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3484         replacement when using some threading other than pthread.  Fix
3485         logic bug.
3486
3487 2011-07-06  Bruno Haible  <bruno@clisp.org>
3488
3489         Comments.
3490         * m4/printf.m4: Update comments about mingw.
3491
3492 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3493
3494         sys_select: define sigset_t more portably
3495         * lib/sys_select.in.h: Always include <sys/types.h>, since
3496         we now need sigset_t and mingw defines it there.
3497         Include <signal.h> before split inclusion guard, to avoid
3498         mishaps on Solaris, whose <signal.h> eventually includes us.
3499         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3500         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3501         which come from ...
3502         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3503         gl_CHECK_TYPE_SIGSET_T.
3504         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3505         does the real work.
3506         * modules/sys_select (Depends-on): Add 'signal'.
3507
3508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3509         Suggested by Bruno Haible.
3510
3511         pselect: Use pthread_sigmask, not sigprocmask.
3512         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3513         multithreaded apps better than sigprocmask does.
3514         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3515         sigprocmask directly.
3516
3517 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3518
3519         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3520         Don't #undef,  since we don't need any underlying pselect.
3521         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3522         (Depends-on): Add select.
3523         (Link): Add $(LIBSOCKET).
3524         These changes suggested by Bruno Haible.
3525
3526         pselect: document better
3527         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3528         * doc/posix-functions/pselect.texi (pselect): Document new module.
3529
3530         pthread_sigmask: new module
3531         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3532         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3533         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3534         This is done only as a macro; I don't know how well that'll
3535         work for C++.  Move <sys/types.h> include before the include_next,
3536         to avoid mishap on Solaris.
3537         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3538         * modules/signal (Makefile.am): Substitute the check's results.
3539         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3540
3541         test-pselect: new module
3542         * modules/pselect-tests, tests/test-pselect.c: New files.
3543         * tests/test-select.c, tests/test-sys_select-c++.cc:
3544         If TEST_PSELECT is defined, test pselect instead of testing select.
3545
3546         * tests/test-sys_select.c (sigset_t): Test for it, too.
3547         Suggested by Bruno Haible.
3548
3549 2011-07-05  Eric Blake  <eblake@redhat.com>
3550
3551         snprintf: guarantee %1$d, for libintl
3552         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3553         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3554         * doc/posix-functions/snprintf.texi (snprintf): Update.
3555         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3556         * tests/test-snprintf.c (main): Enhance test.
3557         * tests/test-vsnprintf.c (main): Likewise.
3558
3559 2011-07-05  Jim Meyering  <meyering@redhat.com>
3560
3561         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3562         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3563         per Bruno's request, to accommodate this idiom (no space after "#")
3564         even when the function is inside an #if block:
3565         char *
3566         gets (char *s)
3567         #undef gets
3568         {
3569           ...
3570         }
3571
3572 2011-07-04  Jim Meyering  <meyering@redhat.com>
3573
3574         maint: indent with spaces, not TABs, and add a rule to check this
3575         * tests/test-userspec.c: Indent with spaces, not TABs.
3576         * tests/test-argp.c: Likewise.
3577         * tests/test-c-stack2.sh: Likewise.
3578         * tests/test-parse-duration.sh: Likewise
3579         * m4/strtod.m4: Likewise.
3580         * m4/alloca.m4: Likewise.
3581         * m4/pselect.m4: Likewise.
3582         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3583
3584 2011-07-03  Jim Meyering  <meyering@redhat.com>
3585
3586         maint.mk: correct omissions in prohibit_argmatch_without_use check
3587         This rule would mistakenly report that argmatch.h is included without
3588         use even when both the argmatch and invalid_arg macro were used.
3589         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3590         of argmatch and invalid_arg.
3591
3592 2011-07-03  Bruno Haible  <bruno@clisp.org>
3593
3594         Comments about EINTR.
3595         * lib/safe-read.h: Explain the purpose of this module.
3596         * lib/safe-write.h: Likewise.
3597         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3598         module.
3599         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3600         module.
3601         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3602
3603 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3604
3605         xnanosleep: Rewrite to use new dtotimespec module.
3606         It has the conversion code that used to be in xnanosleep.
3607         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3608         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3609         (TIME_T_MAX): Remove.
3610         (xnanosleep): Rewrite in terms of dtotimespec.
3611         * modules/xnanosleep (Depends-on): Add dtotimespec.
3612         Remove intprops, stdbool.
3613
3614         timespec-add, timespec-sub: new modules
3615         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3616         * lib/timespec-add.c, lib/timespec-sub.c:
3617         * modules/timespec-add, modules/timespec-sub: New files.
3618
3619         dtotimespec: new module
3620         * lib/timespec.h (dtotimespec): New decl.
3621         * lib/dtotimespec.c, modules/dtotimespec: New files.
3622
3623         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3624
3625         pselect: new module
3626         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3627         (pselect): New decls.
3628         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3629         since the standard pselect decl uses 'restrict'.
3630         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3631         HAVE_PSELECT, REPLACE_PSELECT.
3632         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3633         HAVE_PSELECT, REPLACE_PSELECT.
3634         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3635
3636         sys_select: don't depend on sys_socket
3637         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3639         This fix works on GNU and GNU-like platforms, but has not been tested
3640         on native Windows.
3641         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3643         gl_HEADER_SYS_SOCKET.
3644         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3645         gl_PREREQ_SYS_H_WINSOCK2.
3646
3647 2011-06-29  Eric Blake  <eblake@redhat.com>
3648
3649         pipe2: fix C89 compile problem
3650         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3651         Reported by Bruno Haible.
3652
3653         pipe, pipe2: don't corrupt fd on error
3654         * lib/pipe.c (pipe): Leave fd unchanged on error.
3655         * lib/pipe2.c (pipe2): Likewise.
3656         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3657         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3658
3659 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3660
3661         mmap-anon: do not use regular expressions inadvertently
3662         * m4/mmap-anon.m4: Remove trailing period from strings sought
3663         in the output.
3664
3665 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3666
3667         nanosleep: fix integer overflow problem
3668         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3669         arithmetic wraps around on overflow.
3670
3671         nanosleep: simplify carrying
3672         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3673         first call to the underyling nanosleep, not for the last one.
3674         This doesn't fix any bugs, but it simplifies the computation of
3675         the remaining delay.  Found while auditing integer overflow issues.
3676
3677         dup2: remove test for existence of fcntl
3678         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3679         "#if HAVE_FCNTL", in the configure-time test program.
3680         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3681         and therefore speeds up "configure" a bit.  Found while
3682         adding the dup2 module to Emacs.
3683
3684 2011-06-24  Eric Blake  <eblake@redhat.com>
3685
3686         maint.mk: enhance useless header checks
3687         * top/maint.mk (_sc_header_without_use): Check both include
3688         styles.
3689         (sc_prohibit_assert_without_use)
3690         (sc_prohibit_close_stream_without_use)
3691         (sc_prohibit_getopt_without_use)
3692         (sc_prohibit_quotearg_without_use)
3693         (sc_prohibit_quote_without_use)
3694         (sc_prohibit_long_options_without_use)
3695         (sc_prohibit_inttostr_without_use)
3696         (sc_prohibit_ignore_value_without_use)
3697         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3698         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3699         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3700         (sc_prohibit_hash_pjw_without_use)
3701         (sc_prohibit_safe_read_without_use)
3702         (sc_prohibit_argmatch_without_use)
3703         (sc_prohibit_canonicalize_without_use)
3704         (sc_prohibit_root_dev_ino_without_use)
3705         (sc_prohibit_openat_without_use)
3706         (sc_prohibit_c_ctype_without_use)
3707         (sc_prohibit_signal_without_use)
3708         (sc_prohibit_stdio--_without_use)
3709         (sc_prohibit_stdio-safer_without_use)
3710         (sc_prohibit_strings_without_use)
3711         (sc_prohibit_intprops_without_use)
3712         (sc_prohibit_stddef_without_use)
3713         (sc_prohibit_xfreopen_without_use): Update clients.
3714
3715 2011-06-24  Jim Meyering  <meyering@redhat.com>
3716
3717         syntax-check: keep one maint.mk rule in sync with its header
3718         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3719         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3720         I prefer to avoid temporary files here, so use <(...), but that
3721         is not supported by /bin/sh, so...
3722         (SHELL): Define to /bin/bash.
3723
3724 2011-06-24  Eric Blake  <eblake@redhat.com>
3725
3726         maint.mk: update sc_prohibit_intprops_without_use
3727         * top/maint.mk (_intprops_names): Match recent changes.
3728
3729 2011-06-24  Bruno Haible  <bruno@clisp.org>
3730
3731         strerror-override: No-op tweak.
3732         * lib/strerror-override.h (strerror_override): Reorder conditions,
3733         for consistency with lib/strerror-override.c.
3734
3735 2011-06-23  Eric Blake  <eblake@redhat.com>
3736
3737         maint.mk: test further PATH_MAX issues
3738         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3739         (sc_prohibit_path_max_allocation): ...and also test alloca.
3740         Suggested by Jim Meyering.
3741
3742 2011-06-22  Eric Blake  <eblake@redhat.com>
3743
3744         maint.mk: add syntax-check to avoid char[PATH_MAX]
3745         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3746
3747         stat: be robust to PATH_MAX definition
3748         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3749         * modules/stat (Depends-on): Add verify.
3750
3751         link: work around IRIX bug
3752         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3753         * lib/link.c (rpl_link): Work around it.
3754         * tests/test-link.h (test_link): Enhance test.
3755         * doc/posix-functions/link.texi (link): Document the bug.
3756
3757         getopt: silence clang warning
3758         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3759         dereference.
3760         Reported by Gustavo Martin Domato.
3761
3762 2011-06-22  Jim Meyering  <meyering@redhat.com>
3763
3764         bootstrap: do not insert a blank line into each .gitignore file
3765         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3766
3767 2011-06-21  Eric Blake  <eblake@redhat.com>
3768
3769         perror: test for output mismatch
3770         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3771         perror on IRIX.
3772
3773         strerror_r: fix OpenBSD behavior on out-of-range
3774         * lib/strerror_r.c (strerror_r): Always use maximal string.
3775         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3776
3777         strerror_r: fix OpenBSD behavior on 0
3778         * lib/strerror-override.c (strerror_override): Also override 0
3779         when needed.
3780         * lib/strerror-override.h (strerror_override): Likewise.
3781         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3782         earlier.
3783         * lib/strerror_r.c (strerror_r): Likewise.
3784         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3785         behavior...
3786         (gl_FUNC_STRERROR_0): ...into new macro.
3787         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3788         is overridden.
3789         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3790         * modules/strerror-override (Files): Add strerror.m4.
3791         (configure.ac): Also provide override for 0 when needed.
3792         * doc/posix-functions/strerror.texi (strerror): Document this.
3793         * doc/posix-functions/perror.texi (perror): Likewise.
3794
3795         perror: adjust array size
3796         * modules/perror (Depends-on): Add strerror-override.
3797         * lib/perror.c (perror): Use it to avoid magic number.
3798
3799         strerror-override: reduce size
3800         * lib/strerror-override.c (strerror_override): Use fewer lines.
3801
3802 2011-06-20  Bruno Haible  <bruno@clisp.org>
3803
3804         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3805         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3806
3807 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3808
3809         alloca: port to compilers that can optimize like GCC 4.6.0
3810         * lib/alloca.c (find_stack_direction): New signature, taken from
3811         Autoconf git.  This works with GCC 4.6.0.  This code should never
3812         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3813         be used with other compilers that optimize as well as GCC 4.6.0 does.
3814         (alloca): Adjust to new signature.
3815         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3816         New macro, which patches Autoconf in a similar way.
3817
3818         c-stack: stop worrying about stack direction
3819         * lib/c-stack.c (find_stack_direction): Remove.
3820         (segv_handler): Don't worry about stack direction growth, as it's
3821         too much of a pain to configure this correctly, given how compilers
3822         are optimizing-away our stack-growth detection code.  Instead, assume
3823         that any access to just before or just after the stack is OK.
3824         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3825         Don't require AC_FUNC_ALLOCA; no longer needed.
3826
3827 2011-06-20  Eric Blake  <eblake@redhat.com>
3828
3829         test-stat: don't allocate PATH_MAX bytes
3830         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3831         PATH_MAX-sized buffer.
3832         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3833         * modules/stat-tests (Depends-on): Likewise.
3834         * tests/test-fstatat.c (includes): Drop pathmax.h.
3835         * tests/test-stat.c (includes): Likewise.
3836         Reported by Bruno Haible.
3837
3838 2011-06-20  Bruno Haible  <bruno@clisp.org>
3839
3840         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3841         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3842         * lib/float.c: New file.
3843         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3844         REPLACE_FLOAT_LDBL.
3845         * modules/float (Files): Add lib/float.c.
3846         (configure.ac): Invoke AC_LIBOBJ.
3847         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3848
3849 2011-06-20  Bruno Haible  <bruno@clisp.org>
3850
3851         Tests for module 'float'.
3852         * modules/float-tests: New file.
3853         * tests/test-float.c: New file.
3854
3855 2011-06-19  Bruno Haible  <bruno@clisp.org>
3856
3857         isinf: Coding style.
3858         * lib/isinf.c: Use GNU coding style.
3859
3860 2011-06-19  Bruno Haible  <bruno@clisp.org>
3861
3862         linkat test: Avoid test failure on AIX 7.1.
3863         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3864         * tests/test-link.h (test_link): Likewise.
3865
3866 2011-06-19  Bruno Haible  <bruno@clisp.org>
3867
3868         pread test: Avoid test failure on OpenBSD 4.9.
3869         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3870
3871 2011-06-19  Bruno Haible  <bruno@clisp.org>
3872
3873         sprintf-posix: Fix test failure on AIX 7.1.
3874         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3875         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3876         on AIX.
3877         * doc/posix-functions/fprintf.texi: Likewise.
3878         * doc/posix-functions/printf.texi: Likewise.
3879         * doc/posix-functions/snprintf.texi: Likewise.
3880         * doc/posix-functions/sprintf.texi: Likewise.
3881         * doc/posix-functions/vdprintf.texi: Likewise.
3882         * doc/posix-functions/vfprintf.texi: Likewise.
3883         * doc/posix-functions/vprintf.texi: Likewise.
3884         * doc/posix-functions/vsnprintf.texi: Likewise.
3885         * doc/posix-functions/vsprintf.texi: Likewise.
3886
3887 2011-06-19  Bruno Haible  <bruno@clisp.org>
3888
3889         roundl-ieee: Fix test failure on AIX 7.1.
3890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3891         * doc/posix-functions/roundl.texi: Mention problem with negative
3892         arguments.
3893
3894 2011-06-19  Bruno Haible  <bruno@clisp.org>
3895
3896         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3897         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3898         * doc/posix-functions/round.texi: Mention problem with negative
3899         arguments.
3900         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3901
3902 2011-06-19  Bruno Haible  <bruno@clisp.org>
3903
3904         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3905         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3906         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3907         * doc/posix-functions/roundf.texi: Mention problem with negative
3908         arguments.
3909         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3910
3911 2011-06-19  Bruno Haible  <bruno@clisp.org>
3912
3913         ceilf-ieee: Work around bug on MacOS X 10.5.
3914         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3915
3916         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3917         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3918         IEEE compliant, avoid compiler optimizations.
3919         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3920         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3921         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3922         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3923         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3924         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3925         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3926         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3927         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3928         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3929
3930 2011-06-19  Bruno Haible  <bruno@clisp.org>
3931
3932         ceilf-ieee: Work around bug on AIX 7.1.
3933         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3934         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3935
3936 2011-06-19  Bruno Haible  <bruno@clisp.org>
3937
3938         ceil-ieee: Work around bug on AIX 7.1.
3939         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3940         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3941
3942 2011-06-18  Bruno Haible  <bruno@clisp.org>
3943
3944         fsync test: Avoid test failure on MacOS X and AIX.
3945         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3946         EINVAL.
3947
3948 2011-06-18  Bruno Haible  <bruno@clisp.org>
3949
3950         openat, fdopendir tests: Fix link errors.
3951         * modules/openat-tests (Depends-on): Add progname.
3952         * modules/fdopendir-tests (Depends-on): Likewise.
3953         * tests/test-fchownat.c: Include progname.h.
3954         (main): Call set_program_name.
3955         * tests/test-fstatat.c: Include progname.h.
3956         (main): Call set_program_name.
3957         * tests/test-mkdirat.c: Include progname.h.
3958         (main): Call set_program_name.
3959         * tests/test-openat.c: Include progname.h.
3960         (main): Call set_program_name.
3961         * tests/test-unlinkat.c: Include progname.h.
3962         (main): Call set_program_name.
3963         * tests/test-fdopendir.c: Include progname.h.
3964         (main): Call set_program_name.
3965
3966 2011-06-18  Bruno Haible  <bruno@clisp.org>
3967
3968         Doc update.
3969         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3970         HP-UX.
3971         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3972
3973 2011-06-18  Bruno Haible  <bruno@clisp.org>
3974
3975         getcwd tests: Avoid compilation error on HP-UX 11.31.
3976         * modules/getcwd-tests (Depends-on): Add pathmax.
3977         * tests/test-getcwd.c: Include pathmax.h.
3978
3979 2011-06-18  Bruno Haible  <bruno@clisp.org>
3980
3981         isfinite, isinf: Fix link error on AIX 6 and 7.
3982         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3983         needed, also test the macro with a 'float' argument.
3984         * m4/isinf.m4 (gl_ISINF): Likewise.
3985
3986 2011-06-18  Bruno Haible  <bruno@clisp.org>
3987
3988         getloadavg: Don't clobber LIBS. Regression from previous commit.
3989         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3990         AC_CHECK_LIB from here...
3991         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3992         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3993         gl_func_getloadavg_done.
3994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3995
3996 2011-06-18  Bruno Haible  <bruno@clisp.org>
3997
3998         clean-temp: Improve documentation.
3999         * lib/clean-temp.h: Explain better how to use this module.
4000         Reported by John Darrington <john@darrington.wattle.id.au>.
4001
4002 2011-06-17  Bruno Haible  <bruno@clisp.org>
4003
4004         pread, pwrite: Avoid cc warning on AIX.
4005         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4006         (pwrite): Likewise.
4007
4008 2011-06-17  Bruno Haible  <bruno@clisp.org>
4009
4010         spawn-pipe tests: Fix link error.
4011         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4013
4014 2011-06-17  Bruno Haible  <bruno@clisp.org>
4015
4016         Tests: Remove unnecessary dependency.
4017         * modules/canonicalize-tests (Depends-on): Remove progname.
4018         * modules/chown-tests (Depends-on): Likewise.
4019         * modules/dirname-tests (Depends-on): Likewise.
4020         * modules/fdopendir-tests (Depends-on): Likewise.
4021         * modules/fdutimensat-tests (Depends-on): Likewise.
4022         * modules/hash-tests (Depends-on): Likewise.
4023         * modules/lchown-tests (Depends-on): Likewise.
4024         * modules/linkat-tests (Depends-on): Likewise.
4025         * modules/renameat-tests (Depends-on): Likewise.
4026         * modules/spawn-pipe-tests (Depends-on): Likewise.
4027         * modules/utimensat-tests (Depends-on): Likewise.
4028
4029 2011-06-17  Bruno Haible  <bruno@clisp.org>
4030
4031         spawn-pipe tests: Fix link error.
4032         * tests/test-spawn-pipe-child.c: Undefine fflush.
4033
4034 2011-06-17  Bruno Haible  <bruno@clisp.org>
4035
4036         Fix tests link errors.
4037         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4038         * modules/chown-tests (Makefile.am): Don't link test-chown with
4039         LIBINTL.
4040         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4041         LIBINTL.
4042         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4043         LIBINTL.
4044         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4045         LIBINTL.
4046
4047 2011-06-16  Bruno Haible  <bruno@clisp.org>
4048
4049         crypto/gc-sha1: Fix recent regression.
4050         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4051         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4052
4053         crypto/gc-md5: Fix recent regression.
4054         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4055
4056         crypto/gc-md4: Fix recent regression.
4057         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4058         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4059
4060         crypto/gc-arctwo: Fix recent regression.
4061         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4062         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4063
4064         crypto/gc-rijndael: Fix recent regression.
4065         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4066         (configure.ac): Invoke AC_LIBOBJ here.
4067         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4069
4070         crypto/gc-hmac-sha1: Fix recent regression.
4071         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4072         (configure.ac): Invoke AC_LIBOBJ here.
4073         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4075
4076         crypto/gc-hmac-md5: Fix recent regression.
4077         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4078         (configure.ac): Invoke AC_LIBOBJ here.
4079         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4081
4082         crypto/gc-des: Fix recent regression.
4083         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4084         (configure.ac): Invoke AC_LIBOBJ here.
4085         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4087
4088         crypto/gc-arcfour: Fix recent regression.
4089         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4090         (configure.ac): Invoke AC_LIBOBJ here.
4091         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4093
4094 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4095
4096         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4097         After the 2011-05-21 change, this macro requires
4098         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4099         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4100
4101 2011-06-16  Bruno Haible  <bruno@clisp.org>
4102
4103         fprintftime: Move AC_LIBOBJ invocations to module description.
4104         * m4/fprintftime.m4: Remove file.
4105         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4106         (configure.ac): Remove gl_FPRINTFTIME call.
4107         (Makefile.am): Augment lib_SOURCES.
4108         Reported by Jim Meyering.
4109
4110 2011-06-16  Bruno Haible  <bruno@clisp.org>
4111
4112         tmpfile-safer: Finish 2011-05-23 commit.
4113         * m4/stdio-safer.m4: Really remove file.
4114         Reported by Jim Meyering.
4115
4116 2011-06-16  Bruno Haible  <bruno@clisp.org>
4117
4118         syntax-check: Fix typo.
4119         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4120         printf-posix.m4.
4121         Reported by Jim Meyering.
4122
4123 2011-06-13  Jim Meyering  <meyering@redhat.com>
4124
4125         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4126         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4127
4128 2011-05-23  Bruno Haible  <bruno@clisp.org>
4129
4130         yesno: Move AC_LIBOBJ invocations to module description.
4131         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4132         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4133
4134 2011-05-23  Bruno Haible  <bruno@clisp.org>
4135
4136         xstrtol: Move AC_LIBOBJ invocations to module description.
4137         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4138         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4139
4140 2011-05-23  Bruno Haible  <bruno@clisp.org>
4141
4142         xstrtold: Move AC_LIBOBJ invocations to module description.
4143         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4144         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4145
4146 2011-05-23  Bruno Haible  <bruno@clisp.org>
4147
4148         xstrtod: Move AC_LIBOBJ invocations to module description.
4149         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4150         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4151
4152 2011-05-23  Bruno Haible  <bruno@clisp.org>
4153
4154         xnanosleep: Move AC_LIBOBJ invocations to module description.
4155         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4156         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4157
4158 2011-05-23  Bruno Haible  <bruno@clisp.org>
4159
4160         xgetcwd: Move AC_LIBOBJ invocations to module description.
4161         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4162         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4163
4164 2011-05-23  Bruno Haible  <bruno@clisp.org>
4165
4166         xalloc: Move AC_LIBOBJ invocations to module description.
4167         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4168         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4169
4170 2011-05-23  Bruno Haible  <bruno@clisp.org>
4171
4172         write-any-file: Move AC_LIBOBJ invocations to module description.
4173         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4174         invocation.
4175         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4176
4177 2011-05-23  Bruno Haible  <bruno@clisp.org>
4178
4179         utimens: Move AC_LIBOBJ invocations to module description.
4180         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4181         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4182
4183 2011-05-23  Bruno Haible  <bruno@clisp.org>
4184
4185         utimecmp: Move AC_LIBOBJ invocations to module description.
4186         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4187         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4188
4189 2011-05-23  Bruno Haible  <bruno@clisp.org>
4190
4191         userspec: Move AC_LIBOBJ invocations to module description.
4192         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4193         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4194
4195 2011-05-23  Bruno Haible  <bruno@clisp.org>
4196
4197         unlinkdir: Move AC_LIBOBJ invocations to module description.
4198         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4199         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4200
4201 2011-05-23  Bruno Haible  <bruno@clisp.org>
4202
4203         unistd-safer: Move AC_LIBOBJ invocations to module description.
4204         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4205         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4206
4207 2011-05-23  Bruno Haible  <bruno@clisp.org>
4208
4209         tempname: Move AC_LIBOBJ invocations to module description.
4210         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4211         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4212
4213 2011-05-23  Bruno Haible  <bruno@clisp.org>
4214
4215         strftime: Move AC_LIBOBJ invocations to module description.
4216         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4217         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4218
4219 2011-05-23  Bruno Haible  <bruno@clisp.org>
4220
4221         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4222         * m4/stdlib-safer.m4: Remove file.
4223         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4224         (configure.ac): Remove gl_STDLIB_SAFER call.
4225         (Makefile.am): Augment lib_SOURCES.
4226
4227 2011-05-23  Bruno Haible  <bruno@clisp.org>
4228
4229         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4230         * m4/stdio-safer.m4: Remove file.
4231         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4232         (configure.ac): Remove gl_TMPFILE_SAFER call.
4233         (Makefile.am): Augment lib_SOURCES.
4234
4235 2011-05-23  Bruno Haible  <bruno@clisp.org>
4236
4237         popen-safer: Move AC_LIBOBJ invocations to module description.
4238         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4239         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4240         (configure.ac): Remove gl_POPEN_SAFER call.
4241         (Makefile.am): Augment lib_SOURCES.
4242
4243 2011-05-23  Bruno Haible  <bruno@clisp.org>
4244
4245         freopen-safer: Move AC_LIBOBJ invocations to module description.
4246         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4247         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4248         (configure.ac): Remove gl_FREOPEN_SAFER call.
4249         (Makefile.am): Augment lib_SOURCES.
4250
4251 2011-05-23  Bruno Haible  <bruno@clisp.org>
4252
4253         fopen-safer: Move AC_LIBOBJ invocations to module description.
4254         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4255         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4256         (configure.ac): Remove gl_FOPEN_SAFER call.
4257         (Makefile.am): Augment lib_SOURCES.
4258
4259 2011-05-23  Bruno Haible  <bruno@clisp.org>
4260
4261         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4262         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4263         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4264
4265 2011-05-23  Bruno Haible  <bruno@clisp.org>
4266
4267         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4268         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4269         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4270
4271 2011-05-23  Bruno Haible  <bruno@clisp.org>
4272
4273         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4274         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4275         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4276
4277 2011-05-23  Bruno Haible  <bruno@clisp.org>
4278
4279         settime: Move AC_LIBOBJ invocations to module description.
4280         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4281         * modules/settime (Makefile.am): Augment lib_SOURCES.
4282
4283 2011-05-23  Bruno Haible  <bruno@clisp.org>
4284
4285         savedir: Move AC_LIBOBJ invocations to module description.
4286         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4287         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4288
4289 2011-05-23  Bruno Haible  <bruno@clisp.org>
4290
4291         save-cwd: Move AC_LIBOBJ invocations to module description.
4292         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4293         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4294
4295 2011-05-23  Bruno Haible  <bruno@clisp.org>
4296
4297         same: Move AC_LIBOBJ invocations to module description.
4298         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4299         * modules/same (Makefile.am): Augment lib_SOURCES.
4300
4301 2011-05-23  Bruno Haible  <bruno@clisp.org>
4302
4303         safe-write: Move AC_LIBOBJ invocations to module description.
4304         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4305         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4306         instead of gl_SAFE_WRITE.
4307         (Makefile.am): Augment lib_SOURCES.
4308
4309 2011-05-23  Bruno Haible  <bruno@clisp.org>
4310
4311         safe-read: Move AC_LIBOBJ invocations to module description.
4312         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4313         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4314         of gl_SAFE_READ.
4315         (Makefile.am): Augment lib_SOURCES.
4316
4317 2011-05-23  Bruno Haible  <bruno@clisp.org>
4318
4319         safe-alloc: Move AC_LIBOBJ invocations to module description.
4320         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4321         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4322
4323 2011-05-23  Bruno Haible  <bruno@clisp.org>
4324
4325         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4326         * m4/rijndael.m4: Remove file.
4327         * modules/crypto/rijndael (Files): Remove it.
4328         (configure.ac): Remove gl_RIJNDAEL call.
4329         (Makefile.am): Augment lib_SOURCES.
4330
4331 2011-05-23  Bruno Haible  <bruno@clisp.org>
4332
4333         readtokens: Move AC_LIBOBJ invocations to module description.
4334         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4335         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4336
4337 2011-05-23  Bruno Haible  <bruno@clisp.org>
4338
4339         read-file: Move AC_LIBOBJ invocations to module description.
4340         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4341         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4342         of gl_FUNC_READ_FILE.
4343         (Makefile.am): Augment lib_SOURCES.
4344
4345 2011-05-23  Bruno Haible  <bruno@clisp.org>
4346
4347         quotearg: Move AC_LIBOBJ invocations to module description.
4348         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4349         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4350
4351 2011-05-23  Bruno Haible  <bruno@clisp.org>
4352
4353         quote: Move AC_LIBOBJ invocations to module description.
4354         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4355         * modules/quote (Makefile.am): Augment lib_SOURCES.
4356
4357 2011-05-23  Bruno Haible  <bruno@clisp.org>
4358
4359         posixver: Move AC_LIBOBJ invocations to module description.
4360         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4361         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4362
4363 2011-05-23  Bruno Haible  <bruno@clisp.org>
4364
4365         posixtm: Move AC_LIBOBJ invocations to module description.
4366         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4367         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4368
4369 2011-05-23  Bruno Haible  <bruno@clisp.org>
4370
4371         physmem: Move AC_LIBOBJ invocations to module description.
4372         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4373         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4374
4375 2011-05-23  Bruno Haible  <bruno@clisp.org>
4376
4377         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4378         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4379         invocation.
4380         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4381
4382 2011-05-23  Bruno Haible  <bruno@clisp.org>
4383
4384         mpsort: Move AC_LIBOBJ invocations to module description.
4385         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4386         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4387
4388 2011-05-23  Bruno Haible  <bruno@clisp.org>
4389
4390         modechange: Move AC_LIBOBJ invocations to module description.
4391         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4392         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4393
4394 2011-05-23  Bruno Haible  <bruno@clisp.org>
4395
4396         mkdir-p: Move AC_LIBOBJ invocations to module description.
4397         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4398         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4399
4400 2011-05-23  Bruno Haible  <bruno@clisp.org>
4401
4402         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4403         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4404         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4405
4406 2011-05-23  Bruno Haible  <bruno@clisp.org>
4407
4408         mgetgroups: Move AC_LIBOBJ invocations to module description.
4409         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4410         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4411
4412 2011-05-23  Bruno Haible  <bruno@clisp.org>
4413
4414         memxor: Move AC_LIBOBJ invocations to module description.
4415         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4416         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4417
4418 2011-05-23  Bruno Haible  <bruno@clisp.org>
4419
4420         memcoll: Move AC_LIBOBJ invocations to module description.
4421         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4422         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4423
4424 2011-05-23  Bruno Haible  <bruno@clisp.org>
4425
4426         memcasecmp: Move AC_LIBOBJ invocations to module description.
4427         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4428         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4429
4430 2011-05-23  Bruno Haible  <bruno@clisp.org>
4431
4432         crypto/md5: Move AC_LIBOBJ invocations to module description.
4433         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4434         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4435
4436 2011-05-23  Bruno Haible  <bruno@clisp.org>
4437
4438         crypto/md4: Move AC_LIBOBJ invocations to module description.
4439         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4440         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4441
4442 2011-05-23  Bruno Haible  <bruno@clisp.org>
4443
4444         crypto/md2: Move AC_LIBOBJ invocations to module description.
4445         * m4/md2.m4: Remove file.
4446         * modules/crypto/md2 (Files): Remove it.
4447         (configure.ac): Remove gl_MD2 call.
4448         (Makefile.am): Augment lib_SOURCES.
4449
4450 2011-05-23  Bruno Haible  <bruno@clisp.org>
4451
4452         long-options: Move AC_LIBOBJ invocations to module description.
4453         * m4/long-options.m4: Remove file.
4454         * modules/long-options (Files): Remove it.
4455         (configure.ac): Remove gl_LONG_OPTIONS call.
4456         (Makefile.am): Augment lib_SOURCES.
4457
4458 2011-05-23  Bruno Haible  <bruno@clisp.org>
4459
4460         i-ring: Move AC_LIBOBJ invocations to module description.
4461         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4462         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4463
4464 2011-05-23  Bruno Haible  <bruno@clisp.org>
4465
4466         idcache: Move AC_LIBOBJ invocations to module description.
4467         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4468         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4469
4470 2011-05-23  Bruno Haible  <bruno@clisp.org>
4471
4472         human: Move AC_LIBOBJ invocations to module description.
4473         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4474         * modules/human (Makefile.am): Augment lib_SOURCES.
4475
4476 2011-05-23  Bruno Haible  <bruno@clisp.org>
4477
4478         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4479         * m4/hmac-sha1.m4: Remove file.
4480         * modules/crypto/hmac-sha1 (Files): Remove it.
4481         (configure.ac): Remove gl_HMAC_SHA1 call.
4482         (Makefile.am): Augment lib_SOURCES.
4483
4484 2011-05-23  Bruno Haible  <bruno@clisp.org>
4485
4486         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4487         * m4/hmac-md5.m4: Remove file.
4488         * modules/crypto/hmac-md5 (Files): Remove it.
4489         (configure.ac): Remove gl_HMAC_MD5 call.
4490         (Makefile.am): Augment lib_SOURCES.
4491
4492 2011-05-23  Bruno Haible  <bruno@clisp.org>
4493
4494         hash: Move AC_LIBOBJ invocations to module description.
4495         * m4/hash.m4: Remove file.
4496         * modules/hash (Files): Remove it.
4497         (configure.ac): Remove gl_HASH call.
4498         (Makefile.am): Augment lib_SOURCES.
4499
4500 2011-05-23  Bruno Haible  <bruno@clisp.org>
4501
4502         hard-locale: Move AC_LIBOBJ invocations to module description.
4503         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4504         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4505
4506 2011-05-23  Bruno Haible  <bruno@clisp.org>
4507
4508         getugroups: Move AC_LIBOBJ invocations to module description.
4509         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4510         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4511
4512 2011-05-23  Bruno Haible  <bruno@clisp.org>
4513
4514         gettime: Move AC_LIBOBJ invocations to module description.
4515         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4516         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4517
4518 2011-05-23  Bruno Haible  <bruno@clisp.org>
4519
4520         getndelim2: Move AC_LIBOBJ invocations to module description.
4521         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4522         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4523
4524 2011-05-23  Bruno Haible  <bruno@clisp.org>
4525
4526         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4527         * m4/gc-pbkdf2-sha1.m4: Remove file.
4528         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4529         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4530         (Makefile.am): Augment lib_SOURCES.
4531
4532 2011-05-23  Bruno Haible  <bruno@clisp.org>
4533
4534         fts: Move AC_LIBOBJ invocations to module description.
4535         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4536         * modules/fts (configure.ac): ... to here.
4537
4538 2011-05-23  Bruno Haible  <bruno@clisp.org>
4539
4540         file-type: Move AC_LIBOBJ invocations to module description.
4541         * m4/file-type.m4: Remove file.
4542         * modules/file-type (Files): Remove it.
4543         (configure.ac): Remove gl_FILE_TYPE call.
4544         (Makefile.am): Augment lib_SOURCES.
4545
4546 2011-05-23  Bruno Haible  <bruno@clisp.org>
4547
4548         filenamecat*: Respect rules for use of AC_LIBOBJ.
4549         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4550         Remove AC_LIBOBJ invocation.
4551         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4552         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4553
4554 2011-05-23  Bruno Haible  <bruno@clisp.org>
4555
4556         filemode: Move AC_LIBOBJ invocations to module description.
4557         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4558         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4559
4560 2011-05-23  Bruno Haible  <bruno@clisp.org>
4561
4562         openat-safer: Move AC_LIBOBJ invocations to module description.
4563         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4564         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4565
4566 2011-05-23  Bruno Haible  <bruno@clisp.org>
4567
4568         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4569         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4570         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4571
4572 2011-05-23  Bruno Haible  <bruno@clisp.org>
4573
4574         exclude: Move AC_LIBOBJ invocations to module description.
4575         * m4/exclude.m4: Remove file.
4576         * modules/exclude (Files): Remove it.
4577         (configure.ac): Remove gl_EXCLUDE call.
4578         (Makefile.am): Augment lib_SOURCES.
4579
4580 2011-05-23  Bruno Haible  <bruno@clisp.org>
4581
4582         dirname*: Respect rules for use of AC_LIBOBJ.
4583         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4584         invocations.
4585         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4586         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4587
4588 2011-05-23  Bruno Haible  <bruno@clisp.org>
4589
4590         dirent-safer: Move AC_LIBOBJ invocations to module description.
4591         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4592         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4593
4594 2011-05-23  Bruno Haible  <bruno@clisp.org>
4595
4596         crypto/des: Move AC_LIBOBJ invocations to module description.
4597         * m4/des.m4: Remove file.
4598         * modules/crypto/des (Files): Remove it.
4599         (configure.ac): Remove gl_DES call.
4600         (Makefile.am): Augment lib_SOURCES.
4601
4602 2011-05-23  Bruno Haible  <bruno@clisp.org>
4603
4604         cycle-check: Move AC_LIBOBJ invocations to module description.
4605         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4606         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4607
4608 2011-05-23  Bruno Haible  <bruno@clisp.org>
4609
4610         c-strtold: Move AC_LIBOBJ invocations to module description.
4611         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4612         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4613
4614 2011-05-23  Bruno Haible  <bruno@clisp.org>
4615
4616         c-strtod: Move AC_LIBOBJ invocations to module description.
4617         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4618         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4619
4620 2011-05-23  Bruno Haible  <bruno@clisp.org>
4621
4622         crc: Move AC_LIBOBJ invocations to module description.
4623         * m4/crc.m4: Remove file.
4624         * modules/crc (Files): Remove it.
4625         (configure.ac): Remove gl_CRC call.
4626         (Makefile.am): Augment lib_SOURCES.
4627
4628 2011-05-23  Bruno Haible  <bruno@clisp.org>
4629
4630         close-stream: Move AC_LIBOBJ invocations to module description.
4631         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4632         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4633
4634 2011-05-23  Bruno Haible  <bruno@clisp.org>
4635
4636         closeout: Move AC_LIBOBJ invocations to module description.
4637         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4638         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4639
4640 2011-05-23  Bruno Haible  <bruno@clisp.org>
4641
4642         closein: Move AC_LIBOBJ invocations to module description.
4643         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4644         * modules/closein (Makefile.am): Augment lib_SOURCES.
4645
4646 2011-05-23  Bruno Haible  <bruno@clisp.org>
4647
4648         cloexec: Move AC_LIBOBJ invocations to module description.
4649         * m4/cloexec.m4: Remove file.
4650         * modules/cloexec (Files): Remove it.
4651         (configure.ac): Remove gl_CLOEXEC call.
4652         (Makefile.am): Augment lib_SOURCES.
4653
4654 2011-05-23  Bruno Haible  <bruno@clisp.org>
4655
4656         check-version: Move AC_LIBOBJ invocations to module description.
4657         * m4/check-version.m4: Remove file.
4658         * modules/check-version (Files): Remove it.
4659         (configure.ac): Remove gl_CHECK_VERSION call.
4660         (Makefile.am): Augment lib_SOURCES.
4661
4662 2011-05-23  Bruno Haible  <bruno@clisp.org>
4663
4664         chdir-safer: Move AC_LIBOBJ invocations to module description.
4665         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4666         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4667
4668 2011-05-23  Bruno Haible  <bruno@clisp.org>
4669
4670         canonicalize: Move AC_LIBOBJ invocations to module description.
4671         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4672         AC_LIBOBJ invocation.
4673         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4674
4675 2011-05-23  Bruno Haible  <bruno@clisp.org>
4676
4677         canon-host: Move AC_LIBOBJ invocations to module description.
4678         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4679         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4680         instead of gl_CANON_HOST.
4681         (Makefile.am): Augment lib_SOURCES.
4682
4683 2011-05-23  Bruno Haible  <bruno@clisp.org>
4684
4685         backupfile: Move AC_LIBOBJ invocations to module description.
4686         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4687         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4688
4689 2011-05-23  Bruno Haible  <bruno@clisp.org>
4690
4691         argmatch: Move AC_LIBOBJ invocations to module description.
4692         * m4/argmatch.m4: Remove file.
4693         * modules/argmatch (Files): Remove it.
4694         (configure.ac): Remove gl_ARGMATCH call.
4695         (Makefile.am): Augment lib_SOURCES.
4696
4697 2011-05-23  Bruno Haible  <bruno@clisp.org>
4698
4699         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4700         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4701         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4702
4703 2011-05-23  Bruno Haible  <bruno@clisp.org>
4704
4705         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4706         * m4/arcfour.m4: Remove file.
4707         * modules/crypto/arcfour (Files): Remove it.
4708         (configure.ac): Remove gl_ARCFOUR call.
4709         (Makefile.am): Augment lib_SOURCES.
4710
4711 2011-05-22  Bruno Haible  <bruno@clisp.org>
4712
4713         write: Move AC_LIBOBJ invocations to module description.
4714         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4715         * modules/write (configure.ac): ... to here.
4716
4717 2011-05-22  Bruno Haible  <bruno@clisp.org>
4718
4719         wmemset: Move AC_LIBOBJ invocations to module description.
4720         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4721         here...
4722         * modules/wmemset (configure.ac): ... to here.
4723
4724 2011-05-22  Bruno Haible  <bruno@clisp.org>
4725
4726         wmemmove: Move AC_LIBOBJ invocations to module description.
4727         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4728         here...
4729         * modules/wmemmove (configure.ac): ... to here.
4730
4731 2011-05-22  Bruno Haible  <bruno@clisp.org>
4732
4733         wmemcpy: Move AC_LIBOBJ invocations to module description.
4734         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4735         here...
4736         * modules/wmemcpy (configure.ac): ... to here.
4737
4738 2011-05-22  Bruno Haible  <bruno@clisp.org>
4739
4740         wmemcmp: Move AC_LIBOBJ invocations to module description.
4741         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4742         here...
4743         * modules/wmemcmp (configure.ac): ... to here.
4744
4745 2011-05-22  Bruno Haible  <bruno@clisp.org>
4746
4747         wmemchr: Move AC_LIBOBJ invocations to module description.
4748         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4749         here...
4750         * modules/wmemchr (configure.ac): ... to here.
4751
4752 2011-05-22  Bruno Haible  <bruno@clisp.org>
4753
4754         wcswidth: Move AC_LIBOBJ invocations to module description.
4755         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4756         here...
4757         * modules/wcswidth (configure.ac): ... to here.
4758
4759 2011-05-22  Bruno Haible  <bruno@clisp.org>
4760
4761         wcwidth: Respect rules for use of AC_LIBOBJ.
4762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4763         invocation from here...
4764         * modules/wcwidth (configure.ac): ... to here.
4765         (Depends-on): Update conditions.
4766
4767 2011-05-22  Bruno Haible  <bruno@clisp.org>
4768
4769         wctype: Move AC_LIBOBJ invocations to module description.
4770         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4771         invocation from here...
4772         * modules/wctype (configure.ac): ... to here.
4773         (Depends-on): Update conditions.
4774
4775 2011-05-22  Bruno Haible  <bruno@clisp.org>
4776
4777         wctrans: Move AC_LIBOBJ invocations to module description.
4778         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4779         invocation from here...
4780         * modules/wctrans (configure.ac): ... to here.
4781
4782 2011-05-22  Bruno Haible  <bruno@clisp.org>
4783
4784         wctomb: Move AC_LIBOBJ invocations to module description.
4785         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4786         invocations from here...
4787         * modules/wctomb (configure.ac): ... to here.
4788
4789 2011-05-22  Bruno Haible  <bruno@clisp.org>
4790
4791         wctob: Move AC_LIBOBJ invocations to module description.
4792         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4793         gl_PREREQ_WCTOB invocations from here...
4794         * modules/wctob (configure.ac): ... to here.
4795         (Depends-on): Update conditions.
4796
4797 2011-05-22  Bruno Haible  <bruno@clisp.org>
4798
4799         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4800         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4801         here...
4802         * modules/wcsxfrm (configure.ac): ... to here.
4803
4804 2011-05-22  Bruno Haible  <bruno@clisp.org>
4805
4806         wcstok: Move AC_LIBOBJ invocations to module description.
4807         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4808         * modules/wcstok (configure.ac): ... to here.
4809
4810 2011-05-22  Bruno Haible  <bruno@clisp.org>
4811
4812         wcsstr: Move AC_LIBOBJ invocations to module description.
4813         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4814         * modules/wcsstr (configure.ac): ... to here.
4815
4816 2011-05-22  Bruno Haible  <bruno@clisp.org>
4817
4818         wcsspn: Move AC_LIBOBJ invocations to module description.
4819         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4820         * modules/wcsspn (configure.ac): ... to here.
4821
4822 2011-05-22  Bruno Haible  <bruno@clisp.org>
4823
4824         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4825         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4826         gl_PREREQ_WCSRTOMBS invocations from here...
4827         * modules/wcsrtombs (configure.ac): ... to here.
4828
4829 2011-05-22  Bruno Haible  <bruno@clisp.org>
4830
4831         wcsrchr: Move AC_LIBOBJ invocations to module description.
4832         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4833         here...
4834         * modules/wcsrchr (configure.ac): ... to here.
4835
4836 2011-05-22  Bruno Haible  <bruno@clisp.org>
4837
4838         wcspbrk: Move AC_LIBOBJ invocations to module description.
4839         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4840         here...
4841         * modules/wcspbrk (configure.ac): ... to here.
4842
4843 2011-05-22  Bruno Haible  <bruno@clisp.org>
4844
4845         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4846         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4847         gl_PREREQ_WCSNRTOMBS invocations from here...
4848         * modules/wcsnrtombs (configure.ac): ... to here.
4849
4850 2011-05-22  Bruno Haible  <bruno@clisp.org>
4851
4852         wcsnlen: Move AC_LIBOBJ invocations to module description.
4853         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4854         here...
4855         * modules/wcsnlen (configure.ac): ... to here.
4856
4857 2011-05-22  Bruno Haible  <bruno@clisp.org>
4858
4859         wcsncpy: Move AC_LIBOBJ invocations to module description.
4860         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4861         here...
4862         * modules/wcsncpy (configure.ac): ... to here.
4863
4864 2011-05-22  Bruno Haible  <bruno@clisp.org>
4865
4866         wcsncmp: Move AC_LIBOBJ invocations to module description.
4867         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4868         here...
4869         * modules/wcsncmp (configure.ac): ... to here.
4870
4871 2011-05-22  Bruno Haible  <bruno@clisp.org>
4872
4873         wcsncat: Move AC_LIBOBJ invocations to module description.
4874         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4875         here...
4876         * modules/wcsncat (configure.ac): ... to here.
4877
4878 2011-05-22  Bruno Haible  <bruno@clisp.org>
4879
4880         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4881         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4882         from here...
4883         * modules/wcsncasecmp (configure.ac): ... to here.
4884
4885 2011-05-22  Bruno Haible  <bruno@clisp.org>
4886
4887         wcslen: Move AC_LIBOBJ invocations to module description.
4888         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4889         * modules/wcslen (configure.ac): ... to here.
4890
4891 2011-05-22  Bruno Haible  <bruno@clisp.org>
4892
4893         wcsdup: Move AC_LIBOBJ invocations to module description.
4894         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4895         * modules/wcsdup (configure.ac): ... to here.
4896
4897 2011-05-22  Bruno Haible  <bruno@clisp.org>
4898
4899         wcscspn: Move AC_LIBOBJ invocations to module description.
4900         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4901         here...
4902         * modules/wcscspn (configure.ac): ... to here.
4903
4904 2011-05-22  Bruno Haible  <bruno@clisp.org>
4905
4906         wcscpy: Move AC_LIBOBJ invocations to module description.
4907         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4908         * modules/wcscpy (configure.ac): ... to here.
4909
4910 2011-05-22  Bruno Haible  <bruno@clisp.org>
4911
4912         wcscoll: Move AC_LIBOBJ invocations to module description.
4913         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4914         here...
4915         * modules/wcscoll (configure.ac): ... to here.
4916
4917 2011-05-22  Bruno Haible  <bruno@clisp.org>
4918
4919         wcscmp: Move AC_LIBOBJ invocations to module description.
4920         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4921         * modules/wcscmp (configure.ac): ... to here.
4922
4923 2011-05-22  Bruno Haible  <bruno@clisp.org>
4924
4925         wcschr: Move AC_LIBOBJ invocations to module description.
4926         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4927         * modules/wcschr (configure.ac): ... to here.
4928
4929 2011-05-22  Bruno Haible  <bruno@clisp.org>
4930
4931         wcscat: Move AC_LIBOBJ invocations to module description.
4932         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4933         * modules/wcscat (configure.ac): ... to here.
4934
4935 2011-05-22  Bruno Haible  <bruno@clisp.org>
4936
4937         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4938         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4939         here...
4940         * modules/wcscasecmp (configure.ac): ... to here.
4941
4942 2011-05-22  Bruno Haible  <bruno@clisp.org>
4943
4944         wcrtomb: Move AC_LIBOBJ invocations to module description.
4945         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4946         invocations from here...
4947         * modules/wcrtomb (configure.ac): ... to here.
4948
4949 2011-05-22  Bruno Haible  <bruno@clisp.org>
4950
4951         wcpncpy: Move AC_LIBOBJ invocations to module description.
4952         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4953         here...
4954         * modules/wcpncpy (configure.ac): ... to here.
4955
4956 2011-05-22  Bruno Haible  <bruno@clisp.org>
4957
4958         wcpcpy: Move AC_LIBOBJ invocations to module description.
4959         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4960         * modules/wcpcpy (configure.ac): ... to here.
4961
4962 2011-05-22  Bruno Haible  <bruno@clisp.org>
4963
4964         waitpid: Move AC_LIBOBJ invocations to module description.
4965         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4966         invocation from here...
4967         * modules/waitpid (configure.ac): ... to here.
4968
4969 2011-05-22  Bruno Haible  <bruno@clisp.org>
4970
4971         utimensat: Move AC_LIBOBJ invocations to module description.
4972         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4973         here...
4974         * modules/utimensat (configure.ac): ... to here.
4975
4976 2011-05-22  Bruno Haible  <bruno@clisp.org>
4977
4978         usleep: Move AC_LIBOBJ invocations to module description.
4979         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4980         here...
4981         * modules/usleep (configure.ac): ... to here.
4982
4983 2011-05-22  Bruno Haible  <bruno@clisp.org>
4984
4985         unlockpt: Move AC_LIBOBJ invocations to module description.
4986         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4987         gl_PREREQ_UNLOCKPT invocations from here...
4988         * modules/unlockpt (configure.ac): ... to here.
4989
4990 2011-05-22  Bruno Haible  <bruno@clisp.org>
4991
4992         unlink: Respect rules for use of AC_LIBOBJ.
4993         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4994         * modules/unlink (configure.ac): ... to here.
4995
4996 2011-05-22  Bruno Haible  <bruno@clisp.org>
4997
4998         uname: Move AC_LIBOBJ invocations to module description.
4999         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5000         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5001         here...
5002         * modules/uname (configure.ac): ... to here.
5003
5004 2011-05-22  Bruno Haible  <bruno@clisp.org>
5005
5006         ttyname_r: Move AC_LIBOBJ invocations to module description.
5007         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5008         gl_PREREQ_TTYNAME_R invocations from here...
5009         * modules/ttyname_r (configure.ac): ... to here.
5010
5011 2011-05-22  Bruno Haible  <bruno@clisp.org>
5012
5013         tsearch: Move AC_LIBOBJ invocations to module description.
5014         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5015         invocations from here...
5016         * modules/tsearch (configure.ac): ... to here.
5017
5018 2011-05-22  Bruno Haible  <bruno@clisp.org>
5019
5020         towctrans: Move AC_LIBOBJ invocations to module description.
5021         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5022         AC_LIBOBJ invocation from here...
5023         * modules/towctrans (configure.ac): ... to here.
5024
5025 2011-05-22  Bruno Haible  <bruno@clisp.org>
5026
5027         tmpfile: Move AC_LIBOBJ invocations to module description.
5028         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5029         invocations from here...
5030         * modules/tmpfile (configure.ac): ... to here.
5031
5032 2011-05-22  Bruno Haible  <bruno@clisp.org>
5033
5034         times: Move AC_LIBOBJ invocations to module description.
5035         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5036         * modules/times (configure.ac): ... to here.
5037
5038 2011-05-22  Bruno Haible  <bruno@clisp.org>
5039
5040         time_r: Move AC_LIBOBJ invocations to module description.
5041         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5042         invocations from here...
5043         * modules/time_r (configure.ac): ... to here.
5044
5045 2011-05-22  Bruno Haible  <bruno@clisp.org>
5046
5047         timegm: Move AC_LIBOBJ invocations to module description.
5048         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5049         invocations from here...
5050         * modules/timegm (configure.ac): ... to here.
5051
5052 2011-05-22  Bruno Haible  <bruno@clisp.org>
5053
5054         tcgetsid: Move AC_LIBOBJ invocations to module description.
5055         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5056         and gl_PREREQ_TCGETSID invocations from here...
5057         * modules/tcgetsid (configure.ac): ... to here.
5058         (Depends-on): Update conditions.
5059
5060 2011-05-22  Bruno Haible  <bruno@clisp.org>
5061
5062         symlinkat: Move AC_LIBOBJ invocations to module description.
5063         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5064         here...
5065         * modules/symlinkat (configure.ac): ... to here.
5066
5067 2011-05-22  Bruno Haible  <bruno@clisp.org>
5068
5069         symlink: Move AC_LIBOBJ invocations to module description.
5070         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5071         here...
5072         * modules/symlink (configure.ac): ... to here.
5073
5074 2011-05-22  Bruno Haible  <bruno@clisp.org>
5075
5076         strverscmp: Move AC_LIBOBJ invocations to module description.
5077         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5078         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5079         from here...
5080         * modules/strverscmp (configure.ac): ... to here.
5081
5082 2011-05-22  Bruno Haible  <bruno@clisp.org>
5083
5084         strtok_r: Move AC_LIBOBJ invocations to module description.
5085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5086         and gl_PREREQ_STRTOK_R invocations from here...
5087         * modules/strtok_r (configure.ac): ... to here.
5088         (Depends-on): Update conditions.
5089
5090 2011-05-22  Bruno Haible  <bruno@clisp.org>
5091
5092         strtoumax: Move AC_LIBOBJ invocations to module description.
5093         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5095         from here...
5096         * modules/strtoumax (configure.ac): ... to here.
5097
5098 2011-05-22  Bruno Haible  <bruno@clisp.org>
5099
5100         strtoimax: Move AC_LIBOBJ invocations to module description.
5101         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5102         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5103         from here...
5104         * modules/strtoimax (configure.ac): ... to here.
5105
5106 2011-05-22  Bruno Haible  <bruno@clisp.org>
5107
5108         strtoull: Move AC_LIBOBJ invocations to module description.
5109         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5110         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5111         from here...
5112         * modules/strtoull (configure.ac): ... to here.
5113
5114 2011-05-22  Bruno Haible  <bruno@clisp.org>
5115
5116         strtoll: Move AC_LIBOBJ invocations to module description.
5117         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5118         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5119         here...
5120         * modules/strtoll (configure.ac): ... to here.
5121
5122 2011-05-22  Bruno Haible  <bruno@clisp.org>
5123
5124         strtoul: Move AC_LIBOBJ invocations to module description.
5125         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5126         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5127         * modules/strtoul (configure.ac): ... to here.
5128
5129 2011-05-22  Bruno Haible  <bruno@clisp.org>
5130
5131         strtol: Move AC_LIBOBJ invocations to module description.
5132         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5133         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5134         * modules/strtol (configure.ac): ... to here.
5135
5136 2011-05-22  Bruno Haible  <bruno@clisp.org>
5137
5138         strtod: Move AC_LIBOBJ invocations to module description.
5139         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5140         invocations from here...
5141         * modules/strtod (configure.ac): ... to here.
5142
5143 2011-05-22  Bruno Haible  <bruno@clisp.org>
5144
5145         strstr*: Move AC_LIBOBJ invocations to module description.
5146         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5147         invocations from here...
5148         * modules/strstr-simple (configure.ac): ... to here.
5149         * modules/strstr (configure.ac): ... and here.
5150
5151 2011-05-22  Bruno Haible  <bruno@clisp.org>
5152
5153         strsignal: Move AC_LIBOBJ invocations to module description.
5154         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5155         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5156         * modules/strsignal (configure.ac): ... to here.
5157         (Depends-on): Update conditions.
5158
5159 2011-05-22  Bruno Haible  <bruno@clisp.org>
5160
5161         strsep: Move AC_LIBOBJ invocations to module description.
5162         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5163         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5164         here...
5165         * modules/strsep (configure.ac): ... to here.
5166
5167 2011-05-22  Bruno Haible  <bruno@clisp.org>
5168
5169         strptime: Move AC_LIBOBJ invocations to module description.
5170         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5171         gl_PREREQ_STRPTIME invocations from here...
5172         * modules/strptime (configure.ac): ... to here.
5173
5174 2011-05-22  Bruno Haible  <bruno@clisp.org>
5175
5176         strpbrk: Move AC_LIBOBJ invocations to module description.
5177         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5178         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5179         here...
5180         * modules/strpbrk (configure.ac): ... to here.
5181
5182 2011-05-22  Bruno Haible  <bruno@clisp.org>
5183
5184         strnlen: Move AC_LIBOBJ invocations to module description.
5185         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5186         invocations from here...
5187         * modules/strnlen (configure.ac): ... to here.
5188
5189 2011-05-22  Bruno Haible  <bruno@clisp.org>
5190
5191         strndup: Move AC_LIBOBJ invocations to module description.
5192         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5193         invocations from here...
5194         * modules/strndup (configure.ac): ... to here.
5195         (Depends-on): Update conditions.
5196
5197 2011-05-22  Bruno Haible  <bruno@clisp.org>
5198
5199         strncat: Move AC_LIBOBJ invocations to module description.
5200         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5201         invocations from here...
5202         * modules/strncat (configure.ac): ... to here.
5203
5204 2011-05-22  Bruno Haible  <bruno@clisp.org>
5205
5206         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5207         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5208         invocations from here...
5209         * modules/strdup (configure.ac): ... to here.
5210         * modules/strdup-posix (configure.ac): ... and here.
5211
5212 2011-05-22  Bruno Haible  <bruno@clisp.org>
5213
5214         strcspn: Move AC_LIBOBJ invocations to module description.
5215         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5216         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5217         here...
5218         * modules/strcspn (configure.ac): ... to here.
5219
5220 2011-05-22  Bruno Haible  <bruno@clisp.org>
5221
5222         strchrnul: Move AC_LIBOBJ invocations to module description.
5223         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5224         gl_PREREQ_STRCHRNUL invocations from here...
5225         * modules/strchrnul (configure.ac): ... to here.
5226
5227 2011-05-22  Bruno Haible  <bruno@clisp.org>
5228
5229         strcasestr*: Move AC_LIBOBJ invocations to module description.
5230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5231         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5232         * modules/strcasestr-simple (configure.ac): ... to here.
5233         * modules/strcasestr (configure.ac): ... and here.
5234
5235 2011-05-22  Bruno Haible  <bruno@clisp.org>
5236
5237         strcase: Move AC_LIBOBJ invocations to module description.
5238         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5239         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5240         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5241         gl_PREREQ_STRNCASECMP invocations from here...
5242         * modules/strcase (configure.ac): ... to here.
5243
5244 2011-05-22  Bruno Haible  <bruno@clisp.org>
5245
5246         stpncpy: Move AC_LIBOBJ invocations to module description.
5247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5248         here...
5249         * modules/stpncpy (configure.ac): ... to here.
5250
5251 2011-05-22  Bruno Haible  <bruno@clisp.org>
5252
5253         stpcpy: Move AC_LIBOBJ invocations to module description.
5254         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5255         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5256         here...
5257         * modules/stpcpy (configure.ac): ... to here.
5258
5259 2011-05-21  Bruno Haible  <bruno@clisp.org>
5260
5261         stat: Move AC_LIBOBJ invocations to module description.
5262         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5263         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5264         here...
5265         * modules/stat (configure.ac): ... to here.
5266
5267 2011-05-21  Bruno Haible  <bruno@clisp.org>
5268
5269         sleep: Move AC_LIBOBJ invocations to module description.
5270         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5271         * modules/sleep (configure.ac): ... to here.
5272
5273 2011-05-21  Bruno Haible  <bruno@clisp.org>
5274
5275         signbit: Move AC_LIBOBJ invocations to module description.
5276         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5277         * modules/signbit (configure.ac): ... to here.
5278
5279 2011-05-21  Bruno Haible  <bruno@clisp.org>
5280
5281         sigprocmask: Move AC_LIBOBJ invocations to module description.
5282         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5283         gl_PREREQ_SIGPROMASK invocations from here...
5284         * modules/sigprocmask (configure.ac): ... to here.
5285
5286 2011-05-21  Bruno Haible  <bruno@clisp.org>
5287
5288         sigaction: Move AC_LIBOBJ invocations to module description.
5289         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5290         gl_PREREQ_SIGACTION invocations from here...
5291         * modules/sigaction (configure.ac): ... to here.
5292
5293 2011-05-21  Bruno Haible  <bruno@clisp.org>
5294
5295         sig2str: Move AC_LIBOBJ invocations to module description.
5296         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5298         here...
5299         * modules/sig2str (configure.ac): ... to here.
5300
5301 2011-05-21  Bruno Haible  <bruno@clisp.org>
5302
5303         setlocale: Move AC_LIBOBJ invocations to module description.
5304         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5305         gl_PREREQ_SETLOCALE invocations from here...
5306         * modules/setlocale (configure.ac): ... to here.
5307
5308 2011-05-21  Bruno Haible  <bruno@clisp.org>
5309
5310         unsetenv: Move AC_LIBOBJ invocations to module description.
5311         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5312         and gl_PREREQ_UNSETENV invocations from here...
5313         * modules/unsetenv (configure.ac): ... to here.
5314         (Depends-on): Update.
5315
5316 2011-05-21  Bruno Haible  <bruno@clisp.org>
5317
5318         setenv: Move AC_LIBOBJ invocations to module description.
5319         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5320         here...
5321         * modules/setenv (configure.ac): ... to here.
5322
5323 2011-05-21  Bruno Haible  <bruno@clisp.org>
5324
5325         selinux-h: Move AC_LIBOBJ invocations to module description.
5326         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5327         AC_LIBOBJ invocation from here...
5328         * modules/selinux-h (configure.ac): ... to here.
5329
5330 2011-05-21  Bruno Haible  <bruno@clisp.org>
5331
5332         select: Respect rules for use of AC_LIBOBJ.
5333         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5334         here...
5335         * modules/select (configure.ac): ... to here.
5336
5337 2011-05-21  Bruno Haible  <bruno@clisp.org>
5338
5339         scandir: Move AC_LIBOBJ invocations to module description.
5340         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5341         invocations from here...
5342         * modules/scandir (configure.ac): ... to here.
5343
5344 2011-05-21  Bruno Haible  <bruno@clisp.org>
5345
5346         rpmatch: Move AC_LIBOBJ invocations to module description.
5347         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5348         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5349         here...
5350         * modules/rpmatch (configure.ac): ... to here.
5351
5352 2011-05-21  Bruno Haible  <bruno@clisp.org>
5353
5354         rmdir: Respect rules for use of AC_LIBOBJ.
5355         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5356         * modules/rmdir (configure.ac): ... to here.
5357
5358 2011-05-21  Bruno Haible  <bruno@clisp.org>
5359
5360         renameat: Move AC_LIBOBJ invocations to module description.
5361         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5362         here...
5363         * modules/renameat (configure.ac): ... to here.
5364
5365 2011-05-21  Bruno Haible  <bruno@clisp.org>
5366
5367         rename: Respect rules for use of AC_LIBOBJ.
5368         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5369         here...
5370         * modules/rename (configure.ac): ... to here.
5371
5372 2011-05-21  Bruno Haible  <bruno@clisp.org>
5373
5374         remove: Move AC_LIBOBJ invocations to module description.
5375         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5376         here...
5377         * modules/remove (configure.ac): ... to here.
5378
5379 2011-05-21  Bruno Haible  <bruno@clisp.org>
5380
5381         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5382         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5383         macro.
5384         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5385         * modules/relocatable-lib (configure.ac): ... to here.
5386         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5387         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5388
5389 2011-05-21  Bruno Haible  <bruno@clisp.org>
5390
5391         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5392         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5393         here...
5394         * modules/relocatable-prog (configure.ac): ... to here.
5395
5396 2011-05-21  Bruno Haible  <bruno@clisp.org>
5397
5398         regex: Move AC_LIBOBJ invocations to module description.
5399         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5400         invocations from here...
5401         * modules/regex (configure.ac): ... to here.
5402
5403 2011-05-21  Bruno Haible  <bruno@clisp.org>
5404
5405         realloc-*: Move AC_LIBOBJ invocations to module description.
5406         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5407         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5408         AC_LIBOBJ invocations from here...
5409         * modules/realloc-gnu (configure.ac): ... to here.
5410         * modules/realloc-posix (configure.ac): ... and here.
5411
5412 2011-05-21  Bruno Haible  <bruno@clisp.org>
5413
5414         readutmp: Move AC_LIBOBJ invocations to module description.
5415         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5416         * modules/readutmp (configure.ac): ... to here.
5417
5418 2011-05-21  Bruno Haible  <bruno@clisp.org>
5419
5420         readlinkat: Move AC_LIBOBJ invocations to module description.
5421         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5422         here...
5423         * modules/readlinkat (configure.ac): ... to here.
5424
5425 2011-05-21  Bruno Haible  <bruno@clisp.org>
5426
5427         readlink: Move AC_LIBOBJ invocations to module description.
5428         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5429         gl_PREREQ_READLINK invocations from here...
5430         * modules/readlink (configure.ac): ... to here.
5431
5432 2011-05-21  Bruno Haible  <bruno@clisp.org>
5433
5434         readline: Move AC_LIBOBJ invocations to module description.
5435         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5436         gl_PREREQ_READLINE invocations from here...
5437         * modules/readline (configure.ac): ... to here.
5438
5439 2011-05-21  Bruno Haible  <bruno@clisp.org>
5440
5441         read: Move AC_LIBOBJ invocations to module description.
5442         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5443         * modules/read (configure.ac): ... to here.
5444
5445 2011-05-21  Bruno Haible  <bruno@clisp.org>
5446
5447         rawmemchr: Move AC_LIBOBJ invocations to module description.
5448         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5449         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5450         from here...
5451         * modules/rawmemchr (configure.ac): ... to here.
5452
5453 2011-05-21  Bruno Haible  <bruno@clisp.org>
5454
5455         random_r: Move AC_LIBOBJ invocations to module description.
5456         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5457         gl_PREREQ_RANDOM_R invocations from here...
5458         * modules/random_r (configure.ac): ... to here.
5459
5460 2011-05-21  Bruno Haible  <bruno@clisp.org>
5461
5462         pwrite: Move AC_LIBOBJ invocations to module description.
5463         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5464         * modules/pwrite (configure.ac): ... to here.
5465
5466 2011-05-21  Bruno Haible  <bruno@clisp.org>
5467
5468         putenv: Move AC_LIBOBJ invocations to module description.
5469         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5470         * modules/putenv (configure.ac): ... to here.
5471
5472 2011-05-21  Bruno Haible  <bruno@clisp.org>
5473
5474         login_tty: Move AC_LIBOBJ invocations to module description.
5475         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5476         * modules/login_tty (configure.ac): ... to here.
5477
5478 2011-05-21  Bruno Haible  <bruno@clisp.org>
5479
5480         openpty: Move AC_LIBOBJ invocations to module description.
5481         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5482         * modules/openpty (configure.ac): ... to here.
5483
5484 2011-05-21  Bruno Haible  <bruno@clisp.org>
5485
5486         forkpty: Move AC_LIBOBJ invocations to module description.
5487         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5488         * modules/forkpty (configure.ac): ... to here.
5489
5490 2011-05-21  Bruno Haible  <bruno@clisp.org>
5491
5492         ptsname: Move AC_LIBOBJ invocations to module description.
5493         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5494         invocations from here...
5495         * modules/ptsname (configure.ac): ... to here.
5496
5497 2011-05-21  Bruno Haible  <bruno@clisp.org>
5498
5499         pread: Move AC_LIBOBJ invocations to module description.
5500         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5501         * modules/pread (configure.ac): ... to here.
5502
5503 2011-05-21  Bruno Haible  <bruno@clisp.org>
5504
5505         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5506         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5507         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5508         * modules/posix_spawn (configure.ac): ... to here.
5509         * modules/posix_spawnp (configure.ac): ... and here.
5510
5511 2011-05-21  Bruno Haible  <bruno@clisp.org>
5512
5513         popen: Move AC_LIBOBJ invocations to module description.
5514         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5515         invocations from here...
5516         * modules/popen (configure.ac): ... to here.
5517
5518 2011-05-21  Bruno Haible  <bruno@clisp.org>
5519
5520         poll: Move AC_LIBOBJ invocations to module description.
5521         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5522         invocations from here...
5523         * modules/poll (configure.ac): ... to here.
5524
5525 2011-05-21  Bruno Haible  <bruno@clisp.org>
5526
5527         pipe-posix: Move AC_LIBOBJ invocations to module description.
5528         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5529         * modules/pipe-posix (configure.ac): ... to here.
5530
5531 2011-05-21  Bruno Haible  <bruno@clisp.org>
5532
5533         openat: Respect rules for use of AC_LIBOBJ.
5534         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5535         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5536         * modules/openat (configure.ac): ... to here.
5537
5538 2011-05-21  Bruno Haible  <bruno@clisp.org>
5539
5540         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5541         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5542         invocation from here...
5543         * modules/obstack-printf (configure.ac): ... to here.
5544         * modules/obstack-printf-posix (configure.ac): ... and here.
5545
5546 2011-05-21  Bruno Haible  <bruno@clisp.org>
5547
5548         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5549         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5550         from here...
5551         * modules/nl_langinfo (configure.ac): ... to here.
5552
5553 2011-05-21  Bruno Haible  <bruno@clisp.org>
5554
5555         nanosleep: Move AC_LIBOBJ invocations to module description.
5556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5557         gl_PREREQ_NANOSLEEP invocations from here...
5558         * modules/nanosleep (configure.ac): ... to here.
5559
5560 2011-05-21  Bruno Haible  <bruno@clisp.org>
5561
5562         mountlist: Move AC_LIBOBJ invocations to module description.
5563         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5564         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5565         * modules/mountlist (configure.ac): ... to here.
5566
5567 2011-05-21  Bruno Haible  <bruno@clisp.org>
5568
5569         mktime: Respect rules for use of AC_LIBOBJ.
5570         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5571         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5572         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5573         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5574         * modules/mktime (configure.ac): ... to here.
5575         * modules/mktime-internal (configure.ac): ... and here.
5576         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5577
5578 2011-05-21  Bruno Haible  <bruno@clisp.org>
5579
5580         mkstemps: Move AC_LIBOBJ invocations to module description.
5581         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5582         here...
5583         * modules/mkstemps (configure.ac): ... to here.
5584
5585 2011-05-21  Bruno Haible  <bruno@clisp.org>
5586
5587         mkstemp: Move AC_LIBOBJ invocations to module description.
5588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5589         gl_PREREQ_MKSTEMP invocations from here...
5590         * modules/mkstemp (configure.ac): ... to here.
5591
5592 2011-05-21  Bruno Haible  <bruno@clisp.org>
5593
5594         mkostemps: Move AC_LIBOBJ invocations to module description.
5595         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5596         here...
5597         * modules/mkostemps (configure.ac): ... to here.
5598
5599 2011-05-21  Bruno Haible  <bruno@clisp.org>
5600
5601         mkostemp: Move AC_LIBOBJ invocations to module description.
5602         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5603         gl_PREREQ_MKOSTEMP invocations from here...
5604         * modules/mkostemp (configure.ac): ... to here.
5605
5606 2011-05-21  Bruno Haible  <bruno@clisp.org>
5607
5608         mknod: Move AC_LIBOBJ invocations to module description.
5609         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5610         * modules/mknod (configure.ac): ... to here.
5611
5612 2011-05-21  Bruno Haible  <bruno@clisp.org>
5613
5614         mkfifoat: Move AC_LIBOBJ invocations to module description.
5615         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5616         here...
5617         * modules/mkfifoat (configure.ac): ... to here.
5618
5619 2011-05-21  Bruno Haible  <bruno@clisp.org>
5620
5621         mkfifo: Respect rules for use of AC_LIBOBJ.
5622         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5623         here...
5624         * modules/mkfifo (configure.ac): ... to here.
5625
5626 2011-05-21  Bruno Haible  <bruno@clisp.org>
5627
5628         mkdtemp: Move AC_LIBOBJ invocations to module description.
5629         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5630         invocations from here...
5631         * modules/mkdtemp (configure.ac): ... to here.
5632
5633 2011-05-21  Bruno Haible  <bruno@clisp.org>
5634
5635         mkdir: Move AC_LIBOBJ invocations to module description.
5636         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5637         * modules/mkdir (configure.ac): ... to here.
5638
5639 2011-05-21  Bruno Haible  <bruno@clisp.org>
5640
5641         memset: Move AC_LIBOBJ invocations to module description.
5642         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5643         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5644         here...
5645         * modules/memset (configure.ac): ... to here.
5646
5647 2011-05-21  Bruno Haible  <bruno@clisp.org>
5648
5649         memrchr: Move AC_LIBOBJ invocations to module description.
5650         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5652         here...
5653         * modules/memrchr (configure.ac): ... to here.
5654
5655 2011-05-21  Bruno Haible  <bruno@clisp.org>
5656
5657         mempcpy: Move AC_LIBOBJ invocations to module description.
5658         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5659         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5660         here...
5661         * modules/mempcpy (configure.ac): ... to here.
5662
5663 2011-05-21  Bruno Haible  <bruno@clisp.org>
5664
5665         memmove: Move AC_LIBOBJ invocations to module description.
5666         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5667         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5668         here...
5669         * modules/memmove (configure.ac): ... to here.
5670
5671 2011-05-21  Bruno Haible  <bruno@clisp.org>
5672
5673         memmem*: Move AC_LIBOBJ invocations to module description.
5674         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5675         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5676         here...
5677         (gl_FUNC_MEMMEM): ... and here...
5678         * modules/memmem-simple (configure.ac): ... to here.
5679         * modules/memmem (configure.ac): ... and here.
5680
5681 2011-05-21  Bruno Haible  <bruno@clisp.org>
5682
5683         memcpy: Move AC_LIBOBJ invocations to module description.
5684         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5685         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5686         here...
5687         * modules/memcpy (configure.ac): ... to here.
5688
5689 2011-05-21  Bruno Haible  <bruno@clisp.org>
5690
5691         memcmp: Simplify autoconf macro.
5692         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5693         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5694         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5695
5696 2011-05-21  Bruno Haible  <bruno@clisp.org>
5697
5698         memcmp: Move AC_LIBOBJ invocations to module description.
5699         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5700         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5701         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5702         * modules/memcmp (configure.ac): ... to here.
5703         (Depends-on): Update conditions.
5704
5705 2011-05-21  Bruno Haible  <bruno@clisp.org>
5706
5707         memchr: Respect rules for use of AC_LIBOBJ.
5708         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5709         invocations from here...
5710         * modules/memchr (configure.ac): ... to here.
5711
5712 2011-05-21  Bruno Haible  <bruno@clisp.org>
5713
5714         mbtowc: Move AC_LIBOBJ invocations to module description.
5715         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5716         invocations from here...
5717         * modules/mbtowc (configure.ac): ... to here.
5718
5719 2011-05-21  Bruno Haible  <bruno@clisp.org>
5720
5721         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5722         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5723         gl_PREREQ_MBSRTOWCS invocations from here...
5724         * modules/mbsrtowcs (configure.ac): ... to here.
5725
5726 2011-05-21  Bruno Haible  <bruno@clisp.org>
5727
5728         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5729         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5730         gl_PREREQ_MBSNRTOWCS invocations from here...
5731         * modules/mbsnrtowcs (configure.ac): ... to here.
5732
5733 2011-05-21  Bruno Haible  <bruno@clisp.org>
5734
5735         mbsinit: Move AC_LIBOBJ invocations to module description.
5736         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5737         invocations from here...
5738         * modules/mbsinit (configure.ac): ... to here.
5739
5740 2011-05-21  Bruno Haible  <bruno@clisp.org>
5741
5742         mbrlen: Move AC_LIBOBJ invocations to module description.
5743         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5744         invocations from here...
5745         * modules/mbrlen (configure.ac): ... to here.
5746
5747 2011-05-21  Bruno Haible  <bruno@clisp.org>
5748
5749         mbrtowc: Respect rules for use of AC_LIBOBJ.
5750         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5751         invocations from here...
5752         * modules/mbrtowc (configure.ac): ... to here.
5753
5754 2011-05-21  Bruno Haible  <bruno@clisp.org>
5755
5756         malloc-*: Move AC_LIBOBJ invocations to module description.
5757         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5758         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5759         AC_LIBOBJ invocations from here...
5760         * modules/malloc-gnu (configure.ac): ... to here.
5761         * modules/malloc-posix (configure.ac): ... and here.
5762
5763 2011-05-21  Bruno Haible  <bruno@clisp.org>
5764
5765         lstat, openat: Respect rules for use of AC_LIBOBJ.
5766         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5767         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5768         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5769         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5770         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5771         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5772         here.
5773         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5774
5775 2011-05-21  Bruno Haible  <bruno@clisp.org>
5776
5777         lseek: Move AC_LIBOBJ invocations to module description.
5778         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5779         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5780         * modules/lseek (configure.ac): ... to here.
5781
5782 2011-05-21  Bruno Haible  <bruno@clisp.org>
5783
5784         linkat: Move AC_LIBOBJ invocations to module description.
5785         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5786         here...
5787         * modules/linkat (configure.ac): ... to here.
5788
5789 2011-05-21  Bruno Haible  <bruno@clisp.org>
5790
5791         link: Respect rules for use of AC_LIBOBJ.
5792         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5793         * modules/link (configure.ac): ... to here.
5794
5795 2011-05-21  Bruno Haible  <bruno@clisp.org>
5796
5797         lchown: Move AC_LIBOBJ invocations to module description.
5798         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5799         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5800         * modules/lchown (configure.ac): ... to here.
5801
5802 2011-05-21  Bruno Haible  <bruno@clisp.org>
5803
5804         iswctype: Move AC_LIBOBJ invocations to module description.
5805         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5806         here...
5807         * modules/iswctype (configure.ac): ... to here.
5808
5809 2011-05-21  Bruno Haible  <bruno@clisp.org>
5810
5811         iswblank: Move AC_LIBOBJ invocations to module description.
5812         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5813         here...
5814         * modules/iswblank (configure.ac): ... to here.
5815
5816 2011-05-21  Bruno Haible  <bruno@clisp.org>
5817
5818         atanl: Move AC_LIBOBJ invocations to module description.
5819         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5820         * modules/atanl (configure.ac): ... to here.
5821
5822 2011-05-21  Bruno Haible  <bruno@clisp.org>
5823
5824         acosl: Move AC_LIBOBJ invocations to module description.
5825         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5826         * modules/acosl (configure.ac): ... to here.
5827
5828 2011-05-21  Bruno Haible  <bruno@clisp.org>
5829
5830         asinl: Respect rules for use of AC_LIBOBJ.
5831         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5832         * modules/asinl (configure.ac): ... to here.
5833
5834 2011-05-21  Bruno Haible  <bruno@clisp.org>
5835
5836         tanl: Move AC_LIBOBJ invocations to module description.
5837         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5838         * modules/tanl (configure.ac): ... to here.
5839
5840 2011-05-21  Bruno Haible  <bruno@clisp.org>
5841
5842         cosl: Move AC_LIBOBJ invocations to module description.
5843         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5844         * modules/cosl (configure.ac): ... to here.
5845
5846 2011-05-21  Bruno Haible  <bruno@clisp.org>
5847
5848         sinl: Move AC_LIBOBJ invocations to module description.
5849         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5850         * modules/sinl (configure.ac): ... to here.
5851
5852 2011-05-21  Bruno Haible  <bruno@clisp.org>
5853
5854         logl: Move AC_LIBOBJ invocations to module description.
5855         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5856         * modules/logl (configure.ac): ... to here.
5857
5858 2011-05-21  Bruno Haible  <bruno@clisp.org>
5859
5860         expl: Move AC_LIBOBJ invocations to module description.
5861         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5862         * modules/expl (configure.ac): ... to here.
5863
5864 2011-05-21  Bruno Haible  <bruno@clisp.org>
5865
5866         roundl: Move AC_LIBOBJ invocations to module description.
5867         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5868         * modules/roundl (configure.ac): ... to here.
5869
5870 2011-05-21  Bruno Haible  <bruno@clisp.org>
5871
5872         round: Move AC_LIBOBJ invocations to module description.
5873         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5874         * modules/round (configure.ac): ... to here.
5875
5876 2011-05-21  Bruno Haible  <bruno@clisp.org>
5877
5878         roundf: Move AC_LIBOBJ invocations to module description.
5879         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5880         * modules/roundf (configure.ac): ... to here.
5881
5882 2011-05-21  Bruno Haible  <bruno@clisp.org>
5883
5884         truncl: Move AC_LIBOBJ invocations to module description.
5885         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5886         * modules/truncl (configure.ac): ... to here.
5887
5888 2011-05-21  Bruno Haible  <bruno@clisp.org>
5889
5890         trunc: Move AC_LIBOBJ invocations to module description.
5891         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5892         * modules/trunc (configure.ac): ... to here.
5893
5894 2011-05-21  Bruno Haible  <bruno@clisp.org>
5895
5896         truncf: Move AC_LIBOBJ invocations to module description.
5897         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5898         * modules/truncf (configure.ac): ... to here.
5899
5900 2011-05-21  Bruno Haible  <bruno@clisp.org>
5901
5902         ceill: Move AC_LIBOBJ invocations to module description.
5903         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5904         * modules/ceill (configure.ac): ... to here.
5905
5906 2011-05-21  Bruno Haible  <bruno@clisp.org>
5907
5908         ceil: Move AC_LIBOBJ invocations to module description.
5909         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5910         * modules/ceil (configure.ac): ... to here.
5911
5912 2011-05-21  Bruno Haible  <bruno@clisp.org>
5913
5914         ceilf: Move AC_LIBOBJ invocations to module description.
5915         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5916         * modules/ceilf (configure.ac): ... to here.
5917
5918 2011-05-21  Bruno Haible  <bruno@clisp.org>
5919
5920         floorl: Respect rules for use of AC_LIBOBJ.
5921         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5922         * modules/floorl (configure.ac): ... to here.
5923
5924 2011-05-21  Bruno Haible  <bruno@clisp.org>
5925
5926         floor: Respect rules for use of AC_LIBOBJ.
5927         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5928         * modules/floor (configure.ac): ... to here.
5929
5930 2011-05-21  Bruno Haible  <bruno@clisp.org>
5931
5932         floorf: Move AC_LIBOBJ invocations to module description.
5933         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5934         * modules/floorf (configure.ac): ... to here.
5935
5936 2011-05-20  Bruno Haible  <bruno@clisp.org>
5937
5938         sqrtl: Respect rules for use of AC_LIBOBJ.
5939         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5940         * modules/sqrtl (configure.ac): ... to here.
5941
5942 2011-05-20  Bruno Haible  <bruno@clisp.org>
5943
5944         ldexpl: Respect rules for use of AC_LIBOBJ.
5945         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5946         * modules/ldexpl (configure.ac): ... to here.
5947
5948 2011-05-20  Bruno Haible  <bruno@clisp.org>
5949
5950         frexpl*: Respect rules for use of AC_LIBOBJ.
5951         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5952         invocation from here...
5953         * modules/frexpl (configure.ac): ... to here.
5954         * modules/frexpl-nolibm (configure.ac): ... and here.
5955
5956 2011-05-20  Bruno Haible  <bruno@clisp.org>
5957
5958         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5959         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5960         invocation from here...
5961         * modules/frexp (configure.ac): ... to here.
5962         * modules/frexp-nolibm (configure.ac): ... and here.
5963
5964 2011-05-20  Bruno Haible  <bruno@clisp.org>
5965
5966         isnan: Respect rules for use of AC_LIBOBJ.
5967         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5968         invocations here.
5969         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5970         REPLACE_ISNAN.
5971         * modules/isnand (configure.ac): Likewise.
5972         * modules/isnanl (configure.ac): Likewise.
5973
5974 2011-05-20  Bruno Haible  <bruno@clisp.org>
5975
5976         isnanl*: Respect rules for use of AC_LIBOBJ.
5977         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5978         invocation from here...
5979         * modules/isnanl (configure.ac): ... to here.
5980         * modules/isnanl-nolibm (configure.ac): ... and here.
5981
5982 2011-05-20  Bruno Haible  <bruno@clisp.org>
5983
5984         isnand*: Move AC_LIBOBJ invocations to module description.
5985         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5986         invocation from here...
5987         * modules/isnand (configure.ac): ... to here.
5988         * modules/isnand-nolibm (configure.ac): ... and here.
5989
5990 2011-05-20  Bruno Haible  <bruno@clisp.org>
5991
5992         isnanf*: Move AC_LIBOBJ invocations to module description.
5993         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5994         invocation from here...
5995         * modules/isnanf (configure.ac): ... to here.
5996         * modules/isnanf-nolibm (configure.ac): ... and here.
5997
5998 2011-05-20  Bruno Haible  <bruno@clisp.org>
5999
6000         isnan*: Separate the AC_LIBOBJ invocations.
6001         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6002         AC_LIBOBJ invocation.
6003         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6004         here.
6005         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6006         AC_LIBOBJ invocation.
6007         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6008         here.
6009         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6010         AC_LIBOBJ invocation.
6011         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6012         here.
6013         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6014
6015 2011-05-08  Bruno Haible  <bruno@clisp.org>
6016
6017         isinf: Move AC_LIBOBJ invocations to module description.
6018         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6019         * modules/isinf (configure.ac): ... to here.
6020
6021 2011-05-08  Bruno Haible  <bruno@clisp.org>
6022
6023         isfinite: Move AC_LIBOBJ invocations to module description.
6024         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6025         * modules/isfinite (configure.ac): ... to here.
6026
6027 2011-05-08  Bruno Haible  <bruno@clisp.org>
6028
6029         isblank: Move AC_LIBOBJ invocations to module description.
6030         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6031         here...
6032         * modules/isblank (configure.ac): ... to here.
6033
6034 2011-05-08  Bruno Haible  <bruno@clisp.org>
6035
6036         isapipe: Move AC_LIBOBJ invocations to module description.
6037         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6038         gl_PREREQ_ISAPIPE invocations from here...
6039         * modules/isapipe (configure.ac): ... to here.
6040         (Depends-on): Update condition.
6041
6042 2011-05-08  Bruno Haible  <bruno@clisp.org>
6043
6044         ioctl: Move AC_LIBOBJ invocations to module description.
6045         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6046         invocations from here...
6047         * modules/ioctl (configure.ac): ... to here.
6048         (Depends-on): Update condition.
6049
6050 2011-05-08  Bruno Haible  <bruno@clisp.org>
6051
6052         imaxdiv: Move AC_LIBOBJ invocations to module description.
6053         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6054         invocations from here...
6055         * modules/imaxdiv (configure.ac): ... to here.
6056
6057 2011-05-08  Bruno Haible  <bruno@clisp.org>
6058
6059         imaxabs: Move AC_LIBOBJ invocations to module description.
6060         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6061         invocations from here...
6062         * modules/imaxabs (configure.ac): ... to here.
6063
6064 2011-05-08  Bruno Haible  <bruno@clisp.org>
6065
6066         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6067         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6068         AC_LIBOBJ invocations from here...
6069         * modules/getaddrinfo (configure.ac): ... to here.
6070         (Depends-on): Add conditions.
6071
6072 2011-05-08  Bruno Haible  <bruno@clisp.org>
6073
6074         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6075         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6076         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6077         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6078         (gl_PREREQ_INET_PTON): ... from here.
6079         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6080         gl_PREREQ_INET_PTON here.
6081         (Depends-on): Update condition.
6082
6083 2011-05-08  Bruno Haible  <bruno@clisp.org>
6084
6085         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6086         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6087         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6088         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6089         (gl_PREREQ_INET_NTOP): ... from here.
6090         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6091         gl_PREREQ_INET_NTOP here.
6092         (Depends-on): Update condition.
6093
6094 2011-05-08  Bruno Haible  <bruno@clisp.org>
6095
6096         iconv_open: Move AC_LIBOBJ invocations to module description.
6097         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6098         AC_LIBOBJ invocations from here...
6099         * modules/iconv_open (configure.ac): ... to here.
6100
6101 2011-05-08  Bruno Haible  <bruno@clisp.org>
6102
6103         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6104         If module 'iconv_open' is among the main modules and module
6105         'iconv_open-utf' is among the tests dependencies, then
6106         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6107         return the special iconv_t values. Therefore iconv() and iconv_close()
6108         must support these special iconv_t values, already in lib, not only in
6109         tests.
6110         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6111         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6112         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6113         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6114         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6115         (Depends-on): Add the dependencies of iconv_open-utf.
6116         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6117         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6118         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6119
6120 2011-05-08  Bruno Haible  <bruno@clisp.org>
6121
6122         group-member: Move AC_LIBOBJ invocations to module description.
6123         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6124         gl_PREREQ_GROUP_MEMBER invocations from here...
6125         * modules/group-member (configure.ac): ... to here.
6126
6127 2011-05-08  Bruno Haible  <bruno@clisp.org>
6128
6129         grantpt: Move AC_LIBOBJ invocations to module description.
6130         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6131         invocations from here...
6132         * modules/grantpt (configure.ac): ... to here.
6133
6134 2011-05-08  Bruno Haible  <bruno@clisp.org>
6135
6136         glob: Move AC_LIBOBJ invocations to module description.
6137         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6138         from here...
6139         * modules/glob (configure.ac): ... to here.
6140
6141 2011-05-08  Bruno Haible  <bruno@clisp.org>
6142
6143         getusershell: Move AC_LIBOBJ invocations to module description.
6144         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6145         Move AC_LIBOBJ invocation from here...
6146         * modules/getusershell (configure.ac): ... to here.
6147         (Depends-on): Update condition.
6148
6149 2011-05-08  Bruno Haible  <bruno@clisp.org>
6150
6151         gettimeofday: Move AC_LIBOBJ invocations to module description.
6152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6153         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6154         gl_PREREQ_GETTIMEOFDAY invocations from here...
6155         * modules/gettimeofday (configure.ac): ... to here.
6156
6157 2011-05-08  Bruno Haible  <bruno@clisp.org>
6158
6159         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6160         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6161         just gl_FUNC_TZSET.
6162         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6163         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6165         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6166
6167 2011-05-08  Bruno Haible  <bruno@clisp.org>
6168
6169         getsubopt: Move AC_LIBOBJ invocations to module description.
6170         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6171         gl_PREREQ_GETSUBOPT invocations from here...
6172         * modules/getsubopt (configure.ac): ... to here.
6173
6174 2011-05-08  Bruno Haible  <bruno@clisp.org>
6175
6176         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6177         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6178         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6179         * modules/getpass-gnu (configure.ac): ... to here.
6180
6181 2011-05-08  Bruno Haible  <bruno@clisp.org>
6182
6183         getpass: Move AC_LIBOBJ invocations to module description.
6184         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6185         gl_PREREQ_GETPASS invocations from here...
6186         * modules/getpass (configure.ac): ... to here.
6187
6188 2011-05-08  Bruno Haible  <bruno@clisp.org>
6189
6190         getpagesize: Move AC_LIBOBJ invocations to module description.
6191         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6192         from here...
6193         * modules/getpagesize (configure.ac): ... to here.
6194
6195 2011-05-08  Bruno Haible  <bruno@clisp.org>
6196
6197         getopt: Move AC_LIBOBJ invocations to module description.
6198         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6199         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6200         invocations from here...
6201         * modules/getopt-gnu (configure.ac): ... to here.
6202         * modules/getopt-posix (configure.ac): ... and here.
6203         (Depends-on): Update condition.
6204
6205 2011-05-08  Bruno Haible  <bruno@clisp.org>
6206
6207         getopt, argp: Respect rules for use of AC_LIBOBJ.
6208         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6209         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6210         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6211         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6212
6213 2011-05-08  Bruno Haible  <bruno@clisp.org>
6214
6215         getlogin_r: Move AC_LIBOBJ invocations to module description.
6216         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6217         gl_PREREQ_GETLOGIN_R invocations from here...
6218         * modules/getlogin_r (configure.ac): ... to here.
6219
6220 2011-05-08  Bruno Haible  <bruno@clisp.org>
6221
6222         getlogin: Move AC_LIBOBJ invocations to module description.
6223         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6224         here...
6225         * modules/getlogin (configure.ac): ... to here.
6226
6227 2011-05-08  Bruno Haible  <bruno@clisp.org>
6228
6229         getloadavg: Move AC_LIBOBJ invocations to module description.
6230         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6231         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6232         * modules/getloadavg (configure.ac): ... to here.
6233
6234 2011-05-08  Bruno Haible  <bruno@clisp.org>
6235
6236         gethrxtime: Move AC_LIBOBJ invocations to module description.
6237         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6238         LIB_GETHRXTIME from here...
6239         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6240         invocations from here...
6241         * modules/gethrxtime (configure.ac): ... to here.
6242
6243 2011-05-08  Bruno Haible  <bruno@clisp.org>
6244
6245         gethostname: Move AC_LIBOBJ invocations to module description.
6246         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6247         gl_PREREQ_GETHOSTNAME invocations from here...
6248         * modules/gethostname (configure.ac): ... to here.
6249
6250 2011-05-08  Bruno Haible  <bruno@clisp.org>
6251
6252         getgroups: Move AC_LIBOBJ invocations to module description.
6253         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6254         here...
6255         * modules/getgroups (configure.ac): ... to here.
6256
6257 2011-05-08  Bruno Haible  <bruno@clisp.org>
6258
6259         getdtablesize: Move AC_LIBOBJ invocations to module description.
6260         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6261         invocation from here...
6262         * modules/getdtablesize (configure.ac): ... to here.
6263
6264 2011-05-08  Bruno Haible  <bruno@clisp.org>
6265
6266         getdomainname: Move AC_LIBOBJ invocations to module description.
6267         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6268         gl_PREREQ_GETDOMAINNAME invocations from here...
6269         * modules/getdomainname (configure.ac): ... to here.
6270
6271 2011-05-08  Bruno Haible  <bruno@clisp.org>
6272
6273         getline: Move AC_LIBOBJ invocations to module description.
6274         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6275         invocations from here...
6276         * modules/getline (configure.ac): ... to here.
6277
6278 2011-05-08  Bruno Haible  <bruno@clisp.org>
6279
6280         getline: Simplify.
6281         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6282         It's already handled through the module dependency.
6283
6284 2011-05-08  Bruno Haible  <bruno@clisp.org>
6285
6286         getdelim: Move AC_LIBOBJ invocations to module description.
6287         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6288         and gl_PREREQ_GETDELIM invocations from here...
6289         * modules/getdelim (configure.ac): ... to here.
6290         (Depends-on): Fix condition.
6291
6292 2011-05-08  Bruno Haible  <bruno@clisp.org>
6293
6294         getcwd: Move AC_LIBOBJ invocations to module description.
6295         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6296         invocations from here...
6297         * modules/getcwd (configure.ac): ... to here.
6298
6299 2011-05-08  Bruno Haible  <bruno@clisp.org>
6300
6301         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6302         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6303         here...
6304         * modules/getcwd-lgpl (configure.ac): ... to here.
6305
6306 2011-05-07  Bruno Haible  <bruno@clisp.org>
6307
6308         crypto/gc: Move AC_LIBOBJ invocations to module description.
6309         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6310         * modules/crypto/gc (configure.ac): ... to here.
6311
6312 2011-05-07  Bruno Haible  <bruno@clisp.org>
6313
6314         fwriting: Move AC_LIBOBJ invocations to module description.
6315         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6316         here...
6317         * modules/fwriting (configure.ac): ... to here.
6318
6319 2011-05-07  Bruno Haible  <bruno@clisp.org>
6320
6321         fwritable: Move AC_LIBOBJ invocations to module description.
6322         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6323         here...
6324         * modules/fwritable (configure.ac): ... to here.
6325
6326 2011-05-07  Bruno Haible  <bruno@clisp.org>
6327
6328         futimens: Move AC_LIBOBJ invocations to module description.
6329         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6330         here...
6331         * modules/futimens (configure.ac): ... to here.
6332
6333 2011-05-07  Bruno Haible  <bruno@clisp.org>
6334
6335         ftruncate: Move AC_LIBOBJ invocations to module description.
6336         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6337         gl_PREREQ_FTRUNCATE invocations from here...
6338         * modules/ftruncate (configure.ac): ... to here.
6339
6340 2011-05-07  Bruno Haible  <bruno@clisp.org>
6341
6342         fsync: Move AC_LIBOBJ invocations to module description.
6343         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6344         invocations from here...
6345         * modules/fsync (configure.ac): ... to here.
6346
6347 2011-05-07  Bruno Haible  <bruno@clisp.org>
6348
6349         fsusage: Move AC_LIBOBJ invocations to module description.
6350         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6351         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6352         * modules/fsusage (configure.ac): ... to here.
6353
6354 2011-05-07  Bruno Haible  <bruno@clisp.org>
6355
6356         freopen: Move AC_LIBOBJ invocations to module description.
6357         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6358         invocations from here...
6359         * modules/freopen (configure.ac): ... to here.
6360
6361 2011-05-07  Bruno Haible  <bruno@clisp.org>
6362
6363         free: Move AC_LIBOBJ invocations to module description.
6364         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6365         invocations from here...
6366         * modules/free (configure.ac): ... to here.
6367
6368 2011-05-07  Bruno Haible  <bruno@clisp.org>
6369
6370         freadable: Move AC_LIBOBJ invocations to module description.
6371         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6372         here...
6373         * modules/freadable (configure.ac): ... to here.
6374
6375 2011-05-07  Bruno Haible  <bruno@clisp.org>
6376
6377         fpurge: Move AC_LIBOBJ invocations to module description.
6378         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6379         invocations from here...
6380         * modules/fpurge (configure.ac): ... to here.
6381
6382 2011-05-07  Bruno Haible  <bruno@clisp.org>
6383
6384         fpending: Move AC_LIBOBJ invocations to module description.
6385         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6386         gl_FUNC_FPENDING.
6387         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6388         invocations from here...
6389         * modules/fpending (configure.ac): ... to here.
6390
6391 2011-05-07  Bruno Haible  <bruno@clisp.org>
6392
6393         fopen: Move AC_LIBOBJ invocations to module description.
6394         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6395         invocations from here...
6396         * modules/fopen (configure.ac): ... to here.
6397
6398 2011-05-07  Bruno Haible  <bruno@clisp.org>
6399
6400         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6401         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6402         gl_FUNC_FNMATCH_POSIX.
6403         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6404         invocations from here...
6405         * modules/fnmatch (configure.ac): ... to here.
6406         * modules/fnmatch-gnu (configure.ac): ... and here.
6407
6408 2011-05-07  Bruno Haible  <bruno@clisp.org>
6409
6410         flock: Move AC_LIBOBJ invocations to module description.
6411         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6412         invocations from here...
6413         * modules/flock (configure.ac): ... to here.
6414
6415 2011-05-07  Bruno Haible  <bruno@clisp.org>
6416
6417         fileblocks: Move AC_LIBOBJ invocations to module description.
6418         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6419         gl_PREREQ_FILEBLOCKS invocations from here...
6420         * modules/fileblocks (configure.ac): ... to here.
6421
6422 2011-05-06  Bruno Haible  <bruno@clisp.org>
6423
6424         fflush: Move AC_LIBOBJ invocations to module description.
6425         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6426         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6427         invocations from here...
6428         * modules/fflush (configure.ac): ... to here.
6429
6430 2011-05-06  Bruno Haible  <bruno@clisp.org>
6431
6432         fdopendir: Move AC_LIBOBJ invocations to module description.
6433         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6434         here...
6435         * modules/fdopendir (configure.ac): ... to here.
6436         (Depends-on): Improve conditions.
6437
6438 2011-05-06  Bruno Haible  <bruno@clisp.org>
6439
6440         _Exit: Move AC_LIBOBJ invocations to module description.
6441         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6442         invocations from here...
6443         * modules/_Exit (configure.ac): ... to here.
6444
6445 2011-05-21  Bruno Haible  <bruno@clisp.org>
6446
6447         euidaccess: Respect rules for use of AC_LIBOBJ.
6448         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6449         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6450         from here...
6451         * modules/euidaccess (configure.ac): ... to here.
6452
6453 2011-05-06  Bruno Haible  <bruno@clisp.org>
6454
6455         error: Move AC_LIBOBJ invocations to module description.
6456         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6457         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6458         invocations from here...
6459         * modules/error (configure.ac): ... to here.
6460
6461 2011-05-06  Bruno Haible  <bruno@clisp.org>
6462
6463         duplocale: Move AC_LIBOBJ invocations to module description.
6464         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6465         gl_PREREQ_DUPLOCALE invocations from here...
6466         * modules/duplocale (configure.ac): ... to here.
6467
6468 2011-05-05  Bruno Haible  <bruno@clisp.org>
6469
6470         dirfd: Move AC_LIBOBJ invocations to module description.
6471         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6472         gl_FUNC_DIRFD.
6473         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6474         here...
6475         * modules/dirfd (configure.ac): ... to here.
6476         (Depends-on): Fix condition.
6477
6478 2011-05-05  Bruno Haible  <bruno@clisp.org>
6479
6480         chown: Respect rules for use of AC_LIBOBJ.
6481         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6482         * modules/chown (configure.ac): ... to here.
6483
6484 2011-05-05  Bruno Haible  <bruno@clisp.org>
6485
6486         chdir-long: Move AC_LIBOBJ invocations to module description.
6487         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6488         gl_PREREQ_CHDIR_LONG invocations from here...
6489         * modules/chdir-long (configure.ac): ... to here.
6490
6491 2011-05-05  Bruno Haible  <bruno@clisp.org>
6492
6493         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6494         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6495         from here...
6496         * modules/canonicalize-lgpl (configure.ac): ... to here.
6497
6498 2011-05-05  Bruno Haible  <bruno@clisp.org>
6499
6500         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6501         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6502         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6503         REPLACE_CALLOC.
6504         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6505         * modules/calloc-gnu (configure.ac): Likewise.
6506
6507 2011-05-05  Bruno Haible  <bruno@clisp.org>
6508
6509         btowc: Move AC_LIBOBJ invocations to module description.
6510         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6511         invocations from here...
6512         * modules/btowc (configure.ac): ... to here.
6513
6514 2011-05-21  Bruno Haible  <bruno@clisp.org>
6515
6516         atexit: Move AC_LIBOBJ invocations to module description.
6517         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6518         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6519         here...
6520         * modules/atexit (configure.ac): ... to here.
6521
6522 2011-05-05  Bruno Haible  <bruno@clisp.org>
6523
6524         atoll: Move AC_LIBOBJ invocations to module description.
6525         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6526         invocations from here...
6527         * modules/atoll (configure.ac): ... to here.
6528
6529 2011-05-05  Bruno Haible  <bruno@clisp.org>
6530
6531         argz: Move AC_LIBOBJ invocations to module description.
6532         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6533         * modules/argz (configure.ac): ... to here.
6534
6535 2011-05-05  Bruno Haible  <bruno@clisp.org>
6536
6537         alphasort: Move AC_LIBOBJ invocations to module description.
6538         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6539         gl_PREREQ_ALPHASORT invocations from here...
6540         * modules/alphasort (configure.ac): ... to here.
6541
6542 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6543
6544         verify: new macro verify_expr; verify_true deprecated
6545         * NEWS: Mention this.
6546         * doc/verify.texi (Compile-time Assertions): Document this.
6547         * lib/verify.h (verify_true): Deprecate.
6548         (verify_expr): New macro.
6549         * tests/test-verify.c (function): Test verify_expr.
6550
6551 2011-06-14  Jim Meyering  <meyering@redhat.com>
6552
6553         init.sh: give more portable redirection-related advice in a comment
6554         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6555         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6556         for lots of discussion.  Stefano Lattarini suggested the solution
6557         of putting "9>&2" after the command.  Reported by Bruno Haible.
6558
6559 2011-06-13  Bruno Haible  <bruno@clisp.org>
6560
6561         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6563         'none'.
6564
6565 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6566
6567         ftoastr: use strtof only if HAVE_STRTOF
6568         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6570         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6571         * modules/ftoastr (configure.ac): Check for strtof.
6572
6573 2011-06-13  Bruno Haible  <bruno@clisp.org>
6574
6575         gnulib-tool: Addendum to 2011-06-08 commit.
6576         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6577         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6578
6579 2011-06-13  Bruno Haible  <bruno@clisp.org>
6580
6581         fseeko: Provide a non-inline replacement of fseek().
6582         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6583         * modules/fseeko (Depends-on): Add fseek.
6584         * modules/fseek (License): Change to LGPLv2+.
6585
6586 2011-06-13  Bruno Haible  <bruno@clisp.org>
6587
6588         ftello: Provide a non-inline replacement of ftell().
6589         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6590         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6591         not have ftello() (such as on mingw).
6592         * modules/ftello (Depends-on): Add ftell.
6593         * modules/ftell (License): Change to LGPLv2+.
6594
6595 2011-05-07  Bruno Haible  <bruno@clisp.org>
6596
6597         ftell: Move AC_LIBOBJ invocations to module description.
6598         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6599         * modules/ftell (configure.ac): ... to here.
6600
6601 2011-05-07  Bruno Haible  <bruno@clisp.org>
6602
6603         ftello: Respect rules for use of AC_LIBOBJ.
6604         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6605         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6606         here...
6607         * modules/ftello (configure.ac): ... to here.
6608
6609 2011-05-07  Bruno Haible  <bruno@clisp.org>
6610
6611         fseeko: Simplify.
6612         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6613         (gl_FUNC_FSEEKO): Inline it here.
6614
6615 2011-05-07  Bruno Haible  <bruno@clisp.org>
6616
6617         fseek: Move AC_LIBOBJ invocations to module description.
6618         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6619         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6620         * modules/fseek (configure.ac): ... to here.
6621
6622 2011-05-07  Bruno Haible  <bruno@clisp.org>
6623
6624         fseek: Respect rules for use of AC_LIBOBJ.
6625         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6626         here...
6627         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6628
6629 2011-05-07  Bruno Haible  <bruno@clisp.org>
6630
6631         fseeko: Respect rules for use of AC_LIBOBJ.
6632         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6633         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6634         here...
6635         * modules/fseeko (configure.ac): ... to here.
6636
6637 2011-06-13  Bruno Haible  <bruno@clisp.org>
6638
6639         gnulib-tool: Allow comments in the 'Depends-on' section.
6640         * doc/gnulib.texi (Module description): Mention comment syntax in the
6641         Depends-on section.
6642         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6643
6644 2011-06-13  Bruno Haible  <bruno@clisp.org>
6645
6646         file-set.h: guard __attibute__ use, now that it's not always defined
6647         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6648         versions that support it.  This fixes a coreutils build failure with
6649         the vendor cc on HP-UX 11.31.
6650
6651 2011-06-12  Bruno Haible  <bruno@clisp.org>
6652
6653         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6654         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6655         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6656         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6657         (acl, aclsort): New declarations.
6658         (aclv_nontrivial): New declaration.
6659         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6660         (file_has_acl): Read also the second kind of HP-UX ACLs.
6661         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6662         kind of HP-UX ACLs if the first kind fails.
6663         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6664         second kind of HP-UX ACLs.
6665         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6666         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6667         agree.
6668         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6669         hpuxjfs.
6670         Handle hpuxjfs.
6671         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6672         hpuxjfs.
6673         Handle hpuxjfs.
6674         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6675         (func_test_same_acls): Use both lsacl and getacl.
6676         Handle hpuxjfs.
6677         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6678         (func_test_same_acls): Use both lsacl and getacl.
6679         Handle hpuxjfs.
6680
6681 2011-06-12  Bruno Haible  <bruno@clisp.org>
6682
6683         acl: Complete the 2010-08-10 fix.
6684         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6685         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6686         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6687         explicitly.
6688         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6689         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6690
6691 2011-06-12  Bruno Haible  <bruno@clisp.org>
6692
6693         spawn-pipe tests: Comments.
6694         * tests/test-spawn-pipe-child.c (main): Update comment.
6695         Reported by James Youngman <jay@gnu.org>.
6696
6697 2011-06-11  James Youngman  <jay@gnu.org>
6698
6699         New module 'stat-size'.
6700         * modules/stat-size: New module.  Provides macros for accessing
6701         file size information in instances of struct stat.  Depends on the
6702         fileblocks module because it calls st_blocks.
6703         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6704         * doc/gnulib.texi: Include stat-size.texi.
6705         * doc/stat-size.texi: Documentation for this module.
6706         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6707         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6708         AC_STRUCT_ST_BLOCKS.
6709
6710 2011-06-09  Bruno Haible  <bruno@clisp.org>
6711
6712         thread: Support pthreads-win32.
6713         * lib/glthread/thread.h (gl_thread_self): Define differently on
6714         pthreads-win32.
6715         (gl_null_thread): New declaration.
6716         (gl_thread_self_pointer): New macro.
6717         * lib/glthread/thread.c (gl_null_thread): New constant.
6718         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6719         gl_thread_self.
6720         * tests/test-tls.c: Likewise.
6721         Suggested by Paul Eggert. Reported by Eric Blake.
6722
6723 2011-06-09  Bruno Haible  <bruno@clisp.org>
6724
6725         thread: Fix confusion between NULL and 0.
6726         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6727         Reported by Paul Eggert.
6728
6729 2011-06-09  Bruno Haible  <bruno@clisp.org>
6730
6731         spawn-pipe tests: Avoid test failure on HP-UX 11.
6732         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6733         is closed.
6734
6735 2011-06-09  Bruno Haible  <bruno@clisp.org>
6736
6737         acl tests: Fix compilation error on HP-UX 11.
6738         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6739
6740 2011-06-09  Bruno Haible  <bruno@clisp.org>
6741
6742         rmdir: Avoid test failure on HP-UX 10.20.
6743         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6744         EEXIST.
6745
6746 2011-06-08  Eric Blake  <eblake@redhat.com>
6747
6748         perror: fix test on mingw
6749         * modules/perror-tests (Depends-on): Add dup2.
6750
6751         strerror_r-posix: fix on MacOS
6752         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6753         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6754         logic bug.
6755         * lib/strerror_r.c (strerror_r): Fix the bug.
6756         * lib/strerror.c (strerror): Likewise.
6757         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6758         problem.
6759         * doc/posix-functions/strerror.texi (strerror): Likewise.
6760         * doc/posix-functions/perror.texi (perror): Likewise.
6761         * tests/test-strerror.c (main): Enhance test.
6762         * tests/test-strerror_r.c (main): Likewise.
6763
6764 2011-06-08  Bruno Haible  <bruno@clisp.org>
6765
6766         gnulib-tool: Better isolation between different gnulib-tool invocations.
6767         * gnulib-tool: New option --witness-c-macro.
6768         (witness_c_macro): New variable.
6769         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6770         AM_CPPFLAGS define it as a C macro.
6771         (func_emit_tests_Makefile_am): Likewise.
6772         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6773         read it from there.
6774         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6775         m4_define, not AC_DEFUN.
6776         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6777         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6778         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6779         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6780         s|...|...|, to substitute the values of the GNULIB_* module indicator
6781         variables.
6782         * modules/dirent (Makefile.am): Likewise.
6783         * modules/fcntl-h (Makefile.am): Likewise.
6784         * modules/iconv-h (Makefile.am): Likewise.
6785         * modules/langinfo (Makefile.am): Likewise.
6786         * modules/locale (Makefile.am): Likewise.
6787         * modules/math (Makefile.am): Likewise.
6788         * modules/netdb (Makefile.am): Likewise.
6789         * modules/poll-h (Makefile.am): Likewise.
6790         * modules/pty (Makefile.am): Likewise.
6791         * modules/search (Makefile.am): Likewise.
6792         * modules/signal (Makefile.am): Likewise.
6793         * modules/spawn (Makefile.am): Likewise.
6794         * modules/stdio (Makefile.am): Likewise.
6795         * modules/stdlib (Makefile.am): Likewise.
6796         * modules/string (Makefile.am): Likewise.
6797         * modules/sys_ioctl (Makefile.am): Likewise.
6798         * modules/sys_select (Makefile.am): Likewise.
6799         * modules/sys_socket (Makefile.am): Likewise.
6800         * modules/sys_stat (Makefile.am): Likewise.
6801         * modules/sys_times (Makefile.am): Likewise.
6802         * modules/sys_utsname (Makefile.am): Likewise.
6803         * modules/sys_wait (Makefile.am): Likewise.
6804         * modules/termios (Makefile.am): Likewise.
6805         * modules/time (Makefile.am): Likewise.
6806         * modules/unistd (Makefile.am): Likewise.
6807         * modules/wchar (Makefile.am): Likewise.
6808
6809 2011-06-08  Eric Blake  <eblake@redhat.com>
6810
6811         strerror: simplify replacement
6812         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6813         * modules/strerror (configure.ac): No prereqs needed here...
6814         * modules/strerror-override (configure.ac): ...but this needs it.
6815         (Files): Add file for needed prereq macro.
6816
6817 2011-06-08  Bruno Haible  <bruno@clisp.org>
6818
6819         strerror_r-posix: Tweaks.
6820         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6821         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6822         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6823         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6824         (gl_FUNC_STRERROR_R): ... to here.
6825         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6826
6827 2011-06-07  Eric Blake  <eblake@redhat.com>
6828
6829         perror: document fixed bugs
6830         * doc/posix-functions/perror.texi (perror): Document recent
6831         patches.
6832
6833 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6834
6835         stat-time: get_stat_birthtime failure is better-defined
6836         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6837         return a timestamp whose tv_sec and tv_nsec values are both -1.
6838         Previously, the spec said only that the tv_nsec value was negative.
6839         This upward-compatible change simplifies GNU tar a bit.
6840
6841 2011-06-07  Eric Blake  <eblake@redhat.com>
6842
6843         strerror_r-posix: work around cygwin 1.7.9
6844         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6845         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6846         bug without replacing strerror_r.
6847         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6848         strerror_r is buggy, but without requiring strerror_r compilation.
6849         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6850
6851         test-perror: relax test to ignore cygwin bug
6852         * tests/test-perror2.c (main): Relax test on requiring detection
6853         of stream errors, and use unbuffered stream.
6854         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6855         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6856         * doc/posix-functions/fputc.texi (fputc): Likewise.
6857         * doc/posix-functions/fputs.texi (fputs): Likewise.
6858         * doc/posix-functions/fputws.texi (fputws): Likewise.
6859         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6860         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6861         * doc/posix-functions/getopt.texi (getopt): Likewise.
6862         * doc/posix-functions/perror.texi (perror): Likewise.
6863         * doc/posix-functions/printf.texi (printf): Likewise.
6864         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6865         * doc/posix-functions/psignal.texi (psignal): Likewise.
6866         * doc/posix-functions/putc.texi (putc): Likewise.
6867         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6868         Likewise.
6869         * doc/posix-functions/putchar.texi (putchar): Likewise.
6870         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6871         Likewise.
6872         * doc/posix-functions/puts.texi (puts): Likewise.
6873         * doc/posix-functions/putwc.texi (putwc): Likewise.
6874         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6875         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6876         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6877         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6878         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6879         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6880         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6881         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6882
6883 2011-05-22  Bruno Haible  <bruno@clisp.org>
6884
6885         strerror: Move AC_LIBOBJ invocations to module description.
6886         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6887         gl_PREREQ_STRERROR invocations from here...
6888         * modules/strerror (configure.ac): ... to here.
6889
6890 2011-05-21  Bruno Haible  <bruno@clisp.org>
6891
6892         perror: Use common idiom.
6893         * modules/perror (configure.ac): Reorder statements.
6894
6895 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6896
6897         tests: fix usage message in 'mktempd_'
6898         * tests/init.sh (mktempd_): In the usage message, use literal
6899         'mktempd_', not '$ME' (which is even undefined), as the name of
6900         the subroutine.
6901
6902 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6903
6904         tests init: new function 'fatal_', for hard errors
6905         Before this patch, the only way offered by tests/init.sh to
6906         properly signal a hard error was the `framework_failure_'
6907         function.  But the error message issued by that function,
6908         as its name would suggest, refers to a set-up failure in the
6909         testsuite, while hard errors can obviously also be due to
6910         other reasons.  The best way to fix this inconsistency is to
6911         introduce a new function with a more general error message.
6912         * tests/init.sh (fatal_): New function.
6913
6914 2011-06-06  Eric Blake  <eblake@redhat.com>
6915
6916         canonicalize-lgpl: use common idiom
6917         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6918         over newer POSIX -Rf.
6919         Reported by Bruno Haible.
6920
6921         canonicalize-lgpl: work around AIX realpath bug
6922         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6923         * doc/posix-functions/realpath.texi (realpath): Document it.
6924         Reported by Bruno Haible.
6925
6926         strerror: work around FreeBSD bug
6927         * lib/strerror.c (strerror): Special case 0.
6928         Reported by Bruno Haible.
6929
6930         strerror-override: avoid bloating errno module
6931         * modules/errno (Files, configure.ac): Move replacement strings...
6932         * modules/strerror-override: ...to new module.
6933         * modules/strerror (Depends-on): Add strerror-override.
6934         * modules/strerror_r-posix (Depends-on): Likewise.
6935         * MODULES.html.sh: Document new module.
6936         Reported by Bruno Haible.
6937
6938 2011-06-06  Bruno Haible  <bruno@clisp.org>
6939
6940         spawn-pipe tests: Rename program.
6941         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6942         * tests/test-spawn-pipe-child.c: Update comment.
6943         * tests/test-spawn-pipe.sh: Update.
6944         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6945
6946         spawn-pipe tests: Link the child program only against libc.
6947         * tests/test-spawn-pipe-child.c: New file, extracted from
6948         tests/test-spawn-pipe.c.
6949         (main): Expect only one argument.
6950         (is_open): New function, copied from tests/test-pipe.c.
6951         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6952         (child_main): Remove function.
6953         (test_pipe): Pass only one argument to the child program.
6954         (main): Remove child process code. Expect the child program's name as
6955         first argument.
6956         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6957         argument.
6958         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6959         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6960         test-spawn-pipe-child against no libraries.
6961
6962 2011-06-06  Bruno Haible  <bruno@clisp.org>
6963
6964         careadlinkat: Avoid mismatch between ssize_t and int.
6965         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6966         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6967
6968 2011-06-06  Jim Meyering  <meyering@redhat.com>
6969
6970         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6971         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6972         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6973
6974 2011-06-05  Bruno Haible  <bruno@clisp.org>
6975
6976         ansi-c++-opt: Interoperability with libtool.
6977         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6978         set the variable to "no", not to ":".
6979         * NEWS: Mention the change.
6980
6981 2011-06-05  Bruno Haible  <bruno@clisp.org>
6982
6983         acl: Fix test failure on AIX 7.
6984         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6985         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6986
6987 2011-06-05  Bruno Haible  <bruno@clisp.org>
6988
6989         pipe-filter-ii: Fix test failure on AIX and IRIX.
6990         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6991         with EAGAIN, retry with a smaller buffer size.
6992
6993 2011-06-05  Bruno Haible  <bruno@clisp.org>
6994
6995         localename: Fix link dependencies.
6996         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6997         * modules/localename-tests (Makefile.am): Link test-localename with
6998         $(LIBTHREAD).
6999
7000 2011-06-05  Bruno Haible  <bruno@clisp.org>
7001
7002         error: Avoid gcc warning.
7003         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7004
7005 2011-06-05  Bruno Haible  <bruno@clisp.org>
7006
7007         unsetenv: Avoid gcc warning.
7008         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7009
7010 2011-06-05  Bruno Haible  <bruno@clisp.org>
7011
7012         setenv: Avoid gcc warning.
7013         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7014
7015 2011-06-05  Bruno Haible  <bruno@clisp.org>
7016
7017         sys_select: Ensure memset is declared also on AIX 7.
7018         * lib/sys_select.in.h: Include <string.h> also on AIX.
7019         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7020         self-contained also on AIX 7.1.
7021
7022 2011-06-04  Jim Meyering  <meyering@redhat.com>
7023
7024         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7025         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7026         function name, "error".
7027         (_gl_translatable_diag_func_re): New configurable variable.
7028
7029 2011-06-04  Bruno Haible  <bruno@clisp.org>
7030
7031         getopt: Avoid gcc warning.
7032         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7033
7034 2011-06-04  Bruno Haible  <bruno@clisp.org>
7035
7036         strerror_r: Fix comments.
7037         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7038         commit.
7039
7040 2011-06-04  Bruno Haible  <bruno@clisp.org>
7041
7042         perror: Fix compilation error.
7043         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7044         Undefine fprintf, not sprintf.
7045         * modules/perror (Depends-on): Remove intprops, verify.
7046
7047 2011-06-04  Bruno Haible  <bruno@clisp.org>
7048
7049         setlocale: Enable replacement on Cygwin 1.5.
7050         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7051         Cygwin 1.5.x.
7052         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7053         LC_CTYPE category also exists on Cygwin 1.5.x.
7054
7055 2011-06-04  Bruno Haible  <bruno@clisp.org>
7056
7057         strerror-override: Don't disable symbol renamings.
7058         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7059         * lib/strerror-override.c: Include config.h.
7060         (strerror_override): Don't undefine.
7061
7062 2011-06-03  Bruno Haible  <bruno@clisp.org>
7063
7064         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7065         * lib/localename.h: Update copyright header.
7066         * lib/localename.c: Likewise.
7067         * lib/relocatable.h: Likewise.
7068         * lib/relocatable.c: Likewise.
7069
7070 2011-06-02  Bruno Haible  <bruno@clisp.org>
7071
7072         doc: Fix a module name.
7073         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7074
7075 2011-06-02  Bruno Haible  <bruno@clisp.org>
7076
7077         pipe2: Remove dependency on 'nonblocking' module.
7078         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7079         O_NONBLOCK is defined by gnulib.
7080         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7081         is zero.
7082         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7083         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7084         defined by gnulib.
7085         (get_nonblocking_flag): New function.
7086         (main): Test O_NONBLOCK flag only if it is nonzero.
7087         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7088
7089 2011-06-03  Jim Meyering  <meyering@redhat.com>
7090
7091         maint: three new prohibit-header-without-use rules
7092         Prohibit use of cloexec.h, posixver.h, same.h without use.
7093         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7094         (sc_prohibit_posixver_without_use): Likewise.
7095         (sc_prohibit_same_without_use): Likewise.
7096
7097 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7098
7099         allocator: 'die' routine is now given requested size
7100         * lib/allocator.h (struct allocator.die): New size arg.
7101         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7102         If the actual problem is an ssize_t limitation, not a size_t or
7103         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7104
7105 2011-06-01  Eric Blake  <eblake@redhat.com>
7106
7107         strerror: drop strerror_r dependency
7108         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7109         * lib/strerror-override.c (strerror_override): ...to new file.
7110         * lib/strerror-override.h: Add prototype.
7111         * lib/strerror-impl.h: Delete.
7112         * lib/strerror.c (strerror): New implementation.
7113         * modules/errno (Files): Add new files.
7114         (configure.ac): Compile new file as appropriate.
7115         * modules/strerror (Files): Drop unused file.
7116         (Depends-on): Drop strerror_r-posix.
7117         * MODULES.html.sh: Document strerror_r-posix.
7118         Requested by Sam Steingold.
7119
7120         perror: call strerror_r directly
7121         * modules/perror (Files): Drop strerror-impl.h.
7122         * lib/perror.c (perror): Use our own stack buffer, rather than
7123         calling a wrapper that uses static storage.
7124         * doc/posix-functions/perror.texi (perror): Document a limitation
7125         of our replacement.
7126
7127         strerror_r: fix includes for FreeBSD
7128         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7129         since we use abort on some platforms.
7130         Reported by Matthias Bolte.
7131
7132 2011-05-31  Bruno Haible  <bruno@clisp.org>
7133
7134         Fix link errors in tests: openat-die uses gettext-h.
7135         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7136         against $(LIBINTL).
7137         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7138         against $(LIBINTL).
7139         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7140         $(LIBINTL).
7141         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7142         against $(LIBINTL).
7143         * modules/linkat-tests (Makefile.am): Link test-linkat against
7144         $(LIBINTL).
7145         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7146         $(LIBINTL).
7147         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7148         against $(LIBINTL).
7149         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7150         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7151         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7152         $(LIBINTL).
7153         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7154         $(LIBINTL).
7155         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7156         $(LIBINTL).
7157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7158
7159 2011-05-31  Bruno Haible  <bruno@clisp.org>
7160
7161         Fix link errors in tests: wait-process uses gettext-h.
7162         * modules/nonblocking-pipe-tests (Makefile.am): Set
7163         test_nonblocking_pipe_main_LDADD.
7164         * modules/nonblocking-socket-tests (Makefile.am): Link
7165         test-nonblocking-socket-main against $(LIBINTL).
7166         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7167
7168 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7169
7170         assert-h: work around 'verify' incompatibility
7171         * lib/verify.h: Use @...@ directives, not ifdef.
7172         * modules/assert-h (assert.h): Implement the directives.
7173         (assert.h): Substitute the symbol-prefix more consistently.
7174
7175 2011-05-29  Jim Meyering  <meyering@redhat.com>
7176
7177         trim: remove three superfluous assignments
7178         * lib/trim.c (trim2): Remove three superfluous assignments
7179         and correct brace positioning.
7180
7181 2011-05-29  Bruno Haible  <bruno@clisp.org>
7182
7183         wctype-h: Avoid namespace pollution on Solaris 2.6.
7184         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7185         identifiers.
7186         * doc/posix-headers/wctype.texi: Mention the problem.
7187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7188
7189 2011-05-28  Jim Meyering  <meyering@redhat.com>
7190
7191         parse-datetime.y: accommodate -Wstrict-overflow
7192         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7193         placate -Wstrict-overflow.
7194
7195         trim: avoid a warning from -O2 -Wstrict-overflow
7196         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7197
7198 2011-05-29  Bruno Haible  <bruno@clisp.org>
7199
7200         gnulib-tool: Fix bug in yesterday's commit.
7201         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7202         twice.
7203
7204 2011-05-29  Bruno Haible  <bruno@clisp.org>
7205
7206         Allow multiple gnulib generated include files to be combined.
7207         * gnulib-tool (func_compute_include_guard_prefix): New function.
7208         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7209         ${gl_include_guard_prefix} references.
7210         (func_import, func_create_testdir): Invoke
7211         func_compute_include_guard_prefix.
7212         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7213         * lib/ctype.in.h: Likewise.
7214         * lib/dirent.in.h: Likewise.
7215         * lib/errno.in.h: Likewise.
7216         * lib/fcntl.in.h: Likewise.
7217         * lib/float.in.h: Likewise.
7218         * lib/getopt.in.h: Likewise.
7219         * lib/iconv.in.h: Likewise.
7220         * lib/langinfo.in.h: Likewise.
7221         * lib/locale.in.h: Likewise.
7222         * lib/math.in.h: Likewise.
7223         * lib/netdb.in.h: Likewise.
7224         * lib/netinet_in.in.h: Likewise.
7225         * lib/poll.in.h: Likewise.
7226         * lib/pthread.in.h: Likewise.
7227         * lib/pty.in.h: Likewise.
7228         * lib/sched.in.h: Likewise.
7229         * lib/se-selinux.in.h: Likewise.
7230         * lib/search.in.h: Likewise.
7231         * lib/signal.in.h: Likewise.
7232         * lib/spawn.in.h: Likewise.
7233         * lib/stdarg.in.h: Likewise.
7234         * lib/stddef.in.h: Likewise.
7235         * lib/stdint.in.h: Likewise.
7236         * lib/stdio.in.h: Likewise.
7237         * lib/stdlib.in.h: Likewise.
7238         * lib/string.in.h: Likewise.
7239         * lib/strings.in.h: Likewise.
7240         * lib/sys_file.in.h: Likewise.
7241         * lib/sys_ioctl.in.h: Likewise.
7242         * lib/sys_select.in.h: Likewise.
7243         * lib/sys_socket.in.h: Likewise.
7244         * lib/sys_stat.in.h: Likewise.
7245         * lib/sys_time.in.h: Likewise.
7246         * lib/sys_times.in.h: Likewise.
7247         * lib/sys_uio.in.h: Likewise.
7248         * lib/sys_utsname.in.h: Likewise.
7249         * lib/sys_wait.in.h: Likewise.
7250         * lib/sysexits.in.h: Likewise.
7251         * lib/termios.in.h: Likewise.
7252         * lib/time.in.h: Likewise.
7253         * lib/unistd.in.h: Likewise.
7254         * lib/wchar.in.h: Likewise.
7255         * lib/wctype.in.h: Likewise.
7256         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7257         * modules/ctype (Makefile.am): Likewise.
7258         * modules/dirent (Makefile.am): Likewise.
7259         * modules/errno (Makefile.am): Likewise.
7260         * modules/fcntl-h (Makefile.am): Likewise.
7261         * modules/float (Makefile.am): Likewise.
7262         * modules/getopt-posix (Makefile.am): Likewise.
7263         * modules/iconv-h (Makefile.am): Likewise.
7264         * modules/langinfo (Makefile.am): Likewise.
7265         * modules/locale (Makefile.am): Likewise.
7266         * modules/math (Makefile.am): Likewise.
7267         * modules/netdb (Makefile.am): Likewise.
7268         * modules/netinet_in (Makefile.am): Likewise.
7269         * modules/poll-h (Makefile.am): Likewise.
7270         * modules/pthread (Makefile.am): Likewise.
7271         * modules/pty (Makefile.am): Likewise.
7272         * modules/sched (Makefile.am): Likewise.
7273         * modules/search (Makefile.am): Likewise.
7274         * modules/selinux-h (Makefile.am): Likewise.
7275         * modules/signal (Makefile.am): Likewise.
7276         * modules/spawn (Makefile.am): Likewise.
7277         * modules/stdarg (Makefile.am): Likewise.
7278         * modules/stddef (Makefile.am): Likewise.
7279         * modules/stdint (Makefile.am): Likewise.
7280         * modules/stdio (Makefile.am): Likewise.
7281         * modules/stdlib (Makefile.am): Likewise.
7282         * modules/string (Makefile.am): Likewise.
7283         * modules/strings (Makefile.am): Likewise.
7284         * modules/sys_file (Makefile.am): Likewise.
7285         * modules/sys_ioctl (Makefile.am): Likewise.
7286         * modules/sys_select (Makefile.am): Likewise.
7287         * modules/sys_socket (Makefile.am): Likewise.
7288         * modules/sys_stat (Makefile.am): Likewise.
7289         * modules/sys_time (Makefile.am): Likewise.
7290         * modules/sys_times (Makefile.am): Likewise.
7291         * modules/sys_uio (Makefile.am): Likewise.
7292         * modules/sys_utsname (Makefile.am): Likewise.
7293         * modules/sys_wait (Makefile.am): Likewise.
7294         * modules/sysexits (Makefile.am): Likewise.
7295         * modules/termios (Makefile.am): Likewise.
7296         * modules/time (Makefile.am): Likewise.
7297         * modules/unistd (Makefile.am): Likewise.
7298         * modules/wchar (Makefile.am): Likewise.
7299         * modules/wctype-h (Makefile.am): Likewise.
7300         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7301
7302 2011-05-29  Bruno Haible  <bruno@clisp.org>
7303
7304         assert-h: Allow multiple gnulib generated replacements to coexist.
7305         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7306
7307 2011-05-29  Bruno Haible  <bruno@clisp.org>
7308
7309         argp: Allow coexistence with strerror_r-posix module.
7310         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7311         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7312         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7313         not the glibc signature.
7314
7315 2011-05-28  Bruno Haible  <bruno@clisp.org>
7316
7317         gnulib-tool: Alternative structure of testdirs, similar to --import.
7318         * gnulib-tool: New option --single-configure.
7319         (func_usage): Document it.
7320         (single_configure): New variable.
7321         (func_modules_transitive_closure_separately,
7322         func_modules_transitive_closure_separately,
7323         func_determine_use_libtests, func_modules_add_dummy_separately,
7324         func_modules_to_filelist_separately): New functions, extracted from
7325         func_import.
7326         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7327         (func_import): Use the new functions.
7328         (func_create_testdir): Set final_modules. Handle $single_configure =
7329         true case.
7330
7331 2011-05-28  Bruno Haible  <bruno@clisp.org>
7332
7333         getloadavg: Remove an unreliable safety check.
7334         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7335         getloadavg.c is in place.
7336         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7337         Reported by Sam Steingold <sds@gnu.org>.
7338
7339 2011-05-28  Bruno Haible  <bruno@clisp.org>
7340
7341         doc: Cleanup yet another file produced by texinfo.tex.
7342         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7343
7344 2011-05-28  Bruno Haible  <bruno@clisp.org>
7345
7346         Finish the conditional dependencies mechanism.
7347         * gnulib-tool: New option --no-conditional-dependencies.
7348         (func_usage): Document it. Don't mark --conditional-dependencies as
7349         experimental.
7350         (cond_dependencies): The possible values can now be true, false, empty.
7351         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7352         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7353         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7354
7355 2011-05-28  Bruno Haible  <bruno@clisp.org>
7356
7357         doc: Use a recent texinfo.tex.
7358         * doc/Makefile (tex_opts): New variable.
7359         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7360
7361 2011-05-28  Jim Meyering  <meyering@redhat.com>
7362
7363         intprops.h: adjust comment to match code change
7364         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7365         only once, it *may* have side effects.  Also fix an unrelated typo.
7366         (_GL_INT_SIGNED): Likewise.
7367
7368 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7369
7370         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7371
7372 2011-05-26  Bruno Haible  <bruno@clisp.org>
7373
7374         mbsrchr: Avoid collision with system function on Interix.
7375         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7376         Reported by Markus Duft <mduft@gentoo.org>.
7377
7378 2011-05-15  James Youngman  <jay@gnu.org>
7379
7380         getopt: for ambiguous options, enumerate the possibilities.
7381         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7382         the ambiguous options when an ambiguous prefix is given. This was
7383         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7384         glibc change was
7385         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7386
7387 2011-05-25  Eric Blake  <eblake@redhat.com>
7388
7389         getcwd: work around mingw bug
7390         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7391         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7392         Reported by Matthias Bolte.
7393
7394 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7395
7396         test-intprops: disable -Wtype-limits diagnostics
7397         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7398         diagnostics.  Otherwise, the integer overflow macros generate many
7399         diagnostics.  Reported by Jim Meyering in
7400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7401
7402         intprops: shorten, to pacify gcc -Woverlength-strings
7403         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7404         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7405         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7406         likely to run afoul of C compiler limits for string constant lengths.
7407         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7408
7409 2011-05-24  Eric Blake  <eblake@redhat.com>
7410
7411         docs: document recently fixed glibc printf bug
7412         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7413         * doc/posix-functions/printf.texi (printf): Likewise.
7414         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7415         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7416
7417         closein-tests: convert to init.sh
7418         * modules/closein-tests (Files): Add init.sh
7419         * tests/test-closein.sh Use it.
7420
7421         yesno-tests: convert to init.sh
7422         * modules/yesno-tests (Files): Add init.sh.
7423         * tests/test-yesno.sh: Use it.
7424
7425         atexit-tests: ensure reliable exit status
7426         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7427         Reported by Bruno Haible.
7428
7429 2011-05-24  Bruno Haible  <bruno@clisp.org>
7430
7431         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7432         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7433         gl_PREREQ_STRERROR_R invocations from here...
7434         * modules/strerror_r-posix (configure.ac): ... to here.
7435
7436 2011-05-24  Eric Blake  <eblake@redhat.com>
7437
7438         strerror_r: fix missing header
7439         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7440
7441         strerror_r: fix AIX test failures
7442         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7443         ERANGE failure.
7444
7445         strerror_r: fix Solaris test failures
7446         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7447         failures.
7448         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7449
7450         strerror_r: enforce POSIX recommendations
7451         * lib/strerror_r.c (safe_copy): New helper method.
7452         (strerror_r): Guarantee a non-empty string.
7453         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7454         recent POSIX rulings and to match our strerror guarantees.
7455         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7456
7457 2011-05-24  Jim Meyering  <meyering@redhat.com>
7458
7459         test-perror2.c: avoid warning about unused variable
7460         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7461
7462 2011-05-24  Eric Blake  <eblake@redhat.com>
7463
7464         perror: avoid spurious test failure on HP-UX
7465         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7466
7467         tests: fix logic bug in init.sh
7468         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7469         shell.
7470
7471 2011-05-24  Jim Meyering  <meyering@redhat.com>
7472
7473         utimensat: do not reference an out-of-scope buffer
7474         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7475         declared in an inner scope, yet "times" would be dereferenced outside
7476         the scope in which "ts" was valid.
7477         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7478         of ts[2] "out/up", so that the use of aliased "times" (via
7479         "times = ts;") does not end up referencing an out-of-scope "ts"
7480
7481         opendir-safer.c: don't clobber errno; don't close negative FD
7482         * lib/opendir-safer.c (opendir_safer):
7483         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7484         file descriptor, and more importantly, don't clobber the
7485         offending errno value with EINVAL.  Before, upon failure
7486         of dup_safer, we would pass the negative file descriptor to
7487         fdopendir, which would clobber errno.
7488
7489 2011-05-23  Bruno Haible  <bruno@clisp.org>
7490
7491         idcache: Fix module description.
7492         * modules/idcache (Include): Set to "idcache.h".
7493
7494 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7495
7496         gnulib-tool: fix portability problem with MacOS sed
7497         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7498         before the "}".  Problem reported by Leo in
7499         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7500         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7501         sed_extract_condition1, sed_extract_condition2.
7502
7503 2011-05-23  Bruno Haible  <bruno@clisp.org>
7504
7505         hash: Simplify autoconf macro.
7506         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7507
7508 2011-05-23  Bruno Haible  <bruno@clisp.org>
7509
7510         getugroups: Fix module description.
7511         * modules/getugroups (Include): Set to "getugroups.h".
7512
7513 2011-05-23  Bruno Haible  <bruno@clisp.org>
7514
7515         linkat: Simplify autoconf macro.
7516         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7517
7518 2011-05-23  Bruno Haible  <bruno@clisp.org>
7519             Eric Blake  <eblake@redhat.com>
7520
7521         linkat, renameat: Update dependencies.
7522         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7523         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7524         symlinkat.
7525
7526 2011-05-23  Jim Meyering  <meyering@redhat.com>
7527
7528         maint.mk: more tight_scope improvements
7529         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7530         (_gl_TS_headers): Define only in if-0'd block.
7531         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7532         sometimes we must *not* use it.  Adjust uses accordingly.
7533         (sc_tight_scope): Use much simpler grep-based test to determine
7534         whether we skip this rule.
7535
7536         maint.mk: generalize/improve the tight-scope rule
7537         * top/maint.mk: Emit a warning when the test is skipped.
7538         (_gl_TS_dir): Add $(srcdir)/ prefix.
7539         (_gl_TS_function_match): Simplify, rather than trying
7540         to enumerate common types.  Otherwise, it would fail to match an
7541         "extern unsigned char const *" declaration in idutils.
7542         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7543         a way to support use of that type of macro.
7544         (_gl_TS_var_match): Simplify regexp.
7545         (_gl_TS_obj_files): New configurable variable.
7546         (_gl_TS_headers): Likewise.
7547
7548 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7549
7550         verify: fix bug when gnulib <assert.h> is also included
7551         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7552         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7553         Perhaps there's a better way, but this fixes the immediate problem.
7554         Problem reported by Bruno Haible in
7555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7556
7557 2011-05-22  Bruno Haible  <bruno@clisp.org>
7558
7559         xgetcwd: Simplify autoconf macro.
7560         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7561
7562 2011-05-22  Bruno Haible  <bruno@clisp.org>
7563
7564         New module 'mktime-internal'.
7565         * modules/mktime-internal: New file.
7566         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7567         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7568         mktime_internal as a C macro if libc has __mktime_internal.
7569         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7570         conditions.
7571         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7572
7573 2011-05-22  Bruno Haible  <bruno@clisp.org>
7574
7575         timegm: Correct mktime replacement statements.
7576         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7577         defining mktime as a C macro. This completes a 2009-07-28 commit.
7578
7579 2011-05-22  Bruno Haible  <bruno@clisp.org>
7580
7581         timegm: Simplify autoconf macro.
7582         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7583
7584 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7585
7586         clock-time: change to LGPLv2+.
7587         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7588         BSD-like but we have no mark for that; this is good enough for now.
7589
7590 2011-05-21  Bruno Haible  <bruno@clisp.org>
7591
7592         strerror_r: Fix comments.
7593         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7594
7595 2011-05-21  Bruno Haible  <bruno@clisp.org>
7596
7597         relocatable-prog-wrapper: Fix possible link error.
7598         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7599         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7600         (gl_FUNC_SETENV): ... to here.
7601         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7602         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7603
7604 2011-05-21  Bruno Haible  <bruno@clisp.org>
7605
7606         relocatable-prog-wrapper: Assume strerror() exists.
7607         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7608         m4/strerror.m4.
7609         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7610         * lib/relocwrapper.c: Remove mention of strerror module.
7611         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7612         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7613         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7614         C macro.
7615
7616 2011-05-21  Bruno Haible  <bruno@clisp.org>
7617
7618         select: Simplify replacement idiom.
7619         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7620         Win32 platforms.
7621         * lib/sys_select.in.h (select): Simplify accordingly.
7622         * modules/select (Depends-on): Likewise.
7623
7624 2011-05-21  Bruno Haible  <bruno@clisp.org>
7625
7626         mkdir-p: Simplify autoconf macro.
7627         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7628         gl_FUNC_LCHOWN.
7629
7630 2011-05-21  Eric Blake  <eblake@redhat.com>
7631
7632         strerror_r: avoid clobbering strerror on cygwin
7633         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7634         fall back instead to sys_errlist.
7635         * modules/strerror (configure.ac): Add witness.
7636         * tests/test-strerror_r.c (main): Enhance test.
7637         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7638         * tests/test-perror2.c (main): Free memory before exit.
7639
7640 2011-05-21  Bruno Haible  <bruno@clisp.org>
7641
7642         mkdtemp: Use gnulib naming conventions.
7643         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7644         * modules/mkdtemp (configure.ac): Update.
7645
7646 2011-05-20  Eric Blake  <eblake@redhat.com>
7647
7648         strerror_r: avoid corrupting errno on Solaris
7649         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7650         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7651
7652         strerror_r: avoid compiler warning
7653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7654
7655         strerror_r: simplify AIX code
7656         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7657
7658         test-perror: avoid spurious failure on FreeBSD
7659         * modules/perror-tests (Depends-on): Add strerror, now that
7660         strerror_r no longer pulls it in.
7661
7662 2011-05-20  Bruno Haible  <bruno@clisp.org>
7663
7664         strerror_r-posix: Remove unused dependencies.
7665         * modules/strerror_r-posix (Depends-on): Remove strerror.
7666         Reported by Eric Blake.
7667
7668 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7669
7670         intprops: remove assumption about A|B representation
7671         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7672         is a valid integer if both A and B are.  Although this is true for
7673         all known practical hosts, the C standard doesn't guarantee it,
7674         and the code need not assume it.  Also, this change may work around
7675         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7677
7678 2011-05-20  Eric Blake  <eblake@redhat.com>
7679
7680         perror: work around FreeBSD bug
7681         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7682         is broken.  Move AC_LIBOBJ...
7683         * modules/perror (configure.ac): Here.
7684         * doc/posix-functions/perror.texi (perror): Document this.
7685         * tests/test-perror2.c (main): Enhance test.
7686
7687         test-perror: check for strerror interactions
7688         * tests/macros.h (STREQ): Add macro.
7689         * modules/perror-tests (Files): Add second test.
7690         * tests/test-perror2.c (main): New file.
7691         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7692
7693         test-perror: rewrite to use init script
7694         * modules/perror-tests (Files): Add init.sh.
7695         * tests/test-perror.sh: Use temporary directory.
7696
7697 2011-05-20  Jim Meyering  <meyering@redhat.com>
7698
7699         maint: replace misused "a" with "an"
7700         * doc/intprops.texi: "a integer"
7701         * doc/regex.texi: "a explanation"
7702         * lib/alignof.h: "a object"
7703         * lib/argmatch.h: "a explanation"
7704         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7705         * lib/stdint.in.h: "a integer"
7706         * lib/userspec.c: "a owner"
7707         * doc/gnulib.texi: Fix "a idea", and reword.
7708
7709 2011-05-19  Jim Meyering  <meyering@redhat.com>
7710
7711         maint: correct misuse of "a" and "an"
7712         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7713         * lib/argp-help.c: "an docum...": s/an/a/
7714         * lib/argp-parse.c: "An vector": s/An/A/
7715         * lib/execute.c: "an native": s/an/a/
7716         * lib/spawn-pipe.c: Likewise.
7717         * lib/gc.h: "an Gc_rc": s/an/a/
7718         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7719         * lib/fts.c: "an stat.st_dev": s/an/a/
7720
7721 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7722
7723         intprops-tests: work around HP-UX 11.23 cc bug with constants
7724         * tests/test-intprops.c (VERIFY): New macro.
7725         (main): Use it, instead of verify, to work around the compiler bug; see
7726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7727
7728         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7729         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7730         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7731         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7732         (_GL_REMAINDER_OVERFLOW): Use it.
7733
7734         intprops-tests: revert unsigned part of previous change
7735         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7736         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7737         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7739
7740 2011-05-19  Bruno Haible  <bruno@clisp.org>
7741
7742         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7743         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7744         strerror_r() returned without filling the buffer.
7745         Reported by Eric Blake.
7746
7747 2011-05-19  Eric Blake  <eblake@redhat.com>
7748
7749         strerror_r: guarantee unchanged errno
7750         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7751         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7752         failure.
7753         * tests/test-strerror_r.c (main): Enhance test.
7754
7755 2011-05-19  Bruno Haible  <bruno@clisp.org>
7756
7757         strerror_r: Reorder #if blocks.
7758         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7759         for consistency with the previous commit.
7760
7761 2011-05-19  Bruno Haible  <bruno@clisp.org>
7762
7763         perror: Avoid clobbering the strerror buffer when possible.
7764         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7765         * lib/strerror.c: Include it.
7766         * modules/strerror (Files): Add lib/strerror-impl.h.
7767         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7768         (my_strerror): New function, defined through lib/strerror-impl.h.
7769         (perror): Use it instead of strerror.
7770         * modules/perror (Files): Add lib/strerror-impl.h.
7771         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7772
7773 2011-05-19  Eric Blake  <eblake@redhat.com>
7774
7775         strerror_r: fix on newer cygwin
7776         * lib/strerror_r.c (strerror_r): Cygwin now has
7777         __xpg_strerror_r, use it.
7778
7779 2011-05-19  Bruno Haible  <bruno@clisp.org>
7780
7781         strerror_r: Avoid clobbering the strerror buffer when possible.
7782         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7783         (sys_nerr, sys_errlist): New declarations.
7784         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7785         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7786         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7787
7788 2011-05-19  Bruno Haible  <bruno@clisp.org>
7789
7790         strerror_r: Fix test failure on mingw.
7791         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7792         EXTEND_STRERROR_R.
7793         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7794         macros from errno.in.h instead.
7795
7796 2011-05-19  Eric Blake  <eblake@redhat.com>
7797
7798         strerror: relax test for Solaris
7799         * tests/test-strerror.c (main): Permit Solaris behavior.
7800         * tests/test-strerror_r.c (main): Likewise.
7801
7802         strerror: enforce POSIX ruling on strerror(0)
7803         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7804         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7805         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7806         * doc/posix-functions/strerror.texi (strerror): Document it.
7807         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7808         * tests/test-strerror.c (main): Strengthen test.
7809         * tests/test-strerror_r.c (main): Likewise.
7810
7811 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7812
7813         intprop-tests: port to older and more-pedantic compilers
7814         * modules/intprops-tests (Files): Add tests/macros.h.
7815         * tests/test-intprops.c: Include macros.h.
7816         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7817         it's no longer documented to expand to an integer constant expression.
7818         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7819         argument is floating point, as it's no longer documented to expand
7820         to an integer constant expression in that case.
7821         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7822         compiler bugs reported by Bruno Haible.  See
7823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7824         (U0, U1): New constants, to work around the same bugs.  Also,
7825         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7826
7827         intprops: work around C compiler bugs
7828         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7829         bug in Sun C 5.11 2010/08/13 and other compilers; see
7830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7831
7832         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7833         * doc/intprops.texi (Integer Type Determination): Fix
7834         documentation for TYPE_IS_INTEGER: it returns an constant
7835         expression, not an integer constant expression.  Fix doc for
7836         TYPE_SIGNED: it returns an integer constant expression only if its
7837         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7838         hardly worth documented that way....)
7839
7840 2011-05-18  Bruno Haible  <bruno@clisp.org>
7841
7842         strerror_r: Avoid clobbering the strerror buffer when possible.
7843         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7844         Handle gnulib defined errno values here. When strerror() returns NULL
7845         or an empty string, return EINVAL.
7846         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7847         gnulib defined errno values here.
7848         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7849
7850 2011-05-18  Eric Blake  <eblake@redhat.com>
7851
7852         fnmatch: avoid compiler warning
7853         * lib/fnmatch_loop.c (FCT): Use correct type.
7854         Reported by Matthias Bolte.
7855
7856 2011-05-13  Jim Meyering  <meyering@redhat.com>
7857
7858         maint.mk: three new prohibit_<HDR>_without_use rules
7859         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7860         (sc_prohibit_stdio-safer_without_use): Likewise.
7861         (sc_prohibit_xfreopen_without_use): Likewise.
7862
7863 2011-05-17  Jim Meyering  <meyering@redhat.com>
7864
7865         announce-gen: fail if the NEWS delta is empty
7866         If there's nothing noteworthy in NEWS, then either you forgot
7867         or you shouldn't be releasing.
7868         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7869
7870 2011-05-17  Pádraig Brady <P@draigBrady.com>
7871
7872         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7873         reserved symbols starting with double underscore from the check.
7874
7875 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7876
7877         intprops: add doc
7878         * doc/intprops.texi: New file, documenting intprops.
7879         * doc/gnulib.texi (Particular Modules): Include it.
7880
7881         verify: add doc to gnulib manual and fix example
7882         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7883         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7884         (Compile-time Assertions): Fix example so it can't overflow.
7885
7886 2011-05-17  Jim Meyering  <meyering@redhat.com>
7887
7888         warnings.m4: don't usurp save_CPPFLAGS variable name
7889         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7890
7891         doc: fix typo
7892         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7893
7894 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7895             Bruno Haible  <bruno@clisp.org>
7896
7897         doc: Tweak recent change.
7898         * README (Portability guidelines): Tweak new text.
7899         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7900         Interix 6.1.
7901
7902 2011-05-16  Eric Blake  <eblake@redhat.com>
7903
7904         inttypes: avoid autoconf warning
7905         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7906         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7907
7908 2011-05-16  Sam Steingold <sds@gnu.org>
7909         and Eric Blake  <eblake@redhat.com>
7910
7911         vc-list-files: accept multiple directory operands
7912         * build-aux/vc-list-files: Iterate over all remaining operands.
7913
7914 2011-05-16  Bruno Haible  <bruno@clisp.org>
7915
7916         Fix confusion regarding deprecated modules.
7917         * modules/calloc (Status, Notice): Mark module as deprecated, not
7918         obsolete.
7919         * modules/fnmatch-posix (Status, Notice): Likewise.
7920         * modules/getdate (Status, Notice): Likewise.
7921         * modules/getopt (Status, Notice): Likewise.
7922         * modules/malloc (Status, Notice): Likewise.
7923         * modules/pipe (Status, Notice): Likewise.
7924         * modules/realloc (Status, Notice): Likewise.
7925         * modules/rename-dest-slash (Status, Notice): Likewise.
7926         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7927         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7928         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7929         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7930         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7931
7932 2011-05-16  Bruno Haible  <bruno@clisp.org>
7933
7934         doc: List the target platforms.
7935         * doc/gnulib-intro.texi (Target Platforms): New section.
7936         * doc/gnulib.texi (Introduction): Update menu.
7937         * README (Portability guidelines): Refer to the new section. Update
7938         statement about oldest supported environment. Remove rationale why
7939         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7940         unportable C89 function.
7941         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7942         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7943
7944 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7945
7946         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7947
7948 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7949
7950         intprops-tests: new module
7951         * modules/intprops-tests, tests/test-intprops.c: New files.
7952
7953         intprops: add safe, portable integer overflow checking
7954         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7955         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7956         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7957         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7958         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7959         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7960         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7961         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7962         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7963         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7964         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7965
7966 2011-05-12  James Youngman  <jay@gnu.org>
7967
7968         Add a test for glibc's Bugzilla bug #12378.
7969         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7970         doesn't allow the literal matching of a lone "[" (which is
7971         required by POSIX).
7972         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7973
7974 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7975
7976         Sync glibc change fixing Bugzilla bug #12378.
7977         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7978         beginning and fall back to matching as normal character if the
7979         string ends before the matching ']' is found.  This is what POSIX
7980         requires.
7981
7982 2011-05-13  Eric Blake  <eblake@redhat.com>
7983
7984         getcwd-lgpl: relax test for FreeBSD
7985         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7986         issue.
7987         * tests/test-getcwd-lgpl.c (main): Relax test.
7988         Reported by Matthias Bolte.
7989
7990 2011-05-11  Eric Blake  <eblake@redhat.com>
7991
7992         test-fflush: silence compiler warning
7993         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7994
7995 2011-05-11  Bruno Haible  <bruno@clisp.org>
7996
7997         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7998         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7999         * modules/canonicalize (Depends-on): Add 'nocrash'.
8000         * modules/canonicalize-lgpl (Depends-on): Likewise.
8001         * doc/posix-functions/realpath.texi: Update platforms list.
8002         Reported by Ryan Schmidt <ryandesign@macports.org>.
8003
8004 2011-05-11  Bruno Haible  <bruno@clisp.org>
8005
8006         group-member: Declare function in <unistd.h>.
8007         * lib/unistd.in.h (group_member): New declaration.
8008         * lib/group-member.h: Remove file.
8009         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8010         * tests/test-unistd-c++.cc: Check signature of group_member.
8011         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8012         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8013         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8014         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8015         HAVE_GROUP_MEMBER.
8016         * modules/group-member (Files): Remove lib/group-member.h.
8017         (Depends-on): Add unistd. Specify conditions.
8018         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8019         (Include): Change to <unistd.h>.
8020         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8021         HAVE_GROUP_MEMBER.
8022         * NEWS: Mention the change.
8023         * lib/euidaccess.c: Don't include group-member.h.
8024
8025 2011-05-11  Bruno Haible  <bruno@clisp.org>
8026
8027         group-member: Document module.
8028         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8029         module.
8030
8031 2011-05-11  Bruno Haible  <bruno@clisp.org>
8032
8033         fclose: Fix mistake earlier today.
8034         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8035
8036 2011-05-11  Eric Blake  <eblake@redhat.com>
8037
8038         fclose: preserve fflush errors
8039         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8040         Reported by Jim Meyering.
8041
8042         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8043         * build-aux/bootstrap (check_versions): When no specific version
8044         is required, merely check that the app produces an exit status
8045         that indicates its existence.
8046
8047         maint.mk: drop redundant check
8048         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8049         the same but better.
8050
8051 2011-05-11  Bruno Haible  <bruno@clisp.org>
8052
8053         fclose: Fix possible link error.
8054         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8055         unregister_shadow_fd. Improve comments.
8056         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8057         Eric Blake.
8058
8059 2011-05-11  Jim Meyering  <meyering@redhat.com>
8060
8061         maint.mk: improve "can not" detection and generalize rule name
8062         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8063         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8064         Use the same technique as in sc_prohibit_doubled_word, so that
8065         we recognize "can not" also when the words are separated by a newline.
8066         Suggested by Eric Blake.
8067         (perl_filename_lineno_text_): Define.  Factored out of...
8068         (prohibit_doubled_word_): ...here.  Use the new definition.
8069         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8070         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8071         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8072
8073 2011-05-10  Eric Blake  <eblake@redhat.com>
8074
8075         fclose: avoid double close race when possible
8076         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8077         all but WINDOWS_SOCKETS.
8078
8079 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8080
8081         openat: correct new comment
8082         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8083
8084 2011-05-10  Jim Meyering  <meyering@redhat.com>
8085
8086         openat: add comments
8087         * lib/openat-proc.c (openat_proc_name): Add comments,
8088         mostly from Eric Blake.
8089
8090 2011-05-09  Eric Blake  <eblake@redhat.com>
8091
8092         openat: reduce syscalls in first probe of /proc
8093         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8094         be a directory.  Simplify the probe for .. bugs.
8095         * modules/openat (Depends-on): Drop same-inode.
8096         Reported by Bastien ROUCARIES.
8097
8098 2011-05-09  Jim Meyering  <meyering@redhat.com>
8099
8100         maint.mk: change semantics/name of tight_scope variables
8101         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8102         Rename variables to align with semantics that make them more useful.
8103
8104         maint.mk: tweak new rule's name not to impinge
8105         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8106         (sc_tight_scope): Use new rule name rather than $@-0.
8107
8108         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8109         * top/maint.mk (sc_tight_scope): New rule.
8110         (sc_tight_scope-0): New rule, ifdef'd out.
8111         (_gl_TS_dir): Default.
8112         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8113         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8114
8115 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8116
8117         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8118         Haible <bruno@clisp.org>.
8119
8120 2011-05-08  Bruno Haible  <bruno@clisp.org>
8121
8122         Comments.
8123         * m4/isnanf.m4: Add comment.
8124         * m4/isnanl.m4: Likewise.
8125
8126 2011-05-08  Bruno Haible  <bruno@clisp.org>
8127
8128         glob: Remove obsolete macro.
8129         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8130
8131 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8132
8133         intprops: Sun C 5.11 supports __typeof__
8134         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8135         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8136         which is new.
8137         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8138
8139         intprops: switch to usual gnulib indenting and naming
8140         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8141         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8142
8143         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8144
8145 2011-05-08  Jim Meyering  <meyering@redhat.com>
8146
8147         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8148         * top/maint.mk (release-prep): Use make's --no-print-directory
8149         option when generating the announcement.  This eliminates the
8150         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8151         generated announcement template.
8152
8153 2011-05-08  Bruno Haible  <bruno@clisp.org>
8154
8155         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8156         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8157         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8158
8159 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         ignore-value, verify: Omit include files from lib_SOURCES.
8162         * modules/ignore-value, modules/verify (Makefile.am):
8163         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8164         that leads Automake to duplicate use of am__objects_... variables
8165         in Makefile.in.  See
8166         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8167
8168 2011-05-07  Bruno Haible  <bruno@clisp.org>
8169
8170         fclose: Simplify autoconf macro.
8171         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8172         defined.
8173
8174 2011-05-07  Bruno Haible  <bruno@clisp.org>
8175
8176         canonicalize-lgpl: Fix autoconf macro ordering bug.
8177         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8178         gl_STDLIB_H_DEFAULTS.
8179
8180 2011-05-06  Eric Blake  <eblake@redhat.com>
8181
8182         maintainer-makefile: make sc_po_check easier to tune
8183         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8184         to probe for strings, such as an alternate location for gnulib.
8185
8186         fclose: guarantee behavior on seekable stdin
8187         * modules/fclose (Depends-on): Add fflush.
8188         * doc/posix-functions/fclose.texi (fclose): Document this.
8189         * tests/test-fclose.c (main): Make test for this unconditional.
8190
8191 2011-05-06  Bruno Haible  <bruno@clisp.org>
8192
8193         fflush, fpurge: Relicense under LGPLv2+.
8194         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8195         * modules/fpurge (License): Likewise.
8196         With permission from Eric Blake and Jim Meyering.
8197         Suggested by Eric Blake.
8198
8199 2011-05-06  Karl Berry  <karl@gnu.org>
8200
8201         * MODULES.html.sh (func_all_modules): remove exit.
8202
8203 2011-05-06  Jim Meyering  <meyering@redhat.com>
8204
8205         maint.mk: use info-gnu@ as the default only for a stable release
8206         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8207         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8208         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8209         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8210
8211 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8212
8213         assert-h: new module, which supports C1X-style static_assert
8214         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8215         * lib/verify.h: Revamp so that this can be copied into assert.h,
8216         while retaining the ability to use it standalone as before.
8217         Rename private identifiers so as not to encroach on the
8218         standard C namespace, since this is now used by assert.h.
8219         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8220         the old verify_true.
8221         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8222         the old verify_true.  Use _GL_VERIFY_TYPE.
8223         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8224         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8225         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8226         defined when this file is copied into the replacement assert.h.
8227         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8228         and _Static_assert is not built in.
8229         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8230         defined, and use the new macros mentioned above.
8231         * doc/posix-headers/assert.texi: Document this.
8232
8233 2011-05-05  Bruno Haible  <bruno@clisp.org>
8234
8235         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8236         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8237         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8238         gl_REPLACE_FCLOSE here.
8239         * modules/fflush (Depends-on): Remove fclose.
8240         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8241         combination with module 'fclose'.
8242
8243 2011-05-05  Bruno Haible  <bruno@clisp.org>
8244
8245         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8246         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8247         gl_FUNC_FFLUSH.
8248         (gl_FUNC_FFLUSH): Use it.
8249         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8251         gl_REPLACE_FSEEKO here.
8252
8253 2011-05-05  Bruno Haible  <bruno@clisp.org>
8254
8255         tzset: Relicense under LGPL.
8256         * modules/tzset (License): Change to LGPL.
8257         No agreement needed; it's a no-op.
8258
8259         strtoimax, strtoumax: Relicense under LGPL.
8260         * modules/strtoimax (License): Change to LGPL.
8261         * modules/strtoumax (License): Likewise.
8262         With permission from Jim Meyering, Paul Eggert:
8263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8265
8266         getgroups: Relicense under LGPL.
8267         * modules/getgroups (License): Change to LGPL.
8268         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8272
8273         nanosleep: Relicense under LGPL.
8274         * modules/nanosleep (License): Change to LGPL.
8275         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8276         Haible:
8277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8281
8282         futimens: Relicense under LGPL.
8283         * modules/futimens (License): Change to LGPL.
8284         With permission from Eric Blake:
8285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8286
8287         fflush: Relicense under LGPL.
8288         * modules/fflush (License): Change to LGPL.
8289         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8293
8294         tmpfile: Relicense under LGPL.
8295         * modules/tmpfile (License): Change to LGPL.
8296         With permission from Ben Pfaff:
8297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8298
8299         isfinite: Relicense under LGPL.
8300         * modules/isfinite (License): Change to LGPL.
8301         With permission from Ben Pfaff, Bruno Haible:
8302         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8304
8305         acosl..tanl: Relicense under LGPL.
8306         * modules/acosl (License): Change to LGPL.
8307         * modules/asinl (License): Likewise.
8308         * modules/atanl (License): Likewise.
8309         * modules/cosl (License): Likewise.
8310         * modules/expl (License): Likewise.
8311         * modules/logl (License): Likewise.
8312         * modules/sinl (License): Likewise.
8313         * modules/sqrtl (License): Likewise.
8314         * modules/tanl (License): Likewise.
8315         Source code originally from glibc and Paolo Bonzini. Agreements:
8316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8318
8319 2011-05-05  Bruno Haible  <bruno@clisp.org>
8320
8321         signal: Define sighandler_t.
8322         * lib/signal.in.h (sighandler_t): New type.
8323         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8324         whether sighandler_t is defined.
8325         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8326         * modules/signal (Depends-on): Add extensions.
8327         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8328         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8329         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8330
8331 2011-05-05  Eric Blake  <eblake@redhat.com>
8332
8333         maint: remove useless REPLACE_*_H macros
8334         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8335         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8336         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8337         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8338         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8339         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8340         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8341         * m4/btowc.m4: Update callers.
8342         * m4/dirfd.m4: Likewise.
8343         * m4/duplocale.m4: Likewise.
8344         * m4/fchdir.m4: Likewise.
8345         * m4/fdopendir.m4: Likewise.
8346         * m4/inet_ntop.m4: Likewise.
8347         * m4/inet_pton.m4: Likewise.
8348         * m4/ioctl.m4: Likewise.
8349         * m4/mbrlen.m4: Likewise.
8350         * m4/mbrtowc.m4: Likewise.
8351         * m4/mbsinit.m4: Likewise.
8352         * m4/mbsnrtowcs.m4: Likewise.
8353         * m4/mbsrtowcs.m4: Likewise.
8354         * m4/poll.m4: Likewise.
8355         * m4/setlocale.m4: Likewise.
8356         * m4/wcrtomb.m4: Likewise.
8357         * m4/wcsnrtombs.m4: Likewise.
8358         * m4/wcsrtombs.m4: Likewise.
8359         * m4/wctob.m4: Likewise.
8360         * m4/wcwidth.m4: Likewise.
8361         * modules/posix_spawn: Likewise.
8362         * modules/posix_spawn_file_actions_addclose: Likewise.
8363         * modules/posix_spawn_file_actions_adddup2: Likewise.
8364         * modules/posix_spawn_file_actions_addopen: Likewise.
8365         * modules/posix_spawn_file_actions_destroy: Likewise.
8366         * modules/posix_spawn_file_actions_init: Likewise.
8367         * modules/posix_spawnattr_destroy: Likewise.
8368         * modules/posix_spawnattr_getflags: Likewise.
8369         * modules/posix_spawnattr_getpgroup: Likewise.
8370         * modules/posix_spawnattr_getschedparam: Likewise.
8371         * modules/posix_spawnattr_getschedpolicy: Likewise.
8372         * modules/posix_spawnattr_getsigdefault: Likewise.
8373         * modules/posix_spawnattr_getsigmask: Likewise.
8374         * modules/posix_spawnattr_init: Likewise.
8375         * modules/posix_spawnattr_setflags: Likewise.
8376         * modules/posix_spawnattr_setpgroup: Likewise.
8377         * modules/posix_spawnattr_setschedparam: Likewise.
8378         * modules/posix_spawnattr_setschedpolicy: Likewise.
8379         * modules/posix_spawnattr_setsigdefault: Likewise.
8380         * modules/posix_spawnattr_setsigmask: Likewise.
8381         * modules/posix_spawnp: Likewise.
8382
8383 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8384
8385         Add option to do-release-commit-and-tag to specify branch.
8386         * build-aux/do-release-commit-and-tag: Add --branch.
8387
8388 2011-05-03  Bruno Haible  <bruno@clisp.org>
8389
8390         Avoid unnecessary compilation units, through conditional dependencies.
8391         * modules/accept (Depends-on): Add conditions to the dependencies.
8392         * modules/acosl (Depends-on): Likewise.
8393         * modules/argz (Depends-on): Likewise.
8394         * modules/asinl (Depends-on): Likewise.
8395         * modules/atanl (Depends-on): Likewise.
8396         * modules/atoll (Depends-on): Likewise.
8397         * modules/bind (Depends-on): Likewise.
8398         * modules/btowc (Depends-on): Likewise.
8399         * modules/canonicalize-lgpl (Depends-on): Likewise.
8400         * modules/ceil (Depends-on): Likewise.
8401         * modules/ceilf (Depends-on): Likewise.
8402         * modules/ceill (Depends-on): Likewise.
8403         * modules/chdir-long (Depends-on): Likewise.
8404         * modules/chown (Depends-on): Likewise.
8405         * modules/close (Depends-on): Likewise.
8406         * modules/connect (Depends-on): Likewise.
8407         * modules/cosl (Depends-on): Likewise.
8408         * modules/dirfd (Depends-on): Likewise.
8409         * modules/dprintf (Depends-on): Likewise.
8410         * modules/dprintf-posix (Depends-on): Likewise.
8411         * modules/error (Depends-on): Likewise.
8412         * modules/euidaccess (Depends-on): Likewise.
8413         * modules/expl (Depends-on): Likewise.
8414         * modules/faccessat (Depends-on): Likewise.
8415         * modules/fchdir (Depends-on): Likewise.
8416         * modules/fclose (Depends-on): Likewise.
8417         * modules/fcntl (Depends-on): Likewise.
8418         * modules/fdopendir (Depends-on): Likewise.
8419         * modules/fflush (Depends-on): Likewise.
8420         * modules/floor (Depends-on): Likewise.
8421         * modules/floorf (Depends-on): Likewise.
8422         * modules/floorl (Depends-on): Likewise.
8423         * modules/fnmatch (Depends-on): Likewise.
8424         * modules/fopen (Depends-on): Likewise.
8425         * modules/fprintf-posix (Depends-on): Likewise.
8426         * modules/frexp (Depends-on): Likewise.
8427         * modules/frexp-nolibm (Depends-on): Likewise.
8428         * modules/frexpl (Depends-on): Likewise.
8429         * modules/frexpl-nolibm (Depends-on): Likewise.
8430         * modules/fseek (Depends-on): Likewise.
8431         * modules/fsusage (Depends-on): Likewise.
8432         * modules/ftell (Depends-on): Likewise.
8433         * modules/ftello (Depends-on): Likewise.
8434         * modules/futimens (Depends-on): Likewise.
8435         * modules/getcwd (Depends-on): Likewise.
8436         * modules/getcwd-lgpl (Depends-on): Likewise.
8437         * modules/getdelim (Depends-on): Likewise.
8438         * modules/getdomainname (Depends-on): Likewise.
8439         * modules/getgroups (Depends-on): Likewise.
8440         * modules/gethostname (Depends-on): Likewise.
8441         * modules/getline (Depends-on): Likewise.
8442         * modules/getlogin_r (Depends-on): Likewise.
8443         * modules/getopt-posix (Depends-on): Likewise.
8444         * modules/getpeername (Depends-on): Likewise.
8445         * modules/getsockname (Depends-on): Likewise.
8446         * modules/getsockopt (Depends-on): Likewise.
8447         * modules/getsubopt (Depends-on): Likewise.
8448         * modules/getusershell (Depends-on): Likewise.
8449         * modules/glob (Depends-on): Likewise.
8450         * modules/grantpt (Depends-on): Likewise.
8451         * modules/iconv_open (Depends-on): Likewise.
8452         * modules/iconv_open-utf (Depends-on): Likewise.
8453         * modules/inet_ntop (Depends-on): Likewise.
8454         * modules/inet_pton (Depends-on): Likewise.
8455         * modules/ioctl (Depends-on): Likewise.
8456         * modules/isapipe (Depends-on): Likewise.
8457         * modules/isfinite (Depends-on): Likewise.
8458         * modules/isinf (Depends-on): Likewise.
8459         * modules/lchown (Depends-on): Likewise.
8460         * modules/ldexpl (Depends-on): Likewise.
8461         * modules/link (Depends-on): Likewise.
8462         * modules/linkat (Depends-on): Likewise.
8463         * modules/listen (Depends-on): Likewise.
8464         * modules/logl (Depends-on): Likewise.
8465         * modules/lstat (Depends-on): Likewise.
8466         * modules/mbrlen (Depends-on): Likewise.
8467         * modules/mbrtowc (Depends-on): Likewise.
8468         * modules/mbsinit (Depends-on): Likewise.
8469         * modules/mbsnrtowcs (Depends-on): Likewise.
8470         * modules/mbsrtowcs (Depends-on): Likewise.
8471         * modules/mbtowc (Depends-on): Likewise.
8472         * modules/memcmp (Depends-on): Likewise.
8473         * modules/mkdir (Depends-on): Likewise.
8474         * modules/mkdtemp (Depends-on): Likewise.
8475         * modules/mkfifo (Depends-on): Likewise.
8476         * modules/mkfifoat (Depends-on): Likewise.
8477         * modules/mknod (Depends-on): Likewise.
8478         * modules/mkostemp (Depends-on): Likewise.
8479         * modules/mkostemps (Depends-on): Likewise.
8480         * modules/mkstemp (Depends-on): Likewise.
8481         * modules/mkstemps (Depends-on): Likewise.
8482         * modules/mktime (Depends-on): Likewise.
8483         * modules/nanosleep (Depends-on): Likewise.
8484         * modules/open (Depends-on): Likewise.
8485         * modules/openat (Depends-on): Likewise.
8486         * modules/perror (Depends-on): Likewise.
8487         * modules/poll (Depends-on): Likewise.
8488         * modules/popen (Depends-on): Likewise.
8489         * modules/posix_spawn (Depends-on): Likewise.
8490         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8491         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8492         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8493         * modules/posix_spawnp (Depends-on): Likewise.
8494         * modules/pread (Depends-on): Likewise.
8495         * modules/printf-posix (Depends-on): Likewise.
8496         * modules/ptsname (Depends-on): Likewise.
8497         * modules/putenv (Depends-on): Likewise.
8498         * modules/pwrite (Depends-on): Likewise.
8499         * modules/readline (Depends-on): Likewise.
8500         * modules/readlink (Depends-on): Likewise.
8501         * modules/readlinkat (Depends-on): Likewise.
8502         * modules/recv (Depends-on): Likewise.
8503         * modules/recvfrom (Depends-on): Likewise.
8504         * modules/regex (Depends-on): Likewise.
8505         * modules/remove (Depends-on): Likewise.
8506         * modules/rename (Depends-on): Likewise.
8507         * modules/renameat (Depends-on): Likewise.
8508         * modules/rmdir (Depends-on): Likewise.
8509         * modules/round (Depends-on): Likewise.
8510         * modules/roundf (Depends-on): Likewise.
8511         * modules/roundl (Depends-on): Likewise.
8512         * modules/rpmatch (Depends-on): Likewise.
8513         * modules/select (Depends-on): Likewise.
8514         * modules/send (Depends-on): Likewise.
8515         * modules/sendto (Depends-on): Likewise.
8516         * modules/setenv (Depends-on): Likewise.
8517         * modules/setlocale (Depends-on): Likewise.
8518         * modules/setsockopt (Depends-on): Likewise.
8519         * modules/shutdown (Depends-on): Likewise.
8520         * modules/sigaction (Depends-on): Likewise.
8521         * modules/signbit (Depends-on): Likewise.
8522         * modules/sigprocmask (Depends-on): Likewise.
8523         * modules/sinl (Depends-on): Likewise.
8524         * modules/sleep (Depends-on): Likewise.
8525         * modules/snprintf (Depends-on): Likewise.
8526         * modules/snprintf-posix (Depends-on): Likewise.
8527         * modules/socket (Depends-on): Likewise.
8528         * modules/sprintf-posix (Depends-on): Likewise.
8529         * modules/sqrtl (Depends-on): Likewise.
8530         * modules/stat (Depends-on): Likewise.
8531         * modules/strchrnul (Depends-on): Likewise.
8532         * modules/strdup-posix (Depends-on): Likewise.
8533         * modules/strerror (Depends-on): Likewise.
8534         * modules/strerror_r-posix (Depends-on): Likewise.
8535         * modules/strndup (Depends-on): Likewise.
8536         * modules/strnlen (Depends-on): Likewise.
8537         * modules/strptime (Depends-on): Likewise.
8538         * modules/strsep (Depends-on): Likewise.
8539         * modules/strsignal (Depends-on): Likewise.
8540         * modules/strstr-simple (Depends-on): Likewise.
8541         * modules/strtod (Depends-on): Likewise.
8542         * modules/strtoimax (Depends-on): Likewise.
8543         * modules/strtok_r (Depends-on): Likewise.
8544         * modules/strtoumax (Depends-on): Likewise.
8545         * modules/symlink (Depends-on): Likewise.
8546         * modules/symlinkat (Depends-on): Likewise.
8547         * modules/tanl (Depends-on): Likewise.
8548         * modules/tcgetsid (Depends-on): Likewise.
8549         * modules/tmpfile (Depends-on): Likewise.
8550         * modules/trunc (Depends-on): Likewise.
8551         * modules/truncf (Depends-on): Likewise.
8552         * modules/truncl (Depends-on): Likewise.
8553         * modules/uname (Depends-on): Likewise.
8554         * modules/unlink (Depends-on): Likewise.
8555         * modules/unlockpt (Depends-on): Likewise.
8556         * modules/unsetenv (Depends-on): Likewise.
8557         * modules/usleep (Depends-on): Likewise.
8558         * modules/utimensat (Depends-on): Likewise.
8559         * modules/vasprintf (Depends-on): Likewise.
8560         * modules/vdprintf (Depends-on): Likewise.
8561         * modules/vdprintf-posix (Depends-on): Likewise.
8562         * modules/vfprintf-posix (Depends-on): Likewise.
8563         * modules/vprintf-posix (Depends-on): Likewise.
8564         * modules/vsnprintf (Depends-on): Likewise.
8565         * modules/vsnprintf-posix (Depends-on): Likewise.
8566         * modules/vsprintf-posix (Depends-on): Likewise.
8567         * modules/wcrtomb (Depends-on): Likewise.
8568         * modules/wcscasecmp (Depends-on): Likewise.
8569         * modules/wcscspn (Depends-on): Likewise.
8570         * modules/wcsdup (Depends-on): Likewise.
8571         * modules/wcsncasecmp (Depends-on): Likewise.
8572         * modules/wcsnrtombs (Depends-on): Likewise.
8573         * modules/wcspbrk (Depends-on): Likewise.
8574         * modules/wcsrtombs (Depends-on): Likewise.
8575         * modules/wcsspn (Depends-on): Likewise.
8576         * modules/wcsstr (Depends-on): Likewise.
8577         * modules/wcstok (Depends-on): Likewise.
8578         * modules/wcswidth (Depends-on): Likewise.
8579         * modules/wctob (Depends-on): Likewise.
8580         * modules/wctomb (Depends-on): Likewise.
8581         * modules/wctype (Depends-on): Likewise.
8582         * modules/wcwidth (Depends-on): Likewise.
8583         * modules/write (Depends-on): Likewise.
8584
8585 2011-05-03  Bruno Haible  <bruno@clisp.org>
8586
8587         Support for conditional dependencies.
8588         * doc/gnulib.texi (Module description): Document the syntax of
8589         conditional dependencies.
8590         * gnulib-tool: New option --conditional-dependencies.
8591         (func_usage): Document it.
8592         (cond_dependencies): New variable.
8593         (func_get_automake_snippet_conditional,
8594         func_get_automake_snippet_unconditional): New functions, extracted from
8595         func_get_automake_snippet.
8596         (func_get_automake_snippet): Use them.
8597         (sed_first_32_chars): New variable.
8598         (func_module_shellfunc_name): New function.
8599         (func_module_shellvar_name): New function.
8600         (func_module_conditional_name): New function.
8601         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8602         func_cond_module_condition): New functions.
8603         (func_modules_transitive_closure): Add support for conditional
8604         dependencies.
8605         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8606         conditional automake snippet in an automake conditional.
8607         (func_emit_autoconf_snippets): Emit shell functions that contain the
8608         code for conditional modules.
8609         (func_import, func_create_testdir): Update specification.
8610
8611 2011-05-03  Eric Blake  <eblake@redhat.com>
8612
8613         test-getaddrinfo: report error information
8614         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8615
8616 2011-05-03  Jim Meyering  <meyering@redhat.com>
8617
8618         bootstrap: avoid build failure when $GZIP is set
8619         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8620         program name.  If defined at all, it is supposed to list gzip options.
8621         Reported by Alan Curry in http://debbugs.gnu.org/8609
8622
8623 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8624
8625         readme-release: new module with release instructions
8626         * modules/readme-release: New module.
8627         * top/README-release: New file, from coreutils, grep, diffutils.
8628         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8629
8630 2011-05-02  Eric Blake  <eblake@redhat.com>
8631
8632         fflush: also replace fclose when fixing fflush
8633         * modules/fflush (Depends-on): Add fclose.
8634         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8635         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8636         memstreams with no backing fd.
8637         * doc/posix-functions/fclose.texi (fclose): Document the use of
8638         fflush module to fix the bug.
8639         * tests/test-fclose.c (main): Relax test when fclose is used in
8640         isolation.
8641
8642         fclose: add some tests
8643         * modules/fclose-tests: New test module.
8644         * tests/test-fclose.c: New file.
8645         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8646
8647         fclose: reduced dependencies
8648         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8649         simpler lseek.
8650         * lib/fclose.c (rpl_fclose): Likewise.
8651         Reported by Simon Josefsson.
8652
8653         exit: drop remaining clients
8654         * modules/argmatch (Depends-on): Replace exit with stdlib.
8655         * modules/copy-file (Depends-on): Likewise.
8656         * modules/execute (Depends-on): Likewise.
8657         * modules/exitfail (Depends-on): Likewise.
8658         * modules/obstack (Depends-on): Likewise.
8659         * modules/pagealign_alloc (Depends-on): Likewise.
8660         * modules/pipe-filter-gi (Depends-on): Likewise.
8661         * modules/pipe-filter-ii (Depends-on): Likewise.
8662         * modules/savewd (Depends-on): Likewise.
8663         * modules/spawn-pipe (Depends-on): Likewise.
8664         * modules/wait-process (Depends-on): Likewise.
8665         * modules/xsetenv (Depends-on): Likewise.
8666         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8667         * modules/git-merge-changelog (Depends-on): Likewise.
8668         * modules/long-options (Depends-on): Likewise.
8669         * modules/pt_chown (Depends-on): Likewise.
8670         * modules/sysexits (Depends-on): Likewise.
8671
8672         freading: relax license from LGPLv3+ to LGPLv2+
8673         * modules/freading (License): Relax LGPL version.
8674
8675 2011-05-02  Bruno Haible  <bruno@clisp.org>
8676
8677         fchdir: Remove unused dependencies.
8678         * modules/fchdir (Depends-on): Remove include_next.
8679
8680 2011-05-02  Bruno Haible  <bruno@clisp.org>
8681
8682         gnulib-tool: Refactor.
8683         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8684         from func_emit_autoconf_snippets.
8685         (func_emit_autoconf_snippets): Use it.
8686
8687 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8688
8689         * NEWS: Document removal of 'exit'.
8690         * modules/exit: Remove file.
8691
8692 2011-05-01  Bruno Haible  <bruno@clisp.org>
8693
8694         Update DEPENDENCIES.
8695         * DEPENDENCIES (gettext): Recommend the newest release.
8696         Reported by Simon Josefsson.
8697
8698 2011-05-01  Bruno Haible  <bruno@clisp.org>
8699
8700         gnulib-tool: Reduce code duplication.
8701         * gnulib-tool (func_emit_autoconf_snippets): New function.
8702         (func_import, func_create_testdir): Use it.
8703
8704 2011-04-30  Eric Blake  <eblake@redhat.com>
8705
8706         fclose: don't fail on non-seekable input stream
8707         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8708         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8709         since fflush is allowed to fail in that case.
8710
8711 2011-04-30  Bruno Haible  <bruno@clisp.org>
8712
8713         dup3: cleanup
8714         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8715
8716 2011-04-30  Bruno Haible  <bruno@clisp.org>
8717
8718         netdb: Make it work in C++ mode.
8719         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8720         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8721         module.
8722         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8723         gl_MODULE_INDICATOR_FOR_TESTS.
8724         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8725         * modules/netdb-c++-tests: New file.
8726         * tests/test-netdb-c++.cc: New file.
8727
8728 2011-04-30  Bruno Haible  <bruno@clisp.org>
8729
8730         New modules 'vfscanf', 'vscanf'.
8731         * modules/vfscanf: New file.
8732         * modules/vscanf: New file.
8733         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8734         here.
8735         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8736         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8737
8738 2011-04-30  Bruno Haible  <bruno@clisp.org>
8739
8740         passfd: Add comments.
8741         * lib/passfd.c: Add comments about platforms.
8742
8743 2011-04-30  Bruno Haible  <bruno@clisp.org>
8744
8745         sys_uio: Make <sys/uio.h> self-contained.
8746         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8747         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8748
8749 2011-04-30  Bruno Haible  <bruno@clisp.org>
8750
8751         sys_socket: Ensure 'struct iovec' definition.
8752         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8753         <sys/socket.h>.
8754         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8755
8756 2011-04-30  Bruno Haible  <bruno@clisp.org>
8757
8758         sys_uio: Protect definition of 'struct iovec'.
8759         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8760         it as a C struct.
8761
8762 2011-04-30  Bruno Haible  <bruno@clisp.org>
8763
8764         manywarnings: fix indentation
8765         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8766
8767 2011-04-30  Pádraig Brady <P@draigBrady.com>
8768
8769         manywarnings: add -Wno-missing-field-initializers if needed.
8770         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8771         option if it's needed to allow initialization with { 0, }
8772
8773 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8774
8775         announce-gen: cosmetic improvement
8776         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8777
8778 2011-04-29  Jim Meyering  <meyering@redhat.com>
8779
8780         vc-list-files: indent with spaces, not TABs
8781         * build-aux/vc-list-files: Convert leading TABs to spaces,
8782         to match the style of most other files in gnulib.
8783
8784         announce-gen: indent with spaces, not TABs
8785         * build-aux/announce-gen: Convert all TABs to spaces, to match
8786         the style of most other files in gnulib.
8787
8788 2011-04-29  Eric Blake  <eblake@redhat.com>
8789
8790         quotearg: avoid uninitialized variable use
8791         * lib/quotearg.c (quoting_options_from_style): Initialize
8792         remaining fields, and ensure that custom styles are only used via
8793         quoting_options rather than quoting_style.
8794
8795 2011-04-29  Jim Meyering  <meyering@redhat.com>
8796
8797         maint.mk: remove unused VC-tag variable
8798         * top/maint.mk (VC-tag): Remove unused variable.
8799
8800 2011-04-29  Bruno Haible  <bruno@clisp.org>
8801
8802         netdb: fix gai_strerror replacements
8803         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8804         * modules/netdb: Substitute it.
8805
8806 2011-04-29  Jim Meyering  <meyering@redhat.com>
8807
8808         test-getcwd.c: avoid new set-but-not-used warning
8809         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8810         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8811         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8812         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8813
8814         test-hash.c: avoid a new shadowing warning
8815         * tests/test-hash.c (main): Don't shadow "dup".
8816
8817 2011-04-28  Eric Blake  <eblake@redhat.com>
8818
8819         getaddrinfo: fix gai_strerror signature
8820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8821         and work around mingw with UNICODE defined.
8822         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8823         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8824         * modules/netdb (Makefile.am): Substitute it.
8825         * lib/netdb.in.h (gai_strerror): Declare replacement.
8826         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8827         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8828         the fix.
8829
8830         getsockopt: avoid compiler warning
8831         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8832         Reported by Matthias Bolte.
8833
8834         tests: drop unused link dependency
8835         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8836         * modules/dirent-safer-tests (Makefile.am): Likewise.
8837         * modules/fdopendir-tests (Makefile.am): Likewise.
8838         * modules/mkfifoat-tests (Makefile.am): Likewise.
8839         * modules/openat-safer-tests (Makefile.am): Likewise.
8840         * modules/openat-tests (Makefile.am): Likewise.
8841         * modules/readlinkat-tests (Makefile.am): Likewise.
8842         * modules/symlinkat-tests (Makefile.am): Likewise.
8843         * modules/linkat-tests (Makefile.am): Likewise.
8844         (Depends-on): Switch to filenamecat-lgpl.
8845         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8846         LIBINTL.
8847         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8848         * tests/test-linkat.c (main): Don't require xalloc.
8849
8850         hash, mgetgroups: drop xalloc dependency
8851         * lib/hash.c (includes): Adjust includes.
8852         * lib/mgetgroups.c (includes): Likewise.
8853         (xgetgroups): Move...
8854         * lib/xgetgroups.c: ...to new file.
8855         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8856         * modules/xgetgroups: New file, split from...
8857         * modules/mgetgroups: ...here.
8858         (Depends-on): Add xalloc-oversized.
8859         * modules/hash (Depends-on): Likewise.
8860         * modules/hash-tests (Depends-on): Drop xalloc.
8861         (test_hash_LDADD): Drop unused library.
8862         * tests/test-hash.c (main): Break xalloc dependency.
8863         (includes): Drop unused include.
8864
8865         xalloc-oversized: new module
8866         * modules/xalloc-oversized: New module.
8867         * modules/xalloc (Depends-on): Add it.
8868         * lib/xalloc.h (xalloc_oversized): Move...
8869         * lib/xalloc-oversized.h: ...into new file.
8870
8871         utimecmp: drop dependency on xmalloc
8872         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8873         due to memory pressure.
8874         * modules/utimecmp (Depends-on): Drop xalloc.
8875
8876 2011-04-27  Eric Blake  <eblake@redhat.com>
8877
8878         getcwd: fix mingw bugs
8879         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8880         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8881         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8882
8883 2011-04-27  Bruno Haible  <bruno@clisp.org>
8884
8885         mkstemps: Ensure declaration on MacOS X 10.5.
8886         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8887         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8888         MacOS X.
8889
8890 2011-04-27  Bruno Haible  <bruno@clisp.org>
8891
8892         mkstemp: More documentation.
8893         * doc/posix-functions/mkstemp.texi: Document header file problem on
8894         MacOS X.
8895
8896 2011-04-27  Bruno Haible  <bruno@clisp.org>
8897
8898         mkstemp: Tweak configure message when cross-compiling.
8899         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8900         result as a guess.
8901
8902 2011-04-27  Bruno Haible  <bruno@clisp.org>
8903
8904         clean-temp: Clarify what it does.
8905         * lib/clean-temp.h: Add more comments.
8906         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8907         module.
8908         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8909         * doc/glibc-functions/mkstemps.texi: Likewise.
8910         * doc/glibc-functions/mkostemps.texi: Likewise.
8911
8912 2011-04-27  Eric Blake  <eblake@redhat.com>
8913
8914         fchdir: avoid extra chdir and fix test
8915         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8916         getcwd-lgpl.
8917         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8918         have to be canonical.
8919         (canonicalize_file_name): Drop unused macro.
8920         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8921
8922         filenamecat-lgpl: fix licence
8923         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8924         when it was first created.
8925
8926         linkat, renameat: add missing dependency
8927         * modules/linkat (Depends-on): Require getcwd-lgpl.
8928         * modules/renameat (Depends-on): Likewise.
8929
8930         tests: reduce dependencies
8931         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8932         * tests/test-renameat.c (main): Likewise.
8933         * modules/linkat-tests (Depends-on): Relax dependency.
8934         * modules/renameat-tests (Depends-on): Likewise.
8935         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8936         dependency explicit.
8937
8938         save-cwd: reduce default dependency
8939         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8940         * lib/save-cwd.c: Update comments.
8941         * NEWS: Document the semantic change.
8942
8943         getcwd: enhance tests
8944         * tests/test-getcwd-lgpl.c: New file, taken from...
8945         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8946         repeat long path stress tests from m4 probe.
8947         * modules/getcwd-lgpl-tests: New module.
8948         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8949         * m4/getcwd-abort-bug.m4: Update comment.
8950         * m4/getcwd-path-max.m4: Likewise.
8951
8952         getcwd-lgpl: new module
8953         * modules/getcwd-lgpl: New module.
8954         * lib/getcwd-lgpl.c: New file.
8955         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8956         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8957         * modules/getcwd (configure.ac): Set C witness.
8958         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8959
8960         getcwd: tweak comments
8961         * m4/getcwd-abort-bug.m4: Fix comments.
8962         * m4/getcwd-path-max.m4: Likewise.
8963         * m4/getcwd.m4: Likewise.
8964
8965 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8966         and Eric Blake  <eblake@redhat.com>
8967
8968         mkstemp: replace if system version uses wrong permissions
8969         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8970         read/write mode bits set in file created by mkstemp.
8971         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8972
8973 2011-04-27  Eric Blake  <eblake@redhat.com>
8974
8975         passfd: avoid compiler warning
8976         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8977         Reported by Laine Stump.
8978
8979 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8980
8981         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8982         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8983
8984 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8985         and Eric Blake  <eblake@redhat.com>
8986
8987         mkstemp: mention clean-temp module
8988         * lib/mkstemp.c: Add comment.
8989         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8990
8991 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8992
8993         inttypes: also provide default values for 32-bit tests
8994         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8995         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8996
8997 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8998
8999         strtoumax: remove dependency on strtoimax
9000         This is like the strtoull change of yesterday.
9001         * modules/strtoumax (Files): Add lib/strtoimax.c.
9002         (Depends-on): Remove strtoimax and add verify.
9003
9004         inttypes-incomplete: new module
9005         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9006         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9007         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9008         of gl_INTTYPES_H.
9009         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9010         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9011         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9012         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9013         * modules/strtoumax, modules/xstrtol (Depends-on):
9014         Depend on inttypes-incomplete, not inttypes.
9015         * modules/inttypes-incomplete: New module, containing the contents
9016         of the old modules/inttypes module, except that the Files: section
9017         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9018         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9019         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9020         (Depends-on): Depend only on inttypes-incomplete.
9021         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9022
9023         inttypes: omit now-redundant strtoimax and strtoumax work
9024         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9025         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9026
9027         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9028         This supports apps that need pointers to strtoimax and strtoumax,
9029         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9030         nonexistent functions.  See
9031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9032         et seq.
9033         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9034         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9035         a macro.
9036         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9037
9038 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9039
9040         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9041
9042 2011-04-25  Bruno Haible  <bruno@clisp.org>
9043
9044         strtol, strtoul: Mark modules as obsolete.
9045         * modules/strtol (Status, Notice): New sections.
9046         * modules/strtoul (Status, Notice): New sections.
9047
9048 2011-04-25  Bruno Haible  <bruno@clisp.org>
9049
9050         strtod: Remove check for strtod, unless supporting old platforms.
9051         * modules/strtod-obsolete: New file.
9052         * m4/strtod-obsolete.m4: New file.
9053         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9054         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9055         * modules/strtod (Depends-on): Add strtod-obsolete.
9056         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9057
9058 2011-04-25  Bruno Haible  <bruno@clisp.org>
9059
9060         strcase: Make module obsolete.
9061         * modules/strcase (Status, Notice): New sections.
9062
9063 2011-04-25  Bruno Haible  <bruno@clisp.org>
9064
9065         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9066         * modules/dup2-obsolete: New file.
9067         * m4/dup2-obsolete.m4: New file.
9068         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9069         gl_FUNC_DUP2_OBSOLETE is not also defined.
9070         * modules/dup2 (Depends-on): Add dup2-obsolete.
9071         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9072
9073 2011-04-25  Bruno Haible  <bruno@clisp.org>
9074
9075         strnlen: Avoid memchr related link error on old obsolete platforms.
9076         * modules/memchr-obsolete: New file.
9077         * m4/memchr-obsolete.m4: New file.
9078         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9079         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9080         * modules/memchr (Depends-on): Add memchr-obsolete.
9081         * modules/strnlen (Depends-on): Likewise.
9082         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9083
9084 2011-04-25  Jim Meyering  <meyering@redhat.com>
9085
9086         maint.mk: makefile_at_at_check extend and clean up
9087         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9088         in addition to */Makefile.am.
9089         Exempt legitimate uses of @VAR@ notation, e.g.,
9090         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9091         Remove obsolete coreutils-specific comment.
9092         Prompted by discussion here:
9093         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9094
9095 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9096
9097         strtoul: remove dependency on strtol
9098         This is so that 'configure' need not check for strtol merely because
9099         the application needs strtoul.
9100         * modules/strtoul (Files): Add lib/strtol.c.
9101         (Depends-on): Remove strtol.
9102
9103         strtoull: remove dependency on strtoul
9104         This is like the strtoll change.
9105         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9106         (Depends-on): Remove strtoul.
9107
9108         strtoll: remove dependency on strtol
9109         This is so that 'configure' need not check for strtol merely because
9110         the application needs strtoll.
9111         * modules/strtoll (Files): Add lib/strtol.c.
9112         (Depends-on): Remove strtol.
9113
9114 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         inttypes: Move some configure check to module 'imaxdiv'.
9117         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9118         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9119         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9120
9121 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9122
9123         inttypes: Move some configure check to module 'imaxabs'.
9124         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9125         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9126         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9127
9128 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9129
9130         inttypes: Remove configure tests that are not needed since 2009-12-31.
9131         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9132         gl_cv_header_working_inttypes_h.
9133
9134 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9135
9136         * modules/strnlen (Depends-on): Remove memchr.
9137         The strnlen implementation doesn't need the memchr module's fixes; see
9138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9139
9140         strtol: remove dependency on wchar
9141         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9142         * modules/strtol (Depends-on): Remove wchar.
9143
9144 2011-04-21  Eric Blake  <eblake@redhat.com>
9145
9146         passfd: fix test regression on Linux
9147         * modules/passfd-tests (configure.ac): Correct socketpair check.
9148
9149         passfd: speed up configure and drop unused code
9150         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9151         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9152         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9153         Instead of probing at configure for unix_scm_rights_bsd44_way,
9154         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9155         check to a struct member probe.
9156         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9157         (sendfd, recvfd): Update preprocessor checks.
9158         * modules/passfd (Files): Reflect rename, and drop unused file.
9159         (Depends-on): Drop unused dependency.
9160
9161         passfd: allow compilation on mingw
9162         * modules/sys_socket (Depends-on): Add sys_uio.
9163         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9164         iovec and a minimal struct msghdr.
9165         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9166         * tests/test-sys_socket.c (main): Enhance test.
9167         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9168         guaranteed to provide what we need.
9169         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9170         * modules/passfd-tests (Depends-on): Add sys_wait.
9171         * tests/test-passfd.c (main): Skip test on mingw, for now.
9172         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9173         partial 'struct msghdr' implementation.
9174
9175         sys_uio: new module
9176         * modules/sys_uio: New module.
9177         * modules/sys_uio-tests: Likewise.
9178         * lib/sys_uio.in.h: New file.
9179         * m4/sys_uio_h.m4: Likewise.
9180         * tests/test-sys_uio.c: Likewise.
9181         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9182         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9183
9184 2011-04-20  Jim Meyering  <meyering@redhat.com>
9185
9186         useless-if-before-free: avoid false-positive
9187         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9188         disjunct so that it too requires a terminating ";".  Without that,
9189         this script would identify as useless one statement from gcc that
9190         was not:
9191           if (aligned_ptr)
9192             free (((void **) aligned_ptr) [-1]);
9193
9194 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9195
9196         doc: update users.txt.
9197         * users.txt: Add barcode.
9198
9199 2011-04-19  Bruno Haible  <bruno@clisp.org>
9200
9201         ioctl: Remove link dependency on native Windows.
9202         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9203         (gl_close_fn, gl_ioctl_fn): New types.
9204         (struct fd_hook): Renamed from struct close_hook. Change type of
9205         private_close_fn field. Add private_ioctl_fn field.
9206         (close_hook_fn): Add parameter for primary close method.
9207         (execute_close_hooks, execute_all_close_hooks): Likewise.
9208         (ioctl_hook_fn): New type.
9209         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9210         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9211         argument.
9212         (unregister_fd_hook): Renamed from unregister_close_hook.
9213         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9214         Don't include <unistd.h>.
9215         (close): Remove undef.
9216         (anchor): Update.
9217         (execute_close_hooks): Add argument for primary close method.
9218         (execute_all_close_hooks): Likewise.
9219         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9220         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9221         argument. Allow each argument to be NULL.
9222         (unregister_fd_hook): Renamed from unregister_close_hook.
9223         * lib/close.c (rpl_close): Pass 'close' function pointer to
9224         execute_all_close_hooks.
9225         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9226         (primary_ioctl): New function.
9227         (ioctl): Don't call ioctlsocket here. Instead, call
9228         execute_all_ioctl_hooks.
9229         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9230         close method.
9231         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9232         (fd_sockets_hook): Renamed from close_sockets_hook.
9233         (gl_sockets_startup, gl_sockets_cleanup): Update.
9234         * modules/fd-hook: Renamed from modules/close-hook. Update.
9235         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9236         * modules/sockets (Depends-on): Likewise.
9237         * modules/ioctl (Depends-on): Add fd-hook.
9238         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9239         GNULIB_SOCKET.
9240
9241 2011-04-19  Bruno Haible  <bruno@clisp.org>
9242
9243         Move the support of O_NONBLOCK in open() to the 'open' module.
9244         * modules/nonblocking (Depends-on): Remove 'open'.
9245         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9246         gl_cv_have_open_O_NONBLOCK.
9247         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9248         O_NONBLOCK support.
9249         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9250
9251 2011-04-17  Bruno Haible  <bruno@clisp.org>
9252
9253         pipe2: Simplify code.
9254         * lib/pipe2.c (pipe2): Reduce code duplication.
9255
9256 2011-04-17  Bruno Haible  <bruno@clisp.org>
9257
9258         nonblocking: Add comment.
9259         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9260
9261 2011-04-17  Bruno Haible  <bruno@clisp.org>
9262
9263         nonblocking: Add tests for sockets.
9264         * tests/test-nonblocking-socket.sh: New file.
9265         * tests/test-nonblocking-socket-main.c: New file.
9266         * tests/test-nonblocking-socket-child.c: New file.
9267         * tests/test-nonblocking-socket.h: New file.
9268         * tests/socket-server.h: New file.
9269         * tests/socket-client.h: New file.
9270         * modules/nonblocking-socket-tests: New file.
9271         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9272
9273 2011-04-17  Bruno Haible  <bruno@clisp.org>
9274
9275         nonblocking: Add tests for pipes.
9276         * tests/test-nonblocking-pipe.sh: New file.
9277         * tests/test-nonblocking-pipe-main.c: New file.
9278         * tests/test-nonblocking-pipe-child.c: New file.
9279         * tests/test-nonblocking-pipe.h: New file.
9280         * tests/test-nonblocking-writer.h: New file.
9281         * tests/test-nonblocking-reader.h: New file.
9282         * tests/test-nonblocking-misc.h: New file.
9283         * modules/nonblocking-pipe-tests: New file.
9284         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9285
9286 2011-04-16  Bruno Haible  <bruno@clisp.org>
9287
9288         gettext: Clarify the needed programmer actions.
9289         * modules/gettext (Notice): New field.
9290         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9291
9292 2011-04-16  Bruno Haible  <bruno@clisp.org>
9293
9294         strchrnul: Tweak last commit.
9295         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9296         bug.
9297         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9298         as in _GL_FUNCDECL_SYS.
9299         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9300         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9301
9302 2011-04-15  Eric Blake  <eblake@redhat.com>
9303
9304         strchrnul: work around cygwin bug
9305         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9306         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9308         * modules/string (Makefile.am): Substitute it.
9309         * lib/string.in.h (strchrnul): Use it.
9310
9311 2011-04-15  Bruno Haible  <bruno@clisp.org>
9312
9313         Don't require lib/stdio-write.c when only module 'stdio' is used.
9314         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9315         invocation.
9316         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9317
9318 2011-04-14  Bruno Haible  <bruno@clisp.org>
9319
9320         Support non-blocking pipe I/O in read() on native Windows.
9321         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9322         (read): New declaration.
9323         * lib/read.c: New file.
9324         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9325         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9326         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9327         vscanf): New declarations.
9328         * lib/stdio-read.c: New file.
9329         * m4/read.m4: New file.
9330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9331         REPLACE_READ.
9332         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9333         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9334         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9335         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9336         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9337         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9338         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9339         * modules/read: New file.
9340         * modules/nonblocking (Files): Add lib/stdio-read.c.
9341         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9342         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9343         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9344         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9345         * modules/pread (Depends-on): Add read.
9346         * modules/safe-read (Depends-on): Likewise.
9347         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9348         gets, scanf, vfscanf, vscanf): Verify signatures.
9349         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9350         problem with non-blocking pipes.
9351         * doc/posix-functions/fgetc.texi: Likewise.
9352         * doc/posix-functions/fgets.texi: Likewise.
9353         * doc/posix-functions/fread.texi: Likewise.
9354         * doc/posix-functions/fscanf.texi: Likewise.
9355         * doc/posix-functions/getc.texi: Likewise.
9356         * doc/posix-functions/getchar.texi: Likewise.
9357         * doc/posix-functions/gets.texi: Likewise.
9358         * doc/posix-functions/scanf.texi: Likewise.
9359         * doc/posix-functions/vfscanf.texi: Likewise.
9360         * doc/posix-functions/vscanf.texi: Likewise.
9361
9362 2011-04-14  Bruno Haible  <bruno@clisp.org>
9363
9364         Support non-blocking pipe I/O in write() on native Windows.
9365         * lib/write.c (rpl_write): Split a write request that failed merely
9366         because the byte count was larger than the pipe buffer's size.
9367         * doc/posix-functions/write.texi: Mention the problem with large byte
9368         counts.
9369
9370 2011-04-14  Bruno Haible  <bruno@clisp.org>
9371
9372         wchar: Ensure that wchar_t gets defined on uClibc.
9373         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9374         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9375
9376 2011-04-13  Bruno Haible  <bruno@clisp.org>
9377
9378         safe-write, full-read: Avoid unnecessary compilation units.
9379         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9380         (Depends-on): Remove safe-read. Add ssize_t.
9381         * modules/full-read (Files): Add lib/full-write.c.
9382         (Depends-on): Add full-write.
9383
9384 2011-04-13  Bruno Haible  <bruno@clisp.org>
9385
9386         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9387         * modules/pwrite (Depends-on): Add 'write'.
9388
9389 2011-04-13  Bruno Haible  <bruno@clisp.org>
9390
9391         Support non-blocking pipe I/O in write() on native Windows.
9392         * lib/unistd.in.h (write): Enable replacement also if
9393         GNULIB_UNISTD_H_NONBLOCKING is 1.
9394         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9395         (rpl_write): When failing to write on a non-blocking pipe, change
9396         errno from ENOSPC to EAGAIN.
9397         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9398         putchar, puts, vfprintf, vprintf): Enable replacement also if
9399         GNULIB_STDIO_H_NONBLOCKING is 1.
9400         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9401         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9402         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9403         CALL_WITH_SIGPIPE_EMULATION.
9404         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9405         * m4/nonblocking.m4: New file.
9406         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9407         for non-blocking I/O support.
9408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9409         GNULIB_UNISTD_H_NONBLOCKING.
9410         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9411         required for non-blocking I/O support.
9412         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9413         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9414         lib/stdio-write.c, m4/asm-underscore.m4.
9415         (Depends-on): Add stdio, unistd.
9416         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9417         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9418         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9419         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9420         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9421         problem with non-blocking pipes.
9422         * doc/posix-functions/fputc.texi: Likewise.
9423         * doc/posix-functions/fputs.texi: Likewise.
9424         * doc/posix-functions/fwrite.texi: Likewise.
9425         * doc/posix-functions/printf.texi: Likewise.
9426         * doc/posix-functions/putc.texi: Likewise.
9427         * doc/posix-functions/putchar.texi: Likewise.
9428         * doc/posix-functions/puts.texi: Likewise.
9429         * doc/posix-functions/vfprintf.texi: Likewise.
9430         * doc/posix-functions/vprintf.texi: Likewise.
9431         * doc/posix-functions/write.texi: Likewise.
9432
9433 2011-04-10  Jim Meyering  <meyering@redhat.com>
9434
9435         maint.mk: prohibit doubled words
9436         Detect them also when they're separated by a newline.
9437         There are 3 ways to customize it:
9438           - disable the test on a per file basis, as usual with rules using
9439             $(VC_LIST_EXCEPT)
9440           - replace the default doubled-word-selecting regexp (affects all files)
9441           - ignore a particular file-vs-doubled-word match
9442         I nearly used that last one to ignore the "is is" match in
9443         coreutils' NEWS file, since the text was "ls -is is ..."
9444         To do that, I would have added this line to cfg.mk:
9445           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9446         but it would have ignored any "is is" match in NEWS.
9447         Low probability, but still...
9448         Instead, I changed the text, slightly:
9449           -  ls -is is now consistent with ls -lis in ignoring values returned
9450           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9451         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9452         (prohibit_doubled_word_): Define.
9453         (sc_prohibit_doubled_word): New rule.
9454         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9455
9456 2011-04-10  Jim Meyering  <meyering@redhat.com>
9457
9458         maint: fix doubled-word typo in comment
9459         * m4/gethostname.m4: s/is is/it is/
9460         * m4/getdomainname.m4: Likewise.
9461
9462 2011-04-10  Jim Meyering  <meyering@redhat.com>
9463
9464         maint: remove doubled word: s/it it/it/
9465         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9466
9467 2011-04-10  Jim Meyering  <meyering@redhat.com>
9468
9469         maint.mk: remove useless semicolon and backslash
9470         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9471         semicolon and backslash.
9472
9473 2011-04-10  Bruno Haible  <bruno@clisp.org>
9474
9475         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9476         * modules/stdint-tests (Depends-on): Add wchar.
9477
9478 2011-04-10  Jim Meyering  <meyering@redhat.com>
9479
9480         maint: remove doubled words in comments, e.g., s/a a/a/
9481         * lib/strptime.c (day_of_the_week): s/the the/the/
9482         * tests/test-chown.h (test_chown): s/a a/a/
9483
9484         test-chown.h: correct a cast
9485         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9486         when the destination is a stat.st_gid.
9487
9488 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9489
9490         getaddrinfo: Fix test for sa_len member.
9491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9492         include <sys/types.h> before <sys/socket.h>.
9493
9494 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9495
9496         maint: change "can not" to "cannot"
9497         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9498         boundaries.
9499
9500 2011-04-09  Jim Meyering  <meyering@redhat.com>
9501
9502         maint: change "a a" to "a"
9503         * tests/test-lchown.h (test_lchown): s/a a/a/
9504
9505         maint.mk: prohibit \<the the\>
9506         * top/maint.mk (sc_prohibit_the_the): New rule.
9507
9508         maint: fix "the the" in comment
9509         * lib/count-one-bits.h: s/the the/the/
9510
9511         maint: change "can not" to "cannot"
9512         But do not change the occurrences in maintain.texi or in
9513         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9514         * doc/gnulib-tool.texi: s/can not/cannot/
9515         * doc/posix-functions/accept.texi (accept): Likewise.
9516         * doc/posix-functions/socket.texi (socket): Likewise.
9517         * lib/mbrtowc.c: Likewise.
9518
9519         maint.mk: prohibit use of "can not"
9520         * top/maint.mk (sc_prohibit_can_not): New rule.
9521         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9522
9523 2011-04-09  Bruno Haible  <bruno@clisp.org>
9524
9525         careadlinkat: Guard against misuse of careadlinkatcwd.
9526         * lib/careadlinkat.c: Include <stdlib.h>.
9527         (careadlinkatcwd): Check that the fd argument is as expected.
9528
9529 2011-04-09  Bruno Haible  <bruno@clisp.org>
9530
9531         careadlinkat: Use common coding style.
9532         * lib/careadlinkat.c: Move gnulib includes after system includes.
9533
9534 2011-04-09  Bruno Haible  <bruno@clisp.org>
9535
9536         careadlinkat: Clarify specification.
9537         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9538         (careadlinkatcwd): Add comment.
9539         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9540
9541 2011-04-09  Bruno Haible  <bruno@clisp.org>
9542
9543         areadlinkat: Avoid link error on many platforms.
9544         * modules/areadlinkat (Depends-on): Add areadlink.
9545
9546 2011-04-09  Bruno Haible  <bruno@clisp.org>
9547
9548         allocator, careadlinkat: Fix double-inclusion guard.
9549         * lib/allocator.h: Fix double-inclusion guard.
9550         * lib/careadlinkat.h: Likewise.
9551
9552 2011-04-09  Bruno Haible  <bruno@clisp.org>
9553
9554         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9555         * lib/relocwrapper.c: Update dependencies hierarchy.
9556         * build-aux/install-reloc: Update list of files to be compiled.
9557         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9558         lib/allocator.[hc].
9559
9560 2011-04-08  Eric Blake  <eblake@redhat.com>
9561
9562         strftime: silence gnulib-tool warning
9563         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9564
9565 2011-04-08  Bruno Haible  <bruno@clisp.org>
9566
9567         verify: Fix syntax error with GCC 4.6 in C++ mode.
9568         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9569         (HAVE_STATIC_ASSERT): New macro.
9570         (verify_true, verify): Use 'static_assert' if it is supported and
9571         '_Static_assert' is not supported.
9572
9573 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9574
9575         allocator: New module.
9576         * modules/allocator, lib/allocator.c: New files.
9577         * lib/allocator.h (stdlib_allocator): New decl.
9578         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9579         Remove.  Do not include <stdlib.h>.
9580         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9581         * modules/careadlinkat (Files): Remove lib/allocator.h.
9582         (Depends-on): Add allocator.
9583
9584         stdlib: let modules use system malloc, realloc
9585         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9586         if !_GL_USE_STDLIB_ALLOC.
9587         (malloc, realloc): Limit this change to a smaller scope.
9588
9589         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9590         (malloc, realloc): Don't #undef; no longer needed.
9591         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9592         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9593         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9594         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9595         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9596         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9597         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9598         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9599
9600         careadlinkat: rename members to avoid problem
9601         * lib/allocator.h (struct allocator): Rename members from
9602         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9603         and realloc are #define'd.  Reported by Eric Blake in
9604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9605         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9606
9607 2011-04-08  Eric Blake  <eblake@redhat.com>
9608
9609         nonblocking: reduce dependency
9610         * tests/test-nonblocking.c: Only test sockets when in use.
9611         * modules/nonblocking-tests (Depends-on): Drop socket.
9612         (Makefile.am): Link even if sockets are not present.
9613         * modules/pipe2-tests (Makefile.am): Likewise.
9614         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9615
9616         pipe2: fix O_NONBLOCK support on mingw
9617         * modules/pipe2 (Depends-on): Add nonblocking.
9618         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9619         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9620         * tests/test-nonblocking.c (main): Likewise.
9621         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9622
9623         fcntl-h: fix O_ACCMODE on cygwin
9624         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9625         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9626
9627         pipe-filter: drop O_NONBLOCK workarounds
9628         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9629         * modules/pipe-filter-ii (Depends-on): Likewise.
9630         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9631
9632         nonblocking: provide O_NONBLOCK for mingw
9633         * modules/nonblocking (Depends-on): Add open.
9634         (configure.ac): Set new witness macro.
9635         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9636         * modules/fcntl-h (Makefile.am): Substitute it.
9637         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9638         nonblocking module is in use.
9639         * lib/nonblocking.c: Adjust portability test.
9640         * lib/open.c (open): Don't let native open see gnulib flag.
9641         * tests/test-fcntl-h.c (main): Enhance test.
9642         * tests/test-open.h (test_open): Likewise.
9643         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9644
9645         careadlinkat: fix compilation error on mingw
9646         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9647         within struct allocator.
9648
9649 2011-04-06  Eric Blake  <eblake@redhat.com>
9650
9651         binary-io: relicense under LGPLv2+
9652         * modules/binary-io (License): Relax to LGPLv2+.
9653         Requested for libvirt, and required by pipe2.
9654
9655 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9656
9657         verify: use _Static_assert if available
9658         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9659         (verify_true, verify): Use it if available.  This generates better
9660         diagnostics with GCC 4.6.0 and later.
9661
9662 2011-04-05  Bruno Haible  <bruno@clisp.org>
9663
9664         Remove leftover generated .h files after config.status changed.
9665
9666         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9667         GL_GENERATE_ALLOCA_H.
9668         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9669         GL_GENERATE_ALLOCA_H evaluates to false.
9670
9671         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9672         GL_GENERATE_ARGZ_H.
9673         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9674         evaluates to false.
9675
9676         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9677         GL_GENERATE_BYTESWAP_H.
9678         * modules/byteswap (Makefile.am): Remove byteswap.h if
9679         GL_GENERATE_BYTESWAP_H evaluates to false.
9680
9681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9682         GL_GENERATE_ERRNO_H.
9683         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9684         evaluates to false.
9685
9686         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9687         GL_GENERATE_FLOAT_H.
9688         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9689         evaluates to false.
9690
9691         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9692         GL_GENERATE_FNMATCH_H.
9693         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9694         GL_GENERATE_FNMATCH_H evaluates to false.
9695
9696         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9697         GL_GENERATE_GLOB_H.
9698         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9699         evaluates to false.
9700
9701         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9702         automake conditional GL_GENERATE_ICONV_H.
9703         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9704         evaluates to false.
9705
9706         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9707         GL_GENERATE_NETINET_IN_H.
9708         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9709         GL_GENERATE_NETINET_IN_H evaluates to false.
9710
9711         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9712         conditional GL_GENERATE_PTHREAD_H.
9713         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9714         * modules/pthread (Makefile.am): Remove pthread.h if
9715         GL_GENERATE_PTHREAD_H evaluates to false.
9716
9717         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9718         GL_GENERATE_SCHED_H.
9719         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9720         evaluates to false.
9721
9722         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9723         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9724         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9725         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9726
9727         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9728         GL_GENERATE_STDARG_H.
9729         * modules/stdarg (Makefile.am): Remove stdarg.h if
9730         GL_GENERATE_STDARG_H evaluates to false.
9731
9732         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9733         GL_GENERATE_STDBOOL_H.
9734         * modules/stdbool (Makefile.am): Remove stdbool.h if
9735         GL_GENERATE_STDBOOL_H evaluates to false.
9736
9737         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9738         conditional GL_GENERATE_STDDEF_H.
9739         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9740         * modules/stddef (Makefile.am): Remove stddef.h if
9741         GL_GENERATE_STDDEF_H evaluates to false.
9742
9743         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9744         GL_GENERATE_STDINT_H.
9745         * modules/stdint (Makefile.am): Remove stdint.h if
9746         GL_GENERATE_STDINT_H evaluates to false.
9747
9748         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9749         GL_GENERATE_SYSEXITS_H.
9750         * modules/sysexits (Makefile.am): Remove sysexits.h if
9751         GL_GENERATE_SYSEXITS_H evaluates to false.
9752
9753         Reported by Karl Berry and Ralf Wildenhues.
9754
9755 2011-04-05  Bruno Haible  <bruno@clisp.org>
9756
9757         Ensure to rebuild generated .h files when config.status has changed.
9758         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9759         config.status.
9760         * modules/ctype (Makefile.am): Likewise.
9761         * modules/dirent (Makefile.am): Likewise.
9762         * modules/errno (Makefile.am): Likewise.
9763         * modules/fcntl-h (Makefile.am): Likewise.
9764         * modules/float (Makefile.am): Likewise.
9765         * modules/getopt-posix (Makefile.am): Likewise.
9766         * modules/glob (Makefile.am): Likewise.
9767         * modules/iconv-h (Makefile.am): Likewise.
9768         * modules/inttypes (Makefile.am): Likewise.
9769         * modules/langinfo (Makefile.am): Likewise.
9770         * modules/locale (Makefile.am): Likewise.
9771         * modules/math (Makefile.am): Likewise.
9772         * modules/netdb (Makefile.am): Likewise.
9773         * modules/netinet_in (Makefile.am): Likewise.
9774         * modules/poll-h (Makefile.am): Likewise.
9775         * modules/pthread (Makefile.am): Likewise.
9776         * modules/pty (Makefile.am): Likewise.
9777         * modules/sched (Makefile.am): Likewise.
9778         * modules/search (Makefile.am): Likewise.
9779         * modules/selinux-h (Makefile.am): Likewise.
9780         * modules/signal (Makefile.am): Likewise.
9781         * modules/spawn (Makefile.am): Likewise.
9782         * modules/stdarg (Makefile.am): Likewise.
9783         * modules/stdbool (Makefile.am): Likewise.
9784         * modules/stddef (Makefile.am): Likewise.
9785         * modules/stdint (Makefile.am): Likewise.
9786         * modules/stdio (Makefile.am): Likewise.
9787         * modules/stdlib (Makefile.am): Likewise.
9788         * modules/string (Makefile.am): Likewise.
9789         * modules/strings (Makefile.am): Likewise.
9790         * modules/sys_file (Makefile.am): Likewise.
9791         * modules/sys_ioctl (Makefile.am): Likewise.
9792         * modules/sys_select (Makefile.am): Likewise.
9793         * modules/sys_socket (Makefile.am): Likewise.
9794         * modules/sys_stat (Makefile.am): Likewise.
9795         * modules/sys_time (Makefile.am): Likewise.
9796         * modules/sys_times (Makefile.am): Likewise.
9797         * modules/sys_utsname (Makefile.am): Likewise.
9798         * modules/sys_wait (Makefile.am): Likewise.
9799         * modules/sysexits (Makefile.am): Likewise.
9800         * modules/termios (Makefile.am): Likewise.
9801         * modules/time (Makefile.am): Likewise.
9802         * modules/unistd (Makefile.am): Likewise.
9803         * modules/wchar (Makefile.am): Likewise.
9804         * modules/wctype-h (Makefile.am): Likewise.
9805         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9806
9807 2011-04-05  Bruno Haible  <bruno@clisp.org>
9808
9809         pipe2: Relicense under LGPLv2+.
9810         * modules/pipe2 (License): Change to LGPLv2+.
9811         Requested by Eric Blake, for libvirt.
9812
9813 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9814
9815         bootstrap: compute gnulib_extra_files after updating build_aux
9816         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9817         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9818
9819 2011-04-05  Eric Blake  <eblake@redhat.com>
9820
9821         bootstrap: preserve git whitelist item sorting
9822         * build-aux/bootstrap (sort_patterns): New function.
9823         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9824
9825 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9826
9827         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9828         sc_space_tab check.
9829
9830 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9831
9832         areadlink, areadlinkat: rewrite in terms of careadlinkat
9833         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9834         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9835         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9836         (malloc, realloc): Remove #undefs.
9837         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9838         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9839         readlink, ssize_t, stdint, unistd.
9840         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9841         areadlink, stdint.
9842
9843         careadlinkat: new module
9844         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9845         * modules/careadlinkat: New files, written by me with
9846         a review and feedback from Ben Pfaff in
9847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9848
9849 2011-04-01  Bruno Haible  <bruno@clisp.org>
9850
9851         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9852         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9853         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9854         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9855         Reported by Bruce Korb <bruce.korb@gmail.com>.
9856
9857 2011-04-01  Bruno Haible  <bruno@clisp.org>
9858
9859         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9860         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9861         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9862         * modules/wcpcpy (Depends-on): Add extensions.
9863         * modules/wcpncpy (Depends-on): Likewise.
9864         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9865         systems.
9866         * doc/posix-functions/wcpncpy.texi: Likewise.
9867         * doc/posix-functions/wcwidth.texi: Likewise.
9868
9869 2011-03-31  Eric Blake  <eblake@redhat.com>
9870
9871         nonblocking: fix mingw test failures
9872         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9873         non-blocking flag on regular file.
9874         (get_nonblocking_flag): Set errno on invalid fd.
9875         * tests/test-nonblocking.c (main): Avoid test failure on
9876         directories if fchdir is not active.
9877         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9878
9879 2011-03-31  Bruno Haible  <bruno@clisp.org>
9880
9881         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9882         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9883         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9884         Reported by Simon Josefsson <simon@josefsson.org>.
9885
9886 2011-03-31  Bruno Haible  <bruno@clisp.org>
9887         and Eric Blake  <eblake@redhat.com>
9888
9889         nonblocking: new module
9890         * modules/nonblocking: New module.
9891         * modules/nonblocking-tests: Likewise.
9892         * lib/nonblocking.h: New file.
9893         * lib/nonblocking.c: Likewise.
9894         * tests/test-nonblocking.c: New test.
9895         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9896
9897 2011-03-30  Bruno Haible  <bruno@clisp.org>
9898
9899         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9900         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9901         instead of 'printf' format for GCC >= 4.4.
9902         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9903         (fprintf, printf, vfprintf, vprintf): Declare with
9904         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9905         the system's vfprintf() function.
9906         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9907
9908 2011-03-30  Eric Blake  <eblake@redhat.com>
9909
9910         passfd: fix scoping bug
9911         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9912         before sendmsg/recvmsg.
9913
9914         passfd: standardize coding conventions
9915         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9916         can be learned at compile time.
9917         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9918         ifdefs.
9919         (sendfd, recvfd): Follow gnulib code conventions.
9920
9921         passfd: fix incorrect sendmsg arguments
9922         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9923         incorrect msg_controllen value.
9924         * modules/passfd-tests (Depends-on): Check for alarm.
9925         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9926         Reported by Bastien ROUCARIES.
9927
9928 2011-03-30  Bruno Haible  <bruno@clisp.org>
9929
9930         c-strcasestr: Relicense under LGPLv2+.
9931         * modules/c-strcasestr (License): Change to LGPLv2+.
9932         Requested by Eric Blake, for libvirt.
9933
9934 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9935
9936         * users.txt: Add libidn2.  Fix libtasn1 link.
9937
9938 2011-03-30  Jim Meyering  <meyering@redhat.com>
9939
9940         tests: readlink* ("",... fails with EINVAL on newer kernels
9941         readlink and readlinkat have typically failed with ENOENT for
9942         the invalid, empty file name,  "".  However, with the advent
9943         of linux-2.6.39, they fail with EINVAL.
9944         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9945         when operating on the empty file name.
9946         * tests/test-readlink.h (test_readlink): Likewise.
9947
9948 2011-03-29  Bruno Haible  <bruno@clisp.org>
9949
9950         Relicense some modules under LGPLv2+, for libidn2.
9951         * modules/array-mergesort (License): Change to LGPLv2+.
9952         * modules/c-strcaseeq (License): Likewise.
9953         * modules/striconveh (License): Likewise.
9954         * modules/striconveha (License): Likewise.
9955         * modules/uniconv/base (License): Likewise.
9956         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9957         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9958         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9959         * modules/unictype/base (License): Likewise.
9960         * modules/unictype/bidiclass-of (License): Likewise.
9961         * modules/unictype/category-M (License): Likewise.
9962         * modules/unictype/category-none (License): Likewise.
9963         * modules/unictype/category-of (License): Likewise.
9964         * modules/unictype/category-test (License): Likewise.
9965         * modules/unictype/category-test-withtable (License): Likewise.
9966         * modules/unictype/combining-class (License): Likewise.
9967         * modules/unictype/joiningtype-of (License): Likewise.
9968         * modules/unictype/scripts (License): Likewise.
9969         * modules/uninorm/base (License): Likewise.
9970         * modules/uninorm/canonical-decomposition (License): Likewise.
9971         * modules/uninorm/composition (License): Likewise.
9972         * modules/uninorm/decompose-internal (License): Likewise.
9973         * modules/uninorm/decomposition-table (License): Likewise.
9974         * modules/uninorm/nfc (License): Likewise.
9975         * modules/uninorm/nfd (License): Likewise.
9976         * modules/uninorm/u32-normalize (License): Likewise.
9977         * modules/unistr/base (License): Likewise.
9978         * modules/unistr/u32-cpy (License): Likewise.
9979         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9980         * modules/unistr/u32-to-u8 (License): Likewise.
9981         * modules/unistr/u32-uctomb (License): Likewise.
9982         * modules/unistr/u8-check (License): Likewise.
9983         * modules/unistr/u8-mblen (License): Likewise.
9984         * modules/unistr/u8-mbtouc (License): Likewise.
9985         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9986         * modules/unistr/u8-mbtoucr (License): Likewise.
9987         * modules/unistr/u8-prev (License): Likewise.
9988         * modules/unistr/u8-strlen (License): Likewise.
9989         * modules/unistr/u8-to-u32 (License): Likewise.
9990         * modules/unistr/u8-uctomb (License): Likewise.
9991         * modules/unitypes (License): Likewise.
9992         Requested by Simon Josefsson.
9993
9994 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9995
9996         lib-symbol-visibility: Add a notice.
9997         * modules/lib-symbol-visibility (Notice): New field.
9998
9999 2011-03-29  Bruno Haible  <bruno@clisp.org>
10000
10001         getaddrinfo: Doc fix.
10002         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10003         section "fixed in Gnulib".
10004
10005 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10006
10007         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10008         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10009
10010 2011-03-26  Bruno Haible  <bruno@clisp.org>
10011
10012         unictype/property-byname: Reduce the number of load-time relocations.
10013         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10014         (UC_PROPERTY_INDEX_*): New enumeration values.
10015         (uc_property_byname): Convert an index from the lookup table to an
10016         uc_property_t.
10017         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10018         values.
10019
10020 2011-03-26  Bruno Haible  <bruno@clisp.org>
10021
10022         unictype/property-byname: Allow omitted word separators and aliases.
10023         * lib/unictype/pr_byname.gperf: Add property names without word
10024         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10025         for 'space'.
10026
10027 2011-03-26  Bruno Haible  <bruno@clisp.org>
10028
10029         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10030         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10031         also hyphens to space.
10032         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10033         without spaces.
10034         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10035
10036 2011-03-26  Bruno Haible  <bruno@clisp.org>
10037
10038         unictype/joiningtype-byname: Recognize long names as well.
10039         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10040         a long name.
10041         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10042         unictype/joiningtype_byname.h.
10043         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10044         * lib/unictype/joiningtype_byname.gperf: New file.
10045         * modules/unictype/joiningtype-byname (Files): Add
10046         lib/unictype/joiningtype_byname.gperf.
10047         (Depends-on): Add gperf.
10048         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10049         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10050         long names.
10051
10052         Tests for module 'unictype/joiningtype-longname'.
10053         * modules/unictype/joiningtype-longname-tests: New file.
10054         * tests/unictype/test-joiningtype_longname.c: New file.
10055
10056         New module 'unictype/joiningtype-longname'.
10057         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10058         * lib/unictype/joiningtype_longname.c: New file.
10059         * modules/unictype/joiningtype-longname: New file.
10060         * modules/unictype/joiningtype-all (Depends-on): Add
10061         unictype/joiningtype-longname.
10062
10063 2011-03-26  Bruno Haible  <bruno@clisp.org>
10064
10065         unictype/bidiclass-byname: Recognize long names as well.
10066         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10067         name.
10068         * lib/unictype/bidi_byname.c: Include <string.h>,
10069         unictype/bidi_byname.h.
10070         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10071         * lib/unictype/bidi_byname.gperf: New file.
10072         * modules/unictype/bidiclass-byname (Files): Add
10073         lib/unictype/bidi_byname.gperf.
10074         (Depends-on): Add gperf.
10075         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10076         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10077         long names.
10078
10079         Tests for module 'unictype/bidiclass-longname'.
10080         * modules/unictype/bidiclass-longname-tests: New file.
10081         * tests/unictype/test-bidi_longname.c: New file.
10082
10083         New module 'unictype/bidiclass-longname'.
10084         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10085         * lib/unictype/bidi_longname.c: New file.
10086         * modules/unictype/bidiclass-longname: New file.
10087         * modules/unictype/bidiclass-all (Depends-on): Add
10088         unictype/bidiclass-longname.
10089
10090 2011-03-26  Bruno Haible  <bruno@clisp.org>
10091
10092         unictype/bidi*: Rename modules.
10093         * modules/unictype/bidiclass-all: Renamed from
10094         modules/unictype/bidicategory-all.
10095         * modules/unictype/bidiclass-name: Renamed from
10096         modules/unictype/bidiclass-name.
10097         (Description): Update.
10098         * modules/unictype/bidiclass-name-tests: Renamed from
10099         modules/unictype/bidicategory-name-tests.
10100         * modules/unictype/bidiclass-byname: Renamed from
10101         modules/unictype/bidicategory-byname.
10102         (Description): Update.
10103         * modules/unictype/bidiclass-byname-tests: Renamed from
10104         modules/unictype/bidicategory-byname-tests.
10105         * modules/unictype/bidiclass-of: Renamed from
10106         modules/unictype/bidicategory-of.
10107         (Description): Update.
10108         * modules/unictype/bidiclass-of-tests: Renamed from
10109         modules/unictype/bidicategory-of-tests.
10110         * modules/unictype/bidiclass-test: Renamed from
10111         modules/unictype/bidicategory-test.
10112         (Description): Update.
10113         * modules/unictype/bidiclass-test-tests: Renamed from
10114         modules/unictype/bidicategory-test-tests.
10115         * modules/unictype/bidicategory-all: New file, a simple redirection.
10116         * modules/unictype/bidicategory-name: Likewise.
10117         * modules/unictype/bidicategory-byname: Likewise.
10118         * modules/unictype/bidicategory-of: Likewise.
10119         * modules/unictype/bidicategory-test: Likewise.
10120         * modules/unictype/property-bidi-* (Dependencies): Update.
10121         * lib/unictype/bidi_*.c: Update comment.
10122
10123 2011-03-26  Bruno Haible  <bruno@clisp.org>
10124
10125         unictype/bidi*: Rename functions, part 2.
10126         * modules/unictype/bidicategory-name (configure.ac): Update required
10127         libunistring version.
10128         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10129
10130 2011-03-25  Bruno Haible  <bruno@clisp.org>
10131
10132         New module 'unictype/combining-class-all'.
10133         * modules/unictype/combining-class-all: New file.
10134
10135         Tests for module 'unictype/combining-class-byname'.
10136         * modules/unictype/combining-class-byname-tests: New file.
10137         * tests/unictype/test-combiningclass_byname.c: New file.
10138
10139         New module 'unictype/combining-class-byname'.
10140         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10141         * lib/unictype/combiningclass_byname.c: New file.
10142         * lib/unictype/combiningclass_byname.gperf: New file.
10143         * modules/unictype/combining-class-byname: New file.
10144
10145         Tests for module 'unictype/combining-class-longname'.
10146         * modules/unictype/combining-class-longname-tests: New file.
10147         * tests/unictype/test-combiningclass_longname.c: New file.
10148
10149         New module 'unictype/combining-class-longname'.
10150         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10151         * lib/unictype/combiningclass_longname.c: New file.
10152         * modules/unictype/combining-class-longname: New file.
10153
10154         Tests for module 'unictype/combining-class-name'.
10155         * modules/unictype/combining-class-name-tests: New file.
10156         * tests/unictype/test-combiningclass_name.c: New file.
10157
10158         New module 'unictype/combining-class-name'.
10159         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10160         * lib/unictype/combiningclass_name.c: New file.
10161         * modules/unictype/combining-class-name: New file.
10162
10163 2011-03-25  Bruno Haible  <bruno@clisp.org>
10164
10165         unictype/combining-class: Rename source files.
10166         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10167         of unictype/combining.h.
10168         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10169         Update.
10170         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10171         * modules/unictype/combining-class (Description): Fix.
10172         (Files, Makefile.am): Update.
10173         * tests/unictype/test-combiningclass.c: Renamed from
10174         tests/unictype/test-combining.c.
10175         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10176
10177 2011-03-25  Bruno Haible  <bruno@clisp.org>
10178
10179         unictype: Update list of canonical combining classes.
10180         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10181
10182 2011-03-25  Bruno Haible  <bruno@clisp.org>
10183
10184         unictype/category-byname: Recognize long names as well.
10185         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10186         a long name.
10187         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10188         unictype/categ_byname.h.
10189         (UC_CATEGORY_INDEX_*): New enumeration values.
10190         (uc_general_category_byname): Use uc_general_category_lookup and
10191         convert from index to value.
10192         * lib/unictype/categ_byname.gperf: New file.
10193         * modules/unictype/category-byname (Files): Add
10194         lib/unictype/categ_byname.gperf.
10195         (Depends-on): Add gperf.
10196         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10197         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10198         long names.
10199
10200         Tests for module 'unictype/category-longname'.
10201         * modules/unictype/category-longname-tests: New file.
10202         * tests/unictype/test-categ_longname.c: New file.
10203
10204         New module 'unictype/category-longname'.
10205         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10206         * lib/unictype/categ_longname.c: New file.
10207         * modules/unictype/category-longname: New file.
10208         * modules/unictype/category-all (Depends-on): Add it.
10209
10210 2011-03-25  Bruno Haible  <bruno@clisp.org>
10211
10212         Tests for module 'unictype/category-LC'.
10213         * modules/unictype/category-LC-tests: New file.
10214         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10215
10216         New module 'unictype/category-LC'.
10217         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10218         (UC_CATEGORY_LC): New declaration.
10219         (UC_CASED_LETTER): New macro.
10220         * lib/gen-uni-tables.c (is_category_LC): New function.
10221         (output_categories): Also handle category LC.
10222         (UC_CATEGORY_MASK_LC): New enumeration value.
10223         (general_category_byname): Also handle category LC.
10224         * lib/unictype/categ_LC.c: New file.
10225         * lib/unictype/categ_LC.h: New file, automatically generated.
10226         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10227         category LC.
10228         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10229         * modules/unictype/category-LC: New file.
10230         * modules/unictype/category-byname (Depends-on): Add
10231         unictype/category-LC.
10232         * modules/unictype/category-all (Depends-on): Likewise.
10233
10234 2011-03-25  Eric Blake  <eblake@redhat.com>
10235
10236         xmalloc: revert yesterday's regression
10237         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10238         realloc's underlying behavior (allowing allocation of zero-size
10239         objects, especially if malloc-gnu is also in use).
10240
10241 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10242
10243         maint.mk: add missing version to VC-tag
10244         * top/maint.mk: git tag was missing actual tag name; add it.
10245
10246         valgrind: do leak checking, and exit with code 1 on error (not 0)
10247         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10248         to VALGRIND.
10249
10250 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10251
10252         posix-modules: say what it does.
10253         * posix-modules: Add a line to the --help output saying what it does.
10254
10255 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         xmalloc: Do not leak if underlying realloc is C99 compatible.
10258         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10259         This avoids a leak on C99-based systems.  See
10260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10261
10262 2011-03-24  Eric Blake  <eblake@redhat.com>
10263
10264         realloc: document portability problem
10265         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10266         passing 0 size to realloc.
10267
10268 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10269
10270         doc: update users.txt
10271         * users.txt: Add cvsps, tmpwatch
10272
10273 2011-03-23  Matt Rice  <ratmice@gmail.com>
10274
10275         doc: update users.txt
10276         * users.txt: Add gdb.
10277
10278 2011-03-23  Jim Meyering  <meyering@redhat.com>
10279
10280         doc: update users.txt
10281         Looking through matches up to the following URL (there are still
10282         several more pages), I found several projects that use gnulib:
10283         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10284         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10285         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10286
10287 2011-03-22  Bruno Haible  <bruno@clisp.org>
10288
10289         unictype/bidi*: Rename functions.
10290         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10291         uc_bidi_class, uc_is_bidi_class): New declarations.
10292         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10293         uc_bidi_category_byname.
10294         (uc_bidi_category_byname): New function.
10295         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10296         u_bidi_category_name.
10297         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10298         (uc_bidi_category_name): New function.
10299         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10300         uc_bidi_category.
10301         (uc_bidi_category): New function.
10302         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10303         uc_is_bidi_category. Invoke uc_bidi_class.
10304         (uc_is_bidi_category): New function.
10305         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10306         instead of uc_bidi_category_byname.
10307         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10308         instead of uc_bidi_category_name.
10309         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10310         uc_bidi_category.
10311         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10312         instead of uc_is_bidi_category.
10313
10314 2011-03-21  Bruno Haible  <bruno@clisp.org>
10315
10316         New module 'unictype/joininggroup-all'.
10317         * modules/unictype/joininggroup-all: New file.
10318
10319         Tests for module 'unictype/joininggroup-of'.
10320         * modules/unictype/joininggroup-of-tests: New file.
10321         * tests/unictype/test-joininggroup_of.c: New file.
10322         * tests/unictype/test-joininggroup_of.h: New file, automatically
10323         generated by gen-uni-tables.
10324
10325         New module 'unictype/joininggroup-of'.
10326         * modules/unictype/joininggroup-of: New file.
10327         * lib/unictype/joininggroup_of.c: New file.
10328         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10329         gen-uni-tables.
10330
10331         Tests for module 'unictype/joininggroup-byname'.
10332         * modules/unictype/joininggroup-byname-tests: New file.
10333         * tests/unictype/test-joininggroup_byname.c: New file.
10334
10335         New module 'unictype/joininggroup-byname'.
10336         * modules/unictype/joininggroup-byname: New file.
10337         * lib/unictype/joininggroup_byname.c: New file.
10338         * lib/unictype/joininggroup_byname.gperf: New file.
10339
10340         Tests for module 'unictype/joininggroup-name'.
10341         * modules/unictype/joininggroup-name-tests: New file.
10342         * tests/unictype/test-joininggroup_name.c: New file.
10343
10344         New module 'unictype/joininggroup-name'.
10345         * modules/unictype/joininggroup-name: New file.
10346         * lib/unictype/joininggroup_name.c: New file.
10347         * lib/unictype/joininggroup_name.h: New file.
10348
10349         New module 'unictype/joiningtype-all'.
10350         * modules/unictype/joiningtype-all: New file.
10351
10352         Tests for module 'unictype/joiningtype-of'.
10353         * modules/unictype/joiningtype-of-tests: New file.
10354         * tests/unictype/test-joiningtype_of.c: New file.
10355         * tests/unictype/test-joiningtype_of.h: New file, automatically
10356         generated by gen-uni-tables.
10357
10358         New module 'unictype/joiningtype-of'.
10359         * modules/unictype/joiningtype-of: New file.
10360         * lib/unictype/joiningtype_of.c: New file.
10361         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10362         gen-uni-tables.
10363
10364         Tests for module 'unictype/joiningtype-byname'.
10365         * modules/unictype/joiningtype-byname-tests: New file.
10366         * tests/unictype/test-joiningtype_byname.c: New file.
10367
10368         New module 'unictype/joiningtype-byname'.
10369         * modules/unictype/joiningtype-byname: New file.
10370         * lib/unictype/joiningtype_byname.c: New file.
10371
10372         Tests for module 'unictype/joiningtype-name'.
10373         * modules/unictype/joiningtype-name-tests: New file.
10374         * tests/unictype/test-joiningtype_name.c: New file.
10375
10376         New module 'unictype/joiningtype-name'.
10377         * modules/unictype/joiningtype-name: New file.
10378         * lib/unictype/joiningtype_name.c: New file.
10379
10380         unictype: Add support for Arabic shaping properties.
10381         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10382         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10383         declarations.
10384         (UC_JOINING_GROUP_*): New enumeration values.
10385         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10386         declarations.
10387         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10388         (unicode_joining_type): New variable.
10389         (UC_JOINING_GROUP_*): New enumeration values.
10390         (unicode_joining_group): New variable.
10391         (fill_arabicshaping, joining_type_as_c_identifier,
10392         output_joining_type_test, output_joining_type,
10393         joining_group_as_c_identifier, output_joining_group_test,
10394         output_joining_group): New functions.
10395         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10396         fill_arabicshaping and output_joining_type_test, output_joining_type,
10397         output_joining_group_test, output_joining_group.
10398         Reported by Simon Josefsson.
10399
10400 2011-03-21  Jim Meyering  <meyering@redhat.com>
10401
10402         strftime: fix a bug in yesterday's change
10403         * lib/strftime.c (add): Accommodate width's initial value of -1.
10404         Otherwise, nstrftime would copy uninitialized data into
10405         the result buffer.
10406
10407 2011-03-21  Jim Meyering  <meyering@redhat.com>
10408
10409         tests: add strftime-tests module
10410         * tests/test-strftime.c: New file.
10411         * modules/strftime-tests: New module.
10412
10413 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10414
10415         strftime: don't assume a byte count fits in 'int'
10416         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10417         found this problem by static analysis, using gcc -Wstrict-overflow
10418         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10419         on an integer overflow having undefined behavior, but it turns out
10420         that the argument is a size, which might not fit in 'int' anyway,
10421
10422 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10423
10424         stdio: don't require ignore_value around fwrite
10425
10426         This patch works around libc bug 11959
10427         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10428         Without this patch, applications must often write
10429         ignore_value (fwrite (...)) even though the ignore_value is
10430         not helpful here.  It's common to write many objects, using
10431         fwrite/printf/etc., and then use ferror to detect output error.
10432
10433         I considered making this patch optional, but decided against it,
10434         because libc is obviously being inconsistent here: there is no
10435         reason libc should insist that user code must inspect fwrite
10436         return's value without also insisting that it inspect printf's,
10437         putchar's, etc.  If user code wants to have a strict style where
10438         all these functions' values are checked (so that ferror need not
10439         be checked), we could add support for that style in a new gnulib
10440         module, but in the meantime it's better to be consistent and to
10441         support common usage.
10442
10443         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10444         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10445         that we are compiling in checking mode, and if not C++, and
10446         if not already wrapping fwrite for some other reason.
10447         (fwrite): #define to rpl_fwrite if the latter is defined.
10448
10449 2011-03-20  Bruno Haible  <bruno@clisp.org>
10450
10451         verror: Fix compilation error introduced on 2011-02-13.
10452         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10453         instead of __attribute__.
10454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10455
10456 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10457             Bruno Haible  <bruno@clisp.org>
10458
10459         socklen: do not depend on sys_socket
10460         While trying to modify Emacs to use gnulib's socklen module,
10461         I discovered a circular dependency: socklen depends on sys_socket
10462         and vice versa.  Emacs can use socklen, but it does not need
10463         sys_socket because it has its own substitute for sys/socket.h.
10464         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10465         gl_TYPE_SOCKLEN_T.
10466         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10467         gl_PREREQ_SYS_H_SOCKET.
10468         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10469         gl_PREREQ_SYS_H_SOCKET.
10470         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10471         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10472         * modules/socklen (Depends-on): Do not depend on sys_socket.
10473         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10474
10475 2011-03-20  Jim Meyering  <meyering@redhat.com>
10476
10477         maint.mk: sort file names *after* new transformation
10478         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10479         prefix would have led to an unwarranted failure in GNU parted.
10480         Sort after that transformation.
10481
10482 2011-03-19  Jim Meyering  <meyering@redhat.com>
10483
10484         maint.mk: fix po-file syntax-check rule
10485         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10486         Patch by Bruno Haible.
10487
10488 2011-03-19  Bruno Haible  <bruno@clisp.org>
10489
10490         socklen: Update comment.
10491         * m4/socklen.m4: Update comment about platforms.
10492
10493 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10494             Bruno Haible  <bruno@clisp.org>
10495
10496         inet_ntop, inet_pton: Simplify.
10497         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10498         documented to provide socklen_t and we already depend on sys_socket.
10499         * modules/inet_pton (Depends-on): Likewise.
10500         * lib/arpa_inet.in.h: Adjust comment.
10501
10502 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10503             Bruno Haible  <bruno@clisp.org>
10504
10505         netdb: Simplify.
10506         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10507         documented to provide socklen_t and we already depend on sys_socket.
10508         * lib/netdb.in.h: Adjust comment.
10509
10510 2011-03-19  Bruno Haible  <bruno@clisp.org>
10511
10512         sys_socket, netdb: Document problem with socklen_t.
10513         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10514         platforms.
10515         * doc/posix-headers/netdb.texi: Likewise.
10516
10517 2011-03-18  Eric Blake  <eblake@redhat.com>
10518
10519         maint.mk: let po check work in VPATH build
10520         * top/maint.mk (po_file): Allow cfg.mk override.
10521         (sc_po_check): Allow VPATH use.
10522         Reported by Jiri Denemark.
10523
10524 2011-03-16  Jim Meyering  <meyering@redhat.com>
10525
10526         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10527         Before, you would have had to create one .x-sc_ file per rule in order
10528         to exempt offending files.  Now, you may instead use a Make variable --
10529         usually defined in cfg.mk -- whose name identifies the affected rule.
10530         * top/maint.mk (_sc_excl): Define.
10531         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10532         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10533
10534 2011-03-13  Bruno Haible  <bruno@clisp.org>
10535
10536         ignore-value tests: Avoid warnings.
10537         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10538         empty for gcc < 3.4.
10539
10540 2011-03-13  Bruno Haible  <bruno@clisp.org>
10541
10542         passfd: Fix link error on Solaris.
10543         * modules/passfd (Description): Correct.
10544         (Depends-on): Add socketlib.
10545         (Link): New section.
10546         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10547
10548 2011-03-13  Bruno Haible  <bruno@clisp.org>
10549
10550         passfd: Fix link error on AIX 5.2.
10551         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10552
10553 2011-03-13  Bruno Haible  <bruno@clisp.org>
10554
10555         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10556         * lib/sys_socket.in.h: Include <stddef.h>.
10557         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10558         CMSG_FIRSTHDR. Remove unused variable.
10559
10560 2011-03-13  Bruno Haible  <bruno@clisp.org>
10561
10562         passfd: Fix compilation error on OpenBSD.
10563         * lib/passfd.c: Include <sys/uio.h>.
10564
10565 2011-03-13  Bruno Haible  <bruno@clisp.org>
10566
10567         passfd test: Fix warnings.
10568         * tests/test-passfd.c: Include <sys/wait.h>.
10569         (main): Fix typo.
10570
10571 2011-03-13  Bruno Haible  <bruno@clisp.org>
10572
10573         passfd module, part 4, tweaks.
10574         * tests/test-passfd.c: Reorder includes.
10575         (main): Fix perror and printf calls.
10576
10577 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10578
10579         passfd module, part 4.
10580         * modules/passfd-tests: New file.
10581         * tests/test-passfd.c: New file.
10582
10583 2011-03-13  Jim Meyering  <meyering@redhat.com>
10584
10585         Makefile: rely on GNU make; derive syntax-check rule names
10586         Rather than requiring that each sc_ rule be listed as a dependent
10587         of "check", use features of GNU make to derive the list.
10588         * Makefile (syntax-check-rules): Define.
10589         (check): Depend on the new variable, not the hard-coded list.
10590
10591 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10592             Bruno Haible  <bruno@clisp.org>
10593
10594         passfd module, part 3.
10595         * lib/passfd.h (recvfd): Add a flags argument.
10596         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10597         (recvfd): Add a flags argument.
10598         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10599         exists.
10600         * modules/passfd (Depends-on): Add cloexec.
10601         Suggested by Eric Blake.
10602
10603 2011-03-13  Bruno Haible  <bruno@clisp.org>
10604
10605         passfd module, part 2, tweaks.
10606         * modules/passfd (Files): Reorder.
10607         (Depends-on): Remove errno.
10608         (Include): Remove <sys/socket.h>, <sys/un.h>.
10609         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10610         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10611         specification header. Include <sys/socket.h> always. Don't include
10612         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10613         (sendfd): Clarify that it sets errno when it fails.
10614         (recvfd): Fix specification.
10615
10616 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10617
10618         passfd module, part 2.
10619         * modules/passfd: New file.
10620         * lib/passfd.h: New file.
10621         * lib/passfd.c: New file.
10622
10623 2011-03-12  Bruno Haible  <bruno@clisp.org>
10624
10625         wcswidth, mbswidth: Avoid integer overflow.
10626         * lib/wcswidth.c: Include <limits.h>.
10627         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10628         * lib/mbswidth.c: Include <limits.h>.
10629         (mbsnwidth): Avoid 'int' overflow.
10630         Reported by Jim Meyering.
10631
10632 2011-03-12  Bruno Haible  <bruno@clisp.org>
10633
10634         futimens, utimensat: Avoid endless recursion on Solaris 10.
10635         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10636         Solaris.
10637         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10638         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10639
10640 2011-03-11  Jim Meyering  <meyering@redhat.com>
10641
10642         maint.mk: relax a regexp to accommodate other formatting styles
10643         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10644         between "ngettext" and the following "(".
10645
10646 2011-03-11  Pádraig Brady <P@draigBrady.com>
10647
10648         maint.mk: suppress a false positive warning
10649         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10650         diagnostics are marked with ngettext.
10651
10652 2011-03-10  Eric Blake  <eblake@redhat.com>
10653
10654         wchar: add explicit dependencies, for Tru64
10655         * modules/mbmemcasecoll (Depends-on): Add wchar.
10656         * modules/mbtowc (Depends-on): Likewise.
10657         * modules/vasnprintf (Depends-on): Likewise.
10658         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10659         * modules/wctomb (Depends-on): Likewise.
10660         Reported by Peter O'Gorman.
10661
10662 2011-03-08  Bruno Haible  <bruno@clisp.org>
10663
10664         passfd module, part 1, tweaks.
10665         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10666         Improve indentation. Improve AC_MSG_CHECKING messages.
10667         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10668         gl_SOCKET_FAMILIES.
10669
10670 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10671
10672         passfd module, part 1.
10673         * m4/afunix.m4: New file.
10674         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10675         sockets.
10676
10677 2011-03-08  Bruno Haible  <bruno@clisp.org>
10678
10679         regex-quote: New API.
10680         * lib/regex-quote.h: Include <stdbool.h>.
10681         (struct regex_quote_spec): New type.
10682         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10683         New declarations.
10684         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10685         'const struct regex_quote_spec *' argument.
10686         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10687         (pcre_special): New constant.
10688         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10689         New functions.
10690         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10691         'const struct regex_quote_spec *' argument.
10692         * modules/regex-quote (Depends-on): Add stdbool.
10693         * tests/test-regex-quote.c (check): Update for new API. Add test for
10694         anchored results.
10695         * NEWS: Mention the API change.
10696         Reported by Reuben Thomas and Eric Blake.
10697
10698 2011-03-06  Bruno Haible  <bruno@clisp.org>
10699
10700         regex-quote: Fix creation of POSIX extended regular expressions.
10701         * lib/regex-quote.c (ere_special): Add grouping and alternation
10702         operators.
10703
10704 2011-03-05  Bruno Haible  <bruno@clisp.org>
10705
10706         doc: Improve doc regarding autopoint vs. gnulib.
10707         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10708         disable autopoint while running autoreconf.
10709         Suggested by Ralf Wildenhues.
10710
10711 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10712
10713         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10714         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10715
10716 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10717
10718         parse-duration: remove xalloc.h dependency
10719         * lib/parse-duration.c (parse_period): handle NULL return from
10720         strdup instead of calling xstrdup().
10721         * modules/parse-duration: remove "xalloc" dependency
10722
10723 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10724
10725         bootstrap: honor m4_base when running aclocal
10726         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10727
10728 2011-03-02  Jim Meyering  <meyering@redhat.com>
10729
10730         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10731         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10732         on request from Matt Booth.
10733
10734 2011-03-01  Eric Blake  <eblake@redhat.com>
10735
10736         test-link: work on Hurd
10737         * tests/test-link.h (test_link): Hurd rejects linking directories
10738         with EISDIR instead of the POSIX-mandated EPERM.
10739
10740 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10741
10742         stdio: simplify by moving files to printf-posix, sigpipe
10743         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10744         since this symbol is needed only if printf is replaced.
10745         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10746         Require gl_ASM_SYMBOL_PREFIX.
10747         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10748         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10749         (Depends-on): Add 'raise'.
10750         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10751         * modules/stdio (Files): Remove lib/stdio-write.c,
10752         m4/asm-underscore.m4.
10753         (Depends-on): Remove 'raise'.
10754
10755         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10756         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10757         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10758         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10759
10760 2011-02-28  Bruno Haible  <bruno@clisp.org>
10761
10762         localcharset: Assume ANSI C behaviour of free().
10763         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10764         calling free().
10765         Suggested by Simon Josefsson <simon@josefsson.org>.
10766
10767 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10768             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10769             Bruno Haible  <bruno@clisp.org>  (tiny change)
10770
10771         On Cygwin, use /proc file system instead of win32 API.
10772         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10773         Win32 file names.
10774         (DllMain): Simplify by removing Cygwin specific code.
10775         (find_shared_library_fullname): Use Linux specific implementation also
10776         for Cygwin.
10777         (get_shared_library_fullname): Update accordingly.
10778         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10779         Win32 file names.
10780         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10781         Cygwin specific code.
10782
10783 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10784             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10785
10786         Fix OpenMP flag detection for various Fortran compilers.
10787         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10788         OpenMP-conditional compilation construct, to force compile
10789         failure with missing OpenMP flag.
10790         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10791
10792 2011-02-25  Eric Blake  <eblake@redhat.com>
10793
10794         strstr: expand test coverage
10795         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10796         compilation.
10797         * tests/test-memmem.c (main): Duplicate tests.
10798         * tests/test-strcasestr.c (main): Likewise.
10799         * tests/test-c-strcasestr.c (main): Likewise.
10800
10801 2011-02-25  Jim Meyering  <meyering@redhat.com>
10802
10803         maint.mk: detect missing-NL-at-EOF, too
10804         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10805         it also detects when a file lacks a newline at EOF.
10806         (require_exactly_one_NL_at_EOF_): Renamed from
10807         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10808         since people may well have .x-sc_... file names tied to the
10809         existing name.  Suggested by Eric Blake.
10810
10811 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10812
10813         dirname: move m4/dos.m4 functionality into lib/dosname.h
10814
10815         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10816         extracts symbols from it, puts them into config.h; but it's much
10817         easier to use the symbols directly.  filename.h already does this,
10818         but it disagrees with dos.m4 in some respects.  This patch
10819         introduces a different include file dosname.h that packages up
10820         dos.m4, and then later we can work on merging filename.h and
10821         dosname.h.  Applications that need only the easy-to-configure
10822         symbols should consider including dosname.h rather than dirname.h.
10823         * NEWS: Mention incompatible changes.
10824         * m4/dos.m4: Remove.
10825         * lib/dosname.h, modules/dosname: New files.
10826         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10827         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10828         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10829         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10830         Include dosname.h, not dirname.h.
10831         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10832         Include dosname.h, for definitions of symbols like ISSLASH
10833         that used to be in config.h.
10834         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10835         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10836         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10837         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10838         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10839         * modules/rmdir (Files): Likewise.
10840         * modules/stat (Files): Likewise.
10841         * modules/unlink (Files): Likewise.
10842         * modules/dirname-lgpl (Depends-on): Add dosname.
10843         * modules/lstat (Depends-on): Likewise.
10844         * modules/openat (Depends-on): Likewise.
10845         * modules/rmdir (Depends-on): Likewise.
10846         * modules/savewd (Depends-on): Likewise.
10847         * modules/stat (Depends-on): Likewise.
10848         * modules/unlink (Depends-on): Likewise.
10849         * modules/openat (Depends-on): Remove dirname-lgpl.
10850         * modules/savewd (Depends-on): Likewise.
10851         * tests/test-dirname.c: Do not use removed symbols like
10852         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10853         the remaining symbols, e.g., ISSLASH ('\\').
10854
10855 2011-02-25  Eric Blake  <eblake@redhat.com>
10856
10857         strstr: revert patches that introduced bug and pessimization
10858         * lib/str-two-way.h: Add another reference.
10859         (two_way_short_needle, two_way_long_needle): Revert changes from
10860         2011-02-24; they pessimize search speed.
10861         (critical_factorization): Partially revert changes from
10862         2010-06-22; they violate the requirement that the left half of the
10863         needle be smaller than the period of the needle.
10864
10865 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10866
10867         filenamecat: remove unnecessary dependency on dirname-lgpl
10868         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10869         is no direct dependency, just an indirect one via filenamecat-lgpl.
10870
10871         remove: remove unnecessary use of m4/dos.m4
10872         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10873         * modules/remove (FILES): Remove m4/dos.m4.
10874
10875         * lib/openat-proc.c: Don't include dirname.h; not needed.
10876
10877         backupfile: remove unnecessary use of m4/dos.m4
10878         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10879         of its symbols are used by the backupfile code.  backupfile.c does
10880         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10881         for the rare case of programs that want all their backup file
10882         names to live within 8+3 limits, and dos.m4 doesn't address that.
10883         * modules/backupfile (Files): Remove m4/dos.m4.
10884
10885 2011-02-24  Jim Meyering  <meyering@redhat.com>
10886
10887         strstr: fix a bug whereby strstr would mistakenly return NULL
10888         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10889         in period calculation.
10890         (two_way_long_needle): Likewise.
10891         The original problem was reported by Mike Stump in
10892         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10893         Ralf Wildenhues provided the short needle and haystack.
10894         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10895         Add a more involved test to trigger the bug in two_way_long_needle.
10896
10897 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10898
10899         gnulib-tool: remove use of bold display in help screen
10900         * gnulib-tool (func_usage): Do not use bold display anymore in the
10901         help screen.  That was just meant to be a temporary emphasis for a
10902         backward-incompatible change.
10903
10904 2011-02-23  Bruno Haible  <bruno@clisp.org>
10905
10906         Fix misindentation of preprocessor directives.
10907         * lib/argp-namefrob.h: Reindent preprocessor directives.
10908         * lib/getopt_int.h (struct _getopt_data): Likewise.
10909         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10910         * lib/vasnprintf.c (decode_long_double): Likewise.
10911         * tests/test-argmatch.c: Insert blank lines, for clarity.
10912         * tests/test-exclude.c: Likewise.
10913
10914 2011-02-22  Bruno Haible  <bruno@clisp.org>
10915
10916         ioctl: Fix for MacOS X in 64-bit mode.
10917         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10918         value.
10919         Suggested by Eric Blake.
10920         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10921
10922 2011-02-22  Jim Meyering  <meyering@redhat.com>
10923
10924         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10925         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10926         in lib/.
10927
10928 2011-02-22  Eric Blake  <eblake@redhat.com>
10929
10930         maint: avoid any CDPATH issue
10931         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10932
10933         maint: adjust cpp indentation for my modules, as well
10934         * Makefile (sc_cpp_indent_check): Add my name.
10935         * lib/fbufmode.c: Filter through cppi.
10936         * lib/fpurge.c: Likewise.
10937         * lib/freadable.c: Likewise.
10938         * lib/freading.c: Likewise.
10939         * lib/fwritable.c: Likewise.
10940         * lib/fwriting.c: Likewise.
10941         * lib/sigaction.c: Likewise.
10942
10943 2011-02-22  Jim Meyering  <meyering@redhat.com>
10944
10945         maint: adjust cpp indentation to reflect nesting depth
10946         I.e., in a block of code that begins with an unnested "#if",
10947         put one space between the "#" in column 1 and following token.
10948         For example,
10949         -#include <sys/vfs.h>
10950         +# include <sys/vfs.h>
10951         Do this only in .c files that are part of a module I maintain.
10952         * lib/linkat.c: Filter through cppi.
10953         * lib/nanosleep.c: Likewise.
10954         * lib/openat.c: Likewise.
10955         * lib/openat-die.c: Likewise.
10956         * lib/dup3.c: Likewise.
10957         * lib/fchownat.c: Likewise.
10958         * lib/flock.c: Likewise.
10959         * lib/fsync.c: Likewise.
10960         * lib/fts.c: Likewise.
10961         * lib/getpass.c: Likewise.
10962         * lib/gettimeofday.c: Likewise.
10963         * lib/userspec.c: Likewise.
10964         * Makefile (sc_cpp_indent_check): New rule, to check this.
10965
10966 2011-02-22  Bruno Haible  <bruno@clisp.org>
10967
10968         New module 'wctomb'.
10969         * lib/stdlib.in.h (wctomb): New declaration.
10970         * lib/wctomb.c: New file.
10971         * lib/wctomb-impl.h: New file.
10972         * m4/wctomb.m4: New file.
10973         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10974         REPLACE_WCTOMB.
10975         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10976         REPLACE_WCTOMB.
10977         * modules/wctomb: New file.
10978         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10979         * doc/posix-functions/wctomb.texi: Mention the new module.
10980         * modules/wctob (Depends-on): Add wctomb.
10981
10982 2011-02-22  Bruno Haible  <bruno@clisp.org>
10983
10984         New module 'mbtowc'.
10985         * lib/stdlib.in.h (mbtowc): New declaration.
10986         * lib/mbtowc.c: New file.
10987         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10988         * m4/mbtowc.m4: New file.
10989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10990         REPLACE_MBTOWC.
10991         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10992         REPLACE_MBTOWC.
10993         * modules/mbtowc: New file.
10994         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10995         * doc/posix-functions/mbtowc.texi: Mention the new module.
10996         * modules/btowc (Depends-on): Add mbtowc.
10997
10998 2011-02-22  Bruno Haible  <bruno@clisp.org>
10999
11000         wcrtomb: Add more tests for native Windows platforms.
11001         * tests/test-wcrtomb-w32-1.sh: New file.
11002         * tests/test-wcrtomb-w32-2.sh: New file.
11003         * tests/test-wcrtomb-w32-3.sh: New file.
11004         * tests/test-wcrtomb-w32-4.sh: New file.
11005         * tests/test-wcrtomb-w32-5.sh: New file.
11006         * tests/test-wcrtomb-w32.c: New file.
11007         * modules/wcrtomb-tests (Files): Add them.
11008         (Makefile.am): Arrange to run these tests.
11009         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11010         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11011
11012 2011-02-20  Bruno Haible  <bruno@clisp.org>
11013
11014         wcrtomb: Enhance test.
11015         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11016
11017 2011-02-20  Bruno Haible  <bruno@clisp.org>
11018
11019         mbrtowc: Tiny optimization.
11020         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11021
11022 2011-02-20  Jim Meyering  <meyering@redhat.com>
11023
11024         test-exclude.c: remove unmatched #endif
11025         * tests/test-exclude.c: Remove stray #endif, left over from
11026         the change of a week ago.
11027
11028 2011-02-19  Jim Meyering  <meyering@redhat.com>
11029
11030         git-version-gen: skip "-dirty" check when appropriate
11031         * build-aux/git-version-gen: Don't run any git commands when the
11032         version string comes from .tarball-version.  Prior to this, we
11033         would run git update-index --refresh even from a just-unpacked
11034         tarball directory, and that could affect a .git/ directory in a
11035         parent of the build directory.  Reported by Mike Frysinger.
11036
11037 2011-02-19  Bruno Haible  <bruno@clisp.org>
11038
11039         unictype/property-byname: Reduce the size of the 'data' segment.
11040         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11041
11042 2011-02-19  Bruno Haible  <bruno@clisp.org>
11043
11044         unictype/scripts: Reduce the size of the 'data' segment.
11045         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11046         '%pic'.
11047         * lib/unictype/scripts_byname.gperf: Regenerated.
11048
11049 2011-02-19  Bruno Haible  <bruno@clisp.org>
11050
11051         stdint: Update documentation.
11052         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11053
11054 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11055
11056         stdint: omit redundant check for wchar.h
11057         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11058         always tests whether wchar.h exists, so remove the now-redundant test.
11059
11060 2011-02-18  Bruno Haible  <bruno@clisp.org>
11061
11062         stdint: Cut dependency to module 'wchar'.
11063         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11064         include the necessary prerequisites.
11065         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11066         * modules/stdint (Depends-on): Remove wchar.
11067         (Makefile.am): Substitute HAVE_WCHAR_H.
11068         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11069
11070 2011-02-18  Eric Blake  <eblake@redhat.com>
11071
11072         longlong: skip, rather than fail, on cross-compilation
11073         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11074         when cross-compiling; regression from 2011-02-16.
11075
11076 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11077
11078         * NEWS: Mention 2011-02-08 change to stdlib.
11079
11080 2011-02-17  Bruno Haible  <bruno@clisp.org>
11081
11082         getloadavg: Add comments about platforms.
11083         * m4/getloadavg.m4: Add comment.
11084         * lib/getloadavg.c: Likewise.
11085
11086 2011-02-17  Bruno Haible  <bruno@clisp.org>
11087
11088         getloadavg: Fix link error on Solaris 2.6.
11089         * modules/getloadavg (Link): New section.
11090         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11091         linking test-getloadavg.
11092         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11093         getloadavg.
11094
11095 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11098         It was 'int', but this doesn't match the IRIX 6.5 manual.
11099         Suggested by Bruno Haible in
11100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11101
11102 2011-02-17  Bruno Haible  <bruno@clisp.org>
11103
11104         havelib: Fix comments.
11105         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11106         change.
11107
11108 2011-02-17  Bruno Haible  <bruno@clisp.org>
11109
11110         havelib: Update config.rpath.
11111         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11112
11113 2011-02-17  Bruno Haible  <bruno@clisp.org>
11114
11115         getloadavg test: Add some plausibility checks.
11116         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11117         is improbable.
11118
11119 2011-02-16  Eric Blake  <eblake@redhat.com>
11120
11121         maintainer-makefile: make syntax-check a no-op from tarballs
11122         * top/maint.mk (no-vc-detected): New rule.
11123         (local-checks-available): Use it to avoid hanging if someone tries
11124         'make syntax-check' from a tarball.  Also append to any non-syntax
11125         checks already defined in cfg.mk.
11126
11127 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11128
11129         longlong: tune, particularly for common case of c99
11130
11131         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11132         or running anything if c99, or if unsigned long long int does not
11133         work.  In either case, we know the answer without further tests.
11134         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11135         it at most once, and use its results for both long long int and
11136         unsigned long long int.  This is more likely to be efficient in
11137         the common case where the program wants to check for both long
11138         long int and unsigned long long int.
11139         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11140         since the answer is already known.
11141
11142 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11143
11144         getloadavg: set errno
11145         * lib/getloadavg.c: Set errno when returning -1.  If no other
11146         error number looks appropriate, set it to ENOSYS if the getloadavg
11147         looks like it can't possibly ever work, ENOTSUP otherwise.
11148         Suggested by Bruno Haible in
11149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11150
11151         getloadavg: trim unused parts and speed up 'configure'
11152         * NEWS: Document this.
11153         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11154         always compiled if getloadavg is absent.
11155         Move test code to ...
11156         * tests/test-getloadavg.c: New file, containing previous
11157         contents of test from lib/getloadavg.c.  It also contains
11158         suggestions by Bruno Haible in
11159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11160         * modules/getloadavg-tests: New file.
11161         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11162         Do tests in the same order as they're needed for getloadavg.c.
11163         Omit setgid-related tests that generate symbols KMEM_GROUP,
11164         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11165         Do only the tests that are needed to see whether the system has
11166         getloadavg, moving the other tests into ...
11167         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11168         NLIST_NAME_UNION; nobody should be using it.  Do not define
11169         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11170         relevant, as the user of this module shouldn't care how getloadavg
11171         is implemented.
11172
11173         getloadavg: omit unused var
11174         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11175
11176 2011-02-15  Jim Meyering  <meyering@redhat.com>
11177
11178         doc: update users.txt
11179         * users.txt: Update iwhd's URL.
11180
11181 2011-02-13  Bruno Haible  <bruno@clisp.org>
11182
11183         Consistent macro naming for macros that use GCC __attribute__.
11184         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11185         _ATTRIBUTE_NONNULL_.
11186         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11187         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11188         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11189         ATTRIBUTE_DEPRECATED.
11190         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11191         ATTRIBUTE_NORETURN.
11192         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11193         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11194         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11195         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11196         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11197         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11198         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11199         ATTRIBUTE_SENTINEL.
11200         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11201         ATTRIBUTE_RETURN_CHECK.
11202         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11203         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11204         ATTRIBUTE_NORETURN.
11205         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11206         Reported by Paul Eggert.
11207
11208 2011-02-13  Bruno Haible  <bruno@clisp.org>
11209
11210         Don't interfere with a program's definition of __attribute__.
11211         * lib/argp.h (__attribute__): Remove definition.
11212         (_GL_ATTRIBUTE_FORMAT): New macro.
11213         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11214         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11215         (_GL_ATTRIBUTE_FORMAT): New macro.
11216         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11217         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11218         GCC 3 or newer.
11219         * lib/error.h (__attribute__): Remove definition.
11220         (_GL_ATTRIBUTE_FORMAT): New macro.
11221         (error, error_at_line): Use it.
11222         * lib/hash.h (__attribute__): Remove definition.
11223         (ATTRIBUTE_WUR): Update definition. Define always.
11224         * lib/openat.h (__attribute__): Remove definition.
11225         (ATTRIBUTE_NORETURN): Update definition. Define always.
11226         * lib/sigpipe-die.h (__attribute__): Remove definition.
11227         (ATTRIBUTE_NORETURN): Update definition. Define always.
11228         * lib/vasnprintf.h (__attribute__): Remove definition.
11229         (_GL_ATTRIBUTE_FORMAT): New macro.
11230         (asnprintf, vasnprintf): Use it.
11231         * lib/xalloc.h (__attribute__): Remove definition.
11232         (ATTRIBUTE_NORETURN): Update definition. Define always.
11233         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11234         * lib/xmemdup0.h (__attribute__): Remove definition.
11235         (ATTRIBUTE_NORETURN): Update definition. Define always.
11236         * lib/xprintf.h (__attribute__): Remove definition.
11237         (_GL_ATTRIBUTE_FORMAT): New macro.
11238         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11239         * lib/xstrtol.h (__attribute__): Remove definition.
11240         (ATTRIBUTE_NORETURN): Update definition. Define always.
11241         * lib/xvasprintf.h (__attribute__): Remove definition.
11242         (_GL_ATTRIBUTE_FORMAT): New macro.
11243         (xasprintf, xvasprintf): Use it.
11244         * tests/test-argmatch.c (__attribute__): Remove definition.
11245         (ATTRIBUTE_NORETURN): Update definition. Define always.
11246         * tests/test-exclude.c (__attribute__): Remove definition.
11247         (ATTRIBUTE_NORETURN): Update definition. Define always.
11248         Reported by Paul Eggert.
11249
11250 2011-02-13  Bruno Haible  <bruno@clisp.org>
11251
11252         mbrtowc: Add more tests for native Windows platforms.
11253         * tests/test-mbrtowc-w32-1.sh: New file.
11254         * tests/test-mbrtowc-w32-2.sh: New file.
11255         * tests/test-mbrtowc-w32-3.sh: New file.
11256         * tests/test-mbrtowc-w32-4.sh: New file.
11257         * tests/test-mbrtowc-w32-5.sh: New file.
11258         * tests/test-mbrtowc-w32.c: New file.
11259         * modules/mbrtowc-tests (Files): Add them.
11260         (Makefile.am): Arrange to run these tests.
11261         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11262         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11263
11264 2011-02-13  Bruno Haible  <bruno@clisp.org>
11265
11266         mbrtowc: Work around native Windows bug.
11267         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11268         guess when no suitable locale for testing was found.
11269         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11270
11271 2011-02-13  Bruno Haible  <bruno@clisp.org>
11272
11273         mbsinit: Work around mingw bug.
11274         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11275         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11276         Windows.
11277         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11278
11279 2011-02-13  Bruno Haible  <bruno@clisp.org>
11280
11281         mbsinit: Don't crash for a NULL argument.
11282         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11283         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11284
11285 2011-02-13  Bruno Haible  <bruno@clisp.org>
11286
11287         Don't interfere with a program's definition of __attribute__.
11288         * lib/stdio.in.h (__attribute__): Remove definition.
11289         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11290         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11291         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11292         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11293         * lib/string.in.h (__attribute__): Remove definition.
11294         Reported by Paul Eggert.
11295
11296 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11297
11298         stdlib: don't get in the way of non-GCC __attribute__
11299         See thread starting at
11300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11301         Revert previous stdlib change, installing the following instead:
11302         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11303         to get in the way of a non-GCC compiler that supports __attribute__.
11304         (_GL_ATTRIBUTE_RETURN): New macro.
11305         (_Exit): Use it instead of __attribute__.
11306
11307 2011-02-12  Bruno Haible  <bruno@clisp.org>
11308
11309         quotearg test: Avoid test failure on mingw.
11310         * tests/test-quotearg.sh: Convert the locale identifier from native
11311         Windows syntax to Unix syntax.
11312
11313 2011-02-12  Bruno Haible  <bruno@clisp.org>
11314
11315         setlocale: Prefer gnulib's override over libintl's override.
11316         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11317         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11318         GNULIB_defined_setlocale is set.
11319
11320 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11321
11322         stdlib: support non-GCC __attribute__
11323
11324         Fix a serious and tricky problem encountered when attempting to
11325         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11326         5.5, but it crashed due to memory corruption on Solaris 10 with
11327         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11328         bits that are otherwise zero.  This tagging is optional inside
11329         Emacs but is preferred and is used when __attribute__ ((__aligned
11330         (8))) works, as it does with both recent-enough GCC and with Sun C
11331         5.11.  However, Sun C 5.11 is not GCC and does not #define
11332         __GNUC__ and __GNUC_MINOR__.
11333
11334         When I added the getloadavg module to Emacs, it brought in
11335         stdlib.in.h, which contained this fragment:
11336
11337            #ifndef __attribute__
11338            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11339            #  define __attribute__(Spec)   /* empty */
11340            # endif
11341            #endif
11342
11343         When files that include <stdlib.h> were compiled with Sun C 5.11,
11344         the above code disabled __attribute__ ((__aligned (8))), which
11345         caused variables to not be properly aligned, which eventually led
11346         to the pointer corruption mentioned above.  (This was a bit hard
11347         to diagnose, unfortunately.)
11348
11349         Several "#define __attribute__(X) /* empty */" code snippets need
11350         to be eradicated from Gnulib to work with non-GCC compilers that
11351         support __attribute__.  The Autoconf way to do this is to test for
11352         each kind of attribute that we want support for, and selectively
11353         enable that in source code.
11354
11355         Fix this problem just for stdlib.h, by adding a test for the
11356         __noreturn__ attribute, and change stdlib.in.h to use that test
11357         when needed.  This technique can be easily generalized to the
11358         other *.in.h files and attributes, and a similar technique can be
11359         used for *.h and *.c files.  This patch is enough to solve the
11360         problem for Emacs + getloadavg, and I thought I'd publish it for
11361         feedback before undertaking further, similar fixes in other
11362         modules.
11363
11364         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11365         because it's not needed for stdlib.h.  It merely substitutes the
11366         value directly into stdlib.h.  We may well need to #define it, or
11367         similar symbols, for other modules, but it's nice to also have an
11368         option to not #define it for applications like Emacs that do not
11369         need it.
11370
11371         * lib/stdlib.in.h (__attribute__): Do not #define.
11372         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11373         be defined only if the _Exit module is also used.
11374         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11376         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11377         platforms.
11378         * modules/_Exit (Files): Add m4/attribute.m4.
11379         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11380         * m4/attribute.m4: New file.
11381
11382 2011-02-12  Bruno Haible  <bruno@clisp.org>
11383
11384         wcsrtombs: Work around bug on native Windows.
11385         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11386         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11387         instead of len.
11388         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11389
11390 2011-02-12  Bruno Haible  <bruno@clisp.org>
11391
11392         mbsrtowcs: Work around bug on native Windows.
11393         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11394         against mingw bug.
11395         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11396
11397 2011-02-12  Bruno Haible  <bruno@clisp.org>
11398
11399         Avoid setlocale bugs in tests.
11400         * modules/btowc (Dependencies): Add setlocale.
11401         * modules/c-strcase (Dependencies): Likewise.
11402         * modules/mbmemcasecmp (Dependencies): Likewise.
11403         * modules/mbmemcasecoll (Dependencies): Likewise.
11404         * modules/mbrtowc (Dependencies): Likewise.
11405         * modules/mbscasecmp (Dependencies): Likewise.
11406         * modules/mbscasestr (Dependencies): Likewise.
11407         * modules/mbschr (Dependencies): Likewise.
11408         * modules/mbscspn (Dependencies): Likewise.
11409         * modules/mbsinit (Dependencies): Likewise.
11410         * modules/mbsncasecmp (Dependencies): Likewise.
11411         * modules/mbsnrtowcs (Dependencies): Likewise.
11412         * modules/mbspbrk (Dependencies): Likewise.
11413         * modules/mbspcasecmp (Dependencies): Likewise.
11414         * modules/mbsrchr (Dependencies): Likewise.
11415         * modules/mbsrtowcs (Dependencies): Likewise.
11416         * modules/mbsspn (Dependencies): Likewise.
11417         * modules/mbsstr (Dependencies): Likewise.
11418         * modules/nl_langinfo (Dependencies): Likewise.
11419         * modules/quotearg (Dependencies): Likewise.
11420         * modules/unicase/locale-language (Dependencies): Likewise.
11421         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11422         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11423         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11424         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11425         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11426         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11427         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11428         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11429         * modules/vasnprintf-posix (Dependencies): Likewise.
11430         * modules/wcrtomb (Dependencies): Likewise.
11431         * modules/wcsnrtombs (Dependencies): Likewise.
11432         * modules/wcsrtombs (Dependencies): Likewise.
11433
11434 2011-02-12  Bruno Haible  <bruno@clisp.org>
11435
11436         setlocale: Workaround native Windows bug.
11437         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11438         succeeds but sets LC_CTYPE to "C", report a failure.
11439         * tests/test-setlocale2.sh: New file.
11440         * tests/test-setlocale2.c: New file.
11441         * modules/setlocale-tests (Files): Add the new files.
11442         (Makefile.am): Enable test-setlocale2.sh test.
11443         * doc/posix-functions/setlocale.texi: Mention workaround.
11444
11445 2011-02-11  Bruno Haible  <bruno@clisp.org>
11446
11447         Tests for module 'setlocale'.
11448         * modules/setlocale-tests: New file.
11449         * tests/test-setlocale1.sh: New file.
11450         * tests/test-setlocale1.c: New file.
11451
11452         New module 'setlocale'.
11453         * lib/locale.in.h (setlocale): New declaration.
11454         * lib/setlocale.c: New file, based on
11455         gettext/gettext-runtime/intl/setlocale.c.
11456         * m4/setlocale.m4: New file.
11457         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11458         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11459         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11460         REPLACE_SETLOCALE.
11461         * modules/setlocale: New file.
11462         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11463         * doc/posix-functions/setlocale.texi: Mention the new module.
11464
11465 2011-02-11  Bruno Haible  <bruno@clisp.org>
11466
11467         Prepare for locale dependent tests on mingw.
11468         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11469         because it has the wrong locale encoding.
11470         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11471         French_France.1252 instead of "fr".
11472         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11473         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11474         because it has the wrong locale encoding.
11475         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11476         native Windows, try Turkish_Turkey.65001.
11477         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11478         Chinese_China.54936.
11479
11480         Prepare for locale dependent tests on mingw.
11481         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11482         differently.
11483         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11484         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11485         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11486         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11487
11488 2011-02-11  Eric Blake  <eblake@redhat.com>
11489
11490         strptime: avoid compiler warnings
11491         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11492         compiler warnings about dead code.
11493         Reported by Daniel P. Berrange.
11494
11495 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11496
11497         doc: update users.txt
11498         * users.txt: Add rcs.
11499
11500 2011-02-10  John W. Eaton  <jwe@gnu.org>
11501
11502         doc: update users.txt
11503         * users.txt: Add octave.
11504
11505 2011-02-10  Jim Meyering  <meyering@redhat.com>
11506
11507         doc: update users.txt
11508         * users.txt: Add iwhd.
11509
11510 2011-02-09  Bruno Haible  <bruno@clisp.org>
11511
11512         gnulib-tool: Make copyright notice adjustment more robust.
11513         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11514         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11515         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11516         License".
11517         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11518
11519 2011-02-06  Bruno Haible  <bruno@clisp.org>
11520
11521         New module 'towctrans'.
11522         * modules/towctrans: New file.
11523         * lib/wctype.in.h (towctrans): New declaration.
11524         * lib/towctrans.c: New file.
11525         * lib/towctrans-impl.h: New file.
11526         * m4/towctrans.m4: New file.
11527         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11528         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11529         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11530         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11531         * doc/posix-functions/towctrans.texi: Mention the new module.
11532
11533 2011-02-06  Bruno Haible  <bruno@clisp.org>
11534
11535         New module 'wctrans'.
11536         * modules/wctrans: New file.
11537         * lib/wctype.in.h (wctrans): New declaration.
11538         * lib/wctrans.c: New file.
11539         * lib/wctrans-impl.h: New file.
11540         * m4/wctrans.m4: New file.
11541         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11542         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11543         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11544         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11545         * doc/posix-functions/wctrans.texi: Mention the new module.
11546
11547 2011-02-06  Bruno Haible  <bruno@clisp.org>
11548
11549         New module 'iswctype'.
11550         * modules/iswctype: New file.
11551         * lib/wctype.in.h (iswctype): New declaration.
11552         * lib/iswctype.c: New file.
11553         * lib/iswctype-impl.h: New file.
11554         * m4/iswctype.m4: New file.
11555         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11556         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11557         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11558         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11559         * doc/posix-functions/iswctype.texi: Mention the new module and the
11560         HP-UX 11.00 problem.
11561
11562 2011-02-06  Bruno Haible  <bruno@clisp.org>
11563
11564         New module 'wctype'.
11565         * modules/wctype: Change to represent the wctype() substitute.
11566         * lib/wctype.in.h (wctype): New declaration.
11567         * lib/wctype.c: New file.
11568         * lib/wctype-impl.h: New file.
11569         * m4/wctype.m4: New file.
11570         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11571         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11572         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11573         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11574         * doc/posix-functions/wctype.texi: Mention the new module and the
11575         HP-UX 11.00 problem.
11576
11577 2011-02-06  Bruno Haible  <bruno@clisp.org>
11578
11579         wctype-h: Ensure wctype_t and wctrans_t are defined.
11580         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11581         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11582         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11583         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11584         HAVE_WCTRANS_T.
11585         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11586
11587 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11588
11589         flock: fix license typo
11590
11591         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11592         omitted.
11593
11594 2011-02-08  Bruno Haible  <bruno@clisp.org>
11595
11596         Split large sed scripts, for HP-UX sed.
11597         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11598         to avoid HP-UX limit of 99 commands, in the near future.
11599         * modules/stdlib (Makefile.am): Likewise.
11600         * modules/unistd (Makefile.am): Likewise.
11601         * modules/wchar (Makefile.am): Likewise.
11602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11603         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11604         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11605
11606 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11607             Bruno Haible  <bruno@clisp.org>
11608
11609         stdlib: improve random_r modularization
11610         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11611         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11612         you also need the random_r module to get this material right.
11613         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11614         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11615         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11616
11617 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11618
11619         stdlib: don't depend on stdint
11620         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11621         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11622         be independent of whether stdint.h is needed.
11623         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11624         here, instead of ...
11625         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11626         struct random_data should be using the random_r module, not just
11627         the stdlib module (which wouldn't make sense: what package needs
11628         just struct random_data without also needing random_r?).
11629         * modules/stdlib (Depends-on): Remove stdint.
11630
11631         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11632         See the thread rooted at
11633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11634         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11635         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11636         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11637         __VMS)); previously it was always included (via fcntl--.h).
11638         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11639         hand; this is good enough for load averages.  Also, do not use
11640         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11641         flags directly if available and don't bother otherwise.  (Packages
11642         that need the extra reliability should use the modules that define
11643         these flags on older platforms that lack them.)
11644         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11645         fcntl-safer.
11646
11647 2011-02-08  Jim Meyering  <meyering@redhat.com>
11648
11649         di-set.h, ino-map.h: add multiple-inclusion guard
11650         Technically, the guard is required only for ino-map.h, due to its
11651         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11652         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11653         * lib/ino-map.h: Likewise.
11654
11655 2011-02-06  Bruno Haible  <bruno@clisp.org>
11656
11657         iswblank: Ensure declaration on glibc systems.
11658         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11659         * modules/iswblank (Dependencies): Add 'extensions'.
11660         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11661
11662 2011-02-06  Bruno Haible  <bruno@clisp.org>
11663
11664         New module 'iswblank'.
11665         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11666         * modules/iswblank: New file.
11667         * modules/wctype-h (Files): Remove lib/iswblank.c.
11668         (Makefile.am): Substitute GNULIB_ISWBLANK.
11669         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11670         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11671         (gl_WCTYPE_H_DEFAULTS): New macro.
11672         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11673         * modules/iswblank-tests: New file.
11674         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11675         * tests/test-wctype-h.c (main): Remove iswblank tests.
11676         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11677         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11678         of 'wctype-h'.
11679         * NEWS: Mention the change.
11680         * modules/mbchar (Depends-on): Add iswblank.
11681
11682 2011-02-08  Bruno Haible  <bruno@clisp.org>
11683
11684         di-set tests: Refactor.
11685         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11686         unnecessary includes.
11687         (ASSERT): Remove macro.
11688         (main): Make C90 compliant by avoiding variable declaration after
11689         statement.
11690         * modules/di-set-tests (Files): Add tests/macros.h.
11691
11692 2011-02-08  Bruno Haible  <bruno@clisp.org>
11693
11694         ino-map tests: Refactor.
11695         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11696         unnecessary includes.
11697         (ASSERT): Remove macro.
11698         (main): Make C90 compliant by avoiding variable declaration after
11699         statement.
11700         * modules/ino-map-tests (Files): Add tests/macros.h.
11701
11702 2011-02-08  Jim Meyering  <meyering@redhat.com>
11703
11704         di-set: add "const" to a cast
11705         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11706         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11707
11708 2011-02-06  Bruno Haible  <bruno@clisp.org>
11709
11710         Rename module 'wctype' to 'wctype-h'.
11711         * modules/wctype-h: Renamed from modules/wctype.
11712         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11713         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11714         (Files, Depends-on, Makefile.am): Update.
11715         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11716         (Files, Makefile.am): Update.
11717         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11718         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11719         * doc/posix-headers/wctype.texi: Update.
11720         * doc/posix-functions/iswalnum.texi: Update.
11721         * doc/posix-functions/iswalpha.texi: Update.
11722         * doc/posix-functions/iswblank.texi: Update.
11723         * doc/posix-functions/iswcntrl.texi: Update.
11724         * doc/posix-functions/iswdigit.texi: Update.
11725         * doc/posix-functions/iswgraph.texi: Update.
11726         * doc/posix-functions/iswlower.texi: Update.
11727         * doc/posix-functions/iswprint.texi: Update.
11728         * doc/posix-functions/iswpunct.texi: Update.
11729         * doc/posix-functions/iswspace.texi: Update.
11730         * doc/posix-functions/iswupper.texi: Update.
11731         * doc/posix-functions/iswxdigit.texi: Update.
11732         * doc/posix-functions/towlower.texi: Update.
11733         * doc/posix-functions/towupper.texi: Update.
11734         * NEWS: Mention the change.
11735         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11736         * modules/mbchar (Dependencies): Likewise.
11737         * modules/mbswidth (Dependencies): Likewise.
11738         * modules/quotearg (Dependencies): Likewise.
11739         * modules/regex (Dependencies): Likewise.
11740         * modules/wcscasecmp (Dependencies): Likewise.
11741         * modules/wcsncasecmp (Dependencies): Likewise.
11742         * modules/wcwidth (Dependencies): Likewise.
11743
11744 2011-02-06  Bruno Haible  <bruno@clisp.org>
11745
11746         New module 'wcswidth'.
11747         * modules/wcswidth: New file.
11748         * lib/wchar.in.h (wcswidth): New declaration.
11749         * lib/wcswidth.c: New file.
11750         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11751         * m4/wcswidth.m4: New file.
11752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11754         REPLACE_WCSWIDTH.
11755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11756         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11757         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11758         * doc/posix-functions/wcswidth.texi: Mention the new module.
11759
11760 2011-02-06  Bruno Haible  <bruno@clisp.org>
11761
11762         New module 'wcstok'.
11763         * modules/wcstok: New file.
11764         * lib/wchar.in.h (wcstok): New declaration.
11765         * lib/wcstok.c: New file.
11766         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11767         * m4/wcstok.m4: New file.
11768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11771         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11772         * doc/posix-functions/wcstok.texi: Mention the new module.
11773
11774 2011-02-06  Bruno Haible  <bruno@clisp.org>
11775
11776         New module 'wcsstr'.
11777         * modules/wcsstr: New file.
11778         * lib/wchar.in.h (wcsstr): New declaration.
11779         * lib/wcsstr.c: New file.
11780         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11781         * m4/wcsstr.m4: New file.
11782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11785         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11786         * doc/posix-functions/wcsstr.texi: Mention the new module.
11787
11788 2011-02-06  Bruno Haible  <bruno@clisp.org>
11789
11790         New module 'wcspbrk'.
11791         * modules/wcspbrk: New file.
11792         * lib/wchar.in.h (wcspbrk): New declaration.
11793         * lib/wcspbrk.c: New file.
11794         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11795         * m4/wcspbrk.m4: New file.
11796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11799         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11800         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11801
11802 2011-02-06  Bruno Haible  <bruno@clisp.org>
11803
11804         New module 'wcsspn'.
11805         * modules/wcsspn: New file.
11806         * lib/wchar.in.h (wcsspn): New declaration.
11807         * lib/wcsspn.c: New file.
11808         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11809         * m4/wcsspn.m4: New file.
11810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11813         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11814         * doc/posix-functions/wcsspn.texi: Mention the new module.
11815
11816 2011-02-06  Bruno Haible  <bruno@clisp.org>
11817
11818         New module 'wcscspn'.
11819         * modules/wcscspn: New file.
11820         * lib/wchar.in.h (wcscspn): New declaration.
11821         * lib/wcscspn.c: New file.
11822         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11823         * m4/wcscspn.m4: New file.
11824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11827         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11828         * doc/posix-functions/wcscspn.texi: Mention the new module.
11829
11830 2011-02-06  Bruno Haible  <bruno@clisp.org>
11831
11832         New module 'wcsrchr'.
11833         * modules/wcsrchr: New file.
11834         * lib/wchar.in.h (wcsrchr): New declaration.
11835         * lib/wcsrchr.c: New file.
11836         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11837         * m4/wcsrchr.m4: New file.
11838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11841         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11842         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11843
11844 2011-02-06  Bruno Haible  <bruno@clisp.org>
11845
11846         New module 'wcschr'.
11847         * modules/wcschr: New file.
11848         * lib/wchar.in.h (wcschr): New declaration.
11849         * lib/wcschr.c: New file.
11850         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11851         * m4/wcschr.m4: New file.
11852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11855         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11856         * doc/posix-functions/wcschr.texi: Mention the new module.
11857
11858 2011-02-06  Bruno Haible  <bruno@clisp.org>
11859
11860         New module 'wcsdup'.
11861         * modules/wcsdup: New file.
11862         * lib/wchar.in.h (wcsdup): New declaration.
11863         * lib/wcsdup.c: New file.
11864         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11865         * m4/wcsdup.m4: New file.
11866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11869         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11870         * doc/posix-functions/wcsdup.texi: Mention the new module.
11871
11872 2011-02-06  Bruno Haible  <bruno@clisp.org>
11873
11874         New module 'wcsxfrm'.
11875         * modules/wcsxfrm: New file.
11876         * lib/wchar.in.h (wcsxfrm): New declaration.
11877         * lib/wcsxfrm.c: New file.
11878         * lib/wcsxfrm-impl.h: New file.
11879         * m4/wcsxfrm.m4: New file.
11880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11883         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11884         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11885
11886 2011-02-06  Bruno Haible  <bruno@clisp.org>
11887
11888         New module 'wcscoll'.
11889         * modules/wcscoll: New file.
11890         * lib/wchar.in.h (wcscoll): New declaration.
11891         * lib/wcscoll.c: New file.
11892         * lib/wcscoll-impl.h: New file.
11893         * m4/wcscoll.m4: New file.
11894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11897         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11898         * doc/posix-functions/wcscoll.texi: Mention the new module.
11899
11900 2011-02-06  Bruno Haible  <bruno@clisp.org>
11901
11902         New module 'wcsncasecmp'.
11903         * modules/wcsncasecmp: New file.
11904         * lib/wchar.in.h (wcsncasecmp): New declaration.
11905         * lib/wcsncasecmp.c: New file.
11906         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11907         * m4/wcsncasecmp.m4: New file.
11908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11910         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11911         HAVE_WCSNCASECMP.
11912         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11913         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11914
11915 2011-02-06  Bruno Haible  <bruno@clisp.org>
11916
11917         New module 'wcscasecmp'.
11918         * modules/wcscasecmp: New file.
11919         * lib/wchar.in.h (wcscasecmp): New declaration.
11920         * lib/wcscasecmp.c: New file.
11921         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11922         * m4/wcscasecmp.m4: New file.
11923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11926         HAVE_WCSCASECMP.
11927         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11928         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11929
11930 2011-02-05  Bruno Haible  <bruno@clisp.org>
11931
11932         New module 'wcsncmp'.
11933         * modules/wcsncmp: New file.
11934         * lib/wchar.in.h (wcsncmp): New declaration.
11935         * lib/wcsncmp.c: New file.
11936         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11937         * m4/wcsncmp.m4: New file.
11938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11940         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11941         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11942         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11943
11944 2011-02-05  Bruno Haible  <bruno@clisp.org>
11945
11946         New module 'wcscmp'.
11947         * modules/wcscmp: New file.
11948         * lib/wchar.in.h (wcscmp): New declaration.
11949         * lib/wcscmp.c: New file.
11950         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11951         * m4/wcscmp.m4: New file.
11952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11955         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11956         * doc/posix-functions/wcscmp.texi: Mention the new module.
11957
11958 2011-02-05  Bruno Haible  <bruno@clisp.org>
11959
11960         New module 'wcsncat'.
11961         * modules/wcsncat: New file.
11962         * lib/wchar.in.h (wcsncat): New declaration.
11963         * lib/wcsncat.c: New file.
11964         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11965         * m4/wcsncat.m4: New file.
11966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11969         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11970         * doc/posix-functions/wcsncat.texi: Mention the new module.
11971
11972 2011-02-05  Bruno Haible  <bruno@clisp.org>
11973
11974         New module 'wcscat'.
11975         * modules/wcscat: New file.
11976         * lib/wchar.in.h (wcscat): New declaration.
11977         * lib/wcscat.c: New file.
11978         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11979         * m4/wcscat.m4: New file.
11980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11983         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11984         * doc/posix-functions/wcscat.texi: Mention the new module.
11985
11986 2011-02-05  Bruno Haible  <bruno@clisp.org>
11987
11988         New module 'wcpncpy'.
11989         * modules/wcpncpy: New file.
11990         * lib/wchar.in.h (wcpncpy): New declaration.
11991         * lib/wcpncpy.c: New file.
11992         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11993         * m4/wcpncpy.m4: New file.
11994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11996         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11997         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11998         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11999
12000 2011-02-05  Bruno Haible  <bruno@clisp.org>
12001
12002         New module 'wcsncpy'.
12003         * modules/wcsncpy: New file.
12004         * lib/wchar.in.h (wcsncpy): New declaration.
12005         * lib/wcsncpy.c: New file.
12006         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12007         * m4/wcsncpy.m4: New file.
12008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12010         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12011         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12012         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12013
12014 2011-02-05  Bruno Haible  <bruno@clisp.org>
12015
12016         New module 'wcpcpy'.
12017         * modules/wcpcpy: New file.
12018         * lib/wchar.in.h (wcpcpy): New declaration.
12019         * lib/wcpcpy.c: New file.
12020         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12021         * m4/wcpcpy.m4: New file.
12022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12024         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12025         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12026         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12027
12028 2011-02-05  Bruno Haible  <bruno@clisp.org>
12029
12030         New module 'wcscpy'.
12031         * modules/wcscpy: New file.
12032         * lib/wchar.in.h (wcscpy): New declaration.
12033         * lib/wcscpy.c: New file.
12034         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12035         * m4/wcscpy.m4: New file.
12036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12039         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12040         * doc/posix-functions/wcscpy.texi: Mention the new module.
12041
12042 2011-02-05  Bruno Haible  <bruno@clisp.org>
12043
12044         New module 'wcsnlen'.
12045         * modules/wcsnlen: New file.
12046         * lib/wchar.in.h (wcsnlen): New declaration.
12047         * lib/wcsnlen.c: New file.
12048         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12049         * m4/wcsnlen.m4: New file.
12050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12053         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12054         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12055
12056 2011-02-05  Bruno Haible  <bruno@clisp.org>
12057
12058         New module 'wcslen'.
12059         * modules/wcslen: New file.
12060         * lib/wchar.in.h (wcslen): New declaration.
12061         * lib/wcslen.c: New file.
12062         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12063         * m4/wcslen.m4: New file.
12064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12066         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12067         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12068         * doc/posix-functions/wcslen.texi: Mention the new module.
12069
12070 2011-02-05  Bruno Haible  <bruno@clisp.org>
12071
12072         New module 'wmemset'.
12073         * modules/wmemset: New file.
12074         * lib/wchar.in.h (wmemset): New declaration.
12075         * lib/wmemset.c: New file.
12076         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12077         * m4/wmemset.m4: New file.
12078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12080         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12081         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12082         * doc/posix-functions/wmemset.texi: Mention the new module.
12083
12084 2011-02-05  Bruno Haible  <bruno@clisp.org>
12085
12086         New module 'wmemmove'.
12087         * modules/wmemmove: New file.
12088         * lib/wchar.in.h (wmemmove): New declaration.
12089         * lib/wmemmove.c: New file.
12090         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12091         * m4/wmemmove.m4: New file.
12092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12094         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12095         HAVE_WMEMMOVE.
12096         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12097         * doc/posix-functions/wmemmove.texi: Mention the new module.
12098
12099 2011-02-05  Bruno Haible  <bruno@clisp.org>
12100
12101         New module 'wmemcpy'.
12102         * modules/wmemcpy: New file.
12103         * lib/wchar.in.h (wmemcpy): New declaration.
12104         * lib/wmemcpy.c: New file.
12105         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12106         * m4/wmemcpy.m4: New file.
12107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12109         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12110         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12111         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12112
12113 2011-02-05  Bruno Haible  <bruno@clisp.org>
12114
12115         New module 'wmemcmp'.
12116         * modules/wmemcmp: New file.
12117         * lib/wchar.in.h (wmemcmp): New declaration.
12118         * lib/wmemcmp.c: New file.
12119         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12120         * m4/wmemcmp.m4: New file.
12121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12123         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12124         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12125         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12126
12127 2011-02-07  Jim Meyering  <meyering@redhat.com>
12128
12129         di-set, ino-map: new modules, from coreutils
12130         * lib/di-set.c: New file.
12131         * lib/di-set.h: Likewise.
12132         * lib/ino-map.c: Likewise.
12133         * lib/ino-map.h: Likewise.
12134         * modules/di-set: Likewise.
12135         * modules/di-set-tests: Likewise.
12136         * modules/ino-map: Likewise.
12137         * modules/ino-map-tests: Likewise.
12138         * tests/test-di-set.c: Likewise.
12139         * tests/test-ino-map.c: Likewise.
12140
12141 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12142
12143         getloadavg: merge minor changes from Emacs
12144
12145         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12146         (getloadavg): Use memset, not bzero.
12147
12148         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12149         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12150         clash (bug#86).
12151
12152 2010-11-14  Bruno Haible  <bruno@clisp.org>
12153
12154         Allow multiple gnulib generated replacements to coexist.
12155         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12156         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12157         * lib/langinfo.in.h (nl_item): Likewise.
12158         * lib/math.in.h (_NaN, NAN): Likewise.
12159         * lib/netdb.in.h (struct addrinfo): Likewise.
12160         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12161         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12162         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12163         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12164         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12165         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12166         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12167         pthread_mutexattr_init, pthread_mutexattr_settype,
12168         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12169         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12170         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12171         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12172         * lib/sched.in.h (struct sched_param): Likewise.
12173         * lib/se-selinux.in.h (security_class_t, security_context_t,
12174         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12175         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12176         lsetfilecon, fsetfilecon, security_check_context,
12177         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12178         Likewise.
12179         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12180         Likewise.
12181         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12182         _gl_function_taking_int_returning_void_t, union sigval,
12183         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12184         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12185         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12186         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12187         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12188         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12189         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12190         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12191         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12192         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12193         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12194         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12195         socklen_t, rpl_fd_isset): Likewise.
12196         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12197         * lib/sys_time.in.h (struct timeval): Likewise.
12198         * lib/sys_times.in.h (struct tms): Likewise.
12199         * lib/sys_utsname.in.h (struct utsname):
12200         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12201         * lib/unistd.in.h (getpagesize): Likewise.
12202         * lib/wchar.in.h (mbstate_t): Likewise.
12203         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12204         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12205         towlower, towupper): Likewise.
12206         Reported by Sam Steingold <sds@gnu.org>.
12207
12208 2011-02-05  Eric Blake  <eblake@redhat.com>
12209
12210         unsetenv: work around Haiku issues
12211         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12212         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12213
12214 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12215
12216         libposix: avoid calling error() within libposix
12217         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12218         is defined.
12219
12220 2011-02-05  Eric Blake  <eblake@redhat.com>
12221
12222         strerror_r-posix: port to cygwin
12223         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12224         implementation.
12225         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12226         * tests/test-strerror_r.c (main): Fix test.
12227         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12228         issue.
12229
12230 2011-02-05  Bruno Haible  <bruno@clisp.org>
12231
12232         New module 'wmemchr'.
12233         * modules/wmemchr: New file.
12234         * lib/wchar.in.h (wmemchr): New declaration.
12235         * lib/wmemchr.c: New file.
12236         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12237         * m4/wmemchr.m4: New file.
12238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12240         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12241         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12242         * doc/posix-functions/wmemchr.texi: Mention the new module.
12243
12244 2011-02-04  Eric Blake  <eblake@redhat.com>
12245
12246         fdopendir: detect FreeBSD bug
12247         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12248         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12249
12250 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12251
12252         stdbool: do not define HAVE_STDBOOL_H
12253         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12254         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12255         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12256         imported from the latest Autoconf git.  It was motivated by Emacs,
12257         which uses gnulib but does not need HAVE_STDBOOL_H.
12258
12259 2011-02-04  Bruno Haible  <bruno@clisp.org>
12260
12261         wcsnrtombs: Prepare for new module wwcsnrtombs.
12262         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12263         * lib/wcsnrtombs.c: Include it.
12264         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12265
12266         wcsrtombs: Prepare for new module wwcsrtombs.
12267         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12268         * lib/wcsrtombs.c: Include it.
12269         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12270
12271         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12272         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12273         * lib/mbsnrtowcs.c: Include it.
12274         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12275
12276         mbsrtowcs: Prepare for new module mbsrtowwcs.
12277         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12278         * lib/mbsrtowcs.c: Include it.
12279         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12280
12281 2011-02-04  Bruno Haible  <bruno@clisp.org>
12282
12283         vasnprintf: Reduce use of malloc for small format strings.
12284         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12285         (arguments): Add room for the first 7 arguments.
12286         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12287         (char_directives, u8_directives, u16_directives, u32_directives): Add
12288         room for the first 7 directives.
12289         * lib/printf-parse.c: Include <string.h>.
12290         (PRINTF_PARSE): Change memory handling code so that it uses the first
12291         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12292         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12293         Reported by Pádraig Brady <P@draigbrady.com>.
12294
12295 2011-01-31  Eric Blake  <eblake@redhat.com>
12296
12297         dup2: work around Haiku bug
12298         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12299         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12300         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12301         * tests/test-dup2.c (main): Enhance test.
12302
12303 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12304
12305         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12306         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12307         declared by eglibc 2.11.2.
12308         * lib/stdio.in.h: Likewise.
12309
12310 2011-01-31  Eric Blake  <eblake@redhat.com>
12311
12312         ignore-value: add missing test dependency
12313         * tests/test-ignore-value.c: Revert previous change; stdio.h
12314         provides off_t.
12315         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12316
12317 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12318
12319         mktime: clarify long_int width checking
12320         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12321         the top level, to make it clearer that the assumption about
12322         long_int width is being checked.  See
12323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12324
12325 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12326
12327         ignore-value: Fix self-test.
12328         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12329
12330 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12331
12332         TYPE_MAXIMUM: avoid theoretically undefined behavior
12333         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12334         negative number, which the C Standard says has undefined behavior.
12335         In practice this is not a problem, but might as well do it by the book.
12336         Reported by Rich Felker and Eric Blake; see
12337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12338         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12339         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12340         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12341         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12342         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12343         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12344
12345         mktime: #undef mktime before #defining it
12346         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12347
12348         mktime: systematically normalize tm_isdst comparisons
12349         * lib/mktime.c (isdst_differ): New function.
12350         (__mktime_internal): Use it systematically for all isdst comparisons.
12351         This completes the fix for libc BZ #6723, and removes the need for
12352         normalizing tm_isdst.  See
12353         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12354         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12355
12356         mktime: fix some integer overflow issues and sidestep the rest
12357
12358         This was prompted by a bug report by Benjamin Lindner for MinGW
12359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12360         His bug is due to signed integer overflow (0 - INT_MIN), and I
12361         I scanned through mktime.c looking for other integer overflow
12362         problems, fixing all the bugs I found.
12363
12364         Although the C Standard says the resulting code is still not safe
12365         in the presence of integer overflow, in practice it should be good
12366         enough for all real-world two's-complement implementations, except
12367         for debugging environments that deliberately trap on integer
12368         overflow (e.g., gcc -ftrapv).
12369
12370         * lib/mktime.c (WRAPV): New macro.
12371         (SHR): Also check that long_int and time_t shift right in the
12372         usual way, before using the fast-but-unportable method.
12373         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12374         used.  The code already assumed two's complement, so there's
12375         no need to test for alternatives.  All uses removed.
12376         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12377         the C standard.  Problem reported by Rich Felker in
12378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12379         (twos_complement_arithmetic): Also check long_int and time_t.
12380         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12381         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12382         (__mktime_internal): Avoid integer overflow with unary subtraction
12383         in two instances where -1 - X is an adequate replacement for -X,
12384         since the calculations are approximate.
12385
12386 2011-01-29  Eric Blake  <eblake@redhat.com>
12387
12388         mktime: avoid infinite loop
12389         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12390         type; behavior is still undefined but portable to all known targets.
12391         Reported by Rich Felker.
12392
12393 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12394
12395         rename, unlink, same-inode: Relicense.
12396         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12397         * modules/unlink (License): Likewise.
12398         * modules/same-inode (License): Likewise.
12399
12400 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12401
12402         mktime: avoid problems on NetBSD 5 / i386
12403         * lib/mktime.c (long_int): New type.  This works around a problem
12404         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12405         but time_t is 64 bits, and where I expect the existing code is
12406         wrong in some cases.
12407         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12408         (ydhms_diff): Bring back the compile-time check for wide-enough
12409         year and yday.
12410
12411         mktime: fix misspelling in comment
12412         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12413         This merges all recent glibc changes of importance.
12414
12415 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12416
12417         move-if-change: cope with concurrent mv of identical file.
12418         * build-aux/move-if-change (CMPPROG): Accept environment
12419         variable as an override for `cmp'.
12420         (usage): Document CMPPROG.
12421         Adjust comparison to drop stdout.  Cope with failure of mv if
12422         the target file exists and is identical to the source, for
12423         parallel builds.
12424         Report from H.J. Lu against binutils in PR binutils/12283.
12425
12426 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12427
12428         * users.txt: Mention sharutils.
12429
12430 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12431
12432         * users.txt: Mention OATH Toolkit.
12433
12434 2011-01-27  Bruno Haible  <bruno@clisp.org>
12435
12436         Prepare for supporting FreeBSD 10.
12437         * build-aux/config.libpath: Remove handling of freebsd1*.
12438
12439 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12440
12441         Prepare for supporting FreeBSD 10.
12442         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12443         match FreeBSD 10.0.
12444
12445 2011-01-27  Bruno Haible  <bruno@clisp.org>
12446
12447         vma-iter, get-rusage-as: Add OpenBSD support.
12448         * modules/vma-iter (configure.ac): Test for mquery.
12449         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12450         * lib/vma-iter.c: Include <sys/mman.h>.
12451         (vma_iterate): Add an implementation based on mquery().
12452         * lib/resource-ext.h (get_rusage_as): Update comments.
12453         * lib/get-rusage-as.c: Likewise.
12454         * lib/get-rusage-data.c: Likewise.
12455
12456 2011-01-26  Karl Berry  <karl@gnu.org>
12457
12458         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12459         variables to make it easier to override the makeinfo program used.
12460
12461 2011-01-26  Eric Blake  <eblake@redhat.com>
12462
12463         fcntl: work around Haiku F_DUPFD bugs
12464         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12465         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12466         cloexec bit on duplication.
12467         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12468
12469 2011-01-26  Bruno Haible  <bruno@clisp.org>
12470
12471         Enable memory leak tests on AIX.
12472         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12473         * tests/test-fprintf-posix3.c (main): Likewise.
12474
12475 2011-01-26  Bruno Haible  <bruno@clisp.org>
12476
12477         Tests for module 'get-rusage-data'.
12478         * modules/get-rusage-data-tests: New file.
12479         * tests/test-get-rusage-data.c: New file.
12480
12481         New module 'get-rusage-data'.
12482         * lib/resource-ext.h (get_rusage_data): New declaration.
12483         * lib/get-rusage-data.c: New file.
12484         * modules/get-rusage-data: New file.
12485
12486 2011-01-25  Bruno Haible  <bruno@clisp.org>
12487
12488         get-rusage-as: Allow for easier testing.
12489         * lib/resource-ext.h (get_rusage_as): Add comment.
12490         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12491         (main): New function for interactive testing.
12492
12493 2011-01-25  Bruno Haible  <bruno@clisp.org>
12494
12495         vma-iter: Treat Haiku like BeOS.
12496         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12497         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12498
12499 2011-01-25  Eric Blake  <eblake@redhat.com>
12500
12501         c-stack: fix regression on cygwin when libsigsegv is present
12502         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12503
12504 2011-01-24  Bruno Haible  <bruno@clisp.org>
12505
12506         vma-iter: Avoid empty intervals.
12507         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12508         on an empty interval.
12509
12510 2011-01-24  Jim Meyering  <meyering@redhat.com>
12511
12512         u64: remove unnecessary #include
12513         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12514
12515 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12516
12517         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12518         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12519
12520 2011-01-23  Bruno Haible  <bruno@clisp.org>
12521
12522         New module 'vma-iter'.
12523         * lib/vma-iter.h: New file.
12524         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12525         * modules/vma-iter: New file.
12526         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12527         for get_rusage_as_via_iterator.
12528         (vma_iterate_callback): New function.
12529         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12530         * modules/get-rusage-as (Depends-on): Add vma-iter.
12531
12532 2011-01-23  Bruno Haible  <bruno@clisp.org>
12533
12534         uninorm: Tweak includes.
12535         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12536         Reported by Jim Meyering.
12537
12538 2011-01-23  Bruno Haible  <bruno@clisp.org>
12539
12540         get-rusage-as: Improve on NetBSD.
12541         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12542         /proc, like on FreeBSD.
12543
12544 2011-01-23  Jim Meyering  <meyering@redhat.com>
12545
12546         xreadlink.h: remove unnecessary #include
12547         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12548
12549         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12550         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12551
12552 2011-01-23  Bruno Haible  <bruno@clisp.org>
12553
12554         get-rusage-as: Fix bug.
12555         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12556         original limit when aborting the first loop.
12557
12558 2011-01-23  Bruno Haible  <bruno@clisp.org>
12559
12560         wctype: Ensure valid C syntax.
12561         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12562         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12563
12564 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12565
12566         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12567         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12568         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12569         as they are needed only for configure's test case.
12570         This removes two unnecessary symbols from config.h.
12571
12572         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12573         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12575         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12576         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12577         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12578         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12579         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12580         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12581         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12582         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12583         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12584         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12585         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12586         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12587         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12588         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12589         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12590
12591 2011-01-21  Eric Blake  <eblake@redhat.com>
12592
12593         maintainer-makefile: work with older git for submodule check
12594         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12595         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12596         Reported by Matthias Bolte.
12597
12598         bootstrap: minor portability fixes
12599         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12600         (usage): Omit leading capital and trailing . on help phrases, per
12601         GNU Coding Standards.
12602         (check_versions, top level): Prefix messages with script name.
12603
12604 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12605
12606         bootstrap: support --no-git option
12607         * build-aux/bootstrap: Add --no-git option, to be used when
12608         --gnulib-srcdir points to the exact desired checkout.
12609
12610 2011-01-21  Eric Blake  <eblake@redhat.com>
12611
12612         strerror_r-posix: work with glibc 2.13
12613         * lib/strerror_r.c (strerror_r): Fix return type.
12614
12615 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12616             Bruno Haible  <bruno@clisp.org>
12617
12618         uN_strstr: New unit tests.
12619         * modules/unistr/u8-strstr-tests: New file.
12620         * modules/unistr/u16-strstr-tests: New file.
12621         * modules/unistr/u32-strstr-tests: New file.
12622         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12623         * tests/unistr/test-u8-strstr.c: New file.
12624         * tests/unistr/test-u16-strstr.c: New file.
12625         * tests/unistr/test-u32-strstr.c: New file.
12626
12627 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12628             Bruno Haible  <bruno@clisp.org>
12629
12630         Make uN_strstr functions O(n) worst-case.
12631         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12632         16-bit and 32-bit unit cases, use the unibyte algorithm from
12633         lib/mbsstr.c.
12634         * lib/unistr/u8-strstr.c: Include <string.h>.
12635         (UNIT_IS_UINT8_T): New macro.
12636         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12637         (U_STRLEN, U_STRNLEN): New macros.
12638         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12639         (U_STRLEN, U_STRNLEN): New macros.
12640         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12641         (configure.ac): Update required libunistring version.
12642         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12643         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12644         malloca.
12645         (configure.ac): Update required libunistring version.
12646         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12647         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12648         malloca.
12649         (configure.ac): Update required libunistring version.
12650
12651 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12652             Bruno Haible  <bruno@clisp.org>
12653
12654         Prepare for faster uN_strstr functions.
12655         * lib/str-kmp.h: Support definable UNITs.
12656         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12657         needle_len argument.
12658         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12659         * lib/mbscasestr.c (mbscasestr): Likewise.
12660
12661 2011-01-21  Pádraig Brady <P@draigBrady.com>
12662
12663         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12664         * tests/test-malloca.c (main): Unset the environment variable
12665         to greatly speed up the test.
12666         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12667         * modules/malloca-tests: Depend on unsetenv.
12668
12669 2011-01-21  Pádraig Brady <P@draigBrady.com>
12670
12671         ignore-value: remove stdint dependency
12672         * lib/ignore-value.h: Remove <stdint.h>
12673         * modules/ignore-value: Remove stdint dependency.
12674
12675 2011-01-21  Jim Meyering  <meyering@redhat.com>
12676
12677         maint.mk: adjust variable name to be consistent with other gl_ vars
12678         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12679         to be lower case.
12680
12681 2011-01-20  Jim Meyering  <meyering@redhat.com>
12682
12683         maint.mk: make "check" depend on public-submodule-commit by default
12684         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12685
12686 2011-01-20  Bruno Haible  <bruno@clisp.org>
12687
12688         mbfile, mbiter: Complete change from 2008-12-21.
12689         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12690         * m4/mbiter.m4 (gl_MBITER): Likewise.
12691
12692 2011-01-20  Jim Meyering  <meyering@redhat.com>
12693
12694         init.sh: insert space between each function name and "()"
12695         * tests/init.sh: Make it a little easier to see that a function's
12696         name is "warn_", and not "warn" when looking at the first part of
12697         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12698
12699 2011-01-20  Jim Meyering  <meyering@redhat.com>
12700
12701         mountlist: clean up code formatting
12702         * lib/mountlist.c (read_file_system_list): Split a long line,
12703         correct bracing style, use NULL in place of "(struct statfs *)0",
12704         don't parenthesize return value, add spaces around "=" and after
12705         ";-in-for-stmt".
12706
12707 2011-01-14  Markus Duft <mduft@gentoo.org>
12708
12709         mountlist: add support for Interix
12710         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12711         Apply statvfs to all entries of /dev/fs.
12712         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12713         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12714
12715 2011-01-20  Jim Meyering  <meyering@redhat.com>
12716
12717         maint.mk: improve the public-submodule-commit rule
12718         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12719         to suppress printing of its commands... unless V=1.
12720         Add git submodule's --quiet option to suppress printing of e.g.,
12721         "Entering gnulib" output.
12722         "cd" into $(srcdir) before running git submodule.
12723
12724 2011-01-20  Bruno Haible  <bruno@clisp.org>
12725
12726         include_next: Fix bug introduced on 2011-01-18.
12727         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12728         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12729         ac_cv_header_... variable if the second argument is not 'check'.
12730         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12731         gl_NEXT_HEADERS_INTERNAL.
12732
12733 2011-01-20  Bruno Haible  <bruno@clisp.org>
12734
12735         Allow the user to avoid the GNULIB_TEST_* macros.
12736         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12737         Suggested by Paul Eggert.
12738
12739 2011-01-14  Jim Meyering  <meyering@redhat.com>
12740
12741         bootstrap: avoid failure when there is no .gitmodules file
12742         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12743         has been assigned to, even when its value is the empty string.
12744         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12745         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12746         Reported by John W. Eaton <jwe@gnu.org>.
12747
12748 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12749
12750         assume <ctype.h>, ..., <time.h> exist
12751         For years gnulib has been assuming the existence of the headers
12752         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12753         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12754         them, since they don't appear to be needed.
12755         * README (Portability guidelines): Document this.
12756         * lib/flock.c: Assume <fcntl.h> exists.
12757         * lib/regex_internal.h: Assume <locale.h> exists.
12758         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12759         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12760         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12761         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12762         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12763         * m4/regex.m4 (gl_REGEX): Likewise.
12764         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12765         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12766         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12767         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12768         * tests/test-argp.c: Likewise.
12769         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12770
12771         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12772         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12773         AA_APPLE_UNIVERSAL_BUILD.  See
12774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12775         * NEWS: Document this.
12776
12777 2011-01-19  Eric Blake  <eblake@redhat.com>
12778
12779         c-stack: assume stack overflow if SA_SIGINFO unsupported
12780         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12781         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12782         sigaction will work.
12783         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12784         behavior match Linux.
12785         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12786
12787         stdbool-tests: accomodate Haiku
12788         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12789
12790         binary-io: fix O_TEXT on Haiku
12791         * modules/binary-io (Depends-on): Add fcntl-h.
12792         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12793         than blindly undefining O_TEXT.
12794         Reported by Scott McCreary.
12795
12796 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12797
12798         include_next: do not check for standard headers like stddef.h
12799
12800         I found this problem when modifying Emacs to use gnulib.
12801         I noticed that it added HAVE_STDDEF_H to config.h, even though
12802         gnulib always assumes <stddef.h> exists as per README and this
12803         symbol is unnecessary.
12804         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12805         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12806         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12807         faster for headers like stddef.h that are known to exist.
12808         (gl_CHECK_NEXT_HEADERS): Use it.
12809         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12810         rather than gl_CHECK_NEXT_HEADERS.
12811         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12812         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12813
12814 2011-01-18  Eric Blake  <eblake@redhat.com>
12815
12816         ansi-c++-opt: skip C++ dependency style if C++ is unused
12817         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12818         tests when we know C++ compilation is not desired.
12819         Reported by Scott McCreary.
12820
12821 2011-01-18  Bruno Haible  <bruno@clisp.org>
12822
12823         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12824         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12825         (main): Perform test also when getrlimit and setrlimit don't exist or
12826         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12827         limiting the address space size using setrlimit, compare the address
12828         space size before and after the the test.
12829         * tests/test-dprintf-posix2.c: Likewise.
12830         * tests/test-fprintf-posix3.sh: Update skip messages.
12831         * tests/test-dprintf-posix2.sh: Likewise.
12832         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12833         * modules/dprintf-posix-tests (Depends-on): Likewise.
12834         Reported by Bruce Korb <bkorb@gnu.org> and
12835         Gary V. Vaughan <gary@gnu.org>.
12836
12837 2011-01-18  Bruno Haible  <bruno@clisp.org>
12838
12839         get-rusage-as: Improvement for Cygwin.
12840         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12841         areas that are merely reserved.
12842
12843 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12844
12845         strftime: remove dependencies on multibyte modules
12846
12847         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12848         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12849         only if __osf__ is defined, and I suspect OSF doesn't need these
12850         other modules.  If my guess is wrong, we'll need to come up with a
12851         variant of strftime that doesn't need the multibyte modules.
12852
12853         I discovered this problem when attempting modify Emacs to use the
12854         strftime module.  With the previous gnulib, this caused Emacs to
12855         need 31 new files, ranging from lib/config.charset to
12856         m4/wint_t.m4.  This was overkill and I expect would be offputting
12857         to the Emacs maintainers.  After this change, only 6 new files are
12858         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12859         stdbool.m4, and tm_gmtoff.m4.
12860
12861         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12862         Suggested by Bruno Haible in
12863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12864         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12865         and do not check for wchar.h.
12866         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12867         (Depends-on): Remove mbrlen, mbsinit, wchar.
12868
12869 2011-01-18  Bruno Haible  <bruno@clisp.org>
12870
12871         Tests for module 'get-rusage-as'.
12872         * modules/get-rusage-as-tests: New file.
12873         * tests/test-get-rusage-as.c: New file.
12874
12875         New module 'get-rusage-as'.
12876         * modules/get-rusage-as: New file.
12877         * lib/resource-ext.h: New file.
12878         * lib/get-rusage-as.c: New file.
12879
12880 2011-01-17  Eric Blake  <eblake@redhat.com>
12881
12882         sigaction: relax license from LGPLv3+ to LGPLv2+
12883         * modules/sigaction (License): Relax to LGPLv2+.
12884
12885 2011-01-14  Bruno Haible  <bruno@clisp.org>
12886
12887         filemode: Make function declarations usable in C++ mode.
12888         * lib/filemode.h: Enclose function declarations in extern "C" block.
12889         Reported by John W. Eaton <jwe@gnu.org>.
12890
12891 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12892
12893         save-cwd: no longer include "xgetcwd.h"
12894         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12895         This avoids a compilation failure in projects that use save-cwd
12896         without also using the xgetcwd module.
12897
12898 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12899
12900         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12901         This is so that a program like Emacs, which needs only dtoastr,
12902         does not have to bother with distributing and compiling ftoastr
12903         and ldtoastr.
12904         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12905         * modules/dtoastr, modules/ldtoastr: New files.
12906         * modules/ftoastr: Now works just for 'float'.
12907         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12908         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12909         dtoastr.c, ldtoastr.c.
12910
12911 2011-01-11  Jim Meyering  <meyering@redhat.com>
12912
12913         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12914         There is no need to work around the lack of the fchdir function,
12915         since gnulib can now provide a replacement when required.
12916         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12917         * modules/save-cwd (Depends-on): Add fchdir.
12918
12919 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12920
12921         openat, save-cwd: avoid xmalloc
12922
12923         This removes a direct (but undocumented) dependency of openat on
12924         xalloc, along with an indirect dependency via save-cwd.  It also
12925         removes a dependency of save-cwd on xgetcwd, and thereby
12926         indirectly on xalloc.  This change causes the openat substitute
12927         to fall back on save_cwd when memory is tight, and for save_cwd to
12928         fail instead of dying when memory is tight, but that's good enough.
12929         Problem and initial idea for fix reported by Bastien Roucaries in
12930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12931
12932         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12933         xalloc.h (for xmalloc).
12934         (openat_proc_name): Use malloc, not xmalloc.
12935         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12936         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12937
12938         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12939         This avoids heap allocation for file names whose lengths are in
12940         the range 512..1023, with the upper bound increasing to at most
12941         4031 depending on the platform's PATH_MAX.  (We do not want
12942         pathmax.h here as it might supply a non-constant PATH_MAX.)
12943         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12944         Perhaps they should be moved to malloca.h?
12945         (OPENAT_BUFFER_SIZE): Use them.
12946
12947 2011-01-10  Bruno Haible  <bruno@clisp.org>
12948
12949         doc: Update users.txt.
12950         * users.txt: Add recutils.
12951
12952 2011-01-09  Karl Berry  <karl@gnu.org>
12953
12954         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12955
12956         * doc/configmake.texi: New file.
12957         * doc/gnulib.texi: Include it.
12958         * modules/configmake: Move documentation from here.
12959
12960 2011-01-09  Bruno Haible  <bruno@clisp.org>
12961
12962         Update to Unicode 6.0.0.
12963         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12964         (get_lbp): Update for Unicode 6.0.0.
12965         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12966         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12967         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12968         U+11001, U+11038..U+11046. Remove U+06DE.
12969         (uc_width): Fix bounds of planes.
12970         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12971         lib/uniwidth/width.c.
12972         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12973         trailing whitespace removed.
12974         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12975         without comments, but with the original copyright notice.
12976         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12977         * lib/unicase/ignorable.h: Likewise.
12978         * lib/unicase/tocasefold.h: Likewise.
12979         * lib/unicase/tolower.h: Likewise.
12980         * lib/unicase/totitle.h: Likewise.
12981         * lib/unicase/toupper.h: Likewise.
12982         * lib/unictype/bidi_of.h: Likewise.
12983         * lib/unictype/blocks.h: Likewise.
12984         * lib/unictype/categ_C.h: Likewise.
12985         * lib/unictype/categ_Cn.h: Likewise.
12986         * lib/unictype/categ_L.h: Likewise.
12987         * lib/unictype/categ_Ll.h: Likewise.
12988         * lib/unictype/categ_Lm.h: Likewise.
12989         * lib/unictype/categ_Lo.h: Likewise.
12990         * lib/unictype/categ_Lu.h: Likewise.
12991         * lib/unictype/categ_M.h: Likewise.
12992         * lib/unictype/categ_Mc.h: Likewise.
12993         * lib/unictype/categ_Me.h: Likewise.
12994         * lib/unictype/categ_Mn.h: Likewise.
12995         * lib/unictype/categ_N.h: Likewise.
12996         * lib/unictype/categ_Nd.h: Likewise.
12997         * lib/unictype/categ_No.h: Likewise.
12998         * lib/unictype/categ_P.h: Likewise.
12999         * lib/unictype/categ_Po.h: Likewise.
13000         * lib/unictype/categ_S.h: Likewise.
13001         * lib/unictype/categ_Sc.h: Likewise.
13002         * lib/unictype/categ_Sk.h: Likewise.
13003         * lib/unictype/categ_Sm.h: Likewise.
13004         * lib/unictype/categ_So.h: Likewise.
13005         * lib/unictype/categ_of.h: Likewise.
13006         * lib/unictype/combining.h: Likewise.
13007         * lib/unictype/ctype_alnum.h: Likewise.
13008         * lib/unictype/ctype_alpha.h: Likewise.
13009         * lib/unictype/ctype_graph.h: Likewise.
13010         * lib/unictype/ctype_lower.h: Likewise.
13011         * lib/unictype/ctype_print.h: Likewise.
13012         * lib/unictype/ctype_punct.h: Likewise.
13013         * lib/unictype/ctype_upper.h: Likewise.
13014         * lib/unictype/decdigit.h: Likewise.
13015         * lib/unictype/digit.h: Likewise.
13016         * lib/unictype/numeric.h: Likewise.
13017         * lib/unictype/pr_alphabetic.h: Likewise.
13018         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13019         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13020         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13021         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13022         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13023         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13024         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13025         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13026         * lib/unictype/pr_case_ignorable.h: Likewise.
13027         * lib/unictype/pr_cased.h: Likewise.
13028         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13029         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13030         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13031         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13032         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13033         * lib/unictype/pr_combining.h: Likewise.
13034         * lib/unictype/pr_composite.h: Likewise.
13035         * lib/unictype/pr_currency_symbol.h: Likewise.
13036         * lib/unictype/pr_decimal_digit.h: Likewise.
13037         * lib/unictype/pr_deprecated.h: Likewise.
13038         * lib/unictype/pr_format_control.h: Likewise.
13039         * lib/unictype/pr_grapheme_base.h: Likewise.
13040         * lib/unictype/pr_grapheme_extend.h: Likewise.
13041         * lib/unictype/pr_grapheme_link.h: Likewise.
13042         * lib/unictype/pr_id_continue.h: Likewise.
13043         * lib/unictype/pr_id_start.h: Likewise.
13044         * lib/unictype/pr_ideographic.h: Likewise.
13045         * lib/unictype/pr_lowercase.h: Likewise.
13046         * lib/unictype/pr_math.h: Likewise.
13047         * lib/unictype/pr_numeric.h: Likewise.
13048         * lib/unictype/pr_other_alphabetic.h: Likewise.
13049         * lib/unictype/pr_other_id_continue.h: Likewise.
13050         * lib/unictype/pr_other_math.h: Likewise.
13051         * lib/unictype/pr_punctuation.h: Likewise.
13052         * lib/unictype/pr_sentence_terminal.h: Likewise.
13053         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13054         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13055         * lib/unictype/pr_unified_ideograph.h: Likewise.
13056         * lib/unictype/pr_uppercase.h: Likewise.
13057         * lib/unictype/pr_xid_continue.h: Likewise.
13058         * lib/unictype/pr_xid_start.h: Likewise.
13059         * lib/unictype/scripts.h: Likewise.
13060         * lib/unictype/scripts_byname.gperf: Likewise.
13061         * lib/unictype/sy_java_ident.h: Likewise.
13062         * lib/unigbrk/gbrkprop.h: Likewise.
13063         * lib/unilbrk/lbrkprop1.h: Likewise.
13064         * lib/unilbrk/lbrkprop2.h: Likewise.
13065         * lib/uninorm/decomposition-table2.h: Likewise.
13066         * lib/uniwbrk/wbrkprop.h: Likewise.
13067         * tests/unicase/test-cased.c: Likewise.
13068         * tests/unicase/test-ignorable.c: Likewise.
13069         * tests/unicase/test-uc_tolower.c: Likewise.
13070         * tests/unicase/test-uc_totitle.c: Likewise.
13071         * tests/unicase/test-uc_toupper.c: Likewise.
13072         * tests/unictype/test-categ_C.c: Likewise.
13073         * tests/unictype/test-categ_Cn.c: Likewise.
13074         * tests/unictype/test-categ_L.c: Likewise.
13075         * tests/unictype/test-categ_Ll.c: Likewise.
13076         * tests/unictype/test-categ_Lm.c: Likewise.
13077         * tests/unictype/test-categ_Lo.c: Likewise.
13078         * tests/unictype/test-categ_Lu.c: Likewise.
13079         * tests/unictype/test-categ_M.c: Likewise.
13080         * tests/unictype/test-categ_Mc.c: Likewise.
13081         * tests/unictype/test-categ_Me.c: Likewise.
13082         * tests/unictype/test-categ_Mn.c: Likewise.
13083         * tests/unictype/test-categ_N.c: Likewise.
13084         * tests/unictype/test-categ_Nd.c: Likewise.
13085         * tests/unictype/test-categ_No.c: Likewise.
13086         * tests/unictype/test-categ_P.c: Likewise.
13087         * tests/unictype/test-categ_Po.c: Likewise.
13088         * tests/unictype/test-categ_S.c: Likewise.
13089         * tests/unictype/test-categ_Sc.c: Likewise.
13090         * tests/unictype/test-categ_Sk.c: Likewise.
13091         * tests/unictype/test-categ_Sm.c: Likewise.
13092         * tests/unictype/test-categ_So.c: Likewise.
13093         * tests/unictype/test-ctype_alnum.c: Likewise.
13094         * tests/unictype/test-ctype_alpha.c: Likewise.
13095         * tests/unictype/test-ctype_graph.c: Likewise.
13096         * tests/unictype/test-ctype_lower.c: Likewise.
13097         * tests/unictype/test-ctype_print.c: Likewise.
13098         * tests/unictype/test-ctype_punct.c: Likewise.
13099         * tests/unictype/test-ctype_upper.c: Likewise.
13100         * tests/unictype/test-decdigit.h: Likewise.
13101         * tests/unictype/test-digit.h: Likewise.
13102         * tests/unictype/test-numeric.h: Likewise.
13103         * tests/unictype/test-pr_alphabetic.c: Likewise.
13104         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13105         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13106         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13107         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13108         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13109         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13110         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13111         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13112         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13113         * tests/unictype/test-pr_cased.c: Likewise.
13114         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13115         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13116         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13117         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13118         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13119         * tests/unictype/test-pr_combining.c: Likewise.
13120         * tests/unictype/test-pr_composite.c: Likewise.
13121         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13122         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13123         * tests/unictype/test-pr_deprecated.c: Likewise.
13124         * tests/unictype/test-pr_format_control.c: Likewise.
13125         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13126         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13127         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13128         * tests/unictype/test-pr_id_continue.c: Likewise.
13129         * tests/unictype/test-pr_id_start.c: Likewise.
13130         * tests/unictype/test-pr_ideographic.c: Likewise.
13131         * tests/unictype/test-pr_lowercase.c: Likewise.
13132         * tests/unictype/test-pr_math.c: Likewise.
13133         * tests/unictype/test-pr_numeric.c: Likewise.
13134         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13135         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13136         * tests/unictype/test-pr_other_math.c: Likewise.
13137         * tests/unictype/test-pr_punctuation.c: Likewise.
13138         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13139         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13140         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13141         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13142         * tests/unictype/test-pr_uppercase.c: Likewise.
13143         * tests/unictype/test-pr_xid_continue.c: Likewise.
13144         * tests/unictype/test-pr_xid_start.c: Likewise.
13145         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13146         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13147         changes.
13148         * lib/unictype/categ_Cc.h: Likewise.
13149         * lib/unictype/categ_Cf.h: Likewise.
13150         * lib/unictype/categ_Co.h: Likewise.
13151         * lib/unictype/categ_Cs.h: Likewise.
13152         * lib/unictype/categ_Lt.h: Likewise.
13153         * lib/unictype/categ_Nl.h: Likewise.
13154         * lib/unictype/categ_Pc.h: Likewise.
13155         * lib/unictype/categ_Pd.h: Likewise.
13156         * lib/unictype/categ_Pe.h: Likewise.
13157         * lib/unictype/categ_Pf.h: Likewise.
13158         * lib/unictype/categ_Pi.h: Likewise.
13159         * lib/unictype/categ_Ps.h: Likewise.
13160         * lib/unictype/categ_Z.h: Likewise.
13161         * lib/unictype/categ_Zl.h: Likewise.
13162         * lib/unictype/categ_Zp.h: Likewise.
13163         * lib/unictype/categ_Zs.h: Likewise.
13164         * lib/unictype/ctype_blank.h: Likewise.
13165         * lib/unictype/ctype_cntrl.h: Likewise.
13166         * lib/unictype/ctype_digit.h: Likewise.
13167         * lib/unictype/ctype_space.h: Likewise.
13168         * lib/unictype/ctype_xdigit.h: Likewise.
13169         * lib/unictype/mirror.h: Likewise.
13170         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13171         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13172         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13173         * lib/unictype/pr_bidi_control.h: Likewise.
13174         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13175         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13176         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13177         * lib/unictype/pr_bidi_pdf.h: Likewise.
13178         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13179         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13180         * lib/unictype/pr_dash.h: Likewise.
13181         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13182         * lib/unictype/pr_diacritic.h: Likewise.
13183         * lib/unictype/pr_extender.h: Likewise.
13184         * lib/unictype/pr_hex_digit.h: Likewise.
13185         * lib/unictype/pr_hyphen.h: Likewise.
13186         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13187         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13188         * lib/unictype/pr_ignorable_control.h: Likewise.
13189         * lib/unictype/pr_iso_control.h: Likewise.
13190         * lib/unictype/pr_join_control.h: Likewise.
13191         * lib/unictype/pr_left_of_pair.h: Likewise.
13192         * lib/unictype/pr_line_separator.h: Likewise.
13193         * lib/unictype/pr_logical_order_exception.h: Likewise.
13194         * lib/unictype/pr_non_break.h: Likewise.
13195         * lib/unictype/pr_not_a_character.h: Likewise.
13196         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13197         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13198         * lib/unictype/pr_other_id_start.h: Likewise.
13199         * lib/unictype/pr_other_lowercase.h: Likewise.
13200         * lib/unictype/pr_other_uppercase.h: Likewise.
13201         * lib/unictype/pr_paired_punctuation.h: Likewise.
13202         * lib/unictype/pr_paragraph_separator.h: Likewise.
13203         * lib/unictype/pr_pattern_syntax.h: Likewise.
13204         * lib/unictype/pr_pattern_white_space.h: Likewise.
13205         * lib/unictype/pr_private_use.h: Likewise.
13206         * lib/unictype/pr_quotation_mark.h: Likewise.
13207         * lib/unictype/pr_radical.h: Likewise.
13208         * lib/unictype/pr_soft_dotted.h: Likewise.
13209         * lib/unictype/pr_space.h: Likewise.
13210         * lib/unictype/pr_titlecase.h: Likewise.
13211         * lib/unictype/pr_variation_selector.h: Likewise.
13212         * lib/unictype/pr_white_space.h: Likewise.
13213         * lib/unictype/pr_zero_width.h: Likewise.
13214         * lib/unictype/sy_c_ident.h: Likewise.
13215         * lib/unictype/sy_c_whitespace.h: Likewise.
13216         * lib/unictype/sy_java_whitespace.h: Likewise.
13217         * lib/uninorm/composition-table.gperf: Likewise.
13218         * lib/uninorm/decomposition-table1.h: Likewise.
13219         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13220         LB8.
13221         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13222         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13223         * modules/unictype/*: Bump version number of expected libunistring
13224         version.
13225
13226 2011-01-09  Bruno Haible  <bruno@clisp.org>
13227
13228         Update to Unicode 5.2.0.
13229         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13230         trailing whitespace removed.
13231
13232 2011-01-09  Bruno Haible  <bruno@clisp.org>
13233
13234         New Unicode character properties, from Unicode 5.2.0.
13235         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13236         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13237         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13238         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13239         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13240         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13241         uc_is_property_cased, uc_is_property_case_ignorable,
13242         uc_is_property_changes_when_lowercased,
13243         uc_is_property_changes_when_uppercased,
13244         uc_is_property_changes_when_titlecased,
13245         uc_is_property_changes_when_casefolded,
13246         uc_is_property_changes_when_casemapped): New declarations.
13247         * lib/unictype/pr_byname.gperf: Add the new properties.
13248         * modules/unictype/property-byname (Depends-on): Depend on the new
13249         properties modules.
13250         * modules/unictype/property-all (Depends-on): Likewise.
13251         * MODULES.html.sh (Unicode string functions): Add
13252         unictype/property-case-ignorable, unictype/property-cased,
13253         unictype/property-changes-when-casefolded,
13254         unictype/property-changes-when-casemapped,
13255         unictype/property-changes-when-lowercased,
13256         unictype/property-changes-when-titlecased,
13257         unictype/property-changes-when-uppercased.
13258
13259         New module 'unictype/property-changes-when-casemapped'.
13260         * modules/unictype/property-changes-when-casemapped: New file.
13261         * lib/unictype/pr_changes_when_casemapped.c: New file.
13262         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13263         generated by gen-uni-tables.
13264         * modules/unictype/property-changes-when-casemapped-tests: New file.
13265         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13266         automatically generated by gen-uni-tables.
13267
13268         New module 'unictype/property-changes-when-casefolded'.
13269         * modules/unictype/property-changes-when-casefolded: New file.
13270         * lib/unictype/pr_changes_when_casefolded.c: New file.
13271         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13272         generated by gen-uni-tables.
13273         * modules/unictype/property-changes-when-casefolded-tests: New file.
13274         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13275         automatically generated by gen-uni-tables.
13276
13277         New module 'unictype/property-changes-when-titlecased'.
13278         * modules/unictype/property-changes-when-titlecased: New file.
13279         * lib/unictype/pr_changes_when_titlecased.c: New file.
13280         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13281         generated by gen-uni-tables.
13282         * modules/unictype/property-changes-when-titlecased-tests: New file.
13283         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13284         automatically generated by gen-uni-tables.
13285
13286         New module 'unictype/property-changes-when-uppercased'.
13287         * modules/unictype/property-changes-when-uppercased: New file.
13288         * lib/unictype/pr_changes_when_uppercased.c: New file.
13289         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13290         generated by gen-uni-tables.
13291         * modules/unictype/property-changes-when-uppercased-tests: New file.
13292         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13293         automatically generated by gen-uni-tables.
13294
13295         New module 'unictype/property-changes-when-lowercased'.
13296         * modules/unictype/property-changes-when-lowercased: New file.
13297         * lib/unictype/pr_changes_when_lowercased.c: New file.
13298         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13299         generated by gen-uni-tables.
13300         * modules/unictype/property-changes-when-lowercased-tests: New file.
13301         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13302         automatically generated by gen-uni-tables.
13303
13304         New module 'unictype/property-case-ignorable'.
13305         * modules/unictype/property-case-ignorable: New file.
13306         * lib/unictype/pr_case_ignorable.c: New file.
13307         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13308         by gen-uni-tables.
13309         * modules/unictype/property-case-ignorable-tests: New file.
13310         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13311         generated by gen-uni-tables.
13312
13313         New module 'unictype/property-cased'.
13314         * modules/unictype/property-cased: New file.
13315         * lib/unictype/pr_cased.c: New file.
13316         * lib/unictype/pr_cased.h: New file, automatically generated by
13317         gen-uni-tables.
13318         * modules/unictype/property-cased-tests: New file.
13319         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13320         gen-uni-tables.
13321
13322 2011-01-09  Bruno Haible  <bruno@clisp.org>
13323
13324         Update to Unicode 5.2.0.
13325         * lib/gen-uni-tables.c (output_predicate, output_category,
13326         output_combclass, output_bidi_category, output_decimal_digit_test,
13327         output_decimal_digit, output_digit_test, output_digit,
13328         output_numeric_test, output_numeric, output_mirror, output_scripts,
13329         output_scripts_byname, output_blocks, output_ident_category): Fix
13330         comment header.
13331         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13332         get_wbp.
13333         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13334         items.
13335         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13336         Changes_When_Lowercased, Changes_When_Uppercased,
13337         Changes_When_Titlecased, Changes_When_Casefolded,
13338         Changes_When_Casemapped.
13339         (is_property_alphabetic, is_property_default_ignorable_code_point):
13340         Update for Unicode 5.2.0.
13341         (is_property_cased, is_property_case_ignorable,
13342         is_property_changes_when_lowercased,
13343         is_property_changes_when_uppercased,
13344         is_property_changes_when_titlecased,
13345         is_property_changes_when_casefolded,
13346         is_property_changes_when_casemapped): New functions.
13347         (output_properties): Output also the properties cased, case_ignorable,
13348         changes_when_lowercased, changes_when_uppercased,
13349         changes_when_titlecased, changes_when_casefolded,
13350         changes_when_casemapped.
13351         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13352         Unicode TR#11 revision 17 -> 19.
13353         (LBP_CP): New enumeration value.
13354         (LBP_*): Adjust values accordingly.
13355         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13356         TR#14 revision 22 -> 24.
13357         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13358         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13359         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13360         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13361         is_WBP_MIDLETTER.
13362         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13363         the code1 and code2 of each composition rule.
13364         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13365         * lib/unicase/ignorable.h: Likewise.
13366         * lib/unicase/tocasefold.h: Likewise.
13367         * lib/unicase/tolower.h: Likewise.
13368         * lib/unicase/totitle.h: Likewise.
13369         * lib/unicase/toupper.h: Likewise.
13370         * lib/unictype/bidi_of.h: Likewise.
13371         * lib/unictype/blocks.h: Likewise.
13372         * lib/unictype/categ_C.h: Likewise.
13373         * lib/unictype/categ_Cf.h: Likewise.
13374         * lib/unictype/categ_Cn.h: Likewise.
13375         * lib/unictype/categ_L.h: Likewise.
13376         * lib/unictype/categ_Ll.h: Likewise.
13377         * lib/unictype/categ_Lm.h: Likewise.
13378         * lib/unictype/categ_Lo.h: Likewise.
13379         * lib/unictype/categ_Lu.h: Likewise.
13380         * lib/unictype/categ_M.h: Likewise.
13381         * lib/unictype/categ_Mc.h: Likewise.
13382         * lib/unictype/categ_Mn.h: Likewise.
13383         * lib/unictype/categ_N.h: Likewise.
13384         * lib/unictype/categ_Nd.h: Likewise.
13385         * lib/unictype/categ_Nl.h: Likewise.
13386         * lib/unictype/categ_No.h: Likewise.
13387         * lib/unictype/categ_P.h: Likewise.
13388         * lib/unictype/categ_Pd.h: Likewise.
13389         * lib/unictype/categ_Po.h: Likewise.
13390         * lib/unictype/categ_S.h: Likewise.
13391         * lib/unictype/categ_Sc.h: Likewise.
13392         * lib/unictype/categ_So.h: Likewise.
13393         * lib/unictype/categ_of.h: Likewise.
13394         * lib/unictype/combining.h: Likewise.
13395         * lib/unictype/ctype_alnum.h: Likewise.
13396         * lib/unictype/ctype_alpha.h: Likewise.
13397         * lib/unictype/ctype_graph.h: Likewise.
13398         * lib/unictype/ctype_lower.h: Likewise.
13399         * lib/unictype/ctype_print.h: Likewise.
13400         * lib/unictype/ctype_punct.h: Likewise.
13401         * lib/unictype/ctype_upper.h: Likewise.
13402         * lib/unictype/decdigit.h: Likewise.
13403         * lib/unictype/digit.h: Likewise.
13404         * lib/unictype/numeric.h: Likewise.
13405         * lib/unictype/pr_alphabetic.h: Likewise.
13406         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13407         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13408         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13409         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13410         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13411         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13412         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13413         * lib/unictype/pr_combining.h: Likewise.
13414         * lib/unictype/pr_composite.h: Likewise.
13415         * lib/unictype/pr_currency_symbol.h: Likewise.
13416         * lib/unictype/pr_dash.h: Likewise.
13417         * lib/unictype/pr_decimal_digit.h: Likewise.
13418         * lib/unictype/pr_deprecated.h: Likewise.
13419         * lib/unictype/pr_diacritic.h: Likewise.
13420         * lib/unictype/pr_extender.h: Likewise.
13421         * lib/unictype/pr_grapheme_base.h: Likewise.
13422         * lib/unictype/pr_grapheme_extend.h: Likewise.
13423         * lib/unictype/pr_grapheme_link.h: Likewise.
13424         * lib/unictype/pr_id_continue.h: Likewise.
13425         * lib/unictype/pr_id_start.h: Likewise.
13426         * lib/unictype/pr_ideographic.h: Likewise.
13427         * lib/unictype/pr_ignorable_control.h: Likewise.
13428         * lib/unictype/pr_logical_order_exception.h: Likewise.
13429         * lib/unictype/pr_lowercase.h: Likewise.
13430         * lib/unictype/pr_numeric.h: Likewise.
13431         * lib/unictype/pr_other_alphabetic.h: Likewise.
13432         * lib/unictype/pr_punctuation.h: Likewise.
13433         * lib/unictype/pr_sentence_terminal.h: Likewise.
13434         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13435         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13436         * lib/unictype/pr_unified_ideograph.h: Likewise.
13437         * lib/unictype/pr_uppercase.h: Likewise.
13438         * lib/unictype/pr_xid_continue.h: Likewise.
13439         * lib/unictype/pr_xid_start.h: Likewise.
13440         * lib/unictype/pr_zero_width.h: Likewise.
13441         * lib/unictype/scripts.h: Likewise.
13442         * lib/unictype/scripts_byname.gperf: Likewise.
13443         * lib/unictype/sy_java_ident.h: Likewise.
13444         * lib/unigbrk/gbrkprop.h: Likewise.
13445         * lib/unilbrk/lbrkprop1.h: Likewise.
13446         * lib/unilbrk/lbrkprop2.h: Likewise.
13447         * lib/unilbrk/lbrktables.h: Likewise.
13448         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13449         LBP_CP. Implement rule LB30.
13450         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13451         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13452         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13453         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13454         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13455         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13456         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13457         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13458         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13459         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13460         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13461         bits instead of 16 bits in the code1 and code2 of each composition
13462         rule.
13463         (uc_composition): Update for Unicode 5.2.0.
13464         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13465         * lib/uninorm/decomposition-table2.h: Likewise.
13466         * lib/uniwbrk/wbrkprop.h: Likewise.
13467         * tests/unicase/test-cased.c: Likewise.
13468         * tests/unicase/test-ignorable.c: Likewise.
13469         * tests/unicase/test-uc_tolower.c: Likewise.
13470         * tests/unicase/test-uc_totitle.c: Likewise.
13471         * tests/unicase/test-uc_toupper.c: Likewise.
13472         * tests/unictype/test-categ_C.c: Likewise.
13473         * tests/unictype/test-categ_Cf.c: Likewise.
13474         * tests/unictype/test-categ_Cn.c: Likewise.
13475         * tests/unictype/test-categ_L.c: Likewise.
13476         * tests/unictype/test-categ_Ll.c: Likewise.
13477         * tests/unictype/test-categ_Lm.c: Likewise.
13478         * tests/unictype/test-categ_Lo.c: Likewise.
13479         * tests/unictype/test-categ_Lu.c: Likewise.
13480         * tests/unictype/test-categ_M.c: Likewise.
13481         * tests/unictype/test-categ_Mc.c: Likewise.
13482         * tests/unictype/test-categ_Mn.c: Likewise.
13483         * tests/unictype/test-categ_N.c: Likewise.
13484         * tests/unictype/test-categ_Nd.c: Likewise.
13485         * tests/unictype/test-categ_Nl.c: Likewise.
13486         * tests/unictype/test-categ_No.c: Likewise.
13487         * tests/unictype/test-categ_P.c: Likewise.
13488         * tests/unictype/test-categ_Pd.c: Likewise.
13489         * tests/unictype/test-categ_Po.c: Likewise.
13490         * tests/unictype/test-categ_S.c: Likewise.
13491         * tests/unictype/test-categ_Sc.c: Likewise.
13492         * tests/unictype/test-categ_So.c: Likewise.
13493         * tests/unictype/test-ctype_alnum.c: Likewise.
13494         * tests/unictype/test-ctype_alpha.c: Likewise.
13495         * tests/unictype/test-ctype_graph.c: Likewise.
13496         * tests/unictype/test-ctype_lower.c: Likewise.
13497         * tests/unictype/test-ctype_print.c: Likewise.
13498         * tests/unictype/test-ctype_punct.c: Likewise.
13499         * tests/unictype/test-ctype_upper.c: Likewise.
13500         * tests/unictype/test-decdigit.h: Likewise.
13501         * tests/unictype/test-digit.h: Likewise.
13502         * tests/unictype/test-numeric.h: Likewise.
13503         * tests/unictype/test-pr_alphabetic.c: Likewise.
13504         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13505         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13506         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13507         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13508         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13509         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13510         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13511         * tests/unictype/test-pr_combining.c: Likewise.
13512         * tests/unictype/test-pr_composite.c: Likewise.
13513         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13514         * tests/unictype/test-pr_dash.c: Likewise.
13515         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13516         * tests/unictype/test-pr_deprecated.c: Likewise.
13517         * tests/unictype/test-pr_diacritic.c: Likewise.
13518         * tests/unictype/test-pr_extender.c: Likewise.
13519         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13520         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13521         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13522         * tests/unictype/test-pr_id_continue.c: Likewise.
13523         * tests/unictype/test-pr_id_start.c: Likewise.
13524         * tests/unictype/test-pr_ideographic.c: Likewise.
13525         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13526         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13527         * tests/unictype/test-pr_lowercase.c: Likewise.
13528         * tests/unictype/test-pr_numeric.c: Likewise.
13529         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13530         * tests/unictype/test-pr_punctuation.c: Likewise.
13531         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13532         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13533         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13534         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13535         * tests/unictype/test-pr_uppercase.c: Likewise.
13536         * tests/unictype/test-pr_xid_continue.c: Likewise.
13537         * tests/unictype/test-pr_xid_start.c: Likewise.
13538         * tests/unictype/test-pr_zero_width.c: Likewise.
13539         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13540         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13541         changed behaviour: line breaking is now disallowed between a letter
13542         or '=' and '('.
13543         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13544         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13545         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13546         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13547         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13548         lib/uniwidth/width.c.
13549         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13550         without comments, but with the original copyright notice.
13551         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13552         changes.
13553         * lib/unictype/categ_Cc.h: Likewise.
13554         * lib/unictype/categ_Co.h: Likewise.
13555         * lib/unictype/categ_Cs.h: Likewise.
13556         * lib/unictype/categ_Lt.h: Likewise.
13557         * lib/unictype/categ_Me.h: Likewise.
13558         * lib/unictype/categ_Pc.h: Likewise.
13559         * lib/unictype/categ_Pe.h: Likewise.
13560         * lib/unictype/categ_Pf.h: Likewise.
13561         * lib/unictype/categ_Pi.h: Likewise.
13562         * lib/unictype/categ_Ps.h: Likewise.
13563         * lib/unictype/categ_Sk.h: Likewise.
13564         * lib/unictype/categ_Sm.h: Likewise.
13565         * lib/unictype/categ_Z.h: Likewise.
13566         * lib/unictype/categ_Zl.h: Likewise.
13567         * lib/unictype/categ_Zp.h: Likewise.
13568         * lib/unictype/categ_Zs.h: Likewise.
13569         * lib/unictype/ctype_blank.h: Likewise.
13570         * lib/unictype/ctype_cntrl.h: Likewise.
13571         * lib/unictype/ctype_digit.h: Likewise.
13572         * lib/unictype/ctype_space.h: Likewise.
13573         * lib/unictype/ctype_xdigit.h: Likewise.
13574         * lib/unictype/mirror.h: Likewise.
13575         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13576         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13577         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13578         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13579         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13580         * lib/unictype/pr_bidi_control.h: Likewise.
13581         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13582         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13583         * lib/unictype/pr_bidi_pdf.h: Likewise.
13584         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13585         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13586         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13587         * lib/unictype/pr_format_control.h: Likewise.
13588         * lib/unictype/pr_hex_digit.h: Likewise.
13589         * lib/unictype/pr_hyphen.h: Likewise.
13590         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13591         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13592         * lib/unictype/pr_iso_control.h: Likewise.
13593         * lib/unictype/pr_join_control.h: Likewise.
13594         * lib/unictype/pr_left_of_pair.h: Likewise.
13595         * lib/unictype/pr_line_separator.h: Likewise.
13596         * lib/unictype/pr_math.h: Likewise.
13597         * lib/unictype/pr_non_break.h: Likewise.
13598         * lib/unictype/pr_not_a_character.h: Likewise.
13599         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13600         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13601         * lib/unictype/pr_other_id_continue.h: Likewise.
13602         * lib/unictype/pr_other_id_start.h: Likewise.
13603         * lib/unictype/pr_other_lowercase.h: Likewise.
13604         * lib/unictype/pr_other_math.h: Likewise.
13605         * lib/unictype/pr_other_uppercase.h: Likewise.
13606         * lib/unictype/pr_paired_punctuation.h: Likewise.
13607         * lib/unictype/pr_paragraph_separator.h: Likewise.
13608         * lib/unictype/pr_pattern_syntax.h: Likewise.
13609         * lib/unictype/pr_pattern_white_space.h: Likewise.
13610         * lib/unictype/pr_private_use.h: Likewise.
13611         * lib/unictype/pr_quotation_mark.h: Likewise.
13612         * lib/unictype/pr_radical.h: Likewise.
13613         * lib/unictype/pr_soft_dotted.h: Likewise.
13614         * lib/unictype/pr_space.h: Likewise.
13615         * lib/unictype/pr_titlecase.h: Likewise.
13616         * lib/unictype/pr_variation_selector.h: Likewise.
13617         * lib/unictype/pr_white_space.h: Likewise.
13618         * lib/unictype/sy_c_ident.h: Likewise.
13619         * lib/unictype/sy_c_whitespace.h: Likewise.
13620         * lib/unictype/sy_java_whitespace.h: Likewise.
13621         * modules/uni*/*: Bump version number of expected libunistring version.
13622         Reported by Simon Josefsson.
13623
13624 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13625
13626         useless-if-before-free: fix typo in --help and make the internal,
13627         automatic version date update process work once again.
13628         --help output contained a NUL character instead of the
13629         backslash-zero that was intended.  Also, the "must lie within
13630         the first 8 lines" line is on line 9, and hence not getting
13631         automatically updated.
13632         * build-aux/useless-if-before-free: Fix the former by adding a
13633         backslash, and the latter by condensing the three lines of what-it-does
13634         to a single line, leaving one line of slack for the future.
13635
13636 2011-01-09  Bruno Haible  <bruno@clisp.org>
13637
13638         uniwidth/width: Fix width of U+1D173..U+1D17A.
13639         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13640         symbolic_width, output_width_property_test): New functions.
13641         (main): Invoke output_nonspacing_property, output_width_property_test.
13642         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13643         U+1D173..U+1D17A.
13644         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13645         1.
13646         * modules/uniwidth/*: Bump version number of expected libunistring
13647         version.
13648         * modules/unilbrk/*: Likewise.
13649
13650 2011-01-08  Bruno Haible  <bruno@clisp.org>
13651
13652         uninorm tests: Preserve copyright of Unicode data file.
13653         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13654         Mention modifications.
13655
13656 2011-01-08  Bruno Haible  <bruno@clisp.org>
13657
13658         gen-uni-tables: Prepare for Unicode 5.2.0.
13659         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13660         (debug_output_lbp, output_lbp): Update.
13661
13662 2011-01-08  Bruno Haible  <bruno@clisp.org>
13663
13664         unilbrk: Clarify gen-uni-tables.c code.
13665         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13666         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13667         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13668
13669 2011-01-07  Bruno Haible  <bruno@clisp.org>
13670
13671         strtod: Restore errno when successfully parsing Infinity or NaN.
13672         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13673         restore the original errno.
13674
13675 2011-01-07  Bruno Haible  <bruno@clisp.org>
13676
13677         remove test: Avoid failure on HP-UX 11.
13678         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13679
13680 2011-01-07  Bruno Haible  <bruno@clisp.org>
13681
13682         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13683         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13684         error code.
13685
13686 2011-01-07  Pádraig Brady <P@draigBrady.com>
13687
13688         ignore-value: fixup comments, and add Eric Blake
13689         as an author since he rewrote the macros.
13690         * lib/ignore-value.h (ignore_value):  State that
13691         we now support aggregates.  Also specify exactly
13692         when the GCC warn_unused_result feature was added.
13693
13694 2011-01-06  Eric Blake  <eblake@redhat.com>
13695
13696         ignore-value: support aggregate types
13697         * lib/ignore-value.h (ignore_value): Provide separate gcc
13698         definition.
13699         * modules/ignore-value-tests: New test module.
13700         * tests/test-ignore-value.c: New test.
13701
13702         maint.mk: improve sc_prohibit_strcmp regex
13703         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13704         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13705         definition of STRNEQ.
13706
13707         signal: work around Haiku issue with SIGBUS
13708         * lib/siglist.h: Add comment.
13709         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13710         strsignal's favoring of SIGSEGV.
13711         * tests/test-signal.c (main): Avoid test failure.
13712         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13713         Reported by Scott McCreary.
13714
13715         maint.mk: add pre-release check to ensure submodule commits are public
13716         * top/maint.mk (public-submodule-commit): New rule.
13717         (submodule-checks): New variable.
13718         (alpha beta stable): Depend on the variable.
13719
13720 2011-01-05  Pádraig Brady <P@draigBrady.com>
13721         and Jim Meyering  <meyering@redhat.com>
13722
13723         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13724         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13725         (ATTRIBUTE_DEPRECATED): Define.
13726         (_ignore_case): New function.
13727         (ignore_value): New macro, to replace the old function.
13728         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13729         * modules/ignore-value (Depends-on): Add stdint.
13730
13731 2011-01-04  Eric Blake  <eblake@redhat.com>
13732
13733         doc: regenerate INSTALL
13734         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13735         @firstparagraphindent support, now that autoconf dropped it.
13736         (INSTALL_PRELUDE): Reinstate old macro.
13737         * doc/install.texi: Resync from autoconf.
13738         * doc/INSTALL: Reflect recent autoconf update.
13739         * doc/INSTALL.ISO: Likewise.
13740         * doc/INSTALL.UTF-8: Likewise.
13741         Reported by Karl Berry.
13742
13743 2011-01-04  Bruce Korb  <address@hidden>
13744
13745         git-version-gen: avoid a sub-shell
13746         * build-aux/git-version-gen: Redirect stderr in `...` via
13747         "exec 2>...", rather than via an added sub-shell.
13748
13749 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13750
13751         git-version-gen: use (...) rather than sh -c '...'
13752         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13753         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13754
13755 2011-01-03  Jim Meyering  <meyering@redhat.com>
13756
13757         git-version-gen: convert leading TABs to spaces
13758         * build-aux/git-version-gen: Expand leading TABs.
13759
13760         git-version-gen: handle failed "git rev-list"
13761         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13762         from git and proceeding as if it had succeeded but printed no SHA1
13763         checksums, suppress the diagnostic and handle the failure.
13764         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13765
13766         git-version-gen: include command name in one more diagnostic
13767         * build-aux/git-version-gen: When the required .tarball-version file
13768         was missing or unreadable, you might see the diagnostic from "cat",
13769         but no trace of the name of the invoking script.  Now, you still see
13770         the diagnostic from cat, but also get one from "git-version-gen: ".
13771         Inspired by a patch from Bruce Korb.
13772
13773         update-copyright: adjust test to match changed code
13774         * tests/test-update-copyright.sh: Change test's expected output
13775         to match new actual output.
13776
13777 2011-01-02  Bruno Haible  <bruno@clisp.org>
13778
13779         getlogin_r: Avoid test failure on HP-UX 11.
13780         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13781         ERANGE when the second argument is zero.
13782         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13783         portability problem.
13784
13785 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13786
13787         * build-aux/update-copyright: doc Simon's changes
13788
13789 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13790
13791         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13792         environment variable.
13793
13794 2011-01-02  Bruno Haible  <bruno@clisp.org>
13795
13796         unigbrk: Avoid gcc warnings.
13797         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13798         unused variable.
13799         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13800         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13801         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13802         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13803         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13804         Change type of first argument to 'const char *'.
13805         (main): Remove unused variable.
13806         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13807         type of first argument to 'const char *'.
13808         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13809         Likewise.
13810         (main): Change type of variable 's'.
13811         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13812         to 'int'.
13813
13814 2011-01-02  Bruno Haible  <bruno@clisp.org>
13815
13816         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13817         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13818         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13819         bug.
13820         * lib/pwrite.c: Undo 2010-12-31 patch.
13821         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13822
13823 2011-01-02  Bruno Haible  <bruno@clisp.org>
13824
13825         pread: Fix test whether it works.
13826         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13827
13828 2011-01-02  Bruno Haible  <bruno@clisp.org>
13829
13830         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13831         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13832         ends in "6". Don't require a specific month name. Try also the locale
13833         names found on HP-UX 11 and Solaris 7.
13834
13835 2011-01-02  Bruno Haible  <bruno@clisp.org>
13836
13837         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13838         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13839         C linkage.
13840         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13841
13842 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13843
13844         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13845         for consistency, since the "cluster" term is not used elsewhere.
13846         * lib/unigbrk.in.h: Update name.
13847         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13848         * lib/unigbrk/u16-grapheme-next.c: Update name.
13849         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13850         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13851         * lib/unigbrk/u32-grapheme-next.c: Update name.
13852         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13853         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13854         * lib/unigbrk/u8-grapheme-next.c: Update name.
13855         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13856         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13857         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13858         Suggested by Bruno Haible.
13859
13860 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13861
13862         Remove module 'u8-grapheme-len' as too redundant with
13863         'u8-grapheme-next'.
13864         * modules/unigbrk/u8-grapheme-len: Delete file.
13865         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13866         * lib/unigbrk.in.h: Remove prototype for deleted function.
13867         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13868         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13869
13870         Remove module 'u16-grapheme-len' as too redundant with
13871         'u16-grapheme-next'.
13872         * modules/unigbrk/u16-grapheme-len: Delete file.
13873         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13874         * lib/unigbrk.in.h: Remove prototype for deleted function.
13875         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13876         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13877
13878         Remove module 'u32-grapheme-len' as too redundant with
13879         'u32-grapheme-next'.
13880         * modules/unigbrk/u32-grapheme-len: Delete file.
13881         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13882         * lib/unigbrk.in.h: Remove prototype for deleted function.
13883         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13884         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13885
13886         Suggested by Bruno Haible.
13887
13888 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13889
13890         * unigbrk.in.h: Fix typo: "ben" => "been".
13891         Reported by Bruno Haible.
13892
13893 2011-01-01  Jim Meyering  <meyering@redhat.com>
13894
13895         maint: update almost all copyright ranges to include 2011
13896         Run the new "make update-copyright" rule.
13897
13898 2011-01-01  Jim Meyering  <meyering@redhat.com>
13899
13900         maint: update-copyright: exempt doc/INSTALL*
13901         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13902         since they are generated.  Suggested by Bruno Haible.
13903
13904 2011-01-01  Jim Meyering  <meyering@redhat.com>
13905
13906         maint: refine the update-copyright rule
13907         * Makefile (update-copyright): Also exclude any file that includes
13908         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13909         code that merely generates the comment.
13910
13911 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13912
13913         New module 'u8-grapheme-len'.
13914         * modules/unigbrk/u8-grapheme-len: New file.
13915         * modules/unigbrk/u8-grapheme-len-tests: New file.
13916         * lib/unigbrk.in.h: Add prototype for new function.
13917         * lib/unigbrk/u8-grapheme-len.c: New file.
13918         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13919
13920         New module 'u16-grapheme-len'.
13921         * modules/unigbrk/u16-grapheme-len: New file.
13922         * modules/unigbrk/u16-grapheme-len-tests: New file.
13923         * lib/unigbrk.in.h: Add prototype for new function.
13924         * lib/unigbrk/u16-grapheme-len.c: New file.
13925         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13926
13927         New module 'u32-grapheme-len'.
13928         * modules/unigbrk/u32-grapheme-len: New file.
13929         * modules/unigbrk/u32-grapheme-len-tests: New file.
13930         * lib/unigbrk.in.h: Add prototype for new function.
13931         * lib/unigbrk/u32-grapheme-len.c: New file.
13932         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13933
13934         New module 'u8-grapheme-next'.
13935         * modules/unigbrk/u8-grapheme-next: New file.
13936         * modules/unigbrk/u8-grapheme-next-tests: New file.
13937         * lib/unigbrk.in.h: Add prototype for new function.
13938         * lib/unigbrk/u8-grapheme-next.c: New file.
13939         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13940
13941         New module 'u16-grapheme-next'.
13942         * modules/unigbrk/u16-grapheme-next: New file.
13943         * modules/unigbrk/u16-grapheme-next-tests: New file.
13944         * lib/unigbrk.in.h: Add prototype for new function.
13945         * lib/unigbrk/u16-grapheme-next.c: New file.
13946         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13947
13948         New module 'u32-grapheme-next'.
13949         * modules/unigbrk/u32-grapheme-next: New file.
13950         * modules/unigbrk/u32-grapheme-next-tests: New file.
13951         * lib/unigbrk.in.h: Add prototype for new function.
13952         * lib/unigbrk/u32-grapheme-next.c: New file.
13953         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13954
13955         New module 'u8-grapheme-prev'.
13956         * modules/unigbrk/u8-grapheme-prev: New file.
13957         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13958         * lib/unigbrk.in.h: Add prototype for new function.
13959         * lib/unigbrk/u8-grapheme-prev.c: New file.
13960         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13961
13962         New module 'u16-grapheme-prev'.
13963         * modules/unigbrk/u16-grapheme-prev: New file.
13964         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13965         * lib/unigbrk.in.h: Add prototype for new function.
13966         * lib/unigbrk/u16-grapheme-prev.c: New file.
13967         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13968
13969         New module 'u32-grapheme-prev'.
13970         * modules/unigbrk/u32-grapheme-prev: New file.
13971         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13972         * lib/unigbrk.in.h: Add prototype for new function.
13973         * lib/unigbrk/u32-grapheme-prev.c: New file.
13974         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13975
13976         New module 'u8-grapheme-breaks'.
13977         * modules/unigbrk/u8-grapheme-breaks: New file.
13978         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13979         * lib/unigbrk.in.h: Add prototype for new function.
13980         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13981         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13982
13983         New module 'u16-grapheme-breaks'.
13984         * modules/unigbrk/u16-grapheme-breaks: New file.
13985         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13986         * lib/unigbrk.in.h: Add prototype for new function.
13987         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13988         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13989
13990         New module 'u32-grapheme-breaks'.
13991         * modules/unigbrk/u32-grapheme-breaks: New file.
13992         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13993         * lib/unigbrk.in.h: Add prototype for new function.
13994         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13995         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13996
13997         New module 'ulc-grapheme-breaks'.
13998         * modules/unigbrk/ulc-grapheme-breaks: New file.
13999         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14000         * m4/locale-ar.m4: New file.
14001         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14002         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14003         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14004
14005 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14006
14007         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14008         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14009         modified how this file was generated before I initially submitted
14010         the module, but failed to regenerate it.  This meant that several
14011         of the level2 entries were wrong.
14012         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14013         Remove the division-by-2 that is folded into the table now that
14014         gbrkprop.h has been regenerated properly.  Now -1 entries are
14015         handled correctly.
14016
14017         New module 'unigbrk/uc-gbrk-prop-tests'.
14018         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14019         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14020         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14021         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14022
14023 2011-01-01  Bruno Haible  <bruno@clisp.org>
14024
14025         Avoid use of hexadecimal escapes.
14026         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14027         instead of hexadecimal escapes.
14028
14029 2011-01-01  Jim Meyering  <meyering@redhat.com>
14030
14031         maint: new rule to update copyright year ranges
14032         * Makefile (update-copyright): New rule.
14033
14034         maint: indent with TABs in Makefile
14035         * Makefile: Expand leading sequences of spaces to TABs
14036
14037         version-etc: update the copyright year it reports
14038         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14039
14040 2010-12-31  Bruno Haible  <bruno@clisp.org>
14041
14042         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14043         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14044         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14045         zero.
14046
14047 2010-12-31  Bruno Haible  <bruno@clisp.org>
14048
14049         pwrite: Work around HP-UX 11.11 bug.
14050         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14051         works and set REPLACE_PWRITE if not.
14052         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14053         function.
14054         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14055
14056 2010-12-31  Bruno Haible  <bruno@clisp.org>
14057
14058         pread: Work around HP-UX 11 bugs.
14059         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14060         and set REPLACE_PREAD if not.
14061         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14062
14063 2010-12-31  Eric Blake  <eblake@redhat.com>
14064
14065         nl_langinfo: fix YESEXPR on Irix 6.5
14066         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14067         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14068         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14069         it.
14070
14071 2010-12-31  Bruno Haible  <bruno@clisp.org>
14072
14073         iconv: Document HP-UX 11 bug.
14074         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14075
14076 2010-12-31  Bruno Haible  <bruno@clisp.org>
14077
14078         ldexpl: Fix link error on HP-UX 11.
14079         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14080         LDEXPL_LIBM, using $ISNANL_LIBM.
14081
14082 2010-12-31  Eric Blake  <eblake@redhat.com>
14083
14084         ftello: avoid compilation failure with SunStudio c89
14085         * lib/ftello.c (ftello): Use lseek, not llseek.
14086
14087         tests: avoid failing coreutils tests on cygwin
14088         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14089         (create_exe_shims_): Return 0 when skipping.
14090
14091 2010-12-31  Bruno Haible  <bruno@clisp.org>
14092
14093         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14094         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14095
14096 2010-12-31  Bruno Haible  <bruno@clisp.org>
14097
14098         waitpid: Fix link error in C++ mode.
14099         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14100
14101 2010-12-31  Bruno Haible  <bruno@clisp.org>
14102
14103         isnan: Use GCC built-ins when possible.
14104         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14105         __builtin_isnan.
14106         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14107         (isnan): Define using GCC built-ins for GCC >= 4.0.
14108
14109 2010-12-31  Bruno Haible  <bruno@clisp.org>
14110
14111         isnand: Fix mistake.
14112         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14113         __builtin_isnand.
14114
14115 2010-12-31  Bruno Haible  <bruno@clisp.org>
14116
14117         open: Avoid C++ error on HP-UX 11.
14118         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14119
14120 2010-12-31  Bruno Haible  <bruno@clisp.org>
14121
14122         time_r: Add missing declarations on HP-UX 11.
14123         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14124         instead of HAVE_LOCALTIME_R.
14125         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14126         HAVE_LOCALTIME_R always.
14127         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14128         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14129         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14130         HAVE_LOCALTIME_R.
14131         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14132         * doc/posix-functions/localtime_r.texi: Likewise.
14133
14134 2010-12-29  Eric Blake  <eblake@redhat.com>
14135
14136         mountlist: tweak previous commit
14137         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14138         Reported by Paul Eggert.
14139
14140         mountlist: fix local drive detection on cygwin
14141         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14142         that works for cygwin.
14143
14144 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14145
14146         ftoastr, snprintf: ftoastr + snprintf module
14147         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14148         since the snprintf module now should be good enough here.
14149         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14150         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14151         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14152         GNULIB_SNPRINTF only for the test directory, and the latter
14153         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14154         seems to suffice by itself.
14155
14156 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14157
14158         alloca: one step towards thread-safety
14159         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14160         need for a static variable.  All callers changed.  This does not
14161         make the alloca replacement thread-safe, but it's one step.
14162
14163         tests: minor indenting change
14164         * tests/init.sh: Sync from coreutils housekeeping patch
14165         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14166         to keep lines within 80 columns.
14167
14168 2010-12-28  Jim Meyering  <meyering@redhat.com>
14169
14170         regex: don't infloop on persistent failing calloc
14171         * lib/regexec.c (build_trtable): Return failure indication upon
14172         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14173         In glibc, this was fixed for version 2.13:
14174         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14175
14176 2010-12-28  Bruno Haible  <bruno@clisp.org>
14177             Paul Eggert <eggert@cs.ucla.edu>
14178
14179         linkat: Make implementation robust against system behaviour variations.
14180         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14181         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14182         way, and to -2 if it needs a generic runtime test.
14183         * lib/linkat.c (solaris_optimized_link_immediate,
14184         solaris_optimized_link_follow): New functions.
14185         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14186         (check_same_link): Use it.
14187
14188 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14189
14190         New module 'unigbrk/base'.
14191         * modules/unigbrk/base: New file.
14192         * lib/unigbrk.in.h: New file.
14193
14194         New module 'unigbrk/uc-gbrk-prop'.
14195         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14196         * modules/unigbrk/uc-gbrk-prop: New file.
14197         * lib/unigbrk/gbrkprop.h: New file.
14198         * lib/unigbrk/uc-gbrk-prop.c: New file.
14199
14200         New module 'unigbrk/uc-is-grapheme-break'.
14201         * modules/unigbrk/uc-is-grapheme-break: New file.
14202         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14203         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14204         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14205         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14206         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14207
14208         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14209
14210 2010-12-27  Bruno Haible  <bruno@clisp.org>
14211
14212         linkat test: Avoid failure on Solaris 11 2010-11.
14213         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14214
14215 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14216
14217         utimens: work around glibc rounding bug on more platforms
14218         * lib/utimens.c (fdutimens): Work around rounding bug even if
14219         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14220         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14221
14222 2010-12-27  Bruno Haible  <bruno@clisp.org>
14223
14224         select tests: Improve comments.
14225         * tests/test-select.c (do_select): Add comments.
14226
14227 2010-12-27  Bruno Haible  <bruno@clisp.org>
14228
14229         select tests: Safer way of handling timeout.
14230         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14231         at every invocation.
14232
14233 2010-12-27  Bruno Haible  <bruno@clisp.org>
14234
14235         select tests: Use 'bool' where appropriate.
14236         * tests/test-select.c (connect_to_socket): Change argument type to
14237         'bool'.
14238
14239 2010-12-27  Bruno Haible  <bruno@clisp.org>
14240
14241         select tests: Use existing modules.
14242         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14243         (configure.ac): Don't test for unistd.h.
14244         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14245         declared in <unistd.h>.
14246
14247 2010-12-27  Bruno Haible  <bruno@clisp.org>
14248
14249         mbrtowc: Work around a Solaris 7 bug.
14250         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14251         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14252         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14253         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14254         MBRTOWC_NULL_ARG1_BUG.
14255         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14256         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14257         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14258         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14259
14260 2010-12-27  Jim Meyering  <meyering@redhat.com>
14261
14262         read-file.c: tweak syntax
14263         * lib/read-file.c (fread_file): Remove space after "*" in function
14264         definitions.
14265
14266 2010-12-27  Bruno Haible  <bruno@clisp.org>
14267
14268         times test: Avoid gcc warnings on OSF/1.
14269         * tests/test-times.c (main): Cast printf arguments from clock_t to
14270         'long int'.
14271
14272 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14273
14274         utimens: work around glibc rounding bug on older Linux kernels
14275         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14276         on Linux with a glibc whose utimes might not work, then work
14277         around a longstanding glibc bug involving rounding rather than
14278         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14280
14281 2010-12-26  Bruno Haible  <bruno@clisp.org>
14282
14283         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14284         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14285         _GL_CXXALIAS_SYS.
14286         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14287
14288 2010-12-26  Bruno Haible  <bruno@clisp.org>
14289
14290         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14291         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14292         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14293         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14294         looking for the declaration.
14295         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14296         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14297         problem.
14298         * doc/posix-functions/inet_pton.texi: Likewise.
14299
14300 2010-12-26  Bruno Haible  <bruno@clisp.org>
14301
14302         arpa_inet: Use the common idioms with C++ support.
14303         * lib/arpa_inet.in.h: Include c++defs.h.
14304         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14305         support.
14306         * modules/arpa_inet (Depends-on): Add c++defs.
14307         (Makefile.am): Substitute the contents of c++defs.h.
14308         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14309         * modules/arpa_inet-c++-tests: New file.
14310         * tests/test-arpa_inet-c++.cc: New file.
14311
14312 2010-12-25  Bruno Haible  <bruno@clisp.org>
14313
14314         Fix more C++ link errors on Solaris 8.
14315         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14316         $(LIB_EACCESS).
14317         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14318         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14319         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14320         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14321         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14322
14323 2010-12-25  Bruno Haible  <bruno@clisp.org>
14324
14325         printf-posix: Fix link error when a non-GCC compiler is used.
14326         * lib/stdio.in.h (printf): When not using GCC, override printf
14327         correctly.
14328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14329
14330 2010-12-25  Bruno Haible  <bruno@clisp.org>
14331
14332         strerror_r-posix: Update doc.
14333         * doc/posix-functions/strerror_r.texi: Update doc about the return
14334         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14335
14336 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14337
14338         utimens: simplify the logic of the previous change
14339         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14340         This should not affect whether the test succeeds or fails.
14341
14342         utimens: configure better on hosts with NFS clock skew
14343         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14344         uses the clock of the local host.  It might use the clock of the
14345         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14346         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14347
14348 2010-12-25  Bruno Haible  <bruno@clisp.org>
14349
14350         ptsname test: Avoid failure on Solaris.
14351         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14352         open a pseudo-terminal; don't use BSD-style ptys.
14353         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14354
14355 2010-12-25  Bruno Haible  <bruno@clisp.org>
14356
14357         ptsname: Avoid ERANGE failure on some systems.
14358         * lib/ptsname.c (buffer): Increase size.
14359
14360 2010-12-25  Bruno Haible  <bruno@clisp.org>
14361
14362         rename, renameat: Avoid test failures at NFS mounted locations.
14363         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14364         so that subsequent mkdir calls succeed.
14365
14366 2010-12-25  Bruno Haible  <bruno@clisp.org>
14367
14368         iswblank: Fix C++ link error on Solaris 8.
14369         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14370         _GL_FUNCDECL_SYS.
14371
14372 2010-12-25  Bruno Haible  <bruno@clisp.org>
14373
14374         unistd: Fix C++ link error on Solaris 8.
14375         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14376
14377 2010-12-25  Bruno Haible  <bruno@clisp.org>
14378
14379         readlink doc: Mention an old glibc bug.
14380         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14381
14382 2010-12-25  Bruno Haible  <bruno@clisp.org>
14383
14384         fcntl-h: Fix for use of C++ on glibc systems.
14385         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14386         also on glibc systems in C++ mode.
14387         Reported by Gary V. Vaughan <gary@gnu.org>.
14388
14389 2010-12-25  Bruno Haible  <bruno@clisp.org>
14390
14391         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14392         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14393
14394 2010-12-25  Bruno Haible  <bruno@clisp.org>
14395
14396         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14397         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14398         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14399         test whether truncl works according to ISO C 99 with IEC 60559.
14400         * m4/truncl-ieee.m4: New file.
14401         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14402         m4/signbit.m4.
14403         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14404
14405 2010-12-25  Bruno Haible  <bruno@clisp.org>
14406
14407         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14408         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14409         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14410         test whether ceill works according to ISO C 99 with IEC 60559.
14411         * m4/ceill-ieee.m4: New file.
14412         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14413         m4/signbit.m4.
14414         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14415
14416 2010-12-25  Bruno Haible  <bruno@clisp.org>
14417
14418         Ensure all prerequisites of <wchar.h> are included.
14419         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14420         before <wchar.h>.
14421         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14422         gl_MBRLEN_NUL_RETVAL): Likewise.
14423         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14424         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14425         AC_FUNC_MBRTOWC): Likewise.
14426         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14427         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14428         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14429         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14430         Likewise.
14431         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14432         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14433         (gl_WCHAR_H): Improve comments.
14434         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14435
14436 2010-12-25  Bruno Haible  <bruno@clisp.org>
14437
14438         strtok_r: Fix C syntax error in autoconf macro.
14439         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14440         characters in test program.
14441
14442 2010-12-24  Bruno Haible  <bruno@clisp.org>
14443
14444         ceil, trunc, round: Fix gcc warnings.
14445         * lib/ceil.c (MIN): Undefine before redefining.
14446         * lib/trunc.c (MIN): Likewise.
14447         * lib/round.c (MIN): Likewise.
14448         Include <math.h> first.
14449
14450 2010-12-24  Bruno Haible  <bruno@clisp.org>
14451
14452         select tests: Avoid failures on OSF/1 5.1.
14453         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14454         failure of closing the last socket; it may fail with ECONNRESET.
14455
14456 2010-12-24  Eric Blake  <eblake@redhat.com>
14457
14458         stdint: avoid HP-UX 10.20 preprocessor bug
14459         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14460         than #if.
14461         * tests/test-floor2.c (main): Likewise.
14462         Reported by Peter O'Gorman.
14463
14464         pipe: make obsoletion transition easier
14465         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14466         * modules/pipe (Files): Include revived file.
14467         (Include): Drop reference, to mirror getdate's behavior.
14468
14469 2010-12-24  Bruno Haible  <bruno@clisp.org>
14470
14471         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14472         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14473         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14474         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14475
14476 2010-12-24  Bruno Haible  <bruno@clisp.org>
14477
14478         gethostname: Ensure declaration on NonStop Kernel.
14479         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14480         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14481
14482 2010-12-24  Bruno Haible  <bruno@clisp.org>
14483
14484         sys_select: Ensure all necessary types on NonStop Kernel.
14485         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14486         include <sys/time.h>.
14487         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14488         NonStop Kernel.
14489         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14490
14491 2010-12-24  Bruno Haible  <bruno@clisp.org>
14492
14493         sys_select: Remove unneeded include.
14494         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14495         have <sys/select.h>.
14496
14497 2010-12-24  Bruno Haible  <bruno@clisp.org>
14498
14499         gethostname: Provide a fallback for HOST_NAME_MAX.
14500         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14501         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14502         instead.
14503         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14504
14505 2010-12-24  Bruno Haible  <bruno@clisp.org>
14506
14507         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14508         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14509         (SA_RESTART): Likewise.
14510         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14511
14512 2010-12-24  Bruno Haible  <bruno@clisp.org>
14513
14514         signal: Define NSIG.
14515         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14516         * tests/test-signal.c (nsig): New variable.
14517         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14518
14519 2010-12-24  Bruno Haible  <bruno@clisp.org>
14520
14521         rename, renameat: Avoid test failures on OSF/1 5.1.
14522         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14523         alternative error codes.
14524         * tests/test-renameat.c (main): Likewise.
14525
14526 2010-12-24  Bruno Haible  <bruno@clisp.org>
14527
14528         *printf: Detect large precisions bug on Solaris 10/SPARC.
14529         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14530         by Paul Eggert.
14531         * tests/test-snprintf-posix.h (test_function): Add this test code here
14532         too.
14533         * tests/test-sprintf-posix.h (test_function): Likewise.
14534         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14535         * tests/test-vasprintf-posix.c (test_function): Likewise.
14536         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14537         around by gnulib.
14538         * doc/posix-functions/printf.texi: Likewise.
14539         * doc/posix-functions/snprintf.texi: Likewise.
14540         * doc/posix-functions/sprintf.texi: Likewise.
14541         * doc/posix-functions/vfprintf.texi: Likewise.
14542         * doc/posix-functions/vprintf.texi: Likewise.
14543         * doc/posix-functions/vsnprintf.texi: Likewise.
14544         * doc/posix-functions/vsprintf.texi: Likewise.
14545         * doc/posix-functions/dprintf.texi: Undo last commit.
14546         * doc/posix-functions/vdprintf.texi: Likewise.
14547
14548 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14549
14550         tests: port test-fdutimensat.c to Solaris 8
14551         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14552         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14553         On Solaris 8, it fails with errno == ENOSYS, because there is no
14554         futimens (so it can't use the fd), and there is no lutimens (so it
14555         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14556
14557         vsnprintf: make more consistent with snprintf; doc fixes
14558
14559         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14560         the byte count return problem was promoted from the snprintf-posix
14561         to the snprintf module.
14562         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14563         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14564         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14565         * tests/test-snprintf.c (main): Check the byte count returned.
14566         * tests/test-vsnprintf.c (main): Likewise.
14567
14568 2010-12-23  Eric Blake  <eblake@redhat.com>
14569
14570         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14571         * modules/sigpipe (License): Relax license.
14572
14573 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14574
14575         doc: document Solaris printf bug with large float precisions
14576         * doc/posix-functions/dprintf.texi (dprintf):
14577         * doc/posix-functions/fprintf.texi (fprintf):
14578         * doc/posix-functions/printf.texi (printf):
14579         * doc/posix-functions/snprintf.texi (snprintf):
14580         * doc/posix-functions/sprintf.texi (sprintf):
14581         * doc/posix-functions/vdprintf.texi (vdprintf):
14582         * doc/posix-functions/vfprintf.texi (vfprintf):
14583         * doc/posix-functions/vprintf.texi (vprintf):
14584         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14585         * doc/posix-functions/vsprintf.texi (vsprintf):
14586         Mention that these functions mishandle large floating point
14587         precisions on Solaris 10.  The same bug is also present in Solaris
14588         8, and I assume earlier.  This causes "cd gnulib-tests; make
14589         check" to fail on Solaris 8 (and I assume, later) when building
14590         the latest coreutils, in test-vasprintf-posix's call to
14591         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14592         the wide flavors (e.g., wprintf) so this patch just updates the
14593         documentation for the narrow ones.
14594
14595         test-posixtm.c: add two tests
14596         * tests/test-posixtm.c: Add two tests, to highlight the
14597         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14598         around this bug; this is merely to document it.
14599
14600 2010-12-22  Bruno Haible  <bruno@clisp.org>
14601
14602         getlogin_r: Work around portability problem on OSF/1.
14603         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14604         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14605         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14606         test for a truncated result.
14607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14608         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14609         * modules/getlogin_r (Depends-on): Add memchr.
14610         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14611
14612 2010-12-22  Bruno Haible  <bruno@clisp.org>
14613
14614         ptsname: Avoid test failure on OSF/1 5.1.
14615         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14616         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14617         (same_slave): New function.
14618         (main): Use it to compare ptsname's result with the expected file name.
14619
14620 2010-12-22  Bruno Haible  <bruno@clisp.org>
14621
14622         Port extended stdio modules to HP NonStop Kernel.
14623         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14624         macros.
14625         * lib/fbufmode.c: Update comments.
14626         * lib/fflush.c: Likewise.
14627         * lib/fpurge.c: Likewise.
14628         * lib/freadable.c: Likewise.
14629         * lib/freadahead.c: Likewise.
14630         * lib/freading.c: Likewise.
14631         * lib/freadptr.c: Likewise.
14632         * lib/freadseek.c: Likewise.
14633         * lib/fseeko.c: Likewise.
14634         * lib/fseterr.c: Likewise.
14635         * lib/fwritable.c: Likewise.
14636         * lib/fwriting.c: Likewise.
14637         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14638
14639 2010-12-22  Bruno Haible  <bruno@clisp.org>
14640
14641         ttyname_r: Work around bug on OSF/1 5.1.
14642         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14643         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14644         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14645         present.
14646         * lib/ttyname_r.c (ttyname_r): Update comments.
14647
14648 2010-12-22  Bruno Haible  <bruno@clisp.org>
14649
14650         round: Implement result sign according to IEEE 754.
14651         * lib/round.c (MIN, MINUS_ZERO): New macros.
14652         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14653         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14654         * tests/test-round-ieee.c (main): Likewise.
14655         * tests/test-roundl-ieee.c (main): Likewise.
14656
14657         trunc: Implement result sign according to IEEE 754.
14658         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14659         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14660         * tests/test-trunc2.c: Include minus-zero.h.
14661         (MINUS_ZERO): New macro.
14662         (trunc_reference): Keep in sync with lib/trunc.c.
14663         * tests/test-truncf2.c: Include minus-zero.h.
14664         (MINUS_ZERO): New macro.
14665         (truncf_reference): Keep in sync with lib/trunc.c.
14666         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14667         * tests/test-trunc-ieee.c (main): Likewise.
14668         * tests/test-truncl-ieee.c (main): Likewise.
14669
14670         ceil: Implement result sign according to IEEE 754.
14671         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14672         (FUNC): Return -0.0 for -1 < x < 0.
14673         * tests/test-ceil2.c: Include minus-zero.h.
14674         (MINUS_ZERO): New macro.
14675         (ceil_reference): Keep in sync with lib/ceil.c.
14676         * tests/test-ceilf2.c: Include minus-zero.h.
14677         (MINUS_ZERO): New macro.
14678         (ceilf_reference): Keep in sync with lib/ceil.c.
14679         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14680         * tests/test-ceil-ieee.c (main): Likewise.
14681         * tests/test-ceill-ieee.c (main): Likewise.
14682
14683         floor: Implement result sign according to IEEE 754.
14684         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14685         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14686         * tests/test-floorf2.c (floorf_reference): Likewise.
14687         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14688         * tests/test-floor-ieee.c (main): Likewise.
14689         * tests/test-floorl-ieee.c (main): Likewise.
14690
14691 2010-12-22  Bruno Haible  <bruno@clisp.org>
14692
14693         getaddrinfo: Update doc.
14694         * doc/posix-functions/gai_strerror.texi: Return type is also different
14695         on AIX and HP-UX.
14696
14697 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14698
14699         getaddrinfo, inet_ntop: Update doc for Solaris.
14700         * doc/posix-functions/gai_strerror.texi: Return type is also an
14701         issue on Solaris 9 and earlier.
14702         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14703         on Solaris 10 and earlier.
14704
14705 2010-12-21  Bruno Haible  <bruno@clisp.org>
14706
14707         New module 'roundl-ieee'.
14708         * modules/roundl-ieee: New file.
14709         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14710         test whether roundl works according to ISO C 99 with IEC 60559.
14711         * m4/roundl-ieee.m4: New file.
14712         * modules/roundl-ieee-tests: New file.
14713         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14714         * tests/test-roundl.c (main): Remove signbit tests.
14715         * modules/roundl-tests (Depends-on): Remove signbit.
14716         * doc/posix-functions/roundl.texi: Mention the new module.
14717
14718 2010-12-21  Bruno Haible  <bruno@clisp.org>
14719
14720         New module 'truncl-ieee'.
14721         * modules/truncl-ieee: New file.
14722         * modules/truncl-ieee-tests: New file.
14723         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14724         * tests/test-truncl.c (main): Remove signbit tests.
14725         * modules/truncl-tests (Depends-on): Remove signbit.
14726         * doc/posix-functions/truncl.texi: Mention the new module.
14727
14728 2010-12-21  Bruno Haible  <bruno@clisp.org>
14729
14730         New module 'ceill-ieee'.
14731         * modules/ceill-ieee: New file.
14732         * modules/ceill-ieee-tests: New file.
14733         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14734         * tests/test-ceill.c (main): Remove signbit tests.
14735         * modules/ceill-tests (Depends-on): Remove signbit.
14736         * doc/posix-functions/ceill.texi: Mention the new module.
14737
14738 2010-12-21  Bruno Haible  <bruno@clisp.org>
14739
14740         New module 'floorl-ieee'.
14741         * modules/floorl-ieee: New file.
14742         * modules/floorl-ieee-tests: New file.
14743         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14744         * tests/test-floorl.c (main): Remove signbit tests.
14745         * modules/floorl-tests (Depends-on): Remove signbit.
14746         * doc/posix-functions/floorl.texi: Mention the new module.
14747
14748 2010-12-21  Bruno Haible  <bruno@clisp.org>
14749
14750         New module 'round-ieee'.
14751         * modules/round-ieee: New file.
14752         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14753         whether round works according to ISO C 99 with IEC 60559.
14754         * m4/round-ieee.m4: New file.
14755         * modules/round-ieee-tests: New file.
14756         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14757         * tests/test-round1.c (main): Remove signbit tests.
14758         * modules/round-tests (Depends-on): Remove 'signbit'.
14759         * doc/posix-functions/round.texi: Mention the new module.
14760
14761 2010-12-21  Bruno Haible  <bruno@clisp.org>
14762
14763         New module 'trunc-ieee'.
14764         * modules/trunc-ieee: New file.
14765         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14766         whether trunc works according to ISO C 99 with IEC 60559.
14767         * m4/trunc-ieee.m4: New file.
14768         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14770         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14771         * modules/trunc-ieee-tests: New file.
14772         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14773         * tests/test-trunc1.c (main): Remove signbit tests.
14774         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14775         * doc/posix-functions/trunc.texi: Mention the new module.
14776
14777 2010-12-21  Bruno Haible  <bruno@clisp.org>
14778
14779         New module 'ceil-ieee'.
14780         * modules/ceil-ieee: New file.
14781         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14782         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14783         ISO C 99 with IEC 60559.
14784         * m4/ceil-ieee.m4: New file.
14785         * modules/ceil (Files): Add lib/ceil.c.
14786         (Depends-on): Add 'float'.
14787         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14788         * lib/math.in.h (ceil): New declaration.
14789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14790         REPLACE_CEIL.
14791         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14792         * modules/ceil-ieee-tests: New file.
14793         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14794         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14795         * doc/posix-functions/ceil.texi: Mention the new module.
14796
14797 2010-12-21  Bruno Haible  <bruno@clisp.org>
14798
14799         New module 'floor-ieee'.
14800         * modules/floor-ieee: New file.
14801         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14802         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14803         ISO C 99 with IEC 60559.
14804         * m4/floor-ieee.m4: New file.
14805         * modules/floor (Files): Add lib/floor.c.
14806         (Depends-on): Add 'float'.
14807         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14808         * lib/math.in.h (floor): New declaration.
14809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14810         REPLACE_FLOOR.
14811         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14812         * modules/floor-ieee-tests: New file.
14813         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14814         * tests/test-math-c++.cc: Check the signature of 'floor'.
14815         * doc/posix-functions/floor.texi: Mention the new module.
14816
14817 2010-12-21  Bruno Haible  <bruno@clisp.org>
14818
14819         New module 'roundf-ieee'.
14820         * modules/roundf-ieee: New file.
14821         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14822         test whether roundf works according to ISO C 99 with IEC 60559.
14823         * m4/roundf-ieee.m4: New file.
14824         * modules/roundf-ieee-tests: New file.
14825         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14826         * tests/test-roundf1.c (main): Remove signbit tests.
14827         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14828         * doc/posix-functions/roundf.texi: Mention the new module.
14829
14830 2010-12-21  Bruno Haible  <bruno@clisp.org>
14831
14832         New module 'truncf-ieee'.
14833         * modules/truncf-ieee: New file.
14834         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14835         test whether truncf works according to ISO C 99 with IEC 60559.
14836         * m4/truncf-ieee.m4: New file.
14837         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14839         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14840         * modules/truncf-ieee-tests: New file.
14841         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14842         * tests/test-truncf1.c (main): Remove signbit tests.
14843         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14844         * doc/posix-functions/truncf.texi: Mention the new module.
14845
14846 2010-12-21  Bruno Haible  <bruno@clisp.org>
14847
14848         New module 'ceilf-ieee'.
14849         * modules/ceilf-ieee: New file.
14850         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14851         test whether ceilf works according to ISO C 99 with IEC 60559.
14852         * m4/ceilf-ieee.m4: New file.
14853         * modules/ceilf-ieee-tests: New file.
14854         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14855         * tests/test-ceilf1.c (main): Remove signbit tests.
14856         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14857         * doc/posix-functions/ceilf.texi: Mention the new module.
14858
14859 2010-12-21  Bruno Haible  <bruno@clisp.org>
14860
14861         New module 'floorf-ieee'.
14862         * modules/floorf-ieee: New file.
14863         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14864         test whether floorf works according to ISO C 99 with IEC 60559.
14865         * m4/floorf-ieee.m4: New file.
14866         * modules/floorf-ieee-tests: New file.
14867         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14868         * tests/test-floorf1.c (main): Remove signbit tests.
14869         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14870         * doc/posix-functions/floorf.texi: Mention the new module.
14871
14872 2010-12-21  Bruno Haible  <bruno@clisp.org>
14873
14874         Support for minus zero in autoconf macros.
14875         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14876         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14877         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14878         * tests/minus-zero.h: Update comments.
14879
14880 2010-12-21  Bruno Haible  <bruno@clisp.org>
14881
14882         Tests for module 'ceil'.
14883         * modules/ceil-tests: New file.
14884         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14885         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14886
14887 2010-12-21  Bruno Haible  <bruno@clisp.org>
14888
14889         Tests for module 'floor'.
14890         * modules/floor-tests: New file.
14891         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14892         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14893
14894 2010-12-21  Bruno Haible  <bruno@clisp.org>
14895
14896         math: Fix indentation.
14897         * lib/math.in.h (floorf): Fix indentation.
14898
14899 2010-12-21  Bruno Haible  <bruno@clisp.org>
14900
14901         Fix cross-compilation guesses on Solaris.
14902         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14903         not match "solaris2.10".
14904         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14905         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14906         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14907
14908 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14909
14910         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14911         This fixes a problem observed with the latest coreutils snapshot
14912         that caused a test to fail on Solaris 8.  src/csplit.c's call
14913         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14914         earlier, instead of returning the number of bytes that would have
14915         been generated; this causes csplit to incorrectly report memory
14916         exhaustion.
14917         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14918         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14919         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14920         comments to match.
14921         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14922         Fix typo in matching older versions of Solaris: "solaris2.10"
14923         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14924         only for guessing while cross-compiling.
14925         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14926
14927 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14928
14929         ftoastr: fix comment again
14930         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14931         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14932         Also, simplify example a bit by using flags = 0.
14933
14934 2010-12-20  Bruno Haible  <bruno@clisp.org>
14935
14936         round*, trunc*: Update documentation regarding glibc.
14937         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14938         * doc/posix-functions/round.texi: Likewise.
14939         * doc/posix-functions/roundl.texi: Likewise.
14940         * doc/posix-functions/truncf.texi: Likewise.
14941         * doc/posix-functions/trunc.texi: Likewise.
14942         * doc/posix-functions/truncl.texi: Likewise.
14943
14944 2010-12-20  Bruno Haible  <bruno@clisp.org>
14945
14946         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14947         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14948         * doc/posix-functions/round.texi: Likewise.
14949         * doc/posix-functions/roundl.texi: Likewise.
14950
14951 2010-12-20  Bruno Haible  <bruno@clisp.org>
14952
14953         ttyname_r: Add missing declaration on HP-UX 11.
14954         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14955         HAVE_TTYNAME_R.
14956         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14957         declared. Set HAVE_TTYNAME_R always.
14958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14959         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14960         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14961         HAVE_TTYNAME_R.
14962         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14963
14964 2010-12-20  Bruno Haible  <bruno@clisp.org>
14965
14966         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14967         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14968         * doc/posix-functions/getlogin_r.texi: Likewise.
14969         * tests/test-getlogin.c: Include <errno.h>.
14970         (main): Avoid test failure on HP-UX 11.11.
14971         * tests/test-getlogin_r.c (main): Likewise.
14972
14973 2010-12-20  Bruno Haible  <bruno@clisp.org>
14974
14975         getlogin_r: Add missing declaration on HP-UX 11.
14976         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14977         declared also when it exists as a function.
14978         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14979
14980 2010-12-20  Bruno Haible  <bruno@clisp.org>
14981
14982         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14983         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14984         through wcrtomb.
14985
14986 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14987
14988         ftoastr: fix comment
14989         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14991
14992 2010-12-19  Bruno Haible  <bruno@clisp.org>
14993
14994         isnan: Ensure it is a macro.
14995         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14996         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14997         Solaris.
14998
14999 2010-12-19  Bruno Haible  <bruno@clisp.org>
15000
15001         ldexpl test: Fix link error on OSF/1 5.1.
15002         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15003
15004 2010-12-19  Bruno Haible  <bruno@clisp.org>
15005
15006         wctype: Make it work in C++ mode on OSF/1 5.1.
15007         * lib/wctype.in.h (iswblank): Declare but not define here.
15008         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15009         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15010         * modules/wctype (Files): Add lib/iswblank.c.
15011
15012 2010-12-19  Bruno Haible  <bruno@clisp.org>
15013
15014         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15015         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15016         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15017
15018 2010-12-19  Bruno Haible  <bruno@clisp.org>
15019
15020         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15022         _POSIX_PII_SOCKET.
15023         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15024         * doc/posix-functions/recvfrom.texi: Likewise.
15025         * doc/posix-functions/send.texi: Likewise.
15026         * doc/posix-functions/sendto.texi: Likewise.
15027
15028 2010-12-19  Bruno Haible  <bruno@clisp.org>
15029
15030         tcgetsid: Add missing declaration on OSF/1 5.1.
15031         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15032         HAVE_TCGETSID.
15033         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15034         Don't set HAVE_TCGETSID.
15035         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15036         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15037         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15038         HAVE_TCGETSID.
15039         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15040
15041 2010-12-19  Bruno Haible  <bruno@clisp.org>
15042
15043         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15044         * lib/stdio.in.h: During the include_next statement, let recursive
15045         includes of this file include only the system header file.
15046
15047 2010-12-19  Bruno Haible  <bruno@clisp.org>
15048
15049         iconv_open: Fix regression from 2010-12-04.
15050         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15051         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15052
15053 2010-12-19  Bruno Haible  <bruno@clisp.org>
15054
15055         stdbool test: Avoid a gcc warning.
15056         * tests/test-stdbool.c (main): Fail if e1 is false.
15057         Reported by Jim Meyering.
15058
15059 2010-12-19  Jim Meyering  <meyering@redhat.com>
15060
15061         setenv: restore to working order
15062         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15063         mistakenly removed.
15064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15065         HAVE_SETENV.
15066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15067         HAVE_SETENV.
15068
15069 2010-12-19  Bruno Haible  <bruno@clisp.org>
15070
15071         Document some different function declarations on OSF/1 5.1.
15072         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15073         * doc/posix-functions/inet_ntop.texi: Likewise.
15074         * doc/posix-functions/gethostname.texi: Likewise.
15075         * lib/unistd.in.h (gethostname): Update comment.
15076
15077 2010-12-19  Bruno Haible  <bruno@clisp.org>
15078
15079         doc: Mention vasprintf-posix module.
15080         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15081         the 'vasprintf-posix' module.
15082         * doc/glibc-functions/vasprintf.texi: Likewise.
15083
15084 2010-12-19  Bruno Haible  <bruno@clisp.org>
15085
15086         unsetenv: Add missing declaration on OSF/1 5.1.
15087         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15088         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15089         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15091         not HAVE_UNSETENV.
15092         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15093         HAVE_UNSETENV.
15094         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15095
15096 2010-12-19  Bruno Haible  <bruno@clisp.org>
15097
15098         setenv: Add missing declaration on OSF/1 5.1.
15099         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15100         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15101         declared. Don't set HAVE_SETENV.
15102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15103         not HAVE_SETENV.
15104         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15105         HAVE_SETENV.
15106         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15107
15108 2010-12-19  Bruno Haible  <bruno@clisp.org>
15109
15110         nl_langinfo tests: Avoid gcc warning.
15111         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15112
15113 2010-12-19  Bruno Haible  <bruno@clisp.org>
15114
15115         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15116         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15117         _GL_CXXALIAS_SYS.
15118
15119 2010-12-19  Bruno Haible  <bruno@clisp.org>
15120
15121         stdbool: Relax test.
15122         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15123         address to 'bool' work in static initializer, for compilers other than
15124         GCC.
15125
15126 2010-12-19  Bruno Haible  <bruno@clisp.org>
15127
15128         ftello: Add missing declaration on OSF/1 5.1.
15129         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15130         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15132         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15133         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15134
15135 2010-12-19  Bruno Haible  <bruno@clisp.org>
15136
15137         fseeko: Add missing declaration on OSF/1 5.1.
15138         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15139         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15141         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15142         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15143
15144 2010-12-19  Bruno Haible  <bruno@clisp.org>
15145
15146         fchdir: Add missing declaration on OSF/1 5.1.
15147         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15150         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15151         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15152
15153 2010-12-19  Bruno Haible  <bruno@clisp.org>
15154
15155         relocatable-prog-wrapper: Separate from relocatable-prog.
15156         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15157         uninstall-relocwrapper rule here.
15158         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15159         Reported by Ian Beckwith <ianb@erislabs.net>.
15160
15161 2010-12-19  Bruno Haible  <bruno@clisp.org>
15162
15163         unistr/u8-mbsnlen: Add missing dependency.
15164         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15165         Reported by Ian Beckwith <ianb@erislabs.net>.
15166
15167 2010-12-19  Bruno Haible  <bruno@clisp.org>
15168
15169         iconv: Make it possible again to use this module without 'iconv-h'.
15170         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15171         if it is not defined.
15172         Reported by Ian Beckwith <ianb@erislabs.net>.
15173
15174 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15175
15176         acl: port to Solaris 8 when copying from tmpfs to ufs
15177         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15178         error number.  Problem observed on Solaris 8 with latest
15179         coreutils, with "mv A B", where A is on a tmpfs file system and B
15180         is on a ufs file system.  This caused coreutils' mv/part-symlink
15181         test to fail.
15182
15183         tests: set fail=0 at start
15184         * tests/init.sh (setup_): Move fail=0 initialization here ...
15185         (mktempd_): ... from here, so that tests can rely on fail being
15186         set to 0 initially.  This fixes a problem in coreutils; see:
15187         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15188
15189 2010-12-18  Bruno Haible  <bruno@clisp.org>
15190
15191         memmem-simple: Stylistic changes.
15192         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15193         Fix preprocessor directive indentation.
15194
15195 2010-12-15  Pádraig Brady <P@draigBrady.com>
15196
15197         memmem, memmem-simple: reorganize and expand empty needle check
15198         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15199         functional checks to memmem-simple so that one has a fully functional
15200         memmem by using just this module.
15201         Restrict the performance only check to the memmem module.
15202         Also expand the empty needle check to ensure the correct
15203         pointer is returned, not just a non NULL pointer.
15204         * doc/glibc-functions/memmem.texi: Rearrange the portability
15205         documentation to correlate with the rearranged checks.
15206         Clarify exactly how the memmem and memmem-simple modules
15207         relate to each other.
15208
15209 2010-12-15  Pádraig Brady <P@draigBrady.com>
15210             Bruno Haible  <bruno@clisp.org>
15211
15212         Improve cross-compilation guesses for uClibc.
15213         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15214         that uClibc does not have the glibc bug.
15215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15216         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15217
15218 2010-12-14  Eric Blake  <eblake@redhat.com>
15219
15220         configmake: provide fallbacks for oldest supported autotools
15221         * m4/configmake.m4: New file.
15222         * modules/configmake (Files): Ship it.
15223         (configure.ac): Use it to guarantee fallbacks.
15224
15225 2010-12-13  Pádraig Brady <P@draigBrady.com>
15226
15227         read-file: Improve handling of large files
15228         * lib/read-file.c (fread_file): Minimize realloc()s
15229         for regular files, and better manage sizes around SIZE_MAX.
15230
15231 2010-12-13  Eric Blake  <eblake@redhat.com>
15232
15233         cloexec, fcntl: relax license
15234         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15235         consent from all contributors.
15236         * modules/fcntl (License): Likewise.
15237
15238 2010-12-10  Bruno Haible  <bruno@clisp.org>
15239
15240         Tests for module 'pipe-posix'.
15241         * modules/pipe-posix-tests: New file.
15242         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15243
15244 2010-12-10  Bruno Haible  <bruno@clisp.org>
15245
15246         pipe-posix: Make it work in C++ mode.
15247         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15248         (pipe): Use common idiom, not a macro definition.
15249         * lib/pipe.c: New file.
15250         * m4/pipe.m4: New file.
15251         * modules/pipe-posix (Description): Enhance.
15252         (Files): Add lib/pipe.c, m4/pipe.m4.
15253         (configure.ac): Invoke gl_FUNC_PIPE.
15254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15255         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15256         * tests/test-unistd-c++.cc: Check the signature of pipe.
15257
15258 2010-12-10  Bruno Haible  <bruno@clisp.org>
15259
15260         Rename module 'pipe' to 'spawn-pipe'.
15261         * modules/spawn-pipe: New file, renamed from modules/pipe.
15262         (Files, configure.ac, Makefile.am): Update.
15263         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15264         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15265         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15266         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15267         "spawn-pipe.h" instead of "pipe.h".
15268         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15269         to gl_SPAWN_PIPE.
15270         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15271         (Files, Makefile.am): Update.
15272         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15273         Update.
15274         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15275         Include "spawn-pipe.h" instead of "pipe.h".
15276         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15277         * lib/javacomp.c: Likewise.
15278         * lib/javaversion.c: Likewise.
15279         * lib/pipe-filter-gi.c: Likewise.
15280         * lib/pipe-filter-ii.c: Likewise.
15281         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15282         * modules/javacomp (Depends-on): Likewise.
15283         * modules/javaversion (Depends-on): Likewise.
15284         * modules/pipe-filter-gi (Depends-on): Likewise.
15285         * modules/pipe-filter-ii (Depends-on): Likewise.
15286         * MODULES.html.sh (Executing programs): Update.
15287         * NEWS: Mention the change.
15288
15289 2010-12-10  Eric Blake  <eblake@redhat.com>
15290
15291         pipe-posix: new module
15292         * modules/pipe-posix: New file.
15293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15294         (gl_UNISTD_H): Check for declaration.
15295         * modules/unistd (Makefile.am): Substitute it.
15296         * lib/unistd.in.h (pipe): Provide it for mingw.
15297         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15298         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15299
15300 2010-12-07  Bruno Haible  <bruno@clisp.org>
15301
15302         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15303         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15304         u8_strcmp_gnu.
15305         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15306
15307 2010-12-06  Bruno Haible  <bruno@clisp.org>
15308
15309         Update internal documentation.
15310         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15311
15312 2010-12-04  Bruno Haible  <bruno@clisp.org>
15313
15314         Put more information about failed tests into the test return codes.
15315         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15316         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15317         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15318         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15319         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15320         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15321         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15322         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15323         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15326         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15327         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15328         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15329         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15330         returns a bit mask.
15331         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15332         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15333         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15334         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15335         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15336         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15339         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15340         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15341         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15342         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15343         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15344         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15345         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15346         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15347         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15348         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15349         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15351         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15352         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15353         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15354         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15355         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15356         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15357         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15358         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15359         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15360         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15361         gl_PRINTF_PRECISION): Likewise.
15362         * m4/regex.m4 (gl_REGEX): Likewise.
15363         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15364         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15365         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15366         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15368         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15370         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15371         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15372         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15373         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15374         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15375         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15376         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15377         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15378         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15379         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15380         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15382         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15383         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15384         enumerated value.
15385         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15386
15387 2010-12-04  Bruno Haible  <bruno@clisp.org>
15388
15389         Update for Solaris 11 2010-11.
15390         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15391         Express, released in November 2010.
15392
15393 2010-12-04  Bruno Haible  <bruno@clisp.org>
15394
15395         nproc: Relax license.
15396         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15397         and Paul Eggert.
15398         Requested by Ludovic Courtès <ludo@gnu.org>.
15399
15400 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15401
15402         utimecmp: fine-grained src to nearby coarse-grained dest
15403
15404         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15405         and the source is on a file system with higher-resolution time
15406         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15407         not work, and the time stamps are close together, the algorithm to
15408         determine the exact resolution from the read-back mtime was buggy:
15409         it had a "!=" where it should have had an "==".  This bug has been
15410         in the code ever since it was introduced to gnulib.
15411         Problem reported by Dan Jacobson in
15412         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15413
15414 2010-11-30  Bruno Haible  <bruno@clisp.org>
15415
15416         strerror_r-posix: Fix autoconf test.
15417         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15418
15419 2010-11-28  Bruno Haible  <bruno@clisp.org>
15420             Paul Eggert  <eggert@cs.ucla.edu>
15421
15422         Tests for module 'getdomainname'.
15423         * modules/getdomainname-tests: New file.
15424         * tests/test-getdomainname.c: New file, based on
15425         tests/test-gethostname.c.
15426
15427 2010-11-28  Bruno Haible  <bruno@clisp.org>
15428             Paul Eggert  <eggert@cs.ucla.edu>
15429
15430         getdomainname: Use the system function when possible.
15431         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15432         (getdomainname): Replace if needed. Provide the declaration if it is
15433         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15434         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15435         (getdomainname): When the system has getdomainname, call the system
15436         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15437         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15438         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15439         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15440         the function if its second argument is of type 'int' or if it is found
15441         in libnsl.
15442         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15443         <sys/systeminfo.h> and sysinfo().
15444         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15446         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15447         HAVE_GETDOMAINNAME.
15448         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15449         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15450         * doc/glibc-functions/getdomainname.texi: Document the problems with
15451         the getdomainname declaration.
15452
15453 2010-11-28  Bruno Haible  <bruno@clisp.org>
15454
15455         sys_socket: Ensure ss_family field on AIX.
15456         * lib/sys_socket.in.h (ss_family): New macro definition.
15457         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15458         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15459         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15460         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15461         * modules/sys_socket (Makefile.am): Substitute
15462         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15463         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15464
15465 2010-11-27  Bruno Haible  <bruno@clisp.org>
15466
15467         readline: Improve configure output.
15468         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15469         "checking for readline..." result understandable.
15470
15471 2010-11-27  Bruno Haible  <bruno@clisp.org>
15472
15473         *printf-posix: Detect a bug on Solaris 10/x86.
15474         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15475         for floating-point output.
15476         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15477         directive.
15478         * tests/test-snprintf-posix.h (test_function): Likewise.
15479         * tests/test-sprintf-posix.h (test_function): Likewise.
15480         * tests/test-vasprintf-posix.c (test_function): Likewise.
15481         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15482         * doc/posix-functions/printf.texi: Likewise.
15483         * doc/posix-functions/snprintf.texi: Likewise.
15484         * doc/posix-functions/sprintf.texi: Likewise.
15485         * doc/posix-functions/vfprintf.texi: Likewise.
15486         * doc/posix-functions/vprintf.texi: Likewise.
15487         * doc/posix-functions/vsnprintf.texi: Likewise.
15488         * doc/posix-functions/vsprintf.texi: Likewise.
15489         * doc/glibc-functions/obstack_printf.texi: Likewise.
15490         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15491
15492 2010-11-27  Bruno Haible  <bruno@clisp.org>
15493
15494         Fix link error when module libunistring-optional is in use.
15495         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15496         * modules/striconveha-tests (Makefile.am): Likewise.
15497
15498 2010-11-27  Bruno Haible  <bruno@clisp.org>
15499
15500         regex: Mention link dependencies.
15501         * modules/regex (Link): New section.
15502         * modules/rpmatch (Link): Likewise.
15503         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15504
15505 2010-11-27  Bruno Haible  <bruno@clisp.org>
15506
15507         ftoastr: Fix compilation error on Solaris.
15508         * lib/ftoastr.c: Include <config.h>.
15509
15510 2010-11-27  Bruno Haible  <bruno@clisp.org>
15511
15512         getloadavg: Update documentation.
15513         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15514
15515 2010-11-27  Bruno Haible  <bruno@clisp.org>
15516
15517         sys_socket: Fix test whether the functions are declared.
15518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15519         not <sys/select.h>.
15520
15521 2010-11-27  Bruno Haible  <bruno@clisp.org>
15522
15523         getpass: Make sure to get system declaration on some platforms.
15524         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15525         gl_USE_SYSTEM_EXTENSIONS.
15526         * modules/getpass (Depends-on): Add extensions.
15527
15528 2010-11-26  Bruno Haible  <bruno@clisp.org>
15529
15530         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15531         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15532         'iconv' module is present.
15533         (ICONV_CONST): New macro.
15534         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15535         ICONV_CONST.
15536         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15537         set ICONV_CONST.
15538         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15539         here.
15540         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15541         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15542         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15543         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15544         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15545         present.
15546
15547 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15548
15549         ftoastr: comment fix
15550         * lib/ftoastr.c: "little" -> "little or no" in comment
15551
15552 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15553
15554         stdint: port to GCC 4.3 + OSX + Octave
15555         On this platform, stdint.h is buggy and defines int64_t to long
15556         long int.  The replacement defined it to long int, causing
15557         problems with C++ style name mangling.  Instead, trust the system
15558         definition if INT64_MAX is defined, and likewise for the unsigned
15559         variant.   Problem reported by Jarno Rajahalme in
15560         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15561         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15562         and don't mess with int64_t and INT64_MAX in this case.
15563         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15564
15565 2010-11-24  Bruno Haible  <bruno@clisp.org>
15566
15567         doc: Corrections regarding MacOS X 10.4 and 10.5.
15568         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15569         MacOS X.
15570         Reported by Simon Josefsson.
15571
15572 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15573
15574         Uninstall ".bin" files installed by relocwrapper.
15575         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15576         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15577         unless it is already there.
15578
15579 2010-11-21  Bruno Haible  <bruno@clisp.org>
15580
15581         Update for NetBSD 5.0.
15582         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15583         NetBSD; the test fails on NetBSD 5.0.
15584         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15585         about NetBSD.
15586
15587 2010-11-21  Bruno Haible  <bruno@clisp.org>
15588
15589         Update for HP-UX 11.23 and HP-UX 11.31.
15590         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15591         HP-UX.
15592
15593 2010-11-21  Bruno Haible  <bruno@clisp.org>
15594
15595         Update for MacOS X 10.5.
15596         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15597         MacOS X; the test fails on MacOS X 10.5.8.
15598         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15599         about MacOS X.
15600
15601 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15602
15603         bootstrap: add bootstrap_sync option.
15604         See discussion at
15605         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15606         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15607         * build-aux/bootstrap: Accept --bootstrap-sync to update
15608         bootstrap if it is not identical to the local gnulib's
15609         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15610         enable this by default.  Accept --no-bootstrap-sync to disable
15611         it.
15612
15613 2010-11-20  Bruno Haible  <bruno@clisp.org>
15614
15615         Ensure that <features.h> is included before __GLIBC__ is tested.
15616         * lib/printf-parse.h: Include <features.h>.
15617         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15618         Reported by Mike Frysinger <vapier@gentoo.org>.
15619
15620         Ensure that <features.h> is included before __GLIBC__ is tested.
15621         * lib/wchar.in.h: Include <features.h>.
15622         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15623         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15624         Reported by Mike Frysinger <vapier@gentoo.org>.
15625
15626         Ensure that <features.h> is included before __GLIBC__ is tested.
15627         * lib/arpa_inet.in.h: Include <features.h>.
15628         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15629         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15630         Reported by Mike Frysinger <vapier@gentoo.org>.
15631
15632         Ensure that <features.h> is included before __GLIBC__ is tested.
15633         * build-aux/link-warning.h: Include <features.h>.
15634         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15635         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15636         Reported by Mike Frysinger <vapier@gentoo.org>.
15637
15638         Ensure that <features.h> is included before __GLIBC__ is tested.
15639         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15640         Reported by Mike Frysinger <vapier@gentoo.org>.
15641
15642 2010-11-20  Bruno Haible  <bruno@clisp.org>
15643
15644         memmem: Fix autoconf test.
15645         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15646
15647 2010-11-20  Bruno Haible  <bruno@clisp.org>
15648
15649         Port to uClibc.
15650         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15651         * lib/fcntl.in.h: Likewise.
15652         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15653         * lib/mbrtowc.c (mbrtowc): Likewise.
15654         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15655         * lib/strerror_r.c: Likewise.
15656         * lib/unistr/u8-strnlen.c: Likewise.
15657         * lib/vasnprintf.c (decimal_point_char): Likewise.
15658         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15659         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15660         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15661         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15662         * tests/test-sigaction.c (handler, main): Likewise.
15663         * lib/freading.h: Treat uClibc like a non-glibc platform.
15664         * lib/freading.c: Likewise.
15665         * lib/gettext.h: Likewise.
15666         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15667         Likewise.
15668         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15669         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15670         * lib/propername.c (proper_name_utf8): Likewise.
15671         * lib/spawn.in.h: Likewise.
15672         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15673         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15674         mem_cd_iconveh_internal): Likewise.
15675         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15676         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15677         strstr, strcasestr): Likewise.
15678         * lib/unicodeio.c (unicode_to_mb): Likewise.
15679         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15680         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15681         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15682         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15683         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15684         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15685         * lib/unistr/u8-stpncpy.c: Likewise.
15686         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15687         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15688         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15689         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15690         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15691         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15692         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15695         Likewise.
15696         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15697         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15698         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15701         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15702         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15703         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15704         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15705         * tests/test-striconveha.c (main): Likewise.
15706         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15707         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15708         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15709         * doc/posix-functions/getline.texi: Likewise.
15710         Reported by Mike Frysinger <vapier@gentoo.org>.
15711
15712 2010-11-20  Bruno Haible  <bruno@clisp.org>
15713
15714         nproc: Fix condition.
15715         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15716         HAVE_PTHREAD_AFFINITY_NP.
15717
15718 2010-11-20  Bruno Haible  <bruno@clisp.org>
15719
15720         Fix a comment.
15721         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15722
15723 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15724
15725         ftoastr: don't assume snprintf
15726         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15727         Implement a subset of snprintf here, by using sprintf safely.
15728         * modules/ftoastr (Depends-on): Remove snprintf.
15729
15730 2010-11-19  Jim Meyering  <meyering@redhat.com>
15731
15732         test-rename.h: fix compilation failure
15733         * tests/test-rename.h (test_rename): Add omitted "}".
15734
15735 2010-11-17  Jim Meyering  <meyering@redhat.com>
15736
15737         maint.mk: add a URL discussing the no-@acronym policy
15738         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15739
15740 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15741
15742         ftoastr: depend on snprintf, improve comments
15743         * lib/ftoastr.c: Also mention Loitsch's draft.
15744         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15745         needed in the current implementation, but it might simplify
15746         speeding up the code later.
15747         * modules/ftoastr: Depend on snprintf; this improves portability.
15748         Suggested by Bruno Haible in the same email.
15749
15750         ftoastr: port to hosts lacking strtof and strtold
15751         Problem reported by Bruno Haible in
15752         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15753         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15754         environment and strtold (and presumably strtof) are not available.
15755         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15756         (configure.ac): Require gl_C99_STRTOLD.
15757
15758 2010-11-18  Bruno Haible  <bruno@clisp.org>
15759
15760         c-strtold: Avoid link error on AIX 7.
15761         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15762         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15763         (gl_C_STRTOLD): Test whether strtold_l exists.
15764         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15765
15766 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15767
15768         intprops: new macro INT_BITS_STRLEN_BOUND
15769         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15770         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15771         not exposed.  Also, it uses a slightly tighter bound than before;
15772         though this makes no practical difference, we might as well be as
15773         tight as we easily can.
15774
15775         ftoastr: new module, for lossless conversion of floats to short strings
15776         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15777         * modules/ftoastr: New files.
15778
15779 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15780
15781         bootstrap: port to Solaris sed
15782         * build-aux/bootstrap (get_version): Port to Solaris sed.
15783         See Ralf Wildenhues's note in
15784         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15785
15786 2010-11-14  Jim Meyering  <meyering@redhat.com>
15787
15788         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15789         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15790         and move definition closer to sole use.
15791
15792 2010-11-13  Jim Meyering  <meyering@redhat.com>
15793
15794         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15795         Now we require at least autoconf-2.59, which means the work-around
15796         is no longer needed.
15797         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15798         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15799         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15800         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15801         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15802
15803 2010-11-13  Bruno Haible  <bruno@clisp.org>
15804
15805         rename, renameat: Avoid test failures at NFS mounted locations.
15806         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15807         functions.
15808         (test_rename): Use assert_nonexistent.
15809         * tests/test-rename.c: Include <dirent.h>.
15810         * tests/test-renameat.c: Likewise.
15811         Reported by Gary V. Vaughan <gary@gnu.org>.
15812
15813         rename, renameat: Document Linux bug with NFS
15814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15815         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15816         * doc/posix-functions/renameat.texi: Likewise.
15817         Suggested by Eric Blake.
15818
15819 2010-11-13  Bruno Haible  <bruno@clisp.org>
15820
15821         rename test: Add comments.
15822         * tests/test-rename.h (test_rename): Add structure and comments.
15823
15824 2010-11-13  Eric Blake  <eblake@redhat.com>
15825
15826         maintainer-makefile: cover a few more files
15827         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15828         scripts generated within C files, for libvirt.
15829
15830 2010-11-13  Bruno Haible  <bruno@clisp.org>
15831
15832         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15833         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15834         character, return the number of bytes that belong together, not always
15835         1.
15836         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15837         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15838         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15839         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15840         number of bytes of an invalid character.
15841         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15842         (main): Invoke it.
15843         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15844         results.
15845         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15846         malformed byte sequences.
15847         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15848         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15849         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15850         Reported by Ben Pfaff and Paolo Bonzini.
15851
15852 2010-11-13  Bruno Haible  <bruno@clisp.org>
15853
15854         openat: Work around glibc bug with fchownat() and empty file names.
15855         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15856         (gl_FUNC_FCHOWNAT): Invoke it.
15857         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15858         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15859         Reported by Gary V. Vaughan <gary@gnu.org>.
15860
15861 2010-11-13  Bruno Haible  <bruno@clisp.org>
15862
15863         openat: Ensure autoconf macro ordering.
15864         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15865         gl_USE_SYSTEM_EXTENSIONS.
15866         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15867
15868 2010-11-13  Bruno Haible  <bruno@clisp.org>
15869
15870         Update comments.
15871         * lib/unistr/u8-check.c: Update file name in comments.
15872         * lib/unistr/u8-mblen.c: Likewise.
15873         * lib/unistr/u8-prev.c: Likewise.
15874         * lib/unistr/u8-strmblen.c: Likewise.
15875         * lib/unistr/u8-strmbtouc.c: Likewise.
15876
15877 2010-11-13  Jim Meyering  <meyering@redhat.com>
15878
15879         tests: avoid test failure on Solaris 10 due to lack of PATH export
15880         * tests/test-update-copyright.sh: Don't forget to export PATH.
15881
15882         init.sh: ensure that IFS is defined, just in case...
15883         * tests/init.sh (setup_): Ensure that IFS is defined,
15884         so that saving and restoring it works as expected.  This
15885         appears to be useful at least for an old version of dash
15886         from a long time ago (RH 6).  See here for details:
15887         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15888
15889         maint.mk: tighten "test a == b" check
15890         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15891         test to files that contain something like #!/bin/sh.
15892         Without this, coreutils would get two false positives in
15893         the comments of C source files.
15894
15895 2010-11-12  Eric Blake  <eblake@redhat.com>
15896
15897         bootstrap: fix typo in previous attempt
15898         * build-aux/bootstrap (buildreq): Correct the grouping.
15899         Reported by Paul Eggert.
15900
15901         maintainer-makefile: prohibit test x == x
15902         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15903         Based on a report by Matthias Bolte.
15904
15905         bootstrap: allow FreeBSD gzip
15906         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15907         which has no '.' and goes to stderr.
15908         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15909         Reported by Matthias Bolte.
15910
15911         maintainer-makefile: check for i18n setup
15912         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15913         will likely work.
15914
15915 2010-11-12  Bruno Haible  <bruno@clisp.org>
15916
15917         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15918         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15919         * lib/nanosleep.c (nanosleep): Likewise.
15920
15921 2010-11-11  Bruno Haible  <bruno@clisp.org>
15922
15923         fcntl-h: Fix for use of C++ on glibc systems.
15924         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15925         also on glibc systems in C++ mode.
15926         Reported by Gary V. Vaughan <gary@gnu.org>.
15927
15928 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15929
15930         mknod: avoid false failure with dash
15931         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15932
15933 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15934
15935         unlink: Fix "is it should" typo in diagnostic.
15936         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15937         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15938
15939 2010-11-11  Bruno Haible  <bruno@clisp.org>
15940
15941         Tests for module 'strerror_r-posix'.
15942         * modules/strerror_r-posix-tests: New file.
15943         * tests/test-strerror_r.c: New file.
15944         * tests/test-string-c++.cc: Check the signature of strerror_r.
15945
15946         New module 'strerror_r-posix'.
15947         * lib/string.in.h (strerror_r): New declaration.
15948         * lib/strerror_r.c: New file.
15949         * m4/strerror_r.m4: New file.
15950         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15951         of strerror_r.
15952         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15953         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15954         * modules/strerror_r-posix: New file.
15955         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15956         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15957         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15958         portability problems.
15959
15960 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15961
15962         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15963         line is also considered for output. Quoted function name in shell
15964         command, so temporary files for functions like MyClass::operator()
15965         are removed correctly without errors.
15966
15967 2010-11-09  Bruno Haible  <bruno@clisp.org>
15968
15969         * doc/posix-functions/strerror.texi: List more failing platforms.
15970
15971         * doc/posix-functions/strerror.texi: Add a comment.
15972
15973 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         fdopendir: fix bug on MacOS X when low on file descriptors
15976
15977         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15978         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15979         All callers changed.
15980         (fdopendir): Invoke save_cwd at the top level, not after using
15981         multiple dup() calls to use up file descriptors.  Then retry
15982         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15983         less than the maximum number of open file descriptors, because
15984         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15985         on Mac OS X 10.6.4 for tar 1.24
15986         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15987         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15988         and for tar 1.25
15989         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15990
15991 2010-11-07  Bruno Haible  <bruno@clisp.org>
15992
15993         vasnprintf: Support I flag on glibc systems.
15994         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15995         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15996         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15997         snprintf function.
15998         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15999         glibc systems.
16000         * tests/test-vasnprintf-posix3.c: New file.
16001         * modules/vasnprintf-posix-tests (Files): Add it.
16002         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16003
16004 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16005
16006         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16007         * MODULES.html.sh: For compiler warnings, use name
16008         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16009
16010 2010-11-05  Eric Blake  <eblake@redhat.com>
16011
16012         ceil, floor: avoid spurious failure with icc
16013         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16014         [denormals-as-zero] when optimizing without -mieee-fp option.
16015         * tests/test-floorf2.c (floorf_reference): Likewise.
16016         * tests/test-ceilf1.c (dummy): New function.
16017         (main): Use it to outsmart icc's optimization.
16018         * tests/test-floorf1.c (dummy, main): Likewise.
16019
16020         tests: require working signbit
16021         * modules/ceilf-tests (Depends-on): Add signbit.
16022         * modules/ceill-tests (Depends-on): Likewise.
16023         * modules/floorf-tests (Depends-on): Likewise.
16024         * modules/floorl-tests (Depends-on): Likewise.
16025         * modules/round-tests (Depends-on): Likewise.
16026         * modules/roundf-tests (Depends-on): Likewise.
16027         * modules/roundl-tests (Depends-on): Likewise.
16028         * modules/trunc-tests (Depends-on): Likewise.
16029         * modules/truncf-tests (Depends-on): Likewise.
16030         * modules/truncl-tests (Depends-on): Likewise.
16031
16032         strtod: work around icc bug
16033         * lib/strtod.c (minus_zero): Define to working value.
16034         (strtod): Use it to avoid icc bug.
16035
16036         copysign: enhance tests
16037         * modules/copysign-tests (Files): Add minus-zero.h.
16038         * tests/test-copysign.c (main): Also test zeros.
16039
16040 2010-11-04  Eric Blake  <eblake@redhat.com>
16041
16042         ceil, floor, round, trunc: enhance tests of -0
16043         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16044         * tests/test-ceill.c (main): Likewise.
16045         * tests/test-floorf1.c (main): Likewise.
16046         * tests/test-floorl.c (main): Likewise.
16047         * tests/test-round1.c (main): Likewise.
16048         * tests/test-roundf1.c (main): Likewise.
16049         * tests/test-roundl.c (main): Likewise.
16050         * tests/test-trunc1.c (main): Likewise.
16051         * tests/test-truncf1.c (main): Likewise.
16052         * tests/test-truncl.c (main): Likewise.
16053
16054 2010-11-04  Eric Blake  <eblake@redhat.com>
16055
16056         frexp, tests: work around ICC bug with -zero
16057         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16058         works with more compilers.
16059         * tests/minus-zero.h: New file.
16060         * modules/ceilf-tests (Files): Include it.
16061         * modules/ceill-tests (Files): Likewise.
16062         * modules/floorf-tests (Files): Likewise.
16063         * modules/floorl-tests (Files): Likewise.
16064         * modules/frexp-nolibm-tests (Files): Likewise.
16065         * modules/frexp-tests (Files): Likewise.
16066         * modules/frexpl-nolibm-tests (Files): Likewise.
16067         * modules/frexpl-tests (Files): Likewise.
16068         * modules/isnan-tests (Files): Likewise.
16069         * modules/isnand-nolibm-tests (Files): Likewise.
16070         * modules/isnand-tests (Files): Likewise.
16071         * modules/isnanf-nolibm-tests (Files): Likewise.
16072         * modules/isnanf-tests (Files): Likewise.
16073         * modules/isnanl-nolibm-tests (Files): Likewise.
16074         * modules/isnanl-tests (Files): Likewise.
16075         * modules/round-tests (Files): Likewise.
16076         * modules/roundf-tests (Files): Likewise.
16077         * modules/roundl-tests (Files): Likewise.
16078         * modules/ldexpl-tests (Files): Likewise.
16079         * modules/signbit-tests (Files): Likewise.
16080         * modules/snprintf-posix-tests (Files): Likewise.
16081         * modules/sprintf-posix-tests (Files): Likewise.
16082         * modules/strtod-tests (Files): Likewise.
16083         * modules/trunc-tests (Files): Likewise.
16084         * modules/truncf-tests (Files): Likewise.
16085         * modules/truncl-tests (Files): Likewise.
16086         * modules/vsnprintf-posix-tests (Files): Likewise.
16087         * modules/vsprintf-posix-tests (Files): Likewise.
16088         * modules/vasnprintf-posix-tests (Files): Likewise.
16089         * modules/vasprintf-posix-tests (Files): Likewise.
16090         * tests/test-ceilf1.c (main): Use it.
16091         * tests/test-ceill.c (main): Likewise.
16092         * tests/test-floorf1.c (main): Likewise.
16093         * tests/test-floorl.c (main): Likewise.
16094         * tests/test-frexp.c (main): Likewise.
16095         * tests/test-frexpl.c (main): Likewise.
16096         * tests/test-isnan.c (main): Likewise.
16097         * tests/test-isnand.h (main): Likewise.
16098         * tests/test-isnanf.h (main): Likewise.
16099         * tests/test-isnanl.h (main): Likewise.
16100         * tests/test-ldexpl.c (main): Likewise.
16101         * tests/test-round.c (main): Likewise.
16102         * tests/test-roundf.c (main): Likewise.
16103         * tests/test-roundl.c (main): Likewise.
16104         * tests/test-signbit.c (test_signbitf, test_signbitd)
16105         (test_signbitl): Likewise.
16106         * tests/test-snprintf-posix.h (test_function): Likewise.
16107         * tests/test-sprintf-posix.h (test_function): Likewise.
16108         * tests/test-strtod.c (main): Likewise.
16109         * tests/test-trunc1.c (main): Likewise.
16110         * tests/test-truncf1.c (main): Likewise.
16111         * tests/test-truncl.c (main): Likewise.
16112
16113         isnanl: work around icc bug
16114         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16115
16116 2010-11-03  Eric Blake  <eblake@redhat.com>
16117
16118         tests: fix compiler warnings
16119         * tests/test-getopt.h (test_getopt): Fix condition.
16120         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16121         * tests/test-pipe2.c (main): Likewise.
16122         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16123
16124         utimens: fix broken m4 test
16125         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16126
16127 2010-10-28  Bruno Haible  <bruno@clisp.org>
16128
16129         posix_spawn*, getdtablesize: Relax license.
16130         * modules/posix_spawn (License): Change to LGPLv2+.
16131         * modules/posix_spawnp (License): Likewise.
16132         * modules/posix_spawn-internal (License): Likewise.
16133         * modules/posix_spawnattr_init (License): Likewise.
16134         * modules/posix_spawnattr_getflags (License): Likewise.
16135         * modules/posix_spawnattr_setflags (License): Likewise.
16136         * modules/posix_spawnattr_getpgroup (License): Likewise.
16137         * modules/posix_spawnattr_setpgroup (License): Likewise.
16138         * modules/posix_spawnattr_getschedparam (License): Likewise.
16139         * modules/posix_spawnattr_setschedparam (License): Likewise.
16140         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16141         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16142         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16143         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16144         * modules/posix_spawnattr_getsigmask (License): Likewise.
16145         * modules/posix_spawnattr_setsigmask (License): Likewise.
16146         * modules/posix_spawnattr_destroy (License): Likewise.
16147         * modules/posix_spawn_file_actions_init (License): Likewise.
16148         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16149         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16150         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16151         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16152         * modules/getdtablesize (License): Likewise.
16153         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16154
16155 2010-10-26  Bruno Haible  <bruno@clisp.org>
16156
16157         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16158         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16159         Cygwin and mingw.
16160         Suggested by Eric Blake.
16161
16162 2010-10-26  Bruno Haible  <bruno@clisp.org>
16163
16164         stdio: Work around compilation error due to renameat() on Solaris 10.
16165         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16166         * lib/renameat.c: Don't include <unistd.h> here.
16167         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16168         Reported by Paul Eggert and Eric Blake.
16169
16170 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16171
16172         renameat: port to Solaris 10, which declares renameat in unistd.h
16173
16174         * lib/renameat.c: Include unistd.h before stdio.h, because
16175         Solaris 10 declares renameat in unistd.h.  Problem encountered
16176         when building GNU tar 1.24 on Solaris 10.
16177
16178 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16179
16180         fdopendir: fix C89 compilation
16181         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16182         compilers.
16183
16184 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16185
16186         inttostr: simplify by removing unnecessary redundancy
16187         * lib/anytostr.c: Don't include verify.h.
16188         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16189         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16190         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16191         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16192         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16193         Likewise.
16194         * modules/inttostr (Depends-on): Remove 'verify'.
16195
16196 2010-10-23  Bruno Haible  <bruno@clisp.org>
16197
16198         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16199         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16200         Reported by Eric Blake.
16201
16202 2010-10-23  Bruno Haible  <bruno@clisp.org>
16203
16204         Tests: Fix LOCALE_JA on MirBSD 10.
16205         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16206         to an UTF-8 locale.
16207         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16208         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16209         Reported by Eric Blake.
16210
16211 2010-10-21  Bruno Haible  <bruno@clisp.org>
16212
16213         nl_langinfo test: Avoid test failure on NetBSD 5.
16214         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16215         Reported by Eric Blake.
16216
16217 2010-10-21  Eric Blake  <eblake@redhat.com>
16218
16219         c-stack: work around libsigsegv 2.8 bug
16220         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16221         overflow on at least PowerPC64.
16222
16223 2010-10-17  Bruno Haible  <bruno@clisp.org>
16224
16225         userspec: Drop redundant file.
16226         * modules/userspec (Files): Remove lib/inttostr.h.
16227
16228 2010-10-17  Bruno Haible  <bruno@clisp.org>
16229
16230         nl_langinfo tests: Silence some warnings.
16231         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16232         Reported by Jim Meyering.
16233
16234 2010-10-17  Bruno Haible  <bruno@clisp.org>
16235
16236         Make use of GCC's attribute __alloc_size__.
16237         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16238         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16239         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16240         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16241         __alloc_size__.
16242         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16243         Suggested by Jim Meyering.
16244
16245 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16246
16247         bootstrap: anchor .gitignore entries.
16248         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16249         with...
16250         (insert_vc_ignore): ... this new function, which prepends `/' to
16251         all .gitignore entries before passing them to
16252         insert_sorted_if_absent.
16253
16254 2010-10-16  Bruno Haible  <bruno@clisp.org>
16255
16256         nextafter: Fix configure check.
16257         * modules/nextafter (configure.ac): Correct expected prototype.
16258
16259 2010-10-16  Bruno Haible  <bruno@clisp.org>
16260
16261         termios: Update documentation.
16262         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16263
16264 2010-10-16  Bruno Haible  <bruno@clisp.org>
16265
16266         tests: Make them compile with TinyCC.
16267         * tests/test-strstr.c (main): Remove parentheses around array
16268         initializer.
16269
16270 2010-10-15  Eric Blake  <eblake@redhat.com>
16271
16272         ignore-value: make header idempotent
16273         * lib/ignore-value.h: Add double-inclusion guards.
16274         Reported by Stefan Berger.
16275
16276 2010-10-15  Jim Meyering  <meyering@redhat.com>
16277
16278         GNUmakefile: handle "stable" target, not "major"
16279         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16280         lists in maint.mk and announce-gen.  Without this, "make stable"
16281         would fail to ensure that $(VERSION) is up to date.
16282
16283 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16284
16285         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16286         & co.
16287
16288 2010-10-14  Bruno Haible  <bruno@clisp.org>
16289
16290         vasnprintf: Don't set errno to 0.
16291         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16292         block that sets it to 0.
16293         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16294
16295 2010-10-14  Bruno Haible  <bruno@clisp.org>
16296
16297         socketlib: Fix.
16298         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16299         gl_PREREQ_SYS_H_WINSOCK2.
16300         Reported by Ian Beckwith <ianb@erislabs.net>.
16301
16302 2010-10-13  Jim Meyering  <meyering@redhat.com>
16303
16304         test-select-stdin.c: avoid warn_unused_result warnings
16305         * tests/test-select-stdin.c: Include "macros.h".
16306         ASSERT that read and fflush succeed.
16307
16308 2010-10-13  Jim Meyering  <meyering@redhat.com>
16309
16310         git-version-gen: do require git-VC'd files in cwd
16311         * build-aux/git-version-gen: Reject a git version string
16312         if there are no commits associated with the current directory.
16313         This avoids an unlikely false-positive (unrelated dir whose parent
16314         repository also contains a tag matching v*), as pointed out
16315         by Giuseppe Scrivano in
16316         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16317
16318 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16319
16320         argv-iter: omit nonconforming declaration
16321         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16322         enum arg_iter_err declaration, which doesn't conform to C99.
16323         Solaris 10 cc warns about this.
16324
16325 2010-10-13  Eric Blake  <eblake@redhat.com>
16326
16327         termios: fix compilation on mingw
16328         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16329         (gl_TERMIOS_H): Adjust it on mingw.
16330         * modules/termios (Makefile.am): Substitute new key.
16331         * lib/termios.in.h (includes): Make include_next conditional.
16332         * doc/posix-headers/termios.texi (termios.h): Update
16333         documentation.
16334         Reported by Daniel P. Berrange.
16335
16336 2010-10-13  Jim Meyering  <meyering@redhat.com>
16337
16338         git-version-gen: don't require that .git/ be in the current dir
16339         * build-aux/git-version-gen: Adjust this script so that it works
16340         when run from any working directory beneath the top-level .git/-
16341         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16342         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16343
16344         test-select: avoid warn_unused_result warnings
16345         * tests/test-select.c: Include "macros.h".
16346         ASSERT that each call to read, write, and pipe succeeds.
16347         While not technically required, also check each "close".
16348         * modules/select-tests (Files): Add tests/macros.h.
16349
16350         test-symlinkat: remove declaration of unused local
16351         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16352
16353         test-inttostr: avoid shadowing warnings
16354         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16355         and use malloc rather than the stack for the same reason as
16356         mentioned in the comment justifying the other allocation.
16357
16358 2010-10-11  Bruno Haible  <bruno@clisp.org>
16359
16360         stdlib: Allow multiple gnulib generated replacements to coexist.
16361         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16362         Reported by Sam Steingold <sds@gnu.org>.
16363
16364 2010-10-11  Jim Meyering  <meyering@redhat.com>
16365
16366         fix a documentation typo
16367         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16368
16369 2010-10-11  Eric Blake  <eblake@redhat.com>
16370
16371         futimens: work around Solaris 11 bug
16372         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16373         * tests/test-futimens.h (test_futimens): Enhance, rather than
16374         weaken test.
16375         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16376
16377 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16378
16379         Indentation.
16380         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16381         higher-level operators more to the left.
16382
16383 2010-10-11  Jim Meyering  <meyering@redhat.com>
16384
16385         test-futimens: avoid unwarranted test failure on Solaris 5.11
16386         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16387         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16388         because it tries to dereference the NULL name argument.
16389
16390 2010-10-11  Bruno Haible  <bruno@clisp.org>
16391
16392         Indentation.
16393         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16394         indentation.
16395
16396 2010-10-11  Jim Meyering  <meyering@redhat.com>
16397
16398         spawn.in.h: make indentation consistent with parentheses
16399         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16400         Make indentation consistent with parentheses.
16401
16402 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16403
16404         Fix mismatched parens in previous commit
16405         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16406         parens.
16407
16408 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16409
16410         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16411
16412         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16413         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16414         * lib/malloca.c: Include "verify.h".
16415         (verify1): Remove, replacing with a verify call.
16416         * lib/relocwrapper.c (verify1): Likewise.
16417         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16418         Likewise.
16419         * modules/malloca (Depends-on): Add 'verify'.
16420         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16421         * modules/vasnprintf (Depends-on): Add 'verify'.
16422         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16423         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16424         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16425         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16426         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16427         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16428         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16429
16430         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16431
16432         Formerly the style was sometimes 2*X - 1, because the C standard
16433         was wrongly thought to disallow ?: in integral constant expressions.
16434         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16435         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16436         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16437         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16438         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16439         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16440         verify that time_t cannot be floating.
16441
16442 2010-10-08  Eric Blake  <eblake@redhat.com>
16443
16444         time: enforce recent POSIX ruling that time_t is integral
16445         * lib/time.in.h (__time_t_must_be_integral): Detect any
16446         problematic systems, allowing the rest of gnulib to assume POSIX.
16447
16448 2010-10-08  Jim Meyering  <meyering@redhat.com>
16449
16450         fdopendir: fix a bug on systems lacking openat and /proc support
16451         OpenBSD 4.7 is one such system.  The most noticeable effect was
16452         failure of any application making nontrivial use of fts: rm, du,
16453         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16454           ./rm: traversal failed: `a': Bad file descriptor
16455         Debugging that, you see that even though FD 6 was closed just
16456         prior to the opendir call in fd_clone_opendir, its resulting
16457         dir->dd_fd was 8, rather than the expected value of 6:
16458
16459         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16460         93                close (fd);
16461         (gdb) n
16462         94                dir = fd_clone_opendir (dupfd);
16463         (gdb) n
16464         95                saved_errno = errno;
16465         (gdb) p dir->dd_fd
16466         $11 = 8
16467
16468         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16469         The problem is that on OpenBSD, fd_clone_opendir has to resort
16470         to using the old-style save/restore CWD mechanism, due to its
16471         lack of openat/proc support, and *that* would steal the FD (6)
16472         that opendir was supposed to use.
16473
16474         The fix is to squirrel away the desired FD so that save_cwd uses a
16475         different one, and then free the dest FD right before calling opendir.
16476         That guarantees opendir will use the required file descriptor.
16477
16478         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16479
16480 2010-10-08  Bruno Haible  <bruno@clisp.org>
16481
16482         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16483         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16484
16485 2010-10-08  Bruno Haible  <bruno@clisp.org>
16486
16487         nanosleep: Make replacement POSIX compliant.
16488         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16489         is out of range.
16490         Reported by Jim Meyering.
16491
16492 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16493
16494         bootstrap: add hook for altering gnulib.mk, for Bison
16495         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16496         the Bison bootstrapping process can rewrite file names and variables
16497         in this file before later parts of 'bootstrap' use the file.
16498         Bison wants to include lib/gnulib.mk from the top-level makefile,
16499         so it needs the file names in this file to be relative to the top
16500         level, not relative to lib; plus it needs variable names to be
16501         rewritten.
16502         (slurp): Use the new function.
16503
16504         bootstrap: reformat for readability
16505         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16506
16507 2010-10-08  Eric Blake  <eblake@redhat.com>
16508
16509         docs: update cygwin progress
16510         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16511         1.7.7.
16512         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16513         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16514         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16515         * doc/posix-functions/carg.texi (carg): Likewise.
16516         * doc/posix-functions/cargf.texi (cargf): Likewise.
16517         * doc/posix-functions/casin.texi (casin): Likewise.
16518         * doc/posix-functions/casinf.texi (casinf): Likewise.
16519         * doc/posix-functions/casinh.texi (casinh): Likewise.
16520         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16521         * doc/posix-functions/catan.texi (catan): Likewise.
16522         * doc/posix-functions/catanf.texi (catanf): Likewise.
16523         * doc/posix-functions/catanh.texi (catanh): Likewise.
16524         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16525         * doc/posix-functions/ccos.texi (ccos): Likewise.
16526         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16527         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16528         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16529         * doc/posix-functions/cexp.texi (cexp): Likewise.
16530         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16531         * doc/posix-functions/cimag.texi (cimag): Likewise.
16532         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16533         * doc/posix-functions/clog.texi (clog): Likewise.
16534         * doc/posix-functions/clogf.texi (clogf): Likewise.
16535         * doc/posix-functions/conj.texi (conj): Likewise.
16536         * doc/posix-functions/conjf.texi (conjf): Likewise.
16537         * doc/posix-functions/cpow.texi (cpow): Likewise.
16538         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16539         * doc/posix-functions/cproj.texi (cproj): Likewise.
16540         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16541         * doc/posix-functions/creal.texi (creal): Likewise.
16542         * doc/posix-functions/crealf.texi (crealf): Likewise.
16543         * doc/posix-functions/csin.texi (csin): Likewise.
16544         * doc/posix-functions/csinf.texi (csinf): Likewise.
16545         * doc/posix-functions/csinh.texi (csinh): Likewise.
16546         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16547         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16548         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16549         * doc/posix-functions/ctan.texi (ctan): Likewise.
16550         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16551         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16552         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16553         * doc/posix-headers/complex.texi (complex.h): Likewise.
16554
16555 2010-10-07  Jim Meyering  <meyering@redhat.com>
16556
16557         parse-datetime: avoid compilation failure on OpenBSD 4.7
16558         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16559         This works around a compilation failure on OpenBSD 4.7:
16560         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16561
16562 2010-10-07  Eric Blake  <eblake@redhat.com>
16563
16564         docs: update cygwin progress
16565         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16566         1.7.6.
16567         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16568         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16569         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16570         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16571         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16572         Likewise.
16573         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16574         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16575         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16576         Likewise.
16577         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16578         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16579         Likewise.
16580         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16581         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16582         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16583         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16584         Likewise.
16585         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16586         Likewise.
16587         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16588
16589         docs: update parse-datetime history
16590         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16591         documentation of this function's history and alternatives.
16592
16593         cygwin: use more robust version check
16594         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16595         exclude an eventual cygwin 1.9.1.
16596         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16598         (gl_FUNC_STRCASESTR): Likewise.
16599         Reported by Bruno Haible.
16600
16601 2010-10-06  Bruno Haible  <bruno@clisp.org>
16602
16603         string, sys_select: Avoid #including large headers unless necessary.
16604         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16605         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16606         OSF/1, BeOS, Haiku.
16607         Reported by Jim Meyering.
16608
16609 2010-10-05  Eric Blake  <eblake@redhat.com>
16610
16611         memmem, strstr, strcasestr: fix bug with long periodic needle
16612         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16613         periodic needle having false positive.
16614         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16615         and cygwin 1.7.7.
16616         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16617         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16618         (gl_FUNC_STRCASESTR): Likewise.
16619         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16620         * tests/test-memmem.c (main): Expose the bug.
16621         * tests/test-strcasestr.c (main): Likewise.
16622         * tests/test-strstr.c (main): Likewise.
16623         * tests/test-c-strcasestr.c (main): Likewise.
16624         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16625         * doc/posix-functions/strstr.texi (strstr): Likewise.
16626         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16627         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16628
16629 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16630
16631         parse-datetime: do some more renaming
16632         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16633         parse_datetime, not get_date.  Mention the renaming.
16634         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16635         in comments.
16636         * m4/bison.m4: Likewise.
16637
16638 2010-10-05  Eric Blake  <eblake@redhat.com>
16639
16640         parse-datetime: better name than get_date
16641         * NEWS: Reword the deprecation notice.
16642         * modules/get_date: Rename to modules/parse-datetime.
16643         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16644         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16645         * lib/get_date.y: Rename to lib/parse-datetime.y.
16646         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16647         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16648         * doc/getdate.texi: Provide fallback wrapper.
16649         * lib/getdate.h: Move guts, and wrap...
16650         * lib/parse-datetime.h: ...new file.
16651         * lib/parse-datetime.y (get_date): Rename...
16652         (parse_datetime): ...to this.
16653         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16654         (gl_PARSE_DATETIME): ...to this.
16655         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16656         documentation.
16657         * modules/getdate (Files): Provide fallback docs and header.
16658         (Notice, Depends-on): Update references.
16659         * tests/test-parse-datetime.c: Likewise.
16660         * DEPENDENCIES: Likewise.
16661         * MODULES.html.sh (Date and time <time.h>): Likewise.
16662         * doc/parse-datetime.texi (Date input formats)
16663         (Authors of parse_datetime): Likewise.
16664         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16665         (Include): Likewise.
16666         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16667         * gnulib-tool: Likewise.
16668         * m4/bison.m4 (gl_BISON): Likewise.
16669         Suggested by Bruno Haible.
16670
16671 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16672
16673         more ports to Solaris tr, which needs [] around ranges
16674         * gnulib-tool: Solaris tr needs [] around ranges.
16675         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16676         * tests/test-pipe-filter-gi1.c (main): Likewise.
16677         * tests/test-pipe-filter-ii1.c (main): Likewise.
16678
16679 2010-10-05  Eric Blake  <eblake@redhat.com>
16680
16681         bootstrap: fix Solaris regression
16682         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16683         around ranges.
16684         Reported by Pádraig Brady.
16685
16686         bootstrap: work with pkg-config
16687         * build-aux/bootstrap (check_versions): Also transliterate - in
16688         prerequisite name.
16689         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16690         prerequisites that were already found, to avoid confusion.
16691         Reported by Justin Clift.
16692
16693         faccessat: remove unused wrappers
16694         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16695         presence of these wrappers dragged in -lgen on Solaris.
16696         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16697
16698 2010-10-05  Jim Meyering  <meyering@redhat.com>
16699
16700         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16701         * Makefile (sc_pragma_columns): New syntax-check rule.
16702
16703 2010-10-04  Bruno Haible  <bruno@clisp.org>
16704
16705         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16706         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16707         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16708         Reported by Bruce Korb and Eric Blake.
16709
16710 2010-10-04  Bruno Haible  <bruno@clisp.org>
16711
16712         threadlib: Make option --with-libpth-prefix work.
16713         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16714         use $LIBPTH, not just -lpth.
16715
16716 2010-10-04  Bruno Haible  <bruno@clisp.org>
16717
16718         Avoid line length limitation from HP NonStop system header files.
16719         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16720         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16721         * lib/ctype.in.h: Likewise.
16722         * lib/dirent.in.h: Likewise.
16723         * lib/errno.in.h: Likewise.
16724         * lib/fcntl.in.h: Likewise.
16725         * lib/float.in.h: Likewise.
16726         * lib/getopt.in.h: Likewise.
16727         * lib/iconv.in.h: Likewise.
16728         * lib/inttypes.in.h: Likewise.
16729         * lib/langinfo.in.h: Likewise.
16730         * lib/locale.in.h: Likewise.
16731         * lib/math.in.h: Likewise.
16732         * lib/netdb.in.h: Likewise.
16733         * lib/netinet_in.in.h: Likewise.
16734         * lib/poll.in.h: Likewise.
16735         * lib/pthread.in.h: Likewise.
16736         * lib/pty.in.h: Likewise.
16737         * lib/sched.in.h: Likewise.
16738         * lib/se-selinux.in.h: Likewise.
16739         * lib/search.in.h: Likewise.
16740         * lib/signal.in.h: Likewise.
16741         * lib/spawn.in.h: Likewise.
16742         * lib/stdarg.in.h: Likewise.
16743         * lib/stddef.in.h: Likewise.
16744         * lib/stdint.in.h: Likewise.
16745         * lib/stdio.in.h: Likewise.
16746         * lib/stdlib.in.h: Likewise.
16747         * lib/string.in.h: Likewise.
16748         * lib/strings.in.h: Likewise.
16749         * lib/sys_file.in.h: Likewise.
16750         * lib/sys_ioctl.in.h: Likewise.
16751         * lib/sys_select.in.h: Likewise.
16752         * lib/sys_socket.in.h: Likewise.
16753         * lib/sys_stat.in.h: Likewise.
16754         * lib/sys_time.in.h: Likewise.
16755         * lib/sys_times.in.h: Likewise.
16756         * lib/sys_utsname.in.h: Likewise.
16757         * lib/sys_wait.in.h: Likewise.
16758         * lib/sysexits.in.h: Likewise.
16759         * lib/termios.in.h: Likewise.
16760         * lib/time.in.h: Likewise.
16761         * lib/unistd.in.h: Likewise.
16762         * lib/wchar.in.h: Likewise.
16763         * lib/wctype.in.h: Likewise.
16764         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16765         * modules/ctype (Makefile.am): Likewise.
16766         * modules/dirent (Makefile.am): Likewise.
16767         * modules/errno (Makefile.am): Likewise.
16768         * modules/fcntl-h (Makefile.am): Likewise.
16769         * modules/float (Makefile.am): Likewise.
16770         * modules/getopt-posix (Makefile.am): Likewise.
16771         * modules/iconv-h (Makefile.am): Likewise.
16772         * modules/inttypes (Makefile.am): Likewise.
16773         * modules/langinfo (Makefile.am): Likewise.
16774         * modules/locale (Makefile.am): Likewise.
16775         * modules/math (Makefile.am): Likewise.
16776         * modules/netdb (Makefile.am): Likewise.
16777         * modules/netinet_in (Makefile.am): Likewise.
16778         * modules/poll-h (Makefile.am): Likewise.
16779         * modules/pthread (Makefile.am): Likewise.
16780         * modules/pty (Makefile.am): Likewise.
16781         * modules/sched (Makefile.am): Likewise.
16782         * modules/search (Makefile.am): Likewise.
16783         * modules/selinux-h (Makefile.am): Likewise.
16784         * modules/signal (Makefile.am): Likewise.
16785         * modules/spawn (Makefile.am): Likewise.
16786         * modules/stdarg (Makefile.am): Likewise.
16787         * modules/stddef (Makefile.am): Likewise.
16788         * modules/stdint (Makefile.am): Likewise.
16789         * modules/stdio (Makefile.am): Likewise.
16790         * modules/stdlib (Makefile.am): Likewise.
16791         * modules/string (Makefile.am): Likewise.
16792         * modules/strings (Makefile.am): Likewise.
16793         * modules/sys_file (Makefile.am): Likewise.
16794         * modules/sys_ioctl (Makefile.am): Likewise.
16795         * modules/sys_select (Makefile.am): Likewise.
16796         * modules/sys_socket (Makefile.am): Likewise.
16797         * modules/sys_stat (Makefile.am): Likewise.
16798         * modules/sys_time (Makefile.am): Likewise.
16799         * modules/sys_times (Makefile.am): Likewise.
16800         * modules/sys_utsname (Makefile.am): Likewise.
16801         * modules/sys_wait (Makefile.am): Likewise.
16802         * modules/sysexits (Makefile.am): Likewise.
16803         * modules/termios (Makefile.am): Likewise.
16804         * modules/time (Makefile.am): Likewise.
16805         * modules/unistd (Makefile.am): Likewise.
16806         * modules/wchar (Makefile.am): Likewise.
16807         * modules/wctype (Makefile.am): Likewise.
16808
16809 2010-10-04  Bruno Haible  <bruno@clisp.org>
16810
16811         read-file tests: Avoid a test failure on NonStop Kernel.
16812         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16813         a regular file.
16814         Reported by Joachim Schmitz <schmitz@hp.com>.
16815
16816 2010-10-03  Bruno Haible  <bruno@clisp.org>
16817
16818         gnulib-tool: Fixes for --create-testdir with --libtool.
16819         * gnulib-tool (func_get_automake_snippet): Don't augment
16820         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16821         an executable.
16822         (func_create_testdir): Handle module 'alloca' like func_import.
16823         Reported by Bruce Korb <bruce.korb@gmail.com>.
16824
16825 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16826
16827         Avoid some lines longer than 80 characters.
16828         * lib/stdint.in.h: Break long comment lines.
16829         * lib/math.in.h: Likewise.
16830         (_GL_NUM_UINT_WORDS): New macro, for readability.
16831         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16832         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16833         * lib/stdlib.in.h: Likewise.
16834         * lib/spawn.in.h: Likewise.
16835         * lib/sys_socket.in.h: Update an URL.
16836         * lib/sys_stat.in.h: Break long line.
16837
16838 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16839
16840         Improve pmccabe2html.
16841         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16842         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16843         when the sources change. Remove the line in the HTML about "Used
16844         ranges" (which implied that there might be other unused ranges),
16845         rename "Resume" to "Summary" (easier to understand for more users).
16846         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16847         styles, and some unnecessary blank lines.
16848
16849 2010-10-03  Bruno Haible  <bruno@clisp.org>
16850             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16851
16852         acl: Add support for ACLs on NonStop Kernel.
16853         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16854         Check whether the function aclsort() exists.
16855         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16856         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16857         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16858         (acl_nontrivial [HAVE_ACLSORT]: New function.
16859         (file_has_acl): Implement for NonStop Kernel.
16860         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16861         (qset_acl): Implement for NonStop Kernel.
16862         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16863         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16864         (main): Implement for NonStop Kernel.
16865         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16866         Kernel. Handle this flavor.
16867         * tests/test-set-mode-acl.sh: Likewise.
16868         * tests/test-copy-acl.sh: Likewise.
16869         * tests/test-copy-file.sh: Likewise.
16870
16871 2010-10-03  Bruno Haible  <bruno@clisp.org>
16872
16873         Info about ACLs on NonStop Kernel.
16874         * doc/acl-resources.txt: Add info about NonStop Kernel.
16875         References by Joachim Schmitz <schmitz@hp.com>.
16876
16877 2010-10-02  Bruno Haible  <bruno@clisp.org>
16878
16879         Define missing EDQUOT on NonStop Kernel.
16880         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16881         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16882         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16883         missing.
16884         * doc/posix-headers/errno.texi: Mention the NSK bug.
16885         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16886         Reported by Joachim Schmitz <schmitz@hp.com>.
16887
16888 2010-10-02  Bruno Haible  <bruno@clisp.org>
16889
16890         Update doc for POSIX:2008.
16891         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16892         Update URL of POSIX specification.
16893
16894 2010-10-02  Bruno Haible  <bruno@clisp.org>
16895
16896         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16897         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16898         from gnulib, not from Automake.
16899
16900 2010-10-02  Bruno Haible  <bruno@clisp.org>
16901
16902         New module 'system-posix'.
16903         * modules/system-posix: New file.
16904         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16905         module is present.
16906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16907         GNULIB_SYSTEM_POSIX.
16908         * modules/stdlib (Depends-on): Remove sys_wait.
16909         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16910         * doc/posix-functions/system.texi: Mention the new module.
16911         * doc/posix-headers/stdlib.texi: Likewise.
16912         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16913         define test_sys_wait_macros to a no-op.
16914         Reported by Sam Steingold <sds@gnu.org>.
16915
16916 2010-09-30  Bruno Haible  <bruno@clisp.org>
16917
16918         More renaming from 'getdate' to 'get_date'.
16919         * doc/get_date.texi: Renamed from doc/getdate.texi.
16920         * modules/get_date (Files): Update.
16921         * MODULES.html.sh (Date and time <time.h>): Update.
16922         * DEPENDENCIES: Update.
16923         * gnulib-tool: Update comment.
16924         * m4/bison.m4 (gl_BISON): Likewise.
16925         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16926
16927 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16928
16929         bootstrap: support ACLOCAL_FLAGS during aclocal
16930         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16931         can add additional -I dir for third-party .m4 files.
16932
16933 2010-09-30  Eric Blake  <eblake@redhat.com>
16934
16935         bootstrap: use glibtoolize on MacOS
16936         * build-aux/bootstrap (check_versions): Convert libtool into
16937         libtoolize.
16938         (tool search): Move libtool check earlier, and look for
16939         glibtoolize for MacOS.
16940         (gnulib_tool_options): Auto-add --libtool when appropriate.
16941         Reported by Justin Clift.
16942
16943         poll: fix typo that broke test on MacOS
16944         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16945         Reported by Justin Clift.
16946
16947         getdate: rename to get_date
16948         Note: getdate.h is not renamed, to minimize client impact.
16949         * modules/getdate: Mark obsolete.  Move old contents...
16950         * modules/get_date: ...to new module name.
16951         * modules/getdate-tests: Move...
16952         * modules/get_date-tests: ...here.
16953         * m4/getdate.m4: Move...
16954         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16955         * lib/getdate.y: Move...
16956         * lib/get_date.y: ...here.
16957         * tests/test-getdate.c: Move...
16958         * tests/test-get_date.c: ...here.
16959         * doc/posix-functions/getdate.texi (getdate): Update name.
16960         * NEWS: Mention the change.
16961
16962 2010-09-29  Bruno Haible  <bruno@clisp.org>
16963
16964         Separate the module 'waitpid' from the module 'sys_wait'.
16965         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16966         present.
16967         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16968         gl_MODULE_INDICATOR_FOR_TESTS.
16969         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16970         * modules/sys_wait (Depends-on): Remove waitpid.
16971         (Makefile.am): Substitute GNULIB_WAITPID.
16972         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16973         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16974         signature only if the 'waitpid' module is present.
16975         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16976         * NEWS: Mention the change.
16977         * modules/grantpt (Depends-on): Add waitpid.
16978         * modules/wait-process (Depends-on): Likewise.
16979
16980 2010-09-29  Bruno Haible  <bruno@clisp.org>
16981
16982         More tests for module 'sys_wait'.
16983         * modules/sys_wait-c++-tests: New file.
16984         * tests/test-sys_wait-c++.cc: New file.
16985         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16986         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16987
16988 2010-09-29  Bruno Haible  <bruno@clisp.org>
16989
16990         New module 'waitpid'.
16991         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16992         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16993         Don't include <process.h>.
16994         (waitpid): Declare only, using modern idiom.
16995         * m4/waitpid.m4: New file.
16996         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16997         * modules/waitpid: New file.
16998         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16999         (Makefile.am): Update.
17000         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17001
17002 2010-09-28  Bruno Haible  <bruno@clisp.org>
17003
17004         poll: Assume ANSI C.
17005         * lib/poll.c (poll): Use an ANSI C declaration.
17006
17007 2010-09-28  Bruno Haible  <bruno@clisp.org>
17008
17009         poll-h: Create poll.h on all platforms.
17010         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17011         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17012         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17013         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17014         (gl_REPLACE_POLL_H): Don't set POLL_H.
17015         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17016         * modules/poll-h (Depends-on): Add include_next.
17017         (Makefile.am): Create poll.h unconditionally. Substitute also
17018         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17019
17020 2010-09-28  Bruno Haible  <bruno@clisp.org>
17021
17022         Tests for module 'poll-h'.
17023         * modules/poll-h-c++-tests: New file.
17024         * tests/test-poll-h-c++.cc: New file.
17025
17026         Tests for module 'poll-h'.
17027         * modules/poll-h-tests: New file.
17028         * tests/test-poll-h.c: New file.
17029
17030 2010-09-28  Bruno Haible  <bruno@clisp.org>
17031
17032         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17033         * modules/poll-h (Depends-on): Add 'extensions'.
17034
17035 2010-09-28  Bruno Haible  <bruno@clisp.org>
17036
17037         New module 'poll-h'.
17038         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17039         (poll): Use modern idiom.
17040         * modules/poll-h: New file.
17041         * modules/poll (Files): Remove lib/poll.in.h.
17042         (Depends-on): Add poll-h.
17043         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17044         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17045         * m4/poll_h.m4: New file.
17046         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17047         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17048         and invoke gl_REPLACE_POLL_H.
17049         * lib/poll.c: Use common idiom.
17050         * tests/test-poll.c: Likewise.
17051         * doc/posix-headers/poll.texi: Mention the poll-h module.
17052         Suggested by Eric Blake.
17053
17054 2010-09-26  Bruno Haible  <bruno@clisp.org>
17055
17056         sys_wait: Implement WSTOPSIG.
17057         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17058         Reported by Simon Josefsson.
17059
17060 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17061
17062         stdlib, sys_wait: Avoid compilation error on mingw.
17063         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17064
17065 2010-09-26  Bruno Haible  <bruno@clisp.org>
17066
17067         stdlib tests: Avoid code duplication.
17068         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17069         * modules/sys_wait-tests (Files): Likewise.
17070         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17071         * tests/test-stdlib.c: Include test-sys_wait.h.
17072         (main): Invoke test_sys_wait_macros.
17073         * tests/test-sys_wait.c: Include test-sys_wait.h.
17074         (main): Invoke test_sys_wait_macros.
17075
17076 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17077
17078         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17079         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17080         sure Windows sockets are working before calling getaddrinfo.
17081         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17082         * doc/gnulib.texi (Windows sockets): Fix typo.
17083
17084 2010-09-25  Bruno Haible  <bruno@clisp.org>
17085
17086         Tests for module 'regex-quote'.
17087         * modules/regex-quote-tests: New file.
17088         * tests/test-regex-quote.c: New file.
17089
17090         New module 'regex-quote'.
17091         * lib/regex-quote.h: New file.
17092         * lib/regex-quote.c: New file.
17093         * modules/regex-quote: New file.
17094         Suggested by Reuben Thomas <rrt@sc3d.org>.
17095
17096 2010-09-24  Bruno Haible  <bruno@clisp.org>
17097
17098         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17099         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17100
17101 2010-09-23  Bruno Haible  <bruno@clisp.org>
17102
17103         setenv: Relax license.
17104         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17105         Blake.
17106         Requested by Eric Blake.
17107
17108 2010-09-22  Bruno Haible  <bruno@clisp.org>
17109
17110         termios: Relax license.
17111         * modules/termios (License): Change to LGPLv2+.
17112         Requested by Eric Blake.
17113
17114 2010-09-22  Bruno Haible  <bruno@clisp.org>
17115
17116         threadlib: Allow the package to change the default to 'no'.
17117         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17118         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17119         Reported by Paul Eggert.
17120
17121 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17122             Bruno Haible  <bruno@clisp.org>
17123
17124         Fix endless loop in mbmemcasecoll.
17125         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17126         byte.
17127         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17128
17129 2010-09-22  Bruno Haible  <bruno@clisp.org>
17130
17131         Tests for module 'memcoll'.
17132         * modules/memcoll-tests: New file.
17133         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17134
17135         memcoll, xmemcoll: Clarify size vs. length.
17136         * modules/memcoll.c (memcoll0): Clarify specification.
17137         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17138         passed to collate_error.
17139
17140 2010-09-22  Bruno Haible  <bruno@clisp.org>
17141
17142         Tests for module 'memcasecmp'.
17143         * modules/memcasecmp-tests: New file.
17144         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17145
17146 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17147
17148         * lib/pthread.in.h: Add split double-inclusion guard, and include
17149         system <pthread.h> if there is one.  Use @@-style as in other
17150         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17151         pthread.h doesn't.
17152         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17153         (pthread_mutexattr_settype, pthread_mutex_trylock):
17154         New static inline functions, if there's no system <pthread.h>.
17155         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17156         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17157         Approximate with mutexes if the system lacks spinlocks, as in
17158         MacOS.
17159         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17160         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17161         @@-style.  Check for spinlocks separately.
17162         (gl_PTHREAD_DEFAULTS): New macro.
17163         * modules/pthread: Redo to use a more typical style for in.h files.
17164
17165 2010-09-21  Eric Blake  <eblake@redhat.com>
17166
17167         net_if: enhance tests
17168         * tests/test-net_if.c (main): Move signature checks earlier.
17169         Print failures to stderr.
17170         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17171         Document the bug that we do not yet fix.
17172
17173 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17174
17175         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17176         about gnulib, not GSS.
17177
17178 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17179
17180         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17181         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17182         for Emacs.
17183         * build-aux/pmccabe2html: Make Makefile.am example code more
17184         cut-and-paste friendly.
17185
17186 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17187
17188         * tests/test-net_if.c: New file.
17189         * modules/net_if-tests: New file.
17190
17191 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17192
17193         pthread: add pthread_spin_destroy
17194         * lib/pthread.in.h (pthread_spin_destroy): New function.
17195
17196 2010-09-19  Bruno Haible  <bruno@clisp.org>
17197
17198         gnulib-tool: Fix --help output.
17199         * gnulib-tool (func_usage): Fix help message.
17200         Reported by Reuben Thomas <rrt@sc3d.org>.
17201
17202 2010-09-18  Jim Meyering  <meyering@redhat.com>
17203
17204         maint.mk: avoid unexpanded \n in two diagnostics
17205         * top/maint.mk (sc_prohibit_always_true_header_tests):
17206         Don't use a literal \n in a halt=... assignment.  It would not be
17207         expanded, and the two \n bytes would appear in the diagnostic output
17208         rather than the desired newline.  Use halt=$$(printf ... instead.
17209         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17210
17211 2010-09-18  Bruno Haible  <bruno@clisp.org>
17212
17213         netinet_in: Doc tweak.
17214         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17215         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17216
17217 2010-09-18  Jim Meyering  <meyering@redhat.com>
17218
17219         init.sh: correct an outdated comment
17220         * tests/init.sh (create_exe_shims_):  s/function/alias/
17221
17222         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17223         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17224         a file named "*.exe" is removed between the glob expansion and the
17225         processing of that oddly named file.
17226
17227 2010-09-17  Eric Blake  <eblake@redhat.com>
17228
17229         mirbsd: add some more support
17230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17231         in BSD family.
17232         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17233         devices as OpenBSD.
17234         * m4/host-os.m4 (mirbsd): Add MirBSD.
17235
17236         tests: fix unportable assumption on sys/wait.h
17237         * tests/test-sys_wait.c (main): Relax test.
17238         * tests/test-stdlib.c (main): Likewise.
17239
17240         init.sh: accomodate directory with no .exes
17241         * tests/init.sh: Accomodate directory containing only scripts.
17242
17243         tests: avoid compiler warning
17244         * tests/test-stdlib.c (main): Use the variable.
17245
17246         fdutimens, fdutimensat: update signature, again
17247         * lib/utimens.h (gl_futimens): Delete, and move signature...
17248         (fdutimens): ...here.
17249         (fdutimensat): Rearrange signature.
17250         (lutimensat): Rename variable for clarity.
17251         * lib/fdutimensat.c (fdutimensat): Update signature.
17252         * lib/utimens.c (fdutimens): Likewise.
17253         (gl_futimens): Delete.
17254         (utimens, lutimens): Update callers.
17255         * lib/futimens.c (futimens): Likewise.
17256         * tests/test-fdutimensat.c: Likewise.
17257         * tests/test-utimens.c: Likewise.
17258         * tests/test-futimens.h: Update comment.
17259         * NEWS: Mention this.
17260         Suggested by Paul Eggert.
17261
17262 2010-09-17  Bruno Haible  <bruno@clisp.org>
17263
17264         Take over the maintenance of some older macros from Autoconf.
17265         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17266         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17267         GNU Autoconf.
17268         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17269         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17270
17271 2010-09-17  Eric Blake  <eblake@redhat.com>
17272
17273         fdutimensat: drop atflag validation
17274         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17275         with valid fd, to close a race scenario where futimens is
17276         unsupported and FILE was replaced by a symlink.
17277         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17278         accordingly.
17279         Suggested by Paul Eggert.
17280
17281 2010-09-16  Bruno Haible  <bruno@clisp.org>
17282
17283         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17284         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17285
17286 2010-09-16  Bruno Haible  <bruno@clisp.org>
17287
17288         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17289         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17290         login_tty exists.
17291         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17292
17293 2010-09-16  Bruno Haible  <bruno@clisp.org>
17294
17295         login_tty: Make the replacement code work on BSD systems.
17296         * lib/login_tty.c: Include <sys/ioctl.h>.
17297         (login_tty): Use ioctl TIOCSCTTY when available.
17298         * modules/login_tty (Depends-on): Add sys_ioctl.
17299         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17300
17301 2010-09-16  Bruno Haible  <bruno@clisp.org>
17302
17303         login_tty: Stricter unit test.
17304         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17305         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17306         and tcgetsid() after login_tty.
17307         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17308
17309 2010-09-16  Bruno Haible  <bruno@clisp.org>
17310
17311         New module 'tcgetsid'.
17312         * lib/tcgetsid.c: New file.
17313         * m4/tcgetsid.m4: New file.
17314         * modules/tcgetsid: New file.
17315         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17316         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17317         GNULIB_TCGETSID, HAVE_TCGETSID.
17318         * lib/termios.in.h: Include <sys/types.h>.
17319         (tcgetsid): New declaration.
17320         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17321         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17322         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17323         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17324
17325 2010-09-16  Bruno Haible  <bruno@clisp.org>
17326
17327         Tests for module 'termios'.
17328         * modules/termios-c++-tests: New file.
17329         * modules/termios-tests: New file.
17330         * tests/test-termios-c++.cc: New file.
17331         * tests/test-termios.c: New file.
17332
17333         New module 'termios'.
17334         * modules/termios: New file.
17335         * lib/termios.in.h: New file.
17336         * m4/termios_h.m4: New file.
17337         * doc/posix-headers/termios.texi: Mention the new module.
17338
17339 2010-09-16  Eric Blake  <eblake@redhat.com>
17340
17341         fdutimensat: add an atflag parameter
17342         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17343         * lib/utimens.h (fdutimensat): Update prototype.
17344         * tests/test-fdutimensat.c: Adjust test to match.
17345         * NEWS: Document the change.
17346         Suggested by Paul Eggert.
17347
17348 2010-09-16  Bruno Haible  <bruno@clisp.org>
17349
17350         Fix typos in comments.
17351         * lib/striconveh.h: Fix typo in comment.
17352         * lib/login_tty.c (login_tty): Likewise.
17353
17354 2010-09-15  Bruno Haible  <bruno@clisp.org>
17355
17356         stdlib: clarify MirBSD WEXITSTATUS bug
17357         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17358         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17359
17360 2010-09-15  Eric Blake  <eblake@redhat.com>
17361
17362         stdlib: work around MirBSD WEXITSTATUS bug
17363         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17364         * modules/stdlib (Depends-on): Add sys_wait.
17365         * tests/test-sys_wait.c (main): Enhance test.
17366         * tests/test-stdlib.c (main): Likewise.
17367         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17368
17369         docs: mention MacOS issue with WEXITSTATUS(constant)
17370         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17371         issue.
17372         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17373
17374         strnlen: add tests
17375         * modules/strnlen-tests: New file.
17376         * tests/test-strnlen.c: Likewise.
17377
17378 2010-09-14  Bruno Haible  <bruno@clisp.org>
17379
17380         unistr/base: Avoid link errors when module 'libunistring' is also used.
17381         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17382         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17383         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17384         Declare also when HAVE_LIBUNISTRING is set.
17385         Reported by Pádraig Brady <P@draigbrady.com>.
17386
17387 2010-09-14  Eric Blake  <eblake@redhat.com>
17388
17389         test-rawmemchr: make more robust
17390         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17391         (Depends-on, configure.ac): Add needed prerequisites to use it.
17392         * modules/memchr-tests (Files, Depends-on, configure.ac):
17393         Likewise, to avoid implicit reliance on memchr module prereqs.
17394         * tests/test-memchr.c (main): Ensure proper masking.
17395         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17396         reads.
17397
17398         memchr: detect glibc Alpha bug
17399         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17400         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17401         Alpha.
17402         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17403         * tests/test-memchr.c (main): Enhance test.
17404         Reported by Nelson H. F. Beebe.
17405
17406 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17407
17408         fts, getcwd, glob: audit for dirfd returning -1
17409         * lib/fts.c (opendir): Remove #define; no longer used.
17410         (opendirat): New arg PDIR_FD.  All callers changed.
17411         (fts_build, _opendir2): Use new opendirat to avoid the need for
17412         dirfd, or for checking whether dirfd returns a negative value.
17413         Don't use opendir; always use openat followed by fdopendir.
17414         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17415         it.
17416         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17417         returns -1 here.
17418         * modules/fts (Depends-on): Remove dirfd.
17419         * modules/getcwd (Depends-on): Likewise.
17420
17421 2010-09-13  Eric Blake  <eblake@redhat.com>
17422
17423         float: fix broken MirBSD header
17424         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17425         * doc/posix-headers/float.texi (float.h): Document it.
17426
17427 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17428
17429         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17430         * lib/fts.c (opendirat): New arg extra_flags.
17431         (__opendir2): Use it to avoid following symlinks when opening
17432         a directory, if symlinks are not supposed to be followed.  See
17433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17434
17435         fdopendir: preserve argument fd before returning
17436         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17437         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17438         (fdopendir): Use them, arranging for FD to be open to the same
17439         directory that it was when it started.  (It might be temporarily
17440         closed while fdopendir is running, so this not thread- or
17441         signal-safe.)  Be careful to do the right thing even when file
17442         descriptors are scarce and dup fails with errno == EMFILE.  See
17443         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17444
17445 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17446
17447         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17448         * NEWS: Document change.
17449         * m4/regex.m4: Disable test for regoff_t size.
17450
17451 2010-09-13  Jim Meyering  <meyering@redhat.com>
17452
17453         fts: don't operate on an invalid file descriptor after failed dup
17454         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17455         negative file descriptor.
17456
17457 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17458
17459         savedir: add streamsavedir, deprecate fdsavedir
17460         * NEWS: Mention deprecation of fdsavedir.
17461         * lib/savedir.c (streamsavedir): New extern function, whose name
17462         ends in "savedir" to be consistent with the others.  This differs
17463         from savedirstream in that it doesn't close its argument.  The
17464         next version of GNU tar will use this instead of fdsavedir, to
17465         avoid some race conditions and conserve file descriptors.
17466         (savedirstream): Reimplement as a wrapper around streamsavedir.
17467         (fdsavedir): Add a comment deprecating this function.  As far as
17468         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17469         * lib/savedir.h (streamsavedir): New decl.
17470         (fdsavedir): Add a comment deprecating this.
17471
17472 2010-09-10  Bruno Haible  <bruno@clisp.org>
17473
17474         langinfo: Fix last commit.
17475         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17476         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17478
17479 2010-09-10  Bruno Haible  <bruno@clisp.org>
17480
17481         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17482         * lib/progreloc.c (O_EXEC): Define fallback.
17483
17484 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17485
17486         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17487         * NEWS: Document recent changes to fcntl-h.
17488         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17489         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17490         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17491         Similarly for O_SEARCH; this last was already true, but not documented.
17492         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17493         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17494         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17495         Likewise.
17496         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17497         is zero, not whether it is defined.
17498         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17499         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17500         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17501
17502 2010-09-10  Bruno Haible  <bruno@clisp.org>
17503
17504         langinfo, nl_langinfo: Fix for IRIX 5.3.
17505         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17506         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17507         HAVE_LANGINFO_YESEXPR.
17508         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17509         HAVE_LANGINFO_YESEXPR.
17510         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17511         HAVE_LANGINFO_T_FMT_AMPM is 0.
17512         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17513         HAVE_LANGINFO_YESEXPR is 0.
17514         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17515         NOEXPR.
17516         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17517         * doc/posix-functions/nl_langinfo.texi: Likewise.
17518         Reported by Eric Blake.
17519
17520 2010-09-10  Bruno Haible  <bruno@clisp.org>
17521
17522         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17523         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17524         on FreeBSD 8.0 and OpenBSD 4.6.
17525         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17526         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17527         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17528         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17529         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17530         ac_includes_default.
17531         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17532
17533 2010-09-09  Eric Blake  <eblake@redhat.com>
17534
17535         strsignal: work around NetBSD bug
17536         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17537         * lib/string.in.h (includes): Likewise.
17538         * doc/posix-functions/strsignal.texi (strsignal): Document the
17539         bug.
17540         Reported by Nelson H. F. Beebe.
17541
17542         gnulib-tool: work with NetBSD /bin/sh
17543         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17544         (func_get_description, func_get_comment, func_get_status)
17545         (func_get_notice, func_get_applicability, func_get_filelist)
17546         (func_get_dependencies, func_get_autoconf_early_snippet)
17547         (func_get_autoconf_snippet, func_get_automake_snippet)
17548         (func_get_include_directive, func_get_link_directive)
17549         (func_get_license, func_get_maintainer, func_import): Avoid
17550         shell syntax errors from parsing syntax extensions.
17551
17552 2010-09-09  Bruno Haible  <bruno@clisp.org>
17553
17554         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17555         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17556         a reliable way to determine whether the 'alias' command works.
17557
17558 2010-09-08  Jim Meyering  <meyering@redhat.com>
17559
17560         init.sh: penalize a set-x-impaired shell; don't disqualify it
17561         * tests/init.sh: Too many shells corrupt application stderr when
17562         you set -x, so we can't afford to disqualify them, since at least
17563         on Irix-6.5, that would disqualify all bourne shells.
17564         Instead, use a two-pass approach.
17565         On the first pass, try to find a shell that meets the stricter
17566         condition that set -x does not corrupt stderr.
17567         If no shell meets the stricter condition, retest each candidate
17568         shell, but without that extra condition.  Finally, when
17569         VERBOSE=yes is requested and set -x might cause trouble, simply
17570         issue a warning and refrain from enabling debug output.
17571
17572 2010-09-08  Eric Blake  <eblake@redhat.com>
17573
17574         unsetenv: fix OpenBSD bug
17575         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17576         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17577         documentation.
17578         Reported by Jim Meyering.
17579
17580         strtod: work around IRIX 6.5 bug
17581         * lib/strtod.c (strtod): Reparse number on shorter string if
17582         exponent parse was invalid.
17583         * tests/test-strtod.c (main): Add check for "0x1p 2".
17584         Reported by Tom G. Christensen.
17585
17586         getopt: optimize previous patch
17587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17588         empty variable.  Speed up awk script.
17589         Reported by Paolo Bonzini.
17590
17591 2010-09-08  Jim Meyering  <meyering@redhat.com>
17592
17593         test.sh: disqualify shells for which set -x corrupts stderr
17594         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17595         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17596         appear in stderr output.  For example, this command:
17597             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17598         prints "P=1" on those two systems:
17599
17600 2010-09-08  Bruno Haible  <bruno@clisp.org>
17601
17602         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17603         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17604         commands, because some shells ignore redirections when there is an
17605         error in the command lookup.
17606         Reported by Eric Blake.
17607
17608 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17609
17610         * lib/regex.h: Fix a mention of `regex_compile' (should be
17611         `re_compile_pattern').
17612         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17613         (re_set_registers): Correct name of parameter in comment.
17614
17615         * doc/regex.texi: Add documentation for missing syntax flags.
17616         Remove commented-out documentation of defunct syntax option
17617         RE_NO_EMPTY_ALTS.
17618         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17619         Add documentation of re_set_registers.
17620         Document trick to re-use a pattern buffer by setting fastmap manually.
17621         Update documentation of struct re_pattern_buffer per public members.
17622         Uncomment documentation of equivalence class operators and
17623         collating symbol operators, since they are now implemented,
17624         Explain leftmost-longest matching in relation to alternatives.
17625         Tidy documentation of substring matching.
17626         Remove POSIX documentation, which is done better in
17627         glibc, and refer the reader there. Keep BSD API documentation, as
17628         that is not readily available elsewhere.
17629
17630 2010-09-07  Eric Blake  <eblake@redhat.com>
17631
17632         getopt: handle POSIXLY_CORRECT set but not exported
17633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17634         export state of POSIXLY_CORRECT, due to bash set -o posix.
17635         Reported by Dustin J. Mitchell.
17636
17637 2010-09-05  Bruno Haible  <bruno@clisp.org>
17638
17639         gnulib-tool: Highlight the changed options.
17640         * gnulib-tool (func_usage): Display the --import, --add-import,
17641         --remove-import explanations in bold font.
17642
17643 2010-09-06  Karl Berry  <karl@gnu.org>
17644
17645         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17646
17647 2010-09-05  Bruno Haible  <bruno@clisp.org>
17648
17649         uniwidth/width: Update comment.
17650         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17651         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17652
17653 2010-09-05  Bruno Haible  <bruno@clisp.org>
17654
17655         isinf, isnan: Relax license.
17656         * modules/isinf (License): Change from GPL to LGPL, with consent from
17657         Ben Pfaff.
17658         * modules/isnan (License): Likewise.
17659         Requested by Ludovic Courtès.
17660
17661 2010-09-04  Bruno Haible  <bruno@clisp.org>
17662
17663         gnulib-tool: Help migration from --import to --add-import or --update.
17664         * gnulib-tool: Emit a verbose error message when --import is used
17665         without any module name.
17666
17667 2010-09-04  Bruno Haible  <bruno@clisp.org>
17668
17669         Update doc about gnulib-tool.
17670         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17671         'gnulib-tool --update' in more detail.
17672         Reported by Eric Blake.
17673
17674 2010-09-04  Bruno Haible  <bruno@clisp.org>
17675
17676         gnulib-tool: Change --import. New options --add/remove-import.
17677         * gnulib-tool: New options --add-import, --remove-import.
17678         (func_usage): Document them.
17679         (have_associative): Define always.
17680         (func_import): In import mode, don't merge the specified settings with
17681         the cached settings. Implement remove-import mode.
17682         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17683         Explain when to use them versus --import.
17684         (Simple update): Use --add-import instead of --import.
17685         * NEWS: Mention the change.
17686
17687 2010-09-04  Bruno Haible  <bruno@clisp.org>
17688
17689         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17690         separate gnulib.mk.
17691
17692 2010-09-04  Bruno Haible  <bruno@clisp.org>
17693
17694         gnulib-tool: Don't talk about CVS any more.
17695         * gnulib-tool (func_usage, func_import): Write "version control"
17696         instead of CVS.
17697
17698 2010-09-04  Jim Meyering  <meyering@redhat.com>
17699
17700         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17701         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17702         false positives (whose names may be ill-chosen) when searching
17703         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17704         would cause a false-positive.
17705
17706         avoid coreutils "make distcheck" failure
17707         Coreutils tests with an absolute build directory name that contains
17708         a space.  Not quoting this directory name caused a failure.
17709         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17710         * tests/test-vc-list-files-cvs.sh: Likewise.
17711
17712 2010-09-04  Bruno Haible  <bruno@clisp.org>
17713
17714         gnulib-tool: Avoid error when run in a package without Makefile.am.
17715         * gnulib-tool: When collecting the m4dirs in a package that does not
17716         have a Makefile.am, eliminate those directories that contain no
17717         gnulib-cache.m4. Fix expression that counts these directories.
17718
17719 2010-09-04  Bruno Haible  <bruno@clisp.org>
17720
17721         update-copyright test: Improve output when perl is missing or too old.
17722         * tests/test-update-copyright.sh: Move test of Perl version down after
17723         the test whether Perl exists. Provide an explanation relating Perl's
17724         error message to Automake's SKIP: message.
17725
17726 2010-09-04  Bruno Haible  <bruno@clisp.org>
17727
17728         Don't augment PATH in TESTS_ENVIRONMENT.
17729         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17730         set abs_aux_dir instead of augmenting PATH.
17731         * modules/vc-list-files-tests (Makefile.am): Likewise.
17732         * tests/test-update-copyright.sh: Augment PATH here.
17733         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17734         path_prepend_.
17735         * tests/test-vc-list-files-git.sh: Likewise.
17736
17737 2010-09-04  Jim Meyering  <meyering@redhat.com>
17738
17739         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17740         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17741
17742 2010-09-04  Bruno Haible  <bruno@clisp.org>
17743
17744         strdup: Fix compilation error in C++ mode.
17745         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17746         the macro.
17747
17748 2010-09-04  Bruno Haible  <bruno@clisp.org>
17749
17750         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17751         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17752         macro into a function.
17753         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17754
17755 2010-09-04  Bruno Haible  <bruno@clisp.org>
17756
17757         Set PATH_SEPARATOR the same way autoconf does.
17758         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17759         the value of PATH_SEPARATOR the same way autoconf-generated configure
17760         scripts do.
17761         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17762         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17763
17764 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17765
17766         Set PATH_SEPARATOR the same way autoconf does.
17767         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17768         the same way autoconf-generated configure scripts do.
17769         * posix-modules: Likewise.
17770
17771 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17772
17773         hash: fix safe_hasher const typo
17774         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17775         const; otherwise, there is a type error later.
17776
17777 2010-09-02  Jim Meyering  <meyering@redhat.com>
17778
17779         test-update-copyright.sh: require perl 5.8.0
17780         * tests/test-update-copyright.sh: Require 5.8.0,
17781         which Tom G. Christensen has confirmed is adequate,
17782         while 5.6.1 is not.
17783
17784 2010-09-02  Eric Blake  <eblake@redhat.com>
17785
17786         tests: init.sh improvements for re-exec'ing with zsh
17787         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17788         -vx through shell re-exec.
17789         Reported by Tom G. Christensen.
17790
17791         wctype: fix typo in previous commit
17792         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17793         Reported by Ludovic Courtès.
17794
17795 2010-09-02  Jim Meyering  <meyering@redhat.com>
17796
17797         test-update-copyright.sh: skip test if Perl is too old
17798         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17799         Reported by Tom G. Christensen.
17800
17801 2010-09-02  Bruno Haible  <bruno@clisp.org>
17802
17803         wctype: Avoid compilation error on IRIX 6.5.30.
17804         * lib/wctype.in.h (iswblank): Declare with a replacement if
17805         REPLACE_ISWBLANK is set.
17806         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17807         declared. Set REPLACE_ISWBLANK.
17808         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17809         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17810         * doc/posix-headers/wctype.texi: Likewise.
17811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17812
17813 2010-09-01  Bruno Haible  <bruno@clisp.org>
17814
17815         New module 'socketlib'.
17816         * modules/socketlib: New file.
17817         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17818         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17819         * modules/sockets (Depends-on): Add socketlib.
17820         Suggested by Sam Steingold <sds@gnu.org>.
17821
17822 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17823
17824         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17825
17826         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17827         when one needs search access to a directory but not read access.
17828         On systems where it is available, it works in some cases where
17829         O_RDONLY does not, namely on directories that are searchable but
17830         not readable, and which need only to be searchable.  If O_SEARCH
17831         is not available, fall back to the traditional method of using
17832         O_RDONLY.
17833
17834         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17835         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17836         when opening a directory that needs only to be searchable.
17837         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17838         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17839         * lib/openat-proc.c (openat_proc_name): Likewise.
17840         * lib/openat.c (openat_needs_fchdir): Likewise.
17841         * lib/save-cwd.c (save_cwd): Likewise.
17842         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17843
17844 2010-08-28  Bruno Haible  <bruno@clisp.org>
17845
17846         New module 'host-cpu-c-abi'.
17847         * modules/host-cpu-c-abi: New file.
17848         * m4/host-cpu-c-abi.m4: New file, based on part of
17849         clisp/src/m4/general.m4.
17850         Requested by Sam Steingold <sds@gnu.org>.
17851
17852 2010-08-31  Eric Blake  <eblake@redhat.com>
17853         and Jim Meyering  <meyering@redhat.com>
17854
17855         hash: factor, and guard against misbehaving hasher function
17856         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17857         of table->hasher's return value.  Also protect against a hash value
17858         so large that adding it to table->bucket results in a NULL pointer.
17859         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17860         Use it in place of open-coded check-and-abort.
17861
17862 2010-08-30  Bruno Haible  <bruno@clisp.org>
17863
17864         hash: silence spurious clang warning
17865         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17866         Reported by Eric Blake.
17867
17868 2010-08-30  Eric Blake  <eblake@redhat.com>
17869
17870         strstr, memmem, strcasestr: avoid leaked shell message
17871         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17872         FreeBSD.
17873         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17875
17876         tests: silence clang warning
17877         * tests/test-malloca.c (do_allocation): Avoid dead store.
17878
17879 2010-08-29  Bruno Haible  <bruno@clisp.org>
17880
17881         gettext: Fix recent mistake.
17882         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17883
17884 2010-08-29  Bruno Haible  <bruno@clisp.org>
17885
17886         selinux-h: Offer a --without-selinux option.
17887         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17888         --without-selinux was specified, skip all tests and define
17889         HAVE_SELINUX_SELINUX_H to 0.
17890         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17891         set LIB_SELINUX to empty.
17892         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17893         gl_LIBSELINUX. If --without-selinux was specified, replace
17894         selinux/context.h.
17895         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17896
17897 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17898             Bruno Haible  <bruno@clisp.org>
17899
17900         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17901         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17902         of HAVE_REALLOC.
17903         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17904         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17905         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17906         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17907
17908 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17909             Bruno Haible  <bruno@clisp.org>
17910
17911         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17912         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17913         HAVE_CALLOC.
17914         * lib/xmalloc.c: Update accordingly.
17915         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17916         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17917         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17918
17919 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17920             Bruno Haible  <bruno@clisp.org>
17921
17922         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17923         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17924         HAVE_MALLOC.
17925         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17926         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17927         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17928
17929 2010-08-29  Bruno Haible  <bruno@clisp.org>
17930
17931         Update modules list.
17932         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17933         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17934         (String handling <string.h>): Add astrxfrm.
17935         (File system functions): Add readlinkat.
17936
17937 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17938
17939         Tests for module 'realloc-gnu'.
17940         * modules/realloc-gnu-tests: New file.
17941         * tests/test-realloc-gnu.c: New file.
17942
17943         Tests for module 'calloc-gnu'.
17944         * modules/calloc-gnu-tests: New file.
17945         * tests/test-calloc-gnu.c: New file.
17946
17947         Tests for module 'malloc-gnu'.
17948         * modules/malloc-gnu-tests: New file.
17949         * tests/test-malloc-gnu.c: New file.
17950
17951 2010-08-28  Bruno Haible  <bruno@clisp.org>
17952
17953         Rename module 'realloc' -> 'realloc-gnu'.
17954         * modules/realloc-gnu: New file, copied from modules/realloc.
17955         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17956         obsolete.
17957         * modules/mgetgroups (Depends-on): Update.
17958         * doc/posix-functions/realloc.texi: Update.
17959         * NEWS: Mention the change.
17960
17961         Rename module 'calloc' -> 'calloc-gnu'.
17962         * modules/calloc-gnu: New file, copied from modules/calloc.
17963         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17964         obsolete.
17965         * doc/posix-functions/calloc.texi: Update.
17966         * NEWS: Mention the change.
17967
17968         Rename module 'malloc' -> 'malloc-gnu'.
17969         * modules/malloc-gnu: New file, copied from modules/malloc.
17970         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17971         obsolete.
17972         * modules/argp (Depends-on): Update.
17973         * modules/regex (Depends-on): Update.
17974         * doc/posix-functions/malloc.texi: Update.
17975         * NEWS: Mention the change.
17976
17977 2010-08-28  Eric Blake  <eblake@redhat.com>
17978
17979         pread, pwrite: add missing dependency
17980         * modules/pread (Depends-on): Add extensions.
17981         * modules/pwrite (Depends-on): Likewise.
17982
17983 2010-08-28  Bruno Haible  <bruno@clisp.org>
17984
17985         unistr/u*-strchr: Fix tests dependencies.
17986         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17987         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17988         Reported by Ian Beckwith <ianb@erislabs.net>.
17989
17990 2010-08-28  Bruno Haible  <bruno@clisp.org>
17991
17992         read-file: Don't occupy too much unused memory.
17993         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17994
17995 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17996             Eric Blake  <eblake@redhat.com>
17997             Bruno Haible  <bruno@clisp.org>
17998
17999         read-file: Avoid memory reallocations with regular files.
18000         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18001         (fread_file): With regular files, use the remaining length as the
18002         initial buffer size.  Check against overflow.
18003         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18004         sys_stat.
18005
18006 2010-08-28  Bruno Haible  <bruno@clisp.org>
18007
18008         ftello: Relax license.
18009         * modules/ftello (License): Relax to LGPLv2+.
18010         Reported by Eric Blake.
18011
18012 2010-08-28  Bruno Haible  <bruno@clisp.org>
18013
18014         Avoid relocwrapper link errors due to gnulib replacement functions.
18015         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18016         function.
18017         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18018
18019 2010-08-28  Bruno Haible  <bruno@clisp.org>
18020
18021         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18022         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18023         defined.
18024         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18025         Suggested by Eric Blake.
18026
18027 2010-08-28  Bruno Haible  <bruno@clisp.org>
18028
18029         sys_socket, netdb: Ensure socklen_t gets defined.
18030         * modules/sys_socket (Depends-on): Add socklen.
18031         * modules/netdb (Depends-on): Likewise.
18032         * modules/getaddrinfo (Depends-on): Remove socklen.
18033         * modules/getsockopt (Depends-on): Likewise.
18034         * modules/setsockopt (Depends-on): Likewise.
18035         * tests/test-sys_socket.c: Check that socklen_t is defined.
18036         * tests/test-netdb.c: Likewise.
18037         * m4/socklen.m4: Update comments.
18038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18039
18040 2010-08-27  Eric Blake  <eblake@redhat.com>
18041
18042         login_tty: add missing dependency
18043         * modules/login_tty (Depends-on): Add pty.
18044
18045 2010-08-26  Eric Blake  <eblake@redhat.com>
18046
18047         lib-symbol-versions: fix m4 quoting
18048         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18049         format for AC_LINK_IFELSE.
18050
18051         glob: fix compile test
18052         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18053
18054         btowc: fix missing file
18055         * modules/btowc (Files): Also ship locale-fr.m4.
18056
18057         lseek: fix link test
18058         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18059         AC_LINK_IFELSE.
18060
18061         include_next: silence autoconf 2.68 warning
18062         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18063         AC_COMPILE_IFELSE as special.
18064         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18065         autoconf < 2.68.
18066
18067         acl: fix compilation test
18068         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18069         AC_COMPILE_IFELSE.
18070
18071 2010-08-26  Bruno Haible  <bruno@clisp.org>
18072
18073         Modernize AC_TRY_RUN invocations.
18074         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18075         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18076         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18077         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18078         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18079         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18080         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18081         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18082         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18083         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18084         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18085         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18086         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18087         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18088         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18089         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18090         gl_MBRLEN_NUL_RETVAL): Likewise.
18091         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18092         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18093         Likewise.
18094         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18095         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18096         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18097         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18098         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18099         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18100         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18101         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18102         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18103         Likewise.
18104         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18105         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18107         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18108         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18109         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18111         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18112         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18114
18115 2010-08-26  Bruno Haible  <bruno@clisp.org>
18116
18117         Modernize AC_TRY_LINK invocations.
18118         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18119         AC_TRY_LINK.
18120         * m4/argp.m4 (gl_ARGP): Likewise.
18121         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18122         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18123         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18124         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18125         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18126         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18127         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18128         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18129         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18130         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18131         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18132         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18133         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18134         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18135         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18136         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18137         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18138         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18139         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18140         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18141         Likewise.
18142         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18143         Likewise.
18144         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18145         Likewise.
18146         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18147         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18148         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18149         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18150         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18151         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18152         * m4/servent.m4 (gl_SERVENT): Likewise.
18153         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18154         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18155         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18156         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18157         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18158         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18159         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18161         * modules/tsearch-tests (configure.ac): Likewise.
18162
18163 2010-08-26  Bruno Haible  <bruno@clisp.org>
18164
18165         Modernize AC_TRY_COMPILE invocations.
18166         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18167         AC_TRY_COMPILE.
18168         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18169         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18170         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18171         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18172         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18173         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18174         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18175         * m4/lock.m4 (gl_LOCK): Likewise.
18176         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18177         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18178         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18179         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18180         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18181         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18182         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18183         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18184         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18185         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18186         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18187         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18188         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18189         extraneous semicolon.
18190
18191 2010-08-26  Jim Meyering  <meyering@redhat.com>
18192
18193         stat-time: relax license LGPL
18194         * modules/stat-time (License): Change from GPL to LGPL,
18195         with consent from all contributors, for use in libguile.
18196         Requested by Ludovic Courtès.
18197
18198 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18199
18200         poll: return immediately on POLLHUP.
18201         * lib/poll.c (poll): Always set timeout before wait_timeout is
18202         computed.
18203
18204 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18205
18206         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18207         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18208         rmdir ("dir/.//"), unlinkat.
18209
18210 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18211
18212         stdbool: avoid spurious failure with modern xlc
18213         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18214
18215 2010-08-24  Bruno Haible  <bruno@clisp.org>
18216
18217         getloadavg: simplify code
18218         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18219         gl_have_func. Update comments.
18220
18221 2010-08-24  Eric Blake  <eblake@redhat.com>
18222
18223         getloadavg: don't define SVR4 on cygwin
18224         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18225         only define SVR4 when -lkvm is required.
18226         Reported by Yaakov Selkowitz.
18227
18228 2010-08-24  Bruno Haible  <bruno@clisp.org>
18229
18230         priv-set: fix comment
18231         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18232
18233 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18234
18235         priv-set: fix comments
18236         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18237         to match code, as suggested by David Bartley in:
18238         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18239
18240 2010-08-23  Eric Blake  <eblake@redhat.com>
18241
18242         stdbool: avoid rejecting clang
18243         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18244         * tests/test-stdbool.c: Enable more tests if using the system
18245         <stdbool.h> instead of the gnulib replacement.
18246         (main): Move xlc bug test to a runtime test for all compilers.
18247         Reported by Anders Kaseorg.
18248
18249         argz: fix shell quoting issue
18250         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18251         Reported by Charles Wilson.
18252
18253 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18254             Erik Faye-Lund <kusmabite@gmail.com>
18255
18256         poll, select: handle ERROR_BROKEN_PIPE.
18257         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18258         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18259         * lib/select.c (win32_compute_revents): Do not mark a pipe
18260         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18261
18262 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18263
18264         fts: allow compilation with C++
18265         * lib/fts_.h: Specify extern "C" linkage with C++.
18266
18267 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18268
18269         Fix gnulib-tool sed script de-commentation for AIX sed.
18270         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18271         sed.
18272
18273 2010-08-17  Eric Blake  <eblake@redhat.com>
18274
18275         test-stddef: test for (some) offsetof bugs
18276         * tests/test-stddef.c: Enhance test to ensure correct type of
18277         offsetof.
18278         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18279         that we are not fixing at this time.
18280
18281 2010-08-15  Bruno Haible  <bruno@clisp.org>
18282
18283         stpncpy: Allow stpncpy to be defined as a macro.
18284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18285         if it's already correctly declared.
18286         * lib/string.in.h (stpncpy): Undefine before redefining.
18287         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18288
18289 2010-08-14  Bruno Haible  <bruno@clisp.org>
18290
18291         Rename module 'memxfrm' to 'amemxfrm'.
18292         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18293         (amemxfrm): Renamed from memxfrm.
18294         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18295         (amemxfrm): Renamed from memxfrm.
18296         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18297         * NEWS: Mention the change.
18298         * MODULES.html.sh (String handling <string.h>): Update.
18299         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18300         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18301         * lib/unicase/u16-casexfrm.c: Likewise.
18302         * lib/unicase/u32-casexfrm.c: Likewise.
18303         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18304         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18305         * lib/uninorm/u16-normxfrm.c: Likewise.
18306         * lib/uninorm/u32-normxfrm.c: Likewise.
18307         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18308         memxfrm.
18309         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18310         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18311         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18312         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18313         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18314         Suggested by Paul Eggert.
18315
18316 2010-08-14  Bruno Haible  <bruno@clisp.org>
18317
18318         Tests for module 'astrxfrm'.
18319         * modules/astrxfrm-tests: New file.
18320         * tests/test-astrxfrm.c: New file.
18321
18322         New module 'astrxfrm'.
18323         * lib/astrxfrm.h: New file.
18324         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18325         * modules/astrxfrm: New file.
18326
18327 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18328
18329         regex: Tweak doc.
18330         * doc/regex.texi (Overview): Don't mention regex.c.
18331         (GNU Regular Expression Compiling): Likewise.
18332         (Match-end-of-line Operator): Mention 'not_eol'.
18333
18334 2010-08-14  Brian Gough  <bjg@gnu.org>
18335             Bruno Haible  <bruno@clisp.org>
18336
18337         git-merge-changelog: add doc relating to use with bzr and hg.
18338         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18339
18340 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18341
18342         pthread: fix pthread.h creation for srcdir != builddir
18343         * modules/pthread (Makefile.am): Fix the rule to work also in a
18344         non-srcdir build.
18345
18346 2010-08-13  Karl Berry  <karl@gnu.org>
18347
18348         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18349         * doc/posix-*/*: force line break before @url of POSIX
18350         specifications.
18351         Suggested by Werner Lemberg.
18352
18353 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18354
18355         strtod: fix const diagnostic
18356         * lib/strtod.c (strtod): Don't assign const char * to char *,
18357         as this elicits a warning from GCC when warnings are enabled.
18358
18359 2010-08-10  Pádraig Brady <P@draigbrady.com>
18360         and Eric Blake  <eblake@redhat.com>
18361
18362         copy-acl: ignore ENOTSUP on HP-UX
18363         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18364         so that it is available for HP-UX.
18365         * lib/copy-acl.c (qcopy_acl): Use it.
18366         Reported by Patrick M. Callahan.
18367
18368 2010-08-10  Eric Blake  <eblake@redhat.com>
18369
18370         open, chown: relax license
18371         * modules/open (License): Change to LGPLv2+, with consent by all
18372         authors, for use in augeas.
18373         * modules/chown (License): Likewise.
18374         * modules/lchown (Likewise): Likewise.
18375         Requested by Adam Stokes.
18376
18377 2010-08-09  Karl Berry  <karl@gnu.org>
18378
18379         * build-aux/ar-lib: new file, import from Automake.
18380         * config/srclist.txt: autocheck for updates.
18381
18382 2010-08-09  Eric Blake  <eblake@redhat.com>
18383
18384         readlinkat: adjust client modules
18385         * modules/areadlinkat (Depends-on): Use readlinkat, not
18386         symlinkat.
18387         * modules/areadlinkat-with-size (Depends-on): Likewise.
18388
18389         mknod: be more vocal about danger of running tests as root
18390         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18391         root, since that is just asking for problems.
18392         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18393
18394         readlinkat: split into its own module
18395         * modules/symlinkat: Split readlinkat...
18396         * modules/readlinkat: ...into separate module.
18397         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18398         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18399         * lib/symlinkat.c (readlinkat): Move...
18400         * lib/readlinkat.c: ...into new file.
18401         * modules/symlinkat-tests: Split readlinkat test...
18402         * modules/readlinkat-tests: ...into separate module.
18403         * tests/test-symlinkat.c: Split...
18404         * tests/test-readlinkat.c: ...into new file.
18405         * NEWS: Document the split.
18406         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18407         * lib/unistd.in.h (readlinkat): Likewise.
18408         Suggested by Bruno Haible.
18409
18410 2010-08-08  Bruno Haible  <bruno@clisp.org>
18411
18412         memxfrm: Speed up.
18413         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18414         that usually only one call to strxfrm is necessary for each string
18415         part.
18416         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18417
18418 2010-08-07  Karl Berry  <karl@gnu.org>
18419
18420         * doc/posix-headers/limits.texi,
18421         * doc/posix-functions/malloc.texi,
18422         * doc/posix-functions/strsignal.texi: missing @item.
18423         * doc/ld-version-script.texi: spurious leading i.
18424         * doc/regex.texi (Interval Operators): no commas inside @var.
18425
18426 2010-08-01  Bruno Haible  <bruno@clisp.org>
18427
18428         Integrate the regex documentation.
18429         * doc/gnulib.texi: Define 'cn' index.
18430         (Regular expressions): New a chapter that includes regex.texi and
18431         regexprops-generic.texi.
18432         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18433         syntax.
18434
18435         Whitespace cleanup.
18436         * doc/regex.texi: Remove trailing spaces.
18437
18438         Add regex documentation.
18439         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18440         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18441         Written by Kathy A. Hargreaves and Karl Berry.
18442
18443 2010-08-01  Bruno Haible  <bruno@clisp.org>
18444
18445         link: Update documentation.
18446         * doc/posix-functions/link.texi: Update regarding Solaris.
18447
18448 2010-07-31  Bruno Haible  <bruno@clisp.org>
18449
18450         Update modules list.
18451         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18452         (String handling <string.h>): Add memcmp2, memxfrm.
18453         (Container data structures): Add xlist, xsublist, xoset.
18454         (Core language properties): Add alignof, unused-parameter.
18455         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18456         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18457         (Unibyte characters <ctype.h>): New section.
18458         (String handling <string.h>): New section.
18459         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18460         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18461         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18462         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18463         tan, tanh, tanl, y0, y1, yn.
18464         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18465         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18466         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18467         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18468         unlockpt, vdprintf, vdprintf-posix.
18469         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18470         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18471         xconcat-filename.
18472         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18473         getdtablesize, pipe2, pipe2-safer.
18474         (Security): New section.
18475         (Networking functions): Add accept4.
18476         (Signal handling): Add sigpipe.
18477         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18478         mbmemcasecoll.
18479         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18480         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18481         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18482         pipe-filter-ii.
18483         (Misc): Add argp-version-etc, login_tty, parse-duration.
18484
18485 2010-07-31  Bruno Haible  <bruno@clisp.org>
18486
18487         Improve doc in MODULES.html.
18488         * modules/linkat (Description): Add the word "function".
18489         * modules/mkfifo (Description): Likewise.
18490         * modules/mknod (Description): Likewise.
18491         * modules/remove (Description): Likewise.
18492         * modules/renameat (Description): Likewise.
18493         * modules/stat (Description): Likewise.
18494         * modules/symlink (Description): Likewise.
18495         * modules/unlink (Description): Likewise.
18496
18497 2010-07-31  Bruno Haible  <bruno@clisp.org>
18498
18499         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18500         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18501         option --enable/disable-c++ instead of --enable/disable-cxx.
18502         * NEWS: Mention the change.
18503
18504 2010-07-31  Bruno Haible  <bruno@clisp.org>
18505
18506         readlink, areadlink: Relax test a bit.
18507         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18508         alternative to ENOTDIR.
18509         * tests/test-areadlink.h (test_areadlink): Likewise.
18510         Reported by Rainer Tammer.
18511
18512 2010-07-31  Bruno Haible  <bruno@clisp.org>
18513
18514         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18515         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18516         character, perform the search using U_STRCHR.
18517         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18518         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18519         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18520         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18521         Suggested by Paolo Bonzini.
18522
18523 2010-07-31  Bruno Haible  <bruno@clisp.org>
18524
18525         unistr/u*-strstr: Fix dependencies.
18526         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18527         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18528         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18529
18530 2010-07-31  Bruno Haible  <bruno@clisp.org>
18531
18532         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18533         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18534         the beginning of the loop.
18535         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18536         cases in 'switch' statement.
18537
18538         unistr/u8-strchr: Fix several bugs.
18539         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18540         the string. When not found, return NULL, not a pointer near the end.
18541
18542         More tests for unistr/u8-strchr.
18543         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18544         that the function does not read past the first occurrence of the byte
18545         being searched.
18546         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18547         * tests/unistr/test-u16-strchr.c (main): New function.
18548         * tests/unistr/test-u32-strchr.c (main): New function.
18549
18550 2010-07-31  Bruno Haible  <bruno@clisp.org>
18551
18552         posix-modules: Ignore backup files of documentation files.
18553         * posix-modules: grep only through files named *.texi.
18554
18555 2010-07-31  Bruno Haible  <bruno@clisp.org>
18556
18557         symlinkat: Fix documentation.
18558         * doc/posix-functions/readlinkat.texi: Fix module name.
18559
18560 2010-07-31  Bruno Haible  <bruno@clisp.org>
18561
18562         fchownat: Replace also when chown has the trailing slash bug.
18563         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18564         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18565         introduced on 2010-04-10.
18566         Reported by Rainer Tammer.
18567
18568 2010-07-31  Bruno Haible  <bruno@clisp.org>
18569
18570         linkat: Work around AIX 7.1 bug.
18571         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18572         whether linkat handles trailing slash correctly. If not, replace linkat
18573         and define LINKAT_TRAILING_SLASH_BUG.
18574         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18575         check whether (fd1,file1) points to a directory if file1 or file2 ends
18576         in a slash. Code taken from lib/link.c.
18577         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18578         Reported by Rainer Tammer.
18579
18580 2010-07-31  Bruno Haible  <bruno@clisp.org>
18581
18582         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18583         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18584         This disables an xlc optimization that was causing wrong test results.
18585         Reported by Rainer Tammer.
18586
18587 2010-07-31  Bruno Haible  <bruno@clisp.org>
18588
18589         iconv: Work around AIX 6.1..7.1 bug.
18590         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18591         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18592         cross-compiling, guess no on all versions of AIX.
18593         Reported by Rainer Tammer.
18594
18595 2010-07-31  Bruno Haible  <bruno@clisp.org>
18596
18597         readlink: Relax test a bit.
18598         * tests/test-readlink.h (test_readlink): Allow different errno value
18599         when readlink is called with a file name that ends in / and refers to
18600         a file.
18601         Suggested by Eric Blake.
18602         Reported by Rainer Tammer.
18603
18604 2010-07-31  Bruno Haible  <bruno@clisp.org>
18605
18606         copysign: Does not require -lm on glibc systems.
18607         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18608         gl_COMMON_DOUBLE_MATHFUNC.
18609         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18610
18611 2010-07-31  Bruno Haible  <bruno@clisp.org>
18612
18613         duplocale: Work around AIX 7.1 bug.
18614         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18615         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18616         * lib/duplocale.c (rpl_duplocale): Update comment.
18617         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18618         Reported by Rainer Tammer.
18619
18620 2010-07-30  Bruno Haible  <bruno@clisp.org>
18621
18622         dirfd: Avoid link error on AIX 7.1.
18623         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18624         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18625         exist, set REPLACE_DIRFD.
18626         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18627         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18628         * doc/posix-functions/dirfd.texi: Update.
18629         Reported by Rainer Tammer.
18630
18631 2010-07-30  Eric Blake  <eblake@redhat.com>
18632
18633         strtod: next round of AIX fixes
18634         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18635         exponent.
18636         * tests/test-strtod.c (main): Enhance tests.
18637         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18638         Reported by Rainer Tammer.
18639
18640         futimens: fix configure check
18641         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18642         Reported by Bruno Haible.
18643
18644 2010-07-30  Bruno Haible  <bruno@clisp.org>
18645
18646         getline: Update regarding AIX.
18647         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18648         Reported by Rainer Tammer.
18649
18650 2010-07-30  Bruno Haible  <bruno@clisp.org>
18651
18652         wcwidth: Drop replacement on AIX 7.
18653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18654         AIX 7.
18655         Reported by Rainer Tammer.
18656
18657 2010-07-30  Bruno Haible  <bruno@clisp.org>
18658
18659         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18660         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18661         a 'char *'.
18662         Reported by Rainer Tammer.
18663
18664 2010-07-30  Bruno Haible  <bruno@clisp.org>
18665
18666         unlink: Update regarding AIX.
18667         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18668         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18669         Reported by Rainer Tammer.
18670
18671 2010-07-30  Bruno Haible  <bruno@clisp.org>
18672
18673         symlink: Update regarding AIX.
18674         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18675         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18676         Reported by Rainer Tammer.
18677
18678 2010-07-30  Bruno Haible  <bruno@clisp.org>
18679
18680         strndup: Update regarding AIX.
18681         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18682         AIX 7.
18683         Reported by Rainer Tammer.
18684
18685 2010-07-30  Bruno Haible  <bruno@clisp.org>
18686
18687         stat: Update regarding AIX.
18688         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18689         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18690         Reported by Rainer Tammer.
18691
18692 2010-07-30  Bruno Haible  <bruno@clisp.org>
18693
18694         truncl: Fix autoconf test.
18695         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18696         whether truncl works.
18697         Reported by Rainer Tammer.
18698
18699 2010-07-30  Bruno Haible  <bruno@clisp.org>
18700
18701         round: Update regarding AIX.
18702         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18703         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18704         Reported by Rainer Tammer.
18705
18706 2010-07-30  Bruno Haible  <bruno@clisp.org>
18707
18708         rename: Update regarding AIX.
18709         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18710         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18711         Reported by Rainer Tammer.
18712
18713 2010-07-30  Bruno Haible  <bruno@clisp.org>
18714
18715         printf.m4: Update regarding AIX.
18716         * m4/printf.m4: Update comments regarding AIX.
18717         Reported by Rainer Tammer.
18718
18719 2010-07-30  Bruno Haible  <bruno@clisp.org>
18720
18721         iconv: Update regarding AIX.
18722         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18723         AIX 7.
18724         Reported by Rainer Tammer.
18725
18726 2010-07-30  Bruno Haible  <bruno@clisp.org>
18727
18728         getopt: Update regarding AIX.
18729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18730         no on AIX.
18731         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18732         Reported by Rainer Tammer.
18733
18734 2010-07-30  Bruno Haible  <bruno@clisp.org>
18735
18736         ldexpl; Update regarding AIX.
18737         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18738         on AIX 7.
18739         Reported by Rainer Tammer.
18740
18741 2010-07-30  Bruno Haible  <bruno@clisp.org>
18742
18743         frexpl: Update regarding AIX.
18744         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18745         on AIX 7.
18746         Reported by Rainer Tammer.
18747
18748 2010-07-30  Bruno Haible  <bruno@clisp.org>
18749
18750         open, fopen: Update regarding AIX.
18751         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18752         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18753         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18754         * doc/posix-functions/fopen.texi: Likewise.
18755         Reported by Rainer Tammer.
18756
18757 2010-07-30  Bruno Haible  <bruno@clisp.org>
18758
18759         chown: Update doc regarding AIX.
18760         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18761         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18762         Reported by Rainer Tammer.
18763
18764 2010-07-30  Eric Blake  <eblake@redhat.com>
18765
18766         strtod: fix bug in replacement function on AIX
18767         * lib/strtod.c (strtod): Special case broken "0x" parse in
18768         underlying strtod.
18769         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18770         * doc/posix-functions/strtod.texi (strtod): Likewise.
18771         Reported by Rainer Tammer.
18772
18773 2010-07-30  Bruno Haible  <bruno@clisp.org>
18774
18775         mbrlen: Fix cross-compilation guess for AIX.
18776         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18777         guess. Leftover from 2008-12-22.
18778
18779 2010-07-30  Bruno Haible  <bruno@clisp.org>
18780
18781         mbrtowc: Fix cross-compilation guess for AIX.
18782         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18783         guess. Leftover from 2008-12-21.
18784
18785 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18786
18787         init.sh: work around trap limitation of some shells
18788         * tests/init.sh (setup_): Move exit trap outside of shell function.
18789
18790 2010-07-29  Eric Blake  <eblake@redhat.com>
18791
18792         strtod: aid debugging
18793         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18794         understanding why strtod is rejected.
18795
18796 2010-07-28  Bruno Haible  <bruno@clisp.org>
18797
18798         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18799         * lib/unistr/u8-chr.c: Include <string.h>.
18800         * tests/unistr/test-u8-chr.c: Likewise.
18801         * tests/unistr/test-u16-chr.c: Likewise.
18802         * tests/unistr/test-u32-chr.c: Likewise.
18803         * tests/unistr/test-u8-strchr.c: Likewise.
18804         * tests/unistr/test-u16-strchr.c: Likewise.
18805         * tests/unistr/test-u32-strchr.c: Likewise.
18806         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18807         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18808         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18809         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18810
18811 2010-07-28  Bruno Haible  <bruno@clisp.org>
18812
18813         Use spaces for indentation, not tabs.
18814         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18815
18816 2010-07-27  Bruno Haible  <bruno@clisp.org>
18817
18818         mbspcasecmp: Fix function specification.
18819         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18820         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18821         Reported by Eric Blake <eblake@redhat.com>.
18822
18823 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18824
18825         timespec: use cast and not conditional, as truncation isn't possible
18826         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18827         instead of a conditional.  Comment about the situation in more detail.
18828         This undoes most of the 2009-10-29 patch.
18829
18830 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18831
18832         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18833         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18834         * lib/unistr/u8-strchr.c: Likewise.
18835         * modules/unistr/u8-chr: Depend on memchr.
18836
18837         unistr/u*-strchr: add tests
18838         * modules/unistr/u8-strchr-tests: New file.
18839         * modules/unistr/u16-strchr-tests: New file.
18840         * modules/unistr/u32-strchr-tests: New file.
18841         * tests/unistr/test-strchr.h: New file.
18842         * tests/unistr/test-u8-strchr.c: New file.
18843         * tests/unistr/test-u16-strchr.c: New file.
18844         * tests/unistr/test-u32-strchr.c: New file.
18845
18846         unistr/u*-chr: test multibyte sequences more
18847         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18848         test vector.
18849         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18850         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18851         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18852
18853         unistr/u*-chr: test multibyte sequences
18854         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18855
18856         unistr/u*-chr: prepare for multibyte tests
18857         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18858         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18859         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18860         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18861         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18862         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18863
18864 2010-07-18  Bruno Haible  <bruno@clisp.org>
18865
18866         unistr/u8-strchr: Optimize non-ASCII argument case.
18867         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18868         because the first byte often matches anyway.
18869         Reported by Pádraig Brady <P@draigbrady.com>.
18870
18871 2010-07-15  Karl Berry  <karl@gnu.org>
18872
18873         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18874
18875 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18876
18877         getcwd: on Solaris, work better if ancestors are inaccessible
18878         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18879         buffer and size, try again with a large buffer.  This works better
18880         on Solaris, since its getcwd succeeds even if the path to the root
18881         is inaccessible, and this is helpful in common cases such as .zfs
18882         hidden directories.  Problem reported by J Chapman Flack in
18883         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18884         Use system getcwd if it's declared, not merely if it's partly
18885         working; use the partly-working test only to avoid needless effort
18886         if the system getcwd fails.
18887         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18888         comment that was already obsolete and is now even more obsolete.
18889         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18890         now might call strdup.
18891
18892 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18893
18894         pthread: Add enough so that coreutils/src/sort.c compiles.
18895         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18896         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18897         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18898         Include <sys/types.h>, in case it defines pthread_t.
18899         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18900         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18901         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18902         (pthread_rwlockattr_t, pthread_spinlock_t):
18903         New typedefs, if HAVE_PTHREAD_T is not defined.
18904         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18905         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18906         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18907         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18908         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18909         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18910         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18911         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18912         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18913         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18914         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18915         New macros.
18916         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18917         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18918         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18919         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18920         (pthread_spin_unlock): New dummy functions.
18921         (pthread_create): Return EAGAIN; don't set errno.
18922         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18923         require AC_C_INLINE.
18924         * modules/pthread (Depends-on): Add sched, time.
18925         (pthread.h): Use AM_V_GEN.
18926
18927 2010-07-13  Bruno Haible  <bruno@clisp.org>
18928
18929         striconveh: Don't malloc memory if the result buffer is sufficient.
18930         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18931         buffer if its size is sufficient.
18932         Reported by Ludovic Courtès <ludo@gnu.org>.
18933
18934 2010-07-13  Bruno Haible  <bruno@clisp.org>
18935
18936         strtod: Add safety check.
18937         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18938
18939 2010-07-12  Bruno Haible  <bruno@clisp.org>
18940
18941         Unify tests that set gl_cv_func_ldexpl_no_libm.
18942         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18943         gl_FUNC_LDEXPL.
18944         (gl_FUNC_LDEXPL): Invoke it.
18945         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18946
18947 2010-07-12  Bruno Haible  <bruno@clisp.org>
18948
18949         Unify tests that set gl_cv_func_ldexp_no_libm.
18950         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18951         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18952         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18953         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18954         * modules/strtod (Files): Add m4/ldexp.m4.
18955
18956 2010-07-12  Bruno Haible  <bruno@clisp.org>
18957
18958         Unify tests that set gl_cv_func_frexpl_no_libm.
18959         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18960         gl_FUNC_FREXPL_NO_LIBM.
18961         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18962         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18963
18964 2010-07-12  Bruno Haible  <bruno@clisp.org>
18965
18966         Unify tests that set gl_cv_func_frexp_no_libm.
18967         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18968         gl_FUNC_FREXP_NO_LIBM.
18969         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18970         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18971
18972 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18973
18974         memcoll: clarify sizes versus lengths, document better, and tweak perf
18975         * lib/memcoll.c (strcoll_loop, memcoll0):
18976         Improve quality of descriptive comments.  Name variables
18977         consistently as to whether they are lengths (which do not include
18978         terminating null) versus sizes (which do).
18979         * lib/xmemcoll.c (xmemcoll0): Likewise.
18980         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18981         returned when s1size == 0; this is easier to compile and saves
18982         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18983
18984 2010-07-12  Bruno Haible  <bruno@clisp.org>
18985
18986         Tests for module '_Exit'.
18987         * modules/_Exit-tests: New file.
18988         * tests/test-_Exit.sh: New file.
18989         * tests/test-_Exit.c: New file.
18990
18991         New module '_Exit'.
18992         * lib/stdlib.in.h (__attribute__): New macro.
18993         (_Exit): New declaration.
18994         * lib/_Exit.c: New file.
18995         * m4/_Exit.m4: New file.
18996         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18997         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18998         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18999         * modules/_Exit: New file.
19000         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19001         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19002
19003 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19004
19005         strtod: make it more-accurate typically, and don't require libm
19006         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19007         Include limits.h.  Don't include string.h.
19008         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19009         (locale_isspace): New function, so that no casts are needed to
19010         check whether *s is a space.
19011         (ldexp): Provide an unused dummy if not available.
19012         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19013         (strtod): Use them.  This implementation prefers to use the
19014         underlying strtod if available, falling back on our own code
19015         only to fix known bugs.  This is more likely to produce an
19016         accurate result.  Also, it avoids the use of libm functions.
19017         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19018         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19019         was absent, but it caused a test failure with coreutils.
19020         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19021         with libm.
19022         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19023         * modules/strtod-tests (Makefile.am): Likewise.
19024
19025 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19026             Bruno Haible  <bruno@clisp.org>
19027
19028         unistr/u8-strchr: Optimize ASCII argument case.
19029         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19030
19031 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19032
19033         (x)memcoll: minor tweaks
19034         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19035         is after the type that it qualifies.
19036         (memcoll0): Likewise.
19037         * lib/memcoll.h (memcoll0): Likewise.
19038         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19039         * lib/xmemcoll.h (xmemcoll0): Likewise.
19040         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19041         differs from memcoll in that the NUL byte is part of the argument.
19042         Omit the abort-checks, as performance is a real issue here.  Plus,
19043         the checks were wrong anyway (an off-by-one error).  Omit local
19044         variable 'diff', as it's a bit clearer that way.
19045         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19046         no longer needed.
19047
19048 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19049
19050         (x)memcoll: speedup when input is known to be NUL delimited
19051         * lib/memcoll.c: Include stdlib.
19052         (memcoll0): New function.
19053         (strcoll_loop): New function, refactored for use in both memcoll
19054         and memcoll0.
19055         * lib/memcoll.h (memcoll0): Add prototype.
19056         * lib/xmemcoll.c (xmemcoll0): New function.
19057         (collate_error): New function, refactored for use in both xmemcoll
19058         and xmemcoll0.
19059         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19060         * m4/memcoll.m4: add inline invocation.
19061
19062 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19063
19064         * build-aux/bootstrap: Remove any local translations
19065         from the translation project synchronization directory,
19066         so that local only translations are not distributed.
19067
19068 2010-07-04  Bruno Haible  <bruno@clisp.org>
19069
19070         fsusage: Clarify which code applies to which platforms.
19071         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19072         platform.
19073         * lib/fsusage.c (get_fs_usage): Likewise.
19074
19075 2010-07-04  Bruno Haible  <bruno@clisp.org>
19076
19077         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19078         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19079         Reported by Martin Lambers <marlam@marlam.de>.
19080
19081 2010-07-04  Jim Meyering  <meyering@redhat.com>
19082
19083         hash: once again explicitly disallow insertion of NULL
19084         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19085         inserting a NULL pointer cannot work with these functions.
19086         Add a comment with details.
19087         This reverts part of the 2010-07-01 commit, 5bef1a35
19088         "hash: extend module to deal with non-pointer keys".
19089
19090 2010-07-01  Bruno Haible  <bruno@clisp.org>
19091
19092         stdbool: Update doc.
19093         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19094         Info from Christian Weisgerber <naddy@mips.inka.de>.
19095
19096 2010-07-01  Jim Meyering  <meyering@redhat.com>
19097
19098         hash: extend module to deal with non-pointer keys
19099         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19100         but that allows insertion of non-pointer entries.
19101         Do not disallow an ENTRY value of NULL.
19102         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19103         * lib/hash.h (hash_insert0): Declare.
19104
19105 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19106
19107         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19108         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19109         not present (i.e. with autoconf 2.59 and when using gettextize, not
19110         gnulib), require AC_GNU_SOURCE instead.
19111
19112 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19113
19114         idpriv-drop: Fix tests.
19115         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19116         not to the test-idpriv-droptemp program.
19117
19118 2010-06-29  Bruno Haible  <bruno@clisp.org>
19119
19120         string: Fix syntax error with g++ 2.96.
19121         * lib/string.in.h (__pure__): Remove definition.
19122         (_GL_ATTRIBUTE_PURE): New macro.
19123         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19124         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19125         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19126
19127 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19128
19129         unitypes: Fix bug introduced on 2010-05-18.
19130         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19131
19132 2010-06-22  Eric Blake  <eblake@redhat.com>
19133
19134         memmem: slight optimization
19135         * lib/str-two-way.h (critical_factorization): Update comments.
19136         Reduce work during factorization phase.
19137         Reported by Carlos Bueno <carlos@bueno.org>.
19138
19139 2010-06-21  Bruno Haible  <bruno@clisp.org>
19140
19141         Fix HAVE_CALLOC_POSIX misnomer.
19142         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19143         !HAVE_CALLOC_POSIX.
19144         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19145         HAVE_CALLOC_POSIX.
19146         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19147         instead of HAVE_CALLOC_POSIX.
19148         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19149         HAVE_CALLOC_POSIX.
19150
19151         Use modern idiom for calloc() replacement.
19152         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19153         AC_FUNC_CALLOC.
19154         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19155         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19156         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19157         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19158         (gl_REPLACE_CALLOC): New macro.
19159
19160 2010-06-21  Bruno Haible  <bruno@clisp.org>
19161
19162         Fix HAVE_REALLOC_POSIX misnomer.
19163         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19164         !HAVE_REALLOC_POSIX.
19165         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19166         HAVE_REALLOC_POSIX.
19167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19168         instead of HAVE_REALLOC_POSIX.
19169         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19170         HAVE_REALLOC_POSIX.
19171
19172         Use modern idiom for realloc() replacement.
19173         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19174         AC_FUNC_REALLOC.
19175         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19176         Autoconf's AC_FUNC_REALLOC.
19177         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19178         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19179         (gl_REPLACE_REALLOC): New macro.
19180         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19181
19182 2010-06-21  Bruno Haible  <bruno@clisp.org>
19183
19184         Fix HAVE_MALLOC_POSIX misnomer.
19185         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19186         !HAVE_MALLOC_POSIX.
19187         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19188         HAVE_MALLOC_POSIX.
19189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19190         instead of HAVE_MALLOC_POSIX.
19191         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19192         HAVE_MALLOC_POSIX.
19193
19194         Use modern idiom for malloc() replacement.
19195         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19196         AC_FUNC_MALLOC.
19197         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19198         Autoconf's AC_FUNC_MALLOC.
19199         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19200         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19201         (gl_REPLACE_MALLOC): New macro.
19202         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19203
19204 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19205
19206         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19207         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19208         This macro takes 3 arguments, not 4.
19209
19210 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19211
19212         ipv6: fix detection under mingw
19213         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19214         in6_addr.
19215
19216 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19217
19218         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19219         that strtod() works when cross-compiling to a glibc version known
19220         to work.
19221
19222 2010-06-15  Bruno Haible  <bruno@clisp.org>
19223
19224         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19225
19226 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19227
19228         select: Correct timeout.
19229         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19230
19231 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19232
19233         git-version-gen: init shell var to avoid env var influence
19234         * build-aux/git-version-gen (v): Init shell var to empty.
19235
19236 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19237
19238         priv-set: Don't assume that priv.h exists merely because getppriv does.
19239         See Jan Andersen's bug report about AIX 5L in
19240         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19241         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19242         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19243         * lib/priv-set.h: Likewise.
19244         * tests/test-priv-set.c: Likewise.
19245
19246 2010-06-13  Bruno Haible  <bruno@clisp.org>
19247
19248         relocatable: Make it easier to test whether to install wrappers.
19249         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19250         RELOCATABLE_VIA_WRAPPER.
19251
19252 2010-06-13  Bruno Haible  <bruno@clisp.org>
19253
19254         gnulib-tool: Display specified modules and dependencies differently.
19255         * gnulib-tool (func_show_module_list): New function.
19256         (func_import, func_create_testdir): Invoke it.
19257         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19258
19259 2010-06-13  Bruno Haible  <bruno@clisp.org>
19260
19261         gnulib-tool: Align code of func_import and func_create_testdir.
19262         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19263         specified_modules.
19264
19265 2010-06-12  Jim Meyering  <meyering@redhat.com>
19266
19267         test-inttostr: avoid spurious failure on Solaris 9
19268         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19269         to accept "%ju".  Reported by Bruno Haible.
19270
19271 2010-06-11  Jim Meyering  <meyering@redhat.com>
19272
19273         test-sys_socket: mark variables as used more readably
19274         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19275         as "used" explicitly via (void) statement casts.  This is more
19276         readable than using them in an artificial return expression.
19277         Suggestion from Bruno Haible.
19278
19279 2010-06-11  Bruno Haible  <bruno@clisp.org>
19280
19281         Avoid some more warnings from "gcc -Wwrite-strings".
19282         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19283         to 'const char *'.
19284         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19285         * tests/test-c-strcasestr.c (main): Likewise.
19286         * tests/test-mbscasestr1.c (main): Likewise.
19287         * tests/test-mbscasestr2.c (main): Likewise.
19288         * tests/test-memmem.c (main): Likewise.
19289         * tests/test-strstr.c (main): Likewise.
19290         * tests/test-strcasestr.c (main): Likewise.
19291
19292 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19293
19294         init.sh: change framework_failure_ to fail with status 99, not 1
19295         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19296         automake's parallel-tests rule that this is an unexpected failure,
19297         even if the test is listed in XFAIL_TESTS.
19298
19299 2010-06-11  Jim Meyering  <meyering@redhat.com>
19300
19301         test-inttostr: avoid warnings about 4-6KB literal strings
19302         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19303         Include "macros.h", for its definition of ASSERT.
19304         (CK): s/assert/ASSERT/
19305         * modules/inttostr-tests (Files): Add macros.h.
19306
19307         init.sh: don't use $ME_ or skip_ before they are defined
19308         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19309         their first uses.  Also hoist their companions: warn_, fail_,
19310         framework_failure_, $stderr_fileno.  Prompted by a patch from
19311         Stefano Lattarini.
19312
19313         test-sys_socket: avoid set-but-not-used warnings from gcc
19314         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19315         avoid warning about set-but-not-used variables.
19316
19317         test-xvasprintf: avoid 'const' discard warnings
19318         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19319         "const" when assigning from literal strings.
19320         (test_xasprintf): Add "void" in function argument list to placate
19321         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19322
19323         tests: avoid compilation warnings in argmatch and exclude tests...
19324         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19325         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19326         Since it always exits, declare with the "noreturn" attribute.
19327         * tests/test-argmatch.c: Likewise.
19328
19329         tests: avoid 'const' discard warnings in mbsstr tests
19330         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19331         * tests/test-mbsstr2.c (main): Likewise.
19332
19333         test-verify: avoid warning from gcc's -Wmissing-declarations
19334         * tests/test-verify.c (function): Declare to be static.
19335
19336         test-inttostr.c: include <string.h> for use of strcmp
19337         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19338
19339         test-linkat: avoid failed assertion on "other" architectures
19340         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19341         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19342         sparc: https://bugs.launchpad.net/bugs/591968
19343
19344 2010-06-11  Jim Meyering  <meyering@redhat.com>
19345
19346         printf.m4: avoid autoconf's "Expanded Before Required" warning
19347         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19348         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19349         autoconf warning.
19350
19351 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19352
19353         Replacement header templates are now named with ".in", not "_".
19354         * doc/gnulib-intro.texi: Correct.
19355
19356 2010-06-10  Jim Meyering  <meyering@redhat.com>
19357
19358         inttostr-tests: depend on snprintf, not snprintf-posix
19359         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19360         snprintf-posix, to avoid this aclocal failure:
19361           missing file gnulib-tests/vasnprintf.c
19362           configure.ac:45: error: expected source file, required through \
19363           AC_LIBSOURCES, not found
19364
19365 2010-06-10  Jim Meyering  <meyering@redhat.com>
19366
19367         inttostr: add a new function, inttostr, and tests
19368         The namesake function was not available.  The existence of the
19369         template file, inttostr.c makes its addition nontrivial.
19370         * lib/anytostr.c: Rename from inttostr.c.
19371         (anytostr): Rename from inttostr.
19372         * lib/inttostr.c: New file.
19373         * modules/inttostr (Files): Add anytostr.c.
19374         (Makefile.am): Set lib_SOURCES instead of ...
19375         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19376         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19377         * lib/offtostr.c: Likewise.
19378         * lib/uinttostr.c: Likewise.
19379         * lib/umaxtostr.c: Likewise.
19380         * modules/inttostr-tests: New file.
19381         * tests/test-inttostr.c: New file.  Test these functions.
19382
19383 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19384             Bruno Haible  <bruno@clisp.org>
19385
19386         Add "Extending Gnulib" chapter to manual.
19387         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19388         chapter.
19389         (Extending Gnulib): New chapter.
19390         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19391         chapter.
19392
19393 2010-06-09  Bruno Haible  <bruno@clisp.org>
19394
19395         Avoid relocwrapper link errors due to gnulib replacement functions.
19396         * lib/areadlink.c: Use the system's malloc, realloc functions.
19397         (areadlink): Set errno to ENOMEM explicitly.
19398         * modules/areadlink (Depends-on): Remove malloc-posix.
19399         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19400
19401 2010-06-09  Bruno Haible  <bruno@clisp.org>
19402
19403         Avoid relocwrapper link errors due to gnulib replacement functions.
19404         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19405         * lib/malloca.c: Likewise.
19406         * lib/relocatable.c: Likewise.
19407         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19408         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19409         * lib/setenv.c: Use the system's malloc, realloc functions.
19410         * lib/strerror.c: Use the system's sprintf function.
19411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19412
19413 2010-06-04  Bruno Haible  <bruno@clisp.org>
19414
19415         Prefer documented low-level autoconf macro names.
19416         * m4/lib-link.m4: Use m4_translit instead of translit.
19417         * m4/environ.m4: Likewise.
19418         * m4/mathfunc.m4: Likewise.
19419         * m4/onceonly.m4: Likewise.
19420         * m4/stdint.m4: Likewise.
19421         Suggested by Eric Blake.
19422
19423 2010-06-04  Martin Lambers  <marlam@marlam.de>
19424             Bruno Haible  <bruno@clisp.org>
19425
19426         havelib: Allow library names with '+' characters.
19427         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19428         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19429
19430 2010-06-09  Bruno Haible  <bruno@clisp.org>
19431
19432         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19433         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19434         realloc failed.
19435
19436 2010-06-08  Peter Simons  <simons@cryp.to>
19437
19438         maint.mk: make the news-check rule more configurable
19439         * top/maint.mk (news-check-lines-spec): New variable.
19440         (news-check): Use "sed -n 1,10p" in place of "head".
19441
19442 2010-06-07  Jim Meyering  <meyering@redhat.com>
19443
19444         do-release-commit-and-tag: fix typo in --help
19445         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19446
19447         regex: avoid new dead-code warning with gcc-4.6.0
19448         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19449         if-block containing a while-loop.  It's been unused for at least
19450         5 years.
19451
19452 2010-06-05  Bruno Haible  <bruno@clisp.org>
19453
19454         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19455         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19456
19457 2010-06-04  Bruno Haible  <bruno@clisp.org>
19458
19459         Update to GNU gettext 0.18.1.
19460         * modules/gettext (configure.ac): Require gettext infrastructure from
19461         version 0.18.1.
19462
19463 2010-06-03  Bruno Haible  <bruno@clisp.org>
19464
19465         Don't use AC_LIBOBJ with file names in subdirectories.
19466         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19467         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19468         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19469         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19470         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19471         gl_LIBUNISTRING_LIBSOURCE.
19472         (Makefile.am): Augment lib_SOURCES here, conditionally.
19473         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19474
19475 2010-06-03  Bruno Haible  <bruno@clisp.org>
19476
19477         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19478         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19479         expansion does not end with a newline.
19480         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19481         unnecessary newline.
19482
19483 2010-06-03  Bruno Haible  <bruno@clisp.org>
19484
19485         Reduce dependencies.
19486         * tests/test-quotearg.h: New file, extracted from
19487         tests/test-quotearg.c.
19488         * tests/test-quotearg-simple.c: New file, extracted from
19489         tests/test-quotearg.c.
19490         * tests/test-quotearg.c: Don't include <ctype.h>.
19491         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19492         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19493         use_quote_double_quotes, use_quotearg_colon): Moved to
19494         tests/test-quotearg.h.
19495         (results_g, flag_results, custom_quotes, custom_results): Moved
19496         to tests/test-quotearg-simple.c.
19497         (main): Moved the part that does not depend on gettext to
19498         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19499         performed.
19500         * modules/quotearg-simple: New file.
19501         * modules/quotearg-simple-tests: New file.
19502         * modules/quotearg (Depends-on): Add quotearg-simple.
19503         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19504         (Files): Add tests/test-quotearg.h.
19505         Reported by Paolo Bonzini.
19506
19507 2010-06-03  Bruno Haible  <bruno@clisp.org>
19508
19509         Reduce dependencies.
19510         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19511
19512 2010-06-03  Bruno Haible  <bruno@clisp.org>
19513
19514         time: Undefine more broken macros.
19515         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19516         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19517         Reported by Eric Blake.
19518
19519 2010-06-03  Bruno Haible  <bruno@clisp.org>
19520
19521         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19522         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19523         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19524         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19525         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19526         Reported by Ludovic Courtès <ludo@gnu.org>.
19527
19528 2010-06-02  Eric Blake  <eblake@redhat.com>
19529
19530         time: work with mingw + pthreads-win32 library
19531         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19532         if timespec is defined only in pthread.h.
19533         * modules/time (Makefile.am): Substitute it.
19534         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19535         <pthread.h>, when needed.
19536         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19537         from the library.
19538
19539 2010-05-31  Bruno Haible  <bruno@clisp.org>
19540
19541         Avoid expanding two macros in the wrong order.
19542         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19543         gl_LIBUNISTRING if it is defined.
19544         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19545         autoconf >= 2.64.
19546         Reported by Ludovic Courtès <ludo@gnu.org>.
19547
19548 2010-05-27  Jim Meyering  <meyering@redhat.com>
19549
19550         maint.mk: also prohibit "#undef" of always-defined symbols
19551         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19552         Allow more than one space before the symbol name.
19553         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19554         the regexp uses alternation.
19555
19556 2010-05-26  Eric Blake  <eblake@redhat.com>
19557
19558         maint.mk: avoid echo -e
19559         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19560         Convert all uses of echo -* to printf.
19561         Reported by Matthias Bolte.
19562
19563 2010-05-25  Bruno Haible  <bruno@clisp.org>
19564
19565         Update to GNU gettext 0.18, part 2.
19566         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19567         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19568
19569 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19570
19571         Add missing include in test-pwrite.c.
19572         * tests/test-pwrite.c: Include string.h, for strcmp.
19573
19574 2010-05-24  Bruno Haible  <bruno@clisp.org>
19575
19576         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19577
19578 2010-05-24  Bruno Haible  <bruno@clisp.org>
19579
19580         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19581         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19582         iconveh_error argument.
19583         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19584         U_STRCONV_TO_LOCALE.
19585         * lib/unistr/u16-strcoll.c: Likewise.
19586         * lib/unistr/u32-strcoll.c: Likewise.
19587         * modules/unistr/u8-strcoll (Depends-on): Add
19588         uniconv/u8-strconv-to-enc, localcharset. Remove
19589         uniconv/u8-strconv-to-locale.
19590         (configure.ac): Bump version number.
19591         * modules/unistr/u16-strcoll (Depends-on): Add
19592         uniconv/u16-strconv-to-enc, localcharset. Remove
19593         uniconv/u16-strconv-to-locale.
19594         (configure.ac): Bump version number.
19595         * modules/unistr/u32-strcoll (Depends-on): Add
19596         uniconv/u32-strconv-to-enc, localcharset. Remove
19597         uniconv/u32-strconv-to-locale.
19598         (configure.ac): Bump version number.
19599
19600 2010-05-24  Bruno Haible  <bruno@clisp.org>
19601
19602         Avoid a test failure on NetBSD 5.0.
19603         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19604         an iconv() bug.
19605
19606 2010-05-24  Bruno Haible  <bruno@clisp.org>
19607
19608         Adjust #include directive style.
19609         * modules/regex (Includes): Recommend to write <regex.h>.
19610
19611 2010-05-24  Bruno Haible  <bruno@clisp.org>
19612
19613         regex: Don't require alloca.
19614         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19615         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19616         only inside if (0).
19617
19618 2010-05-23  Jim Meyering  <meyering@redhat.com>
19619
19620         test-renameat.c: include <sys/stat.h>
19621         * tests/test-renameat.c: Include <sys/stat.h>; required for
19622         definition of S_IS* macros.
19623
19624 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19625
19626         Update maintainer documentation for 'relocatable-prog' module.
19627         * doc/relocatable-maint.texi: Update.
19628         Comments by Bruno Haible.
19629
19630 2010-05-23  Bruno Haible  <bruno@clisp.org>
19631
19632         git-merge-changelog: Enable --split-merged-entry by default.
19633         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19634         (usage): Don't mention this option any more.
19635         Reported by Ralf Wildenhues.
19636
19637 2010-05-23  Jim Meyering  <meyering@redhat.com>
19638
19639         test-pwrite: do not leave behind a test file named "out"
19640         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19641         The trivial-looking use of init.sh is really necessary.
19642         It ensures that the temporary file, "out", is created in
19643         a temporary directory, and removed upon termination.
19644         * tests/test-pwrite.sh: Re-add file.
19645         * modules/pwrite-tests: Reference it.
19646
19647 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19648
19649         Fix output redirection buglet in init.sh.
19650         * tests/init.sh: Fix redirection of stderr.
19651
19652 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19653
19654         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19655
19656 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19657
19658         * modules/valgrind-tests: New file.
19659         * m4/valgrind-tests.m4: New file.
19660         * doc/valgrind-tests.texi: New file.
19661         * doc/gnulib.texi (Running self-tests under valgrind): New
19662         section.
19663
19664 2010-05-19  Bruno Haible  <bruno@clisp.org>
19665
19666         Clean up dead code in recent commit.
19667         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19668         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19669         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19670         Suggested by Paolo Bonzini.
19671
19672 2010-05-19  Bruno Haible  <bruno@clisp.org>
19673
19674         Avoid valgrind error reports from libunistring.
19675         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19676         * modules/libunistring (Files): Add it.
19677         * modules/libunistring-optional (Files): Likewise.
19678
19679 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19680             Bruno Haible  <bruno@clisp.org>
19681
19682         New module 'libunistring-optional'.
19683         * modules/libunistring-optional: New file.
19684         * m4/libunistring-base.m4: New file.
19685         * m4/libunistring-optional.m4: New file.
19686         * lib/unicase.in.h: Renamed from lib/unicase.h.
19687         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19688         * lib/unictype.in.h: Renamed from lib/unictype.h.
19689         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19690         * lib/uniname.in.h: Renamed from lib/uniname.h.
19691         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19692         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19693         * lib/unistr.in.h: Renamed from lib/unistr.h.
19694         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19695         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19696         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19697         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19698         gl_LIBUNISTRING. If the library was found, determine the installed
19699         version and set LIBUNISTRING_VERSION.
19700         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19701         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19702         handle a configuration option --with-included-libunistring.
19703         * modules/libunistring (Files): Add m4/absolute-header.m4.
19704         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19705         Add m4/libunistring-base.m4.
19706         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19707         (Makefile.am): Build unicase.h from unicase.in.h.
19708         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19709         Add m4/libunistring-base.m4.
19710         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19711         (Makefile.am): Build uniconv.h from uniconv.in.h.
19712         * modules/unictype/base (Files): Use unictype.in.h instead of
19713         unictype.h. Add m4/libunistring-base.m4.
19714         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19715         (Makefile.am): Build unictype.h from unictype.in.h.
19716         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19717         Add m4/libunistring-base.m4.
19718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19719         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19720         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19721         Add m4/libunistring-base.m4.
19722         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19723         (Makefile.am): Build uniname.h from uniname.in.h.
19724         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19725         Add m4/libunistring-base.m4.
19726         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19727         (Makefile.am): Build uninorm.h from uninorm.in.h.
19728         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19729         unistdio.h. Add m4/libunistring-base.m4.
19730         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19731         (Makefile.am): Build unistdio.h from unistdio.in.h.
19732         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19733         Add m4/libunistring-base.m4.
19734         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19735         (Makefile.am): Build unistr.h from unistr.in.h.
19736         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19737         Add m4/libunistring-base.m4.
19738         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19739         (Makefile.am): Build unitypes.h from unitypes.in.h.
19740         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19741         Add m4/libunistring-base.m4.
19742         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19743         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19744         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19745         uniwidth.h. Add m4/libunistring-base.m4.
19746         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19747         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19748         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19749         instead of augmenting lib_SOURCES.
19750         * modules/unicase/empty-suffix-context: Likewise.
19751         * modules/unicase/locale-language: Likewise.
19752         * modules/unicase/tolower: Likewise.
19753         * modules/unicase/totitle: Likewise.
19754         * modules/unicase/toupper: Likewise.
19755         * modules/unicase/u8-casecmp: Likewise.
19756         * modules/unicase/u8-casecoll: Likewise.
19757         * modules/unicase/u8-casefold: Likewise.
19758         * modules/unicase/u8-casexfrm: Likewise.
19759         * modules/unicase/u8-ct-casefold: Likewise.
19760         * modules/unicase/u8-ct-tolower: Likewise.
19761         * modules/unicase/u8-ct-totitle: Likewise.
19762         * modules/unicase/u8-ct-toupper: Likewise.
19763         * modules/unicase/u8-is-cased: Likewise.
19764         * modules/unicase/u8-is-casefolded: Likewise.
19765         * modules/unicase/u8-is-lowercase: Likewise.
19766         * modules/unicase/u8-is-titlecase: Likewise.
19767         * modules/unicase/u8-is-uppercase: Likewise.
19768         * modules/unicase/u8-prefix-context: Likewise.
19769         * modules/unicase/u8-suffix-context: Likewise.
19770         * modules/unicase/u8-tolower: Likewise.
19771         * modules/unicase/u8-totitle: Likewise.
19772         * modules/unicase/u8-toupper: Likewise.
19773         * modules/unicase/u16-casecmp: Likewise.
19774         * modules/unicase/u16-casecoll: Likewise.
19775         * modules/unicase/u16-casefold: Likewise.
19776         * modules/unicase/u16-casexfrm: Likewise.
19777         * modules/unicase/u16-ct-casefold: Likewise.
19778         * modules/unicase/u16-ct-tolower: Likewise.
19779         * modules/unicase/u16-ct-totitle: Likewise.
19780         * modules/unicase/u16-ct-toupper: Likewise.
19781         * modules/unicase/u16-is-cased: Likewise.
19782         * modules/unicase/u16-is-casefolded: Likewise.
19783         * modules/unicase/u16-is-lowercase: Likewise.
19784         * modules/unicase/u16-is-titlecase: Likewise.
19785         * modules/unicase/u16-is-uppercase: Likewise.
19786         * modules/unicase/u16-prefix-context: Likewise.
19787         * modules/unicase/u16-suffix-context: Likewise.
19788         * modules/unicase/u16-tolower: Likewise.
19789         * modules/unicase/u16-totitle: Likewise.
19790         * modules/unicase/u16-toupper: Likewise.
19791         * modules/unicase/u32-casecmp: Likewise.
19792         * modules/unicase/u32-casecoll: Likewise.
19793         * modules/unicase/u32-casefold: Likewise.
19794         * modules/unicase/u32-casexfrm: Likewise.
19795         * modules/unicase/u32-ct-casefold: Likewise.
19796         * modules/unicase/u32-ct-tolower: Likewise.
19797         * modules/unicase/u32-ct-totitle: Likewise.
19798         * modules/unicase/u32-ct-toupper: Likewise.
19799         * modules/unicase/u32-is-cased: Likewise.
19800         * modules/unicase/u32-is-casefolded: Likewise.
19801         * modules/unicase/u32-is-lowercase: Likewise.
19802         * modules/unicase/u32-is-titlecase: Likewise.
19803         * modules/unicase/u32-is-uppercase: Likewise.
19804         * modules/unicase/u32-prefix-context: Likewise.
19805         * modules/unicase/u32-suffix-context: Likewise.
19806         * modules/unicase/u32-tolower: Likewise.
19807         * modules/unicase/u32-totitle: Likewise.
19808         * modules/unicase/u32-toupper: Likewise.
19809         * modules/unicase/ulc-casecmp: Likewise.
19810         * modules/unicase/ulc-casecoll: Likewise.
19811         * modules/unicase/ulc-casexfrm: Likewise.
19812         * modules/uniconv/u8-conv-from-enc: Likewise.
19813         * modules/uniconv/u8-conv-to-enc: Likewise.
19814         * modules/uniconv/u8-strconv-from-enc: Likewise.
19815         * modules/uniconv/u8-strconv-from-locale: Likewise.
19816         * modules/uniconv/u8-strconv-to-enc: Likewise.
19817         * modules/uniconv/u8-strconv-to-locale: Likewise.
19818         * modules/uniconv/u16-conv-from-enc: Likewise.
19819         * modules/uniconv/u16-conv-to-enc: Likewise.
19820         * modules/uniconv/u16-strconv-from-enc: Likewise.
19821         * modules/uniconv/u16-strconv-from-locale: Likewise.
19822         * modules/uniconv/u16-strconv-to-enc: Likewise.
19823         * modules/uniconv/u16-strconv-to-locale: Likewise.
19824         * modules/uniconv/u32-conv-from-enc: Likewise.
19825         * modules/uniconv/u32-conv-to-enc: Likewise.
19826         * modules/uniconv/u32-strconv-from-enc: Likewise.
19827         * modules/uniconv/u32-strconv-from-locale: Likewise.
19828         * modules/uniconv/u32-strconv-to-enc: Likewise.
19829         * modules/uniconv/u32-strconv-to-locale: Likewise.
19830         * modules/unictype/bidicategory-byname: Likewise.
19831         * modules/unictype/bidicategory-name: Likewise.
19832         * modules/unictype/bidicategory-of: Likewise.
19833         * modules/unictype/bidicategory-test: Likewise.
19834         * modules/unictype/block-list: Likewise.
19835         * modules/unictype/block-test: Likewise.
19836         * modules/unictype/category-C: Likewise.
19837         * modules/unictype/category-Cc: Likewise.
19838         * modules/unictype/category-Cf: Likewise.
19839         * modules/unictype/category-Cn: Likewise.
19840         * modules/unictype/category-Co: Likewise.
19841         * modules/unictype/category-Cs: Likewise.
19842         * modules/unictype/category-L: Likewise.
19843         * modules/unictype/category-Ll: Likewise.
19844         * modules/unictype/category-Lm: Likewise.
19845         * modules/unictype/category-Lo: Likewise.
19846         * modules/unictype/category-Lt: Likewise.
19847         * modules/unictype/category-Lu: Likewise.
19848         * modules/unictype/category-M: Likewise.
19849         * modules/unictype/category-Mc: Likewise.
19850         * modules/unictype/category-Me: Likewise.
19851         * modules/unictype/category-Mn: Likewise.
19852         * modules/unictype/category-N: Likewise.
19853         * modules/unictype/category-Nd: Likewise.
19854         * modules/unictype/category-Nl: Likewise.
19855         * modules/unictype/category-No: Likewise.
19856         * modules/unictype/category-P: Likewise.
19857         * modules/unictype/category-Pc: Likewise.
19858         * modules/unictype/category-Pd: Likewise.
19859         * modules/unictype/category-Pe: Likewise.
19860         * modules/unictype/category-Pf: Likewise.
19861         * modules/unictype/category-Pi: Likewise.
19862         * modules/unictype/category-Po: Likewise.
19863         * modules/unictype/category-Ps: Likewise.
19864         * modules/unictype/category-S: Likewise.
19865         * modules/unictype/category-Sc: Likewise.
19866         * modules/unictype/category-Sk: Likewise.
19867         * modules/unictype/category-Sm: Likewise.
19868         * modules/unictype/category-So: Likewise.
19869         * modules/unictype/category-Z: Likewise.
19870         * modules/unictype/category-Zl: Likewise.
19871         * modules/unictype/category-Zp: Likewise.
19872         * modules/unictype/category-Zs: Likewise.
19873         * modules/unictype/category-and: Likewise.
19874         * modules/unictype/category-and-not: Likewise.
19875         * modules/unictype/category-byname: Likewise.
19876         * modules/unictype/category-name: Likewise.
19877         * modules/unictype/category-none: Likewise.
19878         * modules/unictype/category-of: Likewise.
19879         * modules/unictype/category-or: Likewise.
19880         * modules/unictype/category-test: Likewise.
19881         * modules/unictype/combining-class: Likewise.
19882         * modules/unictype/ctype-alnum: Likewise.
19883         * modules/unictype/ctype-alpha: Likewise.
19884         * modules/unictype/ctype-blank: Likewise.
19885         * modules/unictype/ctype-cntrl: Likewise.
19886         * modules/unictype/ctype-digit: Likewise.
19887         * modules/unictype/ctype-graph: Likewise.
19888         * modules/unictype/ctype-lower: Likewise.
19889         * modules/unictype/ctype-print: Likewise.
19890         * modules/unictype/ctype-punct: Likewise.
19891         * modules/unictype/ctype-space: Likewise.
19892         * modules/unictype/ctype-upper: Likewise.
19893         * modules/unictype/ctype-xdigit: Likewise.
19894         * modules/unictype/decimal-digit: Likewise.
19895         * modules/unictype/digit: Likewise.
19896         * modules/unictype/mirror: Likewise.
19897         * modules/unictype/numeric: Likewise.
19898         * modules/unictype/property-alphabetic: Likewise.
19899         * modules/unictype/property-ascii-hex-digit: Likewise.
19900         * modules/unictype/property-bidi-arabic-digit: Likewise.
19901         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19902         * modules/unictype/property-bidi-block-separator: Likewise.
19903         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19904         * modules/unictype/property-bidi-common-separator: Likewise.
19905         * modules/unictype/property-bidi-control: Likewise.
19906         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19907         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19908         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19909         * modules/unictype/property-bidi-european-digit: Likewise.
19910         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19911         * modules/unictype/property-bidi-left-to-right: Likewise.
19912         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19913         * modules/unictype/property-bidi-other-neutral: Likewise.
19914         * modules/unictype/property-bidi-pdf: Likewise.
19915         * modules/unictype/property-bidi-segment-separator: Likewise.
19916         * modules/unictype/property-bidi-whitespace: Likewise.
19917         * modules/unictype/property-byname: Likewise.
19918         * modules/unictype/property-combining: Likewise.
19919         * modules/unictype/property-composite: Likewise.
19920         * modules/unictype/property-currency-symbol: Likewise.
19921         * modules/unictype/property-dash: Likewise.
19922         * modules/unictype/property-decimal-digit: Likewise.
19923         * modules/unictype/property-default-ignorable-code-point: Likewise.
19924         * modules/unictype/property-deprecated: Likewise.
19925         * modules/unictype/property-diacritic: Likewise.
19926         * modules/unictype/property-extender: Likewise.
19927         * modules/unictype/property-format-control: Likewise.
19928         * modules/unictype/property-grapheme-base: Likewise.
19929         * modules/unictype/property-grapheme-extend: Likewise.
19930         * modules/unictype/property-grapheme-link: Likewise.
19931         * modules/unictype/property-hex-digit: Likewise.
19932         * modules/unictype/property-hyphen: Likewise.
19933         * modules/unictype/property-id-continue: Likewise.
19934         * modules/unictype/property-id-start: Likewise.
19935         * modules/unictype/property-ideographic: Likewise.
19936         * modules/unictype/property-ids-binary-operator: Likewise.
19937         * modules/unictype/property-ids-trinary-operator: Likewise.
19938         * modules/unictype/property-ignorable-control: Likewise.
19939         * modules/unictype/property-iso-control: Likewise.
19940         * modules/unictype/property-join-control: Likewise.
19941         * modules/unictype/property-left-of-pair: Likewise.
19942         * modules/unictype/property-line-separator: Likewise.
19943         * modules/unictype/property-logical-order-exception: Likewise.
19944         * modules/unictype/property-lowercase: Likewise.
19945         * modules/unictype/property-math: Likewise.
19946         * modules/unictype/property-non-break: Likewise.
19947         * modules/unictype/property-not-a-character: Likewise.
19948         * modules/unictype/property-numeric: Likewise.
19949         * modules/unictype/property-other-alphabetic: Likewise.
19950         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19951         * modules/unictype/property-other-grapheme-extend: Likewise.
19952         * modules/unictype/property-other-id-continue: Likewise.
19953         * modules/unictype/property-other-id-start: Likewise.
19954         * modules/unictype/property-other-lowercase: Likewise.
19955         * modules/unictype/property-other-math: Likewise.
19956         * modules/unictype/property-other-uppercase: Likewise.
19957         * modules/unictype/property-paired-punctuation: Likewise.
19958         * modules/unictype/property-paragraph-separator: Likewise.
19959         * modules/unictype/property-pattern-syntax: Likewise.
19960         * modules/unictype/property-pattern-white-space: Likewise.
19961         * modules/unictype/property-private-use: Likewise.
19962         * modules/unictype/property-punctuation: Likewise.
19963         * modules/unictype/property-quotation-mark: Likewise.
19964         * modules/unictype/property-radical: Likewise.
19965         * modules/unictype/property-sentence-terminal: Likewise.
19966         * modules/unictype/property-soft-dotted: Likewise.
19967         * modules/unictype/property-space: Likewise.
19968         * modules/unictype/property-terminal-punctuation: Likewise.
19969         * modules/unictype/property-test: Likewise.
19970         * modules/unictype/property-titlecase: Likewise.
19971         * modules/unictype/property-unassigned-code-value: Likewise.
19972         * modules/unictype/property-unified-ideograph: Likewise.
19973         * modules/unictype/property-uppercase: Likewise.
19974         * modules/unictype/property-variation-selector: Likewise.
19975         * modules/unictype/property-white-space: Likewise.
19976         * modules/unictype/property-xid-continue: Likewise.
19977         * modules/unictype/property-xid-start: Likewise.
19978         * modules/unictype/property-zero-width: Likewise.
19979         * modules/unictype/scripts: Likewise.
19980         * modules/unictype/syntax-c-ident: Likewise.
19981         * modules/unictype/syntax-c-whitespace: Likewise.
19982         * modules/unictype/syntax-java-ident: Likewise.
19983         * modules/unictype/syntax-java-whitespace: Likewise.
19984         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19985         * modules/unilbrk/u8-width-linebreaks: Likewise.
19986         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19987         * modules/unilbrk/u16-width-linebreaks: Likewise.
19988         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19989         * modules/unilbrk/u32-width-linebreaks: Likewise.
19990         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19991         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19992         * modules/uniname/uniname: Likewise.
19993         * modules/uninorm/canonical-decomposition: Likewise.
19994         * modules/uninorm/composition: Likewise.
19995         * modules/uninorm/decomposing-form: Likewise.
19996         * modules/uninorm/decomposition: Likewise.
19997         * modules/uninorm/filter: Likewise.
19998         * modules/uninorm/nfc: Likewise.
19999         * modules/uninorm/nfd: Likewise.
20000         * modules/uninorm/nfkc: Likewise.
20001         * modules/uninorm/nfkd: Likewise.
20002         * modules/uninorm/u8-normalize: Likewise.
20003         * modules/uninorm/u8-normcmp: Likewise.
20004         * modules/uninorm/u8-normcoll: Likewise.
20005         * modules/uninorm/u8-normxfrm: Likewise.
20006         * modules/uninorm/u16-normalize: Likewise.
20007         * modules/uninorm/u16-normcmp: Likewise.
20008         * modules/uninorm/u16-normcoll: Likewise.
20009         * modules/uninorm/u16-normxfrm: Likewise.
20010         * modules/uninorm/u32-normalize: Likewise.
20011         * modules/uninorm/u32-normcmp: Likewise.
20012         * modules/uninorm/u32-normcoll: Likewise.
20013         * modules/uninorm/u32-normxfrm: Likewise.
20014         * modules/unistdio/u8-asnprintf: Likewise.
20015         * modules/unistdio/u8-asprintf: Likewise.
20016         * modules/unistdio/u8-snprintf: Likewise.
20017         * modules/unistdio/u8-sprintf: Likewise.
20018         * modules/unistdio/u8-u8-asnprintf: Likewise.
20019         * modules/unistdio/u8-u8-asprintf: Likewise.
20020         * modules/unistdio/u8-u8-snprintf: Likewise.
20021         * modules/unistdio/u8-u8-sprintf: Likewise.
20022         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20023         * modules/unistdio/u8-u8-vasprintf: Likewise.
20024         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20025         * modules/unistdio/u8-u8-vsprintf: Likewise.
20026         * modules/unistdio/u8-vasnprintf: Likewise.
20027         * modules/unistdio/u8-vasprintf: Likewise.
20028         * modules/unistdio/u8-vsnprintf: Likewise.
20029         * modules/unistdio/u8-vsprintf: Likewise.
20030         * modules/unistdio/u16-asnprintf: Likewise.
20031         * modules/unistdio/u16-asprintf: Likewise.
20032         * modules/unistdio/u16-snprintf: Likewise.
20033         * modules/unistdio/u16-sprintf: Likewise.
20034         * modules/unistdio/u16-u16-asnprintf: Likewise.
20035         * modules/unistdio/u16-u16-asprintf: Likewise.
20036         * modules/unistdio/u16-u16-snprintf: Likewise.
20037         * modules/unistdio/u16-u16-sprintf: Likewise.
20038         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20039         * modules/unistdio/u16-u16-vasprintf: Likewise.
20040         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20041         * modules/unistdio/u16-u16-vsprintf: Likewise.
20042         * modules/unistdio/u16-vasnprintf: Likewise.
20043         * modules/unistdio/u16-vasprintf: Likewise.
20044         * modules/unistdio/u16-vsnprintf: Likewise.
20045         * modules/unistdio/u16-vsprintf: Likewise.
20046         * modules/unistdio/u32-asnprintf: Likewise.
20047         * modules/unistdio/u32-asprintf: Likewise.
20048         * modules/unistdio/u32-snprintf: Likewise.
20049         * modules/unistdio/u32-sprintf: Likewise.
20050         * modules/unistdio/u32-u32-asnprintf: Likewise.
20051         * modules/unistdio/u32-u32-asprintf: Likewise.
20052         * modules/unistdio/u32-u32-snprintf: Likewise.
20053         * modules/unistdio/u32-u32-sprintf: Likewise.
20054         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20055         * modules/unistdio/u32-u32-vasprintf: Likewise.
20056         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20057         * modules/unistdio/u32-u32-vsprintf: Likewise.
20058         * modules/unistdio/u32-vasnprintf: Likewise.
20059         * modules/unistdio/u32-vasprintf: Likewise.
20060         * modules/unistdio/u32-vsnprintf: Likewise.
20061         * modules/unistdio/u32-vsprintf: Likewise.
20062         * modules/unistdio/ulc-asnprintf: Likewise.
20063         * modules/unistdio/ulc-asprintf: Likewise.
20064         * modules/unistdio/ulc-fprintf: Likewise.
20065         * modules/unistdio/ulc-snprintf: Likewise.
20066         * modules/unistdio/ulc-sprintf: Likewise.
20067         * modules/unistdio/ulc-vasnprintf: Likewise.
20068         * modules/unistdio/ulc-vasprintf: Likewise.
20069         * modules/unistdio/ulc-vfprintf: Likewise.
20070         * modules/unistdio/ulc-vsnprintf: Likewise.
20071         * modules/unistdio/ulc-vsprintf: Likewise.
20072         * modules/unistr/u8-check: Likewise.
20073         * modules/unistr/u8-chr: Likewise.
20074         * modules/unistr/u8-cmp: Likewise.
20075         * modules/unistr/u8-cmp2: Likewise.
20076         * modules/unistr/u8-cpy: Likewise.
20077         * modules/unistr/u8-cpy-alloc: Likewise.
20078         * modules/unistr/u8-endswith: Likewise.
20079         * modules/unistr/u8-mblen: Likewise.
20080         * modules/unistr/u8-mbsnlen: Likewise.
20081         * modules/unistr/u8-mbtouc: Likewise.
20082         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20083         * modules/unistr/u8-mbtoucr: Likewise.
20084         * modules/unistr/u8-move: Likewise.
20085         * modules/unistr/u8-next: Likewise.
20086         * modules/unistr/u8-prev: Likewise.
20087         * modules/unistr/u8-set: Likewise.
20088         * modules/unistr/u8-startswith: Likewise.
20089         * modules/unistr/u8-stpcpy: Likewise.
20090         * modules/unistr/u8-stpncpy: Likewise.
20091         * modules/unistr/u8-strcat: Likewise.
20092         * modules/unistr/u8-strchr: Likewise.
20093         * modules/unistr/u8-strcmp: Likewise.
20094         * modules/unistr/u8-strcoll: Likewise.
20095         * modules/unistr/u8-strcpy: Likewise.
20096         * modules/unistr/u8-strcspn: Likewise.
20097         * modules/unistr/u8-strdup: Likewise.
20098         * modules/unistr/u8-strlen: Likewise.
20099         * modules/unistr/u8-strmblen: Likewise.
20100         * modules/unistr/u8-strmbtouc: Likewise.
20101         * modules/unistr/u8-strncat: Likewise.
20102         * modules/unistr/u8-strncmp: Likewise.
20103         * modules/unistr/u8-strncpy: Likewise.
20104         * modules/unistr/u8-strnlen: Likewise.
20105         * modules/unistr/u8-strpbrk: Likewise.
20106         * modules/unistr/u8-strrchr: Likewise.
20107         * modules/unistr/u8-strspn: Likewise.
20108         * modules/unistr/u8-strstr: Likewise.
20109         * modules/unistr/u8-strtok: Likewise.
20110         * modules/unistr/u8-to-u16: Likewise.
20111         * modules/unistr/u8-to-u32: Likewise.
20112         * modules/unistr/u8-uctomb: Likewise.
20113         * modules/unistr/u16-check: Likewise.
20114         * modules/unistr/u16-chr: Likewise.
20115         * modules/unistr/u16-cmp: Likewise.
20116         * modules/unistr/u16-cmp2: Likewise.
20117         * modules/unistr/u16-cpy: Likewise.
20118         * modules/unistr/u16-cpy-alloc: Likewise.
20119         * modules/unistr/u16-endswith: Likewise.
20120         * modules/unistr/u16-mblen: Likewise.
20121         * modules/unistr/u16-mbsnlen: Likewise.
20122         * modules/unistr/u16-mbtouc: Likewise.
20123         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20124         * modules/unistr/u16-mbtoucr: Likewise.
20125         * modules/unistr/u16-move: Likewise.
20126         * modules/unistr/u16-next: Likewise.
20127         * modules/unistr/u16-prev: Likewise.
20128         * modules/unistr/u16-set: Likewise.
20129         * modules/unistr/u16-startswith: Likewise.
20130         * modules/unistr/u16-stpcpy: Likewise.
20131         * modules/unistr/u16-stpncpy: Likewise.
20132         * modules/unistr/u16-strcat: Likewise.
20133         * modules/unistr/u16-strchr: Likewise.
20134         * modules/unistr/u16-strcmp: Likewise.
20135         * modules/unistr/u16-strcoll: Likewise.
20136         * modules/unistr/u16-strcpy: Likewise.
20137         * modules/unistr/u16-strcspn: Likewise.
20138         * modules/unistr/u16-strdup: Likewise.
20139         * modules/unistr/u16-strlen: Likewise.
20140         * modules/unistr/u16-strmblen: Likewise.
20141         * modules/unistr/u16-strmbtouc: Likewise.
20142         * modules/unistr/u16-strncat: Likewise.
20143         * modules/unistr/u16-strncmp: Likewise.
20144         * modules/unistr/u16-strncpy: Likewise.
20145         * modules/unistr/u16-strnlen: Likewise.
20146         * modules/unistr/u16-strpbrk: Likewise.
20147         * modules/unistr/u16-strrchr: Likewise.
20148         * modules/unistr/u16-strspn: Likewise.
20149         * modules/unistr/u16-strstr: Likewise.
20150         * modules/unistr/u16-strtok: Likewise.
20151         * modules/unistr/u16-to-u32: Likewise.
20152         * modules/unistr/u16-to-u8: Likewise.
20153         * modules/unistr/u16-uctomb: Likewise.
20154         * modules/unistr/u32-check: Likewise.
20155         * modules/unistr/u32-chr: Likewise.
20156         * modules/unistr/u32-cmp: Likewise.
20157         * modules/unistr/u32-cmp2: Likewise.
20158         * modules/unistr/u32-cpy: Likewise.
20159         * modules/unistr/u32-cpy-alloc: Likewise.
20160         * modules/unistr/u32-endswith: Likewise.
20161         * modules/unistr/u32-mblen: Likewise.
20162         * modules/unistr/u32-mbsnlen: Likewise.
20163         * modules/unistr/u32-mbtouc: Likewise.
20164         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20165         * modules/unistr/u32-mbtoucr: Likewise.
20166         * modules/unistr/u32-move: Likewise.
20167         * modules/unistr/u32-next: Likewise.
20168         * modules/unistr/u32-prev: Likewise.
20169         * modules/unistr/u32-set: Likewise.
20170         * modules/unistr/u32-startswith: Likewise.
20171         * modules/unistr/u32-stpcpy: Likewise.
20172         * modules/unistr/u32-stpncpy: Likewise.
20173         * modules/unistr/u32-strcat: Likewise.
20174         * modules/unistr/u32-strchr: Likewise.
20175         * modules/unistr/u32-strcmp: Likewise.
20176         * modules/unistr/u32-strcoll: Likewise.
20177         * modules/unistr/u32-strcpy: Likewise.
20178         * modules/unistr/u32-strcspn: Likewise.
20179         * modules/unistr/u32-strdup: Likewise.
20180         * modules/unistr/u32-strlen: Likewise.
20181         * modules/unistr/u32-strmblen: Likewise.
20182         * modules/unistr/u32-strmbtouc: Likewise.
20183         * modules/unistr/u32-strncat: Likewise.
20184         * modules/unistr/u32-strncmp: Likewise.
20185         * modules/unistr/u32-strncpy: Likewise.
20186         * modules/unistr/u32-strnlen: Likewise.
20187         * modules/unistr/u32-strpbrk: Likewise.
20188         * modules/unistr/u32-strrchr: Likewise.
20189         * modules/unistr/u32-strspn: Likewise.
20190         * modules/unistr/u32-strstr: Likewise.
20191         * modules/unistr/u32-strtok: Likewise.
20192         * modules/unistr/u32-to-u16: Likewise.
20193         * modules/unistr/u32-to-u8: Likewise.
20194         * modules/unistr/u32-uctomb: Likewise.
20195         * modules/uniwbrk/u8-wordbreaks: Likewise.
20196         * modules/uniwbrk/u16-wordbreaks: Likewise.
20197         * modules/uniwbrk/u32-wordbreaks: Likewise.
20198         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20199         * modules/uniwbrk/wordbreak-property: Likewise.
20200         * modules/uniwidth/u8-strwidth: Likewise.
20201         * modules/uniwidth/u8-width: Likewise.
20202         * modules/uniwidth/u16-strwidth: Likewise.
20203         * modules/uniwidth/u16-width: Likewise.
20204         * modules/uniwidth/u32-strwidth: Likewise.
20205         * modules/uniwidth/u32-width: Likewise.
20206         * modules/uniwidth/width: Likewise.
20207         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20208         with $(LIBUNISTRING).
20209         * modules/unicase/ignorable-tests: Likewise.
20210         * modules/unicase/locale-language-tests: Likewise.
20211         * modules/unicase/tolower-tests: Likewise.
20212         * modules/unicase/totitle-tests: Likewise.
20213         * modules/unicase/toupper-tests: Likewise.
20214         * modules/unicase/u8-casecmp-tests: Likewise.
20215         * modules/unicase/u8-casecoll-tests: Likewise.
20216         * modules/unicase/u8-casefold-tests: Likewise.
20217         * modules/unicase/u8-is-cased-tests: Likewise.
20218         * modules/unicase/u8-is-casefolded-tests: Likewise.
20219         * modules/unicase/u8-is-lowercase-tests: Likewise.
20220         * modules/unicase/u8-is-titlecase-tests: Likewise.
20221         * modules/unicase/u8-is-uppercase-tests: Likewise.
20222         * modules/unicase/u8-tolower-tests: Likewise.
20223         * modules/unicase/u8-totitle-tests: Likewise.
20224         * modules/unicase/u8-toupper-tests: Likewise.
20225         * modules/unicase/u16-casecmp-tests: Likewise.
20226         * modules/unicase/u16-casecoll-tests: Likewise.
20227         * modules/unicase/u16-casefold-tests: Likewise.
20228         * modules/unicase/u16-is-cased-tests: Likewise.
20229         * modules/unicase/u16-is-casefolded-tests: Likewise.
20230         * modules/unicase/u16-is-lowercase-tests: Likewise.
20231         * modules/unicase/u16-is-titlecase-tests: Likewise.
20232         * modules/unicase/u16-is-uppercase-tests: Likewise.
20233         * modules/unicase/u16-tolower-tests: Likewise.
20234         * modules/unicase/u16-totitle-tests: Likewise.
20235         * modules/unicase/u16-toupper-tests: Likewise.
20236         * modules/unicase/u32-casecmp-tests: Likewise.
20237         * modules/unicase/u32-casecoll-tests: Likewise.
20238         * modules/unicase/u32-casefold-tests: Likewise.
20239         * modules/unicase/u32-is-cased-tests: Likewise.
20240         * modules/unicase/u32-is-casefolded-tests: Likewise.
20241         * modules/unicase/u32-is-lowercase-tests: Likewise.
20242         * modules/unicase/u32-is-titlecase-tests: Likewise.
20243         * modules/unicase/u32-is-uppercase-tests: Likewise.
20244         * modules/unicase/u32-tolower-tests: Likewise.
20245         * modules/unicase/u32-totitle-tests: Likewise.
20246         * modules/unicase/u32-toupper-tests: Likewise.
20247         * modules/unicase/ulc-casecmp-tests: Likewise.
20248         * modules/unicase/ulc-casecoll-tests: Likewise.
20249         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20250         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20251         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20252         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20253         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20254         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20255         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20256         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20257         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20258         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20259         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20260         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20261         * modules/unictype/bidicategory-byname-tests: Likewise.
20262         * modules/unictype/bidicategory-name-tests: Likewise.
20263         * modules/unictype/bidicategory-of-tests: Likewise.
20264         * modules/unictype/bidicategory-test-tests: Likewise.
20265         * modules/unictype/block-list-tests: Likewise.
20266         * modules/unictype/block-of-tests: Likewise.
20267         * modules/unictype/block-test-tests: Likewise.
20268         * modules/unictype/category-C-tests: Likewise.
20269         * modules/unictype/category-Cc-tests: Likewise.
20270         * modules/unictype/category-Cf-tests: Likewise.
20271         * modules/unictype/category-Cn-tests: Likewise.
20272         * modules/unictype/category-Co-tests: Likewise.
20273         * modules/unictype/category-Cs-tests: Likewise.
20274         * modules/unictype/category-L-tests: Likewise.
20275         * modules/unictype/category-Ll-tests: Likewise.
20276         * modules/unictype/category-Lm-tests: Likewise.
20277         * modules/unictype/category-Lo-tests: Likewise.
20278         * modules/unictype/category-Lt-tests: Likewise.
20279         * modules/unictype/category-Lu-tests: Likewise.
20280         * modules/unictype/category-M-tests: Likewise.
20281         * modules/unictype/category-Mc-tests: Likewise.
20282         * modules/unictype/category-Me-tests: Likewise.
20283         * modules/unictype/category-Mn-tests: Likewise.
20284         * modules/unictype/category-N-tests: Likewise.
20285         * modules/unictype/category-Nd-tests: Likewise.
20286         * modules/unictype/category-Nl-tests: Likewise.
20287         * modules/unictype/category-No-tests: Likewise.
20288         * modules/unictype/category-P-tests: Likewise.
20289         * modules/unictype/category-Pc-tests: Likewise.
20290         * modules/unictype/category-Pd-tests: Likewise.
20291         * modules/unictype/category-Pe-tests: Likewise.
20292         * modules/unictype/category-Pf-tests: Likewise.
20293         * modules/unictype/category-Pi-tests: Likewise.
20294         * modules/unictype/category-Po-tests: Likewise.
20295         * modules/unictype/category-Ps-tests: Likewise.
20296         * modules/unictype/category-S-tests: Likewise.
20297         * modules/unictype/category-Sc-tests: Likewise.
20298         * modules/unictype/category-Sk-tests: Likewise.
20299         * modules/unictype/category-Sm-tests: Likewise.
20300         * modules/unictype/category-So-tests: Likewise.
20301         * modules/unictype/category-Z-tests: Likewise.
20302         * modules/unictype/category-Zl-tests: Likewise.
20303         * modules/unictype/category-Zp-tests: Likewise.
20304         * modules/unictype/category-Zs-tests: Likewise.
20305         * modules/unictype/category-and-not-tests: Likewise.
20306         * modules/unictype/category-and-tests: Likewise.
20307         * modules/unictype/category-byname-tests: Likewise.
20308         * modules/unictype/category-name-tests: Likewise.
20309         * modules/unictype/category-none-tests: Likewise.
20310         * modules/unictype/category-of-tests: Likewise.
20311         * modules/unictype/category-or-tests: Likewise.
20312         * modules/unictype/category-test-withtable-tests: Likewise.
20313         * modules/unictype/combining-class-tests: Likewise.
20314         * modules/unictype/ctype-alnum-tests: Likewise.
20315         * modules/unictype/ctype-alpha-tests: Likewise.
20316         * modules/unictype/ctype-blank-tests: Likewise.
20317         * modules/unictype/ctype-cntrl-tests: Likewise.
20318         * modules/unictype/ctype-digit-tests: Likewise.
20319         * modules/unictype/ctype-graph-tests: Likewise.
20320         * modules/unictype/ctype-lower-tests: Likewise.
20321         * modules/unictype/ctype-print-tests: Likewise.
20322         * modules/unictype/ctype-punct-tests: Likewise.
20323         * modules/unictype/ctype-space-tests: Likewise.
20324         * modules/unictype/ctype-upper-tests: Likewise.
20325         * modules/unictype/ctype-xdigit-tests: Likewise.
20326         * modules/unictype/decimal-digit-tests: Likewise.
20327         * modules/unictype/digit-tests: Likewise.
20328         * modules/unictype/mirror-tests: Likewise.
20329         * modules/unictype/numeric-tests: Likewise.
20330         * modules/unictype/property-alphabetic-tests: Likewise.
20331         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20332         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20333         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20334         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20335         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20336         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20337         * modules/unictype/property-bidi-control-tests: Likewise.
20338         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20339         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20340         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20341         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20342         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20343         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20344         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20345         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20346         * modules/unictype/property-bidi-pdf-tests: Likewise.
20347         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20348         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20349         * modules/unictype/property-byname-tests: Likewise.
20350         * modules/unictype/property-combining-tests: Likewise.
20351         * modules/unictype/property-composite-tests: Likewise.
20352         * modules/unictype/property-currency-symbol-tests: Likewise.
20353         * modules/unictype/property-dash-tests: Likewise.
20354         * modules/unictype/property-decimal-digit-tests: Likewise.
20355         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20356         * modules/unictype/property-deprecated-tests: Likewise.
20357         * modules/unictype/property-diacritic-tests: Likewise.
20358         * modules/unictype/property-extender-tests: Likewise.
20359         * modules/unictype/property-format-control-tests: Likewise.
20360         * modules/unictype/property-grapheme-base-tests: Likewise.
20361         * modules/unictype/property-grapheme-extend-tests: Likewise.
20362         * modules/unictype/property-grapheme-link-tests: Likewise.
20363         * modules/unictype/property-hex-digit-tests: Likewise.
20364         * modules/unictype/property-hyphen-tests: Likewise.
20365         * modules/unictype/property-id-continue-tests: Likewise.
20366         * modules/unictype/property-id-start-tests: Likewise.
20367         * modules/unictype/property-ideographic-tests: Likewise.
20368         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20369         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20370         * modules/unictype/property-ignorable-control-tests: Likewise.
20371         * modules/unictype/property-iso-control-tests: Likewise.
20372         * modules/unictype/property-join-control-tests: Likewise.
20373         * modules/unictype/property-left-of-pair-tests: Likewise.
20374         * modules/unictype/property-line-separator-tests: Likewise.
20375         * modules/unictype/property-logical-order-exception-tests: Likewise.
20376         * modules/unictype/property-lowercase-tests: Likewise.
20377         * modules/unictype/property-math-tests: Likewise.
20378         * modules/unictype/property-non-break-tests: Likewise.
20379         * modules/unictype/property-not-a-character-tests: Likewise.
20380         * modules/unictype/property-numeric-tests: Likewise.
20381         * modules/unictype/property-other-alphabetic-tests: Likewise.
20382         * modules/unictype/property-other-default-ignorable-code-point-tests:
20383         Likewise.
20384         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20385         * modules/unictype/property-other-id-continue-tests: Likewise.
20386         * modules/unictype/property-other-id-start-tests: Likewise.
20387         * modules/unictype/property-other-lowercase-tests: Likewise.
20388         * modules/unictype/property-other-math-tests: Likewise.
20389         * modules/unictype/property-other-uppercase-tests: Likewise.
20390         * modules/unictype/property-paired-punctuation-tests: Likewise.
20391         * modules/unictype/property-paragraph-separator-tests: Likewise.
20392         * modules/unictype/property-pattern-syntax-tests: Likewise.
20393         * modules/unictype/property-pattern-white-space-tests: Likewise.
20394         * modules/unictype/property-private-use-tests: Likewise.
20395         * modules/unictype/property-punctuation-tests: Likewise.
20396         * modules/unictype/property-quotation-mark-tests: Likewise.
20397         * modules/unictype/property-radical-tests: Likewise.
20398         * modules/unictype/property-sentence-terminal-tests: Likewise.
20399         * modules/unictype/property-soft-dotted-tests: Likewise.
20400         * modules/unictype/property-space-tests: Likewise.
20401         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20402         * modules/unictype/property-test-tests: Likewise.
20403         * modules/unictype/property-titlecase-tests: Likewise.
20404         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20405         * modules/unictype/property-unified-ideograph-tests: Likewise.
20406         * modules/unictype/property-uppercase-tests: Likewise.
20407         * modules/unictype/property-variation-selector-tests: Likewise.
20408         * modules/unictype/property-white-space-tests: Likewise.
20409         * modules/unictype/property-xid-continue-tests: Likewise.
20410         * modules/unictype/property-xid-start-tests: Likewise.
20411         * modules/unictype/property-zero-width-tests: Likewise.
20412         * modules/unictype/scripts-tests: Likewise.
20413         * modules/unictype/syntax-c-ident-tests: Likewise.
20414         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20415         * modules/unictype/syntax-java-ident-tests: Likewise.
20416         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20417         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20418         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20419         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20420         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20421         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20422         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20423         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20424         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20425         * modules/uniname/uniname-tests: Likewise.
20426         * modules/uninorm/canonical-decomposition-tests: Likewise.
20427         * modules/uninorm/compat-decomposition-tests: Likewise.
20428         * modules/uninorm/composition-tests: Likewise.
20429         * modules/uninorm/decomposing-form-tests: Likewise.
20430         * modules/uninorm/decomposition-tests: Likewise.
20431         * modules/uninorm/filter-tests: Likewise.
20432         * modules/uninorm/nfc-tests: Likewise.
20433         * modules/uninorm/nfd-tests: Likewise.
20434         * modules/uninorm/nfkc-tests: Likewise.
20435         * modules/uninorm/nfkd-tests: Likewise.
20436         * modules/uninorm/u8-normcmp-tests: Likewise.
20437         * modules/uninorm/u8-normcoll-tests: Likewise.
20438         * modules/uninorm/u16-normcmp-tests: Likewise.
20439         * modules/uninorm/u16-normcoll-tests: Likewise.
20440         * modules/uninorm/u32-normcmp-tests: Likewise.
20441         * modules/uninorm/u32-normcoll-tests: Likewise.
20442         * modules/unistdio/u8-asnprintf-tests: Likewise.
20443         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20444         * modules/unistdio/u8-vasprintf-tests: Likewise.
20445         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20446         * modules/unistdio/u8-vsprintf-tests: Likewise.
20447         * modules/unistdio/u16-asnprintf-tests: Likewise.
20448         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20449         * modules/unistdio/u16-vasprintf-tests: Likewise.
20450         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20451         * modules/unistdio/u16-vsprintf-tests: Likewise.
20452         * modules/unistdio/u32-asnprintf-tests: Likewise.
20453         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20454         * modules/unistdio/u32-vasprintf-tests: Likewise.
20455         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20456         * modules/unistdio/u32-vsprintf-tests: Likewise.
20457         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20458         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20459         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20460         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20461         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20462         * modules/unistr/u8-check-tests: Likewise.
20463         * modules/unistr/u8-chr-tests: Likewise.
20464         * modules/unistr/u8-cmp-tests: Likewise.
20465         * modules/unistr/u8-cmp2-tests: Likewise.
20466         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20467         * modules/unistr/u8-cpy-tests: Likewise.
20468         * modules/unistr/u8-mblen-tests: Likewise.
20469         * modules/unistr/u8-mbsnlen-tests: Likewise.
20470         * modules/unistr/u8-mbtouc-tests: Likewise.
20471         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20472         * modules/unistr/u8-mbtoucr-tests: Likewise.
20473         * modules/unistr/u8-move-tests: Likewise.
20474         * modules/unistr/u8-next-tests: Likewise.
20475         * modules/unistr/u8-prev-tests: Likewise.
20476         * modules/unistr/u8-set-tests: Likewise.
20477         * modules/unistr/u8-stpcpy-tests: Likewise.
20478         * modules/unistr/u8-stpncpy-tests: Likewise.
20479         * modules/unistr/u8-strcat-tests: Likewise.
20480         * modules/unistr/u8-strcmp-tests: Likewise.
20481         * modules/unistr/u8-strcoll-tests: Likewise.
20482         * modules/unistr/u8-strcpy-tests: Likewise.
20483         * modules/unistr/u8-strdup-tests: Likewise.
20484         * modules/unistr/u8-strlen-tests: Likewise.
20485         * modules/unistr/u8-strmblen-tests: Likewise.
20486         * modules/unistr/u8-strmbtouc-tests: Likewise.
20487         * modules/unistr/u8-strncat-tests: Likewise.
20488         * modules/unistr/u8-strncmp-tests: Likewise.
20489         * modules/unistr/u8-strncpy-tests: Likewise.
20490         * modules/unistr/u8-strnlen-tests: Likewise.
20491         * modules/unistr/u8-to-u16-tests: Likewise.
20492         * modules/unistr/u8-to-u32-tests: Likewise.
20493         * modules/unistr/u8-uctomb-tests: Likewise.
20494         * modules/unistr/u16-check-tests: Likewise.
20495         * modules/unistr/u16-chr-tests: Likewise.
20496         * modules/unistr/u16-cmp-tests: Likewise.
20497         * modules/unistr/u16-cmp2-tests: Likewise.
20498         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20499         * modules/unistr/u16-cpy-tests: Likewise.
20500         * modules/unistr/u16-mblen-tests: Likewise.
20501         * modules/unistr/u16-mbsnlen-tests: Likewise.
20502         * modules/unistr/u16-mbtouc-tests: Likewise.
20503         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20504         * modules/unistr/u16-mbtoucr-tests: Likewise.
20505         * modules/unistr/u16-move-tests: Likewise.
20506         * modules/unistr/u16-next-tests: Likewise.
20507         * modules/unistr/u16-prev-tests: Likewise.
20508         * modules/unistr/u16-set-tests: Likewise.
20509         * modules/unistr/u16-stpcpy-tests: Likewise.
20510         * modules/unistr/u16-stpncpy-tests: Likewise.
20511         * modules/unistr/u16-strcat-tests: Likewise.
20512         * modules/unistr/u16-strcmp-tests: Likewise.
20513         * modules/unistr/u16-strcoll-tests: Likewise.
20514         * modules/unistr/u16-strcpy-tests: Likewise.
20515         * modules/unistr/u16-strdup-tests: Likewise.
20516         * modules/unistr/u16-strlen-tests: Likewise.
20517         * modules/unistr/u16-strmblen-tests: Likewise.
20518         * modules/unistr/u16-strmbtouc-tests: Likewise.
20519         * modules/unistr/u16-strncat-tests: Likewise.
20520         * modules/unistr/u16-strncmp-tests: Likewise.
20521         * modules/unistr/u16-strncpy-tests: Likewise.
20522         * modules/unistr/u16-strnlen-tests: Likewise.
20523         * modules/unistr/u16-to-u32-tests: Likewise.
20524         * modules/unistr/u16-to-u8-tests: Likewise.
20525         * modules/unistr/u16-uctomb-tests: Likewise.
20526         * modules/unistr/u32-check-tests: Likewise.
20527         * modules/unistr/u32-chr-tests: Likewise.
20528         * modules/unistr/u32-cmp-tests: Likewise.
20529         * modules/unistr/u32-cmp2-tests: Likewise.
20530         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20531         * modules/unistr/u32-cpy-tests: Likewise.
20532         * modules/unistr/u32-mblen-tests: Likewise.
20533         * modules/unistr/u32-mbsnlen-tests: Likewise.
20534         * modules/unistr/u32-mbtouc-tests: Likewise.
20535         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20536         * modules/unistr/u32-mbtoucr-tests: Likewise.
20537         * modules/unistr/u32-move-tests: Likewise.
20538         * modules/unistr/u32-next-tests: Likewise.
20539         * modules/unistr/u32-prev-tests: Likewise.
20540         * modules/unistr/u32-set-tests: Likewise.
20541         * modules/unistr/u32-stpcpy-tests: Likewise.
20542         * modules/unistr/u32-stpncpy-tests: Likewise.
20543         * modules/unistr/u32-strcat-tests: Likewise.
20544         * modules/unistr/u32-strcmp-tests: Likewise.
20545         * modules/unistr/u32-strcoll-tests: Likewise.
20546         * modules/unistr/u32-strcpy-tests: Likewise.
20547         * modules/unistr/u32-strdup-tests: Likewise.
20548         * modules/unistr/u32-strlen-tests: Likewise.
20549         * modules/unistr/u32-strmblen-tests: Likewise.
20550         * modules/unistr/u32-strmbtouc-tests: Likewise.
20551         * modules/unistr/u32-strncat-tests: Likewise.
20552         * modules/unistr/u32-strncmp-tests: Likewise.
20553         * modules/unistr/u32-strncpy-tests: Likewise.
20554         * modules/unistr/u32-strnlen-tests: Likewise.
20555         * modules/unistr/u32-to-u16-tests: Likewise.
20556         * modules/unistr/u32-to-u8-tests: Likewise.
20557         * modules/unistr/u32-uctomb-tests: Likewise.
20558         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20559         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20560         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20561         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20562         * modules/uniwidth/u8-strwidth-tests: Likewise.
20563         * modules/uniwidth/u8-width-tests: Likewise.
20564         * modules/uniwidth/u16-strwidth-tests: Likewise.
20565         * modules/uniwidth/u16-width-tests: Likewise.
20566         * modules/uniwidth/u32-strwidth-tests: Likewise.
20567         * modules/uniwidth/u32-width-tests: Likewise.
20568         * modules/uniwidth/width-tests: Likewise.
20569
20570 2010-05-18  Richard Jones  <rjones@redhat.com>
20571
20572         doc: users.txt: list hivex
20573         * users.txt: Add hivex.
20574
20575 2010-05-18  Richard Jones  <rjones@redhat.com>
20576
20577         doc: users.txt: list febootstrap
20578         * users.txt: Add febootstrap.
20579
20580 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20581
20582         bootstrap: fix an error when gnulib is not used as a git submodule
20583         * build-aux/bootstrap (gnulib_path): If its length is zero then
20584         assign "gnulib" to it.
20585         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20586
20587 2010-05-16  Bruno Haible  <bruno@clisp.org>
20588
20589         Avoid autoconf warnings about AM_ICONV.
20590         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20591         2.64.
20592
20593 2010-05-16  Bruno Haible  <bruno@clisp.org>
20594
20595         absolute-header: Make the macro usable in more situations.
20596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20597         from gl_ABSOLUTE_HEADER.
20598         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20599
20600 2010-05-16  James Youngman  <jay@gnu.org>
20601
20602         doc: update users.txt
20603         * users.txt: Add CSSC.
20604
20605 2010-05-16  Jim Meyering  <meyering@redhat.com>
20606
20607         init.sh: fix an error in the previous change; add more comments
20608         * tests/init.sh: Compare exit code in loop against 9, not 2.
20609         Patch by Bruno Haible.
20610         Make the two tests more similar by adding an empty "then" clause.
20611         Add comments.
20612
20613         init.sh: avoid unnecessary shell re-exec
20614         * tests/init.sh: Improve the re-exec-required check to first test the
20615         current shell.  If it passes the test, do not search for a shell that
20616         does pass, and do not re-exec.  This test is particularly contorted to
20617         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20618         of $(...) evokes a syntax error and causes immediate shell exit with
20619         status 2.  Bruno Haible reported that the re-exec made it impossible
20620         to single-step through any init.sh-using script.
20621
20622 2010-05-16  Bruno Haible  <bruno@clisp.org>
20623
20624         Fix collision between gnulib's and libintl's printf replacements.
20625         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20626         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20627         (printf): When using GNU C, map the __printf__ function to rpl_printf
20628         via __asm__. When not using GNU C, define rpl_printf instead of
20629         __printf__.
20630         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20631         commit.
20632         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20633         commit.
20634         * m4/asm-underscore.m4: New file.
20635         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20636         * modules/stdio (Files): Add m4/asm-underscore.m4.
20637         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20638         Reported by Ben Pfaff.
20639
20640 2010-05-16  Bruno Haible  <bruno@clisp.org>
20641
20642         verify: Avoid skipping the test on openSUSE 11.0.
20643         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20644
20645 2010-05-13  Bruno Haible  <bruno@clisp.org>
20646
20647         Avoid useless warnings from G++.
20648         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20649         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20650         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20651
20652 2010-05-11  Jim Meyering  <meyering@redhat.com>
20653
20654         maint.mk: tweak preceding change
20655         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20656         regexps tighter by anchoring at EOL, and make the new group "shy"
20657         for slightly decreased overhead.
20658
20659 2010-05-11  Eric Blake  <eblake@redhat.com>
20660
20661         maint.mk: gnulib doesn't guarantee NSIG
20662         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20663
20664 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20665
20666         test-pwrite.c: Remove unused variable declaration.
20667         * tests/test-pwrite.c (main): Remove read_buf declaration.
20668
20669         Remove useless test-pwrite.sh file.
20670         * tests/test-pwrite.sh: Delete file.
20671         * modules/pwrite-tests: Remove references.
20672         Reported by Bruno Haible.
20673
20674 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20675
20676         init.sh: fix a typo
20677         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20678
20679 2010-05-10  Jim Meyering  <meyering@redhat.com>
20680
20681         maint.mk: avoid using a temporary file in the always-defined-macros check
20682         * top/maint.mk (.re-defmac): Remove rule.
20683         (gl_trap_): Remove definition.
20684         (sc_prohibit_always-defined_macros): Rewrite not to create and
20685         depend on a temporary file.  Instead, depend on GNU grep's ability
20686         to read a list of regular expressions from stdin when given "-f -".
20687
20688 2010-05-09  Bruno Haible  <bruno@clisp.org>
20689
20690         Update to GNU gettext 0.18, part 1.
20691         * m4/gettext.m4: Update to GNU gettext 0.18.
20692         * m4/intl.m4: Likewise.
20693         * m4/po.m4: Likewise.
20694         * modules/gettext (Files): Add m4/fcntl-o.m4.
20695         (configure.ac): Require gettext infrastructure from version 0.18.
20696
20697 2010-05-09  Jim Meyering  <meyering@redhat.com>
20698
20699         init.sh: enable MALLOC_PERTURB_
20700         * tests/init.sh: Enable glibc's malloc-perturbing option.
20701
20702         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20703         With my recent change in init.sh from the two-line form:
20704             -#   : ${srcdir=.}
20705             -#   . "$srcdir/init.sh"; path_prepend_ .
20706             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20707         I noticed that using the one-line form would cause this test
20708         to fail with a false-positive, or to stop working altogether,
20709         depending on whether help-version changed or all the tests did.
20710         * top/maint.mk (_hv_regex): Remove this definition.
20711         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20712         (_hv_regex_strong): Use a stronger regex to check for conformance.
20713         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20714         Give a separate diagnostic for lack of conforming use.
20715
20716         maint.mk: prohibit definition of symbols defined by gnulib
20717         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20718         definition of symbols defined by gnulib.
20719
20720 2010-05-09  Bruno Haible  <bruno@clisp.org>
20721
20722         acl: Avoid test failure on Cygwin-hosted mingw.
20723         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20724
20725 2010-05-09  Bruno Haible  <bruno@clisp.org>
20726
20727         error: Use system's fcntl function.
20728         * lib/error.c (fcntl): Undefine.
20729
20730 2010-05-09  Jim Meyering  <meyering@redhat.com>
20731
20732         verify: adjust formatting to be more consistent
20733         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20734         argument-list '('s, and after one comma.
20735
20736 2010-05-09  Bruno Haible  <bruno@clisp.org>
20737
20738         error: More reliable output on mingw.
20739         * lib/error.c: Include <windows.h>.
20740         (is_open): New function.
20741         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20742         defined.
20743
20744 2010-05-09  Bruno Haible  <bruno@clisp.org>
20745
20746         vasnprintf: Fix syntax errors in libintl build on mingw.
20747         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20748         pad_ourselves and prec_ourselves after use.
20749
20750 2010-05-08  Bruno Haible  <bruno@clisp.org>
20751
20752         * lib/config.charset: Update comments for Cygwin 1.7.
20753         * lib/localcharset.c: Likewise.
20754
20755 2010-05-07  Jim Meyering  <meyering@redhat.com>
20756
20757         init.sh: improve comments
20758         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20759         . "${srcdir=.}/init.sh"; path_prepend_ .
20760         Add a note about path_prepend_ and the alternative of using
20761         TESTS_ENVIRONMENT.
20762
20763 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20764
20765         exclude: Unescape hashed patterns in wildcard mode.
20766         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20767         to the hash list.
20768         * tests/test-exclude8.sh: New test case.
20769         * modules/exclude-tests: Add new test.
20770
20771 2010-05-05  Eric Blake  <eblake@redhat.com>
20772
20773         verify: automate tests
20774         * modules/verify-tests: New module.
20775         * tests/test-verify.sh: New file.
20776         * tests/test-verify.c: Guard each negative test with a unique id.
20777         Also avoid warning about unused left hand of comma expressions.
20778
20779 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20780
20781         Further improvements to verify.h, suggested by Eric Blake.
20782         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20783         the GL_* versions, to avoid collision with OpenGL.
20784         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20785         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20786         than testing merely whether it's defined.
20787
20788         Modify verify.h to pacify gcc -Wredundant_decls.
20789         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20790         These use the prefix "GL_" since they're likely to be useful elsewhere.
20791         We may need to break them out into a different .h file.
20792         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20793         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20794         of verify_function__.
20795
20796 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20797
20798         Tests for module pwrite.
20799         * modules/pwrite-tests: New file.
20800         * tests/test-pwrite.sh: New file.
20801         * tests/test-pwrite.c: New file.
20802
20803         New module pwrite.
20804         * lib/unistd.in.h (pwrite): New declaration.
20805         * lib/pwrite.c: New file, from glibc with modifications.
20806         * m4/pwrite.m4: New file.
20807         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20808         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20809         REPLACE_PWRITE.
20810         * modules/pwrite: New file.
20811         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20812         REPLACE_PWRITE.
20813         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20814         * doc/posix-functions/pwrite.texi: Mention the new module.
20815
20816 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20817
20818         pread: Update documentation.
20819         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20820
20821 2010-05-04  Eric Blake  <eblake@redhat.com>
20822
20823         docs: update cygwin progress
20824         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20825         this bug.
20826         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20827         Added in cygwin 1.7.2.
20828         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20829         Likewise.
20830         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20831         Likewise.
20832         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20833         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20834         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20835         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20836         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20837         Mention nproc module.
20838         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20839         bug in cygwin 1.7.5 addition.
20840         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20841         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20842         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20843         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20844         1.7.5.
20845         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20846         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20847         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20848         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20849         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20850         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20851         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20852         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20853         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20854         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20855         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20856         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20857         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20858         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20859         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20860         Likewise.
20861         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20862         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20863         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20864         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20865         Likewise.
20866         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20867         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20868         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20869         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20870         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20871         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20872         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20873         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20874         Likewise.
20875         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20876         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20877         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20878         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20879         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20880         Likewise.
20881         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20882         Likewise.
20883         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20884         Likewise.
20885         * doc/glibc-functions/xdrrec_endofrecord.texi
20886         (xdrrec_endofrecord): Likewise.
20887         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20888         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20889         Likewise.
20890         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20891         Likewise.
20892
20893 2010-05-04  Jim Meyering  <meyering@redhat.com>
20894
20895         gendocs.sh: make its "-s FILE" option more useful
20896         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20897         $PACKAGE to reflect the probably-different basename of "FILE".
20898
20899 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20900
20901         bootstrap: don't ignore download_po_files failure
20902         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20903         failure.
20904
20905 2010-05-03  Jim Meyering  <meyering@redhat.com>
20906
20907         maint.mk: allow to pass options to gendocs.sh
20908         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20909         (gendocs_options_): New overridable variable.
20910
20911         gnu-web-doc-update: don't ignore configure or build failure
20912         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20913
20914         announce-gen: backslash-escape '@'s in --help output
20915         * build-aux/announce-gen: Fix syntax errors.
20916
20917         maint.mk, announce-gen: allow project-specific announcement mail headers
20918         * top/maint.mk (translation_project_): Define default.
20919         (announcement_Cc_, announcement_mail_headers_): Likewise.
20920         (announcement): Invoke announce-gen with new --mail-headers option.
20921         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20922
20923         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20924         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20925         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20926         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20927         line in the "err2" output file when running "make check" in verbose
20928         mode (i.e., with set -x enabled).
20929
20930 2010-05-03  Bruno Haible  <bruno@clisp.org>
20931
20932         wctob: Fix for weird platforms.
20933         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20934         argument value.
20935
20936 2010-05-03  Jim Meyering  <meyering@redhat.com>
20937
20938         maint.mk: prohibit unwarranted use of <strings.h>
20939         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20940         strings.h in a file that does not also use strcasecmp, strncasecmp,
20941         ffs or ffsll.
20942
20943         maint.mk: remove obsolete comments
20944         * top/maint.mk: Remove stale, commented-out rules.
20945
20946 2010-05-02  Bruno Haible  <bruno@clisp.org>
20947
20948         wcwidth: Declare also when it's aliased.
20949         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20950         macro.
20951
20952 2010-05-02  Bruno Haible  <bruno@clisp.org>
20953
20954         Fix regression from 2010-04-25.
20955         * gnulib-tool (func_modules_transitive_closure): Check the status of
20956         all modules, not only of the tests that are of the form foo-tests where
20957         foo is a module.
20958
20959 2010-05-02  Bruno Haible  <bruno@clisp.org>
20960
20961         wctob: Work around nasty Cygwin 1.7.2 bug.
20962         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20963         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20964
20965 2010-05-01  Bruno Haible  <bruno@clisp.org>
20966
20967         fpurge: Sharper test.
20968         * tests/test-fpurge.c (main): Add one more ftell check.
20969         * modules/fpurge-tests (Depends-on): Add ftell.
20970         Suggested by Eric Blake.
20971
20972 2010-05-01  Bruno Haible  <bruno@clisp.org>
20973
20974         ftello: Another test.
20975         * tests/test-ftello3.c: New file.
20976         * modules/ftello-tests (Files): Add it.
20977         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20978         MOSTLYCLEANFILES.
20979
20980         ftell: Another test.
20981         * tests/test-ftell3.c: New file.
20982         * modules/ftell-tests (Files): Add it.
20983         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20984         MOSTLYCLEANFILES.
20985
20986 2010-05-01  Bruno Haible  <bruno@clisp.org>
20987
20988         ftell, ftello: Work around Solaris bug.
20989         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20990         * lib/ftello.c: Include stdio-impl.h.
20991         (ftello): On Solaris, when _IOWRT is set, compute the result without
20992         looking at _IOREAD.
20993         * modules/ftello (Files): Add lib/stdio-impl.h.
20994         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20995         * doc/posix-functions/ftello.texi: Likewise.
20996         Reported by Eric Blake.
20997
20998 2010-05-01  Bruno Haible  <bruno@clisp.org>
20999
21000         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21001         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21002         the _IOWRT flag is also set.
21003
21004 2010-05-01  Bruno Haible  <bruno@clisp.org>
21005
21006         Fix doc about a HP-UX stdio bug.
21007         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21008         * doc/posix-functions/ftello.texi: Likewise.
21009
21010 2010-05-01  Bruno Haible  <bruno@clisp.org>
21011
21012         lseek test: Fix failure on Solaris.
21013         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21014         output.
21015
21016 2010-04-30  Jim Meyering  <meyering@redhat.com>
21017
21018         bootstrap: don't ignore failure to generate po*/Makevars
21019         * build-aux/bootstrap (with_gettext): Don't ignore failure
21020         to create po/Makevars or runtime-po/Makevars.
21021
21022 2010-04-29  Eric Blake  <eblake@redhat.com>
21023
21024         headers: relax license to LGPLv2+
21025         * modules/fcntl-h (License): Relax license.
21026         * modules/getopt-posix (License): Likewise.
21027         * modules/locale (License): Likewise.
21028         * modules/math (License): Likewise.
21029         * modules/pty (License): Likewise.
21030         * modules/sched (License): Likewise.
21031         * modules/search (License): Likewise.
21032         * modules/spawn (License): Likewise.
21033         * modules/stdarg (License): Likewise.
21034         * modules/sysexits (License): Likewise.
21035
21036 2010-04-29  Jim Meyering  <meyering@redhat.com>
21037
21038         inttypes: relax license to LGPLv2+
21039         * modules/inttypes (License): Relax license.
21040
21041 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21042
21043         * top/maint.mk (indent): Run twice to produce idempotent results.
21044
21045 2010-04-28  Bruno Haible  <bruno@clisp.org>
21046
21047         getdate: Generate getdate.c in the source directory.
21048         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21049         MOSTLYCLEANFILES.
21050         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21051
21052 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21053
21054         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21055         is not declared as a const *; avoid warnings in that case.
21056
21057 2010-04-28  Eric Blake  <eblake@redhat.com>
21058
21059         canonicalize-lgpl: avoid compiler warning
21060         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21061         declaration' / 'extraneous semicolon' warning with some compilers.
21062         Reported by Andreas Gruenbacher.
21063
21064 2010-04-28  Jim Meyering  <meyering@redhat.com>
21065
21066         init.sh: ensure a more reliable exit status when exiting via trap
21067         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21068         Inspired by patches from Dmitry V. Levin.
21069         Also trap on signal 3 (SIGQUIT).
21070
21071 2010-04-27  Bruno Haible  <bruno@clisp.org>
21072
21073         Update doc about utimes().
21074         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21075         'utimens' module.
21076         Reported by Andreas Gruenbacher <agruen@suse.de>.
21077
21078 2010-04-27  Eric Blake  <eblake@redhat.com>
21079
21080         full-read, full-write: relax license
21081         * modules/full-read (License): Drop to LGPLv2+.
21082         * modules/full-write (License): Likewise.
21083         * modules/safe-read (License): Likewise.
21084         * modules/safe-write (License): Likewise.
21085
21086         pthread: mention library for linking
21087         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21088
21089 2010-04-27  Jim Meyering  <meyering@redhat.com>
21090
21091         maint.mk: fix a bug introduced in last change
21092         * top/maint.mk (gl_assured_headers_): Now that all names are on
21093         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21094         is not anchored to end of word, it should be adequate.
21095
21096         maint.mk: avoid side-effect in latest syntax-check
21097         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21098         to run commands via $(shell...), and hence to incur cost only when
21099         the new rule is actually run.
21100
21101         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21102         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21103         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21104         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21105         (gl_assured_headers_, az_, AZ_): Define.
21106         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21107
21108 2010-04-26  Jim Meyering  <jim@meyering.net>
21109             Bruno Haible  <bruno@clisp.org>
21110
21111         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21112         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21113         Prompted by an exchange with Gilles Espinasse.
21114
21115 2010-04-26  Jim Meyering  <meyering@redhat.com>
21116
21117         git-version-gen: aesthetic tweak
21118         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21119         so that the command remains on a single line.
21120
21121 2010-04-26  Eric Blake  <eblake@redhat.com>
21122
21123         git-version-gen: allow use on EBCDIC hosts
21124         * build-aux/git-version-gen (dirty): Use literal rather than tying
21125         ourselves to ascii.
21126         Reported by Steve Goetze.
21127
21128 2010-04-25  Bruno Haible  <bruno@clisp.org>
21129
21130         netdb: Add support for GNULIB_POSIXCHECK.
21131         * lib/netdb.in.h: Include warn-on-use.h.
21132         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21133         functions are used when GNULIB_POSIXCHECK is defined and the
21134         getaddrinfo module is not in use.
21135         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21136         freeaddrinfo, gai_strerror, getnameinfo are declared.
21137         * modules/netdb (Depends-on): Add warn-on-use.
21138         (Makefile.am): Include warn-on-use.h in netdb.h.
21139
21140 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21141
21142         build: avoid "make check" failure without .git/ directory
21143         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21144         there is no .git/ directory.
21145
21146 2010-04-25  Bruno Haible  <bruno@clisp.org>
21147
21148         ptsname: Fix misuse of ttyname_r.
21149         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21150         of errno.
21151
21152 2010-04-25  Bruno Haible  <bruno@clisp.org>
21153
21154         ttyname_r: Make it work on Solaris 10.
21155         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21156         if the system function has the POSIX declaration. Test whether the
21157         function fails if the buffer is less than 128 bytes large.
21158         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21159         system's ttyname_r function. Provide a reasonably large buffer.
21160         * modules/ttyname_r (Depends-on): Add extensions.
21161         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21162
21163 2010-04-25  Bruno Haible  <bruno@clisp.org>
21164
21165         Use the 'extensions' module for some more functions on Solaris.
21166         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21167         module.
21168         * doc/posix-functions/ctime_r.texi: Likewise.
21169         * doc/posix-functions/getgrgid_r.texi: Likewise.
21170         * doc/posix-functions/getgrnam_r.texi: Likewise.
21171         * doc/posix-functions/getpwnam_r.texi: Likewise.
21172         * doc/posix-functions/getpwuid_r.texi: Likewise.
21173         * doc/posix-functions/readdir_r.texi: Likewise.
21174         * doc/posix-functions/sigwait.texi: Likewise.
21175         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21176         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21177
21178 2010-04-25  Bruno Haible  <bruno@clisp.org>
21179
21180         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21181         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21182         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21183         * lib/ttyname_r.c: Include <limits.h>.
21184         (ttyname_r): Define using the system's ttyname_r function, if it exists
21185         and not on Solaris.
21186         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21187         set.
21188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21189         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21190         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21191         Reported by Simon Josefsson.
21192
21193 2010-04-25  Bruno Haible  <bruno@clisp.org>
21194
21195         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21196         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21197         * doc/posix-functions/ctime_r.texi: Likewise.
21198         * doc/posix-functions/getgrgid_r.texi: Likewise.
21199         * doc/posix-functions/getgrnam_r.texi: Likewise.
21200         * doc/posix-functions/getlogin_r.texi: Likewise.
21201         * doc/posix-functions/getpwnam_r.texi: Likewise.
21202         * doc/posix-functions/getpwuid_r.texi: Likewise.
21203         * doc/posix-functions/readdir_r.texi: Likewise.
21204         * doc/posix-functions/sigwait.texi: Likewise.
21205         * doc/posix-functions/ttyname_r.texi: Likewise.
21206         Reported by Simon Josefsson.
21207
21208 2010-04-25  Bruno Haible  <bruno@clisp.org>
21209
21210         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21211         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21212         also to --create-testdir.
21213         (func_acceptable): Don't consider the status of *-tests modules here.
21214         (func_modules_transitive_closure): Consider it here, before including a
21215         test module.
21216         (func_import, func_create_testdir): Set inc_all_direct_tests,
21217         inc_all_indirect_tests.
21218         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21219         --create-testdir and --create-megatestdir.
21220
21221 2010-04-25  Bruno Haible  <bruno@clisp.org>
21222
21223         gnulib-tool: Add --without-*-tests options.
21224         * gnulib-tool (func_usage): Document the --without-*-tests options.
21225         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21226         excl_unportable_tests): New variables.
21227         Fail if they are specified with --import or --update.
21228         (func_acceptable): Respect the excl_*_tests variables.
21229         (func_import): Set the excl_*_tests variables to empty.
21230
21231 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21232             Bruno Haible  <bruno@clisp.org>
21233
21234         Work around a MacOS X 10.4 bug with openpty.
21235         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21236         * tests/test-openpty.c (main): Close the master side explicitly.
21237
21238 2010-04-25  Bruno Haible  <bruno@clisp.org>
21239
21240         strnlen: Fix a C++ test error on MacOS X and Solaris.
21241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21242         the function is not declared.
21243         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21244         Simon Josefsson.
21245
21246 2010-04-24  Bruno Haible  <bruno@clisp.org>
21247
21248         Avoid a gcc warning.
21249         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21250         of correct type for %08lx directive.
21251         Reported by Eric Blake.
21252
21253 2010-04-24  Bruno Haible  <bruno@clisp.org>
21254
21255         vasnprintf: Correct errno value in case of out-of-memory.
21256         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21257         or sprintf. Use the errno value from SNPRINTF or sprintf.
21258         Reported by Ian Beckwith <ianb@erislabs.net>.
21259
21260 2010-04-24  Bruno Haible  <bruno@clisp.org>
21261
21262         ansi-c++-opt: Find correct compiler when cross-compiling.
21263         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21264         AC_CHECK_PROGS.
21265         Reported by Simon Josefsson.
21266
21267 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21268
21269         vc-list-files: Add support for subversion
21270         * build-aux/vc-list-files: Use "svn list" to generate the list of
21271         files controlled by subversion.
21272
21273 2010-04-23  Jim Meyering  <meyering@redhat.com>
21274
21275         vc-list-files tests: convert to use init.sh
21276         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21277         path_prepend_.
21278         Use Exit, not exit.
21279         Use skip_ rather than open coding it.
21280         Remove trap set-up and compare definitions.
21281         * tests/test-vc-list-files-git.sh: Likewise.
21282         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21283
21284 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21285
21286         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21287         backup files.
21288
21289 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21290
21291         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21292
21293 2010-04-20  Eric Blake  <eblake@redhat.com>
21294
21295         tests: be robust to ignored SIGPIPE
21296         * tests/test-select-in.sh: Consume all output.
21297         * tests/test-lseek.sh: Check correct exit status, while avoiding
21298         EPIPE.
21299
21300 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21301             Bruno Haible  <bruno@clisp.org>
21302
21303         visibility: Don't use -fvisibility if it leads to a warning.
21304         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21305         yes, don't pretend that visibility works if it leads to a warning.
21306         Reported by Mike Gran <spk121@yahoo.com>.
21307
21308 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21309
21310         * build-aux/bootstrap: Use "git -h" for testing for supported options
21311         instead of "git --help".  The short-form option only shows a summary,
21312         and doesn't layout the full man page.  Grep for the full option name
21313         in the summary, too.
21314
21315 2010-04-19  Bruno Haible  <bruno@clisp.org>
21316
21317         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21318         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21319         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21320         mention of RELOCATABLE_STRIP.
21321         Reported by Sylvain Beucler <beuc@beuc.net>.
21322
21323 2010-04-19  Bruno Haible  <bruno@clisp.org>
21324
21325         * lib/diffseq.h: Fix typo in comment.
21326         Reported by Eric Blake.
21327
21328 2010-04-19  Bruno Haible  <bruno@clisp.org>
21329
21330         ioctl: Move autoconf macro to a .m4 file.
21331         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21332         * modules/ioctl (Files): Add it.
21333         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21334         Reported by Ian Beckwith <ianb@erislabs.net>.
21335
21336 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21337             Bruno Haible  <bruno@clisp.org>
21338
21339         diffseq: Accommodate use-case with abstract arrays.
21340         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21341         is not defined.
21342         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21343         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21344
21345 2010-04-18  Bruno Haible  <bruno@clisp.org>
21346
21347         * doc/posix-headers/stdbool.texi: More precise wording.
21348
21349 2010-04-17  Jim Meyering  <meyering@redhat.com>
21350
21351         maint.mk: use gnu-style indentation in an embedded perl script
21352         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21353         Rename variable: s/two/last_two_bytes/
21354
21355 2010-04-16  Eric Blake  <eblake@redhat.com>
21356
21357         test-stdbool: skip test that fails with Solaris CC
21358         * tests/test-stdbool.c (f): Skip test that causes compilation
21359         error under buggy C++ compiler.
21360         * lib/stdbool.in.h: Document the limitation.
21361         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21362
21363         setenv: allow compilation with C++
21364         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21365         register keyword.
21366
21367         stdint: allow test to pass with C++
21368         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21369
21370         getopt: allow compilation with C++
21371         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21372         struct.
21373         * lib/getopt.c (_getopt_internal_r): Use correct type.
21374         Reported by Dagobert Michelson, via Joel E. Denny.
21375
21376 2010-04-16  Bruno Haible  <bruno@clisp.org>
21377
21378         Override netdb.h always.
21379         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21380         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21381         Reported by Ludovic Courtès <ludo@gnu.org>.
21382
21383 2010-04-15  Bruno Haible  <bruno@clisp.org>
21384
21385         openpty: Fix mistake from 2010-03-21.
21386         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21387         Reported by Simon Josefsson.
21388
21389 2010-04-15  Eric Blake  <eblake@redhat.com>
21390
21391         test-forkpty: fix expected signature
21392         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21393         Reported by Simon Josefsson.
21394
21395 2010-04-15  Jim Meyering  <meyering@redhat.com>
21396
21397         maint.mk: texinfo_suffix_re_: correct the default regexp
21398         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21399
21400         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21401         make it configurable via texinfo_suffix_re_.
21402
21403 2010-04-14  Eric Blake  <eblake@redhat.com>
21404
21405         strtok_r: relax license to LGPLv2+
21406         * modules/strtok_r (License): Relax license.
21407         Reported by Matthias Bolte.
21408
21409 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21410
21411         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21412         version 1.4.4 by default instead of requiring the libgcrypt
21413         version used during build.  This makes it possible to use the
21414         application with older but still binary compatible libgcrypt
21415         versions.
21416
21417 2010-04-13  Eric Blake  <eblake@redhat.com>
21418
21419         getopt-gnu: match recent glibc fixes and posix ruling
21420         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21421         '+' handling, when requesting extensions.
21422         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21423         'W;' handling.
21424         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21425         * doc/posix-functions/getopt.texi (getopt): Document this.
21426         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21427         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21428         Likewise.
21429
21430         getopt: merge bug fixes from glibc
21431         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21432         diagnostics.  Honor '+:' correctly.  Reject ';'.
21433
21434         getopt-posix: detect MacOS bug
21435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21436         optind when missing a required argument.
21437         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21438         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21439         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21440         Likewise.
21441
21442         getopt-posix: avoid spurious failure on Solaris
21443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21444         an indicator that setting optind=1 is sufficient for reset.
21445
21446         getopt-posix: avoid spurious failure on FreeBSD
21447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21448         in POSIX mode, since the m4 test uses it.
21449
21450         gnulib-tool: silence warning on BSD sh
21451         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21452
21453 2010-04-13  Jim Meyering  <meyering@redhat.com>
21454
21455         doc: users.txt: GNU patch now uses gnulib
21456         * users.txt: Add patch.
21457
21458 2010-04-12  Jim Meyering  <meyering@redhat.com>
21459
21460         maint.mk: generate more concise timing data for syntax-check rules
21461         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21462         " done" from each line that reports a syntax-check test duration.
21463
21464 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21465
21466         git-version-gen: use "git update-index..." rather than "git status"
21467         * build-aux/git-version-gen: Use git update-index --refresh, not
21468         "git status".  With some versions of git, "git status" would fail
21469         to update the index and result in an unwarranted "-dirty" suffix.
21470
21471 2010-04-11  Jim Meyering  <meyering@redhat.com>
21472
21473         openat: correct formatting (no semantic change)
21474         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21475         Suggested by Bruno Haible.
21476
21477 2010-04-11  Bruno Haible  <bruno@clisp.org>
21478
21479         Stricter declaration checking in testdirs.
21480         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21481         If for_tests is true, augment AM_CPPFLAGS to define
21482         GNULIB_STRICT_CHECKING.
21483         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21484         GNULIB_STRICT_CHECKING is defined, verify that the function is
21485         declared.
21486
21487 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21488             Bruno Haible  <bruno@clisp.org>
21489
21490         libunistring: Improve configure output.
21491         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21492         Don't say "consider installing GNU libunistring" when checking again
21493         with libiconv.
21494
21495 2010-04-11  Bruno Haible  <bruno@clisp.org>
21496
21497         libunistring: Correct value of $LTLIBUNISTRING.
21498         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21499         correct the value of $LTLIBUNISTRING.
21500
21501 2010-04-11  Bruno Haible  <bruno@clisp.org>
21502
21503         havelib: Add static libraries to LIBS in the right order.
21504         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21505         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21506
21507 2010-04-11  Bruno Haible  <bruno@clisp.org>
21508
21509         libunistring: Detect libunistring also when it depends on libiconv.
21510         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21511         the second AC_LIB_HAVE_LINKFLAGS invocation.
21512
21513 2010-04-11  James Youngman  <jay@gnu.org>
21514
21515         close-stream: declare local scalars to be "const"
21516         * lib/close-stream.c (close_stream): Make boolean variables const
21517         to document the fact that we set but do not change them.
21518
21519 2010-04-11  Bruno Haible  <bruno@clisp.org>
21520
21521         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21522
21523 2010-04-11  Jim Meyering  <meyering@redhat.com>
21524
21525         maint.mk: don't include dist-check.mk
21526         * top/maint.mk: Remove bogus include directive.
21527
21528         maint.mk: improve empty-line-at-EOF check
21529         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21530         solution, rather than tail+Perl-based one.  The latter would read
21531         a few kilobytes from the end of each file, and did not handle empty
21532         files properly.
21533
21534         maint.mk: print the elapsed time for each syntax-check rule
21535         * top/maint.mk (sc_m_rules_): Save start time in a file.
21536         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21537         (local-check): Interpose the .z rules
21538
21539 2010-04-11  Jim Meyering  <meyering@redhat.com>
21540
21541         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21542         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21543         empty file with one that ends in an empty line.
21544
21545 2010-04-10  Bruno Haible  <bruno@clisp.org>
21546
21547         mkdir: Make it work on mingw64.
21548         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21549         * lib/mkdir.c: Update comment.
21550         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21551
21552 2010-04-10  Bruno Haible  <bruno@clisp.org>
21553
21554         Don't override improved macro from newer autoconf.
21555         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21556         autoconf >= 2.62.
21557         Reported by Joel E. Denny <jdenny@clemson.edu>.
21558
21559 2010-04-10  Jim Meyering  <meyering@redhat.com>
21560
21561         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21562         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21563
21564         maint.mk: correct a diagnostic
21565         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21566         in diagnostic; now use $prohibit.
21567
21568 2010-04-10  Bruno Haible  <address@hidden>
21569
21570         fchownat: Fix a C++ test error on Solaris 8.
21571         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21572         the function does not exist.
21573
21574 2010-04-10  Bruno Haible  <bruno@clisp.org>
21575
21576         vasnprintf: Add more tests.
21577         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21578         (test_function): Test converting an invalid wide string.
21579
21580         vasnprintf: Correct handling of unconvertible wide string arguments.
21581         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21582         VASNPRINTF.
21583         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21584         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21585         smaller than the expected maximum need for the directive. Set errno to
21586         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21587         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21589         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21590         * modules/vasnprintf (Files): Add m4/printf.m4.
21591         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21592
21593 2010-04-10  Bruno Haible  <bruno@clisp.org>
21594
21595         vasnprintf: Fix crash in %ls directive.
21596         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21597         string is passed as argument to %ls, with no precision and no width.
21598         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21599
21600 2010-04-10  Bruno Haible  <bruno@clisp.org>
21601
21602         vasnprintf: Fix multiple test failures on mingw.
21603         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21604         _snprintf, or snwprintf, not _snwprintf.
21605
21606 2010-04-10  Bruno Haible  <bruno@clisp.org>
21607
21608         write: Fix a C++ test error on mingw.
21609         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21610
21611 2010-04-10  Bruno Haible  <bruno@clisp.org>
21612
21613         vasnprintf test: Reduce code duplication.
21614         * tests/test-vasnprintf.c (test_function): New function, extracted from
21615         test_vasnprintf.
21616         (test_vasnprintf, test_asnprintf): Invoke it.
21617
21618 2010-04-10  Bruno Haible  <bruno@clisp.org>
21619
21620         strnlen: Fix warning in C++ mode on MacOS X.
21621         * lib/string.in.h (strnlen): Use the modern idiom.
21622         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21623         defining strnlen as a macro already in <config.h>.
21624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21625         REPLACE_STRNLEN.
21626         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21627         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21628
21629 2010-04-08  James Youngman  <jay@gnu.org>
21630
21631         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21632         the example.
21633
21634 2010-04-09  Jim Meyering  <meyering@redhat.com>
21635
21636         maint.mk: print better diagnostic when there is no $(_hv_file)
21637         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21638         announce that when $(_hv_file) (aka help-version) does not exist.
21639
21640         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21641         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21642         not try to interpret its random input bytes.  Jarno Rajahalme reported
21643         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21644         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21645         (mktempd_): Likewise, just in case.
21646
21647         ftruncate: add two years to projected module removal date: 2012
21648         * m4/ftruncate.m4: Adjust comments.
21649
21650         ftruncate: mark module as obsolete; even MinGW provides it, now
21651         * modules/ftruncate (Status): Obsolete.
21652         (Notice): Say that.
21653         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21654         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21655
21656 2010-04-08  Bruno Haible  <bruno@clisp.org>
21657
21658         Fix side effects from tests-related modules.
21659         * modules/dprintf-posix (Comment): New section.
21660         * modules/fprintf-posix (Comment): Likewise.
21661         * modules/obstack-printf-posix (Comment): Likewise.
21662         * modules/printf-posix (Comment): Likewise.
21663         * modules/snprintf-posix (Comment): Likewise.
21664         * modules/sprintf-posix (Comment): Likewise.
21665         * modules/vasnprintf-posix (Comment): Likewise.
21666         * modules/vasprintf-posix (Comment): Likewise.
21667         * modules/vdprintf-posix (Comment): Likewise.
21668         * modules/vfprintf-posix (Comment): Likewise.
21669         * modules/vprintf-posix (Comment): Likewise.
21670         * modules/vsnprintf-posix (Comment): Likewise.
21671         * modules/vsprintf-posix (Comment): Likewise.
21672         * modules/xprintf-posix (Comment): Likewise.
21673         * modules/xvasprintf-posix (Comment): Likewise.
21674         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21675         * modules/floorf-tests (Depends-on): Likewise.
21676         * modules/round-tests (Depends-on): Likewise.
21677         * modules/roundf-tests (Depends-on): Likewise.
21678         * modules/trunc-tests (Depends-on): Likewise.
21679         * modules/truncf-tests (Depends-on): Likewise.
21680         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21681         'fprintf-posix' module is not present.
21682         * tests/test-floorf2.c (check): Likewise.
21683         * tests/test-trunc2.c (check): Likewise.
21684         * tests/test-truncf2.c (check): Likewise.
21685         * tests/test-round2.c (equal): Likewise.
21686         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21687
21688 2010-04-07  Karl Berry  <karl@gnu.org>
21689
21690         * config/srclist.txt,
21691         * config/srclistvars.sh,
21692         * config/srclist-update: doc fixes.
21693
21694 2010-04-07  Jim Meyering  <meyering@redhat.com>
21695
21696         maint.mk: add a PATH crosschecking syntax-check rule
21697         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21698         Useful if you use a test like the one in help-version (coreutils,
21699         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21700         printed by prog --version.
21701
21702 2010-04-06  Bruno Haible  <bruno@clisp.org>
21703
21704         Fix link error on mingw.
21705         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21706         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21707
21708 2010-04-06  Bruno Haible  <bruno@clisp.org>
21709
21710         Assume rmdir exists.
21711         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21712
21713 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21714
21715         doc: update users.txt
21716         * users.txt: Add gcal.
21717
21718 2010-04-06  Jim Meyering  <meyering@redhat.com>
21719
21720         init.sh: simply unset TMPDIR rather than risking env -i
21721         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21722         although it probably works fine on all Unix-based systems, some
21723         systems (Cygwin?) cannot tolerate a totally cleared environment.
21724         Suggestion from Eric Blake.
21725
21726 2010-04-06  Jim Meyering  <meyering@redhat.com>
21727
21728         init.sh: portability fix: use env's POSIX-specified -i option not -u
21729         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21730         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21731
21732 2010-04-05  Bruno Haible  <bruno@clisp.org>
21733
21734         btowc: Work around Cygwin 1.7.2 bug.
21735         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21736         does not map NUL to 0.
21737         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21738
21739 2010-04-05  Bruno Haible  <bruno@clisp.org>
21740
21741         Make the multithread modules work on Cygwin 1.7.2.
21742         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21743         imported symbols can be declared weak, so that it returns "no" on
21744         Cygwin 1.7.2.
21745
21746 2010-04-05  Bruno Haible  <bruno@clisp.org>
21747
21748         Use the module 'strncat'.
21749         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21750
21751         Tests for module 'strncat'.
21752         * modules/strncat-tests: New file.
21753         * tests/test-strncat.c: New file.
21754
21755         New module 'strncat'.
21756         * lib/string.in.h (strncat): New declaration.
21757         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21758         * m4/strncat.m4: New file, based on m4/memchr.m4.
21759         * modules/strncat: New file.
21760         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21761         is declared.
21762         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21763         REPLACE_STRNCAT.
21764         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21765         REPLACE_STRNCAT.
21766         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21767         module.
21768         * tests/test-string-c++.cc: Check signature of strncat.
21769
21770 2010-04-05  Jim Meyering  <meyering@redhat.com>
21771
21772         xstrtoumax-tests: convert to use init.sh
21773         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21774         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21775         Use Exit, not exit.
21776         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21777
21778         xstrtoimax-tests: convert to use init.sh
21779         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21780         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21781         Use Exit, not exit.
21782         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21783
21784 2010-04-05  Bruno Haible  <bruno@clisp.org>
21785
21786         sys_socket: Avoid #define replacements in C++ mode.
21787         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21788         warning to the function if possible, rather than #defining the symbol
21789         to a dysfunctional alias.
21790
21791 2010-04-05  Bruno Haible  <bruno@clisp.org>
21792
21793         fseeko: Fix C++ test error on mingw.
21794         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21795         gl_FUNC_FSEEKO.
21796         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21797         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21798         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21799         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21800
21801 2010-04-05  Bruno Haible  <bruno@clisp.org>
21802
21803         duplocale: Improve test output.
21804         * tests/test-duplocale.c (main): Print reason for skipped test.
21805
21806 2010-04-05  Bruno Haible  <bruno@clisp.org>
21807
21808         Assume rmdir exists.
21809         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21810         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21811
21812 2010-04-05  Bruno Haible  <bruno@clisp.org>
21813
21814         Fix link error on Solaris 8 with cc.
21815         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21816
21817 2010-04-05  Bruno Haible  <bruno@clisp.org>
21818
21819         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21820         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21821
21822 2010-04-05  Bruno Haible  <bruno@clisp.org>
21823
21824         vasprintf: Update documentation.
21825         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21826
21827 2010-04-05  Bruno Haible  <bruno@clisp.org>
21828
21829         ptsname: Improve test.
21830         * tests/test-ptsname.c (main): Also try the various master names of BSD
21831         systems.
21832
21833 2010-04-05  Bruno Haible  <bruno@clisp.org>
21834
21835         memchr: Avoid a possible C++ test error.
21836         * lib/string.in.h (memchr): Provide declaration if function is missing.
21837         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21838         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21840         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21841
21842 2010-04-05  Bruno Haible  <bruno@clisp.org>
21843
21844         strtok_r: Improve idiom.
21845         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21846         AC_LIBOBJ is used.
21847
21848 2010-04-05  Bruno Haible  <bruno@clisp.org>
21849
21850         strdup: Improve idiom.
21851         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21852         AC_LIBOBJ is used.
21853         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21854         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21855         when AC_LIBOBJ is used.
21856
21857 2010-04-05  Bruno Haible  <bruno@clisp.org>
21858
21859         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21860         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21861         don't set REPLACE_MBSINIT to 1.
21862         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21863         don't set REPLACE_MBRTOWC to 1.
21864         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21865         exist, don't set REPLACE_MBSRTOWCS to 1.
21866         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21867         exist, don't set REPLACE_MBSNRTOWCS to 1.
21868         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21869         don't set REPLACE_WCRTOMB to 1.
21870         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21871         exist, don't set REPLACE_WCSRTOMBS to 1.
21872         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21873         exist, don't set REPLACE_WCSNRTOMBS to 1.
21874
21875 2010-04-05  Bruno Haible  <bruno@clisp.org>
21876
21877         ldexpl: Improve idiom.
21878         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21879         make sure to set HAVE_DECL_LDEXPL to 0.
21880
21881 2010-04-05  Jim Meyering  <meyering@redhat.com>
21882
21883         xstrtol-tests: convert to use init.sh
21884         * modules/xstrtol-tests (Files): Add tests/init.sh.
21885         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21886         Use Exit, not exit.
21887         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21888
21889         atexit-tests: convert to use init.sh
21890         * modules/atexit-tests (Files): Add tests/init.sh.
21891         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21892         Use Exit, not exit.
21893         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21894
21895         init.sh: fix typo
21896         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21897
21898         init.sh: make it easier for a test script to write to the tty, ...
21899         when using automake's parallel-tests mode.
21900         * tests/init.sh (stderr_fileno_): Define overridable variable.
21901         (warn_): New function, to use it.
21902         (fail_, skip_, framework_failure_): Use warn_.
21903
21904 2010-04-04  Bruno Haible  <bruno@clisp.org>
21905
21906         btowc: Avoid warning.
21907         * lib/btowc.c: Include <stdlib.h>.
21908         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21909
21910 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21911             Bruno Haible  <bruno@clisp.org>
21912
21913         wchar: Port to NetBSD 1.5.
21914         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21915         * lib/wctype.in.h (WEOF): Likewise.
21916
21917 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21918             Bruno Haible  <bruno@clisp.org>
21919
21920         Port extended stdio to NetBSD 1.5.
21921         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21922         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21923         older.
21924
21925 2010-04-04  Bruno Haible  <bruno@clisp.org>
21926
21927         string: Remove unused substitution.
21928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21929         HAVE_DECL_STRERROR.
21930         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21931
21932 2010-04-04  Bruno Haible  <bruno@clisp.org>
21933
21934         strtod: Avoid a possible C++ test error.
21935         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21936         set REPLACE_STRTOD.
21937
21938 2010-04-04  Bruno Haible  <bruno@clisp.org>
21939
21940         strerror: Update documentation.
21941         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21942
21943 2010-04-04  Bruno Haible  <bruno@clisp.org>
21944
21945         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21946         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21947         _GL_CXXALIAS_SYS_CAST.
21948
21949 2010-04-04  Bruno Haible  <bruno@clisp.org>
21950
21951         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21952         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21953         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21954         REPLACE_FREXPL to 1.
21955         * doc/posix-functions/frexpl.texi: Update documentation.
21956
21957 2010-04-04  Bruno Haible  <bruno@clisp.org>
21958
21959         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21960         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21961
21962 2010-04-04  Bruno Haible  <bruno@clisp.org>
21963
21964         Implement nanosleep for native Windows.
21965         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21966
21967 2010-04-04  Bruno Haible  <bruno@clisp.org>
21968
21969         math: Fix some C++ test errors on Solaris 8.
21970         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21971
21972 2010-04-04  Bruno Haible  <bruno@clisp.org>
21973
21974         math: Fix some C++ test errors on Cygwin.
21975         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21976         truncl): Provide declaration if the system does not have it.
21977         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21978         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21979         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21980         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21981         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21982         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21983         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21984         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21985         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21986         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21987         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21988         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21989         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21990         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21991         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21992         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21994         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21995         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21996         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21997         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21998         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21999
22000 2010-04-04  Bruno Haible  <bruno@clisp.org>
22001
22002         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22003         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22004         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22005         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22006         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22007         * m4/isinf.m4 (gl_ISINF): Likewise.
22008         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22009
22010 2010-04-04  Bruno Haible  <bruno@clisp.org>
22011
22012         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22013         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22014
22015 2010-04-04  Bruno Haible  <bruno@clisp.org>
22016
22017         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22018         * modules/tmpfile (configure.ac): Update.
22019
22020         tmpfile: Fix C++ test error on mingw.
22021         * lib/stdio.in.h (tmpfile): New declaration.
22022         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22023         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22024         * modules/tmpfile (Depends-on): Add stdio.
22025         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22026         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22027         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22028         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22029         REPLACE_TMPFILE.
22030         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22031
22032 2010-04-04  Bruno Haible  <bruno@clisp.org>
22033
22034         ioctl: Fix C++ test error on mingw.
22035         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22036         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22037         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22038
22039 2010-04-03  Bruno Haible  <bruno@clisp.org>
22040
22041         wcwidth: Fix C++ test error on mingw.
22042         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22044         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22045
22046 2010-04-03  Bruno Haible  <bruno@clisp.org>
22047
22048         nanosleep: Fix C++ test error on mingw.
22049         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22050         * lib/time.in.h (nanosleep): Use modern idiom.
22051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22052         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22053         REPLACE_NANOSLEEP to 1.
22054         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22055         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22056
22057 2010-04-03  Bruno Haible  <bruno@clisp.org>
22058
22059         strptime: Fix C++ test error on mingw.
22060         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22061         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22062         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22063         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22064         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22065         not REPLACE_STRPTIME.
22066         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22067         REPLACE_STRPTIME.
22068
22069 2010-04-03  Bruno Haible  <bruno@clisp.org>
22070
22071         timegm: Fix C++ test error on mingw.
22072         * lib/time.in.h (timegm): Use modern idiom.
22073         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22074         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22075         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22076         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22077
22078 2010-04-03  Bruno Haible  <bruno@clisp.org>
22079
22080         timegm: Assume declaration if function exists.
22081         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22082         if it exists. Don't clobber ac_cv_func_timegm.
22083
22084 2010-04-03  Bruno Haible  <bruno@clisp.org>
22085
22086         time_r: Fix C++ test error on mingw.
22087         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22088         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22089         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22090         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22091         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22092
22093 2010-04-03  Bruno Haible  <bruno@clisp.org>
22094
22095         time_r: Minor updates.
22096         * modules/time_r (Description): Mention the provided functions.
22097         * lib/time_r.c: Don't include <string.h>.
22098         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22099         * doc/posix-functions/localtime_r.texi: Likewise.
22100
22101 2010-04-03  Bruno Haible  <bruno@clisp.org>
22102
22103         time: Fix regression introduced on 2010-03-08.
22104         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22105         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22106
22107 2010-04-03  Jim Meyering  <meyering@redhat.com>
22108
22109         maint.mk: don't silently disable project-specific syntax-check rules
22110         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22111         that they need to convert their project-specific syntax-check rules
22112         to use the new _sc_search_regexp.
22113
22114 2010-04-03  Bruno Haible  <bruno@clisp.org>
22115
22116         fchdir: Fix regression introduced on 2010-03-08.
22117         * lib/unistd.in.h (fchdir): Fix declaration.
22118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22120         REPLACE_FCHDIR.
22121         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22122         REPLACE_FCHDIR.
22123
22124 2010-04-03  Bruno Haible  <bruno@clisp.org>
22125
22126         getpagesize: Fix C++ test error on mingw.
22127         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22128         system does not declare the function.
22129         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22130         declared.
22131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22132         HAVE_DECL_GETPAGESIZE.
22133         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22134
22135 2010-04-03  Bruno Haible  <bruno@clisp.org>
22136
22137         stdio: Make C++ tests work on mingw.
22138         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22139         does not declare the function.
22140
22141 2010-04-03  Bruno Haible  <bruno@clisp.org>
22142
22143         ftello: Fix C++ test error on mingw.
22144         * lib/stdio.in.h (ftello): Use modern idiom.
22145         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22146         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22147         is missing and that it needs to be replaced.
22148         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22150         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22151
22152 2010-04-03  Bruno Haible  <bruno@clisp.org>
22153
22154         fseeko: Fix C++ test error on mingw.
22155         * lib/stdio.in.h (fseeko): Use modern idiom.
22156         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22157         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22158         is missing and that it needs to be replaced.
22159         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22161         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22162
22163 2010-04-03  Bruno Haible  <bruno@clisp.org>
22164
22165         mkstemp: Fix C++ test error on mingw.
22166         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22168         function is missing and that it needs to be replaced.
22169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22170         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22171
22172 2010-04-03  Bruno Haible  <bruno@clisp.org>
22173
22174         stpncpy: Fix C++ test error on mingw.
22175         * lib/string.in.h (stpncpy): Use modern idiom.
22176         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22177         function is missing and that it needs to be replaced.
22178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22179         REPLACE_STPNCPY.
22180         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22181
22182 2010-04-03  Bruno Haible  <bruno@clisp.org>
22183
22184         sys_stat: Fix C++ test error on mingw.
22185         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22186         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22187
22188 2010-04-03  Bruno Haible  <bruno@clisp.org>
22189
22190         pty: Update doc.
22191         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22192
22193 2010-04-03  Bruno Haible  <bruno@clisp.org>
22194
22195         unistd: Fix C++ test error on mingw.
22196         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22197
22198 2010-04-03  Bruno Haible  <bruno@clisp.org>
22199
22200         Update doc regarding mingw.
22201         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22202         * doc/glibc-functions/login_tty.texi: Likewise.
22203         * doc/glibc-functions/forkpty.texi: Likewise.
22204
22205 2010-04-03  Bruno Haible  <bruno@clisp.org>
22206
22207         stdlib: Avoid compilation failure of c-strtold on mingw.
22208         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22209
22210 2010-04-03  Bruno Haible  <bruno@clisp.org>
22211
22212         locale: Make C++ tests work on Cygwin and mingw.
22213         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22214         cannot provide the function.
22215         Reported by Simon Josefsson.
22216
22217 2010-04-03  Bruno Haible  <bruno@clisp.org>
22218
22219         localename: Port to MacOS X 10.6.
22220         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22221         memory layout of the locales in MacOS X 10.6 as well.
22222         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22223
22224 2010-04-02  Bruno Haible  <bruno@clisp.org>
22225
22226         gnulib-tool: Ensure that long-running tests are executed last.
22227         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22228         running tests after the one for the other tests.
22229
22230 2010-04-02  Bruno Haible  <bruno@clisp.org>
22231
22232         gnulib-tool: Ensure the tests in the main directory are executed first.
22233         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22234         start with the current directory.
22235
22236 2010-04-02  Bruno Haible  <bruno@clisp.org>
22237
22238         Tests for module 'havelib', moved here from GNU gettext.
22239         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22240         modifications.
22241         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22242         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22243         with modifications.
22244         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22245         modifications.
22246         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22247         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22248         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22249         with modifications.
22250         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22251         with modifications.
22252         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22253         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22254         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22255         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22256         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22257         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22258         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22259         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22260         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22261         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22262         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22263         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22264         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22265         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22266         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22267         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22268         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22269         with modifications.
22270         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22271         with modifications.
22272         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22273         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22274         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22275         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22276         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22277         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22278         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22279         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22280         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22281         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22282         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22283         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22284         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22285         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22286         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22287         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22288         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22289         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22290         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22291         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22292         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22293         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22294         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22295         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22296         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22297         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22298         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22299         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22300         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22301         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22302         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22303         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22304         * tests/havelib/rpathx/rpathx.c: New file, from
22305         gettext/autoconf-lib-link.
22306         * tests/havelib/rpathx/Makefile.am: New file, from
22307         gettext/autoconf-lib-link.
22308         * tests/havelib/rpathx/configure.ac: New file, from
22309         gettext/autoconf-lib-link with modifications.
22310         * tests/havelib/rpathy/rpathy.c: New file, from
22311         gettext/autoconf-lib-link.
22312         * tests/havelib/rpathy/Makefile.am: New file, from
22313         gettext/autoconf-lib-link.
22314         * tests/havelib/rpathy/configure.ac: New file, from
22315         gettext/autoconf-lib-link with modifications.
22316         * tests/havelib/rpathz/rpathz.c: New file, from
22317         gettext/autoconf-lib-link.
22318         * tests/havelib/rpathz/Makefile.am: New file, from
22319         gettext/autoconf-lib-link.
22320         * tests/havelib/rpathz/configure.ac: New file, from
22321         gettext/autoconf-lib-link with modifications.
22322         * tests/havelib/rpathlx/usex.c: New file, from
22323         gettext/autoconf-lib-link.
22324         * tests/havelib/rpathlx/Makefile.am: New file, from
22325         gettext/autoconf-lib-link.
22326         * tests/havelib/rpathlx/configure.ac: New file, from
22327         gettext/autoconf-lib-link with modifications.
22328         * tests/havelib/rpathly/usey.c: New file, from
22329         gettext/autoconf-lib-link.
22330         * tests/havelib/rpathly/Makefile.am: New file, from
22331         gettext/autoconf-lib-link.
22332         * tests/havelib/rpathly/configure.ac: New file, from
22333         gettext/autoconf-lib-link with modifications.
22334         * tests/havelib/rpathlz/usez.c: New file, from
22335         gettext/autoconf-lib-link.
22336         * tests/havelib/rpathlz/Makefile.am: New file, from
22337         gettext/autoconf-lib-link.
22338         * tests/havelib/rpathlz/configure.ac: New file, from
22339         gettext/autoconf-lib-link with modifications.
22340         * tests/havelib/rpathlyx/usey.c: New file, from
22341         gettext/autoconf-lib-link.
22342         * tests/havelib/rpathlyx/Makefile.am: New file, from
22343         gettext/autoconf-lib-link.
22344         * tests/havelib/rpathlyx/configure.ac: New file, from
22345         gettext/autoconf-lib-link with modifications.
22346         * tests/havelib/rpathlzyx/usez.c: New file, from
22347         gettext/autoconf-lib-link.
22348         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22349         gettext/autoconf-lib-link.
22350         * tests/havelib/rpathlzyx/configure.ac: New file, from
22351         gettext/autoconf-lib-link with modifications.
22352         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22353         with modifications.
22354
22355 2010-04-02  Bruno Haible  <bruno@clisp.org>
22356
22357         gnulib-tool: Create distributed built sources also for the tests.
22358         * gnulib-tool (func_create_testdir): Also generate distributed built
22359         sources in the tests directory.
22360
22361 2010-04-02  Bruno Haible  <bruno@clisp.org>
22362
22363         gnulib-tool: Obey user's environment variables.
22364         * gnulib-tool (func_create_testdir): When creating built sources,
22365         respect the environment variables for autoconf, automake, etc. given by
22366         the user.
22367
22368 2010-04-02  Bruno Haible  <bruno@clisp.org>
22369
22370         gnulib-tool: Provide the value of --m4-base to modules.
22371         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22372         of gl_m4_base.
22373
22374 2010-04-02  Eric Blake  <eblake@redhat.com>
22375
22376         maint.mk: fix some fallout
22377         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22378         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22379
22380 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22381
22382         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22383         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22384         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22385         (sc_cast_of_x_alloc_return_value): Likewise.
22386         (sc_cast_of_alloca_return_value): Likewise.
22387         (sc_space_tab): Likewise.
22388         (sc_prohibit_atoi_atof): Likewise.
22389         (sc_prohibit_magic_number_exit): Likewise.
22390         (sc_error_exit_success): Likewise.
22391         (sc_file_system): Likewise.
22392         (sc_prohibit_have_config_h): Likewise.
22393         (sc_require_config_h): Likewise.
22394         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22395         (sc_obsolete_symbols): Likewise.
22396         (sc_changelog): Likewise.
22397         (sc_program_name): Likewise.
22398         (sc_the_the): Likewise.
22399         (sc_trailing_blank): Likewise.
22400         (sc_two_space_separator_in_usage): Likewise.
22401         (sc_useless_cpp_parens): Likewise.
22402         (sc_GPL_version): Likewise.
22403         (sc_GFDL_version): Likewise.
22404         (sc_texinfo_acronym): Likewise.
22405         (sc_prohibit_cvs_keyword): Likewise.
22406         (sc_prohibit_stat_st_blocks): Likewise.
22407         (sc_prohibit_S_IS_definition): Likewise.
22408         (sc_redundant_const): Likewise.
22409         (sc_makefile_TAB_only_indentation): Likewise.
22410         (sc_m4_quote_check): Likewise.
22411         (sc_makefile_path_separator_check): Likewise.
22412         (sc_copyright_check): Likewise.
22413         (sc_Wundef_boolean): Likewise.
22414         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22415
22416         maint.mk: match 0 or more whitespace-before-function-call '('
22417         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22418         that have zero or two-and-more spaces between the function name
22419         and the open parenthesis.
22420         (sc_error_message_warn_fatal): Likewise.
22421         (sc_error_message_uppercase): Likewise.
22422         (sc_error_message_period): Likewise.
22423
22424 2010-03-31  Eric Blake  <eblake@redhat.com>
22425
22426         maint.mk: check for [ as well as test
22427         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22428         Based on a libvirt report by Matthias Bolte.
22429
22430         gnumakefile: don't squelch _version output
22431         * top/GNUmakefile (_version): Create one-shot dependency rather
22432         than using $(shell) when version must be regenerated.
22433         (_autoreconf): Run verbosely, by default.
22434
22435         sys_time: avoid compiler warnings
22436         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22437         unconditional, fixing regression from 2010-03-29.
22438         Reported by Simon Josefsson.
22439
22440 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22441
22442         maint.mk: s/_header_without_use/_sc_header_without_use/
22443         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22444         (sc_prohibit_assert_without_use): Use the new name.
22445         (sc_prohibit_close_stream_without_use): Likewise.
22446         (sc_prohibit_getopt_without_use): Likewise.
22447         (sc_prohibit_quotearg_without_use): Likewise.
22448         (sc_prohibit_quote_without_use): Likewise.
22449         (sc_prohibit_long_options_without_use): Likewise.
22450         (sc_prohibit_inttostr_without_use): Likewise.
22451         (sc_prohibit_ignore_value_without_use): Likewise.
22452         (sc_prohibit_error_without_use): Likewise.
22453         (sc_prohibit_xalloc_without_use): Likewise.
22454         (sc_prohibit_hash_without_use): Likewise.
22455         (sc_prohibit_hash_pjw_without_use): Likewise.
22456         (sc_prohibit_safe_read_without_use): Likewise.
22457         (sc_prohibit_argmatch_without_use): Likewise.
22458         (sc_prohibit_canonicalize_without_use): Likewise.
22459         (sc_prohibit_root_dev_ino_without_use): Likewise.
22460         (sc_prohibit_openat_without_use): Likewise.
22461         (sc_prohibit_c_ctype_without_use): Likewise.
22462         (sc_prohibit_signal_without_use): Likewise.
22463         (sc_prohibit_intprops_without_use): Likewise.
22464
22465 2010-03-30  Eric Blake  <eblake@redhat.com>
22466
22467         maint: improve module indicators
22468         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22469         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22470         columns, and avoid extra macro expansion.
22471
22472         fdopendir: work around FreeBSD bug
22473         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22474         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22475         * modules/dirent (Makefile.am): Substitute it.
22476         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22477         declaration.
22478         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22479         fix.
22480         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22481
22482 2010-03-29  Bruno Haible  <bruno@clisp.org>
22483
22484         Emit #pragma system_header after the inclusion guard, not before.
22485         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22486         guard that spans the entire file, not before. This enables an
22487         optimization in GCC's preprocessor.
22488         * lib/ctype.in.h: Likewise.
22489         * lib/dirent.in.h: Likewise.
22490         * lib/errno.in.h: Likewise.
22491         * lib/float.in.h: Likewise.
22492         * lib/getopt.in.h: Likewise.
22493         * lib/iconv.in.h: Likewise.
22494         * lib/langinfo.in.h: Likewise.
22495         * lib/locale.in.h: Likewise.
22496         * lib/math.in.h: Likewise.
22497         * lib/netdb.in.h: Likewise.
22498         * lib/netinet_in.in.h: Likewise.
22499         * lib/pty.in.h: Likewise.
22500         * lib/sched.in.h: Likewise.
22501         * lib/se-selinux.in.h: Likewise.
22502         * lib/search.in.h: Likewise.
22503         * lib/spawn.in.h: Likewise.
22504         * lib/stdarg.in.h: Likewise.
22505         * lib/stdint.in.h: Likewise.
22506         * lib/string.in.h: Likewise.
22507         * lib/strings.in.h: Likewise.
22508         * lib/sys_file.in.h: Likewise.
22509         * lib/sys_ioctl.in.h: Likewise.
22510         * lib/sys_time.in.h: Likewise.
22511         * lib/sys_times.in.h: Likewise.
22512         * lib/sys_utsname.in.h: Likewise.
22513         * lib/sys_wait.in.h: Likewise.
22514         * lib/sysexits.in.h: Likewise.
22515         * lib/wctype.in.h: Likewise.
22516
22517 2010-03-28  James Youngman  <jay@gnu.org>
22518
22519         save-cwd: don't leak a file descriptor when the caller execs.
22520         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22521         saved file descriptor.
22522         * modules/save-cwd (Depends-on): Depend on cloexec.
22523
22524 2010-03-29  Bruno Haible  <bruno@clisp.org>
22525
22526         Remove vestiges of fts-lgpl module.
22527         * lib/fts_.h: Assume GNULIB_FTS is 1.
22528         * lib/fts.c: Likewise.
22529         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22530
22531 2010-03-28  Bruno Haible  <bruno@clisp.org>
22532
22533         Fix definition of tests witness macro.
22534         * gnulib-tool (func_import): Fix definition of witness macro.
22535
22536 2010-03-28  Bruno Haible  <bruno@clisp.org>
22537
22538         Fix ioctl's protoype on glibc systems.
22539         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22540         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22541         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22542         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22543         signature. If not, arrange to replace the ioctl function.
22544         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22545         REPLACE_IOCTL.
22546         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22547         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22548         Reported by Ludovic Courtès <ludo@gnu.org>.
22549
22550 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22551
22552         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22553         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22554         made it so grep -r --include=GLOB* ... did not work.
22555
22556 2010-03-26  Jim Meyering  <meyering@redhat.com>
22557             Eric Blake  <eblake@redhat.com>
22558
22559         maint.mk: prohibit use of test's -o and -a operators
22560         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22561
22562 2010-03-28  Bruno Haible  <bruno@clisp.org>
22563
22564         Remove unused GNULIB_XYZ macro definitions.
22565         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22566         invocation.
22567
22568 2010-03-28  Bruno Haible  <bruno@clisp.org>
22569
22570         Mark privileged tests modules.
22571         * modules/idpriv-drop-tests (Status): New section.
22572         * modules/idpriv-droptemp-tests (Status): New section.
22573
22574 2010-03-28  Bruno Haible  <bruno@clisp.org>
22575
22576         Split C++ tests into separate tests modules.
22577         * modules/dirent-c++-tests: New file, extracted from
22578         modules/dirent-tests.
22579         * modules/dirent-tests: Depend on it.
22580         * modules/fcntl-h-c++-tests: New file, extracted from
22581         modules/fcntl-h-tests.
22582         * modules/fcntl-h-tests: Depend on it.
22583         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22584         * modules/glob-tests: Depend on it.
22585         * modules/iconv-h-c++-tests: New file, extracted from
22586         modules/iconv-h-tests.
22587         * modules/iconv-h-tests: Depend on it.
22588         * modules/langinfo-c++-tests: New file, extracted from
22589         modules/langinfo-tests.
22590         * modules/langinfo-tests: Depend on it.
22591         * modules/locale-c++-tests: New file, extracted from
22592         modules/locale-tests.
22593         * modules/locale-tests: Depend on it.
22594         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22595         * modules/math-tests: Depend on it.
22596         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22597         * modules/pty-tests: Depend on it.
22598         * modules/search-c++-tests: New file, extracted from
22599         modules/search-tests.
22600         * modules/search-tests: Depend on it.
22601         * modules/signal-c++-tests: New file, extracted from
22602         modules/signal-tests.
22603         * modules/signal-tests: Depend on it.
22604         * modules/spawn-c++-tests: New file, extracted from
22605         modules/spawn-tests.
22606         * modules/spawn-tests: Depend on it.
22607         * modules/stdio-c++-tests: New file, extracted from
22608         modules/stdio-tests.
22609         * modules/stdio-tests: Depend on it.
22610         * modules/stdlib-c++-tests: New file, extracted from
22611         modules/stdlib-tests.
22612         * modules/stdlib-tests: Depend on it.
22613         * modules/string-c++-tests: New file, extracted from
22614         modules/string-tests.
22615         * modules/string-tests: Depend on it.
22616         * modules/sys_ioctl-c++-tests: New file, extracted from
22617         modules/sys_ioctl-tests.
22618         * modules/sys_ioctl-tests: Depend on it.
22619         * modules/sys_select-c++-tests: New file, extracted from
22620         modules/sys_select-tests.
22621         * modules/sys_select-tests: Depend on it.
22622         * modules/sys_socket-c++-tests: New file, extracted from
22623         modules/sys_socket-tests.
22624         * modules/sys_socket-tests: Depend on it.
22625         * modules/sys_stat-c++-tests: New file, extracted from
22626         modules/sys_stat-tests.
22627         * modules/sys_stat-tests: Depend on it.
22628         * modules/sys_time-c++-tests: New file, extracted from
22629         modules/sys_time-tests.
22630         * modules/sys_time-tests: Depend on it.
22631         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22632         * modules/time-tests: Depend on it.
22633         * modules/unistd-c++-tests: New file, extracted from
22634         modules/unistd-tests.
22635         * modules/unistd-tests: Depend on it.
22636         * modules/wchar-c++-tests: New file, extracted from
22637         modules/wchar-tests.
22638         * modules/wchar-tests: Depend on it.
22639         * modules/wctype-c++-tests: New file, extracted from
22640         modules/wctype-tests.
22641         * modules/wctype-tests: Depend on it.
22642         Reported by Simon Josefsson.
22643
22644 2010-03-28  Bruno Haible  <bruno@clisp.org>
22645
22646         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22647         * gnulib-tool (func_exists_module): New function, extracted from
22648         func_verify_module.
22649         (func_verify_module): Use it.
22650         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22651         'foo' only if 'foo' exists.
22652         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22653         module.
22654
22655 2010-03-28  Bruno Haible  <bruno@clisp.org>
22656
22657         gnulib-tool: Add support for special categories of tests.
22658         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22659         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22660         (func_usage): Document them.
22661         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22662         inc_unportable_tests, inc_all_tests): New variables.
22663         (func_acceptable): Consider these variables.
22664         (func_modules_transitive_closure): Make it work when the 'Status' field
22665         consists of multiple words.
22666         (func_import): Store and restore the values of inc_cxx_tests,
22667         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22668         inc_all_tests in gnulib-comp.m4.
22669         (func_create_testdir): Set inc_all_tests to true.
22670         * doc/gnulib.texi (Extra tests modules): New section.
22671         Suggested by Jim Meyering.
22672
22673 2010-03-28  Bruno Haible  <bruno@clisp.org>
22674
22675         ansi-c++-opt: Allow turning off the C++ build by default.
22676         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22677         gl_CXX_CHOICE_DEFAULT_NO is defined.
22678         Requested by Eric Blake.
22679
22680 2010-03-28  Bruno Haible  <bruno@clisp.org>
22681
22682         unistd: Avoid #define replacements in C++ mode.
22683         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22684         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22685         setsockopt, shutdown, select): In C++, attach a warning to the function
22686         if possible, rather than #defining the symbol to a dysfunctional alias.
22687         Reported by John W. Eaton <jwe@gnu.org>.
22688
22689 2010-03-28  Bruno Haible  <bruno@clisp.org>
22690
22691         Fix link errors on mingw.
22692         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22693         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22694         $(LIBSOCKET).
22695         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22696         $(LIBSOCKET).
22697
22698 2010-03-28  Bruno Haible  <bruno@clisp.org>
22699             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22700
22701         lib-ignore: Determine different options for different compilers.
22702         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22703         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22704         Add comments.
22705         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22706         * NEWS: Mention the change.
22707
22708 2010-03-27  Bruno Haible  <bruno@clisp.org>
22709
22710         Remove unused GNULIB_XYZ macro definitions.
22711         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22712         * modules/fseek (configure.ac): Likewise.
22713         * modules/ioctl (configure.ac): Likewise.
22714         * modules/open (configure.ac): Likewise.
22715         * modules/stdlib-safer (configure.ac): Likewise.
22716
22717 2010-03-27  Bruno Haible  <bruno@clisp.org>
22718
22719         Add a remark about certain modules.
22720         * modules/malloc (Comment): New section.
22721         * modules/realloc (Comment): Likewise.
22722         * modules/sigpipe (Comment): Likewise.
22723
22724 2010-03-27  Bruno Haible  <bruno@clisp.org>
22725
22726         Resolve conflict between the two kinds of module indicators.
22727         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22728         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22729         * modules/canonicalize (configure.ac): Invoke
22730         gl_MODULE_INDICATOR_FOR_TESTS.
22731         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22732         GNULIB_XYZ.
22733         * tests/test-dirent-c++.cc: Likewise.
22734         * tests/test-dirent-safer.c: Likewise.
22735         * tests/test-dup2.c: Likewise.
22736         * tests/test-fchdir.c: Likewise.
22737         * tests/test-fcntl-h-c++.cc: Likewise.
22738         * tests/test-getopt.c: Likewise.
22739         * tests/test-getopt.h: Likewise.
22740         * tests/test-langinfo-c++.cc: Likewise.
22741         * tests/test-locale-c++.cc: Likewise.
22742         * tests/test-math-c++.cc: Likewise.
22743         * tests/test-pty-c++.cc: Likewise.
22744         * tests/test-search-c++.cc: Likewise.
22745         * tests/test-signal-c++.cc: Likewise.
22746         * tests/test-spawn-c++.cc: Likewise.
22747         * tests/test-stdio-c++.cc: Likewise.
22748         * tests/test-stdlib-c++.cc: Likewise.
22749         * tests/test-string-c++.cc: Likewise.
22750         * tests/test-sys_ioctl-c++.cc: Likewise.
22751         * tests/test-sys_select-c++.cc: Likewise.
22752         * tests/test-sys_socket-c++.cc: Likewise.
22753         * tests/test-sys_stat-c++.cc: Likewise.
22754         * tests/test-sys_time-c++.cc: Likewise.
22755         * tests/test-time-c++.cc: Likewise.
22756         * tests/test-unistd-c++.cc: Likewise.
22757         * tests/test-wchar-c++.cc: Likewise.
22758         * tests/uninorm/test-u8-nfc.c: Likewise.
22759         * tests/uninorm/test-u8-nfd.c: Likewise.
22760         * tests/uninorm/test-u8-nfkc.c: Likewise.
22761         * tests/uninorm/test-u8-nfkd.c: Likewise.
22762         * tests/uninorm/test-u16-nfc.c: Likewise.
22763         * tests/uninorm/test-u16-nfd.c: Likewise.
22764         * tests/uninorm/test-u16-nfkc.c: Likewise.
22765         * tests/uninorm/test-u16-nfkd.c: Likewise.
22766         * tests/uninorm/test-u32-nfc.c: Likewise.
22767         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22768         * tests/uninorm/test-u32-nfd.c: Likewise.
22769         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22770         * tests/uninorm/test-u32-nfkc.c: Likewise.
22771         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22772         * tests/uninorm/test-u32-nfkd.c: Likewise.
22773         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22774         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22775
22776 2010-03-27  Bruno Haible  <bruno@clisp.org>
22777
22778         Distinguish two kinds of module indicators.
22779         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22780         gl_MODULE_INDICATOR.
22781         (gl_MODULE_INDICATOR): New macro.
22782         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22783         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22784         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22785         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22786         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22787         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22788         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22789         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22790         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22791         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22792         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22793         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22795         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22796         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22797         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22798         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22799         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22800         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22801         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22802         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22803         * modules/cloexec (configure.ac): Likewise.
22804         * modules/getopt-gnu (configure.ac): Likewise.
22805         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22806         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22807         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22808         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22809
22810 2010-03-27  Bruno Haible  <bruno@clisp.org>
22811
22812         New module description field 'Comment'.
22813         * gnulib-tool: New option --extract-comment.
22814         (func_usage): Document it.
22815         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22816         (func_get_comment): New function.
22817         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22818
22819 2010-03-27  Bruno Haible  <bruno@clisp.org>
22820
22821         Addendum to 2010-02-07 commit.
22822         * gnulib-tool (func_usage): Document --extract-applicability option.
22823
22824 2010-03-27  Bruno Haible  <bruno@clisp.org>
22825
22826         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22827         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22828         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22829         rather than link errors.
22830
22831 2010-03-27  Bruno Haible  <bruno@clisp.org>
22832
22833         Avoid side effects from tests-related modules on the compilation of lib.
22834         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22835         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22836         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22837         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22838         macro.
22839         (func_import): Define a witness macro. Assign it a value that depends
22840         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22841         tests-related modules.
22842         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22843         Reported by Jim Meyering.
22844
22845 2010-03-27  Bruno Haible  <bruno@clisp.org>
22846
22847         Factorize common .m4 code.
22848         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22849         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22850         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22851         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22852         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22853         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22854         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22855         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22856         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22857         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22858         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22859         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22860         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22861         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22862         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22863         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22864         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22865         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22867         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22868         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22869         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22870         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22871         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22872         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22873         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22874         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22876         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22877         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22878         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22879         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22880
22881 2010-03-27  Bruno Haible  <bruno@clisp.org>
22882
22883         Fix a compilation error on Cygwin with g++ >= 4.3.
22884         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22885         if it is undefined or if we alias it to chmod.
22886         (lstat): Don't warn about the use of this function if it is undefined
22887         or if we alias it to stat.
22888         Reported by Simon Josefsson.
22889
22890 2010-03-27  Bruno Haible  <bruno@clisp.org>
22891
22892         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22893         * modules/getlogin (configure.ac): Update.
22894
22895         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22896         * modules/getlogin_r (configure.ac): Update.
22897
22898         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22900         * modules/inet_ntop (configure.ac): Update.
22901
22902         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22903         * modules/inet_pton (configure.ac): Update.
22904
22905         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22906         * modules/mbslen (configure.ac): Update.
22907
22908         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22909         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22910         * modules/forkpty (configure.ac): Update.
22911         * modules/openpty (configure.ac): Update.
22912
22913 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22914
22915         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22916         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22917
22918 2010-03-25  Eric Blake  <eblake@redhat.com>
22919
22920         maint: use pragma consistently across replacement headers
22921         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22922         * lib/dirent.in.h (system_header): Likewise.
22923         * lib/errno.in.h (system_header): Likewise.
22924         * lib/float.in.h (system_header): Likewise.
22925         * lib/getopt.in.h (system_header): Likewise.
22926         * lib/iconv.in.h (system_header): Likewise.
22927         * lib/inttypes.in.h (system_header): Likewise.
22928         * lib/langinfo.in.h (system_header): Likewise.
22929         * lib/locale.in.h (system_header): Likewise.
22930         * lib/math.in.h (system_header): Likewise.
22931         * lib/netdb.in.h (system_header): Likewise.
22932         * lib/netinet_in.in.h (system_header): Likewise.
22933         * lib/pty.in.h (system_header): Likewise.
22934         * lib/sched.in.h (system_header): Likewise.
22935         * lib/se-selinux.in.h (system_header): Likewise.
22936         * lib/search.in.h (system_header): Likewise.
22937         * lib/spawn.in.h (system_header): Likewise.
22938         * lib/stdarg.in.h (system_header): Likewise.
22939         * lib/stdint.in.h (system_header): Likewise.
22940         * lib/string.in.h (system_header): Likewise.
22941         * lib/strings.in.h (system_header): Likewise.
22942         * lib/sys_file.in.h (system_header): Likewise.
22943         * lib/sys_ioctl.in.h (system_header): Likewise.
22944         * lib/sys_socket.in.h (system_header): Likewise.
22945         * lib/sys_times.in.h (system_header): Likewise.
22946         * lib/sys_utsname.in.h (system_header): Likewise.
22947         * lib/sys_wait.in.h (system_header): Likewise.
22948         * lib/sysexits.in.h (system_header): Likewise.
22949         * lib/unistd.in.h (system_header): Likewise.
22950         * lib/wctype.in.h (system_header): Likewise.
22951
22952         arpa/inet: fix mingw compilation warning
22953         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22954         Reported by Matthew Bolte.
22955
22956 2010-03-25  Bruno Haible  <bruno@clisp.org>
22957
22958         Avoid collision between gnulib wrapper and libintl wrapper.
22959         * lib/printf.c (printf): Don't define if a printf wrapper is already
22960         defined in intl/printf.c.
22961         Reported by Michel Boaventura <michel@michelboaventura.com>.
22962
22963 2010-03-25  Bruno Haible  <bruno@clisp.org>
22964
22965         Use ANSI C.
22966         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22967
22968 2010-03-25  Bruno Haible  <bruno@clisp.org>
22969
22970         Minor formatting changes.
22971         * lib/acosl.c: Insert space before function argument list.
22972         * lib/argz.c: Likewise.
22973         * lib/asinl.c: Likewise.
22974         * lib/expl.c: Likewise.
22975         * lib/gen-uni-tables.c: Likewise.
22976         * lib/gettext.h: Likewise.
22977         * lib/glthread/lock.h: Likewise.
22978         * lib/tanl.c: Likewise.
22979         * lib/uniname/uniname.c: Likewise.
22980         * tests/test-idpriv-drop.c: Likewise.
22981         * tests/test-idpriv-droptemp.c: Likewise.
22982         * tests/test-lock.c: Likewise.
22983         * tests/test-tls.c: Likewise.
22984         * lib/argp-help.c: Insert space before function-like macro argument
22985         list.
22986         * lib/memcmp.c: Likewise.
22987         * tests/test-base64.c: Likewise.
22988         * lib/localename.c: Insert space before sizeof's argument list.
22989         * lib/safe-alloc.h: Likewise.
22990         * lib/file-set.h: Insert space before macro argument list.
22991         * tests/test-argp.c: Likewise.
22992         * lib/argp-namefrob.h: Insert space before function parameter list.
22993         * lib/getaddrinfo.c: Likewise.
22994         * lib/netdb.in.h: Likewise.
22995         * lib/parse-duration.h: Likewise.
22996         * lib/parse-duration.c: Likewise.
22997         * lib/poll.c: Likewise.
22998         * lib/select.c: Likewise.
22999         * lib/trim.h: Likewise.
23000         * tests/test-usleep.c: Likewise.
23001         * lib/ldexpl.c: Insert space before function parameter list and before
23002         function argument list.
23003         * lib/logl.c: Likewise.
23004         * lib/sqrtl.c: Likewise.
23005         * lib/trim.c: Likewise.
23006         * lib/cosl.c: Use GNU style indentation. Insert space before function
23007         argument list.
23008         * lib/sinl.c: Likewise.
23009         * lib/tsearch.c: Insert space after 'for'.
23010         Reported by Jim Meyering.
23011
23012 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23013
23014         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23015         config header before grepping, as it's not present before
23016         autoreconf/configure are run.  Reported by Simon Josefsson.
23017
23018 2010-03-23  Bruno Haible  <bruno@clisp.org>
23019
23020         pt_chown: Make it work with automake < 1.11.
23021         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23022         Reported by Simon Josefsson.
23023
23024 2010-03-23  Bruno Haible  <bruno@clisp.org>
23025
23026         pt_chown: Don't depend on GPLed modules.
23027         * lib/pt_chown.c: Don't include idpriv.h.
23028         (main): Don't drop privileges.
23029         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23030         Reported by Simon Josefsson.
23031
23032 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23033
23034         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23035         suggestions from karl@freefriends.org (Karl Berry).
23036
23037 2010-03-22  Eric Blake  <eblake@redhat.com>
23038
23039         gethostname: further tweaks
23040         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23041         are overriding gethostname.
23042         Suggested by Bruno Haible.
23043
23044 2010-03-21  Bruno Haible  <bruno@clisp.org>
23045
23046         Fix comments.
23047         * lib/forkpty.c (rpl_forkpty): Fix comment.
23048         * lib/openpty.c (rpl_openpty): Likewise.
23049         Reported by Eric Blake.
23050
23051 2010-03-22  Eric Blake  <eblake@redhat.com>
23052
23053         gethostname: fix build on mingw
23054         * lib/unistd.in.h (includes): Work around fact that mingw
23055         <winsock2.h> re-includes <unistd.h>, by avoiding any
23056         redeclarations if we are being included by <winsock2.h>.
23057         Reported by Matthias Bolte.
23058
23059 2010-03-21  Bruno Haible  <bruno@clisp.org>
23060
23061         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23062         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23063         modifications.
23064         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23065         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23066         provide the replacement.
23067         * modules/forkpty (Depends-on): Add openpty, login_tty.
23068         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23069         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23070         * doc/glibc-functions/forkpty.texi: More supported platforms.
23071         * config/srclist.txt: Add forkpty.c (commented).
23072
23073 2010-03-21  Bruno Haible  <bruno@clisp.org>
23074
23075         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23076         (Makefile.am): Verify that PTY_LIB is defined.
23077
23078         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23079
23080 2010-03-21  Bruno Haible  <bruno@clisp.org>
23081
23082         Tests for module 'login_tty'.
23083         * modules/login_tty-tests: New file.
23084         * tests/test-login_tty.c: New file.
23085
23086         New module 'login_tty'.
23087         * lib/login_tty.c: New file.
23088         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23089         * modules/login_tty: New file.
23090         * doc/glibc-functions/login_tty.texi: Mention the new module.
23091
23092 2010-03-21  Bruno Haible  <bruno@clisp.org>
23093
23094         login_tty: Documentation.
23095         * doc/glibc-functions/login_tty.texi: New file.
23096         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23097
23098 2010-03-21  Bruno Haible  <bruno@clisp.org>
23099
23100         pty: Consistent macro naming.
23101         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23102         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23103         * modules/pty (configure.ac): Update.
23104
23105 2010-03-21  Bruno Haible  <bruno@clisp.org>
23106
23107         Tests for openpty: Make stricter.
23108         * tests/test-openpty.c (main): Add test of canonical processing and
23109         erase.
23110         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23111
23112         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23113         * lib/openpty.c (openpty): New replacement function.
23114         * lib/pty.in.h: Include <termios.h>.
23115         (openpty): Update declaration. Add comments.
23116         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23117         is not declared, arrange to provide the replacement. Check for _getpty
23118         and posix_openpt.
23119         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23120         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23121         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23122         * modules/pty-tests (test_pty_c___LDADD): New variable.
23123         * doc/glibc-functions/openpty.texi: More supported platforms.
23124
23125 2010-03-21  Bruno Haible  <bruno@clisp.org>
23126
23127         setenv: Tweaks.
23128         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23129         the test program.
23130         * doc/posix-functions/setenv.texi: Update platforms list.
23131
23132 2010-03-21  Bruno Haible  <bruno@clisp.org>
23133
23134         New module 'unlockpt'.
23135         * lib/unlockpt.c: New file, from glibc with modifications.
23136         * m4/unlockpt.m4: New file.
23137         * modules/unlockpt: New file.
23138         * lib/stdlib.in.h (unlockpt): New declaration.
23139         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23140         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23141         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23142         HAVE_UNLOCKPT.
23143         * doc/posix-functions/unlockpt.texi: Mention the new module.
23144         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23145         * config/srclist.txt: Add unlockpt.c (commented).
23146
23147 2010-03-21  Jim Meyering  <meyering@redhat.com>
23148
23149         maint.mk: prohibit inclusion of "intprops.h" without use
23150         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23151
23152 2010-03-21  Bruno Haible  <bruno@clisp.org>
23153
23154         New module 'grantpt'.
23155         * lib/grantpt.c: New file, from glibc with modifications.
23156         * m4/grantpt.m4: New file.
23157         * modules/grantpt: New file.
23158         * lib/stdlib.in.h (grantpt): New declaration.
23159         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23160         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23161         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23162         HAVE_GRANTPT.
23163         * doc/posix-functions/grantpt.texi: Mention the new module.
23164         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23165         * config/srclist.txt: Add grantpt.c (commented).
23166
23167 2010-03-21  Bruno Haible  <bruno@clisp.org>
23168
23169         New module 'pt_chown'.
23170         * lib/pt_chown.c: New file, from glibc with modifications.
23171         * lib/pty-private.h: New file, from glibc with modifications.
23172         * modules/pt_chown: New file.
23173         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23174
23175 2010-03-21  Bruno Haible  <bruno@clisp.org>
23176
23177         Tests for module 'ptsname'.
23178         * modules/ptsname-tests: New file.
23179         * tests/test-ptsname.c: New file.
23180
23181         New module 'ptsname'.
23182         * lib/ptsname.c: New file, from glibc with modifications.
23183         * m4/ptsname.m4: New file.
23184         * modules/ptsname: New file.
23185         * lib/stdlib.in.h (ptsname): New declaration.
23186         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23187         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23188         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23189         HAVE_PTSNAME.
23190         * doc/posix-functions/ptsname.texi: Mention the new module.
23191         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23192         * config/srclist.txt: Add ptsname.c (commented).
23193
23194 2010-03-21  Bruno Haible  <bruno@clisp.org>
23195
23196         Tests for module 'ttyname_r'.
23197         * modules/ttyname_r-tests: New file.
23198         * tests/test-ttyname_r.c: New file.
23199
23200         New module 'ttyname_r'.
23201         * lib/ttyname_r.c: New file.
23202         * m4/ttyname_r.m4: New file.
23203         * modules/ttyname_r: New file.
23204         * lib/unistd.in.h (ttyname_r): New declaration.
23205         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23206         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23207         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23208         HAVE_TTYNAME_R.
23209         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23210         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23211
23212 2010-03-20  Bruno Haible  <bruno@clisp.org>
23213
23214         signal: Undefine macro definitions in C++ mode.
23215         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23216         sigfillset): Undefine macro definitions from the system header in C++
23217         mode.
23218         Reported by John W. Eaton <jwe@gnu.org>.
23219
23220 2010-03-20  Bruno Haible  <bruno@clisp.org>
23221
23222         Ensure no #include statements inside extern "C" { ... }.
23223         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23224         contain #include statements.
23225         * lib/time.in.h: Likewise.
23226
23227 2010-03-20  Bruno Haible  <bruno@clisp.org>
23228
23229         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23230         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23231         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23232         Reported by John W. Eaton <jwe@gnu.org>.
23233
23234 2010-03-20  Bruno Haible  <bruno@clisp.org>
23235
23236         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23237         Reported by Jim Meyering.
23238
23239 2010-03-20  Bruno Haible  <bruno@clisp.org>
23240
23241         pipe: Set errno upon failure.
23242         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23243         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23244         errno value in error message.
23245
23246 2010-03-20  Bruno Haible  <bruno@clisp.org>
23247             Jim Meyering  <meyering@redhat.com>
23248
23249         lchown: Avoid "unused variable" warning.
23250         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23251
23252 2010-03-20  Bruno Haible  <bruno@clisp.org>
23253
23254         Work around unlink() bug on MacOS X 10.5.6.
23255         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23256         attempting to unlink a parent directory.
23257         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23258         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23259         activate for the replacement function.
23260         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23261
23262 2010-03-20  Bruno Haible  <bruno@clisp.org>
23263
23264         Fix link errors on Solaris 8.
23265         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23266         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23267
23268 2010-03-19  Jim Meyering  <meyering@redhat.com>
23269
23270         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23271         The _LIBC implementation of build_range_exp correctly honors the
23272         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23273         However, the non-_LIBC implementation would ignore that syntax-bit
23274         flag and return REG_ERANGE unconditionally.
23275         This change makes it honor that flag.
23276         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23277         Make two pointer parameters "const".
23278         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23279         (parse_bracket_exp): Update caller.
23280
23281         regex.m4: correct the reversed range endpoint ([b-a]) test
23282         * m4/regex.m4: When requiring that [b-a] evoke failure,
23283         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23284         test pass once again for x86-based systems.
23285
23286 2010-03-19  Bruno Haible  <bruno@clisp.org>
23287
23288         scandir: Fix link error on Solaris 8.
23289         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23290         macros.
23291
23292 2010-03-19  Bruno Haible  <bruno@clisp.org>
23293
23294         getusershell: Fix documentation.
23295         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23296         module.
23297         * doc/glibc-functions/setusershell.texi: Likewise.
23298
23299         getusershell: Provide declaration, missing on Solaris 9.
23300         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23301         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23302         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23303         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23305         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23306         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23307         HAVE_GETUSERSHELL.
23308         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23309
23310 2010-03-19  Bruno Haible  <bruno@clisp.org>
23311
23312         wctype: Provide iswblank function.
23313         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23314         exists and is fine.
23315         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23316         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23317         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23318         * doc/posix-functions/iswblank.texi: Update.
23319
23320 2010-03-19  Bruno Haible  <bruno@clisp.org>
23321
23322         Tests of module 'pty' in C++ mode.
23323         * modules/pty-tests: New file.
23324         * tests/test-pty-c++.cc: New file.
23325         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23326
23327 2010-03-19  Eric Blake  <eblake@redhat.com>
23328
23329         logb: fix documentation
23330         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23331         1.5 declaration bug.
23332
23333         forkpty, openpty: prefer glibc's const-safe prototype
23334         * lib/forkpty.c (rpl_forkpty): New file.
23335         * lib/openpty.c (rpl_openpty): Likewise.
23336         * modules/forkpty (Files): Distribute it.
23337         * modules/openpty (Files): Likewise.
23338         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23339         check...
23340         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23341         replacement for for non-const BSD signature.
23342         * modules/pty (Makefile.am): Substitute witnesses.
23343         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23344         * tests/test-forkpty.c: Update signature check.
23345         * tests/test-openpty.c: Likewise.
23346         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23347         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23348
23349         forkpty, openpty: split functions into new modules
23350         * modules/pty (Makefile.am): Substitute new witnesses.
23351         (Libraries): Move library detection...
23352         * modules/forkpty: ...into new module.
23353         * modules/openpty: Another new module.
23354         * modules/pty-tests: Rename and split...
23355         * modules/forkpty-tests: ...to this...
23356         * modules/openpty-tests: ...and this.
23357         * tests/test-pty.c: Rename and split...
23358         * tests/test-forkpty.c: ...to this...
23359         * tests/test-openpty.c: ...and this.
23360         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23361         (gl_PTY): Split library searching...
23362         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23363         (gl_FORKPTY, gl_OPENPTY): New macros.
23364         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23365         * NEWS: Mention the split.
23366         * MODULES.html.sh (Misc): Document the modules.
23367         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23368         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23369
23370         pty: improve replacement header
23371         * lib/pty.in.h: New file.
23372         * modules/pty (Files): Ship it.
23373         (Makefile.am): Always build replacement.
23374         * m4/pty.m4: Rename...
23375         * m4/pty_h.m4: ...to this.
23376         (gl_PTY): Modernize setting of witness macros; update check of
23377         forkpty to take proper advantage of cache.
23378         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23379
23380         getopt: avoid compiler warning
23381         * lib/getopt.c (attribute_hidden): Remove unused macro.
23382
23383 2010-03-18  Bruno Haible  <bruno@clisp.org>
23384
23385         Fix link errors on Solaris 8.
23386         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23387         * modules/search-tests (test_search_c___LDADD): Likewise.
23388         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23389         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23390         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23391         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23392         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23393         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23394         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23395
23396 2010-03-18  Bruno Haible  <bruno@clisp.org>
23397
23398         Fix bug introduced on 2010-03-14.
23399         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23400         (gl_SPAWN_H): Require it.
23401         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23402         Reported by Simon Josefsson.
23403
23404 2010-03-18  Bruno Haible  <bruno@clisp.org>
23405
23406         Fix typo introduced on 2009-12-31.
23407         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23408         posix_spawn_file_actions_adddup2.
23409
23410 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23411         and Eric Blake  <eblake@redhat.com>
23412
23413         test-vc-list-files-git: make more robust
23414         * tests/test-vc-list-files-git.sh: Unset problematic environment
23415         variables.  Chain commands together.
23416
23417 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23418
23419         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23420         `AC_CHECK_DECL' invocation.
23421
23422 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23423
23424         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23425         appears before executable statements. Suggested by Petr Sumbera
23426         <Petr.Sumbera@Sun.COM>.
23427
23428 2010-03-14  Bruno Haible  <bruno@clisp.org>
23429
23430         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23431         portability problems. Instead use a simpler test.
23432         (main): Check that invalid arguments are rejected only on Linux.
23433
23434 2010-03-14  Bruno Haible  <bruno@clisp.org>
23435
23436         Fix bug introduced on 2009-12-31.
23437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23438         gl_PREREQ_SYS_H_WINSOCK2 always.
23439         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23440         SYS_SOCKET_H variable.
23441         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23442         Update comments.
23443         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23444         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23445         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23447         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23448
23449 2010-03-14  Bruno Haible  <bruno@clisp.org>
23450
23451         Fix values returned by sinl, cosl.
23452         * lib/trigl.h: Add specification comments.
23453         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23454         that combines the values from the precomputed table with the values of
23455         the Chebyshev polynomials.
23456
23457 2010-03-14  Bruno Haible  <bruno@clisp.org>
23458
23459         Fix compilation error when modules 'posix_spawn[p]' are not used.
23460         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23461         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23462
23463 2010-03-14  Bruno Haible  <bruno@clisp.org>
23464
23465         Fix compilation error on mingw when module 'time_r' is not used.
23466         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23467         is 1.
23468         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23469         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23470         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23471         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23472
23473 2010-03-14  Bruno Haible  <bruno@clisp.org>
23474
23475         Fix compilation error with Sun C.
23476         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23477         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23478         instead of GCC specific ULONG_LONG_MAX.
23479         * lib/xstrtoll.c: Likewise.
23480         * lib/xstrtoull.c: Likewise.
23481
23482 2010-03-13  Bruno Haible  <bruno@clisp.org>
23483
23484         Allow the user to disable C++ code and tests.
23485         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23486         (gl_PROG_ANSI_CXX): Require it.
23487
23488 2010-03-13  Bruno Haible  <bruno@clisp.org>
23489
23490         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23491         cases.
23492
23493 2010-03-13  Bruno Haible  <bruno@clisp.org>
23494
23495         Test that gnulib does not break the standard C++ headers.
23496         * tests/test-locale-c++2.cc: New file.
23497         * modules/locale-tests (Files): Add it.
23498         (Makefile.am): Compile it for test-locale-c++.
23499         * tests/test-math-c++2.cc: New file.
23500         * modules/math-tests (Files): Add it.
23501         (Makefile.am): Compile it for test-math-c++.
23502         * tests/test-signal-c++2.cc: New file.
23503         * modules/signal-tests (Files): Add it.
23504         (Makefile.am): Compile it for test-signal-c++.
23505         * tests/test-stdio-c++2.cc: New file.
23506         * modules/stdio-tests (Files): Add it.
23507         (Makefile.am): Compile it for test-stdio-c++.
23508         * tests/test-stdlib-c++2.cc: New file.
23509         * modules/stdlib-tests (Files): Add it.
23510         (Makefile.am): Compile it for test-stdlib-c++.
23511         * tests/test-string-c++2.cc: New file.
23512         * modules/string-tests (Files): Add it.
23513         (Makefile.am): Compile it for test-string-c++.
23514         * tests/test-time-c++2.cc: New file.
23515         * modules/time-tests (Files): Add it.
23516         (Makefile.am): Compile it for test-time-c++.
23517         Reported by John W. Eaton <jwe@gnu.org>.
23518
23519 2010-03-13  Bruno Haible  <bruno@clisp.org>
23520
23521         * gnulib-tool (func_usage): Clarify which options are available for
23522         --create-testdir and --create-megatestdir.
23523
23524 2010-03-13  Bruno Haible  <bruno@clisp.org>
23525
23526         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23527         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23528         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23529         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23530         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23531         when appropriate.
23532         Reported by Jim Meyering.
23533
23534 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23535
23536         * gnulib-tool (func_import): Explain origin of code.
23537
23538 2010-03-12  Bruno Haible  <bruno@clisp.org>
23539
23540         Fix problem with automake's definition of CXXLINK.
23541         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23542         Reported by Simon Josefsson and Ludovic Courtès.
23543
23544 2010-03-12  Bruno Haible  <bruno@clisp.org>
23545
23546         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23547         stable releases.
23548
23549 2010-03-11  Bruno Haible  <bruno@clisp.org>
23550
23551         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23552         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23553         whether the system provides one variant or multiple variants of the
23554         function.
23555         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23556         C++ compilers.
23557         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23558         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23559         Reported by Jim Meyering.
23560
23561 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23562
23563         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23564
23565 2010-03-08  Bruno Haible  <bruno@clisp.org>
23566
23567         gnulib-tool: Add support for --libtool in --create-testdir.
23568         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23569         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23570
23571 2010-03-08  Eric Blake  <eblake@redhat.com>
23572
23573         gnulib-tool.texi: mention possibility of git submodule
23574         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23575         submodules.
23576         * doc/.gitignore: Ignore another generated file.
23577
23578 2010-03-08  Karl Berry  <karl@gnu.org>
23579
23580         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23581         of committing gnulib files while skipping others.
23582
23583 2010-03-07  Bruno Haible  <bruno@clisp.org>
23584
23585         Tests of module 'wctype' in C++ mode.
23586         * tests/test-wctype-c++.cc: New file.
23587         * modules/wctype-tests (Files): Add it and tests/signature.h.
23588         (Depends-on): Add ansi-c++-opt.
23589         (Makefile.am): Arrange to compile and run test-wctype-c++.
23590
23591         Tests of module 'wchar' in C++ mode.
23592         * tests/test-wchar-c++.cc: New file.
23593         * modules/wchar-tests (Files): Add it and tests/signature.h.
23594         (Depends-on): Add ansi-c++-opt.
23595         (Makefile.am): Arrange to compile and run test-wchar-c++.
23596         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23597         gl_MODULE_INDICATOR.
23598
23599         Tests of module 'unistd' in C++ mode.
23600         * tests/test-unistd-c++.cc: New file.
23601         * modules/unistd-tests (Files): Add it and tests/signature.h.
23602         (Depends-on): Add ansi-c++-opt.
23603         (Makefile.am): Arrange to compile and run test-unistd-c++.
23604         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23605         gl_MODULE_INDICATOR.
23606
23607         Tests of module 'time' in C++ mode.
23608         * tests/test-time-c++.cc: New file.
23609         * modules/time-tests (Files): Add it and tests/signature.h.
23610         (Depends-on): Add ansi-c++-opt.
23611         (Makefile.am): Arrange to compile and run test-time-c++.
23612         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23613
23614         Tests of module 'sys_time' in C++ mode.
23615         * tests/test-sys_time-c++.cc: New file.
23616         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23617         (Depends-on): Add ansi-c++-opt.
23618         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23619         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23620         gl_MODULE_INDICATOR.
23621
23622         Tests of module 'sys_stat' in C++ mode.
23623         * tests/test-sys_stat-c++.cc: New file.
23624         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23625         (Depends-on): Add ansi-c++-opt.
23626         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23627         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23628         gl_MODULE_INDICATOR.
23629
23630         Tests of module 'sys_socket' in C++ mode.
23631         * tests/test-sys_socket-c++.cc: New file.
23632         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23633         (Depends-on): Add ansi-c++-opt.
23634         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23635         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23636         gl_MODULE_INDICATOR.
23637
23638         Tests of module 'sys_select' in C++ mode.
23639         * tests/test-sys_select-c++.cc: New file.
23640         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23641         (Depends-on): Add ansi-c++-opt.
23642         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23643         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23644         gl_MODULE_INDICATOR.
23645
23646         Tests of module 'sys_ioctl' in C++ mode.
23647         * tests/test-sys_ioctl-c++.cc: New file.
23648         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23649         (Depends-on): Add ansi-c++-opt.
23650         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23651         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23652         gl_MODULE_INDICATOR.
23653
23654         Tests of module 'string' in C++ mode.
23655         * tests/test-string-c++.cc: New file.
23656         * modules/string-tests (Files): Add it and tests/signature.h.
23657         (Depends-on): Add ansi-c++-opt.
23658         (Makefile.am): Arrange to compile and run test-string-c++.
23659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23660         gl_MODULE_INDICATOR.
23661
23662         Tests of module 'stdlib' in C++ mode.
23663         * tests/test-stdlib-c++.cc: New file.
23664         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23665         (Depends-on): Add ansi-c++-opt.
23666         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23667         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23668         gl_MODULE_INDICATOR.
23669
23670         Tests of module 'stdio' in C++ mode.
23671         * tests/test-stdio-c++.cc: New file.
23672         * modules/stdio-tests (Files): Add it and tests/signature.h.
23673         (Depends-on): Add ansi-c++-opt.
23674         (Makefile.am): Arrange to compile and run test-stdio-c++.
23675         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23676         gl_MODULE_INDICATOR.
23677
23678         Tests of module 'spawn' in C++ mode.
23679         * tests/test-spawn-c++.cc: New file.
23680         * modules/spawn-tests (Files): Add it and tests/signature.h.
23681         (Depends-on): Add ansi-c++-opt.
23682         (Makefile.am): Arrange to compile and run test-spawn-c++.
23683         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23684         gl_MODULE_INDICATOR.
23685
23686         Tests of module 'signal' in C++ mode.
23687         * tests/test-signal-c++.cc: New file.
23688         * modules/signal-tests (Files): Add it and tests/signature.h.
23689         (Depends-on): Add ansi-c++-opt.
23690         (Makefile.am): Arrange to compile and run test-signal-c++.
23691         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23692         gl_MODULE_INDICATOR.
23693
23694         Tests of module 'search' in C++ mode.
23695         * tests/test-search-c++.cc: New file.
23696         * modules/search-tests (Files): Add it and tests/signature.h.
23697         (Depends-on): Add ansi-c++-opt.
23698         (Makefile.am): Arrange to compile and run test-search-c++.
23699         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23700         gl_MODULE_INDICATOR.
23701
23702         Tests of module 'math' in C++ mode.
23703         * tests/test-math-c++.cc: New file.
23704         * modules/math-tests (Files): Add it and tests/signature.h.
23705         (Depends-on): Add ansi-c++-opt.
23706         (Makefile.am): Arrange to compile and run test-math-c++.
23707         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23708
23709         Tests of module 'locale' in C++ mode.
23710         * tests/test-locale-c++.cc: New file.
23711         * modules/locale-tests (Files): Add it and tests/signature.h.
23712         (Depends-on): Add ansi-c++-opt.
23713         (Makefile.am): Arrange to compile and run test-locale-c++.
23714         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23715         gl_MODULE_INDICATOR.
23716
23717         Tests of module 'langinfo' in C++ mode.
23718         * tests/test-langinfo-c++.cc: New file.
23719         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23720         (Depends-on): Add ansi-c++-opt.
23721         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23722         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23723         gl_MODULE_INDICATOR.
23724
23725         Tests of module 'iconv-h' in C++ mode.
23726         * tests/test-iconv-h-c++.cc: New file.
23727         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23728         (Depends-on): Add ansi-c++-opt.
23729         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23730
23731         Tests of module 'glob' in C++ mode.
23732         * tests/test-glob-c++.cc: New file.
23733         * modules/glob-tests (Files): Add it.
23734         (Depends-on): Add ansi-c++-opt.
23735         (Makefile.am): Arrange to compile and run test-glob-c++.
23736
23737         Tests of module 'fcntl-h' in C++ mode.
23738         * tests/test-fcntl-h-c++.cc: New file.
23739         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23740         (Depends-on): Add ansi-c++-opt.
23741         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23742         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23743         gl_MODULE_INDICATOR.
23744
23745         Tests of module 'dirent' in C++ mode.
23746         * tests/test-dirent-c++.cc: New file.
23747         * modules/dirent-tests (Files): Add it and tests/signature.h.
23748         (Depends-on): Add ansi-c++-opt.
23749         (Makefile.am): Arrange to compile and run test-dirent-c++.
23750         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23751         gl_MODULE_INDICATOR.
23752
23753         New module 'ansi-c++-opt'.
23754         * modules/ansi-c++-opt: New file.
23755         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23756
23757         Document C++ namespace mode.
23758         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23759
23760         wctype: Avoid #define replacements in C++ mode.
23761         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23762         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23763         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23764         In C++, define a namespaced alias symbol.
23765         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23766         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23767         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23768         rule.
23769
23770         wchar: Avoid #define replacements in C++ mode.
23771         * lib/wchar.in.h: Include c++defs.h.
23772         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23773         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23774         symbol.
23775         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23776         * modules/wchar (Depends-on): Add c++defs.
23777         (Makefile.am): Update wchar.h rule.
23778
23779         unistd: Avoid #define replacements in C++ mode.
23780         * lib/unistd.in.h: Include c++defs.h.
23781         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23782         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23783         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23784         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23785         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23786         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23787         symbol.
23788         (environ): Update.
23789         * modules/unistd (Depends-on): Add c++defs.
23790         (Makefile.am): Update unistd.h rule.
23791
23792         time: Avoid #define replacements in C++ mode.
23793         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23794         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23795         define a namespaced alias symbol.
23796         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23797         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23798         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23799         * modules/time (Depends-on): Add c++defs, warn-on-use.
23800         (Makefile.am): Update time.h rule.
23801         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23802         * modules/nanosleep (configure.ac): Likewise.
23803         * modules/strptime (configure.ac): Likewise.
23804         * modules/timegm (configure.ac): Likewise.
23805
23806         sys_time: Avoid #define replacements in C++ mode.
23807         * lib/sys_time.in.h: Include c++defs.h.
23808         (gettimeofday): In C++, define a namespaced alias symbol.
23809         * modules/sys_time (Depends-on): Add c++defs.
23810         (Makefile.am): Update sys/time.h rule.
23811
23812         sys_stat: Avoid #define replacements in C++ mode.
23813         * lib/sys_stat.in.h: Include c++defs.h.
23814         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23815         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23816         namespaced alias symbol.
23817         In C++, define a namespaced alias symbol.
23818         * modules/sys_stat (Depends-on): Add c++defs.
23819         (Makefile.am): Update sys/stat.h rule.
23820
23821         sys_socket: Avoid #define replacements in C++ mode.
23822         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23823         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23824         definitions also when the system has a <sys/socket.h>.
23825         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23826         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23827         In C++, define a namespaced alias symbol.
23828         * modules/sys_socket (Depends-on): Add c++defs.
23829         (Makefile.am): Update sys/socket.h rule.
23830
23831         sys_select: Avoid #define replacements in C++ mode.
23832         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23833         definitions also when the system has a <sys/select.h>.
23834         (select): In C++, define a namespaced alias symbol.
23835         * modules/sys_select (Depends-on): Add c++defs.
23836         (Makefile.am): Update sys/select.h rule.
23837
23838         sys_ioctl: Avoid #define replacements in C++ mode.
23839         * lib/sys_ioctl.in.h: Include c++defs.h.
23840         (ioctl): In C++, define a namespaced alias symbol.
23841         * modules/sys_ioctl (Depends-on): Add c++defs.
23842         (Makefile.am): Update sys/ioctl.h rule.
23843
23844         string: Avoid #define replacements in C++ mode.
23845         * lib/string.in.h: Include c++defs.h.
23846         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23847         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23848         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23849         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23850         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23851         * modules/string (Depends-on): Add c++defs.
23852         (Makefile.am): Update string.h rule.
23853
23854         stdlib: Avoid #define replacements in C++ mode.
23855         * lib/stdlib.in.h: Include c++defs.h.
23856         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23857         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23858         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23859         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23860         symbol.
23861         * modules/stdlib (Depends-on): Add c++defs.
23862         (Makefile.am): Update stdlib.h rule.
23863
23864         stdio: Avoid #define replacements in C++ mode.
23865         * lib/stdio.in.h: Include c++defs.h.
23866         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23867         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23868         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23869         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23870         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23871         namespaced alias symbol.
23872         * modules/stdio (Depends-on): Add c++defs.
23873         (Makefile.am): Update stdio.h rule.
23874
23875         spawn: Avoid #define replacements in C++ mode.
23876         * lib/spawn.in.h: Include c++defs.h.
23877         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23878         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23879         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23880         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23881         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23882         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23883         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23884         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23885         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23886         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23887         In C++, define a namespaced alias symbol.
23888         * modules/spawn (Depends-on): Add c++defs.
23889         (Makefile.am): Update spawn.h rule.
23890
23891         signal: Avoid #define replacements in C++ mode.
23892         * lib/signal.in.h: Include c++defs.h.
23893         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23894         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23895         namespaced alias symbol.
23896         * modules/signal (Depends-on): Add c++defs.
23897         (Makefile.am): Update signal.h rule.
23898
23899         search: Avoid #define replacements in C++ mode.
23900         * lib/search.in.h: Include c++defs.h.
23901         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23902         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23903         symbol.
23904         * modules/search (Depends-on): Add c++defs.
23905         (Makefile.am): Update search.h rule.
23906
23907         math: Avoid #define replacements in C++ mode.
23908         * lib/math.in.h: Include c++defs.h.
23909         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23910         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23911         trunc, truncl): In C++, define a namespaced alias symbol.
23912         * modules/math (Depends-on): Add c++defs.
23913         (Makefile.am): Update math.h rule.
23914
23915         locale: Avoid #define replacements in C++ mode.
23916         * lib/locale.in.h: Include c++defs.h.
23917         (duplocale): In C++, define a namespaced alias symbol.
23918         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23919         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23920         * modules/locale (Depends-on): Add c++defs.
23921         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23922
23923         langinfo: Avoid #define replacements in C++ mode.
23924         * lib/langinfo.in.h: Include c++defs.h.
23925         (nl_langinfo): In C++, define a namespaced alias symbol.
23926         * modules/langinfo (Depends-on): Add c++defs.
23927         (Makefile.am): Update langinfo.h rule.
23928
23929         iconv-h: Avoid #define replacements in C++ mode.
23930         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23931         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23932         symbol.
23933         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23934         whenever iconv is present.
23935         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23936         (Makefile.am): Update iconv.h rule.
23937
23938         glob: Avoid #define replacements in C++ mode.
23939         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23940         (_gl_glob_errfunc_fn): New type.
23941         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23942         symbol.
23943         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23944         (Makefile.am): Update glob.h rule.
23945
23946         fcntl-h: Avoid #define replacements in C++ mode.
23947         * lib/fcntl.in.h: Include c++defs.h.
23948         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23949         * modules/fcntl-h (Depends-on): Add c++defs.
23950         (Makefile.am): Update fcntl.h rule.
23951
23952         dirent: Avoid #define replacements in C++ mode.
23953         * lib/dirent.in.h: Include c++defs.h.
23954         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23955         namespaced alias symbol.
23956         (dirfd): Update declaration.
23957         * modules/dirent (Depends-on): Add c++defs.
23958         (Makefile.am): Update dirent.h rule.
23959
23960         ctype: Make it usable in C++ code.
23961         * lib/ctype.in.h: Include c++defs.h.
23962         (isblank): Declare as extern "C".
23963         * modules/ctype (Depends-on): Add c++defs.
23964         (Makefile.am): Update ctype.h rule.
23965
23966         New module 'c++defs'.
23967         * modules/c++defs: New file.
23968         * build-aux/c++defs.h: New file.
23969         Reported by John W. Eaton <jwe@gnu.org>.
23970
23971 2010-03-07  Bruno Haible  <bruno@clisp.org>
23972
23973         logb: Provide missing declaration for Cygwin.
23974         * lib/math.in.h (logb): New declaration.
23975         * m4/logb.m4: New file.
23976         * modules/logb (Files): Add m4/logb.m4.
23977         (Depends-on): Add math.
23978         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23979         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23981         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23982         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23983
23984 2010-03-07  Bruno Haible  <bruno@clisp.org>
23985
23986         Fix test-cond link error.
23987         * tests/test-cond.c: Include <stdio.h>.
23988
23989 2010-03-07  Bruno Haible  <bruno@clisp.org>
23990
23991         Fix test-dirent-safer link error.
23992         * modules/dirent-safer-tests (Makefile.am): Define
23993         test_dirent_safer_LDADD.
23994
23995 2010-03-07  Bruno Haible  <bruno@clisp.org>
23996
23997         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23998         among default module list.
23999
24000 2010-03-07  Bruno Haible  <bruno@clisp.org>
24001
24002         Fix link error on platforms with GNU libiconv.
24003         * modules/unistr/u8-strcoll-tests (Makefile): Define
24004         test_u8_strcoll_LDADD.
24005         * modules/unistr/u16-strcoll-tests (Makefile): Define
24006         test_u16_strcoll_LDADD.
24007         * modules/unistr/u32-strcoll-tests (Makefile): Define
24008         test_u32_strcoll_LDADD.
24009
24010 2010-03-07  Bruno Haible  <bruno@clisp.org>
24011
24012         Use POSIX declarations for socket functions.
24013         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24014         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24015         rpl_sendto): Change declaration to match POSIX.
24016         * lib/connect.c (rpl_connect): Likewise.
24017         * lib/accept.c (rpl_accept): Likewise.
24018         * lib/bind.c (rpl_bind): Likewise.
24019         * lib/getpeername.c (rpl_getpeername): Likewise.
24020         * lib/getsockname.c (rpl_getsockname): Likewise.
24021         * lib/recv.c (rpl_recv): Likewise.
24022         * lib/send.c (rpl_send): Likewise.
24023         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24024         * lib/sendto.c (rpl_sendto): Likewise.
24025
24026 2010-03-06  Bruno Haible  <bruno@clisp.org>
24027
24028         Clarify access, euidaccess, faccessat.
24029         * doc/posix-functions/faccessat.texi: Mention security problem under
24030         "Other problems", not "Portability problems".
24031         * doc/posix-functions/access.texi: Likewise. Mention a related security
24032         problem.
24033         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24034         * lib/euidaccess.c: Add comments about platforms.
24035         * lib/unistd.in.h (access, euidaccess): Add warnings.
24036
24037 2010-03-07  Bruno Haible  <bruno@clisp.org>
24038
24039         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24040         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24041         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24042         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24043         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24044         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24045         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24046         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24047         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24048         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24049         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24050         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24051         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24052         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24053         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24054         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24055         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24056         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24057         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24058         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24059         Likewise.
24060         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24061         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24062         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24063         Likewise.
24064         * tests/test-spawn.c (main): Make it work when
24065         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24066
24067 2010-03-07  Bruno Haible  <bruno@clisp.org>
24068
24069         Fix incorrect Makefile.am generation in German locale.
24070         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24071         Execute sed command with character range in C locale.
24072
24073 2010-03-06  Bruno Haible  <bruno@clisp.org>
24074
24075         Tests for module 'iconv-h'.
24076         * modules/iconv-h-tests: New file.
24077         * tests/test-iconv-h.c: New file.
24078
24079         New module 'iconv-h'.
24080         * modules/iconv-h: New file.
24081         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24082         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24083         (configure.ac): Remove gl_ICONV_H.
24084         (Makefile.am): Remove rule for iconv.h.
24085
24086 2010-03-06  Bruno Haible  <bruno@clisp.org>
24087
24088         More consistent naming of *.m4 files.
24089         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24090         * modules/wctype (Files): Update.
24091
24092         More consistent naming of *.m4 files.
24093         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24094         * modules/wchar (Files): Update.
24095
24096 2010-03-06  Jim Meyering  <meyering@redhat.com>
24097
24098         euidaccess: relax license to LGPLv2+
24099         * modules/euidaccess (License): Relax to LGPLv2+.
24100
24101 2010-03-06  Bruno Haible  <bruno@clisp.org>
24102
24103         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24104         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24105         (Makefile.am): Augment lib_SOURCES instead.
24106
24107 2010-03-04  Jim Meyering  <meyering@redhat.com>
24108
24109         utime: remove obsolete module
24110         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24111         unnecessary for years, and has been marked as obsolete for 10 months.
24112         * modules/utime: Remove file.
24113         * lib/utime.c: Remove file.
24114         * m4/utime.m4: Remove file.
24115         * m4/utimes-null.m4: Remove file.
24116         * doc/posix-functions/utime.texi (utime): Remove reference to
24117         the module.  Move the sole "fixed by gnulib" item into the
24118         "problems not fixed by Gnulib" list.
24119         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24120
24121 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24122
24123         * modules/exit (License): Relax license to LGPLv2+.
24124         (Status): Mark as obsolete.
24125         * NEWS: Mention deprecated 'exit' module.
24126         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24127         of now obsolete 'exit'.
24128
24129 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24130
24131         fts-lgpl: remove unused module
24132         * modules/fts-lgpl: Remove.
24133         * MODULES.html.sh (func_all_modules): Adjust.
24134         * check-module (find_included_lib_files): Adjust.
24135         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24136
24137 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24138
24139         copy-acl: enhance Solaris ACL error handling
24140         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24141         * lib/set-mode-acl.c (qset_acl): Likewise.
24142
24143 2010-03-02  Bruno Haible  <bruno@clisp.org>
24144
24145         spawn: Don't override the system defined values on FreeBSD 8.
24146         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24147         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24148         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24149         if HAVE_POSIX_SPAWN is 1.
24150         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24151
24152 2010-03-01  Bruno Haible  <bruno@clisp.org>
24153
24154         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24155         regarding Automake.
24156
24157 2010-02-25  Bruno Haible  <bruno@clisp.org>
24158
24159         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24160         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24161         setting, not afterwards.
24162         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24163
24164 2010-02-24  Eric Blake  <eblake@redhat.com>
24165
24166         bootstrap, git-version-gen: use timestamp
24167         * build-aux/git-version-gen (scriptversion): Force UTC.
24168         * build-aux/bootstrap (scriptversion): New variable.
24169
24170         bootstrap: allow older git
24171         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24172         older than 1.6.4.  Requested by the libvirt project.
24173
24174 2010-02-23  Eric Blake  <eblake@redhat.com>
24175
24176         warn-on-use: work with old autoconf
24177         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24178         AS_VAR semantics of autoconf 2.60.
24179         Reported by Bruno Haible.
24180
24181         bootstrap: improve some comments
24182         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24183         clarification comments.
24184
24185         gettimeofday: provide correct function
24186         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24187         when replacement is declared, otherwise provide gettimeofday.
24188         Reported by Michael Goffioul.
24189
24190 2010-02-23  Jim Meyering  <meyering@redhat.com>
24191
24192         lib-ignore: relax license to "unlimited", not LGPLv2+
24193         * modules/lib-ignore (License): Relax to "unlimited".
24194
24195 2010-02-23  Jim Meyering  <meyering@redhat.com>
24196
24197         lib-ignore: relax license to LGPLv2+
24198         * modules/lib-ignore (License): Relax to LGPLv2+.
24199
24200 2010-02-22  Eric Blake  <eblake@redhat.com>
24201
24202         lseek: avoid bash 3.2 broken pipe bug
24203         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24204         warning from bash 3.2.
24205         Reported by Ben Pfaff, with analysis from Bruno Haible.
24206
24207         bootstrap: support non-FSF copyright holder
24208         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24209         bootstrap.conf override of COPYRIGHT_HOLDER.
24210         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24211
24212         bootstrap: interoperate with gettext 0.14.1
24213         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24214
24215         bootstrap: allow for alternate submodule location
24216         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24217         hardcoding submodule location.
24218         (gnulib_mk): Allow direct use of Makefile.am.
24219
24220         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24221         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24222         rather than reconfiguring where the submodule points.
24223
24224         gettimeofday: restore support for platforms that lack function
24225         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24226         replacement if function is missing.
24227         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24228         * modules/sys_time (Makefile.am): Substitute it.
24229         * lib/sys_time.in.h (gettimeofday): Check it.
24230         Reported by Michael Goffioul.
24231
24232 2010-02-21  Bruno Haible  <bruno@clisp.org>
24233
24234         * lib/stdio.in.h (obstack_printf): Fix typo.
24235
24236 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24237
24238         vc-list-files: use bzr ls's -R option
24239         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24240         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24241
24242 2010-02-21  Jim Meyering  <meyering@redhat.com>
24243
24244         init.sh: fix EXEEXT shims to work also for names like test-prog
24245         * tests/init.sh: Re-exec a better shell, when needed.
24246         If the current shell lacks support for posix $(...), an init.sh-using
24247         test will now try to find a shell that supports that.  If EXEEXT is
24248         nonempty, we also require support for hyphen-in-alias-name and shell
24249         substitutions like ${var#glob}.  Failure to find such a shell results
24250         in a skipped test.
24251
24252 2010-02-21  Bruno Haible  <bruno@clisp.org>
24253
24254         Really work around around "broken pipe" error message from bash 3.2.
24255         * gnulib-tool (func_reset_sigpipe): Remove function.
24256         (echo): In bash 3.2, define to a function that uses printf.
24257         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24258
24259 2010-02-20  Bruno Haible  <bruno@clisp.org>
24260
24261         Restore support for automake 1.9.6 with autoconf 2.61.
24262         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24263         Reported by James Youngman <jay@gnu.org>.
24264
24265 2010-02-20  Bruno Haible  <bruno@clisp.org>
24266
24267         Improve *printf warning condition.
24268         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24269         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24270         and the function is overridden due to SIGPIPE emulation.
24271
24272 2010-02-20  Bruno Haible  <bruno@clisp.org>
24273
24274         * lib/stdio.in.h: Tweak comments.
24275
24276 2010-02-19  Bruno Haible  <bruno@clisp.org>
24277
24278         Make it easier to find modules. New gnulib-tool option '--find'.
24279         * gnulib-tool: New option --find.
24280         (func_usage): Document it.
24281         (func_sanitize_modulelist): New function, extracted from
24282         func_all_modules.
24283         (func_all_modules): Invoke it.
24284         * doc/gnulib-tool.texi (Which modules?): New node.
24285
24286 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24287
24288         * lib/sys_select.in.h: Provide select replacement even if
24289         sys/select.h exists on a system, for Interix.
24290
24291 2010-02-18  Jim Meyering  <meyering@redhat.com>
24292
24293         init.sh: don't use $(...) just yet
24294         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24295         to accommodate e.g., Solaris' /bin/sh.
24296
24297 2010-02-17  Bruno Haible  <bruno@clisp.org>
24298
24299         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24300         Reported by Ludovic Courtès <ludo@gnu.org>.
24301
24302 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24303
24304         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24305         linking with -lintl.
24306
24307 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24308
24309         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24310         if not provided by the system's netdb.h.  Reported by
24311         ludo@gnu.org (Ludovic Courtès).
24312
24313 2010-02-15  Jim Meyering  <meyering@redhat.com>
24314
24315         init.sh: improve portability and efficiency
24316         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24317         "dummy" in a for loop.
24318         Use '!', not '^' to select the complement of a character set used
24319         in a "case" statement.
24320         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24321         Suggestions from Eric Blake.
24322
24323         init.sh: automatically accommodate programs with the .exe suffix
24324         Automatically arrange for an invocation of "prog" to execute the
24325         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24326         may use the simpler "prog", yet still work when built on a system
24327         that requires specifying the added suffix.
24328         Do this by constructing a function named "prog" that invokes
24329         "prog.exe" for each .exe file in selected directories.
24330         * tests/init.sh (find_exe_basenames_): New function.
24331         (create_exe_shim_functions_): New function.
24332         (path_prepend_): Use it.
24333
24334         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24335         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24336         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24337
24338 2010-02-14  Jim Meyering  <meyering@redhat.com>
24339
24340         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24341         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24342         (sc_prohibit_hash_pjw_without_use): New rule.
24343
24344         maint.mk: allow the default upload destination dir to be overridden
24345         * top/maint.mk (upload_dest_dir_): Define with a default that
24346         preserves the status quo.
24347         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24348         Reported by Peter Simons.
24349
24350         maint.mk: prohibit inclusion of "hash.h" without_use
24351         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24352
24353 2010-02-10  Jim Meyering  <meyering@redhat.com>
24354
24355         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24356         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24357
24358 2010-02-09  Eric Blake  <ebb9@byu.net>
24359         and Bruno Haible  <bruno@clisp.org>
24360
24361         obstack-printf-posix: ensure declaration
24362         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24363         extracted from gl_FUNC_OBSTACK_PRINTF.
24364         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24365         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24366         Likewise.
24367         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24368         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24369         0.
24370
24371 2010-02-08  Bruno Haible  <bruno@clisp.org>
24372
24373         gnulib-tool: Fix typo in 2010-02-07 commit.
24374         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24375         Reported by Eric Blake.
24376
24377 2010-02-07  Bruno Haible  <bruno@clisp.org>
24378
24379         gnulib-tool: Fix up caching patches.
24380         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24381         option --no-cache. Use associative arrays when supported by the shell.
24382         (sed_comments): New variable.
24383         (modcache): Renamed from do_cache.
24384         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24385         abbreviate unnecessarily.
24386         (have_associative): New variable.
24387         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24388         way also for ksh and zsh.
24389         (func_init_sed_convert_to_cache_statements): New function, extracted
24390         from func_cache_lookup_module. Add support for associative arrays.
24391         Don't set the c_MODULE_cached variable here. Ignore all lines before
24392         the first field header. Remove only the final newline, not all trailing
24393         newlines. Support empty fields correctly. Limit the use of 'eval' to
24394         assignments.
24395         (func_get_description, func_get_status, func_get_notice,
24396         func_get_applicability, func_get_filelist, func_get_dependencies,
24397         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24398         func_get_automake_snippet, func_get_include_directive,
24399         func_get_link_directive, func_get_license, func_get_maintainer):
24400         Update documentation. List the unoptimized code first. Add support for
24401         associative arrays. Limit the use of 'eval' to assignments.
24402         (func_get_applicability): Undo stylistic pessimisations.
24403         (func_get_automake_snippet, func_get_include_directive): Reduce code
24404         duplication.
24405         (func_modules_transitive_closure, func_modules_add_dummy,
24406         func_modules_notice, func_modules_to_filelist, func_add_file,
24407         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24408         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24409         func_create_testdir, func_create_megatestdir): Update documentation.
24410
24411 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24412
24413         * gnulib-tool (func_cache_lookup_module): Store the module name
24414         belonging to the cache variable; error out if two different
24415         module names map to the same cache variable name.
24416
24417 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24418
24419         gnulib-tool: Make caching optional.
24420         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24421         Update matching short versions of --no-changelog.
24422         (func_usage): Update.
24423         (sed_extract_cache_prog): Renamed from ...
24424         (sed_extract_prog): ... this; revert to old extraction script.
24425         (func_get_description, func_get_status)
24426         (func_get_notice, func_get_applicability, func_get_filelist)
24427         (func_get_dependencies, func_get_autoconf_early_snippet)
24428         (func_get_autoconf_snippet, func_get_automake_snippet)
24429         (func_get_include_directive, func_get_link_directive)
24430         (func_get_license, func_get_maintainer): If $do_cache is false,
24431         use old, non-caching extraction scripts.
24432         Suggestion by Bruno Haible.
24433
24434 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24435
24436         gnulib-tool: cache module metainformation.
24437         * gnulib-tool (sed_extract_prog): Match newline before each
24438         header, and rewrite header to a shell variable suffix.
24439         (func_cache_var, func_cache_lookup_module): New functions,
24440         to turn a module name into a cache variable prefix, and to
24441         look up and cache module metainformation.
24442         (func_get_description, func_get_status)
24443         (func_get_notice, func_get_applicability, func_get_filelist)
24444         (func_get_dependencies, func_get_autoconf_early_snippet)
24445         (func_get_autoconf_snippet, func_get_automake_snippet)
24446         (func_get_include_directive, func_get_link_directive)
24447         (func_get_license, func_get_maintainer): Use
24448         func_cache_lookup_module.
24449
24450 2010-02-07  Bruno Haible  <bruno@clisp.org>
24451
24452         fnctl: Fix missing dependency.
24453         * modules/fcntl (Depends-on): Add getdtablesize.
24454         Reported by John W. Eaton <jwe@gnu.org>.
24455
24456 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24457
24458         Argp: fix recognition of short alias options.
24459
24460         * lib/argp-parse.c (convert_options): Fix improper use of
24461         `|' between character values.
24462         * tests/test-argp.c (group1_option): New alias option
24463         --read (-r).
24464         (group1_parser): Special handling for 'r'.
24465         (test15): New test case.
24466         (test_fun): Add test15.
24467         * tests/test-argp-2.sh: Update expected --help and --usage
24468         outputs.
24469
24470 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24471
24472         * tests/test-argp.c: Fix indentation.
24473
24474 2010-02-04  Eric Blake  <ebb9@byu.net>
24475
24476         gettimeofday: expose type of second argument
24477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24478         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24479         * tests/test-gettimeofday.c: Use it to silence warning.
24480         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24481         the issue.
24482
24483 2010-02-03  Jim Meyering  <meyering@redhat.com>
24484
24485         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24486         * lib/regcomp.c (TYPE_SIGNED): Define.
24487         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24488
24489         regcomp.c: avoid a new -Wshadow warning
24490         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24491
24492 2010-02-01  Jim Meyering  <meyering@redhat.com>
24493
24494         removing useless parentheses in cpp #define directives
24495         For motivation, see commit c0221df4, "define STREQ(a,b)
24496         consistently, removing useless parentheses"
24497         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24498         * lib/mountlist.c (MNT_IGNORE): Likewise.
24499         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24500
24501 2010-02-01  Eric Blake  <ebb9@byu.net>
24502
24503         sys_time: use link-warning
24504         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24505         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24506         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24507         * modules/sys_time (Depends-on): Add warn-on-use.
24508         (Makefile.am): Always build replacement.
24509         (configure.ac): Update substitutions.
24510         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24511         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24512         bother with SYS_TIME_H.
24513         * modules/gettimeofday (configure.ac): Declare indicator.
24514         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24515         in use.
24516
24517         closein-tests: silence compiler warning
24518         * tests/test-closein.c (main): Ignore fread result.
24519         * modules/closein-tests (Depends-on): Add ignore-value.
24520
24521         tests: silence warning about system return
24522         * tests/test-areadlink-with-size.c (main): Ignore system result.
24523         * tests/test-areadlink.c (main): Likewise.
24524         * tests/test-areadlinkat-with-size.c (main): Likewise.
24525         * tests/test-areadlinkat.c (main): Likewise.
24526         * tests/test-canonicalize-lgpl.c (main): Likewise.
24527         * tests/test-canonicalize.c (main): Likewise.
24528         * tests/test-chown.c (main): Likewise.
24529         * tests/test-fchownat.c (main): Likewise.
24530         * tests/test-fdutimensat.c (main): Likewise.
24531         * tests/test-fstatat.c (main): Likewise.
24532         * tests/test-futimens.c (main): Likewise.
24533         * tests/test-lchown.c (main): Likewise.
24534         * tests/test-link.c (main): Likewise.
24535         * tests/test-linkat.c (main): Likewise.
24536         * tests/test-lstat.c (main): Likewise.
24537         * tests/test-mkdir.c (main): Likewise.
24538         * tests/test-mkdirat.c (main): Likewise.
24539         * tests/test-mkfifo.c (main): Likewise.
24540         * tests/test-mkfifoat.c (main): Likewise.
24541         * tests/test-mknod.c (main): Likewise.
24542         * tests/test-readlink.c (main): Likewise.
24543         * tests/test-remove.c (main): Likewise.
24544         * tests/test-rename.c (main): Likewise.
24545         * tests/test-renameat.c (main): Likewise.
24546         * tests/test-rmdir.c (main): Likewise.
24547         * tests/test-symlink.c (main): Likewise.
24548         * tests/test-symlinkat.c (main): Likewise.
24549         * tests/test-unlink.c (main): Likewise.
24550         * tests/test-unlinkat.c (main): Likewise.
24551         * tests/test-utimens.c (main): Likewise.
24552         * tests/test-utimensat.c (main): Likewise.
24553         * modules/areadlink-tests (Depends-on): Add ignore-value.
24554         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24555         * modules/areadlinkat-tests (Depends-on): Likewise.
24556         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24557         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24558         * modules/canonicalize-tests (Depends-on): Likewise.
24559         * modules/chown-tests (Depends-on): Likewise.
24560         * modules/fdutimensat-tests (Depends-on): Likewise.
24561         * modules/futimens-tests (Depends-on): Likewise.
24562         * modules/lchown-tests (Depends-on): Likewise.
24563         * modules/link-tests (Depends-on): Likewise.
24564         * modules/linkat-tests (Depends-on): Likewise.
24565         * modules/lstat-tests (Depends-on): Likewise.
24566         * modules/mkdir-tests (Depends-on): Likewise.
24567         * modules/mkfifo-tests (Depends-on): Likewise.
24568         * modules/mkfifoat-tests (Depends-on): Likewise.
24569         * modules/mknod-tests (Depends-on): Likewise.
24570         * modules/openat-tests (Depends-on): Likewise.
24571         * modules/readlink-tests (Depends-on): Likewise.
24572         * modules/remove-tests (Depends-on): Likewise.
24573         * modules/rename-tests (Depends-on): Likewise.
24574         * modules/renameat-tests (Depends-on): Likewise.
24575         * modules/rmdir-tests (Depends-on): Likewise.
24576         * modules/symlink-tests (Depends-on): Likewise.
24577         * modules/symlinkat-tests (Depends-on): Likewise.
24578         * modules/unlink-tests (Depends-on): Likewise.
24579         * modules/utimens-tests (Depends-on): Likewise.
24580         * modules/utimensat-tests (Depends-on): Likewise.
24581
24582 2010-01-31  Bruno Haible  <bruno@clisp.org>
24583
24584         Perform the same test for many <math.h> functions.
24585         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24586         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24587         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24588         of gl_MATHFUNC.
24589         * modules/acos (configure.ac): Likewise.
24590         * modules/asin (configure.ac): Likewise.
24591         * modules/atan (configure.ac): Likewise.
24592         * modules/atan2 (configure.ac): Likewise.
24593         * modules/cbrt (configure.ac): Likewise.
24594         * modules/copysign (configure.ac): Likewise.
24595         * modules/cos (configure.ac): Likewise.
24596         * modules/cosh (configure.ac): Likewise.
24597         * modules/erf (configure.ac): Likewise.
24598         * modules/erfc (configure.ac): Likewise.
24599         * modules/exp (configure.ac): Likewise.
24600         * modules/fmod (configure.ac): Likewise.
24601         * modules/hypot (configure.ac): Likewise.
24602         * modules/j0 (configure.ac): Likewise.
24603         * modules/j1 (configure.ac): Likewise.
24604         * modules/jn (configure.ac): Likewise.
24605         * modules/lgamma (configure.ac): Likewise.
24606         * modules/log (configure.ac): Likewise.
24607         * modules/log10 (configure.ac): Likewise.
24608         * modules/log1p (configure.ac): Likewise.
24609         * modules/pow (configure.ac): Likewise.
24610         * modules/remainder (configure.ac): Likewise.
24611         * modules/sin (configure.ac): Likewise.
24612         * modules/sinh (configure.ac): Likewise.
24613         * modules/tan (configure.ac): Likewise.
24614         * modules/tanh (configure.ac): Likewise.
24615         * modules/y0 (configure.ac): Likewise.
24616         * modules/y1 (configure.ac): Likewise.
24617         * modules/yn (configure.ac): Likewise.
24618         Suggested by Paolo Bonzini.
24619
24620 2010-01-31  Bruno Haible  <bruno@clisp.org>
24621
24622         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24623
24624 2010-01-31  Bruno Haible  <bruno@clisp.org>
24625
24626         Work around getdelim() bug on FreeBSD 8.0.
24627         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24628         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24629         not work.
24630         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24631         is 1.
24632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24633         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24634         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24635         a non-zero size.
24636         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24637
24638 2010-01-31  Bruno Haible  <bruno@clisp.org>
24639
24640         Work around getline() bug on FreeBSD 8.0.
24641         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24642         and a non-zero size.
24643         * tests/test-getline.c (main): Likewise.
24644         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24645         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24646
24647 2010-01-28  Eric Blake  <ebb9@byu.net>
24648
24649         regex: fix build failure
24650         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24651         platforms.
24652
24653 2010-01-28  Jim Meyering  <meyering@redhat.com>
24654
24655         regex: do not ignore memory allocation failure
24656         * lib/regex_internal.c (create_cd_newstate): Detect
24657         re_node_set_init_copy failure.   Extracted from glibc commit
24658         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24659
24660         regex: sync more white-space changes from libc
24661         * lib/regex_internal.c: White-space only changes.
24662         * lib/regexec.c: Likewise.
24663
24664         regex: add many uses of __attribute_warn_unused_result__
24665         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24666         * lib/regexec.c: Likewise.
24667         Extracted from a messy glibc commit.
24668
24669         regcomp.c: spelling and merge-artifact from glibc
24670         * lib/regcomp.c: Merge remainder of glibc's
24671         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24672
24673         regcomp.c: sync white-space changes from glibc
24674         * lib/regcomp.c: Merge to accommodate white space
24675         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24676
24677         regcomp.c: do not ignore internal return values
24678         * lib/regcomp.c: Do not ignore internal return values.
24679         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24680         but without its white-space changes and spelling fixes.
24681
24682         regex_internal.h: define __attribute_warn_unused_result__
24683         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24684
24685         maint: add a syntax-check rule to check for vulnerable Makefile.in
24686         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24687
24688 2010-01-27  Jim Meyering  <meyering@redhat.com>
24689
24690         ncftpput-ftp: clean up spaces
24691         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24692         Remove trailing blanks.
24693
24694 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24695
24696         * build-aux/git-version-gen: Fix copyright statement.
24697         * build-aux/gnupload: Likewise.
24698         * tests/test-arcfour.c: Likewise.
24699         * tests/test-arctwo.c: Likewise.
24700         * tests/test-count-one-bits.c: Likewise.
24701         * tests/test-crc.c: Likewise.
24702         * tests/test-des.c: Likewise.
24703         * tests/test-gc-arcfour.c: Likewise.
24704         * tests/test-gc-arctwo.c: Likewise.
24705         * tests/test-gc-des.c: Likewise.
24706         * tests/test-gc-hmac-md5.c: Likewise.
24707         * tests/test-gc-hmac-sha1.c: Likewise.
24708         * tests/test-gc-md2.c: Likewise.
24709         * tests/test-gc-md4.c: Likewise.
24710         * tests/test-gc-md5.c: Likewise.
24711         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24712         * tests/test-gc-rijndael.c: Likewise.
24713         * tests/test-gc-sha1.c: Likewise.
24714         * tests/test-gc.c: Likewise.
24715         * tests/test-gethostname.c: Likewise.
24716         * tests/test-gettimeofday.c: Likewise.
24717         * tests/test-hash.c: Likewise.
24718         * tests/test-hmac-md5.c: Likewise.
24719         * tests/test-hmac-sha1.c: Likewise.
24720         * tests/test-md2.c: Likewise.
24721         * tests/test-md4.c: Likewise.
24722         * tests/test-md5.c: Likewise.
24723         * tests/test-memchr.c: Likewise.
24724         * tests/test-memchr2.c: Likewise.
24725         * tests/test-memcmp.c: Likewise.
24726         * tests/test-memmem.c: Likewise.
24727         * tests/test-memrchr.c: Likewise.
24728         * tests/test-rawmemchr.c: Likewise.
24729         * tests/test-read-file.c: Likewise.
24730         * tests/test-rijndael.c: Likewise.
24731         * tests/test-sockets.c: Likewise.
24732         * tests/test-strchrnul.c: Likewise.
24733         * tests/test-strstr.c: Likewise.
24734         * tests/test-strtod.c: Likewise.
24735         * build-aux/ncftpput-ftp: Likewise.
24736
24737 2010-01-26  Eric Blake  <ebb9@byu.net>
24738
24739         ignore-value: update recommended header name
24740         * modules/ignore-value (Include): Only use <> for headers that
24741         exist in glibc.
24742
24743 2010-01-26  Jim Meyering  <meyering@redhat.com>
24744
24745         test-userspec.c: avoid compiler warnings
24746         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24747         and "initialization discards qualifiers..." warnings.
24748         Put the first "uid" in its own scope, and make char* members "const".
24749
24750 2010-01-25  Bruno Haible  <bruno@clisp.org>
24751
24752         gnulib-tool: Make warning diagnostics consistent.
24753         * gnulib-tool (func_warning): New function.
24754         Use it everywhere where gnulib-tool produces output to stderr and it is
24755         not a fatal error.
24756
24757 2010-01-25  Bruno Haible  <bruno@clisp.org>
24758
24759         Fix test dependencies.
24760         * modules/xstrtol-tests (Depends-on): Add inttypes.
24761         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24762
24763 2010-01-25 Pádraig Brady <P@draigBrady.com>
24764
24765         syntax-check: detect incorrect boolean macro values in config.h
24766         * modules/maintainer-makefile (configure.ac): Parameterize the location
24767         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24768         The logic is from Eric Blake and the location indicated by Jim Meyering.
24769         Note the more natural CONFIG_HEADER name is prohibited by automake
24770         for backwards compatibility reasons.
24771         * top/maint.mk (sc_Wundef_boolean): New rule.
24772
24773 2010-01-25  Jim Meyering  <meyering@redhat.com>
24774
24775         bootstrap: detect MacOS 10.6's shasum, too
24776         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24777         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24778
24779 2010-01-23  Jim Meyering  <meyering@redhat.com>
24780
24781         xstrtoll: new module
24782         * modules/xstrtoll: New file.
24783         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24784         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24785         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24786         ./configure fails if you use this module and lack "long long".
24787         * modules/xstrtoll-tests: New module.
24788         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24789         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24790         new init.sh-based test framework.
24791
24792 2010-01-24  Bruno Haible  <bruno@clisp.org>
24793
24794         Tests for module 'yn'.
24795         * modules/yn-tests: New file.
24796         * tests/test-yn.c: New file.
24797
24798         Tests for module 'y1'.
24799         * modules/y1-tests: New file.
24800         * tests/test-y1.c: New file.
24801
24802         Tests for module 'y0'.
24803         * modules/y0-tests: New file.
24804         * tests/test-y0.c: New file.
24805
24806         Tests for module 'tanh'.
24807         * modules/tanh-tests: New file.
24808         * tests/test-tanh.c: New file.
24809
24810         Tests for module 'tan'.
24811         * modules/tan-tests: New file.
24812         * tests/test-tan.c: New file.
24813
24814         Tests for module 'sqrt'.
24815         * modules/sqrt-tests: New file.
24816         * tests/test-sqrt.c: New file.
24817
24818         Tests for module 'sinh'.
24819         * modules/sinh-tests: New file.
24820         * tests/test-sinh.c: New file.
24821
24822         Tests for module 'sin'.
24823         * modules/sin-tests: New file.
24824         * tests/test-sin.c: New file.
24825
24826         Tests for module 'rint'.
24827         * modules/rint-tests: New file.
24828         * tests/test-rint.c: New file.
24829
24830         Tests for module 'remainder'.
24831         * modules/remainder-tests: New file.
24832         * tests/test-remainder.c: New file.
24833
24834         Tests for module 'pow'.
24835         * modules/pow-tests: New file.
24836         * tests/test-pow.c: New file.
24837
24838         Tests for module 'nextafter'.
24839         * modules/nextafter-tests: New file.
24840         * tests/test-nextafter.c: New file.
24841
24842         Tests for module 'modf'.
24843         * modules/modf-tests: New file.
24844         * tests/test-modf.c: New file.
24845
24846         Tests for module 'logb'.
24847         * modules/logb-tests: New file.
24848         * tests/test-logb.c: New file.
24849
24850         Tests for module 'log1p'.
24851         * modules/log1p-tests: New file.
24852         * tests/test-log1p.c: New file.
24853
24854         Tests for module 'log10'.
24855         * modules/log10-tests: New file.
24856         * tests/test-log10.c: New file.
24857
24858         Tests for module 'log'.
24859         * modules/log-tests: New file.
24860         * tests/test-log.c: New file.
24861
24862         Tests for module 'lgamma'.
24863         * modules/lgamma-tests: New file.
24864         * tests/test-lgamma.c: New file.
24865
24866         Tests for module 'ldexp'.
24867         * modules/ldexp-tests: New file.
24868         * tests/test-ldexp.c: New file.
24869
24870         Tests for module 'jn'.
24871         * modules/jn-tests: New file.
24872         * tests/test-jn.c: New file.
24873
24874         Tests for module 'j1'.
24875         * modules/j1-tests: New file.
24876         * tests/test-j1.c: New file.
24877
24878         Tests for module 'j0'.
24879         * modules/j0-tests: New file.
24880         * tests/test-j0.c: New file.
24881
24882         Tests for module 'hypot'.
24883         * modules/hypot-tests: New file.
24884         * tests/test-hypot.c: New file.
24885
24886         Tests for module 'fmod'.
24887         * modules/fmod-tests: New file.
24888         * tests/test-fmod.c: New file.
24889
24890         Tests for module 'fabs'.
24891         * modules/fabs-tests: New file.
24892         * tests/test-fabs.c: New file.
24893
24894         Tests for module 'exp'.
24895         * modules/exp-tests: New file.
24896         * tests/test-exp.c: New file.
24897
24898         Tests for module 'erfc'.
24899         * modules/erfc-tests: New file.
24900         * tests/test-erfc.c: New file.
24901
24902         Tests for module 'erf'.
24903         * modules/erf-tests: New file.
24904         * tests/test-erf.c: New file.
24905
24906         Tests for module 'cosh'.
24907         * modules/cosh-tests: New file.
24908         * tests/test-cosh.c: New file.
24909
24910         Tests for module 'cos'.
24911         * modules/cos-tests: New file.
24912         * tests/test-cos.c: New file.
24913
24914         Tests for module 'copysign'.
24915         * modules/copysign-tests: New file.
24916         * tests/test-copysign.c: New file.
24917
24918         Tests for module 'cbrt'.
24919         * modules/cbrt-tests: New file.
24920         * tests/test-cbrt.c: New file.
24921
24922         Tests for module 'atan2'.
24923         * modules/atan2-tests: New file.
24924         * tests/test-atan2.c: New file.
24925
24926         Tests for module 'atan'.
24927         * modules/atan-tests: New file.
24928         * tests/test-atan.c: New file.
24929
24930         Tests for module 'asin'.
24931         * modules/asin-tests: New file.
24932         * tests/test-asin.c: New file.
24933
24934         Tests for module 'acos'.
24935         * modules/acos-tests: New file.
24936         * tests/test-acos.c: New file.
24937
24938 2010-01-24  Bruno Haible  <bruno@clisp.org>
24939
24940         Fix tests for common <math.h> functions.
24941         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24942         code snippet that references the function pointer, rather than merely
24943         calling the function. Substitute the FUNC_LIBM variable.
24944         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24945         * modules/acos (configure.ac): Likewise.
24946         * modules/asin (configure.ac): Likewise.
24947         * modules/atan (configure.ac): Likewise.
24948         * modules/atan2 (configure.ac): Likewise.
24949         * modules/cbrt (configure.ac): Likewise.
24950         * modules/copysign (configure.ac): Likewise.
24951         * modules/cos (configure.ac): Likewise.
24952         * modules/cosh (configure.ac): Likewise.
24953         * modules/erf (configure.ac): Likewise.
24954         * modules/erfc (configure.ac): Likewise.
24955         * modules/exp (configure.ac): Likewise.
24956         * modules/fabs (configure.ac): Likewise.
24957         * modules/fmod (configure.ac): Likewise.
24958         * modules/hypot (configure.ac): Likewise.
24959         * modules/j0 (configure.ac): Likewise.
24960         * modules/j1 (configure.ac): Likewise.
24961         * modules/jn (configure.ac): Likewise.
24962         * modules/ldexp (configure.ac): Likewise.
24963         * modules/lgamma (configure.ac): Likewise.
24964         * modules/log (configure.ac): Likewise.
24965         * modules/log10 (configure.ac): Likewise.
24966         * modules/log1p (configure.ac): Likewise.
24967         * modules/logb (configure.ac): Likewise.
24968         * modules/modf (configure.ac): Likewise.
24969         * modules/nextafter (configure.ac): Likewise.
24970         * modules/pow (configure.ac): Likewise.
24971         * modules/remainder (configure.ac): Likewise.
24972         * modules/rint (configure.ac): Likewise.
24973         * modules/sin (configure.ac): Likewise.
24974         * modules/sinh (configure.ac): Likewise.
24975         * modules/tan (configure.ac): Likewise.
24976         * modules/tanh (configure.ac): Likewise.
24977         * modules/y0 (configure.ac): Likewise.
24978         * modules/y1 (configure.ac): Likewise.
24979         * modules/yn (configure.ac): Likewise.
24980
24981 2010-01-24  Bruno Haible  <bruno@clisp.org>
24982
24983         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24984         * tests/test-acosl.c (x): New variable.
24985         (main): Store argument in x and fetch it from x.
24986         * tests/test-asinl.c (x): New variable.
24987         (main): Store argument in x and fetch it from x.
24988         * tests/test-atanl.c (x): New variable.
24989         (main): Store argument in x and fetch it from x.
24990         * tests/test-cosl.c (x): New variable.
24991         (main): Store argument in x and fetch it from x.
24992         * tests/test-expl.c (x): New variable.
24993         (main): Store argument in x and fetch it from x.
24994         * tests/test-logl.c (x): New variable.
24995         (main): Store argument in x and fetch it from x.
24996         * tests/test-sinl.c (x): New variable.
24997         (main): Store argument in x and fetch it from x.
24998         * tests/test-sqrtl.c (x): New variable.
24999         (main): Store argument in x and fetch it from x.
25000         * tests/test-tanl.c (x): New variable.
25001         (main): Store argument in x and fetch it from x.
25002
25003 2010-01-24  Bruno Haible  <bruno@clisp.org>
25004
25005         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25006         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25007         assignments to the initial TESTS_ENVIRONMENT.
25008         * doc/gnulib.texi (Unit test modules): Document it.
25009         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25010         TESTS_ENVIRONMENT.
25011         * modules/btowc-tests (Makefile.am): Likewise.
25012         * modules/c-stack-tests (Makefile.am): Likewise.
25013         * modules/c-strcase-tests (Makefile.am): Likewise.
25014         * modules/copy-file-tests (Makefile.am): Likewise.
25015         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25016         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25017         * modules/mbrtowc-tests (Makefile.am): Likewise.
25018         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25019         * modules/mbscasestr-tests (Makefile.am): Likewise.
25020         * modules/mbschr-tests (Makefile.am): Likewise.
25021         * modules/mbscspn-tests (Makefile.am): Likewise.
25022         * modules/mbsinit-tests (Makefile.am): Likewise.
25023         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25024         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25025         * modules/mbspbrk-tests (Makefile.am): Likewise.
25026         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25027         * modules/mbsrchr-tests (Makefile.am): Likewise.
25028         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25029         * modules/mbsspn-tests (Makefile.am): Likewise.
25030         * modules/mbsstr-tests (Makefile.am): Likewise.
25031         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25032         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25033         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25034         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25035         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25036         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25037         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25038         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25039         * modules/wcrtomb-tests (Makefile.am): Likewise.
25040         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25041         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25042         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25043         assignments from TESTS_ENVIRONMENT.
25044         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25045         augmentation.
25046         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25047         * modules/atexit-tests (Makefile.am): Likewise.
25048         * modules/binary-io-tests (Makefile.am): Likewise.
25049         * modules/closein-tests (Makefile.am): Likewise.
25050         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25051         * modules/exclude-tests (Makefile.am): Likewise.
25052         * modules/fflush-tests (Makefile.am): Likewise.
25053         * modules/fpending-tests (Makefile.am): Likewise.
25054         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25055         * modules/freadahead-tests (Makefile.am): Likewise.
25056         * modules/freadptr-tests (Makefile.am): Likewise.
25057         * modules/freadseek-tests (Makefile.am): Likewise.
25058         * modules/fseek-tests (Makefile.am): Likewise.
25059         * modules/fseeko-tests (Makefile.am): Likewise.
25060         * modules/ftell-tests (Makefile.am): Likewise.
25061         * modules/ftello-tests (Makefile.am): Likewise.
25062         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25063         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25064         * modules/lseek-tests (Makefile.am): Likewise.
25065         * modules/parse-duration-tests (Makefile.am): Likewise.
25066         * modules/perror-tests (Makefile.am): Likewise.
25067         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25068         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25069         * modules/pipe-tests (Makefile.am): Likewise.
25070         * modules/pread-tests (Makefile.am): Likewise.
25071         * modules/printf-posix-tests (Makefile.am): Likewise.
25072         * modules/select-tests (Makefile.am): Likewise.
25073         * modules/sigpipe-tests (Makefile.am): Likewise.
25074         * modules/tsearch-tests (Makefile.am): Likewise.
25075         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25076         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25077         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25078         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25079         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25080         * modules/version-etc-tests (Makefile.am): Likewise.
25081         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25082         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25083         * modules/xalloc-die-tests (Makefile.am): Likewise.
25084         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25085         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25086         * modules/xstrtol-tests (Makefile.am): Likewise.
25087         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25088         * modules/yesno-tests (Makefile.am): Likewise.
25089         Suggested by Jim Meyering.
25090
25091 2010-01-24  Bruno Haible  <bruno@clisp.org>
25092
25093         More documentation.
25094         * doc/gnulib.texi (Writing modules): New chapter.
25095         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25096         the new chapter.
25097
25098 2010-01-24  Jim Meyering  <meyering@redhat.com>
25099
25100         maint.mk: do not prepend "./" after filtering
25101         * top/maint.mk (_prepend_srcdir_prefix): New variable
25102         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25103         "./" when $(srcdir) is ".".
25104
25105         define STREQ(a,b) consistently, removing useless parentheses
25106         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25107         since the only risk is that "a" or "b" contains an unparenthesized
25108         comma, but if either did that, STREQ would have 3 or more arguments.
25109         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25110         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25111         * lib/hash-triple.c (STREQ): Likewise.
25112         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25113         * lib/getugroups.c (STREQ): Likewise.
25114
25115 2010-01-23  Jim Meyering  <meyering@redhat.com>
25116
25117         maint.mk: fix syntax-check in a non-srcdir build directory
25118         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25119         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25120
25121 2010-01-22  Jim Meyering  <meyering@redhat.com>
25122
25123         userspec: add unit tests
25124         * tests/test-userspec.c: New file.
25125         * modules/userspec-tests: Likewise.
25126
25127 2010-01-21  Jim Meyering  <meyering@redhat.com>
25128
25129         maint.mk: handle source file names containing "." robustly
25130         * top/maint.mk (_dot_escaped_srcdir): Define.
25131         (VC_LIST): Use it in LHS of sed substitution.
25132
25133 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25134
25135         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25136         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25137         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25138         from a non-srcdir build.
25139
25140 2010-01-20  Eric Blake  <ebb9@byu.net>
25141
25142         warn-on-use: use instead of link-warning
25143         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25144         * modules/unistd (Depends-on, Makefile.am): Likewise.
25145         * modules/arpa_inet (Depends-on): Replace link-warning with
25146         warn-on-use.
25147         (Makefile.am): Update rules accordingly.
25148         * modules/ctype (Depends-on, Makefile.am): Likewise.
25149         * modules/dirent (Depends-on, Makefile.am): Likewise.
25150         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25151         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25152         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25153         * modules/locale (Depends-on, Makefile.am): Likewise.
25154         * modules/math (Depends-on, Makefile.am): Likewise.
25155         * modules/search (Depends-on, Makefile.am): Likewise.
25156         * modules/signal (Depends-on, Makefile.am): Likewise.
25157         * modules/spawn (Depends-on, Makefile.am): Likewise.
25158         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25159         * modules/string (Depends-on, Makefile.am): Likewise.
25160         * modules/strings (Depends-on, Makefile.am): Likewise.
25161         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25162         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25163         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25164         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25165         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25166         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25167         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25168         * modules/wchar (Depends-on, Makefile.am): Likewise.
25169         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25170         should be poisoned.
25171         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25172         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25173         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25174         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25175         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25176         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25177         * m4/math_h.m4 (gl_MATH_H): Likewise.
25178         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25179         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25180         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25181         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25182         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25183         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25184         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25185         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25186         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25187         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25188         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25190         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25191         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25192         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25193         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25194         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25195         GL_LINK_WARNING.
25196         * lib/ctype.in.h: Likewise.
25197         * lib/dirent.in.h: Likewise.
25198         * lib/fcntl.in.h: Likewise.
25199         * lib/inttypes.in.h: Likewise.
25200         * lib/langinfo.in.h: Likewise.
25201         * lib/locale.in.h: Likewise.
25202         * lib/math.in.h: Likewise.
25203         * lib/search.in.h: Likewise.
25204         * lib/signal.in.h: Likewise.
25205         * lib/spawn.in.h: Likewise.
25206         * lib/stdio.in.h: Likewise.
25207         * lib/stdlib.in.h: Likewise.
25208         * lib/string.in.h: Likewise.
25209         * lib/strings.in.h: Likewise.
25210         * lib/sys_file.in.h: Likewise.
25211         * lib/sys_ioctl.in.h: Likewise.
25212         * lib/sys_select.in.h: Likewise.
25213         * lib/sys_socket.in.h: Likewise.
25214         * lib/sys_stat.in.h: Likewise.
25215         * lib/sys_times.in.h: Likewise.
25216         * lib/sys_utsname.in.h: Likewise.
25217         * lib/unistd.in.h: Likewise.
25218         * lib/wchar.in.h: Likewise.
25219
25220 2010-01-20  Bruno Haible  <bruno@clisp.org>
25221
25222         Avoid duplicate -lm.
25223         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25224         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25225         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25227         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25228         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25229         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25230         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25231         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25232         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25233         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25234         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25235         Reported by Paolo Bonzini.
25236
25237 2010-01-19  Bruno Haible  <bruno@clisp.org>
25238
25239         langinfo, nl_langinfo: Relicense under LGPLv2+.
25240         * modules/langinfo (License): Change to LGPLv2+.
25241         * modules/nl_langinfo (License): Likewise.
25242         Patch by David Lutterkort <lutter@redhat.com>.
25243
25244 2010-01-19  Bruno Haible  <bruno@clisp.org>
25245
25246         Avoid compilation error with cc on OSF/1 5.1.
25247         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25248         statement, not before.
25249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25250
25251 2010-01-18  Bruno Haible  <bruno@clisp.org>
25252
25253         Avoid a link error due to the __printf__ symbol.
25254         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25255         and 2.6.x.
25256         (__format__, __printf__): Remove definitions.
25257         * lib/argp-fmtstream.h: Likewise.
25258         * lib/argp.h: Likewise.
25259         * lib/error.h: Likewise.
25260         * lib/vasnprintf.h: Likewise.
25261         * lib/xprintf.h: Likewise.
25262         * lib/xvasprintf.h: Likewise.
25263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25264
25265 2010-01-18  Bruno Haible  <bruno@clisp.org>
25266
25267         Tests for module 'tanl'.
25268         * modules/tanl-tests: New file.
25269         * tests/test-tanl.c: New file.
25270
25271         Tests for module 'sqrtl'.
25272         * modules/sqrtl-tests: New file.
25273         * tests/test-sqrtl.c: New file.
25274
25275         Tests for module 'sinl'.
25276         * modules/sinl-tests: New file.
25277         * tests/test-sinl.c: New file.
25278
25279         Tests for module 'logl'.
25280         * modules/logl-tests: New file.
25281         * tests/test-logl.c: New file.
25282
25283         Tests for module 'expl'.
25284         * modules/expl-tests: New file.
25285         * tests/test-expl.c: New file.
25286
25287         Tests for module 'cosl'.
25288         * modules/cosl-tests: New file.
25289         * tests/test-cosl.c: New file.
25290
25291         Tests for module 'atanl'.
25292         * modules/atanl-tests: New file.
25293         * tests/test-atanl.c: New file.
25294
25295         Tests for module 'asinl'.
25296         * modules/asinl-tests: New file.
25297         * tests/test-asinl.c: New file.
25298
25299         Tests for module 'acosl'.
25300         * modules/acosl-tests: New file.
25301         * tests/test-acosl.c: New file.
25302
25303         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25304         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25305         tanl): Use the standard gnulib idiom.
25306         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25307         * lib/sinl.c: Likewise.
25308         * lib/tanl.c: Don't include trigl.c.
25309         (kernel_tanl): Make static.
25310         * lib/sincosl.c: Include trigl.h first.
25311         * lib/trigl.c: Likewise.
25312         * m4/acosl.m4: New file.
25313         * m4/asinl.m4: New file.
25314         * m4/atanl.m4: New file.
25315         * m4/cosl.m4: New file.
25316         * m4/expl.m4: New file.
25317         * m4/logl.m4: New file.
25318         * m4/sinl.m4: New file.
25319         * m4/sqrtl.m4: New file.
25320         * m4/tanl.m4: New file.
25321         * m4/mathl.m4: Remove file.
25322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25323         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25324         Don't initialize GNULIB_MATHL.
25325         * modules/acosl: New file.
25326         * modules/asinl: New file.
25327         * modules/atanl: New file.
25328         * modules/cosl: New file.
25329         * modules/expl: New file.
25330         * modules/logl: New file.
25331         * modules/sinl: New file.
25332         * modules/sqrtl: New file.
25333         * modules/tanl: New file.
25334         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25335         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25336         substitute GNULIB_MATHL.
25337         * modules/mathl: Rewritten.
25338         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25339         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25340         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25341         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25342         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25343         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25344         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25345         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25346         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25347
25348 2010-01-18  Bruno Haible  <bruno@clisp.org>
25349
25350         sqrt: Make gl_FUNC_SQRT requirable.
25351         * m4/sqrt.m4: New file.
25352         * modules/sqrt (Files): Add it.
25353         (configure.ac): Invoke gl_FUNC_SQRT.
25354
25355 2010-01-18  Bruno Haible  <bruno@clisp.org>
25356
25357         New modules for common <math.h> functions.
25358         * m4/mathfunc.m4: New file.
25359         * modules/acos: New file.
25360         * modules/asin: New file.
25361         * modules/atan: New file.
25362         * modules/atan2: New file.
25363         * modules/cbrt: New file.
25364         * modules/copysign: New file.
25365         * modules/cos: New file.
25366         * modules/cosh: New file.
25367         * modules/erf: New file.
25368         * modules/erfc: New file.
25369         * modules/exp: New file.
25370         * modules/fabs: New file.
25371         * modules/fmod: New file.
25372         * modules/hypot: New file.
25373         * modules/j0: New file.
25374         * modules/j1: New file.
25375         * modules/jn: New file.
25376         * modules/ldexp: New file.
25377         * modules/lgamma: New file.
25378         * modules/log: New file.
25379         * modules/log10: New file.
25380         * modules/log1p: New file.
25381         * modules/logb: New file.
25382         * modules/modf: New file.
25383         * modules/nextafter: New file.
25384         * modules/pow: New file.
25385         * modules/remainder: New file.
25386         * modules/rint: New file.
25387         * modules/sin: New file.
25388         * modules/sinh: New file.
25389         * modules/sqrt: New file.
25390         * modules/tan: New file.
25391         * modules/tanh: New file.
25392         * modules/y0: New file.
25393         * modules/y1: New file.
25394         * modules/yn: New file.
25395         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25396         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25397         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25398         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25399         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25400         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25401         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25402         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25403         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25404         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25405         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25406         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25407         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25408         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25409         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25410         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25411         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25412         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25413         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25414         * doc/posix-functions/log.texi: Mention the 'log' module.
25415         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25416         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25417         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25418         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25419         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25420         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25421         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25422         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25423         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25424         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25425         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25426         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25427         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25428         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25429         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25430         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25431
25432 2010-01-18  Jim Meyering  <meyering@redhat.com>
25433
25434         ignore-value: relax license to LGPLv2+
25435         * modules/ignore-value (License): Relax to LGPLv2+.
25436
25437         getdate: don't leak when TZ contains two or more '"'s
25438         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25439         double quote in TZ after the first one.
25440
25441         readtokens: do not leak internal token_lengths buffer
25442         * lib/readtokens.c (readtokens): Free the local, lengths,
25443         when the supplied "token_lengths" parameter is NULL.
25444
25445 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25446
25447         Fix a couple of missing LIBTHREAD link failures on AIX.
25448         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25449         $(LIBTHREAD).
25450         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25451
25452         Link test-poll against INET_PTON_LIB.
25453         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25454         for inet_pton on Solaris 10.
25455
25456 2010-01-17  Bruno Haible  <bruno@clisp.org>
25457
25458         unistdio/*-sprintf: Fix typo in module description.
25459         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25460         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25461         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25462         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25463         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25464         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25465         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25466         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25467
25468 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25469
25470         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25471         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25472         variables in shell case patterns, for AIX and HP-UX ksh.
25473
25474         Split large sed scripts, for HP-UX sed.
25475         * modules/stdio: Split sed scripts around 50 sed commands,
25476         to avoid HP-UX limit of 99 commands, in the near future.
25477         * modules/string: Likewise.
25478         * modules/unistd: Likewise.
25479
25480         gnulib-tool: avoid writing in the current directory.
25481         * gnulib-tool (func_emit_lib_Makefile_am)
25482         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25483         not in the current directory, so concurrent gnulib-tool
25484         instances do not interfere.
25485
25486 2010-01-16  Jim Meyering  <meyering@redhat.com>
25487
25488         doc: update users.txt
25489         * users.txt: Add grep.
25490         (diffutils, gzip): Update URLs.
25491
25492 2010-01-12  Bruno Haible  <bruno@clisp.org>
25493
25494         posix_spawn: Avoid test failure on Cygwin.
25495         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25496         characters.
25497         Reported by Simon Josefsson.
25498
25499 2010-01-12  Bruno Haible  <bruno@clisp.org>
25500
25501         * tests/test-cond.c (main): When skipping the test, show the reason.
25502
25503 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25504
25505         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25506
25507 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25508
25509         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25510         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25511
25512 2010-01-12  Eric Blake  <ebb9@byu.net>
25513
25514         build: guarantee AS_VAR_IF
25515         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25516         (gl_AS_VAR_IF): Move...
25517         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25518         Reported by Simon Josefsson.
25519
25520 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25521
25522         * lib/stdio.in.h: Fix typo.
25523
25524 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25525
25526         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25527         libgpg-error.
25528
25529 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25530
25531         * tests/test-xalloc-die.sh: Use $EXEEXT.
25532
25533 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25534             Bruno Haible  <bruno@clisp.org>
25535
25536         getlogin, getlogin_r: Avoid test failure.
25537         * tests/test-getlogin.c: Include <stdio.h>.
25538         (main): Skip the test when the function fails because stdin is not a
25539         tty.
25540         * tests/test-getlogin_r.c: Include <stdio.h>.
25541         (main): Skip the test when the function fails because stdin is not a
25542         tty.
25543
25544 2010-01-11  Eric Blake  <ebb9@byu.net>
25545
25546         tests: avoid more large file warnings
25547         * tests/test-fflush.c: Avoid warning about ftell use.
25548         * tests/test-fseek.c: Avoid warning about fseek use.
25549
25550 2010-01-10  Bruno Haible  <bruno@clisp.org>
25551
25552         nproc: Work better on Linux when /proc and /sys are not mounted.
25553         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25554         as lower bound when, on glibc/Linux systems,
25555         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25556         Suggested by Pádraig Brady <P@draigbrady.com>.
25557         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25558
25559         nproc: Refactor.
25560         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25561         extracted from num_processors.
25562         (num_processors): Call it.
25563
25564 2010-01-11  Jim Meyering  <meyering@redhat.com>
25565
25566         utimecmp: avoid new warning from upcoming gcc-4.5.0
25567         * lib/utimecmp.c (BILLION): Define using #define rather than an
25568         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25569
25570 2010-01-11  Eric Blake  <ebb9@byu.net>
25571
25572         math: add portability warnings for classification macros
25573         * modules/math (Depends-on): Add warn-on-use.
25574         (Makefile.am): Provide new substitutions.
25575         * m4/math_h.m4 (gl_MATH_H): Require inline.
25576         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25577         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25578         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25579         implement warnings.
25580
25581         unistd: warn on use of environ without module
25582         * modules/unistd (Depends-on): Add warn-on-use.
25583         (Makefile.am): Provide new substitutions.
25584         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25585         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25586
25587         stdio: warn on suspicious uses
25588         * modules/stdio (Depends-on): Add warn-on-use.
25589         (Makefile.am): Provide new substitutions.
25590         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25591         fseeko.
25592         * lib/stdio.in.h (gets): Always warn on use.
25593         (fseek, ftell): Adjust when warnings are issued, and honor
25594         _GL_NO_LARGE_FILES as a way to silence the warning.
25595         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25596         any warning about large file offsets.
25597         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25598         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25599         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25600         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25601         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25602         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25603         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25604         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25605
25606         warn-on-use: new module
25607         * modules/warn-on-use: New file.
25608         * build-aux/warn-on-use.h: Likewise.
25609         * m4/warn-on-use.m4: Likewise.
25610         * MODULES.html.sh (Support for building): Mention it.
25611
25612 2010-01-10  Bruno Haible  <bruno@clisp.org>
25613
25614         Tests for module 'unistr/u32-strdup'.
25615         * modules/unistr/u32-strdup-tests: New file.
25616         * tests/unistr/test-u32-strdup.c: New file.
25617
25618         Tests for module 'unistr/u16-strdup'.
25619         * modules/unistr/u16-strdup-tests: New file.
25620         * tests/unistr/test-u16-strdup.c: New file.
25621
25622         Tests for module 'unistr/u8-strdup'.
25623         * modules/unistr/u8-strdup-tests: New file.
25624         * tests/unistr/test-u8-strdup.c: New file.
25625         * tests/unistr/test-strdup.h: New file.
25626
25627         Tests for module 'unistr/u32-strncmp'.
25628         * modules/unistr/u32-strncmp-tests: New file.
25629         * tests/unistr/test-u32-strncmp.c: New file.
25630
25631         Tests for module 'unistr/u16-strncmp'.
25632         * modules/unistr/u16-strncmp-tests: New file.
25633         * tests/unistr/test-u16-strncmp.c: New file.
25634
25635         Tests for module 'unistr/u8-strncmp'.
25636         * modules/unistr/u8-strncmp-tests: New file.
25637         * tests/unistr/test-u8-strncmp.c: New file.
25638         * tests/unistr/test-strncmp.h: New file.
25639
25640         Tests for module 'unistr/u32-strcoll'.
25641         * modules/unistr/u32-strcoll-tests: New file.
25642         * tests/unistr/test-u32-strcoll.c: New file.
25643
25644         Tests for module 'unistr/u16-strcoll'.
25645         * modules/unistr/u16-strcoll-tests: New file.
25646         * tests/unistr/test-u16-strcoll.c: New file.
25647
25648         Tests for module 'unistr/u8-strcoll'.
25649         * modules/unistr/u8-strcoll-tests: New file.
25650         * tests/unistr/test-u8-strcoll.c: New file.
25651
25652         Tests for module 'unistr/u32-strcmp'.
25653         * modules/unistr/u32-strcmp-tests: New file.
25654         * tests/unistr/test-u32-strcmp.c: New file.
25655         * tests/unistr/test-u32-strcmp.h: New file.
25656
25657         Tests for module 'unistr/u16-strcmp'.
25658         * modules/unistr/u16-strcmp-tests: New file.
25659         * tests/unistr/test-u16-strcmp.c: New file.
25660         * tests/unistr/test-u16-strcmp.h: New file.
25661
25662         Tests for module 'unistr/u8-strcmp'.
25663         * modules/unistr/u8-strcmp-tests: New file.
25664         * tests/unistr/test-u8-strcmp.c: New file.
25665         * tests/unistr/test-u8-strcmp.h: New file.
25666         * tests/unistr/test-strcmp.h: New file.
25667
25668         Tests for module 'unistr/u32-strncat'.
25669         * modules/unistr/u32-strncat-tests: New file.
25670         * tests/unistr/test-u32-strncat.c: New file.
25671
25672         Tests for module 'unistr/u16-strncat'.
25673         * modules/unistr/u16-strncat-tests: New file.
25674         * tests/unistr/test-u16-strncat.c: New file.
25675
25676         Tests for module 'unistr/u8-strncat'.
25677         * modules/unistr/u8-strncat-tests: New file.
25678         * tests/unistr/test-u8-strncat.c: New file.
25679         * tests/unistr/test-strncat.h: New file.
25680
25681         Tests for module 'unistr/u32-strcat'.
25682         * modules/unistr/u32-strcat-tests: New file.
25683         * tests/unistr/test-u32-strcat.c: New file.
25684
25685         Tests for module 'unistr/u16-strcat'.
25686         * modules/unistr/u16-strcat-tests: New file.
25687         * tests/unistr/test-u16-strcat.c: New file.
25688
25689         Tests for module 'unistr/u8-strcat'.
25690         * modules/unistr/u8-strcat-tests: New file.
25691         * tests/unistr/test-u8-strcat.c: New file.
25692         * tests/unistr/test-strcat.h: New file.
25693
25694         Tests for module 'unistr/u32-stpncpy'.
25695         * modules/unistr/u32-stpncpy-tests: New file.
25696         * tests/unistr/test-u32-stpncpy.c: New file.
25697
25698         Tests for module 'unistr/u16-stpncpy'.
25699         * modules/unistr/u16-stpncpy-tests: New file.
25700         * tests/unistr/test-u16-stpncpy.c: New file.
25701
25702         Tests for module 'unistr/u8-stpncpy'.
25703         * modules/unistr/u8-stpncpy-tests: New file.
25704         * tests/unistr/test-u8-stpncpy.c: New file.
25705         * tests/unistr/test-stpncpy.h: New file.
25706
25707         Tests for module 'unistr/u32-strncpy'.
25708         * modules/unistr/u32-strncpy-tests: New file.
25709         * tests/unistr/test-u32-strncpy.c: New file.
25710
25711         Tests for module 'unistr/u16-strncpy'.
25712         * modules/unistr/u16-strncpy-tests: New file.
25713         * tests/unistr/test-u16-strncpy.c: New file.
25714
25715         Tests for module 'unistr/u8-strncpy'.
25716         * modules/unistr/u8-strncpy-tests: New file.
25717         * tests/unistr/test-u8-strncpy.c: New file.
25718         * tests/unistr/test-strncpy.h: New file.
25719
25720         Tests for module 'unistr/u32-stpcpy'.
25721         * modules/unistr/u32-stpcpy-tests: New file.
25722         * tests/unistr/test-u32-stpcpy.c: New file.
25723
25724         Tests for module 'unistr/u16-stpcpy'.
25725         * modules/unistr/u16-stpcpy-tests: New file.
25726         * tests/unistr/test-u16-stpcpy.c: New file.
25727
25728         Tests for module 'unistr/u8-stpcpy'.
25729         * modules/unistr/u8-stpcpy-tests: New file.
25730         * tests/unistr/test-u8-stpcpy.c: New file.
25731         * tests/unistr/test-stpcpy.h: New file.
25732
25733         Tests for module 'unistr/u32-strcpy'.
25734         * modules/unistr/u32-strcpy-tests: New file.
25735         * tests/unistr/test-u32-strcpy.c: New file.
25736
25737         Tests for module 'unistr/u16-strcpy'.
25738         * modules/unistr/u16-strcpy-tests: New file.
25739         * tests/unistr/test-u16-strcpy.c: New file.
25740
25741         Tests for module 'unistr/u8-strcpy'.
25742         * modules/unistr/u8-strcpy-tests: New file.
25743         * tests/unistr/test-u8-strcpy.c: New file.
25744         * tests/unistr/test-strcpy.h: New file.
25745
25746         Tests for module 'unistr/u32-strnlen'.
25747         * modules/unistr/u32-strnlen-tests: New file.
25748         * tests/unistr/test-u32-strnlen.c: New file.
25749
25750         Tests for module 'unistr/u16-strnlen'.
25751         * modules/unistr/u16-strnlen-tests: New file.
25752         * tests/unistr/test-u16-strnlen.c: New file.
25753
25754         Tests for module 'unistr/u8-strnlen'.
25755         * modules/unistr/u8-strnlen-tests: New file.
25756         * tests/unistr/test-u8-strnlen.c: New file.
25757         * tests/unistr/test-strnlen.h: New file.
25758
25759         Tests for module 'unistr/u32-strlen'.
25760         * modules/unistr/u32-strlen-tests: New file.
25761         * tests/unistr/test-u32-strlen.c: New file.
25762
25763         Tests for module 'unistr/u16-strlen'.
25764         * modules/unistr/u16-strlen-tests: New file.
25765         * tests/unistr/test-u16-strlen.c: New file.
25766
25767         Tests for module 'unistr/u8-strlen'.
25768         * modules/unistr/u8-strlen-tests: New file.
25769         * tests/unistr/test-u8-strlen.c: New file.
25770
25771         Tests for module 'unistr/u32-prev'.
25772         * modules/unistr/u32-prev-tests: New file.
25773         * tests/unistr/test-u32-prev.c: New file.
25774
25775         Tests for module 'unistr/u16-prev'.
25776         * modules/unistr/u16-prev-tests: New file.
25777         * tests/unistr/test-u16-prev.c: New file.
25778
25779         Tests for module 'unistr/u8-prev'.
25780         * modules/unistr/u8-prev-tests: New file.
25781         * tests/unistr/test-u8-prev.c: New file.
25782
25783         Tests for module 'unistr/u32-next'.
25784         * modules/unistr/u32-next-tests: New file.
25785         * tests/unistr/test-u32-next.c: New file.
25786
25787         Tests for module 'unistr/u16-next'.
25788         * modules/unistr/u16-next-tests: New file.
25789         * tests/unistr/test-u16-next.c: New file.
25790
25791         Tests for module 'unistr/u8-next'.
25792         * modules/unistr/u8-next-tests: New file.
25793         * tests/unistr/test-u8-next.c: New file.
25794
25795         Tests for module 'unistr/u32-strmbtouc'.
25796         * modules/unistr/u32-strmbtouc-tests: New file.
25797         * tests/unistr/test-u32-strmbtouc.c: New file.
25798
25799         Tests for module 'unistr/u16-strmbtouc'.
25800         * modules/unistr/u16-strmbtouc-tests: New file.
25801         * tests/unistr/test-u16-strmbtouc.c: New file.
25802
25803         Tests for module 'unistr/u8-strmbtouc'.
25804         * modules/unistr/u8-strmbtouc-tests: New file.
25805         * tests/unistr/test-u8-strmbtouc.c: New file.
25806
25807         Tests for module 'unistr/u32-strmblen'.
25808         * modules/unistr/u32-strmblen-tests: New file.
25809         * tests/unistr/test-u32-strmblen.c: New file.
25810
25811         Tests for module 'unistr/u16-strmblen'.
25812         * modules/unistr/u16-strmblen-tests: New file.
25813         * tests/unistr/test-u16-strmblen.c: New file.
25814
25815         Tests for module 'unistr/u8-strmblen'.
25816         * modules/unistr/u8-strmblen-tests: New file.
25817         * tests/unistr/test-u8-strmblen.c: New file.
25818
25819         Tests for module 'unistr/u32-cpy-alloc'.
25820         * modules/unistr/u32-cpy-alloc-tests: New file.
25821         * tests/unistr/test-u32-cpy-alloc.c: New file.
25822
25823         Tests for module 'unistr/u16-cpy-alloc'.
25824         * modules/unistr/u16-cpy-alloc-tests: New file.
25825         * tests/unistr/test-u16-cpy-alloc.c: New file.
25826
25827         Tests for module 'unistr/u8-cpy-alloc'.
25828         * modules/unistr/u8-cpy-alloc-tests: New file.
25829         * tests/unistr/test-u8-cpy-alloc.c: New file.
25830         * tests/unistr/test-cpy-alloc.h: New file.
25831
25832         Tests for module 'unistr/u32-mbsnlen'.
25833         * modules/unistr/u32-mbsnlen-tests: New file.
25834         * tests/unistr/test-u32-mbsnlen.c: New file.
25835
25836         Tests for module 'unistr/u16-mbsnlen'.
25837         * modules/unistr/u16-mbsnlen-tests: New file.
25838         * tests/unistr/test-u16-mbsnlen.c: New file.
25839
25840         Tests for module 'unistr/u8-mbsnlen'.
25841         * modules/unistr/u8-mbsnlen-tests: New file.
25842         * tests/unistr/test-u8-mbsnlen.c: New file.
25843
25844         Tests for module 'unistr/u32-chr'.
25845         * modules/unistr/u32-chr-tests: New file.
25846         * tests/unistr/test-u32-chr.c: New file.
25847
25848         Tests for module 'unistr/u16-chr'.
25849         * modules/unistr/u16-chr-tests: New file.
25850         * tests/unistr/test-u16-chr.c: New file.
25851
25852         Tests for module 'unistr/u8-chr'.
25853         * modules/unistr/u8-chr-tests: New file.
25854         * tests/unistr/test-u8-chr.c: New file.
25855         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25856
25857         Tests for module 'unistr/u32-cmp2'.
25858         * modules/unistr/u32-cmp2-tests: New file.
25859         * tests/unistr/test-u32-cmp2.c: New file.
25860
25861         Tests for module 'unistr/u16-cmp2'.
25862         * modules/unistr/u16-cmp2-tests: New file.
25863         * tests/unistr/test-u16-cmp2.c: New file.
25864
25865         Tests for module 'unistr/u8-cmp2'.
25866         * modules/unistr/u8-cmp2-tests: New file.
25867         * tests/unistr/test-u8-cmp2.c: New file.
25868         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25869
25870         Tests for module 'unistr/u32-cmp'.
25871         * modules/unistr/u32-cmp-tests: New file.
25872         * tests/unistr/test-u32-cmp.c: New file.
25873
25874         Tests for module 'unistr/u16-cmp'.
25875         * modules/unistr/u16-cmp-tests: New file.
25876         * tests/unistr/test-u16-cmp.c: New file.
25877
25878         Tests for module 'unistr/u8-cmp'.
25879         * modules/unistr/u8-cmp-tests: New file.
25880         * tests/unistr/test-u8-cmp.c: New file.
25881         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25882
25883         Tests for module 'unistr/u32-set'.
25884         * modules/unistr/u32-set-tests: New file.
25885         * tests/unistr/test-u32-set.c: New file.
25886
25887         Tests for module 'unistr/u16-set'.
25888         * modules/unistr/u16-set-tests: New file.
25889         * tests/unistr/test-u16-set.c: New file.
25890
25891         Tests for module 'unistr/u8-set'.
25892         * modules/unistr/u8-set-tests: New file.
25893         * tests/unistr/test-u8-set.c: New file.
25894         * tests/unistr/test-set.h: New file.
25895
25896         Tests for module 'unistr/u32-move'.
25897         * modules/unistr/u32-move-tests: New file.
25898         * tests/unistr/test-u32-move.c: New file.
25899
25900         Tests for module 'unistr/u16-move'.
25901         * modules/unistr/u16-move-tests: New file.
25902         * tests/unistr/test-u16-move.c: New file.
25903
25904         Tests for module 'unistr/u8-move'.
25905         * modules/unistr/u8-move-tests: New file.
25906         * tests/unistr/test-u8-move.c: New file.
25907         * tests/unistr/test-move.h: New file.
25908
25909         Tests for module 'unistr/u32-cpy'.
25910         * modules/unistr/u32-cpy-tests: New file.
25911         * tests/unistr/test-u32-cpy.c: New file.
25912
25913         Tests for module 'unistr/u16-cpy'.
25914         * modules/unistr/u16-cpy-tests: New file.
25915         * tests/unistr/test-u16-cpy.c: New file.
25916
25917         Tests for module 'unistr/u8-cpy'.
25918         * modules/unistr/u8-cpy-tests: New file.
25919         * tests/unistr/test-u8-cpy.c: New file.
25920         * tests/unistr/test-cpy.h: New file.
25921
25922 2010-01-09  Bruno Haible  <bruno@clisp.org>
25923
25924         Tests for module 'unistr/u32-uctomb'.
25925         * modules/unistr/u32-uctomb-tests: New file.
25926         * tests/unistr/test-u32-uctomb.c: New file.
25927
25928         Tests for module 'unistr/u16-uctomb'.
25929         * modules/unistr/u16-uctomb-tests: New file.
25930         * tests/unistr/test-u16-uctomb.c: New file.
25931
25932         Tests for module 'unistr/u8-uctomb'.
25933         * modules/unistr/u8-uctomb-tests: New file.
25934         * tests/unistr/test-u8-uctomb.c: New file.
25935
25936         Tests for module 'unistr/u32-mbtoucr'.
25937         * modules/unistr/u32-mbtoucr-tests: New file.
25938         * tests/unistr/test-u32-mbtoucr.c: New file.
25939
25940         Tests for module 'unistr/u16-mbtoucr'.
25941         * modules/unistr/u16-mbtoucr-tests: New file.
25942         * tests/unistr/test-u16-mbtoucr.c: New file.
25943
25944         Tests for module 'unistr/u8-mbtoucr'.
25945         * modules/unistr/u8-mbtoucr-tests: New file.
25946         * tests/unistr/test-u8-mbtoucr.c: New file.
25947
25948         Tests for module 'unistr/u32-mbtouc'.
25949         * modules/unistr/u32-mbtouc-tests: New file.
25950         * tests/unistr/test-u32-mbtouc.c: New file.
25951
25952         Tests for module 'unistr/u16-mbtouc'.
25953         * modules/unistr/u16-mbtouc-tests: New file.
25954         * tests/unistr/test-u16-mbtouc.c: New file.
25955
25956         Tests for module 'unistr/u8-mbtouc'.
25957         * modules/unistr/u8-mbtouc-tests: New file.
25958         * tests/unistr/test-u8-mbtouc.c: New file.
25959
25960         Tests for module 'unistr/u32-mbtouc-unsafe'.
25961         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25962         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25963         * tests/unistr/test-u32-mbtouc.h: New file.
25964
25965         Tests for module 'unistr/u16-mbtouc-unsafe'.
25966         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25967         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25968         * tests/unistr/test-u16-mbtouc.h: New file.
25969
25970         Tests for module 'unistr/u8-mbtouc-unsafe'.
25971         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25972         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25973         * tests/unistr/test-u8-mbtouc.h: New file.
25974
25975         Tests for module 'unistr/u32-mblen'.
25976         * modules/unistr/u32-mblen-tests: New file.
25977         * tests/unistr/test-u32-mblen.c: New file.
25978
25979         Tests for module 'unistr/u16-mblen'.
25980         * modules/unistr/u16-mblen-tests: New file.
25981         * tests/unistr/test-u16-mblen.c: New file.
25982
25983         Tests for module 'unistr/u8-mblen'.
25984         * modules/unistr/u8-mblen-tests: New file.
25985         * tests/unistr/test-u8-mblen.c: New file.
25986
25987         Tests for module 'unistr/u32-to-u16'.
25988         * modules/unistr/u32-to-u16-tests: New file.
25989         * tests/unistr/test-u32-to-u16.c: New file.
25990
25991         Tests for module 'unistr/u32-to-u8'.
25992         * modules/unistr/u32-to-u8-tests: New file.
25993         * tests/unistr/test-u32-to-u8.c: New file.
25994
25995         Tests for module 'unistr/u16-to-u32'.
25996         * modules/unistr/u16-to-u32-tests: New file.
25997         * tests/unistr/test-u16-to-u32.c: New file.
25998
25999         Tests for module 'unistr/u16-to-u8'.
26000         * modules/unistr/u16-to-u8-tests: New file.
26001         * tests/unistr/test-u16-to-u8.c: New file.
26002
26003         Tests for module 'unistr/u8-to-u32'.
26004         * modules/unistr/u8-to-u32-tests: New file.
26005         * tests/unistr/test-u8-to-u32.c: New file.
26006
26007         Tests for module 'unistr/u8-to-u16'.
26008         * modules/unistr/u8-to-u16-tests: New file.
26009         * tests/unistr/test-u8-to-u16.c: New file.
26010
26011         Tests for module 'unistr/u32-check'.
26012         * modules/unistr/u32-check-tests: New file.
26013         * tests/unistr/test-u32-check.c: New file.
26014
26015         Tests for module 'unistr/u16-check'.
26016         * modules/unistr/u16-check-tests: New file.
26017         * tests/unistr/test-u16-check.c: New file.
26018
26019         Tests for module 'unistr/u8-check'.
26020         * modules/unistr/u8-check-tests: New file.
26021         * tests/unistr/test-u8-check.c: New file.
26022
26023         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26024         (category_equals): New function.
26025         (main): Add more tests.
26026         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26027
26028         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26029
26030 2010-01-10  Bruno Haible  <bruno@clisp.org>
26031
26032         unistr/u*-strcoll: Try harder to distinguish different strings.
26033         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26034         compare s1 and s2 to see if they are different.
26035
26036 2010-01-10  Bruno Haible  <bruno@clisp.org>
26037
26038         unistr/u*-stpncpy: Fix the return value.
26039         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26040         description of the return value consistent with stpncpy in glibc.
26041         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26042         written non-NUL unit.
26043
26044 2010-01-10  Bruno Haible  <bruno@clisp.org>
26045
26046         unistr/u*-next: Add missing dependencies.
26047         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26048         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26049         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26050
26051 2010-01-10  Bruno Haible  <bruno@clisp.org>
26052
26053         unistr/u8-mbsnlen: Fix return value for incomplete character.
26054         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26055         u8_mblen.
26056         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26057         Remove unistr/u8-mblen.
26058         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26059         u16_mblen.
26060         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26061         Remove unistr/u16-mblen.
26062
26063 2010-01-10  Bruno Haible  <bruno@clisp.org>
26064
26065         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26066         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26067         Reported by Brian Gough <bjg@gnu.org> and
26068         Chris Clayton <chris2553@googlemail.com> via
26069         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26070
26071 2010-01-09  Bruno Haible  <bruno@clisp.org>
26072
26073         unistr/u16-to-u32: Reject invalid input.
26074         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26075         u16_mbtouc.
26076         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26077         Remove unistr/u16-mbtouc.
26078
26079         unistr/u16-to-u8: Reject invalid input.
26080         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26081         u16_mbtouc.
26082         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26083         Remove unistr/u16-mbtouc.
26084
26085         unistr/u8-to-u32: Reject invalid input.
26086         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26087         u8_mbtouc.
26088         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26089         Remove unistr/u8-mbtouc.
26090
26091         unistr/u8-to-u16: Reject invalid input.
26092         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26093         u8_mbtouc.
26094         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26095         Remove unistr/u8-mbtouc.
26096
26097 2010-01-09  Bruno Haible  <bruno@clisp.org>
26098
26099         Tests for module 'getlogin'.
26100         * modules/getlogin-tests: New file.
26101         * tests/test-getlogin.c: New file.
26102
26103         New module 'getlogin'.
26104         * lib/unistd.in.h (getlogin): New declaration.
26105         * lib/getlogin.c: New file.
26106         * m4/getlogin.m4: New file.
26107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26108         HAVE_GETLOGIN.
26109         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26110         HAVE_GETLOGIN.
26111         * modules/getlogin: New file.
26112         * doc/posix-functions/getlogin.texi: Mention the new module.
26113         Reported by John W. Eaton <jwe@gnu.org>.
26114
26115 2010-01-09  Bruno Haible  <bruno@clisp.org>
26116
26117         getlogin_r: Support for native Windows.
26118         * lib/getlogin_r.c: Include <windows.h>
26119         (getlogin_r): Implement for native Windows.
26120         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26121         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26122         via John W. Eaton <jwe@gnu.org>.
26123
26124 2010-01-09  Bruno Haible  <bruno@clisp.org>
26125
26126         getlogin_r: Small fixes.
26127         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26128         succeeds.
26129         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26130         before testing whether getlogin_r is declared. No need to set
26131         HAVE_DECL_GETLOGIN_R to 1.
26132         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26133
26134 2010-01-09  Bruno Haible  <bruno@clisp.org>
26135
26136         * lib/unistd.in.h (getlogin_r): Add comment.
26137
26138 2010-01-09  Bruno Haible  <bruno@clisp.org>
26139
26140         Tests for module 'getlogin_r'.
26141         * modules/getlogin_r-tests: New file.
26142         * tests/test-getlogin_r.c: New file.
26143
26144 2010-01-09  Jim Meyering  <meyering@redhat.com>
26145
26146         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26147         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26148         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26149
26150 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26151
26152         * lib/dup2.c (rpl_dup2): Improve comment.
26153
26154 2010-01-08  Eric Blake  <ebb9@byu.net>
26155
26156         maint.mk: allow packages to add makefile @@ exceptions
26157         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26158         (sc_makefile_check): Rename...
26159         (sc_makefile_at_at_check): ...to this, and use hook.
26160
26161         dup2: work around mingw bug
26162         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26163         Reported by Simon Josefsson.
26164
26165 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26166
26167         glob: Fix C++ compilation.
26168         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26169         C++.
26170
26171 2010-01-07  Bruno Haible  <bruno@clisp.org>
26172
26173         Fix indentation of wctype.in.h, broken since 2007-01-06.
26174         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26175
26176 2010-01-07  Bruno Haible  <bruno@clisp.org>
26177
26178         mbslen: Avoid collision with system function.
26179         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26180         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26181         * m4/mbslen.m4: New file.
26182         * modules/mbslen (Files): Add it.
26183         (configure.ac): Invoke gl_MBSLEN.
26184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26185         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26186         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26187         via Ian Beckwith <ianb@erislabs.net>.
26188
26189 2010-01-07  Bruno Haible  <bruno@clisp.org>
26190
26191         dirent: Document the last fix.
26192         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26193
26194 2010-01-07  Bruno Haible  <bruno@clisp.org>
26195
26196         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26197         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26198         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26199         va_list are defined.
26200         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26201         Reported by Eric Blake.
26202
26203 2010-01-07  Bruno Haible  <bruno@clisp.org>
26204
26205         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26206         * modules/xlist (Depends-on): Add 'list',
26207         * modules/xoset (Depends-on): Add 'oset'.
26208         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26209
26210 2010-01-07  Bruno Haible  <bruno@clisp.org>
26211
26212         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26213         * doc/posix-functions/strncasecmp.texi: Likewise.
26214
26215 2010-01-07  Bruno Haible  <bruno@clisp.org>
26216
26217         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26218
26219 2010-01-07  John W. Eaton  <jwe@octave.org>
26220
26221         wctype: allow C++ use
26222         * lib/wctype.in.h: Add extern "C" block for C++.
26223
26224 2010-01-06  Eric Blake  <ebb9@byu.net>
26225
26226         maint.mk: detect incorrect GFDL usage
26227         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26228
26229 2010-01-06  Jim Meyering  <meyering@redhat.com>
26230         and Eric Blake  <ebb9@byu.net>
26231
26232         maint.mk: ignore multi-line copyright in NEWS
26233         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26234
26235 2010-01-06  Eric Blake  <ebb9@byu.net>
26236
26237         select: add missing dependency
26238         * modules/select-tests (Depends-on): Move sockets dependency...
26239         * modules/select (Depends-on): ...here.
26240         Reported by Ian Beckwith.
26241
26242         doc: regenerate INSTALL
26243         * doc/INSTALL: Reflect recent autoconf update.
26244         * doc/INSTALL.ISO: Likewise.
26245         * doc/INSTALL.UTF-8: Likewise.
26246
26247         pread: fix compilation on glibc
26248         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26249         Reported by Ralf Wildenhues.
26250
26251         dirent: fix test failure
26252         * lib/dirent.in.h (includes): Guarantee ino_t.
26253         Reported by Ralf Wildenhues.
26254
26255 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26256
26257         linkat, renameat: avoid bad free
26258         * lib/at-func2.c (at_func2): Fix typo.
26259         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26260
26261 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26262
26263         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26264         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26265         to avoid failure of symlink test later.
26266
26267 2010-01-06  Eric Blake  <ebb9@byu.net>
26268
26269         stdio, unistd: guarantee ssize_t
26270         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26271         2008 are exposed when needed.
26272         * lib/stdio.in.h (includes): Likewise.
26273         Reported by Ralf Wildenhues.
26274
26275 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26276
26277         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26278         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26279         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26280
26281 2010-01-06  Jim Meyering  <meyering@redhat.com>
26282
26283         readtokens: this module *does* require xalloc.h
26284         It uses only functions that were omitted by the old syntax-check rule.
26285         * lib/readtokens.c: Include "xalloc.h" once again.
26286         * modules/readtokens (Depends-on): Add xalloc.
26287         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26288
26289 2010-01-05  Eric Blake  <ebb9@byu.net>
26290
26291         maint: support 'make announcement' from a VPATH build
26292         * top/maint.mk (announcement): Look for correct NEWS file.
26293
26294 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26295
26296         utimens (fdutimens): ignore a negative FD, per contract
26297         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26298         when we have a valid file descriptor.  Otherwise, using a brand
26299         new glibc (with just-patched futimens that now fails with EBADF)
26300         would cause this function to fail with ENOSYS.
26301         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26302         See also http://bugzilla.redhat.com/552320.
26303
26304 2010-01-05  Eric Blake  <ebb9@byu.net>
26305
26306         strcase: document what it provides
26307         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26308         gnulib module.
26309         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26310         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26311
26312 2010-01-05  Jim Meyering  <meyering@redhat.com>
26313
26314         maint: remove useless inclusions of "xalloc.h"
26315         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26316         * lib/readtokens.c: Likewise.
26317         * lib/same.c: Likewise.
26318         * modules/getloadavg (Depends-on): Remove xalloc.
26319         * modules/readtokens: Likewise.
26320         * modules/same: Likewise.
26321
26322         maint.mk: include 4 more function names in alloca.h-checking regexp
26323         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26324         regexp.  Before, we would give a false-positive (saying alloca.h
26325         is included unnecessarily) when the only uses involved omitted symbols.
26326
26327         xalloc.h: use consistent formatting
26328         * lib/xalloc.h: Move declarations to start in the first column.
26329
26330 2010-01-05  Eric Blake  <ebb9@byu.net>
26331
26332         mkdir: avoid xalloc
26333         * lib/mkdir.c (includes): Drop unused header.
26334         Reported by John W. Eaton.
26335
26336 2010-01-04  Jim Meyering  <meyering@redhat.com>
26337
26338         nl_langinfo: avoid configure-time syntax error
26339         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26340         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26341         the empty string.  Don't let that provoke a shell syntax error.
26342
26343         regcomp, regexec, fnmatch: avoid array bounds read error
26344         * lib/regcomp.c (build_equiv_class): From glibc:
26345         Use only the low 24 bits of a findidx return value as an index
26346         into the weights array.  Patch by Ulrich Drepper:
26347         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26348         * lib/regexec.c (check_node_accept_bytes): Likewise.
26349         * lib/fnmatch_loop.c (FCT): Likewise.
26350
26351         regcomp: skip collseq lookup when there are no rules
26352         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26353         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26354
26355         regcomp: recognize ill-formed { } expressions
26356         * lib/regcomp.c (parse_dup_op): From glibc:
26357         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26358
26359         regcomp: fix typo in comment
26360         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26361         s/satisfy/satisfies/.
26362
26363         regcomp: sync from glibc: remove dead store
26364         * lib/regcomp.c (duplicate_node_closure): Remove useless
26365         search_duplicated_node call and dead store.
26366
26367         regcomp: sync from glibc; always use nl_langinfo
26368         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26369         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26370         * modules/regex (Depends-on): Add nl_langinfo.
26371
26372 2010-01-04  Eric Blake  <ebb9@byu.net>
26373
26374         fdopendir: fix configure test
26375         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26376
26377 2010-01-01  Bruno Haible  <bruno@clisp.org>
26378
26379         wchar: Remove unused configure check.
26380         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26381
26382 2010-01-01  Eric Blake  <ebb9@byu.net>
26383
26384         headers: make check of system header explicit
26385         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26386         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26387         ourselves.
26388         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26389         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26390         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26391         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26392         internals.
26393         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26394         missing.
26395         Suggested by Bruno Haible.
26396
26397 2010-01-01  Jim Meyering  <meyering@redhat.com>
26398
26399         ChangeLog: tweak to eliminate unnecessary copyright line
26400         * ChangeLog: Remove a copyright line that was mistakenly updated
26401         by today's update-copyright run.  Reported by Eric Blake.
26402
26403         test-update-copyright: don't let envvar setting cause test failure
26404         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26405
26406 2010-01-01  Bruno Haible  <bruno@clisp.org>
26407
26408         localename: Avoid gcc warning.
26409         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26410         function if it is not used.
26411
26412 2010-01-01  Jim Meyering  <meyering@redhat.com>
26413
26414         update nearly all FSF copyright year lists to include 2010
26415         Use the same procedure as for 2009, outlined in
26416         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26417
26418         version-etc: set COPYRIGHT_YEAR to 2010
26419         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26420
26421 2009-12-31  Eric Blake  <ebb9@byu.net>
26422
26423         doc: correct availability of cygwin 1.5.x getopt
26424         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26425         variables.
26426         * doc/posix-functions/opterr.texi (opterr): Likewise.
26427         * doc/posix-functions/optind.texi (optind): Likewise.
26428         * doc/posix-functions/optopt.texi (optopt): Likewise.
26429         * doc/posix-functions/tzname.texi (tzname): Likewise.
26430
26431         openat: update maintainer
26432         * modules/openat (Maintainer): Add myself.
26433
26434         utimens: avoid shadowing warning
26435         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26436         buffers into one, to avoid shadowing, as well as avoiding a
26437         redundant stat.
26438         Reported by Jim Meyering.
26439
26440         test-dup2: avoid compiler warning
26441         * tests/test-dup2.c (is_inheritable): Only define if used.
26442
26443 2010-01-01  Bruno Haible  <bruno@clisp.org>
26444
26445         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26446         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26447         defined, use wctomb instead of wcrtomb.
26448
26449 2010-01-01  Bruno Haible  <bruno@clisp.org>
26450
26451         iconv: Reject native Solaris iconv.
26452         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26453         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26454
26455 2009-12-31  Bruno Haible  <bruno@clisp.org>
26456
26457         * tests/test-signal.c (main): Remove test of 'SIG'.
26458
26459 2009-12-31  Bruno Haible  <bruno@clisp.org>
26460
26461         spawn: Fix incomplete fix.
26462         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26463         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26464         warnings for GNULIB_POSIXCHECK again.
26465         Reported by Eric Blake.
26466
26467 2009-12-31  Bruno Haible  <bruno@clisp.org>
26468
26469         Avoid namespace pollution on glibc systems.
26470         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26471         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26472         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26473         glibc systems.
26474
26475 2009-12-31  Bruno Haible  <bruno@clisp.org>
26476
26477         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26478         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26479         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26480         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26481         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26482         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26483         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26484
26485 2009-12-31  Bruno Haible  <bruno@clisp.org>
26486
26487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26488         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26489         afterwards.
26490
26491 2009-12-31  Bruno Haible  <bruno@clisp.org>
26492
26493         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26494         SYS_UTSNAME_H.
26495
26496 2009-12-31  Bruno Haible  <bruno@clisp.org>
26497
26498         spawn: Fix misapplied patch.
26499         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26500         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26501         warnings for GNULIB_POSIXCHECK.
26502
26503 2009-12-31  Bruno Haible  <bruno@clisp.org>
26504
26505         times: Update after sys_times changed.
26506         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26507         * modules/times (Files): Add it.
26508         (configure.ac): Invoke gl_FUNC_TIMES.
26509
26510 2009-12-31  Bruno Haible  <bruno@clisp.org>
26511
26512         Use AC_C_INLINE where necessary.
26513         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26514         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26516         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26517         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26518         * m4/mbiter.m4 (gl_MBITER): Likewise.
26519         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26520         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26521         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26522         * modules/u64 (configure.ac): Likewise.
26523
26524 2009-12-31  Bruno Haible  <bruno@clisp.org>
26525
26526         Use AC_C_INLINE instead of module 'inline' where possible.
26527         * modules/inline (Description): Clarify purpose.
26528         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26529         * modules/count-one-bits (Depends-on): Remove inline.
26530         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26531         * modules/openat (Depends-on): Remove inline.
26532         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26533         instead of depending on module 'inline'.
26534         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26535         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26536         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26537         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26538         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26539         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26540         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26541         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26542         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26543         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26544         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26545         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26546         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26547         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26548         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26549         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26550         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26551         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26552         Likewise.
26553         * modules/unictype/property-ascii-hex-digit (Depends-on,
26554         configure.ac): Likewise.
26555         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26556         configure.ac): Likewise.
26557         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26558         configure.ac): Likewise.
26559         * modules/unictype/property-bidi-block-separator (Depends-on,
26560         configure.ac): Likewise.
26561         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26562         configure.ac): Likewise.
26563         * modules/unictype/property-bidi-common-separator (Depends-on,
26564         configure.ac): Likewise.
26565         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26566         Likewise.
26567         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26568         configure.ac): Likewise.
26569         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26570         configure.ac): Likewise.
26571         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26572         configure.ac): Likewise.
26573         * modules/unictype/property-bidi-european-digit (Depends-on,
26574         configure.ac): Likewise.
26575         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26576         configure.ac): Likewise.
26577         * modules/unictype/property-bidi-left-to-right (Depends-on,
26578         configure.ac): Likewise.
26579         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26580         configure.ac): Likewise.
26581         * modules/unictype/property-bidi-other-neutral (Depends-on,
26582         configure.ac): Likewise.
26583         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26584         Likewise.
26585         * modules/unictype/property-bidi-segment-separator (Depends-on,
26586         configure.ac): Likewise.
26587         * modules/unictype/property-bidi-whitespace (Depends-on,
26588         configure.ac): Likewise.
26589         * modules/unictype/property-combining (Depends-on, configure.ac):
26590         Likewise.
26591         * modules/unictype/property-composite (Depends-on, configure.ac):
26592         Likewise.
26593         * modules/unictype/property-currency-symbol (Depends-on,
26594         configure.ac): Likewise.
26595         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26596         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26597         Likewise.
26598         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26599         configure.ac): Likewise.
26600         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26601         Likewise.
26602         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26603         Likewise.
26604         * modules/unictype/property-extender (Depends-on, configure.ac):
26605         Likewise.
26606         * modules/unictype/property-format-control (Depends-on, configure.ac):
26607         Likewise.
26608         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26609         Likewise.
26610         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26611         Likewise.
26612         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26613         Likewise.
26614         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26615         Likewise.
26616         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26617         Likewise.
26618         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26619         Likewise.
26620         * modules/unictype/property-id-start (Depends-on, configure.ac):
26621         Likewise.
26622         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26623         Likewise.
26624         * modules/unictype/property-ids-binary-operator (Depends-on,
26625         configure.ac): Likewise.
26626         * modules/unictype/property-ids-trinary-operator (Depends-on,
26627         configure.ac): Likewise.
26628         * modules/unictype/property-ignorable-control (Depends-on,
26629         configure.ac): Likewise.
26630         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26631         Likewise.
26632         * modules/unictype/property-join-control (Depends-on, configure.ac):
26633         Likewise.
26634         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26635         Likewise.
26636         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26637         Likewise.
26638         * modules/unictype/property-logical-order-exception (Depends-on,
26639         configure.ac): Likewise.
26640         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26641         Likewise.
26642         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26643         * modules/unictype/property-non-break (Depends-on, configure.ac):
26644         Likewise.
26645         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26646         Likewise.
26647         * modules/unictype/property-numeric (Depends-on, configure.ac):
26648         Likewise.
26649         * modules/unictype/property-other-alphabetic (Depends-on,
26650         configure.ac): Likewise.
26651         * modules/unictype/property-other-default-ignorable-code-point
26652         (Depends-on, configure.ac): Likewise.
26653         * modules/unictype/property-other-grapheme-extend (Depends-on,
26654         configure.ac): Likewise.
26655         * modules/unictype/property-other-id-continue (Depends-on,
26656         configure.ac): Likewise.
26657         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26658         Likewise.
26659         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26660         Likewise.
26661         * modules/unictype/property-other-math (Depends-on, configure.ac):
26662         Likewise.
26663         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26664         Likewise.
26665         * modules/unictype/property-paired-punctuation (Depends-on,
26666         configure.ac): Likewise.
26667         * modules/unictype/property-paragraph-separator (Depends-on,
26668         configure.ac): Likewise.
26669         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26670         Likewise.
26671         * modules/unictype/property-pattern-white-space (Depends-on,
26672         configure.ac): Likewise.
26673         * modules/unictype/property-private-use (Depends-on, configure.ac):
26674         Likewise.
26675         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26676         Likewise.
26677         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26678         Likewise.
26679         * modules/unictype/property-radical (Depends-on, configure.ac):
26680         Likewise.
26681         * modules/unictype/property-sentence-terminal (Depends-on,
26682         configure.ac): Likewise.
26683         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26684         Likewise.
26685         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26686         * modules/unictype/property-terminal-punctuation (Depends-on,
26687         configure.ac): Likewise.
26688         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26689         Likewise.
26690         * modules/unictype/property-unassigned-code-value (Depends-on,
26691         configure.ac): Likewise.
26692         * modules/unictype/property-unified-ideograph (Depends-on,
26693         configure.ac): Likewise.
26694         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26695         Likewise.
26696         * modules/unictype/property-variation-selector (Depends-on,
26697         configure.ac): Likewise.
26698         * modules/unictype/property-white-space (Depends-on, configure.ac):
26699         Likewise.
26700         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26701         Likewise.
26702         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26703         Likewise.
26704         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26705         Likewise.
26706         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26707         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26708         Likewise.
26709
26710 2009-12-31  Bruno Haible  <bruno@clisp.org>
26711
26712         Remove unnecessary AC_C_INLINE invocation.
26713         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26714         since 2009-08-21.
26715
26716 2009-12-31  Jim Meyering  <meyering@redhat.com>
26717
26718         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26719         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26720         With this change, we can all remove the gpg_key_ID = ... definition
26721         from our respective cfg.mk files.
26722
26723         maint.mk: create announcement template in ~/, not in /tmp
26724         * top/maint.mk (emit_upload_commands): Adjust.
26725         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26726         Remove temporary file, .ci-msg.
26727
26728 2009-12-31  Eric Blake  <ebb9@byu.net>
26729
26730         link-warning: always build headers with link warnings
26731         * modules/arpa_inet (Makefile.am): Always build replacement
26732         header.
26733         * modules/ctype (Makefile.am): Likewise.
26734         * modules/dirent (Makefile.am): Likewise.
26735         * modules/inttypes (Makefile.am): Likewise.
26736         * modules/langinfo (Makefile.am): Likewise.
26737         * modules/locale (Makefile.am): Likewise.
26738         * modules/spawn (Makefile.am): Likewise.
26739         * modules/sys_file (Makefile.am): Likewise.
26740         * modules/sys_ioctl (Makefile.am): Likewise.
26741         * modules/sys_select (Makefile.am): Likewise.
26742         * modules/sys_socket (Makefile.am): Likewise.
26743         * modules/sys_times (Makefile.am): Likewise.
26744         * modules/sys_utsname (Makefile.am): Likewise.
26745         * modules/sys_wait (Makefile.am): Likewise.
26746         * modules/wchar (Makefile.am): Likewise.
26747         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26748         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26749         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26750         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26751         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26752         Likewise.
26753         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26754         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26755         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26756         Likewise.
26757         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26758         Likewise.
26759         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26760         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26761         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26763         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26764         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26765         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26766         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26767         (gl_WCHAR_H_DEFAULTS): Likewise.
26768
26769 2009-12-31  Eric Blake  <ebb9@byu.net>
26770
26771         signal, spawn: use link warnings
26772         * lib/signal.in.h (sigset_t): Make unconditional.
26773         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26774         (sigpending, sigprocmask, sigaction): Add link warnings.
26775         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26776         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26777         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26778         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26779         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26780         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26781         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26782         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26783         (posix_spawn_file_actions_destroy)
26784         (posix_spawn_file_actions_addopen)
26785         (posix_spawn_file_actions_addclose)
26786         (posix_spawn_file_actions_adddup2): Likewise.
26787         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26788         * tests/test-signal.c (main): Enhance test.
26789
26790         spawn: improve wrapper support
26791         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26792         (gl_SPAWN_H_DEFAULTS): New defaults.
26793         * modules/spawn (Makefile.am): Substitute them.
26794         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26795         Only declare if missing or broken.
26796
26797         sys_times, sys_utsname: use include_next
26798         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26799         header.
26800         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26801         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26802         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26803         * modules/sys_times (Depends-on): Add include_next.
26804         (Makefile.am): Substitute additional values.
26805         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26806         * lib/sys_times.in.h (includes): Include native header, if
26807         available.
26808         * lib/sys_utsname.in.h (includes): Likewise.
26809         * tests/test-sys_times.c (main): Enhance test.
26810
26811         fdutimensat: revert prior patch
26812         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26813         utimens.h.
26814         Reported by Bruno Haible.
26815
26816 2009-12-30  Eric Blake  <ebb9@byu.net>
26817
26818         sys_wait: drop link-warning dependency
26819         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26820         link-warning efforts.
26821         * lib/sys_wait.in.h: Likewise.
26822
26823         fdutimensat: remove bogus dependency
26824         * modules/fdutimensat (Depends-on): Drop inline.
26825
26826         unistd: fix typo
26827         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26828
26829 2009-12-30  Bruno Haible  <bruno@clisp.org>
26830
26831         Fix compilation error with Solaris cc.
26832         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26833         * lib/unicase/u16-is-invariant.c: Likewise.
26834         * lib/unicase/u32-is-invariant.c: Likewise.
26835         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26836
26837 2009-12-30  Bruno Haible  <bruno@clisp.org>
26838
26839         Fix test crash.
26840         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26841         locales.
26842         Reported by Simon Josefsson <simon@josefsson.org>.
26843
26844 2009-12-30  Bruno Haible  <bruno@clisp.org>
26845
26846         Fix compilation error on most platforms.
26847         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26848         Reported by Simon Josefsson <simon@josefsson.org>
26849         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26850
26851 2009-12-30  Eric Blake  <ebb9@byu.net>
26852
26853         futimens, utimensat: work around ntfs-3g bug
26854         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26855         a ctime bug is present, and expand workaround to cover ntfs-3g.
26856         * lib/utimens.c (fdutimens, lutimens): Likewise.
26857         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26858         (validate_timespec): Adjust return value.
26859         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26860         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26861         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26862
26863 2009-12-29  Eric Blake  <ebb9@byu.net>
26864
26865         link-warning: make usage consistent
26866         * modules/ctype (Depends-on): Add link-warning.
26867         (Makefile.am): Update rules accordingly.
26868         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26869         * modules/locale (Depends-on, Makefile.am): Likewise.
26870         * modules/sys_file (Makefile.am): Likewise.
26871         * modules/getopt-posix (Makefile.am): Delete unused link warning
26872         efforts.
26873         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26874         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26875         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26876         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26877
26878         stdio: remove unused variables
26879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26881         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26882
26883         tests: test more substitute headers
26884         * modules/ctype-tests: New file.
26885         * modules/dirent-tests: Likewise.
26886         * modules/spawn-tests: Likewise.
26887         * modules/sys_file-tests: Likewise.
26888         * modules/sys_ioctl-tests: Likewise.
26889         * modules/sys_wait-tests: Likewise.
26890         * tests/test-ctype.c: Likewise.
26891         * tests/test-dirent.c: Likewise.
26892         * tests/test-spawn.c: Likewise.
26893         * tests/test-sys_file.c: Likewise.
26894         * tests/test-sys_ioctl.c: Likewise.
26895         * tests/test-sys_wait.c: Likewise.
26896         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26897         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26898         whether or not flock is in use.
26899
26900         tests: remove License section from module
26901         * modules/arpa_inet-tests: Remove unneeded section.
26902         * modules/byteswap-tests: Likewise.
26903         * modules/ceilf-tests: Likewise.
26904         * modules/ceill-tests: Likewise.
26905         * modules/crypto/des-tests: Likewise.
26906         * modules/crypto/gc-arcfour-tests: Likewise.
26907         * modules/crypto/gc-arctwo-tests: Likewise.
26908         * modules/crypto/gc-des-tests: Likewise.
26909         * modules/crypto/gc-hmac-md5-tests: Likewise.
26910         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26911         * modules/crypto/gc-md2-tests: Likewise.
26912         * modules/crypto/gc-md4-tests: Likewise.
26913         * modules/crypto/gc-md5-tests: Likewise.
26914         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26915         * modules/crypto/gc-rijndael-tests: Likewise.
26916         * modules/crypto/gc-sha1-tests: Likewise.
26917         * modules/crypto/gc-tests: Likewise.
26918         * modules/crypto/md2-tests: Likewise.
26919         * modules/crypto/md4-tests: Likewise.
26920         * modules/fcntl-h-tests: Likewise.
26921         * modules/floorf-tests: Likewise.
26922         * modules/floorl-tests: Likewise.
26923         * modules/frexp-nolibm-tests: Likewise.
26924         * modules/frexp-tests: Likewise.
26925         * modules/frexpl-nolibm-tests: Likewise.
26926         * modules/frexpl-tests: Likewise.
26927         * modules/getaddrinfo-tests: Likewise.
26928         * modules/inttypes-tests: Likewise.
26929         * modules/isfinite-tests: Likewise.
26930         * modules/isinf-tests: Likewise.
26931         * modules/ldexpl-tests: Likewise.
26932         * modules/locale-tests: Likewise.
26933         * modules/math-tests: Likewise.
26934         * modules/netdb-tests: Likewise.
26935         * modules/netinet_in-tests: Likewise.
26936         * modules/printf-frexp-tests: Likewise.
26937         * modules/printf-frexpl-tests: Likewise.
26938         * modules/priv-set-tests: Likewise.
26939         * modules/random_r-tests: Likewise.
26940         * modules/round-tests: Likewise.
26941         * modules/roundf-tests: Likewise.
26942         * modules/roundl-tests: Likewise.
26943         * modules/search-tests: Likewise.
26944         * modules/select-tests: Likewise.
26945         * modules/signal-tests: Likewise.
26946         * modules/stdbool-tests: Likewise.
26947         * modules/stddef-tests: Likewise.
26948         * modules/stdint-tests: Likewise.
26949         * modules/stdio-tests: Likewise.
26950         * modules/stdlib-tests: Likewise.
26951         * modules/string-tests: Likewise.
26952         * modules/strings-tests: Likewise.
26953         * modules/sys_select-tests: Likewise.
26954         * modules/sys_socket-tests: Likewise.
26955         * modules/sys_stat-tests: Likewise.
26956         * modules/sys_time-tests: Likewise.
26957         * modules/sys_utsname-tests: Likewise.
26958         * modules/sysexits-tests: Likewise.
26959         * modules/time-tests: Likewise.
26960         * modules/trunc-tests: Likewise.
26961         * modules/truncf-tests: Likewise.
26962         * modules/truncl-tests: Likewise.
26963         * modules/tsearch-tests: Likewise.
26964         * modules/unistd-tests: Likewise.
26965         * modules/wchar-tests: Likewise.
26966         * modules/wctype-tests: Likewise.
26967
26968         tests: fix license on several tests
26969         * tests/test-des.c: Update to GPLv3+.
26970         * tests/test-flock.c: Likewise.
26971         * tests/test-fsync.c: Likewise.
26972         * tests/test-futimens.h: Likewise.
26973         * tests/test-gc-arcfour.c: Likewise.
26974         * tests/test-gc-arctwo.c: Likewise.
26975         * tests/test-gc-des.c: Likewise.
26976         * tests/test-gc-hmac-md5.c: Likewise.
26977         * tests/test-gc-hmac-sha1.c: Likewise.
26978         * tests/test-gc-md2.c: Likewise.
26979         * tests/test-gc-md4.c: Likewise.
26980         * tests/test-gc-md5.c: Likewise.
26981         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26982         * tests/test-gc-rijndael.c: Likewise.
26983         * tests/test-gc-sha1.c: Likewise.
26984         * tests/test-gc.c: Likewise.
26985         * tests/test-getcwd.c: Likewise.
26986         * tests/test-link.c: Likewise.
26987         * tests/test-link.h: Likewise.
26988         * tests/test-lutimens.h: Likewise.
26989         * tests/test-md2.c: Likewise.
26990         * tests/test-md4.c: Likewise.
26991         * tests/test-mkdir.h: Likewise.
26992         * tests/test-rename.c: Likewise.
26993         * tests/test-rename.h: Likewise.
26994         * tests/test-safe-alloc.c: Likewise.
26995         * tests/test-utimens-common.h: Likewise.
26996         * tests/test-utimens.h: Likewise.
26997
26998         maint: sync license texts
26999         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27000         * doc/gpl-3.0.texi: Revert copyright year update.
27001         * doc/lgpl-3.0.texi: Likewise.
27002
27003 2009-12-29  Jim Meyering  <meyering@redhat.com>
27004
27005         update nearly all FSF copyright year lists to include 2009
27006         The files named by the following are exempted:
27007             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27008               test -f "$dst" && { echo "$dst"; continue; }
27009               test -d "$dst" || continue
27010               echo "$dst"/$(basename "$src")
27011             done > exempt
27012             git ls-files tests/unictype >> exempt
27013         In the remaining files, convert to all-interval notation if
27014         - there is already at least one year interval like 2000-2003
27015         - the file is maintained by me
27016         - the file is in lib/uni*/, where that style already prevails
27017         Otherwise, use update-copyright's default.
27018
27019 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27020         and Eric Blake  <ebb9@byu.net>
27021
27022         tests: don't require debug system() to pass
27023         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27024         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27025         * tests/test-unlink.h (test_unlink_func): Likewise.
27026         * tests/test-fstatat.c (main): ...into callers.
27027         * tests/test-lstat.c (main): Likewise.
27028         * tests/test-rmdir.c (main): Likewise.
27029         * tests/test-unlink.c (main): Likewise.
27030         * tests/test-unlinkat.c (main): Likewise.
27031         * tests/test-areadlink-with-size.c (main): Don't require a
27032         debug-only system call to pass, aiding cross-testing to mingw.
27033         * tests/test-areadlink.c (main): Likewise.
27034         * tests/test-areadlinkat-with-size.c (main): Likewise.
27035         * tests/test-areadlinkat.c (main): Likewise.
27036         * tests/test-canonicalize-lgpl.c (main): Likewise.
27037         * tests/test-canonicalize.c (main): Likewise.
27038         * tests/test-chown.c (main): Likewise.
27039         * tests/test-fchownat.c (main): Likewise.
27040         * tests/test-lchown.c (main): Likewise.
27041         * tests/test-fdutimensat.c (main): Likewise.
27042         * tests/test-futimens.c (main): Likewise.
27043         * tests/test-link.c (main): Likewise.
27044         * tests/test-linkat.c (main): Likewise.
27045         * tests/test-mkdir.c (main): Likewise.
27046         * tests/test-mkdirat.c (main): Likewise.
27047         * tests/test-mkfifo.c (main): Likewise.
27048         * tests/test-mkfifoat.c (main): Likewise.
27049         * tests/test-mknod.c (main): Likewise.
27050         * tests/test-readlink.c (main): Likewise.
27051         * tests/test-remove.c (main): Likewise.
27052         * tests/test-rename.c (main): Likewise.
27053         * tests/test-renameat.c (main): Likewise.
27054         * tests/test-symlink.c (main): Likewise.
27055         * tests/test-symlinkat.c (main): Likewise.
27056         * tests/test-utimens.c (main): Likewise.
27057         * tests/test-utimensat.c (main): Likewise.
27058
27059 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27060
27061         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27062         on $(UNUSED_PARAMETER_H) to avoid build failure.
27063
27064 2009-12-28  Jim Meyering  <meyering@redhat.com>
27065
27066         update-copyright: you may specify a max. line length other than 72
27067         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27068
27069         maint: use consistent FSF copyright line syntax
27070         * lib/posixtm.c: Add missing comma in FSF copyright line.
27071         * lib/posixtm.h: Likewise.
27072         * lib/getugroups.c: Add missing ", Inc.".
27073
27074         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27075         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27076         FSF copyright line.  Remove trailing blanks.
27077
27078 2009-12-28  Eric Blake  <ebb9@byu.net>
27079
27080         test-dup2: reduce dependencies
27081         * modules/cloexec (Configure.ac): Set witness.
27082         * modules/dup2-tests (Depends-on): Drop cloexec.
27083         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27084         not present.
27085         Suggested by Bruno Haible.
27086
27087 2009-12-26  Bruno Haible  <bruno@clisp.org>
27088
27089         Remove an unneeded dependency.
27090         * modules/fseterr (Depends-on): Remove dup2.
27091
27092 2009-12-26  Eric Blake  <ebb9@byu.net>
27093
27094         tests: use macros.h in more places
27095         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27096         (ASSERT_STREAM): Provide default of stderr.
27097         * tests/test-dirent-safer.c: Include macros.h, using alternate
27098         stream for assertions.
27099         * tests/test-dup-safer.c: Likewise.
27100         * tests/test-freopen-safer.c: Likewise.
27101         * tests/test-getopt.c: Likewise.
27102         * tests/test-openat-safer.c: Likewise.
27103         * tests/test-pipe.c: Likewise.
27104         * tests/test-popen-safer.c: Likewise.
27105         * modules/dirent-safer-tests (Files): Include macros.h.
27106         * modules/unistd-safer-tests (Files): Likewise.
27107         * modules/freopen-safer-tests (Files): Likewise.
27108         * modules/getopt-posix-tests (Files): Likewise.
27109         * modules/openat-safer-tests (Files): Likewise.
27110         * modules/pipe-tests (Files): Likewise.
27111
27112 2009-12-26  Bruno Haible  <bruno@clisp.org>
27113
27114         javacomp: Portability fix.
27115         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27116         that it also works on Solaris.
27117
27118 2009-12-26  Bruno Haible  <bruno@clisp.org>
27119
27120         localename: Fix storage allocation of gl_locale_name_thread's result.
27121         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27122         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27123         all platforms that have 'uselocale'.
27124         (gl_locale_name_thread_unsafe): New function, extracted from
27125         gl_locale_name_thread.
27126         (gl_locale_name_thread): Call struniq on all platforms that have
27127         'uselocale'.
27128         * tests/test-localename.c (test_locale_name_thread): Check that the
27129         resulting strings are permanently allocated.
27130         * modules/localename-tests (Depends-on): Add strdup.
27131
27132 2009-12-26  Bruno Haible  <bruno@clisp.org>
27133
27134         * tests/test-localename.c (categories): Fill in the strings.
27135
27136 2009-12-26  Jim Meyering  <meyering@redhat.com>
27137
27138         isdir: complete the removal of m4/isdir.m4
27139         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27140
27141         isdir: clean up, since at least grep still uses it
27142         * lib/isdir.c: Include "isdir.h".
27143         (S_ISDIR): Remove now-unneeded definition.
27144         * modules/isdir (Files): Add lib/isdir.h.
27145         * lib/isdir.h: New file, with declaration.
27146         * m4/isdir.m4: Remove file -- unneeded.
27147
27148 2009-12-25  Bruno Haible  <bruno@clisp.org>
27149
27150         selinux-h: Make generated .h files standalone.
27151         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27152         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27153         * lib/se-selinux.in.h: Likewise.
27154         * modules/selinux-h (Depends-on): Add unused-parameter.
27155         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27156         selinux/selinux.h and selinux/context.h.
27157         Suggested by Eric Blake.
27158
27159 2009-12-25  Bruno Haible  <bruno@clisp.org>
27160
27161         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27162         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27163         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27164         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27165         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27166
27167 2009-12-24  Bruno Haible  <bruno@clisp.org>
27168
27169         openat: Fix warning.
27170         * lib/openat-proc.c: Include <unistd.h>.
27171
27172 2009-12-24  Bruno Haible  <bruno@clisp.org>
27173
27174         New module 'unused-parameter'.
27175         * build-aux/unused-parameter.h: New file, extracted from earlier
27176         gnulib-common.m4.
27177         * modules/unused-parameter: New file.
27178         * lib/unistr.h: Include unused-parameter.h.
27179         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27180         _GL_UNUSED.
27181         * modules/unistr/base (Depends-on): Add unused-parameter.
27182
27183 2009-12-24  Bruno Haible  <bruno@clisp.org>
27184
27185         Add missing dependencies to 'extensions' module.
27186         * m4/extensions.m4: Add comment.
27187         * modules/accept4 (Depends-on): Add extensions.
27188         * modules/dup3 (Depends-on): Likewise.
27189         * modules/fcntl (Depends-on): Likewise.
27190         * modules/futimens (Depends-on): Likewise.
27191         * modules/mknod (Depends-on): Likewise.
27192         * modules/pipe2 (Depends-on): Likewise.
27193         * modules/stat-time (Depends-on): Likewise.
27194         * modules/strcasestr-simple (Depends-on): Likewise.
27195         * modules/strsignal (Depends-on): Likewise.
27196         * modules/utimensat (Depends-on): Likewise.
27197         * modules/localcharset (Depends-on): Likewise. Needed because of
27198         gl_FCNTL_O_FLAGS.
27199         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27200         AC_TYPE_MBSTATE_T.
27201         * modules/wcsnrtombs (Depends-on): Likewise.
27202         * modules/wcsrtombs (Depends-on): Likewise.
27203
27204 2009-12-24  Bruno Haible  <bruno@clisp.org>
27205
27206         binary-io: Avoid gcc warning due to SET_BINARY.
27207         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27208         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27209
27210 2009-12-24  Bruno Haible  <bruno@clisp.org>
27211
27212         Avoid future namespace pollution on glibc systems.
27213         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27214         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27215         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27216         glibc systems.
27217
27218 2009-12-24  Bruno Haible  <bruno@clisp.org>
27219
27220         Refactor common macros used in tests.
27221         * tests/macros.h: New file.
27222         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27223         and/or <stdlib.h>, if appropriate.
27224         (ASSERT, SIZEOF): Remove macros.
27225         * tests/test-areadlink-with-size.c: Likewise.
27226         * tests/test-areadlinkat.c: Likewise.
27227         * tests/test-areadlinkat-with-size.c: Likewise.
27228         * tests/test-argmatch.c: Likewise.
27229         * tests/test-argv-iter.c: Likewise.
27230         * tests/test-array-mergesort.c: Likewise.
27231         * tests/test-array_list.c: Likewise.
27232         * tests/test-array_oset.c: Likewise.
27233         * tests/test-avltree_list.c: Likewise.
27234         * tests/test-avltree_oset.c: Likewise.
27235         * tests/test-avltreehash_list.c: Likewise.
27236         * tests/test-base64.c: Likewise.
27237         * tests/test-binary-io.c: Likewise.
27238         * tests/test-bitrotate.c: Likewise.
27239         * tests/test-btowc.c: Likewise.
27240         * tests/test-byteswap.c: Likewise.
27241         * tests/test-c-ctype.c: Likewise.
27242         * tests/test-c-stack.c: Likewise.
27243         * tests/test-c-strcasecmp.c: Likewise.
27244         * tests/test-c-strcasestr.c: Likewise.
27245         * tests/test-c-strncasecmp.c: Likewise.
27246         * tests/test-c-strstr.c: Likewise.
27247         * tests/test-canonicalize-lgpl.c: Likewise.
27248         * tests/test-canonicalize.c: Likewise.
27249         * tests/test-carray_list.c: Likewise.
27250         * tests/test-ceilf1.c: Likewise.
27251         * tests/test-ceilf2.c: Likewise.
27252         * tests/test-ceill.c: Likewise.
27253         * tests/test-chown.c: Likewise.
27254         * tests/test-cloexec.c: Likewise.
27255         * tests/test-copy-acl.c: Likewise.
27256         * tests/test-copy-file.c: Likewise.
27257         * tests/test-count-one-bits.c: Likewise.
27258         * tests/test-dprintf-posix.c: Likewise.
27259         * tests/test-dup2.c: Likewise.
27260         * tests/test-dup3.c: Likewise.
27261         * tests/test-duplocale.c: Likewise.
27262         * tests/test-fbufmode.c: Likewise.
27263         * tests/test-fchdir.c: Likewise.
27264         * tests/test-fchownat.c: Likewise.
27265         * tests/test-fcntl-safer.c: Likewise.
27266         * tests/test-fcntl.c: Likewise.
27267         * tests/test-fdopendir.c: Likewise.
27268         * tests/test-fdutimensat.c: Likewise.
27269         * tests/test-fflush2.c: Likewise.
27270         * tests/test-file-has-acl.c: Likewise.
27271         * tests/test-filevercmp.c: Likewise.
27272         * tests/test-flock.c: Likewise.
27273         * tests/test-floorf1.c: Likewise.
27274         * tests/test-floorf2.c: Likewise.
27275         * tests/test-floorl.c: Likewise.
27276         * tests/test-fnmatch.c: Likewise.
27277         * tests/test-fopen.h: Likewise.
27278         * tests/test-fpending.c: Likewise.
27279         * tests/test-fprintf-posix.c: Likewise.
27280         * tests/test-fpurge.c: Likewise.
27281         * tests/test-freadable.c: Likewise.
27282         * tests/test-freadahead.c: Likewise.
27283         * tests/test-freading.c: Likewise.
27284         * tests/test-freadptr.c: Likewise.
27285         * tests/test-freadptr2.c: Likewise.
27286         * tests/test-freadseek.c: Likewise.
27287         * tests/test-freopen.c: Likewise.
27288         * tests/test-frexp.c: Likewise.
27289         * tests/test-frexpl.c: Likewise.
27290         * tests/test-fseek.c: Likewise.
27291         * tests/test-fseeko.c: Likewise.
27292         * tests/test-fstatat.c: Likewise.
27293         * tests/test-fstrcmp.c: Likewise.
27294         * tests/test-fsync.c: Likewise.
27295         * tests/test-ftell.c: Likewise.
27296         * tests/test-ftello.c: Likewise.
27297         * tests/test-func.c: Likewise.
27298         * tests/test-futimens.c: Likewise.
27299         * tests/test-fwritable.c: Likewise.
27300         * tests/test-fwriting.c: Likewise.
27301         * tests/test-getcwd.c: Likewise.
27302         * tests/test-getdate.c: Likewise.
27303         * tests/test-getdelim.c: Likewise.
27304         * tests/test-getdtablesize.c: Likewise.
27305         * tests/test-getgroups.c: Likewise.
27306         * tests/test-getline.c: Likewise.
27307         * tests/test-getndelim2.c: Likewise.
27308         * tests/test-glob.c: Likewise.
27309         * tests/test-hash.c: Likewise.
27310         * tests/test-i-ring.c: Likewise.
27311         * tests/test-iconv-utf.c: Likewise.
27312         * tests/test-iconv.c: Likewise.
27313         * tests/test-idpriv-drop.c: Likewise.
27314         * tests/test-idpriv-droptemp.c: Likewise.
27315         * tests/test-inet_ntop.c: Likewise.
27316         * tests/test-inet_pton.c: Likewise.
27317         * tests/test-isblank.c: Likewise.
27318         * tests/test-isfinite.c: Likewise.
27319         * tests/test-isinf.c: Likewise.
27320         * tests/test-isnan.c: Likewise.
27321         * tests/test-isnand.h: Likewise.
27322         * tests/test-isnanf.h: Likewise.
27323         * tests/test-isnanl.h: Likewise.
27324         * tests/test-lchown.c: Likewise.
27325         * tests/test-ldexpl.c: Likewise.
27326         * tests/test-link.c: Likewise.
27327         * tests/test-linkat.c: Likewise.
27328         * tests/test-linked_list.c: Likewise.
27329         * tests/test-linkedhash_list.c: Likewise.
27330         * tests/test-localename.c: Likewise.
27331         * tests/test-lseek.c: Likewise.
27332         * tests/test-lstat.c: Likewise.
27333         * tests/test-mbmemcasecmp.c: Likewise.
27334         * tests/test-mbmemcasecoll.c: Likewise.
27335         * tests/test-mbrtowc.c: Likewise.
27336         * tests/test-mbscasecmp.c: Likewise.
27337         * tests/test-mbscasestr1.c: Likewise.
27338         * tests/test-mbscasestr2.c: Likewise.
27339         * tests/test-mbscasestr3.c: Likewise.
27340         * tests/test-mbscasestr4.c: Likewise.
27341         * tests/test-mbschr.c: Likewise.
27342         * tests/test-mbscspn.c: Likewise.
27343         * tests/test-mbsinit.c: Likewise.
27344         * tests/test-mbsncasecmp.c: Likewise.
27345         * tests/test-mbsnrtowcs.c: Likewise.
27346         * tests/test-mbspbrk.c: Likewise.
27347         * tests/test-mbspcasecmp.c: Likewise.
27348         * tests/test-mbsrchr.c: Likewise.
27349         * tests/test-mbsrtowcs.c: Likewise.
27350         * tests/test-mbsspn.c: Likewise.
27351         * tests/test-mbsstr1.c: Likewise.
27352         * tests/test-mbsstr2.c: Likewise.
27353         * tests/test-mbsstr3.c: Likewise.
27354         * tests/test-memchr.c: Likewise.
27355         * tests/test-memchr2.c: Likewise.
27356         * tests/test-memcmp.c: Likewise.
27357         * tests/test-memmem.c: Likewise.
27358         * tests/test-memrchr.c: Likewise.
27359         * tests/test-mkdir.c: Likewise.
27360         * tests/test-mkdirat.c: Likewise.
27361         * tests/test-mkfifo.c: Likewise.
27362         * tests/test-mkfifoat.c: Likewise.
27363         * tests/test-mknod.c: Likewise.
27364         * tests/test-nanosleep.c: Likewise.
27365         * tests/test-nl_langinfo.c: Likewise.
27366         * tests/test-obstack-printf.c: Likewise.
27367         * tests/test-open.c: Likewise.
27368         * tests/test-openat.c: Likewise.
27369         * tests/test-pipe-filter-gi1.c: Likewise.
27370         * tests/test-pipe-filter-gi2-main.c: Likewise.
27371         * tests/test-pipe-filter-ii1.c: Likewise.
27372         * tests/test-pipe-filter-ii2-main.c: Likewise.
27373         * tests/test-pipe2.c: Likewise.
27374         * tests/test-popen.h: Likewise.
27375         * tests/test-posixtm.c: Likewise.
27376         * tests/test-pread.c: Likewise.
27377         * tests/test-printf-frexp.c: Likewise.
27378         * tests/test-printf-frexpl.c: Likewise.
27379         * tests/test-printf-posix.c: Likewise.
27380         * tests/test-priv-set.c: Likewise.
27381         * tests/test-quotearg.c: Likewise.
27382         * tests/test-random_r.c: Likewise.
27383         * tests/test-rawmemchr.c: Likewise.
27384         * tests/test-rbtree_list.c: Likewise.
27385         * tests/test-rbtree_oset.c: Likewise.
27386         * tests/test-rbtreehash_list.c: Likewise.
27387         * tests/test-readlink.c: Likewise.
27388         * tests/test-remove.c: Likewise.
27389         * tests/test-rename.c: Likewise.
27390         * tests/test-renameat.c: Likewise.
27391         * tests/test-rmdir.c: Likewise.
27392         * tests/test-round1.c: Likewise.
27393         * tests/test-roundf1.c: Likewise.
27394         * tests/test-roundl.c: Likewise.
27395         * tests/test-safe-alloc.c: Likewise.
27396         * tests/test-sameacls.c: Likewise.
27397         * tests/test-set-mode-acl.c: Likewise.
27398         * tests/test-setenv.c: Likewise.
27399         * tests/test-sigaction.c: Likewise.
27400         * tests/test-signbit.c: Likewise.
27401         * tests/test-sleep.c: Likewise.
27402         * tests/test-snprintf-posix.c: Likewise.
27403         * tests/test-snprintf.c: Likewise.
27404         * tests/test-sprintf-posix.c: Likewise.
27405         * tests/test-stat-time.c: Likewise.
27406         * tests/test-stat.c: Likewise.
27407         * tests/test-strcasestr.c: Likewise.
27408         * tests/test-strchrnul.c: Likewise.
27409         * tests/test-strerror.c: Likewise.
27410         * tests/test-striconv.c: Likewise.
27411         * tests/test-striconveh.c: Likewise.
27412         * tests/test-striconveha.c: Likewise.
27413         * tests/test-strsignal.c: Likewise.
27414         * tests/test-strstr.c: Likewise.
27415         * tests/test-strtod.c: Likewise.
27416         * tests/test-strverscmp.c: Likewise.
27417         * tests/test-symlink.c: Likewise.
27418         * tests/test-symlinkat.c: Likewise.
27419         * tests/test-trunc1.c: Likewise.
27420         * tests/test-trunc2.c: Likewise.
27421         * tests/test-truncf1.c: Likewise.
27422         * tests/test-truncf2.c: Likewise.
27423         * tests/test-truncl.c: Likewise.
27424         * tests/test-uname.c: Likewise.
27425         * tests/test-unlink.c: Likewise.
27426         * tests/test-unlinkat.c: Likewise.
27427         * tests/test-unsetenv.c: Likewise.
27428         * tests/test-usleep.c: Likewise.
27429         * tests/test-utimens.c: Likewise.
27430         * tests/test-utimensat.c: Likewise.
27431         * tests/test-vasnprintf-posix.c: Likewise.
27432         * tests/test-vasnprintf-posix2.c: Likewise.
27433         * tests/test-vasnprintf.c: Likewise.
27434         * tests/test-vasprintf-posix.c: Likewise.
27435         * tests/test-vasprintf.c: Likewise.
27436         * tests/test-vdprintf-posix.c: Likewise.
27437         * tests/test-vfprintf-posix.c: Likewise.
27438         * tests/test-vprintf-posix.c: Likewise.
27439         * tests/test-vsnprintf-posix.c: Likewise.
27440         * tests/test-vsnprintf.c: Likewise.
27441         * tests/test-vsprintf-posix.c: Likewise.
27442         * tests/test-wcrtomb.c: Likewise.
27443         * tests/test-wcsnrtombs.c: Likewise.
27444         * tests/test-wcsrtombs.c: Likewise.
27445         * tests/test-wctype.c: Likewise.
27446         * tests/test-wcwidth.c: Likewise.
27447         * tests/test-xfprintf-posix.c: Likewise.
27448         * tests/test-xmemdup0.c: Likewise.
27449         * tests/test-xprintf-posix.c: Likewise.
27450         * tests/test-xvasprintf.c: Likewise.
27451         * tests/unicase/test-locale-language.c: Likewise.
27452         * tests/unicase/test-mapping-part1.h: Likewise.
27453         * tests/unicase/test-predicate-part1.h: Likewise.
27454         * tests/unicase/test-u8-casecmp.c: Likewise.
27455         * tests/unicase/test-u8-casecoll.c: Likewise.
27456         * tests/unicase/test-u8-casefold.c: Likewise.
27457         * tests/unicase/test-u8-is-cased.c: Likewise.
27458         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27459         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27460         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27461         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27462         * tests/unicase/test-u8-tolower.c: Likewise.
27463         * tests/unicase/test-u8-totitle.c: Likewise.
27464         * tests/unicase/test-u8-toupper.c: Likewise.
27465         * tests/unicase/test-u16-casecmp.c: Likewise.
27466         * tests/unicase/test-u16-casecoll.c: Likewise.
27467         * tests/unicase/test-u16-casefold.c: Likewise.
27468         * tests/unicase/test-u16-is-cased.c: Likewise.
27469         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27470         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27471         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27472         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27473         * tests/unicase/test-u16-tolower.c: Likewise.
27474         * tests/unicase/test-u16-totitle.c: Likewise.
27475         * tests/unicase/test-u16-toupper.c: Likewise.
27476         * tests/unicase/test-u32-casecmp.c: Likewise.
27477         * tests/unicase/test-u32-casecoll.c: Likewise.
27478         * tests/unicase/test-u32-casefold.c: Likewise.
27479         * tests/unicase/test-u32-is-cased.c: Likewise.
27480         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27481         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27482         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27483         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27484         * tests/unicase/test-u32-tolower.c: Likewise.
27485         * tests/unicase/test-u32-totitle.c: Likewise.
27486         * tests/unicase/test-u32-toupper.c: Likewise.
27487         * tests/unicase/test-ulc-casecmp.c: Likewise.
27488         * tests/unicase/test-ulc-casecoll.c: Likewise.
27489         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27490         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27491         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27492         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27493         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27494         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27495         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27496         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27497         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27498         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27499         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27500         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27501         * tests/unictype/test-bidi_byname.c: Likewise.
27502         * tests/unictype/test-bidi_name.c: Likewise.
27503         * tests/unictype/test-bidi_of.c: Likewise.
27504         * tests/unictype/test-bidi_test.c: Likewise.
27505         * tests/unictype/test-block_list.c: Likewise.
27506         * tests/unictype/test-block_of.c: Likewise.
27507         * tests/unictype/test-block_test.c: Likewise.
27508         * tests/unictype/test-categ_and.c: Likewise.
27509         * tests/unictype/test-categ_and_not.c: Likewise.
27510         * tests/unictype/test-categ_byname.c: Likewise.
27511         * tests/unictype/test-categ_name.c: Likewise.
27512         * tests/unictype/test-categ_none.c: Likewise.
27513         * tests/unictype/test-categ_of.c: Likewise.
27514         * tests/unictype/test-categ_or.c: Likewise.
27515         * tests/unictype/test-categ_test_withtable.c: Likewise.
27516         * tests/unictype/test-combining.c: Likewise.
27517         * tests/unictype/test-decdigit.c: Likewise.
27518         * tests/unictype/test-digit.c: Likewise.
27519         * tests/unictype/test-mirror.c: Likewise.
27520         * tests/unictype/test-numeric.c: Likewise.
27521         * tests/unictype/test-pr_byname.c: Likewise.
27522         * tests/unictype/test-pr_test.c: Likewise.
27523         * tests/unictype/test-predicate-part1.h: Likewise.
27524         * tests/unictype/test-scripts.c: Likewise.
27525         * tests/unictype/test-sy_c_ident.c: Likewise.
27526         * tests/unictype/test-sy_java_ident.c: Likewise.
27527         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27528         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27529         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27530         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27531         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27532         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27533         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27534         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27535         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27536         * tests/uninorm/test-compat-decomposition.c: Likewise.
27537         * tests/uninorm/test-composition.c: Likewise.
27538         * tests/uninorm/test-decomposing-form.c: Likewise.
27539         * tests/uninorm/test-decomposition.c: Likewise.
27540         * tests/uninorm/test-u8-nfc.c: Likewise.
27541         * tests/uninorm/test-u8-nfd.c: Likewise.
27542         * tests/uninorm/test-u8-nfkc.c: Likewise.
27543         * tests/uninorm/test-u8-nfkd.c: Likewise.
27544         * tests/uninorm/test-u8-normcmp.c: Likewise.
27545         * tests/uninorm/test-u8-normcoll.c: Likewise.
27546         * tests/uninorm/test-u16-nfc.c: Likewise.
27547         * tests/uninorm/test-u16-nfd.c: Likewise.
27548         * tests/uninorm/test-u16-nfkc.c: Likewise.
27549         * tests/uninorm/test-u16-nfkd.c: Likewise.
27550         * tests/uninorm/test-u16-normcmp.c: Likewise.
27551         * tests/uninorm/test-u16-normcoll.c: Likewise.
27552         * tests/uninorm/test-u32-nfc.c: Likewise.
27553         * tests/uninorm/test-u32-nfd.c: Likewise.
27554         * tests/uninorm/test-u32-nfkc.c: Likewise.
27555         * tests/uninorm/test-u32-nfkd.c: Likewise.
27556         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27557         * tests/uninorm/test-u32-normcmp.c: Likewise.
27558         * tests/uninorm/test-u32-normcoll.c: Likewise.
27559         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27560         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27561         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27562         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27563         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27564         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27565         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27566         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27567         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27568         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27569         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27570         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27571         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27572         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27573         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27574         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27575         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27576         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27577         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27578         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27579         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27580         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27581         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27582         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27583         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27584         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27585         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27586         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27587         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27588         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27589         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27590         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27591         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27592         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27593         * tests/uniwidth/test-u8-width.c: Likewise.
27594         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27595         * tests/uniwidth/test-u16-width.c: Likewise.
27596         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27597         * tests/uniwidth/test-u32-width.c: Likewise.
27598         * tests/uniwidth/test-uc_width.c: Likewise.
27599         * tests/uniwidth/test-uc_width2.c: Likewise.
27600         * modules/acl-tests (Files): Add tests/macros.h.
27601         * modules/areadlink-tests (Files): Likewise.
27602         * modules/areadlink-with-size-tests (Files): Likewise.
27603         * modules/areadlinkat-tests (Files): Likewise.
27604         * modules/areadlinkat-with-size-tests (Files): Likewise.
27605         * modules/argmatch-tests (Files): Likewise.
27606         * modules/argv-iter-tests (Files): Likewise.
27607         * modules/array-list-tests (Files): Likewise.
27608         * modules/array-mergesort-tests (Files): Likewise.
27609         * modules/array-oset-tests (Files): Likewise.
27610         * modules/avltree-list-tests (Files): Likewise.
27611         * modules/avltree-oset-tests (Files): Likewise.
27612         * modules/avltreehash-list-tests (Files): Likewise.
27613         * modules/base64-tests (Files): Likewise.
27614         * modules/binary-io-tests (Files): Likewise.
27615         * modules/bitrotate-tests (Files): Likewise.
27616         * modules/btowc-tests (Files): Likewise.
27617         * modules/byteswap-tests (Files): Likewise.
27618         * modules/c-ctype-tests (Files): Likewise.
27619         * modules/c-stack-tests (Files): Likewise.
27620         * modules/c-strcase-tests (Files): Likewise.
27621         * modules/c-strcasestr-tests (Files): Likewise.
27622         * modules/c-strstr-tests (Files): Likewise.
27623         * modules/canonicalize-lgpl-tests (Files): Likewise.
27624         * modules/canonicalize-tests (Files): Likewise.
27625         * modules/carray-list-tests (Files): Likewise.
27626         * modules/ceilf-tests (Files): Likewise.
27627         * modules/ceill-tests (Files): Likewise.
27628         * modules/chown-tests (Files): Likewise.
27629         * modules/cloexec-tests (Files): Likewise.
27630         * modules/copy-file-tests (Files): Likewise.
27631         * modules/count-one-bits-tests (Files): Likewise.
27632         * modules/dprintf-posix-tests (Files): Likewise.
27633         * modules/dup2-tests (Files): Likewise.
27634         * modules/dup3-tests (Files): Likewise.
27635         * modules/duplocale-tests (Files): Likewise.
27636         * modules/fbufmode-tests (Files): Likewise.
27637         * modules/fchdir-tests (Files): Likewise.
27638         * modules/fcntl-safer-tests (Files): Likewise.
27639         * modules/fcntl-tests (Files): Likewise.
27640         * modules/fdopendir-tests (Files): Likewise.
27641         * modules/fdutimensat-tests (Files): Likewise.
27642         * modules/fflush-tests (Files): Likewise.
27643         * modules/filevercmp-tests (Files): Likewise.
27644         * modules/flock-tests (Files): Likewise.
27645         * modules/floorf-tests (Files): Likewise.
27646         * modules/floorl-tests (Files): Likewise.
27647         * modules/fnmatch-tests (Files): Likewise.
27648         * modules/fopen-safer-tests (Files): Likewise.
27649         * modules/fopen-tests (Files): Likewise.
27650         * modules/fpending-tests (Files): Likewise.
27651         * modules/fprintf-posix-tests (Files): Likewise.
27652         * modules/fpurge-tests (Files): Likewise.
27653         * modules/freadable-tests (Files): Likewise.
27654         * modules/freadahead-tests (Files): Likewise.
27655         * modules/freading-tests (Files): Likewise.
27656         * modules/freadptr-tests (Files): Likewise.
27657         * modules/freadseek-tests (Files): Likewise.
27658         * modules/freopen-tests (Files): Likewise.
27659         * modules/frexp-nolibm-tests (Files): Likewise.
27660         * modules/frexp-tests (Files): Likewise.
27661         * modules/frexpl-nolibm-tests (Files): Likewise.
27662         * modules/frexpl-tests (Files): Likewise.
27663         * modules/fseek-tests (Files): Likewise.
27664         * modules/fseeko-tests (Files): Likewise.
27665         * modules/fstrcmp-tests (Files): Likewise.
27666         * modules/fsync-tests (Files): Likewise.
27667         * modules/ftell-tests (Files): Likewise.
27668         * modules/ftello-tests (Files): Likewise.
27669         * modules/func-tests (Files): Likewise.
27670         * modules/futimens-tests (Files): Likewise.
27671         * modules/fwritable-tests (Files): Likewise.
27672         * modules/fwriting-tests (Files): Likewise.
27673         * modules/getcwd-tests (Files): Likewise.
27674         * modules/getdate-tests (Files): Likewise.
27675         * modules/getdelim-tests (Files): Likewise.
27676         * modules/getdtablesize-tests (Files): Likewise.
27677         * modules/getgroups-tests (Files): Likewise.
27678         * modules/getline-tests (Files): Likewise.
27679         * modules/getndelim2-tests (Files): Likewise.
27680         * modules/glob-tests (Files): Likewise.
27681         * modules/hash-tests (Files): Likewise.
27682         * modules/i-ring-tests (Files): Likewise.
27683         * modules/iconv-tests (Files): Likewise.
27684         * modules/iconv_open-utf-tests (Files): Likewise.
27685         * modules/idpriv-drop-tests (Files): Likewise.
27686         * modules/idpriv-droptemp-tests (Files): Likewise.
27687         * modules/inet_ntop-tests (Files): Likewise.
27688         * modules/inet_pton-tests (Files): Likewise.
27689         * modules/isblank-tests (Files): Likewise.
27690         * modules/isfinite-tests (Files): Likewise.
27691         * modules/isinf-tests (Files): Likewise.
27692         * modules/isnan-tests (Files): Likewise.
27693         * modules/isnand-nolibm-tests (Files): Likewise.
27694         * modules/isnand-tests (Files): Likewise.
27695         * modules/isnanf-nolibm-tests (Files): Likewise.
27696         * modules/isnanf-tests (Files): Likewise.
27697         * modules/isnanl-nolibm-tests (Files): Likewise.
27698         * modules/isnanl-tests (Files): Likewise.
27699         * modules/lchown-tests (Files): Likewise.
27700         * modules/ldexpl-tests (Files): Likewise.
27701         * modules/link-tests (Files): Likewise.
27702         * modules/linkat-tests (Files): Likewise.
27703         * modules/linked-list-tests (Files): Likewise.
27704         * modules/linkedhash-list-tests (Files): Likewise.
27705         * modules/localename-tests (Files): Likewise.
27706         * modules/lseek-tests (Files): Likewise.
27707         * modules/lstat-tests (Files): Likewise.
27708         * modules/mbmemcasecmp-tests (Files): Likewise.
27709         * modules/mbmemcasecoll-tests (Files): Likewise.
27710         * modules/mbrtowc-tests (Files): Likewise.
27711         * modules/mbscasecmp-tests (Files): Likewise.
27712         * modules/mbscasestr-tests (Files): Likewise.
27713         * modules/mbschr-tests (Files): Likewise.
27714         * modules/mbscspn-tests (Files): Likewise.
27715         * modules/mbsinit-tests (Files): Likewise.
27716         * modules/mbsncasecmp-tests (Files): Likewise.
27717         * modules/mbsnrtowcs-tests (Files): Likewise.
27718         * modules/mbspbrk-tests (Files): Likewise.
27719         * modules/mbspcasecmp-tests (Files): Likewise.
27720         * modules/mbsrchr-tests (Files): Likewise.
27721         * modules/mbsrtowcs-tests (Files): Likewise.
27722         * modules/mbsspn-tests (Files): Likewise.
27723         * modules/mbsstr-tests (Files): Likewise.
27724         * modules/memchr-tests (Files): Likewise.
27725         * modules/memchr2-tests (Files): Likewise.
27726         * modules/memcmp-tests (Files): Likewise.
27727         * modules/memmem-tests (Files): Likewise.
27728         * modules/memrchr-tests (Files): Likewise.
27729         * modules/mkdir-tests (Files): Likewise.
27730         * modules/mkfifo-tests (Files): Likewise.
27731         * modules/mkfifoat-tests (Files): Likewise.
27732         * modules/mknod-tests (Files): Likewise.
27733         * modules/nanosleep-tests (Files): Likewise.
27734         * modules/nl_langinfo-tests (Files): Likewise.
27735         * modules/obstack-printf-tests (Files): Likewise.
27736         * modules/open-tests (Files): Likewise.
27737         * modules/openat-tests (Files): Likewise.
27738         * modules/pipe-filter-gi-tests (Files): Likewise.
27739         * modules/pipe-filter-ii-tests (Files): Likewise.
27740         * modules/pipe2-tests (Files): Likewise.
27741         * modules/popen-safer-tests (Files): Likewise.
27742         * modules/popen-tests (Files): Likewise.
27743         * modules/posixtm-tests (Files): Likewise.
27744         * modules/pread-tests (Files): Likewise.
27745         * modules/printf-frexp-tests (Files): Likewise.
27746         * modules/printf-frexpl-tests (Files): Likewise.
27747         * modules/printf-posix-tests (Files): Likewise.
27748         * modules/priv-set-tests (Files): Likewise.
27749         * modules/quotearg-tests (Files): Likewise.
27750         * modules/random_r-tests (Files): Likewise.
27751         * modules/rawmemchr-tests (Files): Likewise.
27752         * modules/rbtree-list-tests (Files): Likewise.
27753         * modules/rbtree-oset-tests (Files): Likewise.
27754         * modules/rbtreehash-list-tests (Files): Likewise.
27755         * modules/readlink-tests (Files): Likewise.
27756         * modules/remove-tests (Files): Likewise.
27757         * modules/rename-tests (Files): Likewise.
27758         * modules/renameat-tests (Files): Likewise.
27759         * modules/rmdir-tests (Files): Likewise.
27760         * modules/round-tests (Files): Likewise.
27761         * modules/roundf-tests (Files): Likewise.
27762         * modules/roundl-tests (Files): Likewise.
27763         * modules/safe-alloc-tests (Files): Likewise.
27764         * modules/setenv-tests (Files): Likewise.
27765         * modules/sigaction-tests (Files): Likewise.
27766         * modules/signbit-tests (Files): Likewise.
27767         * modules/sleep-tests (Files): Likewise.
27768         * modules/snprintf-posix-tests (Files): Likewise.
27769         * modules/snprintf-tests (Files): Likewise.
27770         * modules/sprintf-posix-tests (Files): Likewise.
27771         * modules/stat-tests (Files): Likewise.
27772         * modules/stat-time-tests (Files): Likewise.
27773         * modules/strcasestr-tests (Files): Likewise.
27774         * modules/strchrnul-tests (Files): Likewise.
27775         * modules/strerror-tests (Files): Likewise.
27776         * modules/striconv-tests (Files): Likewise.
27777         * modules/striconveh-tests (Files): Likewise.
27778         * modules/striconveha-tests (Files): Likewise.
27779         * modules/strsignal-tests (Files): Likewise.
27780         * modules/strstr-tests (Files): Likewise.
27781         * modules/strtod-tests (Files): Likewise.
27782         * modules/strverscmp-tests (Files): Likewise.
27783         * modules/symlink-tests (Files): Likewise.
27784         * modules/symlinkat-tests (Files): Likewise.
27785         * modules/trunc-tests (Files): Likewise.
27786         * modules/truncf-tests (Files): Likewise.
27787         * modules/truncl-tests (Files): Likewise.
27788         * modules/uname-tests (Files): Likewise.
27789         * modules/unicase/cased-tests (Files): Likewise.
27790         * modules/unicase/ignorable-tests (Files): Likewise.
27791         * modules/unicase/locale-language-tests (Files): Likewise.
27792         * modules/unicase/tolower-tests (Files): Likewise.
27793         * modules/unicase/totitle-tests (Files): Likewise.
27794         * modules/unicase/toupper-tests (Files): Likewise.
27795         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27796         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27797         * modules/unicase/u8-casefold-tests (Files): Likewise.
27798         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27799         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27800         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27801         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27802         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27803         * modules/unicase/u8-tolower-tests (Files): Likewise.
27804         * modules/unicase/u8-totitle-tests (Files): Likewise.
27805         * modules/unicase/u8-toupper-tests (Files): Likewise.
27806         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27807         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27808         * modules/unicase/u16-casefold-tests (Files): Likewise.
27809         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27810         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27811         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27812         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27813         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27814         * modules/unicase/u16-tolower-tests (Files): Likewise.
27815         * modules/unicase/u16-totitle-tests (Files): Likewise.
27816         * modules/unicase/u16-toupper-tests (Files): Likewise.
27817         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27818         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27819         * modules/unicase/u32-casefold-tests (Files): Likewise.
27820         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27821         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27822         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27823         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27824         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27825         * modules/unicase/u32-tolower-tests (Files): Likewise.
27826         * modules/unicase/u32-totitle-tests (Files): Likewise.
27827         * modules/unicase/u32-toupper-tests (Files): Likewise.
27828         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27829         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27830         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27831         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27832         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27833         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27834         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27835         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27836         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27837         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27838         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27839         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27840         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27841         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27842         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27843         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27844         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27845         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27846         * modules/unictype/block-list-tests (Files): Likewise.
27847         * modules/unictype/block-of-tests (Files): Likewise.
27848         * modules/unictype/block-test-tests (Files): Likewise.
27849         * modules/unictype/category-C-tests (Files): Likewise.
27850         * modules/unictype/category-Cc-tests (Files): Likewise.
27851         * modules/unictype/category-Cf-tests (Files): Likewise.
27852         * modules/unictype/category-Cn-tests (Files): Likewise.
27853         * modules/unictype/category-Co-tests (Files): Likewise.
27854         * modules/unictype/category-Cs-tests (Files): Likewise.
27855         * modules/unictype/category-L-tests (Files): Likewise.
27856         * modules/unictype/category-Ll-tests (Files): Likewise.
27857         * modules/unictype/category-Lm-tests (Files): Likewise.
27858         * modules/unictype/category-Lo-tests (Files): Likewise.
27859         * modules/unictype/category-Lt-tests (Files): Likewise.
27860         * modules/unictype/category-Lu-tests (Files): Likewise.
27861         * modules/unictype/category-M-tests (Files): Likewise.
27862         * modules/unictype/category-Mc-tests (Files): Likewise.
27863         * modules/unictype/category-Me-tests (Files): Likewise.
27864         * modules/unictype/category-Mn-tests (Files): Likewise.
27865         * modules/unictype/category-N-tests (Files): Likewise.
27866         * modules/unictype/category-Nd-tests (Files): Likewise.
27867         * modules/unictype/category-Nl-tests (Files): Likewise.
27868         * modules/unictype/category-No-tests (Files): Likewise.
27869         * modules/unictype/category-P-tests (Files): Likewise.
27870         * modules/unictype/category-Pc-tests (Files): Likewise.
27871         * modules/unictype/category-Pd-tests (Files): Likewise.
27872         * modules/unictype/category-Pe-tests (Files): Likewise.
27873         * modules/unictype/category-Pf-tests (Files): Likewise.
27874         * modules/unictype/category-Pi-tests (Files): Likewise.
27875         * modules/unictype/category-Po-tests (Files): Likewise.
27876         * modules/unictype/category-Ps-tests (Files): Likewise.
27877         * modules/unictype/category-S-tests (Files): Likewise.
27878         * modules/unictype/category-Sc-tests (Files): Likewise.
27879         * modules/unictype/category-Sk-tests (Files): Likewise.
27880         * modules/unictype/category-Sm-tests (Files): Likewise.
27881         * modules/unictype/category-So-tests (Files): Likewise.
27882         * modules/unictype/category-Z-tests (Files): Likewise.
27883         * modules/unictype/category-Zl-tests (Files): Likewise.
27884         * modules/unictype/category-Zp-tests (Files): Likewise.
27885         * modules/unictype/category-Zs-tests (Files): Likewise.
27886         * modules/unictype/category-and-not-tests (Files): Likewise.
27887         * modules/unictype/category-and-tests (Files): Likewise.
27888         * modules/unictype/category-byname-tests (Files): Likewise.
27889         * modules/unictype/category-name-tests (Files): Likewise.
27890         * modules/unictype/category-none-tests (Files): Likewise.
27891         * modules/unictype/category-of-tests (Files): Likewise.
27892         * modules/unictype/category-or-tests (Files): Likewise.
27893         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27894         * modules/unictype/combining-class-tests (Files): Likewise.
27895         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27896         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27897         * modules/unictype/ctype-blank-tests (Files): Likewise.
27898         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27899         * modules/unictype/ctype-digit-tests (Files): Likewise.
27900         * modules/unictype/ctype-graph-tests (Files): Likewise.
27901         * modules/unictype/ctype-lower-tests (Files): Likewise.
27902         * modules/unictype/ctype-print-tests (Files): Likewise.
27903         * modules/unictype/ctype-punct-tests (Files): Likewise.
27904         * modules/unictype/ctype-space-tests (Files): Likewise.
27905         * modules/unictype/ctype-upper-tests (Files): Likewise.
27906         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27907         * modules/unictype/decimal-digit-tests (Files): Likewise.
27908         * modules/unictype/digit-tests (Files): Likewise.
27909         * modules/unictype/mirror-tests (Files): Likewise.
27910         * modules/unictype/numeric-tests (Files): Likewise.
27911         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27912         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27913         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27914         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27915         Likewise.
27916         * modules/unictype/property-bidi-block-separator-tests (Files):
27917         Likewise.
27918         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27919         Likewise.
27920         * modules/unictype/property-bidi-common-separator-tests (Files):
27921         Likewise.
27922         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27923         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27924         Likewise.
27925         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27926         Likewise.
27927         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27928         Likewise.
27929         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27930         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27931         Likewise.
27932         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27933         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27934         Likewise.
27935         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27936         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27937         * modules/unictype/property-bidi-segment-separator-tests (Files):
27938         Likewise.
27939         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27940         * modules/unictype/property-byname-tests (Files): Likewise.
27941         * modules/unictype/property-combining-tests (Files): Likewise.
27942         * modules/unictype/property-composite-tests (Files): Likewise.
27943         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27944         * modules/unictype/property-dash-tests (Files): Likewise.
27945         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27946         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27947         Likewise.
27948         * modules/unictype/property-deprecated-tests (Files): Likewise.
27949         * modules/unictype/property-diacritic-tests (Files): Likewise.
27950         * modules/unictype/property-extender-tests (Files): Likewise.
27951         * modules/unictype/property-format-control-tests (Files): Likewise.
27952         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27953         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27954         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27955         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27956         * modules/unictype/property-hyphen-tests (Files): Likewise.
27957         * modules/unictype/property-id-continue-tests (Files): Likewise.
27958         * modules/unictype/property-id-start-tests (Files): Likewise.
27959         * modules/unictype/property-ideographic-tests (Files): Likewise.
27960         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27961         * modules/unictype/property-ids-trinary-operator-tests (Files):
27962         Likewise.
27963         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27964         * modules/unictype/property-iso-control-tests (Files): Likewise.
27965         * modules/unictype/property-join-control-tests (Files): Likewise.
27966         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27967         * modules/unictype/property-line-separator-tests (Files): Likewise.
27968         * modules/unictype/property-logical-order-exception-tests (Files):
27969         Likewise.
27970         * modules/unictype/property-lowercase-tests (Files): Likewise.
27971         * modules/unictype/property-math-tests (Files): Likewise.
27972         * modules/unictype/property-non-break-tests (Files): Likewise.
27973         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27974         * modules/unictype/property-numeric-tests (Files): Likewise.
27975         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27976         * modules/unictype/property-other-default-ignorable-code-point-tests
27977         (Files): Likewise.
27978         * modules/unictype/property-other-grapheme-extend-tests (Files):
27979         Likewise.
27980         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27981         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27982         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27983         * modules/unictype/property-other-math-tests (Files): Likewise.
27984         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27985         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27986         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27987         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27988         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27989         * modules/unictype/property-private-use-tests (Files): Likewise.
27990         * modules/unictype/property-punctuation-tests (Files): Likewise.
27991         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27992         * modules/unictype/property-radical-tests (Files): Likewise.
27993         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27994         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27995         * modules/unictype/property-space-tests (Files): Likewise.
27996         * modules/unictype/property-terminal-punctuation-tests (Files):
27997         Likewise.
27998         * modules/unictype/property-test-tests (Files): Likewise.
27999         * modules/unictype/property-titlecase-tests (Files): Likewise.
28000         * modules/unictype/property-unassigned-code-value-tests (Files):
28001         Likewise.
28002         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28003         * modules/unictype/property-uppercase-tests (Files): Likewise.
28004         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28005         * modules/unictype/property-white-space-tests (Files): Likewise.
28006         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28007         * modules/unictype/property-xid-start-tests (Files): Likewise.
28008         * modules/unictype/property-zero-width-tests (Files): Likewise.
28009         * modules/unictype/scripts-tests (Files): Likewise.
28010         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28011         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28012         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28013         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28014         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28015         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28016         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28017         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28018         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28019         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28020         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28021         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28022         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28023         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28024         * modules/uninorm/composition-tests (Files): Likewise.
28025         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28026         * modules/uninorm/decomposition-tests (Files): Likewise.
28027         * modules/uninorm/filter-tests (Files): Likewise.
28028         * modules/uninorm/nfc-tests (Files): Likewise.
28029         * modules/uninorm/nfd-tests (Files): Likewise.
28030         * modules/uninorm/nfkc-tests (Files): Likewise.
28031         * modules/uninorm/nfkd-tests (Files): Likewise.
28032         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28033         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28034         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28035         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28036         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28037         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28038         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28039         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28040         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28041         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28042         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28043         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28044         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28045         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28046         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28047         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28048         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28049         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28050         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28051         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28052         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28053         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28054         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28055         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28056         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28057         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28058         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28059         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28060         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28061         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28062         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28063         * modules/uniwidth/u8-width-tests (Files): Likewise.
28064         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28065         * modules/uniwidth/u16-width-tests (Files): Likewise.
28066         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28067         * modules/uniwidth/u32-width-tests (Files): Likewise.
28068         * modules/uniwidth/width-tests (Files): Likewise.
28069         * modules/unlink-tests (Files): Likewise.
28070         * modules/unsetenv-tests (Files): Likewise.
28071         * modules/usleep-tests (Files): Likewise.
28072         * modules/utimens-tests (Files): Likewise.
28073         * modules/utimensat-tests (Files): Likewise.
28074         * modules/vasnprintf-posix-tests (Files): Likewise.
28075         * modules/vasnprintf-tests (Files): Likewise.
28076         * modules/vasprintf-posix-tests (Files): Likewise.
28077         * modules/vasprintf-tests (Files): Likewise.
28078         * modules/vdprintf-posix-tests (Files): Likewise.
28079         * modules/vfprintf-posix-tests (Files): Likewise.
28080         * modules/vprintf-posix-tests (Files): Likewise.
28081         * modules/vsnprintf-posix-tests (Files): Likewise.
28082         * modules/vsnprintf-tests (Files): Likewise.
28083         * modules/vsprintf-posix-tests (Files): Likewise.
28084         * modules/wcrtomb-tests (Files): Likewise.
28085         * modules/wcsnrtombs-tests (Files): Likewise.
28086         * modules/wcsrtombs-tests (Files): Likewise.
28087         * modules/wctype-tests (Files): Likewise.
28088         * modules/wcwidth-tests (Files): Likewise.
28089         * modules/xmemdup0-tests (Files): Likewise.
28090         * modules/xprintf-posix-tests (Files): Likewise.
28091         * modules/xvasprintf-tests (Files): Likewise.
28092
28093 2009-12-24  Eric Blake  <ebb9@byu.net>
28094
28095         test-nanosleep: fix typo
28096         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28097         patch.
28098         Reported by Bruno Haible.
28099
28100 2009-12-24  Bruno Haible  <bruno@clisp.org>
28101
28102         Reduce namespace pollution on glibc systems.
28103         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28104         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28105         systems.
28106         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28107         <getopt.h> on glibc systems.
28108         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28109         systems.
28110         * lib/fcntl.c: Include <unistd.h> here instead.
28111
28112 2009-12-24  Bruno Haible  <bruno@clisp.org>
28113
28114         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28115
28116 2009-12-24  Eric Blake  <ebb9@byu.net>
28117
28118         tests: add signature checks
28119         * tests/signature.h (SIGNATURE_CHECK): New file.
28120         * modules/atexit-tests (Files): Use it.
28121         * modules/btowc-tests (Files): Likewise.
28122         * modules/canonicalize-lgpl-tests (Files): Likewise.
28123         * modules/ceilf-tests (Files): Likewise.
28124         * modules/ceill-tests (Files): Likewise.
28125         * modules/chown-tests (Files): Likewise.
28126         * modules/dprintf-posix-tests (Files): Likewise.
28127         * modules/dup2-tests (Files): Likewise.
28128         * modules/dup3-tests (Files): Likewise.
28129         * modules/duplocale-tests (Files): Likewise.
28130         * modules/fchdir-tests (Files): Likewise.
28131         * modules/fcntl-tests (Files): Likewise.
28132         * modules/fdopendir-tests (Files): Likewise.
28133         * modules/fflush-tests (Files): Likewise.
28134         * modules/flock-tests (Files): Likewise.
28135         * modules/floorf-tests (Files): Likewise.
28136         * modules/floorl-tests (Files): Likewise.
28137         * modules/fnmatch-tests (Files): Likewise.
28138         * modules/fopen-tests (Files): Likewise.
28139         * modules/fprintf-posix-tests (Files): Likewise.
28140         * modules/freopen-tests (Files): Likewise.
28141         * modules/frexp-nolibm-tests (Files): Likewise.
28142         * modules/frexp-tests (Files): Likewise.
28143         * modules/frexpl-nolibm-tests (Files): Likewise.
28144         * modules/frexpl-tests (Files): Likewise.
28145         * modules/fseek-tests (Files): Likewise.
28146         * modules/fseeko-tests (Files): Likewise.
28147         * modules/fsync-tests (Files): Likewise.
28148         * modules/ftell-tests (Files): Likewise.
28149         * modules/ftello-tests (Files): Likewise.
28150         * modules/futimens-tests (Files): Likewise.
28151         * modules/getaddrinfo-tests (Files): Likewise.
28152         * modules/getcwd-tests (Files): Likewise.
28153         * modules/getdelim-tests (Files): Likewise.
28154         * modules/getdtablesize-tests (Files): Likewise.
28155         * modules/getgroups-tests (Files): Likewise.
28156         * modules/gethostname-tests (Files): Likewise.
28157         * modules/getline-tests (Files): Likewise.
28158         * modules/getopt-posix-tests (Files): Likewise.
28159         * modules/gettimeofday-tests (Files): Likewise.
28160         * modules/glob-tests (Files): Likewise.
28161         * modules/iconv-tests (Files): Likewise.
28162         * modules/inet_ntop-tests (Files): Likewise.
28163         * modules/inet_pton-tests (Files): Likewise.
28164         * modules/isblank-tests (Files): Likewise.
28165         * modules/lchown-tests (Files): Likewise.
28166         * modules/ldexpl-tests (Files): Likewise.
28167         * modules/link-tests (Files): Likewise.
28168         * modules/linkat-tests (Files): Likewise.
28169         * modules/lseek-tests (Files): Likewise.
28170         * modules/lstat-tests (Files): Likewise.
28171         * modules/mbrtowc-tests (Files): Likewise.
28172         * modules/mbsinit-tests (Files): Likewise.
28173         * modules/mbsnrtowcs-tests (Files): Likewise.
28174         * modules/mbsrtowcs-tests (Files): Likewise.
28175         * modules/memchr-tests (Files): Likewise.
28176         * modules/memcmp-tests (Files): Likewise.
28177         * modules/memmem-tests (Files): Likewise.
28178         * modules/memrchr-tests (Files): Likewise.
28179         * modules/mkdir-tests (Files): Likewise.
28180         * modules/mkfifo-tests (Files): Likewise.
28181         * modules/mkfifoat-tests (Files): Likewise.
28182         * modules/mknod-tests (Files): Likewise.
28183         * modules/nanosleep-tests (Files): Likewise.
28184         * modules/nl_langinfo-tests (Files): Likewise.
28185         * modules/obstack-printf-tests (Files): Likewise.
28186         * modules/open-tests (Files): Likewise.
28187         * modules/openat-tests (Files): Likewise.
28188         * modules/perror-tests (Files): Likewise.
28189         * modules/pipe2-tests (Files): Likewise.
28190         * modules/poll-tests (Files): Likewise.
28191         * modules/popen-tests (Files): Likewise.
28192         * modules/posix_spawn-tests (Files): Likewise.
28193         * modules/posix_spawnp-tests (Files): Likewise.
28194         * modules/pread-tests (Files): Likewise.
28195         * modules/printf-posix-tests (Files): Likewise.
28196         * modules/pty-tests (Files): Likewise.
28197         * modules/random_r-tests (Files): Likewise.
28198         * modules/rawmemchr-tests (Files): Likewise.
28199         * modules/readlink-tests (Files): Likewise.
28200         * modules/remove-tests (Files): Likewise.
28201         * modules/rename-tests (Files): Likewise.
28202         * modules/renameat-tests (Files): Likewise.
28203         * modules/rmdir-tests (Files): Likewise.
28204         * modules/round-tests (Files): Likewise.
28205         * modules/roundf-tests (Files): Likewise.
28206         * modules/roundl-tests (Files): Likewise.
28207         * modules/select-tests (Files): Likewise.
28208         * modules/setenv-tests (Files): Likewise.
28209         * modules/sigaction-tests (Files): Likewise.
28210         * modules/sleep-tests (Files): Likewise.
28211         * modules/snprintf-posix-tests (Files): Likewise.
28212         * modules/snprintf-tests (Files): Likewise.
28213         * modules/sprintf-posix-tests (Files): Likewise.
28214         * modules/stat-tests (Files): Likewise.
28215         * modules/strcasestr-tests (Files): Likewise.
28216         * modules/strchrnul-tests (Files): Likewise.
28217         * modules/strerror-tests (Files): Likewise.
28218         * modules/strsignal-tests (Files): Likewise.
28219         * modules/strstr-tests (Files): Likewise.
28220         * modules/strtod-tests (Files): Likewise.
28221         * modules/strverscmp-tests (Files): Likewise.
28222         * modules/symlink-tests (Files): Likewise.
28223         * modules/symlinkat-tests (Files): Likewise.
28224         * modules/times-tests (Files): Likewise.
28225         * modules/trunc-tests (Files): Likewise.
28226         * modules/truncf-tests (Files): Likewise.
28227         * modules/truncl-tests (Files): Likewise.
28228         * modules/tsearch-tests (Files): Likewise.
28229         * modules/uname-tests (Files): Likewise.
28230         * modules/unlink-tests (Files): Likewise.
28231         * modules/unsetenv-tests (Files): Likewise.
28232         * modules/usleep-tests (Files): Likewise.
28233         * modules/utimensat-tests (Files): Likewise.
28234         * modules/vasprintf-tests (Files): Likewise.
28235         * modules/vdprintf-posix-tests (Files): Likewise.
28236         * modules/vfprintf-posix-tests (Files): Likewise.
28237         * modules/vprintf-posix-tests (Files): Likewise.
28238         * modules/vsnprintf-posix-tests (Files): Likewise.
28239         * modules/vsnprintf-tests (Files): Likewise.
28240         * modules/vsprintf-posix-tests (Files): Likewise.
28241         * modules/wcrtomb-tests (Files): Likewise.
28242         * modules/wcsnrtombs-tests (Files): Likewise.
28243         * modules/wcsrtombs-tests (Files): Likewise.
28244         * modules/wcwidth-tests (Files): Likewise.
28245         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28246         * tests/test-isinf.c (isinf): Likewise.
28247         * tests/test-isnan.c (isnan): Likewise.
28248         * tests/test-signbit.c (signbit): Likewise.
28249         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28250         declaration, either as macro or with correct signature.
28251         (select): Ensure function under test is declared with correct
28252         signature in correct header.
28253         * tests/test-atexit.c (atexit): Likewise.
28254         * tests/test-btowc.c (btowc): Likewise.
28255         * tests/test-canonicalize-lgpl.c (realpath)
28256         (canonicalize_file_name): Likewise.
28257         * tests/test-ceilf1.c (ceilf): Likewise.
28258         * tests/test-ceill.c (ceill): Likewise.
28259         * tests/test-chown.c (chown): Likewise.
28260         * tests/test-dprintf-posix.c (dprintf): Likewise.
28261         * tests/test-dup2.c (dup2): Likewise.
28262         * tests/test-dup3.c (dup3): Likewise.
28263         * tests/test-duplocale.c (duplocale): Likewise.
28264         * tests/test-fchdir.c (fchdir): Likewise.
28265         * tests/test-fchownat.c (fchownat): Likewise.
28266         * tests/test-fcntl.c (fcntl): Likewise.
28267         * tests/test-fdopendir.c (fdopendir): Likewise.
28268         * tests/test-fflush.c (fflush): Likewise.
28269         * tests/test-flock.c (flock): Likewise.
28270         * tests/test-floorf1.c (floorf): Likewise.
28271         * tests/test-floorl.c (floorl): Likewise.
28272         * tests/test-fnmatch.c (fnmatch): Likewise.
28273         * tests/test-fopen.c (fopen): Likewise.
28274         * tests/test-fprintf-posix.c (fprintf): Likewise.
28275         * tests/test-freopen.c (freopen): Likewise.
28276         * tests/test-frexp.c (frexp): Likewise.
28277         * tests/test-frexpl.c (frexpl): Likewise.
28278         * tests/test-fseek.c (fseek): Likewise.
28279         * tests/test-fseeko.c (fseeko): Likewise.
28280         * tests/test-fstatat.c (fstatat): Likewise.
28281         * tests/test-fsync.c (fsync): Likewise.
28282         * tests/test-ftell.c (ftell): Likewise.
28283         * tests/test-ftello.c (ftello): Likewise.
28284         * tests/test-futimens.c (futimens): Likewise.
28285         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28286         (gai_strerror): Likewise.
28287         * tests/test-getcwd.c (getcwd): Likewise.
28288         * tests/test-getdelim.c (getdelim): Likewise.
28289         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28290         * tests/test-getgroups.c (getgroups): Likewise.
28291         * tests/test-gethostname.c (gethostname): Likewise.
28292         * tests/test-getline.c (getline): Likewise.
28293         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28294         Likewise.
28295         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28296         * tests/test-glob.c (glob, globfree): Likewise.
28297         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28298         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28299         * tests/test-inet_pton.c (inet_pton): Likewise.
28300         * tests/test-isblank.c (isblank): Likewise.
28301         * tests/test-lchown.c (lchown): Likewise.
28302         * tests/test-ldexpl.c (ldexpl): Likewise.
28303         * tests/test-link.c (link): Likewise.
28304         * tests/test-linkat.c (linkat): Likewise.
28305         * tests/test-lseek.c (lseek): Likewise.
28306         * tests/test-lstat.c (lstat): Likewise.
28307         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28308         * tests/test-mbsinit.c (mbsinit): Likewise.
28309         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28310         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28311         * tests/test-memchr.c (memchr): Likewise.
28312         * tests/test-memcmp.c (memcmp): Likewise.
28313         * tests/test-memmem.c (memmem): Likewise.
28314         * tests/test-memrchr.c (memrchr): Likewise.
28315         * tests/test-mkdir.c (mkdir): Likewise.
28316         * tests/test-mkdirat.c (mkdirat): Likewise.
28317         * tests/test-mkfifo.c (mkfifo): Likewise.
28318         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28319         * tests/test-mknod.c (mknod): Likewise.
28320         * tests/test-nanosleep.c (nanosleep): Likewise.
28321         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28322         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28323         Likewise.
28324         * tests/test-open.c (open): Likewise.
28325         * tests/test-openat.c (openat): Likewise.
28326         * tests/test-perror.c (perror): Likewise.
28327         * tests/test-pipe2.c (pipe2): Likewise.
28328         * tests/test-poll.c (poll): Likewise.
28329         * tests/test-popen.c (popen, pclose): Likewise.
28330         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28331         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28332         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28333         (posix_spawn_file_actions_destroy)
28334         (posix_spawn_file_actions_addclose)
28335         (posix_spawn_file_actions_addopen)
28336         (posix_spawn_file_actions_adddup2): Likewise.
28337         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28338         * tests/test-pread.c (pread): Likewise.
28339         * tests/test-printf-posix.c (printf): Likewise.
28340         * tests/test-pty.c (openpty, forkpty): Likewise.
28341         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28342         (random_r): Likewise.
28343         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28344         * tests/test-readlink.c (readlink): Likewise.
28345         * tests/test-remove.c (remove): Likewise.
28346         * tests/test-rename.c (rename): Likewise.
28347         * tests/test-renameat.c (renameat): Likewise.
28348         * tests/test-rmdir.c (rmdir): Likewise.
28349         * tests/test-round1.c (round): Likewise.
28350         * tests/test-roundf1.c (roundf): Likewise.
28351         * tests/test-roundl.c (roundl): Likewise.
28352         * tests/test-setenv.c (setenv): Likewise.
28353         * tests/test-sigaction.c (sigaction): Likewise.
28354         * tests/test-sleep.c (sleep): Likewise.
28355         * tests/test-snprintf.c (snprintf): Likewise.
28356         * tests/test-sprintf-posix.c (sprintf): Likewise.
28357         * tests/test-stat.c (stat): Likewise.
28358         * tests/test-stpncpy.c (stpncpy): Likewise.
28359         * tests/test-strcasestr.c (strcasestr): Likewise.
28360         * tests/test-strchrnul.c (strchrnul): Likewise.
28361         * tests/test-strerror.c (strerror): Likewise.
28362         * tests/test-strsignal.c (strsignal): Likewise.
28363         * tests/test-strstr.c (strstr): Likewise.
28364         * tests/test-strtod.c (strtod): Likewise.
28365         * tests/test-strverscmp.c (strverscmp): Likewise.
28366         * tests/test-symlink.c (symlink): Likewise.
28367         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28368         * tests/test-times.c (times): Likewise.
28369         * tests/test-trunc1.c (trunc): Likewise.
28370         * tests/test-truncf1.c (truncf): Likewise.
28371         * tests/test-truncl.c (truncl): Likewise.
28372         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28373         Likewise.
28374         * tests/test-uname.c (uname): Likewise.
28375         * tests/test-unlink.c (unlink): Likewise.
28376         * tests/test-unlinkat.c (unlinkat): Likewise.
28377         * tests/test-unsetenv.c (unsetenv): Likewise.
28378         * tests/test-usleep.c (usleep): Likewise.
28379         * tests/test-utimensat.c (utimensat): Likewise.
28380         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28381         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28382         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28383         * tests/test-vprintf-posix.c (vprintf): Likewise.
28384         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28385         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28386         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28387         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28388         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28389         * tests/test-wcwidth.c (wcwidth): Likewise.
28390
28391         build: pull in conditional headers during GNULIB_POSIXCHECK
28392         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28393         definitions from any conditionally-included headers.
28394         * lib/stdlib.in.h (includes): Likewise.
28395         * lib/unistd.in.h (includes): Likewise.
28396
28397 2009-12-24  Bruno Haible  <bruno@clisp.org>
28398
28399         * tests/test-argv-iter.c: Include header file being tested immediately
28400         after config.h.
28401         * tests/test-base64.c: Likewise.
28402         * tests/test-flock.c: Likewise.
28403         * tests/test-fsync.c: Likewise.
28404         * tests/test-getdate.c: Likewise.
28405         * tests/test-getndelim2.c: Likewise.
28406         * tests/test-isfinite.c: Likewise.
28407         * tests/test-isinf.c: Likewise.
28408         * tests/test-strerror.c: Likewise.
28409         * tests/test-strsignal.c: Likewise.
28410
28411 2009-12-23  Eric Blake  <ebb9@byu.net>
28412
28413         unistd: work around cygwin bug
28414         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28415         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28416         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28417
28418 2009-12-23  Bruno Haible  <bruno@clisp.org>
28419
28420         localename: More tests.
28421         * tests/test-localename.c (SIZEOF): New macro.
28422         (categories): New variable.
28423         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28424         test_locale_name_default): Add test w.r.t. thread locale.
28425         (test_locale_name_thread): New function.
28426         (main): Invoke it.
28427
28428         localename: Make aware of thread locale.
28429         * lib/localename.h (gl_locale_name_thread): New declaration.
28430         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28431         behaviour with respect to thread locale.
28432         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28433         <langinfo.h>, glthread/lock.h.
28434         (SIZE_BITS): New macro.
28435         (string_hash): New function.
28436         (struct hash_node): New type.
28437         (HASH_TABLE_SIZE): New macro.
28438         (struniq_hash_table, struniq_lock): New variables.
28439         (struniq): New function.
28440         (gl_locale_name_thread): New function.
28441         (gl_locale_name): Invoke it.
28442         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28443         * modules/localename (Depends-on): Add lock.
28444         Reported by Mike Gran <spk121@yahoo.com>.
28445
28446 2009-12-23  Eric Blake  <ebb9@byu.net>
28447
28448         va-args: new module
28449         * modules/va-args: New file.
28450         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28451         * MODULES.html.sh (Core language properties): Mention it.
28452
28453         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28454         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28455         named alias for __attribute__((__unused__)).
28456         * lib/chown.c: Update client.
28457         * lib/fchmodat.c: Likewise.
28458         * lib/fts.c: Likewise.
28459         * lib/getdate.y: Likewise.
28460         * lib/getgroups.c: Likewise.
28461         * lib/getopt.c: Likewise.
28462         * lib/getugroups.c: Likewise.
28463         * lib/mkdir.c: Likewise.
28464         * lib/mkfifo.c: Likewise.
28465         * lib/mkfifoat.c: Likewise.
28466         * lib/mknod.c: Likewise.
28467         * lib/mknodat.c: Likewise.
28468         * lib/readlink.c: Likewise.
28469         * lib/se-context.in.h: Likewise.
28470         * lib/se-selinux.in.h: Likewise.
28471         * lib/sockets.c: Likewise.
28472         * lib/symlink.c: Likewise.
28473         * lib/symlinkat.c: Likewise.
28474         * lib/unicodeio.c: Likewise.
28475         * lib/unistr.h: Likewise.
28476         * tests/test-areadlink.c: Likewise.
28477         * tests/test-areadlinkat.c: Likewise.
28478         * tests/test-filenamecat.c: Likewise.
28479         * tests/test-fseeko.c: Likewise.
28480         * tests/test-ftello.c: Likewise.
28481         * tests/test-getdate.c: Likewise.
28482         * tests/test-getgroups.c: Likewise.
28483         * tests/test-gethostname.c: Likewise.
28484         * tests/test-quotearg.c: Likewise.
28485         * tests/test-version-etc.c: Likewise.
28486         * tests/test-xalloc-die.c: Likewise.
28487         * tests/test-xfprintf-posix.c: Likewise.
28488         * tests/test-xprintf-posix.c: Likewise.
28489         * tests/test-xvasprintf.c: Likewise.
28490
28491         tests: avoid compiler warnings
28492         * tests/test-fcntl.c (main): Delete unused parameters.
28493         * tests/test-freopen-safer.c (main): Likewise.
28494         * tests/test-xalloc-die.c (main): Mark unused parameters.
28495         * tests/test-fseeko.c (main): Likewise.
28496         * tests/test-ftello.c (main): Likewise.
28497         * tests/test-nanosleep.c (main): Avoid declaration warning.
28498         * tests/test-sleep.c (main): Likewise.
28499         * tests/test-unsetenv.c (main): Silence warning about string
28500         literal.
28501         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28502
28503 2009-12-23  Bruno Haible  <bruno@clisp.org>
28504
28505         * tests/test-localename.c (test_locale_name): New function, extracted
28506         from main. Also test mixed situations.
28507         (test_locale_name_posix, test_locale_name_environ,
28508         test_locale_name_default): New functions.
28509         (main): Invoke them all.
28510         * modules/localename-tests (configure.ac): Test for newlocale.
28511
28512 2009-12-23  Bruno Haible  <bruno@clisp.org>
28513
28514         unistd: Ensure getcwd gets declared before being overridden.
28515         * lib/unistd.in.h: Conditionally include <io.h>.
28516
28517 2009-12-22  Bruno Haible  <bruno@clisp.org>
28518
28519         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28520         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28521         (gl_WCHAR_H): Invoke it.
28522         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28523         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28524         Reported by Karl Berry <karl@freefriends.org>.
28525
28526 2009-12-22  Eric Blake  <ebb9@byu.net>
28527
28528         math, unistd: avoid redundant includes
28529         * lib/math.in.h (isnan): No need to re-include <math.h>.
28530         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28531
28532         getsubopt: work around cygwin bug
28533         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28534         avoid conflicting with system getsubopt.
28535         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28536         bug.
28537
28538         getopt: synchronize from glibc
28539         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28540         parameter order.  Adjust all callers.
28541         (_getopt_internal_r, main): Adjust quoting in error messages.
28542         Drop considerations for outdated POSIX 1003.2 error message.
28543         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28544         callers.
28545         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28546
28547         test-getopt: test stderr behavior
28548         * modules/getopt-posix-tests (Depends-on): Add dup2.
28549         * tests/test-getopt.c (ASSERT): Avoid stderr.
28550         (main): Move stderr to a temporary file.
28551         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28552         Instead, add parameter to inform caller if output occurred.
28553         (test_getopt): Adjust all existing tests to expect silence, and
28554         add new tests of leading ":".
28555         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28556         glibc shortcomings with leading "-:" or "+:" in optstring.
28557         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28558         Likewise.
28559         * doc/posix-functions/getopt.texi (getopt): Likewise.
28560
28561         test-getopt: enhance test
28562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28563         supports optind=0.
28564         * tests/test-getopt.c (OPTIND_MIN): Move...
28565         * tests/test-getopt.h (OPTIND_MIN): ...here.
28566         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28567         Require that optind=0 works, since modern BSD supports it in
28568         addition to optreset, and since coreutils expects it.
28569         (test_getopt_long_only): New test.
28570         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28571         glibc shortcomings with 'W;', and enforcement of optind=0.
28572         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28573         Likewise.
28574
28575 2009-12-21  Bruno Haible  <bruno@clisp.org>
28576
28577         localename: Improvements for MacOS X and Cygwin.
28578         * lib/localename.h (gl_locale_name_environ): New declaration.
28579         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28580         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28581         (gl_locale_name_posix): Invoke it.
28582         (gl_locale_name_default): Add comments. Use Windows native API also on
28583         Cygwin.
28584
28585 2009-12-21  Bruno Haible  <bruno@clisp.org>
28586
28587         Update list of Win32 locale ids.
28588         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28589         (LANG_SAMI): Renamed from LANG_SAAMI.
28590         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28591         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28592         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28593         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28594         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28595         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28596         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28597         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28598         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28599         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28600         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28601         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28602         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28603         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28604         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28605         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28606         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28607         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28608         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28609         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28610         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28611         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28612         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28613         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28614         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28615         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28616         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28617         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28618         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28619         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28620         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28621         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28622         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28623         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28624         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28625         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28626         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28627         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28628         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28629         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28630         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28631         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28632         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28633         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28634         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28635         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28636         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28637         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28638         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28639         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28640         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28641         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28642         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28643         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28644         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28645         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28646         Add more languages and countries for Sami, Sorbian. Add more countries
28647         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28648         for Pashto. Change country for Syriac, Tswana.
28649
28650 2009-12-21  Eric Blake  <ebb9@byu.net>
28651
28652         test-utimens: avoid spurious failure
28653         * tests/test-chown.h (nap): Factor...
28654         * tests/nap.h: ...into new file.
28655         * tests/test-lchown.h (nap): Avoid duplication.
28656         * tests/test-utimens-common.h (nap): Use shared implementation,
28657         necessary on file systems with 1-second resolution.
28658         * modules/chown-tests (Files): Include new file.
28659         * modules/fdutimensat-tests (Files): Likewise.
28660         * modules/futimens-tests (Files): Likewise.
28661         * modules/lchown-tests (Files): Likewise.
28662         * modules/openat-tests (Files): Likewise.
28663         * modules/utimens-tests (Files): Likewise.
28664         * modules/utimensat-tests (Files): Likewise.
28665
28666 2009-12-19  Eric Blake  <ebb9@byu.net>
28667
28668         futimens, utimensat: work around Linux bug
28669         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28670         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28671         * lib/utimensat.c (rpl_utimensat): Work around it.
28672         * lib/futimens.c (rpl_futimens): Adjust comment.
28673
28674         utimens: work around Linux ctime bug
28675         * lib/utimens.c (detect_ctime_bug): New helper function.
28676         (update_timespec): Differentiate between workaround needed for
28677         this bug vs. what is needed for systems that lack utimensat.
28678         (fdutimens, lutimens): Work around bug.
28679
28680         utimens: check for ctime update
28681         * tests/test-utimens-common.h (check_ctime): Define.
28682         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28683         * tests/test-futimens.h (test_futimens): Likewise.
28684         * tests/test-lutimens.h (test_lutimens): Likewise.
28685         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28686         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28687
28688 2009-12-19  Bruno Haible  <bruno@clisp.org>
28689
28690         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28691         * tests/test-dprintf-posix2.sh: New file.
28692         * tests/test-dprintf-posix2.c: New file.
28693         * modules/dprintf-posix-tests (Files): Add them.
28694         (configure.ac): Check for getrlimit and setrlimit.
28695         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28696
28697 2009-12-19  Bruno Haible  <bruno@clisp.org>
28698
28699         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28700         * tests/test-fprintf-posix3.sh: New file.
28701         * tests/test-fprintf-posix3.c: New file.
28702         * modules/fprintf-posix-tests (Files): Add them.
28703         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28704
28705 2009-12-19  Eric Blake  <ebb9@byu.net>
28706
28707         dirfd: fix prototype
28708         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28709         * lib/dirfd.c (dirfd): Likewise.
28710
28711         canonicalize: reduce memory usage
28712         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28713         allocation to size.
28714         Reported by Solar Designer <solar@openwall.com>.
28715
28716 2009-12-19  Bruno Haible  <bruno@clisp.org>
28717
28718         New module attribute 'Applicability'.
28719         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28720         * gnulib-tool: New option --extract-applicability.
28721         (func_usage): Document it.
28722         (sed_extract_prog): Recognize it.
28723         (func_get_applicability): New function.
28724         (func_import): Generalize handling of 'link-warning' module.
28725         * modules/link-warning (Applicability): New section.
28726         * modules/arg-nonnull (Applicability): New section.
28727         Repoted by Simon Josefsson <simon@josefsson.org>.
28728
28729 2009-12-19  Bruno Haible  <bruno@clisp.org>
28730
28731         fflush: tweak
28732         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28733         * lib/fseeko.c (rpl_fseeko): Likewise.
28734
28735 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28736
28737         * lib/gl_list.h: Fix typo in comment.
28738
28739 2009-12-16  Eric Blake  <ebb9@byu.net>
28740
28741         fcntl: use to simplify other modules
28742         * modules/cloexec (Depends-on): Add fcntl.
28743         * modules/fchdir (Depends-on): Likewise.
28744         * modules/fd-safer-flag (Depends-on): Likewise.
28745         * modules/unistd-safer (Depends-on): Likewise.
28746         * modules/dup3 (configure.ac): Set module indicator.
28747         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28748         missing.
28749         * lib/fchdir.c (_gl_register_dup): Fix comment.
28750         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28751         * lib/dup-safer.c (dup_safer): Likewise.
28752         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28753         * lib/dup3.c (dup3): Likewise.
28754         * tests/test-fchdir.c (main): Enhance test.
28755         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28756
28757         fcntl: port portions of fcntl to mingw
28758         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28759         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28760         replacement for mingw.
28761         * modules/fcntl (Description): Update.
28762         (Depends-on): Add dup2.
28763         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28764         * modules/fcntl-h (Makefile.am): Substitute it.
28765         * lib/fcntl.in.h (fcntl): Update declaration.
28766         (F_DUPFD, F_GETFD): New macros, when needed.
28767         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28768         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28769         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28770         we now guarantee.
28771
28772         fcntl: work around cygwin bug in F_DUPFD
28773         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28774         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28775         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28776         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28777         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28778
28779         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28780         * modules/fcntl (Files): List new files.
28781         (configure.ac): Run a test.
28782         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28783         * lib/fcntl.c (rpl_fcntl): Likewise.
28784         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28785         (gl_FCNTL_H): Always replace fcntl.h.
28786         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28787         * lib/fcntl.in.h (fcntl): Declare replacement.
28788         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28789         needed, plus a witness.
28790         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28791         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28792         * tests/test-fcntl.c: New file.
28793         * modules/fcntl-tests: Likewise.
28794
28795         binary-io: avoid potential compilation warning
28796         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28797         directives.
28798
28799         fflush: avoid compilation error on NetBSD
28800         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28801         between off_t and fpos_t, since the latter is sometimes a struct.
28802         * lib/fseeko.c (rpl_fseeko): Likewise.
28803         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28804
28805 2009-12-15  Eric Blake  <ebb9@byu.net>
28806
28807         fcntl-h, stdio, sys_ioctl: fix declarations
28808         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28809         function must not take arguments.
28810         * lib/sys_ioctl.in.h (ioctl): Likewise.
28811         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28812         (open): Add a link warning.
28813
28814 2009-12-15  Jim Meyering  <meyering@redhat.com>
28815
28816         areadlink, areadlink-with-size: relax license to LGPLv2+
28817         * modules/areadlink (License): Relax to LGPLv2+.
28818         * modules/areadlink-with-size (License): Likewise.
28819
28820 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28821             Bruno Haible  <bruno@clisp.org>
28822
28823         *printf: Fix memory leak.
28824         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28825         * lib/vfprintf.c (vfprintf): Likewise.
28826         * lib/dprintf.c (dprintf): Likewise.
28827         * lib/vdprintf.c (vdprintf): Likewise.
28828
28829 2009-12-14  Eric Blake  <ebb9@byu.net>
28830
28831         accept4: adjust module dependencies
28832         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28833
28834         utimens: one more try at avoiding compiler warning
28835         * lib/utimens.c (lutimens): Lower scope of result.
28836
28837 2009-12-13  Bruno Haible  <bruno@clisp.org>
28838
28839         Move the malloc checking from module 'list' to new module 'xlist'.
28840         * modules/xlist: New file.
28841         * lib/gl_xlist.h: New file.
28842         * lib/gl_xlist.c: New file.
28843         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28844         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28845         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28846         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28847         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28848         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28849         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28850         gl_sortedlist_nx_add): New declarations.
28851         (struct gl_list_implementation): Rename and change methods accordingly.
28852         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28853         (gl_list_nx_create): Renamed from gl_list_create.
28854         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28855         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28856         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28857         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28858         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28859         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28860         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28861         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28862         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28863         gl_list_create_empty.
28864         (gl_list_nx_create): Renamed from gl_list_create.
28865         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28866         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28867         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28868         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28869         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28870         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28871         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28872         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28873         * lib/gl_array_list.c: Don't include xalloc.h.
28874         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28875         NULL upon out-of-memory.
28876         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28877         out-of-memory.
28878         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28879         Change return type to 'int'.
28880         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28881         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28882         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28883         upon out-of-memory.
28884         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28885         upon out-of-memory.
28886         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28887         upon out-of-memory.
28888         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28889         upon out-of-memory.
28890         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28891         out-of-memory.
28892         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28893         Update.
28894         (gl_array_list_implementation): Update.
28895         * lib/gl_carray_list.c: Don't include xalloc.h.
28896         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28897         Return NULL upon out-of-memory.
28898         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28899         out-of-memory.
28900         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28901         Change return type to 'int'.
28902         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28903         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28904         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28905         upon out-of-memory.
28906         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28907         upon out-of-memory.
28908         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28909         out-of-memory.
28910         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28911         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28912         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28913         Update.
28914         (gl_carray_list_implementation): Update.
28915         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28916         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28917         gl_linked_create_empty. Return NULL upon out-of-memory.
28918         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28919         out-of-memory.
28920         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28921         Change return type to 'int'. Return -1 upon out-of-memory.
28922         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28923         out-of-memory.
28924         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28925         upon out-of-memory.
28926         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28927         upon out-of-memory.
28928         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28929         NULL upon out-of-memory.
28930         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28931         upon out-of-memory.
28932         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28933         out-of-memory.
28934         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28935         Update.
28936         * lib/gl_linked_list.c: Don't include xalloc.h.
28937         (gl_linked_list_implementation): Update.
28938         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28939         (add_to_bucket): Change return type to 'int'.
28940         (gl_linkedhash_list_implementation): Update.
28941         * lib/gl_anytree_list1.h (free_subtree): New function.
28942         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28943         gl_tree_create_empty. Return NULL upon out-of-memory.
28944         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28945         Change return type to 'int'. Return -1 upon out-of-memory.
28946         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28947         out-of-memory.
28948         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28949         (gl_tree_remove_node): New function, moved here from
28950         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28951         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28952         Update.
28953         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28954         malloc, not xmalloc. Return NULL upon out-of-memory.
28955         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28956         out-of-memory.
28957         (gl_tree_remove_node_from_tree): New function, extracted from
28958         gl_tree_remove_node.
28959         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28960         upon out-of-memory.
28961         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28962         out-of-memory.
28963         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28964         upon out-of-memory.
28965         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28966         upon out-of-memory.
28967         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28968         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28969         not xmalloc. Return NULL upon out-of-memory.
28970         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28971         out-of-memory.
28972         (gl_tree_remove_node_from_tree): New function, extracted from
28973         gl_tree_remove_node.
28974         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28975         upon out-of-memory.
28976         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28977         out-of-memory.
28978         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28979         upon out-of-memory.
28980         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28981         upon out-of-memory.
28982         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28983         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28984         gl_anytree_list1.h before gl_anyavltree_list2.h.
28985         (gl_avltree_list_implementation): Update.
28986         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28987         gl_anytree_list1.h before gl_anyavltree_list2.h.
28988         (gl_rbtree_list_implementation): Update.
28989         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28990         Change return type to 'int'. Return -1 upon out-of-memory. Use
28991         __builtin_expect.
28992         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28993         (gl_avltreehash_list_implementation): Update.
28994         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28995         (gl_rbtreehash_list_implementation): Update.
28996         * modules/array-list (Depends-on): Remove xalloc.
28997         * modules/carray-list (Depends-on): Likewise.
28998         * modules/linked-list (Depends-on): Likewise.
28999         * modules/linkedhash-list (Depends-on): Likewise.
29000         * modules/avltree-list (Depends-on): Likewise.
29001         * modules/rbtree-list (Depends-on): Likewise.
29002         * modules/avltreehash-list (Depends-on): Likewise.
29003         * modules/rbtreehash-list (Depends-on): Likewise.
29004
29005         * modules/xsublist: New file.
29006         * lib/gl_xsublist.h: New file.
29007         * lib/gl_xsublist.c: New file.
29008         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29009         (gl_sublist_nx_create): New declaration.
29010         * lib/gl_sublist.c: Don't include xalloc.h.
29011         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29012         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29013         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29014         Change return type to 'int'. Return -1 upon out-of-memory.
29015         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29016         upon out-of-memory.
29017         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29018         NULL upon out-of-memory.
29019         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29020         upon out-of-memory.
29021         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29022         NULL upon out-of-memory.
29023         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29024         NULL upon out-of-memory.
29025         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29026         upon out-of-memory.
29027         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29028         (gl_sublist_list_implementation): Update.
29029         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29030         upon out-of-memory.
29031         * modules/sublist (Depends-on): Remove xalloc.
29032
29033         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29034         * tests/test-carray_list.c: Likewise.
29035         * tests/test-linked_list.c: Likewise.
29036         * tests/test-linkedhash_list.c: Likewise.
29037         * tests/test-avltree_list.c: Likewise.
29038         * tests/test-rbtree_list.c: Likewise.
29039         * tests/test-avltreehash_list.c: Likewise.
29040         * tests/test-rbtreehash_list.c: Likewise.
29041         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29042         * modules/carray-list-tests (Makefile.am): Likewise.
29043         * modules/linked-list-tests (Makefile.am): Likewise.
29044         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29045         * modules/avltree-list-tests (Makefile.am): Likewise.
29046         * modules/rbtree-list-tests (Makefile.am): Likewise.
29047         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29048         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29049
29050         * NEWS: Mention the changes.
29051
29052         * lib/clean-temp.c: Include gl_xlist.h.
29053         * modules/clean-temp (Depends-on): Add xlist.
29054
29055         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29056         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29057
29058         * tests/test-array_oset.c: Include gl_xlist.h.
29059         * modules/array-oset-tests (Depends-on): Add xlist.
29060
29061         Reported by José E. Marchesi <jemarch@gnu.org>.
29062
29063 2009-12-13  Bruno Haible  <bruno@clisp.org>
29064
29065         Move the malloc checking from module 'oset' to new module 'xoset'.
29066         * modules/xoset: New file.
29067         * lib/gl_xoset.h: New file.
29068         * lib/gl_xoset.c: New file.
29069         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29070         declarations.
29071         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29072         (struct gl_oset_implementation): Rename and change methods accordingly.
29073         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29074         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29075         'int'. Mark as __warn_unused_result__.
29076         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29077         gl_oset_create_empty.
29078         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29079         'int'.
29080         * lib/gl_array_oset.c: Don't include xalloc.h.
29081         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29082         malloc, not xmalloc.
29083         (grow): Change return type to 'int'. Don't call xalloc_die.
29084         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29085         to 'int'.
29086         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29087         'int'.
29088         (gl_array_oset_implementation): Update.
29089         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29090         gl_tree_create_empty.
29091         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29092         'int'.
29093         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29094         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29095         xmalloc.
29096         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29097         not xmalloc.
29098         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29099         xmalloc.
29100         (gl_avltree_oset_implementation): Update.
29101         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29102         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29103         xmalloc.
29104         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29105         not xmalloc.
29106         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29107         xmalloc.
29108         (gl_rbtree_oset_implementation): Update.
29109         * modules/array-oset (Depends-on): Remove xalloc.
29110         * modules/avltree-oset (Depends-on): Likewise.
29111         * modules/rbtree-oset (Depends-on): Likewise.
29112         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29113         * tests/test-avltree_oset.c: Likewise.
29114         * tests/test-rbtree_oset.c: Likewise.
29115         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29116         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29117         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29118         * NEWS: Mention the change.
29119
29120 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29121
29122         maint.mk: allow a project to override release-prep commands
29123         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29124         commands into a new rule.
29125         (release-prep): New rule.
29126         (release-prep-hook): New overridable variable.
29127
29128 2009-12-13  Bruno Haible  <bruno@clisp.org>
29129
29130         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29131
29132 2009-12-13  Jim Meyering  <meyering@redhat.com>
29133
29134         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29135         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29136
29137 2009-12-12  Bruno Haible  <bruno@clisp.org>
29138
29139         duplocale: Tweak.
29140         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29141
29142 2009-12-12  Karl Berry  <karl@gnu.org>
29143
29144         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29145
29146 2009-12-12  Bruno Haible  <bruno@clisp.org>
29147
29148         * m4/po.m4: Undo incorrect untabification.
29149
29150 2009-12-12  Bruno Haible  <bruno@clisp.org>
29151
29152         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29153         * modules/c-strtod (Depends-on): Add locale.
29154         * modules/c-strtold (Depends-on): Likewise.
29155
29156 2009-12-12  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29159
29160 2009-12-11  Eric Blake  <ebb9@byu.net>
29161
29162         setenv: relax requirement in light of POSIX ruling
29163         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29164         not NULL.
29165         * tests/test-setenv.c (main): Relax test.
29166         * tests/test-unsetenv.c (main): Likewise.
29167         * doc/posix-functions/setenv.texi (setenv): Document this.
29168         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29169
29170 2009-12-11  Bruno Haible  <bruno@clisp.org>
29171
29172         New module 'fd-safer-flag'.
29173         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29174         * lib/dup-safer.c (dup_safer_flag): Remove function.
29175         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29176         * lib/fd-safer.c (fd_safer_flag): Remove function.
29177         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29178         * modules/cloexec (configure.ac): Drop indicator macro.
29179         * modules/fd-safer-flag: New file.
29180         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29181         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29182         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29183
29184 2009-12-11  Bruno Haible  <bruno@clisp.org>
29185
29186         Tests for module 'nl_langinfo'.
29187         * modules/nl_langinfo-tests: New file.
29188         * tests/test-nl_langinfo.sh: New file.
29189         * tests/test-nl_langinfo.c: New file.
29190
29191         New module 'nl_langinfo'.
29192         * lib/nl_langinfo.c: New file.
29193         * m4/nl_langinfo.m4: New file.
29194         * modules/nl_langinfo: New file.
29195         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29196
29197 2009-12-11  Bruno Haible  <bruno@clisp.org>
29198
29199         Tests for module 'langinfo'.
29200         * modules/langinfo-tests: New file.
29201         * tests/test-langinfo.c: New file.
29202
29203         New module 'langinfo'.
29204         * lib/langinfo.in.h: New file.
29205         * m4/langinfo_h.m4: New file.
29206         * modules/langinfo: New file.
29207         * doc/posix-headers/langinfo.texi: Mention the new module.
29208
29209 2009-12-11  Bruno Haible  <bruno@clisp.org>
29210
29211         * lib/config.charset: Untabify.
29212
29213 2009-12-11  Bruno Haible  <bruno@clisp.org>
29214
29215         * modules/unistd-safer (configure.ac): Drop indicator macro.
29216
29217 2009-12-11  Bruno Haible  <bruno@clisp.org>
29218
29219         Move pipe2-safer code to its own file.
29220         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29221         * lib/pipe-safer.c (pipe2_safer): Remove function.
29222         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29223         (Makefile.am): Add it to lib_SOURCES.
29224
29225 2009-12-10  Bruno Haible  <bruno@clisp.org>
29226
29227         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29228
29229 2009-12-10  Bruno Haible  <bruno@clisp.org>
29230
29231         Declare which arguments expect non-NULL values, for GCC and clang.
29232         * build-aux/arg-nonnull.h: New file.
29233         * modules/arg-nonnull: New file.
29234         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29235         (inet_ntop, inet_pton): Use it.
29236         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29237         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29238         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29239         (open, openat): Use it.
29240         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29241         (fnmatch): Use it.
29242         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29243         (getopt, getopt_long, getopt_long_only): Use it.
29244         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29245         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29246         Use it.
29247         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29248         (iconv_open): Use it.
29249         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29250         (strtoimax, strtoumax): Use it.
29251         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29252         (duplocale): Use it.
29253         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29254         (frexp, frexpl): Use it.
29255         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29256         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29257         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29258         (tsearch, tfind, tdelete, twalk): Use it.
29259         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29260         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29261         sigpending): Use it.
29262         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29263         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29264         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29265         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29266         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29267         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29268         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29269         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29270         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29271         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29272         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29273         Use it.
29274         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29275         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29276         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29277         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29278         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29279         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29280         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29281         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29282         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29283         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29284         strtoull, unsetenv): Use it.
29285         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29286         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29287         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29288         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29289         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29290         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29291         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29292         (strcasecmp, strncasecmp): Use it.
29293         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29294         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29295         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29296         rpl_setsockopt): Use it.
29297         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29298         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29299         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29300         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29301         (gettimeofday): Use it.
29302         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29303         (times): Use it.
29304         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29305         (uname): Use it.
29306         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29307         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29308         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29309         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29310         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29311         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29312         unlinkat, write): Use it.
29313         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29314         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29315         * lib/argv-iter.h: Include arg-nonnull.h.
29316         (_ATTRIBUTE_NONNULL_): Remove macro.
29317         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29318         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29319         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29320         optimization.
29321         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29322         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29323         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29324         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29325         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29326         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29327         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29328         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29329         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29330         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29331         * modules/dirent (Depends-on): Add arg-nonnull.
29332         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29333         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29334         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29335         * modules/fnmatch (Depends-on): Add arg-nonnull.
29336         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29337         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29338         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29339         * modules/glob (Depends-on): Add arg-nonnull.
29340         (Makefile.am): Insert arg-nonnull.h into glob.h.
29341         * modules/iconv_open (Depends-on): Add arg-nonnull.
29342         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29343         * modules/inttypes (Depends-on): Add arg-nonnull.
29344         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29345         * modules/locale (Depends-on): Add arg-nonnull.
29346         (Makefile.am): Insert arg-nonnull.h into locale.h.
29347         * modules/math (Depends-on): Add arg-nonnull.
29348         (Makefile.am): Insert arg-nonnull.h into math.h.
29349         * modules/netdb (Depends-on): Add arg-nonnull.
29350         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29351         * modules/search (Depends-on): Add arg-nonnull.
29352         (Makefile.am): Insert arg-nonnull.h into search.h.
29353         * modules/signal (Depends-on): Add arg-nonnull.
29354         (Makefile.am): Insert arg-nonnull.h into signal.h.
29355         * modules/spawn (Depends-on): Add arg-nonnull.
29356         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29357         * modules/stdio (Depends-on): Add arg-nonnull.
29358         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29359         * modules/stdlib (Depends-on): Add arg-nonnull.
29360         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29361         * modules/string (Depends-on): Add arg-nonnull.
29362         (Makefile.am): Insert arg-nonnull.h into string.h.
29363         * modules/strings (Depends-on): Add arg-nonnull.
29364         (Makefile.am): Insert arg-nonnull.h into strings.h.
29365         * modules/sys_socket (Depends-on): Add arg-nonnull.
29366         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29367         * modules/sys_stat (Depends-on): Add arg-nonnull.
29368         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29369         * modules/sys_time (Depends-on): Add arg-nonnull.
29370         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29371         * modules/sys_times (Depends-on): Add arg-nonnull.
29372         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29373         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29374         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29375         * modules/time (Depends-on): Add arg-nonnull.
29376         (Makefile.am): Insert arg-nonnull.h into time.h.
29377         * modules/unistd (Depends-on): Add arg-nonnull.
29378         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29379         * modules/wchar (Depends-on): Add arg-nonnull.
29380         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29381         * modules/argv-iter (Depends-on): Add arg-nonnull.
29382         * tests/test-canonicalize.c (null_ptr): New function.
29383         (main): Use it.
29384         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29385         (main): Use it.
29386         * tests/test-memmem.c (null_ptr): New function.
29387         (main): Use it.
29388         Reported by Jim Meyering.
29389
29390 2009-12-10  Bruno Haible  <bruno@clisp.org>
29391
29392         Use spaces for indentation, not tabs.
29393         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29394         * m4/*.m4: Untabify.
29395         * build-aux/*.h: Untabify.
29396         * tests/**/*.[hc]: Untabify.
29397         * README: New section "Indent with spaces, not TABs", based on
29398         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29399         * NEWS: Mention the change.
29400
29401 2009-12-10  Bruno Haible  <bruno@clisp.org>
29402
29403         pty test: Fix link error.
29404         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29405         test_pty_LDADD.
29406
29407 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29408
29409         * modules/pty: New file.
29410         * modules/pty-tests: New file.
29411         * m4/pty.m4: New file.
29412         * tests/test-pty.c: New file.
29413         * doc/glibc-headers/pty.texi: Modified.
29414         * doc/glibc-functions/forkpty.texi: Modified.
29415         * doc/glibc-functions/openpty.texi: Modified.
29416
29417 2009-12-10  Bruno Haible  <bruno@clisp.org>
29418
29419         Avoid syntax error in C++ mode.
29420         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29421
29422 2009-12-10  Bruno Haible  <bruno@clisp.org>
29423
29424         Use sed with option -e.
29425         * gnulib-tool (func_version, func_emit_copyright_notice,
29426         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29427         option -e to sed.
29428         * modules/link-warning (Makefile.am): Likewise.
29429
29430 2009-12-10  Jim Meyering  <meyering@redhat.com>
29431
29432         mgetgroups: do not write bytes beyond end of malloc'd buffer
29433         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29434         username, we call getgroups with a one-element-shorter buffer,
29435         but still told it the length was original, max_n_groups.
29436
29437 2009-12-09  Eric Blake  <ebb9@byu.net>
29438
29439         cloexec: relax license
29440         * modules/cloexec (Maintainer): Add myself.
29441         (License): Use LGPL, not GPL.
29442
29443         link-warning: optimize generation
29444         * modules/link-warning (Makefile.am): Reduce process usage.
29445
29446 2009-12-09  Bruno Haible  <bruno@clisp.org>
29447
29448         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29449         workaround was added on 2009-11-17.
29450
29451 2009-12-09  Jim Meyering  <meyering@redhat.com>
29452             Bruno Haible  <bruno@clisp.org>
29453
29454         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29455         * modules/link-warning (Makefile.am): Make the comment-removing sed
29456         command more robust in the face of bootstrap-prepended comment lines.
29457
29458 2009-12-09  Bruno Haible  <bruno@clisp.org>
29459
29460         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29461         most one group.
29462
29463 2009-12-09  Simon Josefsson <simon@josefsson.org>
29464             Bruno Haible  <bruno@clisp.org>
29465
29466         * build-aux/link-warning.h: Add copyright notice.
29467         * modules/link-warning (Makefile.am): Generate link-warning.h from
29468         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29469         * NEWS: Mention change in link-warning module.
29470         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29471         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29472         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29473         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29474         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29475         * modules/math (Makefile.am): Add dependency to math.h.
29476         * modules/search (Makefile.am): Add dependency to search.h.
29477         * modules/signal (Makefile.am): Add dependency to signal.h.
29478         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29479         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29480         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29481         * modules/string (Makefile.am): Add dependency to string.h.
29482         * modules/strings (Makefile.am): Add dependency to strings.h.
29483         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29484         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29485         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29486         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29487         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29488         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29489         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29490         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29491         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29492
29493 2009-12-09  Bruno Haible  <bruno@clisp.org>
29494
29495         fchdir: Optimize away rpl_fstat when possible.
29496         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29497         REPLACE_OPEN_DIRECTORY.
29498         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29499
29500 2009-12-09  Bruno Haible  <bruno@clisp.org>
29501
29502         * lib/fchdir.c: Update comment.
29503
29504 2009-12-09  Bruno Haible  <bruno@clisp.org>
29505
29506         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29507
29508 2009-12-08  Eric Blake  <ebb9@byu.net>
29509
29510         fchdir: avoid memory leak on re-registration.
29511         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29512
29513 2009-12-08  Jim Meyering  <meyering@redhat.com>
29514
29515         init.sh: avoid Solaris 10 /bin/sh portability problem
29516         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29517         sourced script:
29518           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29519           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29520           bar
29521         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29522         and two tests used that idiom.
29523         * tests/init.sh: Update suggested usage comments.
29524         (path_prepend_): New function, to be used in place
29525         of the --src-path=DIR option.
29526         (setup_): Move PATH-prepending code into path_prepend_.
29527         * tests/test-pread.sh: Adapt to new usage.
29528         * tests/test-xalloc-die.sh: Likewise.
29529
29530 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29531
29532         * doc/gnulib.texi (Glibc pty.h): Add.
29533         * doc/glibc-functions/forkpty.texi: Add.
29534         * doc/glibc-functions/openpty.texi: Add.
29535         Suggested by Bruno Haible.
29536
29537 2009-12-08  Eric Blake  <ebb9@byu.net>
29538
29539         fchdir: fix logic bugs
29540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29541         * tests/test-fchdir.c (main): Enhance test.
29542         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29543         is in use.
29544
29545         dup2: fix logic bugs
29546         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29547         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29548         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29549         exists.
29550         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29551
29552 2009-12-07  Eric Blake  <ebb9@byu.net>
29553
29554         unlink: fix m4 detection
29555         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29556
29557         unistd-safer: add unit test
29558         * modules/unistd-safer-tests: New file.
29559         * tests/test-dup-safer.c: Likewise.
29560         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29561         * tests/test-dup2.c (setmode): Likewise.
29562         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29563
29564         cloexec: preserve text vs. binary across dup_cloexec
29565         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29566         mode.
29567         * modules/dup2-tests (Depends-on): Add binary-io.
29568         * modules/cloexec-tests (Depends-on): Likewise.
29569         * tests/test-dup2.c (setmode, is_mode): New helpers.
29570         (main): Add tests that translation mode is preserved.
29571         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29572         Reported by Bruno Haible.
29573
29574         mgetgroups: reduce duplicate listings
29575         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29576         resulting array.
29577         * tests/test-chown.h (test_chown): Simplify client.
29578         * tests/test-lchown.h (test_lchown): Likewise.
29579
29580 2009-12-06  Bruno Haible  <bruno@clisp.org>
29581
29582         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29583         value.
29584
29585 2009-12-06  Bruno Haible  <bruno@clisp.org>
29586
29587         * lib/progname.c: Include stdio.h, stdlib.h.
29588         (set_program_name): Reject a NULL argument.
29589
29590 2009-12-05  Eric Blake  <ebb9@byu.net>
29591
29592         pipe2-safer: new module
29593         * modules/pipe2-safer: New file.
29594         * lib/unistd-safer.h (pipe2_safer): New prototype.
29595         * lib/unistd--.h (pipe2): New wrapper.
29596         * lib/pipe-safer.c (pipe2_safer): New function.
29597         * modules/pipe (Depends-on): Add pipe2-safer.
29598         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29599
29600         stdlib-safer: preserve cloexec flag for mkostemp[s]
29601         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29602         fd_safer_flag.
29603
29604         unistd-safer: allow preservation of cloexec status via flag
29605         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29606         prototypes.
29607         * lib/dup-safer.c (dup_safer_flag): New function.
29608         * lib/fd-safer.c (fd_safer_flag): Likewise.
29609         * modules/cloexec (configure.ac): Set witness.
29610
29611         test-dup2: enhance test
29612         * modules/dup2-tests (Depends-on): Add cloexec.
29613         * tests/test-dup2.c (main): Enhance test.
29614
29615         cloexec: add dup_cloexec
29616         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29617         header and comments.
29618         * lib/cloexec.c (set_cloexec_flag): Add comments.
29619         (dup_cloexec): New function, with mingw implementation borrowed
29620         from...
29621         * lib/w32spawn.h (dup_noinherit): ...here.
29622         * modules/execute (Depends-on): Add cloexec.
29623         * modules/pipe (Depends-on): Likewise.
29624         * modules/cloexec (Depends-on): Add dup2.
29625         * modules/cloexec-tests (Files): New file.
29626         * tests/test-cloexec.c: Likewise.
29627
29628         test-xalloc-die: fix test for mingw
29629         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29630         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29631         directory and .exe suffix off argv[0] output.
29632
29633         test-fseeko: fix test for mingw
29634         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29635         than undefining fseek, so test will pass on mingw.
29636
29637 2009-12-05  Bruno Haible  <bruno@clisp.org>
29638
29639         * lib/progname.h (set_program_name): Clarify specification.
29640         * lib/progname.c (set_program_name): Likewise.
29641         Reported by Jim Meyering.
29642
29643 2009-12-05  Jim Meyering  <meyering@redhat.com>
29644
29645         maint.mk: backslash-escape parens in default regexp
29646         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29647         backslash-escape the literal parentheses.
29648
29649         maint.mk: news-date-check: use grep -E
29650         * top/maint.mk (today): Define a Make variable, not a...
29651         (news-date-check): ...shell variable.
29652         (news-date-regexp): Use the Make variable.
29653         Use grep's -E option.  Change the failing diagnostic to mention
29654         the variable, $(news-date-regexp).
29655
29656 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29657
29658         maintainer-makefile: allow customization of NEWS entry format
29659         * top/maint.mk (news-date-regexp): New overridable variable.
29660         (news-date-check): Use it.
29661
29662 2009-12-04  Eric Blake  <ebb9@byu.net>
29663
29664         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29665         * lib/mgetgroups.h (xgetgroups): New prototype.
29666         * lib/mgetgroups.c (xgetgroups): New wrapper.
29667         (mgetgroups): Handle ENOSYS.
29668         * modules/mgetgroups (Depends-on): Add realloc.
29669         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29670
29671         mgetgroups: avoid argument promotion issues with -1
29672         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29673         for invalid gid_t.
29674         * tests/test-chown.h (getegid, test_chown): Likewise.
29675         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29676
29677 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29678
29679         exclude: Fix header file problems.
29680         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29681
29682 2009-12-01  Jim Meyering  <meyering@redhat.com>
29683
29684         fts: fts_open: do not let an empty string cause immediate failure
29685         This is required in support of GNU rm, for which the command
29686         "rm A '' B" must process and remove both A and B, in spite of
29687         the empty string argument.
29688         * lib/fts.c (fts_open): Do not let the presence of an empty string
29689         cause fts_open to fail immediately.  Most fts-using tools must be
29690         able to process all arguments, in order, and can be expected to
29691         diagnose such arguments themselves.
29692
29693 2009-11-30  Eric Blake  <ebb9@byu.net>
29694
29695         utimens: fix compilation error
29696         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29697         Declare variable at right scope.
29698
29699 2009-11-29  Jim Meyering  <meyering@redhat.com>
29700
29701         bootstrap: handle perl-5.11's changed --version output
29702         * build-aux/bootstrap (get_version): Handle perl separately,
29703         since perl-5.11's --version output is different.
29704
29705 2009-11-28  Jim Meyering  <meyering@redhat.com>
29706
29707         userspec: depend on the inttostr module, too
29708         * modules/userspec (Depends-on): Add inttostr.
29709
29710         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29711         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29712         number of MAXUID when it evaluates to (uid_t) -1.
29713         Likewise for group ID.  Reported by Matt McCutchen in
29714         <http://savannah.gnu.org/bugs/?28113>
29715
29716         userspec: reformat to use spaces, not TABs
29717         * lib/userspec.c: Expand TABs to spaces.
29718         Add Emacs' "indent-tabs-mode: nil" hint.
29719
29720 2009-11-27  Eric Blake  <ebb9@byu.net>
29721
29722         getopt-gnu: flush out another BSD bug
29723         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29724         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29725         flush out BSD bug.
29726         * tests/test-getopt.h (test_getopt): End lists with NULL.
29727         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29728         (test_getopt_long_posix): Enhance test.
29729         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29730         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29731         getopt-gnu.
29732         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29733         Likewise.
29734
29735 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29736
29737         * modules/idpriv-droptemp-tests (Notice): Fix text.
29738
29739 2009-11-27  Jim Meyering  <meyering@redhat.com>
29740
29741         test-xalloc-die: avoid spurious failure due to libtool argv difference
29742         In a libtool-enabled project, this test would fail due to a difference
29743         in the emitted program name, e.g.,
29744         -test-xalloc-die: memory exhausted
29745         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29746         Use program to avoid that.
29747         * modules/xalloc-die-tests (Depends-on): Add progname.
29748         * tests/test-xalloc-die.c: Include progname.h".
29749         (program_name): Remove decl.
29750         (main): Call set_program_name.
29751         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29752
29753 2009-11-26  Richard Jones  <rjones@redhat.com>
29754
29755         w32sock: leave win32 error in place.
29756         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29757
29758 2009-11-26  Eric Blake  <ebb9@byu.net>
29759
29760         init.sh: suggest to use skip_ and fail_ functions in comments
29761         * tests/init.sh: Add a sentence.
29762
29763 2009-11-25  Bruno Haible  <bruno@clisp.org>
29764
29765         init.sh: add documentation in comments
29766         * tests/init.sh: Add some developer and user documentation.
29767
29768 2009-11-26  Jim Meyering  <meyering@redhat.com>
29769
29770         init.sh: accommodate even those who specify bogus srcdir manually
29771         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29772         configure-time tests to be sanitized, so that there is no need to
29773         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29774         (with no double quotes) suffices.  However, since tests may be
29775         invoked manually, and since you may explicitly set srcdir to the
29776         name of a directory containing spaces, do quote its uses here.
29777         * tests/test-pread.sh: Likewise.
29778         Suggested by Bruno Haible.
29779
29780         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29781         * tests/test-pread.sh: Write no data into the pipe, because
29782         test-pread actually reads none.  This avoids a diagnostic,
29783         "bash: echo: write error: Broken pipe", that arises in the unusual
29784         event something is ignoring SIGPIPE, and might be interpreted
29785         as some sort of failure.  Reported by Bruno Haible.
29786
29787 2009-11-25  Jim Meyering  <meyering@redhat.com>
29788
29789         test-pread: cover failure with ESPIPE and EINVAL
29790         * tests/test-pread.c (main): Test for failure, too.
29791         * tests/test-pread.sh: Invoke with stdin on a pipe.
29792         Suggested by Eric Blake.
29793
29794         pread: improvement and fix
29795         * modules/pread (Depends-on): Depend on lseek, for portability to
29796         e.g., mingw.  Suggested by Eric Blake.
29797         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29798
29799         unistd.in.h: correct declaration of pread
29800         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29801         Reported by Richard W.M. Jones.
29802
29803         test-pread.sh: distribute the test script
29804         * modules/pread-tests (Files): Include test-pread.sh.
29805
29806         test-pread.sh: clean up
29807         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29808         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29809         That is unnecessary, since it's always ".".
29810         Suggestion from Eric Blake.
29811
29812         test-pread.sh: make executable
29813         * tests/test-pread.sh: Set executable bit.
29814         Reported by Eric Blake.
29815
29816         correct typo in test-pread.sh
29817         * tests/test-pread.sh: Add #! line.
29818
29819         test pread
29820         * tests/test-pread.c: New file.
29821         * tests/test-pread.sh: Likewise.
29822         * modules/pread-tests: Likewise.
29823
29824         pread: new module
29825         * modules/pread: New file.
29826         * lib/unistd.in.h (pread): Define/declare.
29827         * lib/pread.c (pread): New file.
29828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29829         * modules/unistd (Makefile.am): Substitute witnesses.
29830         * doc/posix-functions/pread.texi (pread): Update.
29831         * MODULES.html.sh: Add pread.
29832
29833 2009-11-25  Jim Meyering  <meyering@redhat.com>
29834
29835         tests/init.sh: new file to be used via most *.sh tests
29836         * tests/init.sh: New file.
29837
29838 2009-11-25  Eric Blake  <ebb9@byu.net>
29839
29840         utimens: work around older Linux failure with symlinks
29841         * lib/utimens.c (lutimensat_works_really): New variable.
29842         (fdutimens, lutimens): Use it to manage kernels that support
29843         nanosecond times on files, but not on symlinks.
29844         Reported by OndÅ™ej Vašík.
29845
29846         utimes: fix configure grammar
29847         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29848
29849 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29850
29851         regex: Fix fastmap for multibyte character ranges.
29852         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29853         characters when a multibyte character range is included.
29854
29855 2009-11-22  Andy Wingo  <wingo@pobox.com>
29856
29857         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29858         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29859
29860 2009-11-24  Bruno Haible  <bruno@clisp.org>
29861
29862         doc: Most *_l functions exist in MacOS X 10.5.
29863         * doc/posix-functions/duplocale.texi: Update platforms list.
29864         * doc/posix-functions/freelocale.texi: Likewise.
29865         * doc/posix-functions/newlocale.texi: Likewise.
29866         * doc/posix-functions/uselocale.texi: Likewise.
29867         * doc/posix-functions/isalnum_l.texi: Likewise.
29868         * doc/posix-functions/isalpha_l.texi: Likewise.
29869         * doc/posix-functions/isblank_l.texi: Likewise.
29870         * doc/posix-functions/iscntrl_l.texi: Likewise.
29871         * doc/posix-functions/isdigit_l.texi: Likewise.
29872         * doc/posix-functions/isgraph_l.texi: Likewise.
29873         * doc/posix-functions/islower_l.texi: Likewise.
29874         * doc/posix-functions/isprint_l.texi: Likewise.
29875         * doc/posix-functions/ispunct_l.texi: Likewise.
29876         * doc/posix-functions/isspace_l.texi: Likewise.
29877         * doc/posix-functions/isupper_l.texi: Likewise.
29878         * doc/posix-functions/iswalnum_l.texi: Likewise.
29879         * doc/posix-functions/iswalpha_l.texi: Likewise.
29880         * doc/posix-functions/iswblank_l.texi: Likewise.
29881         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29882         * doc/posix-functions/iswctype_l.texi: Likewise.
29883         * doc/posix-functions/iswdigit_l.texi: Likewise.
29884         * doc/posix-functions/iswgraph_l.texi: Likewise.
29885         * doc/posix-functions/iswlower_l.texi: Likewise.
29886         * doc/posix-functions/iswprint_l.texi: Likewise.
29887         * doc/posix-functions/iswpunct_l.texi: Likewise.
29888         * doc/posix-functions/iswspace_l.texi: Likewise.
29889         * doc/posix-functions/iswupper_l.texi: Likewise.
29890         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29891         * doc/posix-functions/isxdigit_l.texi: Likewise.
29892         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29893         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29894         * doc/posix-functions/strcoll_l.texi: Likewise.
29895         * doc/posix-functions/strfmon_l.texi: Likewise.
29896         * doc/posix-functions/strftime_l.texi: Likewise.
29897         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29898         * doc/posix-functions/strxfrm_l.texi: Likewise.
29899         * doc/posix-functions/tolower_l.texi: Likewise.
29900         * doc/posix-functions/toupper_l.texi: Likewise.
29901         * doc/posix-functions/towctrans_l.texi: Likewise.
29902         * doc/posix-functions/towlower_l.texi: Likewise.
29903         * doc/posix-functions/towupper_l.texi: Likewise.
29904         * doc/posix-functions/wcscoll_l.texi: Likewise.
29905         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29906         * doc/posix-functions/wctrans_l.texi: Likewise.
29907         * doc/posix-functions/wctype_l.texi: Likewise.
29908         * doc/glibc-functions/strptime_l.texi: Likewise.
29909         * doc/glibc-functions/strtod_l.texi: Likewise.
29910         * doc/glibc-functions/strtof_l.texi: Likewise.
29911         * doc/glibc-functions/strtol_l.texi: Likewise.
29912         * doc/glibc-functions/strtold_l.texi: Likewise.
29913         * doc/glibc-functions/strtoll_l.texi: Likewise.
29914         * doc/glibc-functions/strtoul_l.texi: Likewise.
29915         * doc/glibc-functions/strtoull_l.texi: Likewise.
29916         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29917         * doc/glibc-functions/wcstod_l.texi: Likewise.
29918         * doc/glibc-functions/wcstof_l.texi: Likewise.
29919         * doc/glibc-functions/wcstol_l.texi: Likewise.
29920         * doc/glibc-functions/wcstold_l.texi: Likewise.
29921         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29922         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29923         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29924
29925 2009-11-24  Bruno Haible  <bruno@clisp.org>
29926
29927         duplocale: Fix logic bug.
29928         * lib/duplocale.c: Don't include <langinfo.h>.
29929         (_NL_LOCALE_NAME): Remove macro.
29930         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29931         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29932
29933 2009-11-23  Jim Meyering  <meyering@redhat.com>
29934
29935         test-update-copyright: don't hard-code /usr/bin/perl
29936         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29937         perl to print the current year.  Gilles Espinasse reported that
29938         the replaced use of perl was hard-coded as /usr/bin/perl.
29939
29940 2009-11-23  Bruno Haible  <bruno@clisp.org>
29941
29942         duplocale: Add support for glibc 2.3.x.
29943         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29944
29945 2009-11-22  Bruno Haible  <bruno@clisp.org>
29946
29947         vasnprintf: Tiny optimization.
29948         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29949         MacOS X.
29950
29951 2009-11-22  Bruno Haible  <bruno@clisp.org>
29952
29953         Tests for module 'duplocale'.
29954         * modules/duplocale-tests: New file.
29955         * tests/test-duplocale.c: New file.
29956
29957         New module 'duplocale'.
29958         * m4/duplocale.m4: New file.
29959         * lib/locale.in.h (duplocale): New declaration.
29960         * lib/duplocale.c: New file.
29961         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29962         gl_LOCALE_H_DEFAULTS): New macros.
29963         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29964         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29965         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29966         REPLACE_DUPLOCALE.
29967         * modules/duplocale: New file.
29968         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29969
29970 2009-11-22  Bruno Haible  <bruno@clisp.org>
29971
29972         * modules/locale-tests (configure.ac): Test for newlocale function.
29973         * tests/test-locale.c: When the system has extended locale functions,
29974         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29975
29976         locale: Make locale_t available when possible.
29977         * lib/locale.in.h: Include <xlocale.h> when it exists.
29978         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29979         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29980         * modules/locale (Depends-on): Add extensions.
29981         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29982         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29983
29984 2009-11-22  Bruno Haible  <bruno@clisp.org>
29985
29986         Add comments.
29987         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29988         invocation.
29989         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29990         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29991         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29992
29993 2009-11-22  Bruno Haible  <bruno@clisp.org>
29994
29995         error: account for the possibility of freopen (stdout).
29996         * lib/error.c: Include <unistd.h>.
29997         (flush_stdout): New function, extracted from error and error_at_line.
29998         Determine stdout's fd dynamically.
29999         (error, error_at_line): Invoke flush_stdout.
30000         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30001         * modules/error (Depends-on): Add unistd.
30002
30003 2009-11-22  Bruno Haible  <bruno@clisp.org>
30004
30005         diffseq: Add comment.
30006         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30007
30008 2009-11-22  Jim Meyering  <meyering@redhat.com>
30009
30010         c-stack: avoid defining an unused static function
30011         * lib/c-stack.c (find_stack_direction): Do not define this function
30012         when it will not be used.
30013
30014         diffseq: avoid spurious gcc warnings
30015         * lib/diffseq.h (IF_LINT2): Define.
30016         (compareseq): Use it to initialize two members of "part".
30017         This avoids two used-uninitialized warnings.
30018
30019 2009-11-21  Jim Meyering  <meyering@redhat.com>
30020
30021         c-stack: avoid "ignoring return value of `write'" warning
30022         * lib/c-stack.c: Include "ignore-value.h".
30023         (die): Explicitly ignore each write return value.
30024         * modules/c-stack (Depends-on): Add ignore-value.
30025
30026 2009-11-21  Bruno Haible  <bruno@clisp.org>
30027
30028         diffseq: reduce scope of variable 'best'.
30029         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30030         variable, earlier used for two different purposes.
30031
30032 2009-11-21  Jim Meyering  <meyering@redhat.com>
30033
30034         diffseq: remove useless assignment to "best"
30035         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30036         assignment.  At that point "best" is already guaranteed to be zero.
30037
30038 2009-11-20  Eric Blake  <ebb9@byu.net>
30039
30040         build: mention ftp redirector in release announcements
30041         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30042         values that used to come from cfg.mk; mention FTP redirect URL.
30043         * build-aux/announce-gen: Mention the mirror list.
30044         Suggested by Karl Berry.
30045
30046         nanosleep: improve port to mingw
30047         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30049         LIB_NANOSLEEP, but only when needed.
30050         * modules/select (Link): Document LIBSOCKET.
30051         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30052         enough.
30053
30054         nanosleep: work around cygwin bug
30055         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30056         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30057         bug.
30058         (getnow): Delete, not needed.
30059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30060         LIB_CLOCK_GETTIME.
30061         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30062         clock-time, gettime.
30063         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30064         bug.
30065         * modules/nanosleep-tests: New test.
30066         * tests/test-nanosleep.c: New file.
30067
30068         sleep: work around cygwin bug
30069         * lib/sleep.c (rpl_sleep): Work around the bug.
30070         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30071         (gl_PREREQ_SLEEP): Delete unused macro.
30072         * modules/sleep (Depends-on): Add verify.
30073         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30074         * modules/unistd (Makefile.am): Substitute witness.
30075         * lib/unistd.in.h (sleep): Update prototype.
30076         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30077         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30078         * modules/sleep-tests (Depends-on): Check for alarm.
30079
30080 2009-11-20  Jim Meyering  <meyering@redhat.com>
30081
30082         maint.mk: improve sc_prohibit_magic_number_exit
30083         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30084         so it does not match uses like System.exit(1).
30085         Add comments showing how to correct all offenders.
30086
30087 2009-11-19  Eric Blake  <ebb9@byu.net>
30088
30089         xalloc-die-tests: add missing library
30090         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30091
30092         test-xvasprintf: silence compiler warnings
30093         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30094         empty string from gcc.
30095
30096 2009-11-19  Jim Meyering  <meyering@redhat.com>
30097
30098         xfreopen: new module, from coreutils
30099         * modules/xfreopen: New module.
30100         * lib/xfreopen.c: New file.
30101         * lib/xfreopen.h: New file.
30102         * MODULES.html.sh (File stream based Input/Output"): Add it.
30103
30104 2009-11-19  Eric Blake  <ebb9@byu.net>
30105
30106         manywarnings: depend on warnings
30107         * modules/manywarnings (Depends-on): Add warnings.
30108
30109         build: avoid compiler warnings
30110         * lib/select.c (rpl_select): Delete unused variable.
30111         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30112
30113 2009-11-18  Eric Blake  <ebb9@byu.net>
30114
30115         tests: avoid false negative with --with-packager
30116         * tests/test-version-etc.sh: Discard packager information.
30117         * tests/test-argp-version-etc-1.sh: Likewise.
30118         Reported by Mike Frysinger.
30119
30120         utimens: fix regression on Solaris
30121         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30122         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30123         can only change fd timestamps via futimesat.  Instead, use an
30124         additional witness macro to avoid BSD bug.
30125         Reported by Jim Meyering.
30126
30127 2009-11-17  Eric Blake  <ebb9@byu.net>
30128
30129         usleep: use it to simplify tests
30130         * modules/stat-time-tests (Depends-on): Add usleep.
30131         (configure.ac): Drop usleep check.
30132         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30133         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30134         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30135         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30136         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30137         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30138         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30139         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30140         Likewise.
30141         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30142         * tests/test-lchown.h (nap): Likewise.
30143         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30144         * tests/test-stat-time.c (nap): Likewise.
30145         * tests/test-utimens-common.h (nap): Update comments.
30146
30147         usleep: new module
30148         * modules/usleep: New file.
30149         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30150         * lib/usleep.c (usleep): Likewise.
30151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30152         * modules/unistd (Makefile.am): Substitute witnesses.
30153         * lib/unistd.in.h (usleep): Add declaration.
30154         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30155         * MODULES.html.sh (Date and time): Likewise.
30156         * modules/usleep-tests (Depends-on): New test.
30157         * tests/test-usleep.c: New file.
30158
30159         chown: work around OpenBSD bug
30160         * lib/chown.c (rpl_chown): Work around the bug.
30161         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30162         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30163         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30164         * modules/chown (Depends-on): Add stdbool.
30165         * modules/lchown (Depends-on): Likewise.
30166         * doc/posix-functions/chown.texi (chown): Document the bug.
30167         * doc/posix-functions/lchown.texi (lchown): Likewise.
30168         * tests/test-lchown.h (test_chown): Relax test.
30169
30170         mkstemp: avoid conflict with C++ keyword template
30171         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30172         * lib/mkostemp.c (mkostemp): Likewise.
30173         * lib/mkostemps.c (mkostemps): Likewise.
30174         * lib/mkstemp.c (mkstemp): Likewise.
30175         * lib/mkstemps.c (mkstemps): Likewise.
30176
30177         xalloc-die-tests: optimize
30178         * tests/test-xalloc-die.sh: Reduce number of processes.
30179
30180 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30181
30182         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30183         patch from ludo@gnu.org (Ludovic Courtès).
30184
30185 2009-11-17  Jim Meyering  <meyering@redhat.com>
30186
30187         version-etc: use proper license string
30188         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30189         * modules/version-etc-fsf: Likewise.
30190
30191 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30192
30193         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30194         printed to stdout.  Deal with EOL differences.
30195
30196 2009-11-17  Eric Blake  <ebb9@byu.net>
30197
30198         unsetenv: work around Solaris bug
30199         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30200         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30201         Reported by Jim Meyering.
30202
30203         vasnprintf: avoid compiler warnings
30204         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30205         variables.
30206         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30207
30208 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30209
30210         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30211         settings since xalloc-die is no longer the self test,
30212         xalloc-die.sh is.
30213
30214 2009-11-17  Jim Meyering  <meyering@redhat.com>
30215
30216         test-xalloc-die.sh: make the code agree with the commit log
30217         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30218         at the end, just in case you happen to have a test-xalloc-die
30219         program in some other PATH directory.
30220
30221         test-xalloc-die.sh: fix a portability bug
30222         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30223         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30224         Otherwise, argv[0] (as often seen in diagnostics) would be too
30225         system-dependent, sometimes with, and sometimes without the leading "./".
30226
30227         version-etc-fsf: relax license to LGPLv3+
30228         * modules/version-etc-fsf (License): Relax license.
30229
30230 2009-11-16  Eric Blake  <ebb9@byu.net>
30231
30232         xalloc-die-tests: avoid printing null pointer
30233         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30234         shell script.
30235         * tests/test-xalloc-die.c (program_name): Declare.
30236         * tests/test-xalloc-die.sh (tmpfiles): New file.
30237
30238         setenv, unsetenv: work around various bugs
30239         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30240         (setenv) [HAVE_SETENV]: Work around bugs.
30241         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30242         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30243         for bugs.
30244         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30245         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30247         * modules/stdlib (Makefile.am): Update substitutions.
30248         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30249         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30250         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30251         * modules/setenv-tests: New test.
30252         * modules/unsetenv-tests: Likewise.
30253         * tests/test-setenv.c: New file.
30254         * tests/test-unsetenv.c: Likewise.
30255
30256 2009-11-16  Jim Meyering  <meyering@redhat.com>
30257
30258         version-etc: relax license to LGPLv3+
30259         * modules/version-etc (License): Relax license.
30260
30261         better AC_REQUIRE expanded-before-required-warning avoidance
30262         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30263         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30264         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30265         which is no longer needed.
30266
30267 2009-11-16  Eric Blake  <ebb9@byu.net>
30268
30269         test-freading: clean up temporary file
30270         * tests/test-freading.c (main): Remove file on success, and use
30271         ASSERT more liberally.
30272         Reported by Jim Meyering.
30273
30274 2009-11-16  Jim Meyering  <meyering@redhat.com>
30275
30276         avoid new AC_REQUIRE expanded-before-required warnings
30277         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30278         merely using it.
30279         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30280         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30281
30282 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30283
30284         * tests/test-xalloc-die.c: New file.
30285         * modules/xalloc-die-tests: New file.
30286         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30287         XFAIL_TESTS so it can be appended by modules.
30288
30289 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30290
30291         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30292         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30293
30294 2009-11-14  Eric Blake  <ebb9@byu.net>
30295
30296         fnmatch: avoid compiler warning
30297         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30298         to silence compiler warning about mismatch signedness in ?:.
30299         Reported by Robert Millan.
30300
30301         intprops: add double-inclusion guard
30302         * lib/intprops.h: Allow idempotent includes.
30303         Suggested by Bruce Korb.
30304
30305         openat: detect Solaris fchownat bug
30306         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30307         penalizing glibc chownat when only lchownat is broken.
30308         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30309         trailing slash bugs.
30310         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30311         * modules/openat-tests (Files): Include more files.
30312         (Depends-on): Add mgetgroups, sleep, stat-time.
30313         (configure.ac): Add additional checks.
30314         (Makefile.am): Build new test.
30315         * tests/test-fchownat.c: New file.
30316
30317         lchown: detect Solaris and FreeBSD bug
30318         * lib/lchown.c (rpl_lchown): Work around bug.
30319         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30321         * modules/unistd (Makefile.am): Populate it.
30322         * lib/unistd.in.h (lchown): Update declaration.
30323         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30324         * modules/lchown-tests: New file.
30325         * tests/test-lchown.h (test_lchown): Likewise.
30326         * tests/test-lchown.c (main): Likewise.
30327
30328         chown: detect Solaris and FreeBSD bug
30329         * lib/chown.c (rpl_chown): Work around bug.
30330         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30331         (gl_PREREQ_CHOWN): Delete.
30332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30333         * modules/unistd (Makefile.am): Populate it.
30334         * lib/unistd.in.h (chown): Update declaration.
30335         * lib/lchown.c (chown): Update client.
30336         * modules/lchown (Depends-on): Add lstat.
30337         * doc/posix-functions/chown.texi (chown): Document the bug.
30338         * doc/posix-functions/getgroups.texi (getgroups): Document
30339         getgroups pitfall.
30340         * modules/chown-tests: New file.
30341         * tests/test-chown.h (test_chown): Likewise.
30342         * tests/test-chown.c (main): Likewise.
30343
30344 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30345
30346         gnulib-tool: correctly detect absence of m4 directories
30347         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30348
30349 2009-11-14  Jim Meyering  <meyering@redhat.com>
30350
30351         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30352         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30353
30354 2009-11-14  John W. Eaton  <jwe@gnu.org>
30355
30356         strftime.h: wrap funtion declaration in extern "C" block
30357         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30358
30359 2009-11-13  Eric Blake  <ebb9@byu.net>
30360
30361         getgroups: avoid compiler warning
30362         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30363
30364         getgroups: work around FreeBSD bug
30365         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30366         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30367         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30368         * tests/test-getgroups.c (main): Fix buffer overrun.
30369
30370         getgroups: avoid compilation failure
30371         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30372         * modules/getgroups (Depends-on): Add stdint.
30373
30374 2009-11-13  Jim Meyering  <meyering@redhat.com>
30375
30376         test-getgroups: avoid compilation failure
30377         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30378
30379 2009-11-13  Eric Blake  <ebb9@byu.net>
30380
30381         mgetgroups: new module, taken from coreutils
30382         * modules/mgetgroups: New file.
30383         * lib/mgetgroups.h: Likewise.
30384         * lib/mgetgroups.c (mgetgroups): Likewise.
30385         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30386         * MODULES.html.sh (Users and groups): Mention it.
30387
30388         getgroups: don't expose GETGROUPS_T to user
30389         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30390         an element at a time if GETGROUPS_T is wrong size.
30391         * lib/getugroups.h (getugroups): Change signature.
30392         * lib/unistd.in.h (getgroups): Likewise.
30393         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30394         signature needs fixing.
30395         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30396         AC_TYPE_GETGROUPS.
30397         * modules/group-member (Depends-on): Add getgroups.
30398         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30399         (group_member): Rely on getgroups replacement.
30400         * lib/getugroups.c (getugroups): Use gid_t.
30401         * tests/test-getgroups.c (main): Likewise.
30402         * NEWS: Mention the signature change.
30403         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30404         problem with signature.
30405         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30406         GETGROUPS_T is still useful for setgroups.
30407
30408         getgroups, getugroups: provide stubs for mingw
30409         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30410         * lib/getugroups.c (getugroups): Likewise.
30411         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30412         function.  Modernize replacement scheme.
30413         (gl_PREREQ_GETGROUPS): Delete.
30414         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30415         * modules/getgroups (configure.ac): Declare witness.
30416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30417         * modules/unistd (Depends-on): Substitute witness.
30418         * lib/unistd.in.h (getgroups): Declare replacement.
30419
30420         getgroups: avoid calling exit
30421         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30422         drop xalloc.
30423         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30424         dependencies.
30425         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30426         exiting, in the rare case of malloc failure.
30427
30428         getgroups: fix logic error
30429         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30430         has more than 20 groups.
30431         * modules/getgroups-tests: New test.
30432         * tests/test-getgroups.c: New file.
30433
30434 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30435
30436         * tests/test-base64.c: Improve.
30437
30438 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30439
30440         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30441         Blake <ebb9@byu.net>.
30442
30443 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30444
30445         * tests/test-xvasprintf.c: Add %s%s related checks.
30446
30447 2009-11-12  Eric Blake  <ebb9@byu.net>
30448
30449         version-etc: match standards.texi style
30450         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30451         and use <> only for URLs.
30452
30453 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30454
30455         fts: do not fail on a submount during traversal
30456         * lib/fts.c (fts_build): Read the stat info again after opening
30457         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30458         Original report at http://bugzilla.redhat.com/501848.
30459
30460 2009-11-12  Jim Meyering  <meyering@redhat.com>
30461
30462         bootstrap: sync from coreutils
30463         * build-aux/bootstrap (bootstrap_epilogue): New function.
30464         Use git_modules_config in one more place.  This make bootstrap's
30465         --gnulib-srcdir option more useful for testing.
30466
30467         bootstrap: generalize autoheader check
30468         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30469         AC_CONFIG_HEADERS.
30470
30471 2009-11-11  Eric Blake  <ebb9@byu.net>
30472
30473         mkfifoat: use new modules for Solaris and BSD bugs
30474         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30475         * lib/mkfifoat.c (mknodat): Split...
30476         * lib/mknodat.c (mknodat): ...into new file.
30477         * modules/mkfifoat (Files): Ship new file.
30478         (Depends-on): Add mkfifo, mknod.
30479         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30480         (Depends-on): Add symlink.
30481         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30482         redundant with test_mkfifo.h.
30483         (do_mkfifoat, do_mknodat): New helpers.
30484
30485         mknod: new module
30486         * modules/mknod: New file.
30487         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30488         * lib/mknod.c (mknod): Likewise.
30489         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30490         defaults.
30491         * modules/sys_stat (Makefile.am): Substitute them.
30492         * lib/sys_stat.in.h (mknod): Declare replacement.
30493         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30494         Document it.
30495         * doc/posix-functions/mknod.texi (mknod): Likewise.
30496         * modules/mknod-tests: New test.
30497         * tests/test-mknod.c: Likewise.
30498
30499         mkfifo: new module
30500         * modules/mkfifo: New file.
30501         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30502         * lib/mkfifo.c (mkfifo): Likewise.
30503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30504         defaults.
30505         * modules/sys_stat (Makefile.am): Substitute them.
30506         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30507         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30508         Document it.
30509         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30510         * modules/mkfifo-tests: New test.
30511         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30512         from test-mkfifoat.c.
30513         * tests/test-mkfifo.c: New file.
30514
30515         readlink: detect FreeBSD bug
30516         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30517         slash on symlink.
30518         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30519         * tests/test-readlink.h (test_readlink): Enhance test.
30520
30521         symlink: detect FreeBSD bug
30522         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30523         slash on symlink.
30524         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30525         * tests/test-symlink.h (test_symlink): Enhance test.
30526
30527 2009-11-10  Eric Blake  <ebb9@byu.net>
30528
30529         link: detect FreeBSD bug
30530         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30531         symlink.
30532         * doc/posix-functions/link.texi (link): Document the bug.
30533         * tests/test-link.h (test_link): Enhance test.
30534         * tests/test-linkat.c (main): Update caller.
30535
30536         unlink, remove: detect FreeBSD bug
30537         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30538         slash on symlink.
30539         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30540         * doc/posix-functions/remove.texi (remove): Likewise.
30541         * tests/test-unlink.h (test_unlink): Enhance test.
30542         * tests/test-remove.c (main): Likewise.
30543
30544 2009-11-09  Eric Blake  <ebb9@byu.net>
30545
30546         rename: detect FreeBSD bug
30547         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30548         slash on symlink.
30549         * modules/renameat-tests (Depends-on): Add filenamecat.
30550         * tests/test-rename.h (test_rename): Allow one more errno.
30551         * tests/test-renameat.c (main): Likewise.
30552         * doc/posix-functions/rename.texi (rename): Document the bug.
30553
30554         open: detect FreeBSD bug
30555         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30556         symlink.
30557         * doc/posix-functions/open.texi (open): Document the bug.
30558         * doc/posix-functions/utimes.texi (utimes): Likewise.
30559         * tests/test-open.h (test_open): Add parameters, and test symlink
30560         handling.
30561         * tests/test-open.c (main): Adjust caller.
30562         * tests/test-fcntl-safer.c (main): Likewise.
30563         * modules/open-tests (Depends-on): Add stdbool, symlink.
30564         * modules/fcntl-safer-tests (Depends-on): Likewise.
30565         * tests/test-openat.c (main): Add test-open tests.
30566
30567         stat: detect FreeBSD bug
30568         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30569         symlink.
30570         * doc/posix-functions/stat.texi (stat): Document the bug.
30571         * tests/test-stat.h (test_stat_func): Add argument.
30572         * tests/test-stat.c (main): Adjust caller.
30573         * tests/test-fstatat.c (main): Likewise.
30574         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30575         Reported by Jim Meyering.
30576
30577 2009-11-09  James Youngman  <jay@gnu.org>
30578
30579         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30580         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30581
30582 2009-11-08  Jim Meyering  <meyering@redhat.com>
30583
30584         utimens: remove invalid futimesat call
30585         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30586         It used the file descriptor of the target file as the DIR_FD
30587         parameter and NULL as the file name.  That caused failure with
30588         errno == EFAULT on FreeBSD-8.0-rc2
30589
30590 2009-11-07  Eric Blake  <ebb9@byu.net>
30591
30592         fflush, freadseek: use fseeko, not fseek
30593         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30594         (clear_ungetc_buffer): Avoid potential problems on large files.
30595         * lib/freadseek.c (freadseek): Likewise.
30596         * modules/freadseek (Depends-on): Add fseeko.
30597         * modules/fseek (configure.ac): Set a witness.
30598         * tests/test-fflush.c (main): Use fseeko.
30599         * tests/test-fpurge.c (fseek): Disable link warning.
30600         * tests/test-freadable.c (fseek): Likewise.
30601         * tests/test-freading.c (fseek): Likewise.
30602         * tests/test-fseeko.c (fseek): Likewise.
30603         * tests/test-ftell.c (fseek): Likewise.
30604         * tests/test-ftello.c (fseek): Likewise.
30605         * tests/test-fwritable.c (fseek): Likewise.
30606         * tests/test-fwriting.c (fseek): Likewise.
30607
30608 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30609
30610         * modules/memchr (Depends-on): Drop getpagesize dependency.
30611
30612 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30613
30614         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30615         Reported by Ludovic Courtès.
30616         * build-aux/pmccabe2html: Improve example usage.
30617         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30618
30619 2009-11-06  Jim Meyering  <meyering@redhat.com>
30620
30621         do-release-commit-and-tag: New module.
30622         Automate the release-commit and tag process.
30623         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30624         * modules/do-release-commit-and-tag: New file.
30625         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30626
30627 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30628
30629         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30630         because test-select.c uses inet_pton.
30631
30632 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30633
30634         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30635         GETADDRINFO_LIB.  Bump serial number.
30636         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30637         Suggested by Eric Blake <ebb9@byu.net>.
30638
30639 2009-11-05  Eric Blake  <ebb9@byu.net>
30640
30641         strtod: detect darwin bug
30642         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30643         Reported by Leo Davis.
30644
30645         freopen-safer: new module
30646         * modules/freopen-safer: New module.
30647         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30648         * lib/freopen-safer.c (freopen_safer): New file.
30649         * lib/stdio-safer.h (freopen_safer): New declaration.
30650         * lib/stdio--.h (freopen): New override.
30651         * MODULES.html.sh (File stream based Input/Output): Mention it.
30652         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30653         freopen-safer module.
30654         * doc/posix-functions/stderr.texi (stderr): Likewise.
30655         * doc/posix-functions/stdin.texi (stdin): Likewise.
30656         * doc/posix-functions/stdout.texi (stdout): Likewise.
30657         * modules/freopen-safer-tests: New test.
30658         * tests/test-reopen-safer.c: New file.
30659
30660 2009-11-05  Jim Meyering  <meyering@redhat.com>
30661
30662         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30663         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30664
30665 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30666
30667         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30668
30669 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30670
30671         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30672
30673 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30674
30675         Fix link error.
30676         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30677         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30678
30679 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30680
30681         * tests/test-func.c: Also test value of __func__.
30682
30683 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30684
30685         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30686         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30687
30688 2009-11-05  Bruno Haible  <bruno@clisp.org>
30689
30690         Fix link error.
30691         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30692         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30693         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30694
30695 2009-11-05  Bruno Haible  <bruno@clisp.org>
30696
30697         Tests for module 'inet_pton'.
30698         * modules/inet_pton-tests: New file.
30699         * tests/test-inet_pton.c: New file.
30700
30701 2009-11-05  Bruno Haible  <bruno@clisp.org>
30702
30703         Tests for module 'inet_ntop'.
30704         * modules/inet_ntop-tests: New file.
30705         * tests/test-inet_ntop.c: New file.
30706
30707 2009-11-04  Eric Blake  <ebb9@byu.net>
30708
30709         stdlib-safer: wrap all mkstemp variants
30710         * modules/mkostemp (configure.ac): Set witness.
30711         * modules/mkostemps (configure.ac): Likewise.
30712         * modules/mkstemps (configure.ac): Likewise.
30713         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30714         (mkstemps_safer): Wrap more functions.
30715         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30716         wrapping.
30717         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30718         (mkstemps_safer): Implement the wrappers.
30719
30720         mkstemps, mkostemps: new modules
30721         * modules/mkostemps: New module.
30722         * modules/mkstemps: Likewise.
30723         * lib/mkostemps.c (mkostemps): New file.
30724         * lib/mkstemps.c (mkstemps): Likewise.
30725         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30726         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30728         * modules/stdlib (Makefile.am): Substitute them.
30729         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30730         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30731         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30732         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30733         * MODULES.html.sh (File system functions): Mention them.
30734
30735         tempname: resync from glibc
30736         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30737         same values for __GT_FILE as glibc.  Abort even when assertions
30738         are disabled.
30739         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30740         match its value otherwise.  Allow idempotent inclusion.
30741         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30742         * lib/mkostemp.c (mkostemp): Likewise.
30743         * lib/mkstemp.c (mkstemp): Likewise.
30744         * lib/tmpfile.c (tmpfile): Likewise.
30745         * NEWS: Document this.
30746
30747         utimens: fix use of futimens on older Linux
30748         * lib/utimens.c (fdutimens): Use updated, rather than original,
30749         timespec to avoid bug in older Linux kernel.
30750         Reported by Simon Josefsson.
30751
30752 2009-11-04  Bruno Haible  <bruno@clisp.org>
30753
30754         Make num_processors more flexible and consistent.
30755         * lib/nproc.h (enum nproc_query): New type.
30756         (num_processors): Add a 'query' argument.
30757         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30758         (num_processors): Add a 'query' argument. Test the value of the
30759         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30760         mingw, count the number of CPUs available for the current process.
30761         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30762         Check for sched_getaffinity and sched_getaffinity_np.
30763         * modules/nproc (Depends-on): Add c-ctype, extensions.
30764         * NEWS: Mention the change.
30765
30766 2009-11-03  Bruno Haible  <bruno@clisp.org>
30767
30768         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30769
30770 2009-11-03  Jim Meyering  <meyering@redhat.com>
30771
30772         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30773         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30774         if it is defined.
30775
30776 2009-11-02  Eric Blake  <ebb9@byu.net>
30777
30778         mktime, timegm: share common declaration
30779         * lib/mktime-internal.h: New file.
30780         * lib/mktime.c: Use it rather than open-coding a declaration.
30781         * lib/timegm.c: Likewise.
30782         * modules/mktime (Files): Ship it.
30783         * modules/timegm (Files): Likewise.
30784         Suggested by Bruno Haible.
30785
30786         test-update-copyright: update test to match script changes
30787         * tests/test-update-copyright.sh: Avoid hard-coding perl
30788         location.  Don't update *.bak created by earlier runs.
30789
30790 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30791             Simon Josefsson  <simon@josefsson.org>
30792             Bruno Haible  <bruno@clisp.org>
30793
30794         Fix link error on Solaris 8.
30795         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30796         also in libnsl. Define also INET_PTON_LIB.
30797         * modules/inet_pton (Link): New section.
30798
30799 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30800             Bruno Haible  <bruno@clisp.org>
30801
30802         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30803         * modules/inet_ntop (Link): New section.
30804         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30805
30806 2009-11-02  Eric Blake  <ebb9@byu.net>
30807
30808         maint: avoid compiler warnings in m4 macros
30809         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30810         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30811
30812 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30813
30814         * m4/pmccabe2html.m4: Remove file.
30815         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30816         function.  Change maintainer.
30817         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30818         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30819         Courtès).
30820
30821 2009-10-31  Eric Blake  <ebb9@byu.net>
30822
30823         fseeko: fix m4 regression
30824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30825         regression from 2009-10-27.
30826         Reported by Ralf Wildenhues.
30827
30828 2009-10-31  Jim Meyering  <meyering@redhat.com>
30829
30830         inttostr: aesthetics and improved (compile-time) safety
30831         Define inttype_is_signed rather than inttype_is_unsigned,
30832         since the sole use is via "#if inttype_is_signed".
30833         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30834         inttype_is_unsigned.
30835         * lib/offtostr.c (inttype_is_signed): Likewise.
30836         * lib/uinttostr.c (inttype_is_signed): Likewise.
30837         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30838         * lib/inttostr.c (inttostr): Use verify to cross-check the
30839         inttype_is_signed value and the signedness of the actual type.
30840         * modules/inttostr (Depends-on): Add verify.
30841
30842 2009-10-30  Eric Blake  <ebb9@byu.net>
30843
30844         build: avoid compiler warnings
30845         * lib/fchmodat.c (lchmod): Mark unused variables.
30846         * lib/getopt.c (_getopt_initialize): Likewise.
30847         * lib/mktime.c (__mktime_internal): Provide prototype.
30848         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30849         older gcc that do not understand #pragma GCC diagnostic.
30850         * lib/uinttostr.c (inttype_is_unsigned): Define.
30851         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30852
30853 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30854
30855         stat: fix compilation on AIX
30856         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30857         only see struct stat64.
30858
30859 2009-10-30  Eric Blake  <ebb9@byu.net>
30860
30861         exclude: make more robust
30862         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30863         rather than masking a coding bug.
30864         Suggested by Bruno Haible.
30865
30866 2009-10-30  Jim Meyering  <meyering@redhat.com>
30867
30868         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30869         Rather than putting #!/usr/bin/perl on the first line,
30870         start with a variant of what's recommended by "man perlrun" that
30871         invokes the first "perl" program from your shell's search path.
30872         * build-aux/gitlog-to-changelog: Replace #!... as above.
30873         Add a "Local Variables" perl mode setting.
30874         Prompted by a patch from Ludovic Courtès.
30875         Improved by Eric Blake.
30876         * build-aux/useless-if-before-free: Likewise.
30877         * build-aux/announce-gen: Likewise.
30878         * build-aux/update-copyright: Likewise.
30879
30880 2009-10-29  Eric Blake  <ebb9@byu.net>
30881
30882         filenamecat-lgpl: adjust clients
30883         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30884         filenamecat.
30885         * modules/renameat (Depends-on): Likewise.
30886
30887         filenamecat: split into filenamecat-lgpl
30888         * modules/filenamecat-lgpl: New module.
30889         * modules/filenamecat (Files): Move library-safe files into
30890         filenamecat-lgpl.
30891         (Depends-on): Add filenamecat-lgpl.
30892         (configure.ac): Declare witness.
30893         * lib/filenamecat.h (file_name_concat): Only declare when using
30894         GPL module.
30895         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30896         Move...
30897         * lib/filenamecat-lgpl.c: ...into new file.
30898         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30899         (gl_FILE_NAME_CONCAT): Use it.
30900         * MODULES.html.sh (File system functions): Mention new module.
30901
30902         argp: avoid memory leak
30903         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30904         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30905         base_name, since the latter malloc()s and can call exit().
30906         Leak introduced 2006-07-03.
30907
30908         dirname-lgpl: adjust clients that don't need full dirname
30909         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30910         * modules/filenamecat (Depends-on): Likewise.
30911         * modules/linkat (Depends-on): Likewise.
30912         * modules/mkancesdirs (Depends-on): Likewise.
30913         * modules/mkdir (Depends-on): Likewise.
30914         * modules/openat (Depends-on): Likewise.
30915         * modules/savewd (Depends-on): Likewise.
30916         * modules/rename (Depends-on): Likewise.
30917         (License): Relax license.
30918         * modules/mkdir-tests (Depends-on): Drop progname.
30919         (Makefile.am): Delete unneeded LDADD.
30920         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30921
30922         dirname: split into dirname-lgpl
30923         * modules/dirname-lgpl: New module.
30924         * modules/dirname (Files): Move library-safe files into
30925         dirname-lgpl.
30926         (Depends-on): Add dirname-lgpl.
30927         (configure.ac): Declare witness.
30928         * modules/double-slash-root (License): Relax license.
30929         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30930         module.
30931         * lib/dirname.c (dir_len, mdir_name): Move...
30932         * lib/dirname-lgpl.c: ...into new file.
30933         * lib/basename.c (last_component, base_len): Move...
30934         * lib/basename-lgpl.c: ...into new file.
30935         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30936         (gl_DIRNAME): Use it.
30937         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30938         Mention new module.
30939         * modules/dirname-tests (Depends-on): Add progname.
30940         * tests/test-dirname.c (program_name): Delete.
30941
30942         mkdir: make safe for libraries
30943         * modules/mkdir (Depends-on): Drop xalloc.
30944         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30945         exit.
30946
30947         tests: avoid some compiler warnings
30948         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30949         literals.
30950         * tests/test-memchr.c (main): Avoid type mismatch.
30951         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30952         * tests/test-base64.c (main): Likewise.
30953         * tests/test-getdelim.c (main): Likewise.
30954         * tests/test-gethostname.c (main): Likewise.
30955         * tests/test-getline.c (main): Likewise.
30956         * tests/test-netinet_in.c (main): Likewise.
30957         * tests/test-select.c (open_server_socket, main): Likewise.
30958         * tests/test-select-stdin.c (main): Likewise.
30959         * tests/test-sockets.c (main): Likewise.
30960         * tests/test-strsignal.c (main): Likewise.
30961         * tests/test-sys_select.c (main): Likewise.
30962         * tests/test-sys_socket.c (main): Likewise.
30963         * tests/test-u64.c (main): Likewise.
30964         * tests/test-xfprintf-posix.c (main): Likewise.
30965         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30966
30967         sockets: avoid compiler warning
30968         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30969
30970         maint: detect usage(1) and other suspicious exits
30971         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30972
30973 2009-10-29  Jim Meyering  <meyering@redhat.com>
30974
30975         timespec: long-to-int truncation could make timespec_cmp malfunction
30976         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30977         a multiple of 2^32 nanoseconds as no difference.
30978
30979 2009-10-28  Jim Meyering  <meyering@redhat.com>
30980
30981         fprintftime: wrap macro code argument in "do {...} while(0)"
30982         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30983         cpy macro must be a statement that can be followed by a semicolon.
30984         Now that the else clause contains a comment and is hence longer
30985         than one line, I require curly braces.  That in turn requires
30986         that we wrap this code block in the standard do...while(0).
30987
30988         fprintftime: remove stray semicolon from previous change
30989         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30990
30991         fprintftime: avoid a warning about ignored fwrite return value
30992         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30993         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30994         that is unsafe.
30995         * modules/fprintftime (Depends-on): Add ignore-value.
30996
30997         exclude: avoid an unwarranted warning
30998         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30999
31000 2009-10-27  Eric Blake  <ebb9@byu.net>
31001
31002         fseek: avoid compilation failure when fflush is replaced
31003         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31004         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31005         module is in use.
31006         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31007         module is not in use; since REPLACE_FSEEK worked otherwise.
31008         (GNULIB_FTELLO): Likewise for ftell.
31009         Reported by Ian Beckwith and others.
31010
31011 2009-10-27  Bruno Haible  <bruno@clisp.org>
31012
31013         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31014         Reported by Jim Meyering.
31015
31016 2009-10-27  Jim Meyering  <jim@meyering.net>
31017             Bruno Haible  <bruno@clisp.org>
31018
31019         Avoid warning despite dropping the return value of fwrite.
31020         * lib/unicodeio.c: Include ignore-value.h.
31021         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31022         * modules/unicodeio (Depends-on): Add ignore-value.
31023
31024 2009-10-26  Eric Blake  <ebb9@byu.net>
31025
31026         areadlinkat: fix fallback path
31027         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31028         pointer and zero.
31029
31030 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31031
31032         Use a better IO block size for modern systems
31033         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31034         * lib/md2.c: Likewise.
31035         * lib/md4.c: Likewise.
31036         * lib/md5.c: Likewise.
31037         * lib/sha1.c: Likewise.
31038         * lib/sha256.c: Likewise.
31039         * lib/sha512.c: Likewise.
31040
31041 2009-10-22  Eric Blake  <ebb9@byu.net>
31042
31043         tests: avoid several compiler warnings
31044         * tests/test-getcwd.c (main): Avoid buffer underflow.
31045         * tests/test-getdate.c (main): String literals are not safe with
31046         putenv, so use setenv.  Declare unused argument.
31047         * modules/getdate-tests (Depends-on): Add setenv.
31048         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31049         problems with string literals in char *.
31050         * tests/test-hash.c (main): Avoid shadowing declaration.
31051         (insert_new): Treat string literals as char const *.
31052         * tests/test-getopt.h (test_getopt): Likewise.
31053         (getopt_loop): Alter types to minimize casting elsewhere.
31054         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31055         (test_getopt_long_posix): Likewise.
31056         (do_getopt_long): Add wrapper to minimize casting.
31057         * tests/test-atexit.c (clear_temp_file): Use void.
31058         * tests/test-areadlink-with-size.c (main): Declare unused
31059         arguments.
31060         * tests/test-areadlink.c (main): Likewise.
31061         * tests/test-areadlinkat-with-size.c (main): Likewise.
31062         * tests/test-areadlinkat.c (main): Likewise.
31063         * tests/test-canonicalize-lgpl.c (main): Likewise.
31064         * tests/test-canonicalize.c (main): Likewise.
31065         * tests/test-dirent-safer.c (main): Likewise.
31066         * tests/test-dirname.c (main): Likewise.
31067         * tests/test-dup2.c (main): Likewise.
31068         * tests/test-fchdir.c (main): Likewise.
31069         * tests/test-fcntl-h.c (main): Likewise.
31070         * tests/test-fcntl-safer.c (main): Likewise.
31071         * tests/test-fdopendir.c (main): Likewise.
31072         * tests/test-fdutimensat.c (main): Likewise.
31073         * tests/test-fflush.c (main): Likewise.
31074         * tests/test-filenamecat.c (main): Likewise.
31075         * tests/test-filevercmp.c (main): Likewise.
31076         * tests/test-fopen-safer.c (main): Likewise.
31077         * tests/test-fopen.c (main): Likewise.
31078         * tests/test-fpending.c (main): Likewise.
31079         * tests/test-fpurge.c (main): Likewise.
31080         * tests/test-freading.c (main): Likewise.
31081         * tests/test-fstatat.c (main): Likewise.
31082         * tests/test-fsync.c (main): Likewise.
31083         * tests/test-futimens.c (main): Likewise.
31084         * tests/test-getndelim2.c (main): Likewise.
31085         * tests/test-gettimeofday.c (main): Likewise.
31086         * tests/test-getopt.c (main): Likewise.
31087         * tests/test-i-ring.c (main): Likewise.
31088         * tests/test-inttypes.c (main): Likewise.
31089         * tests/test-link.c (main): Likewise.
31090         * tests/test-lstat.c (main): Likewise.
31091         * tests/test-math.c (main): Likewise.
31092         * tests/test-md5.c (main): Likewise.
31093         * tests/test-memchr2.c (main): Likewise.
31094         * tests/test-memrchr.c (main): Likewise.
31095         * tests/test-mkdir.c (main): Likewise.
31096         * tests/test-mkdirat.c (main): Likewise.
31097         * tests/test-mkfifoat.c (main): Likewise.
31098         * tests/test-open.c (main): Likewise.
31099         * tests/test-openat-safer.c (main): Likewise.
31100         * tests/test-openat.c (main): Likewise.
31101         * tests/test-quotearg.c (main): Likewise.
31102         * tests/test-rawmemchr.c (main): Likewise.
31103         * tests/test-readlink.c (main): Likewise.
31104         * tests/test-remove.c (main): Likewise.
31105         * tests/test-rename.c (main): Likewise.
31106         * tests/test-renameat.c (main): Likewise.
31107         * tests/test-rmdir.c (main): Likewise.
31108         * tests/test-sha1.c (main): Likewise.
31109         * tests/test-signal.c (main): Likewise.
31110         * tests/test-sigaction.c (main): Likewise.
31111         * tests/test-stat.c (main): Likewise.
31112         * tests/test-stat-time.c (main): Likewise.
31113         * tests/test-stddef.c (main): Likewise.
31114         * tests/test-stdint.c (main): Likewise.
31115         * tests/test-stdio.c (main): Likewise.
31116         * tests/test-stdlib.c (main): Likewise.
31117         * tests/test-strchrnul.c (main): Likewise.
31118         * tests/test-strerror.c (main): Likewise.
31119         * tests/test-string.c (main): Likewise.
31120         * tests/test-strtod.c (main): Likewise.
31121         * tests/test-strverscmp.c (main): Likewise.
31122         * tests/test-symlink.c (main): Likewise.
31123         * tests/test-symlinkat.c (main): Likewise.
31124         * tests/test-sys_stat.c (main): Likewise.
31125         * tests/test-sys_time.c (main): Likewise.
31126         * tests/test-time.c (main): Likewise.
31127         * tests/test-unistd.c (main): Likewise.
31128         * tests/test-unlink.c (main): Likewise.
31129         * tests/test-unlinkat.c (main): Likewise.
31130         * tests/test-utimens.c (main): Likewise.
31131         * tests/test-utimensat.c (main): Likewise.
31132         * tests/test-version-etc.c (main): Likewise.
31133         * tests/test-wchar.c (main): Likewise.
31134         * tests/test-wctype.c (main): Likewise.
31135         * tests/test-xprintf-posix.c (main): Likewise.
31136         * tests/test-posixtm.c (main): Likewise.
31137         (STREQ): Delete unused macro.
31138         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31139         shadowed variables.
31140         * tests/test-memchr.c (main): Likewise.
31141
31142 2009-10-21  Eric Blake  <ebb9@byu.net>
31143
31144         areadlinkat: avoid failure on older glibc
31145         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31146         rather than mis-comparing 0 against FUNC_RESULT of char*.
31147
31148 2009-10-21  Bruno Haible  <bruno@clisp.org>
31149
31150         * modules/stpncpy (License): Relicense under LGPLv2+.
31151         Reported by David Lutterkort <lutter@redhat.com>.
31152
31153 2009-10-20  Eric Blake  <ebb9@byu.net>
31154
31155         utimensat: work around Solaris 9 bug
31156         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31157         has trailing slash bugs.
31158         * tests/test-lutimens.h (test_lutimens): Enhance test.
31159         * tests/test-utimens.h (test_utimens): Likewise.
31160         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31161         * doc/posix-functions/utimes.texi (utimes): Likewise.
31162         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31163         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31164         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31165         * doc/posix-functions/futimens.texi (futimens): Likewise.
31166
31167         fdutimensat: new module
31168         * modules/fdutimensat: New file.
31169         * lib/fdutimensat.c (fdutimensat): Likewise.
31170         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31171         * MODULES.html.sh (File system functions): Mention module.
31172         * modules/fdutimensat-tests: New test.
31173         * tests/test-fdutimensat.c: Likewise.
31174
31175         doc: regenerate INSTALL
31176         * doc/INSTALL: Reflect recent autoconf update.
31177         * doc/INSTALL.ISO: Likewise.
31178         * doc/INSTALL.UTF-8: Likewise.
31179
31180 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31181
31182         acl: warn if ACL support is not detected
31183         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31184
31185 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31186
31187         * lib/nproc.h: Add extern "C" block for C++.
31188
31189 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31190             Bruno Haible  <bruno@clisp.org>
31191
31192         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31193         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31194         * doc/posix-functions/isalpha.texi: Likewise.
31195         * doc/posix-functions/isblank.texi: Likewise.
31196         * doc/posix-functions/iscntrl.texi: Likewise.
31197         * doc/posix-functions/isdigit.texi: Likewise.
31198         * doc/posix-functions/isgraph.texi: Likewise.
31199         * doc/posix-functions/islower.texi: Likewise.
31200         * doc/posix-functions/isprint.texi: Likewise.
31201         * doc/posix-functions/ispunct.texi: Likewise.
31202         * doc/posix-functions/isspace.texi: Likewise.
31203         * doc/posix-functions/isupper.texi: Likewise.
31204         * doc/posix-functions/isxdigit.texi: Likewise.
31205
31206 2009-10-18  Bruno Haible  <bruno@clisp.org>
31207
31208         Tests for module 'isblank'.
31209         * modules/isblank-tests: New file.
31210         * tests/test-isblank.c: New file.
31211
31212         New module 'isblank'.
31213         * lib/isblank.c: New file.
31214         * m4/isblank.m4: New file.
31215         * modules/isblank: New file.
31216         * doc/posix-functions/isblank.texi: Mention the new module.
31217
31218 2009-10-18  Bruno Haible  <bruno@clisp.org>
31219
31220         New module 'ctype'.
31221         * lib/ctype.in.h: New file.
31222         * m4/ctype.m4: New file.
31223         * modules/ctype: New file.
31224         * doc/posix-headers/ctype.texi: Mention the new module.
31225
31226 2009-10-18  Jim Meyering  <meyering@redhat.com>
31227
31228         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31229         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31230         right after its initialization, rather than farther down.
31231         Keeping these in close proximity makes it easier to ensure
31232         that each such variable is initialized.  E.g.,
31233
31234             LIB_CLOCK_GETTIME=
31235             AC_SUBST([LIB_CLOCK_GETTIME])
31236
31237         This change also increments these serial numbers.
31238         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31239         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31241
31242 2009-10-18  Bruno Haible  <bruno@clisp.org>
31243
31244         Don't let environment variables perturb build.
31245         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31246         (gl_PREREQ_GETHRXTIME): ... not here.
31247
31248 2009-10-18  Bruno Haible  <bruno@clisp.org>
31249
31250         Avoid symlink attack in localcharset module.
31251         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31252         (O_NOFOLLOW): Define fallback.
31253         (get_charset_aliases): Don't open the file if it is a symbolic link.
31254         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31255         gl_FCNTL_H.
31256         (gl_FCNTL_H): Require it.
31257         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31258         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31259         Reported by Fergal Glynn <fglynn@veracode.com>.
31260
31261 2009-10-18  Bruno Haible  <bruno@clisp.org>
31262
31263         Implement nproc for mingw.
31264         * lib/nproc.c: Include <windows.h>
31265         (num_processors): On native Windows platforms, try GetSystemInfo.
31266
31267 2009-10-18  Bruno Haible  <bruno@clisp.org>
31268
31269         Implement nproc for IRIX.
31270         * lib/nproc.c: Include <sys/sysmp.h>.
31271         (num_processors): On IRIX systems, try sysmp.
31272         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31273
31274 2009-10-18  Bruno Haible  <bruno@clisp.org>
31275
31276         Implement nproc for HP-UX.
31277         * lib/nproc.c: Include <sys/pstat.h>
31278         (num_processors): On HP-UX systems, try pstat_getdynamic.
31279         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31280         pstat_getdynamic.
31281
31282 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31283             Bruno Haible  <bruno@clisp.org>
31284
31285         Implement nproc for NetBSD, OpenBSD.
31286         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31287         (ARRAY_SIZE): New macro.
31288         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31289         * m4/nproc.m4: New file.
31290         * modules/nproc (Files): Add m4/nproc.m4.
31291         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31292         (Makefile.am): Instead, augment lib_SOURCES.
31293
31294 2009-10-18  Bruno Haible  <bruno@clisp.org>
31295
31296         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31297         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31298         sys/param.h.
31299
31300 2009-10-16  Eric Blake  <ebb9@byu.net>
31301
31302         utimensat: new module
31303         * modules/utimensat: New file.
31304         * lib/utimensat.c (utimensat): Likewise.
31305         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31306         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31307         so we can work around Linux bugs.
31308         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31309         * modules/sys_stat (Makefile.am): Substitute them.
31310         * lib/sys_stat.in.h (utimensat): Declare it.
31311         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31312         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31313         * modules/utimensat-tests: New test.
31314         * tests/test-utimensat.c: Likewise.
31315
31316         utimens: let lutimens work on non-symlinks
31317         * lib/utimens.c (lutimens): Fall back to utimens rather than
31318         failing with ENOSYS, when file is not a symlink.
31319         (utimens): Reduce redirection.
31320         * tests/test-lutimens.h (test_lutimens): Update test to cover
31321         non-symlinks.
31322         * tests/test-utimens.h (test_utimens): Update test to cover
31323         symlinks.
31324         * tests/test-utimens.c (main): Update caller.
31325
31326         utimens: cache whether utimensat syscall works
31327         * lib/utimens.c (utimensat_works_really): New cache variable.
31328         (fdutimens, lutimens): Use it to avoid failing syscall.
31329
31330         test-stat-time, test-utimens: improve portability
31331         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31332         ext4 on alpha, and for cygwin.
31333         * tests/test-utimens-common.h: New file.
31334         (nap): Factor delays into single function.
31335         * tests/test-lutimens.h (test_lutimens): Use new header.
31336         * tests/test-futimens.h (test_futimens): Likewise.
31337         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31338         timestamps to occur from same machine, as was done previously for
31339         test_utimens.
31340         * modules/utimens-tests (Files): Ship new file.
31341         * modules/futimens-tests (Files): Likewise.
31342         Reported in part by Jim Meyering.
31343
31344         sys_stat: sort replacement declarations
31345         * lib/sys_stat.in.h: Sort declarations.
31346         * lib/futimens.c (futimens): Fix typo.
31347
31348 2009-10-15  Jim Meyering  <meyering@redhat.com>
31349
31350         don't let environment settings perturb build
31351         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31352         could cause a configure-time and/or build-time malfunction.
31353         Typically, a configure-time function-in-library test is performed
31354         via code like this:
31355
31356           LIB_VAR=
31357           AC_SUBST([LIB_VAR])
31358           prefix_saved_LIBS=$LIBS
31359             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31360                        [test "$ac_cv_search_FUNC" = "none required" ||
31361                         LIB_VAR=$ac_cv_search_FUNC])
31362           LIBS=$prefix_saved_LIBS
31363
31364         However, in each of the files affected by this change, the LIB_VAR=
31365         initialization was omitted.  Thus, when set in the environment, its
31366         value would propagate into generated Makefiles when FUNC is not found
31367         in LIB_NAME.
31368         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31370         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31371
31372 2009-10-14  Eric Blake  <ebb9@byu.net>
31373
31374         fchdir: avoid infinite recursion in mingw
31375         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31376         recursing.
31377
31378         test-stat-time: port to mingw
31379         * tests/test-stat-time.c (force_unlink): Return a value.
31380         (test_ctime) [W32]: Fix compilation error.
31381         (nap): Don't call usleep with too large an argument.  Use
31382         force_unlink.
31383         * doc/pastposix-functions/usleep.texi (usleep): Document the
31384         portability issue.
31385
31386 2009-10-13  Jim Meyering  <meyering@redhat.com>
31387
31388         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31389         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31390         * modules/pipe-filter-ii: Likewise.
31391         * modules/sys_socket-tests: Likewise.
31392         * modules/tsearch-tests: Likewise.
31393         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31394         (check): Depend on it.
31395
31396 2009-10-12  Eric Blake  <ebb9@byu.net>
31397
31398         utimens-tests: port to NFS file systems
31399         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31400         comparisons to avoid spurious failures from timestamp drift
31401         between NFS machines.
31402
31403 2009-10-12  Eric Blake  <ebb9@byu.net>
31404
31405         stat-time-tests: minor cleanups
31406         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31407         * tests/test-stat-time.c (nap): Separate assignment from call.
31408         Suggested by Paolo Bonzini and Bruno Haible.
31409
31410         sys_stat: guarantee struct timespec
31411         * lib/sys_stat.in.h (includes): Always include <time.h>
31412         * modules/sys_stat (Depends-on): Add time.
31413         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31414         mode_t permission values.
31415         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31416         get at subsecond timestamps.
31417
31418 2009-10-10  Eric Blake  <ebb9@byu.net>
31419
31420         futimens: new module
31421         * modules/futimens: New file.
31422         * lib/futimens.c (futimens): Likewise.
31423         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31424         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31425         we can work around Linux bugs.
31426         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31427         * modules/sys_stat (Makefile.am): Substitute them.
31428         * lib/sys_stat.in.h (futimens): Declare it.
31429         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31430         * doc/posix-functions/futimens.texi (futimens): Likewise.
31431         * modules/futimens-tests: New test.
31432         * tests/test-futimens.c: Likewise.
31433
31434         utimens: introduce fdutimens
31435         * lib/utimens.h (fdutimens): New prototype.
31436         * lib/utimens.c (gl_futimens): Move guts...
31437         (fdutimens): ...to new interface.
31438         * tests/test-utimens.c (do_fdutimens): Use it.
31439
31440         utimens: add UTIME_NOW and UTIME_OMIT support
31441         * lib/utimens.c (validate_timespec, update_timespec): New helper
31442         functions.
31443         (gl_futimens, lutimens): Use them.
31444         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31445         stdbool, sys_stat.
31446         (Link): Mention resulting library dependency.
31447         * modules/utimecmp (Link): Likewise.
31448         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31449         (Makefile.am): Pick up library dependency.
31450         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31451         definition.
31452         * tests/test-sys_stat.c: Test the definitions.
31453         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31454         * NEWS: Document library dependency.
31455
31456         utimecmp: support symlink timestamps
31457         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31458         hashing when possible.  Use pathconf when available.
31459         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31460         * modules/utimecmp (Depends-on): Add lstat.
31461
31462         utimens: add lutimens interface
31463         * lib/utimens.c (lutimens): New function.
31464         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31465         * lib/utimens.h (lutimens): Declare new interface.
31466         * tests/test-utimens.c (main): Enhance test.
31467         * tests/test-lutimens.h (test_lutimens): New file.
31468         * modules/utimens-tests (Files): Distribute it.
31469         (Depends-on): Add symlink.
31470         (configure.ac): Check for usleep.
31471
31472         utimens: validate futimens usage
31473         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31474         fewer syscalls on failure later on.  Avoid compiler warning on
31475         mingw.
31476         * modules/utimens (Depends-on): Add dup2.
31477
31478         utimens: add test
31479         * modules/utimens-tests: New test.
31480         * tests/test-utimens.h: New file.
31481         * tests/test-futimens.h: Likewise.
31482         * tests/test-utimens.c: Likewise.
31483
31484         doc: mention timestamp portability issues
31485         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31486         instead.
31487         * doc/posix-functions/utime.texi (utime): Likewise.
31488         * doc/posix-functions/utimes.texi (utimes): Likewise.
31489         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31490         instead.
31491         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31492         module.
31493         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31494         Mention weakness with symlink timestamps.
31495         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31496         to utimensat/futimens instead.
31497         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31498
31499         test-dup2: enhance test
31500         * tests/test-dup2.c (main): Also check AT_FDCWD.
31501
31502         test-stat-time: avoid more spurious failures
31503         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31504         xfs; and avoid race if the two timestamps cross quantization edge.
31505
31506         relocatable: prefer 'file system' over 'filesystem'
31507         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31508         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31509         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31510         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31511         * lib/relocatable.c (compute_curr_prefix): Likewise.
31512
31513 2009-10-10  Jim Meyering  <meyering@redhat.com>
31514
31515         stat-time-tests: check for the usleep function
31516         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31517
31518 2009-10-10  Bruno Haible  <bruno@clisp.org>
31519
31520         * modules/xnanosleep: Put the Link section after the Include section.
31521
31522 2009-10-09  Eric Blake  <ebb9@byu.net>
31523
31524         dup2: work around FreeBSD 6.1 bug
31525         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31526         * doc/posix-functions/dup2.texi (dup2): Document it.
31527         Reported by Nelson H. F. Beebe and Jim Meyering.
31528
31529         test-stat-time: port to buggy NFS clients
31530         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31531         (test_ctime): Also skip test if mtime and ctime are skewed.
31532
31533         maint: prefer 'file system' over 'filesystem'
31534         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31535         * doc/posix-functions/lstat.texi (lstat): Likewise.
31536         * lib/file-has-acl.c (file_has_acl): Likewise.
31537         * lib/fwriteerror.c [TEST]: Likewise.
31538         * tests/test-areadlink.h (test_areadlink): Likewise.
31539         * tests/test-areadlinkat-with-size.c (main): Likewise.
31540         * tests/test-areadlinkat.c (main): Likewise.
31541         * tests/test-canonicalize-lgpl.c (main): Likewise.
31542         * tests/test-canonicalize.c (main): Likewise.
31543         * tests/test-fstatat.c (main): Likewise.
31544         * tests/test-linkat.c (main): Likewise.
31545         * tests/test-lstat.h (test_lstat_func): Likewise.
31546         * tests/test-mkdir.h (test_mkdir): Likewise.
31547         * tests/test-readlink.h (test_readlink): Likewise.
31548         * tests/test-remove.c (main): Likewise.
31549         * tests/test-rename.h (test_rename): Likewise.
31550         * tests/test-renameat.c (main): Likewise.
31551         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31552         * tests/test-symlink.h (test_symlink): Likewise.
31553         * tests/test-symlinkat.c (main): Likewise.
31554         * tests/test-unlink.h (test_unlink_func): Likewise.
31555         * tests/test-unlinkat.c (main): Likewise.
31556
31557         maint: make realtime library usage explicit
31558         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31559         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31560         * modules/settime (Link): Likewise.
31561         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31562
31563         test-stat-time: speed up execution
31564         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31565         warning on mingw.
31566         (nap): New helper function.
31567         (prepare_test): Use it to reduce sleep time.
31568         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31569         execution.
31570         * modules/stat-time-tests (configure.ac): Check for usleep.
31571
31572 2009-10-09  Jim Meyering  <meyering@redhat.com>
31573
31574         selinux-h: always use getfilecon wrappers
31575         * lib/getfilecon.c: New file.
31576         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31577         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31578         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31579         (fgetfilecon): Provide a stub.
31580         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31581         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31582         file unconditionally.
31583         When <selinux/selinux.h> is found, arrange to use wrappers.
31584         * modules/selinux-h (Files): Add getfilecon.c.
31585         (Makefile.am): Substitute include-next-related bits
31586         into the now-always-generated selinux/selinux.h file.
31587         * doc/glibc-functions/lgetfilecon.texi: New file.
31588         * doc/glibc-functions/fgetfilecon.texi: New file.
31589         * doc/glibc-functions/getfilecon.texi: New file.
31590         * doc/glibc-functions/getfilecon-desc.texi: New file.
31591         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31592         which to pull in the new files.
31593         * MODULES.html.sh (Misc): Add selinux-h.
31594
31595 2009-10-08  Jim Meyering  <meyering@redhat.com>
31596
31597         unistd: fix comment typo
31598         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31599
31600 2009-10-08  Eric Blake  <ebb9@byu.net>
31601
31602         areadlink: use SIZE_MAX consistently
31603         * modules/areadlink (Depends-on): Add stdint.
31604         * modules/areadlink-with-size (Depends-on): Likewise.
31605         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31606         gives NULL; drop sys/types, since unistd gives size_t; and add
31607         stdint for SIZE_MAX.
31608         (SIZE_MAX): Rely on headers.
31609         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31610         and add stdint.
31611         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31612         (SIZE_MAX): Likewise.
31613         (INITIAL_BUF_SIZE): Turn into enum.
31614         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31615
31616 2009-10-08  Jim Meyering  <meyering@redhat.com>
31617
31618         areadlinkat: avoid compilation failure
31619         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31620         Fix typo in comment.
31621
31622 2009-10-07  Eric Blake  <ebb9@byu.net>
31623
31624         areadlinkat-with-size: new module
31625         * modules/areadlinkat-with-size: New module.
31626         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31627         * lib/areadlink.h (areadlinkat): Declare it.
31628         * MODULES.html.sh (File system functions): Mention it.
31629         * modules/areadlinkat-with-size-tests: New test.
31630         * tests/test-areadlinkat-with-size.c: New file.
31631
31632         xreadlinkat: new module
31633         * modules/xreadlinkat: New module.
31634         * lib/xreadlinkat.c (xreadlinkat): New file.
31635         * lib/xreadlink.h (xreadlinkat): Declare it.
31636         * MODULES.html.sh (File system functions): Mention it.
31637
31638         areadlinkat: new module
31639         * lib/at-func.c (FUNC_FAIL): New define.
31640         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31641         * modules/areadlinkat: New module.
31642         * lib/linkat.c (areadlinkat): Move...
31643         * lib/areadlinkat.c (areadlinkat): ...to new file.
31644         * lib/areadlink.h (areadlinkat): Declare it.
31645         * modules/linkat (Depends-on): Add areadlinkat.
31646         * MODULES.html.sh (File system functions): Mention it.
31647         * modules/areadlinkat-tests: New test.
31648         * tests/test-areadlinkat.c: New file.
31649
31650         areadlink, areadlink-with-size: add tests
31651         * modules/areadlink-tests: New test.
31652         * modules/areadlink-with-size-tests: Likewise.
31653         * tests/test-areadlink.h: New file.
31654         * tests/test-areadlink.c: Likewise.
31655         * tests/test-areadlink-with-size.c: Likewise.
31656
31657         maint: minor cleanups
31658         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31659         _UNUSED_PARAMETER_ instead.
31660         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31661         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31662         * modules/linkat-tests (Files): Distribute test-link.h.
31663
31664         openat, utimens: whitespace cleanup
31665         * lib/openat.c: Prefer space throughout, rather than mix of 8
31666         spaces vs. tabs.
31667         * lib/at-func.c: Likewise.
31668         * lib/utimens.c: Likewise.
31669
31670         openat: avoid using wrong fd
31671         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31672         working directory chooses same fd.
31673         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31674
31675         mkdir, mkdirat: fix cygwin 1.5.x bug
31676         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31677         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31678         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31679         bug.
31680         (gl_PREREQ_MKDIR): Delete unused macro.
31681         * modules/mkdir (Files): Track file rename.
31682         (configure.ac): Update macro name.
31683         * modules/openat (Depends-on): Add mkdir.
31684         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31685
31686         mkdir, mkdirat: add tests
31687         * modules/mkdir-tests: New test.
31688         * tests/test-mkdir.h: New file.
31689         * tests/test-mkdir.c: Likewise.
31690         * tests/test-mkdirat.c: Likewise.
31691         * modules/openat-tests (Files): Add new files.
31692         (Makefile.am): Run new test.
31693
31694 2009-10-06  Eric Blake  <ebb9@byu.net>
31695
31696         doc: tweak *at function documentation
31697         * doc/posix-functions/faccessat.texi (faccessat): Mention
31698         known issue with replacement.
31699         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31700         * doc/posix-functions/linkat.texi (linkat): Likewise.
31701         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31702         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31703         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31704         * doc/posix-functions/renameat.texi (renameat): Likewise.
31705         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31706
31707         openat: fix GNU/Hurd bug in unlinkat
31708         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31709         broken.
31710         * doc/posix-functions/unlink.texi (unlink): Document this.
31711         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31712
31713         fdopendir: fix GNU/Hurd bug
31714         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31715         allowing non-directory fds.
31716         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31717         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31718         * modules/dirent (Makefile.am): Substitute it.
31719         * lib/dirent.in.h (fdopendir): Declare replacement.
31720         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31721         * tests/test-fdopendir.c (main): Test something other than
31722         /dev/null, since on Hurd that behaves like a directory.
31723
31724         test-symlink: port to GNU/Hurd
31725         * tests/test-symlink.h (test_symlink): Relax expected errno.
31726
31727         doc: tweak more cygwin information
31728         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31729         now compatible with glibc.
31730         * doc/posix-functions/getopt.texi (getopt): Likewise.
31731
31732         getopt-gnu: add another test
31733         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31734         guarantee behavior relied on by m4.
31735         * tests/test-getopt.c (main): Use it.
31736         * modules/getopt-posix-tests (Depends-on): Add setenv.
31737         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31738
31739         getopt: fix compilation on darwin
31740         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31741         include.
31742         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31743         Reported by Ludovic Courtès.
31744
31745 2009-10-06  Bruno Haible  <bruno@clisp.org>
31746
31747         * modules/size_max (Description): Discourage its use.
31748         Reported by Simon Josefsson.
31749
31750 2009-10-06  Jim Meyering  <meyering@redhat.com>
31751
31752         linkat: avoid compilation failure
31753         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31754
31755 2009-10-05  Eric Blake  <ebb9@byu.net>
31756
31757         linkat: support Linux 2.6.17
31758         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31759         linkat on Linux, but allow cache variable override.
31760         * lib/linkat.c (rpl_linkat): Define override.
31761         * modules/linkat (Depends-on): Add symlinkat.
31762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31763         * modules/unistd (Makefile.am): Substitute it.
31764         * lib/unistd.in.h (linkat): Declare replacement.
31765         Reported by Pádraig Brady.
31766
31767         quotearg: port test to systems with C.UTF-8 locale
31768         * tests/test-quotearg.c (struct result_strings): Add another
31769         member, differentiating between C.ASCII and C.UTF-8 handling.
31770         (compare_strings): Add parameter.
31771         (main): Adjust all callers.
31772
31773         getopt: avoid clash with FreeBSD _getopt_internal
31774         * lib/getopt.in.h (_getopt_internal): Override the name.
31775         * lib/getopt_int.h (includes): Pick up any overrides.
31776         Reported by Reuben Thomas.
31777
31778         hash: allow C89 compilation
31779         * lib/hash.c (check_tuning): Move declaration before statement.
31780         Reported by Reuben Thomas.
31781
31782 2009-10-05  Karl Berry  <karl@gnu.org>
31783
31784         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31785
31786 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31787             Bruno Haible  <bruno@clisp.org>
31788
31789         * lib/uname.c (uname): Use a table-driven algorithm to compute
31790         Windows NT versions.
31791
31792 2009-10-04  Bruno Haible  <bruno@clisp.org>
31793
31794         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31795         program_invocation_short_name.
31796         * modules/progname (configure.ac): Test for presence of
31797         program_invocation_short_name.
31798         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31799
31800 2009-10-04  Bruno Haible  <bruno@clisp.org>
31801
31802         * lib/progname.c (set_program_name): Fix comment.
31803         Reported by Jim Meyering.
31804
31805 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31806             Bruno Haible  <bruno@clisp.org>
31807
31808         * lib/uname.c: Include <string.h>.
31809         (uname): Do only one call to GetVersionEx in the common case.
31810
31811 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31812             Bruno Haible  <bruno@clisp.org>
31813
31814         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31815         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31816         (uname): Add support for Windows CE and various non-x86 CPU types.
31817
31818 2009-10-03  Bruno Haible  <bruno@clisp.org>
31819
31820         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31821         invocation to tests/configure.ac.
31822         Reported by Ian Beckwith <ianb@erislabs.net>.
31823
31824 2009-10-02  Eric Blake  <ebb9@byu.net>
31825
31826         fchdir: avoid compiler warning
31827         * lib/fchdir.c (canonicalize_file_name)
31828         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31829
31830         test-open: support mingw errno values
31831         * tests/test-open.h (test_open): Relax test.
31832         * tests/test-fopen.h (test_fopen): Likewise.
31833         * tests/test-openat-safer.c (main): Likewise.
31834
31835         open: fix opening directory on mingw
31836         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31837
31838         test-open: on GNU/Hurd, /dev/null is a directory
31839         * tests/test-fopen.h (main): Rename...
31840         (test_fopen): ...to this.  Use a guaranteed non-directory when
31841         confirming open behavior on trailing slash.
31842         * tests/test-openat-safer.c (main): Likewise.
31843         * tests/test-open.h (main): Likewise....
31844         (test_open): ...to this.
31845         * tests/test-fopen.c (main): Adjust caller.
31846         * tests/test-fopen-safer.c (main): Likewise.
31847         * tests/test-open.c (main): Likewise.
31848         * tests/test-fcntl-safer.c (main): Likewise.
31849         Reported by Samuel Thibault.
31850
31851         rename, fchdir: don't ignore chdir failure
31852         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31853         * lib/rename.c (rpl_rename) [W32]: Likewise.
31854         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31855         an empty destination directory if source cannot be renamed,
31856         although there is still possibility for failure.
31857         * doc/posix-functions/rename.texi (rename): Document the race.
31858         Reported by Jim Meyering.
31859
31860         maint: cleanup whitespace in recent commits
31861         * lib/rename.c (rpl_rename): Remove tabs.
31862         * tests/test-link.h (test_link): Likewise.
31863         * lib/fchdir.c (get_name): Likewise.
31864         Reported by Jim Meyering.
31865
31866 2009-10-02  Ben Pfaff  <blp@gnu.org>
31867
31868         relocatable-prog-wrapper: Add missing dependency on
31869         double-slash-root.
31870         * modules/relocatable-prog-wrapper: Add dependency.
31871         Reported by Ian Beckwith <ianb@erislabs.net>.
31872
31873 2009-10-02  Eric Blake  <ebb9@byu.net>
31874
31875         renameat: fix Solaris bugs
31876         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31877         needed fixing.
31878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31879         * modules/stdio (Makefile.am): Substitute it.
31880         * lib/stdio.in.h (renameat): Declare replacement.
31881         * lib/renameat.c (rpl_renameat): Implement fix.
31882
31883         renameat: new module
31884         * modules/renameat: New file.
31885         * lib/renameat.c (renameat): Likewise.
31886         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31888         * modules/stdio (Makefile.am): Substitute them.
31889         * lib/stdio.in.h (renameat): Declare it.
31890         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31891         * doc/posix-functions/renameat.texi (renameat): Likewise.
31892         * modules/renameat-tests: New test.
31893         * tests/test-renameat.c: Likewise.
31894
31895         rename: fix mingw bugs
31896         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31897         directory overwrite bugs.
31898
31899         rename: fix another cygwin 1.5 bug
31900         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31901         checks.
31902         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31903         unnecessary cygwin workarounds.  Also work around bug with moving
31904         full directory onto an empty one.
31905         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31906
31907         rename-dest-slash: merge into rename module
31908         * modules/rename-dest-slash (Status): Mark obsolete.
31909         (Depends-on): Add rename.
31910         (Files): Let rename do it all.
31911         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31912         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31913         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31914         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31915         * lib/rename.c (rpl_rename): Update comments.
31916
31917         rename: fix cygwin 1.5.x bugs
31918         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31919         * lib/rename.c (rpl_rename): Work around them.
31920         * modules/rename (Depends-on): Add same-inode.
31921
31922         rename: fix Solaris 10 bug
31923         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31924         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31925         was the only bug.
31926
31927         rename: fix Solaris 9 bug
31928         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31929         on non-directory.  Avoid calling exit.
31930         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31931         strdup.
31932         * modules/rename-tests (Depends-on): Drop lstat.
31933         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31934         (gl_PREREQ_RENAME): Delete unused macro.
31935
31936         rename-dest-slash: fix NetBSD bug
31937         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31938         links.
31939         * modules/rename-dest-slash (Depends-on): Add same-inode.
31940
31941         rename-tests: new test, exposes several platform bugs
31942         * modules/rename-tests: New file.
31943         * tests/test-rename.h: Likewise.
31944         * tests/test-rename.c: Likewise.
31945         * doc/posix-functions/rename.texi (rename): Improve documentation,
31946         including bugs that will eventually be fixed in gnulib.
31947
31948 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31949
31950         * lib/uname.c: Include <stdlib.h>
31951         (uname): Assume version info is available.
31952
31953 2009-10-02  Jim Meyering  <meyering@redhat.com>
31954
31955         gnu-web-doc-update: correct --help output
31956         * build-aux/gnu-web-doc-update: Make --help output relevant.
31957
31958         gnu-web-doc-update: add standard options
31959         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31960
31961         gnu-web-doc-update: New module.
31962         Use this script to automatically update the on-line web documentation
31963         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31964         * modules/gnu-web-doc-update: New file, from coreutils.
31965         * build-aux/gnu-web-doc-update: New script.
31966
31967 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31968
31969         link: LoadLibrary is not needed.
31970         * lib/link.c: Use GetModuleHandle.
31971
31972 2009-10-01  Eric Blake  <ebb9@byu.net>
31973
31974         getopt: bump serial number
31975         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31976         change.
31977
31978         tests: tighten link, rmdir, and remove tests
31979         * tests/test-link.h (includes): No need to use <config.h> here.
31980         Clean up if directory hard link was created, otherwise test for
31981         trailing '.'.
31982         * tests/test-linkat.c (main): Simplify.
31983         * tests/test-remove.c (main): Enhance test for trailing '.'.
31984         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31985
31986 2009-10-01  Jim Meyering  <meyering@redhat.com>
31987
31988         maint.mk: requiring "make major" was annoying, for a "minor" release.
31989         What is intended is "stable", to contrast with alpha and beta,
31990         so require "make stable", not "make major".
31991         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31992         (get_tool_versions): Likewise.
31993         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31994
31995 2009-09-30  Ben Pfaff  <blp@gnu.org>
31996
31997         Fix broken build of replacement for Windows tmpfile().
31998         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31999         flags argument added along with the 'mkostemp' module.
32000
32001 2009-09-28  Bruno Haible  <bruno@clisp.org>
32002
32003         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32004         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32005         to 'remove_elt'.
32006         (gl_list_remove): Update.
32007         * lib/gl_list.c (gl_list_remove): Update.
32008         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32009         to 'remove_elt'.
32010         (gl_oset_remove): Update.
32011         * lib/gl_list.c (gl_oset_remove): Update.
32012         Reported by Eric Blake.
32013
32014 2009-09-28  Eric Blake  <ebb9@byu.net>
32015
32016         doc: mention yet more cygwin 1.7 status
32017         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32018         cygwin.
32019         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32020         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32021
32022         argp: fix test failure
32023         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32024         that are not upper-case.  Pass correct range to tolower.
32025
32026 2009-09-27  Jim Meyering  <meyering@redhat.com>
32027
32028         test-yesno: work around sparc-dash here-document infelicity
32029         Without this change, the literal \177 byte in a here document
32030         would make dash 0.5.5.1-3 access uninitialized memory.
32031         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32032         Instead, use a marker, "@", and filter through tr to create the desired
32033         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32034
32035 2009-09-27  Bruno Haible  <bruno@clisp.org>
32036
32037         Disable untested support for new flavours of ACLs on AIX.
32038         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32039         progress.
32040         * lib/set-mode-acl.c (qset_acl): Likewise.
32041
32042 2008-12-07  Bruno Haible  <bruno@clisp.org>
32043
32044         Add support for new flavours of ACLs on AIX. (Untested.)
32045         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32046         (file_has_acl): Add support for newer AIX.
32047         * lib/set-mode-acl.c (qset_acl): Likewise.
32048         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32049         Rainer Tammer <tammer@tammer.net>.
32050
32051 2009-09-26  Eric Blake  <ebb9@byu.net>
32052
32053         argp: fix compilation of getopt
32054         * lib/getopt.in.h (includes): Use different guard than glibc.
32055         Reported by Sergey Poznyakoff.
32056
32057         doc: mention more cygwin 1.7 status
32058         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32059         bug.
32060         * doc/posix-functions/execl.texi (execl): Likewise.
32061         * doc/posix-functions/execle.texi (execle): Likewise.
32062         * doc/posix-functions/execlp.texi (execlp): Likewise.
32063         * doc/posix-functions/execv.texi (execv): Likewise.
32064         * doc/posix-functions/execve.texi (execve): Likewise.
32065         * doc/posix-functions/execvp.texi (execvp): Likewise.
32066         * doc/glibc-functions/canonicalize_file_name.texi
32067         (canonicalize_file_name): Cygwin 1.7 now provides this.
32068         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32069         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32070         on AT_SYMLINK_NOFOLLOW.
32071
32072 2009-09-24  Eric Blake  <ebb9@byu.net>
32073
32074         test-linkat: make test more robust
32075         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32076
32077         getopt: fix inclusion guards for cygwin
32078         * modules/getopt-posix (Depends-on): Add include-next.
32079         (Makefile.am): Substitute more items in replacement header.
32080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32081         <getopt.h>.
32082         * lib/getopt.in.h (includes): Use split inclusion guard, and
32083         prefer <getopt.h> over include <unistd.h> when one is present.
32084         (option): Also override name of 'struct option'.
32085
32086         same-inode: revert prior change; it is not yet ready
32087         * NEWS: Undo mention of this change.
32088         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32089         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32090         * lib/cycle-check.c (cycle_check): Likewise.
32091         * lib/same.c (same_name): Likewise.
32092         * lib/at-func2.c (at_func2): Likewise.
32093
32094 2009-09-23  Eric Blake  <ebb9@byu.net>
32095
32096         linkat: new module
32097         * modules/linkat: New file.
32098         * lib/at-func2.c (at_func2): Likewise.
32099         * lib/linkat.c (linkat): Likewise.
32100         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32101         * lib/openat-priv.h (at_func2): Add declaration.
32102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32103         * modules/unistd (Makefile.am): Substitute them.
32104         * lib/unistd.in.h (linkat): Declare it.
32105         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32106         * doc/posix-functions/linkat.texi (linkat): Likewise.
32107         * doc/posix-functions/link.texi (link): Tweak wording.
32108         * tests/test-link.c (main): Move guts...
32109         * tests/test-link.h (test_link): ...into new file.
32110         * modules/linkat-tests: New test.
32111         * tests/test-linkat.c: Likewise.
32112         * modules/link-tests (Files): Ship new file.
32113         (Depends-on): Add stdbool.
32114
32115         dirname: add library-safe mdir_name
32116         * lib/dirname.h (mdir_name): New prototype.
32117         * lib/dirname.c (dir_name): Move guts...
32118         (mdir_name): ...to new function that avoids xalloc_die.
32119
32120         fchdir: another mingw fix
32121         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32122         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32123         on mingw (where it has not yet been ported), and make it optional
32124         elsewhere.
32125         (_gl_register_fd): Use it.
32126
32127         same-inode: make SAME_INODE tri-state, to port to mingw
32128         * NEWS: Mention this change.
32129         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32130         st_ino always being 0.
32131         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32132         * lib/cycle-check.c (cycle_check): Likewise.
32133         * lib/same.c (same_name): Likewise.
32134
32135         lstat: avoid mingw compilation error
32136         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32137         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32138         lstat ourselves.
32139         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32140         was adequate.
32141         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32142         the checks for lstat.
32143         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32144
32145         link: fix test failure on Solaris 9
32146         * lib/link.c (rpl_link): Don't assume link will catch bogus
32147         trailing slash on source.
32148
32149         test-symlinkat: enhance test
32150         * tests/test-readlink.c (main): Move guts...
32151         * tests/test-readlink.h (test_readlink): ...into new file.
32152         * tests/test-symlink.c (main): Move guts...
32153         * tests/test-symlink.h (test_symlink): ...into new file.
32154         * tests/test-symlinkat.c (main): Use new files for further
32155         coverage.
32156         (do_symlink, do_readlink): New helper functions.
32157         * modules/symlink-tests (Files): Ship new file.
32158         (Depends-on): Add stdbool.
32159         * modules/readlink-tests (Files): Ship new file.
32160         (Depends-on): Add stdbool.
32161         * modules/symlinkat-tests (Files): Use new files.
32162
32163 2009-09-23  Eric Blake  <ebb9@byu.net>
32164
32165         readlink: document portability issue with symlink length
32166         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32167         systems have bogus st_size on symlinks, and mention the
32168         areadlink-with-size module.
32169         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32170         * doc/posix-functions/readlink.texi (readlink): Mention the
32171         areadlink module, and ERANGE failure.
32172         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32173         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32174
32175         readlink: fix Solaris 9 bug with trailing slash
32176         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32177         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32178         * doc/posix-functions/readlink.texi (readlink): Document this.
32179         * modules/readlink-tests: New test.
32180         * tests/test-readlink.c: Likewise.
32181
32182         readlink: fix cygwin 1.5.x bug with return type
32183         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32184         * lib/unistd.in.h (readlink): Use ssize_t.
32185         * lib/readlink.c (readlink): Likewise.
32186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32187         * modules/unistd (Makefile.am): Substitute it.
32188         * lib/unistd.in.h (readlink): Declare replacement.
32189         * doc/posix-functions/readlink.texi (readlink): Document this.
32190
32191         symlink: use throughout gnulib
32192         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32193         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32194         symlink is not used.
32195         * modules/symlinkat (Depends-on): Add symlink.
32196         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32197         * modules/canonicalize-tests (Depends-on): Likewise.
32198         * modules/lstat-tests (Depends-on): Likewise.
32199         * modules/openat-tests (Depends-on): Likewise.
32200         * modules/remove-tests (Depends-on): Likewise.
32201         * modules/rmdir-tests (Depends-on): Likewise.
32202         * modules/unlink-tests (Depends-on): Likewise.
32203         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32204         * tests/test-canonicalize.c (symlink): Likewise.
32205         * tests/test-fstatat.c (symlink): Likewise.
32206         * tests/test-lstat.c (symlink): Likewise.
32207         * tests/test-remove.c (symlink): Likewise.
32208         * tests/test-rmdir.c (symlink): Likewise.
32209         * tests/test-unlink.c (symlink): Likewise.
32210         * tests/test-unlinkat.c (symlink): Likewise.
32211
32212         symlink: new module, for Solaris 9 bug
32213         * modules/symlink: New file.
32214         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32215         * lib/symlink.c: Likewise.
32216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32217         * modules/unistd (Makefile.am): Substitute them.
32218         * lib/unistd.in.h (symlink): Declare replacement.
32219         * MODULES.html.sh (File system functions): Mention it.
32220         * doc/posix-functions/symlink.texi (symlink): Likewise.
32221         * modules/symlink-tests: New test.
32222         * tests/test-symlink.c: Likewise.
32223
32224 2009-09-23  Bruno Haible  <bruno@clisp.org>
32225
32226         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32227         when needed.
32228         Test case: gnulib-tool --import --with-tests atexit inttypes.
32229         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32230
32231 2009-09-23  Bruno Haible  <bruno@clisp.org>
32232
32233         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32234         subcommand, not in a subshell.
32235
32236 2009-09-22  Eric Blake  <ebb9@byu.net>
32237
32238         unistd: sort replacement declarations
32239         * lib/unistd.in.h: Sort declarations.
32240
32241         open, openat: minor optimization
32242         * lib/open.c (open): If open succeeded, len is non-zero.
32243         * lib/openat.c (rpl_openat): Likewise.
32244
32245         link-follow: ensure correct result
32246         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32247         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32248         distinguish between possible failures.
32249
32250 2009-09-21  Eric Blake  <ebb9@byu.net>
32251
32252         fts: avoid compiler warning
32253         * lib/fts.c (dirent_inode_sort_may_be_useful)
32254         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32255
32256 2009-09-19  Bruno Haible  <bruno@clisp.org>
32257
32258         * lib/progreloc.c (canonicalize_file_name): New declaration.
32259
32260 2009-09-19  Eric Blake  <ebb9@byu.net>
32261
32262         link: fix quoting
32263         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32264
32265         openat: fix openat bugs on Solaris 9
32266         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32267         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32268         * modules/openat (Depends-on): Add open.
32269         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32270         * modules/fcntl-h (Makefile.am): Substitute it.
32271         * lib/fcntl.in.h (openat): Declare replacement.
32272         * doc/posix-functions/openat.texi (openat): Document this.
32273
32274         openat: move fstatat and unlinkat into correct files
32275         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32276         compiled.
32277         * lib/openat.c (fstatat, unlinkat): Move...
32278         * lib/fstatat.c (fstatat): ...into correct files.
32279         * lib/unlinkat.c (unlinkat): Likewise.
32280
32281         openat: fix unlinkat bugs on Solaris 9
32282         * lib/unlinkat.c (unlinkat): New file.
32283         * modules/openat (Depends-on): Add unlink.
32284         (Files): Distribute it.
32285         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32286         trailing slash behavior is broken.
32287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32288         * modules/unistd (Makefile.am): Substitute it.
32289         * lib/unistd.in.h (unlinkat): Declare replacement.
32290         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32291
32292         openat: fix fstatat bugs on Solaris 9
32293         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32294         stat.
32295         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32296
32297         test-unlinkat: enhance test, to expose Solaris 9 bug
32298         * tests/test-unlink.c (main): Factor guts...
32299         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32300         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32301         * tests/test-rmdir.c (main): Adjust caller.
32302         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32303         (unlinker): New helper function.
32304         (rmdirat): Enhance check.
32305         * modules/rmdir-tests (Depends-on): Add stdbool.
32306         * modules/unlink-tests (Depends-on): Likewise.
32307         (Files): Add test-unlink.h.
32308         * modules/openat-tests (Files): Likewise.
32309         (Depends-on): Add unlinkdir.
32310
32311         test-fstatat: new test, to expose Solaris 9 bugs
32312         * tests/test-stat.c (main): Factor guts...
32313         * tests/test-stat.h (test_stat_func): ...into new file.
32314         * tests/test-lstat.c (main): Factor guts...
32315         * tests/test-lstat.h (test_lstat_func): ...into new file.
32316         * tests/test-fstatat.c: New file.
32317         * modules/stat-tests (Files): Add test-stat.h.
32318         * modules/lstat-tests (Files): Add test-lstat.h.
32319         (Depends-on): Add stdbool.
32320         * modules/openat-tests (Depends-on): Add pathmax.
32321         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32322         (Makefile.am): Run new test.
32323
32324         remove: new module, for mingw and Solaris 9 bugs
32325         * modules/remove: New file.
32326         * lib/remove.c: Likewise.
32327         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32329         * modules/stdio (Makefile.am): Use them.
32330         * lib/stdio.in.h (remove): Declare replacement.
32331         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32332         * doc/posix-functions/remove.texi (remove): Likewise.
32333         * modules/remove-tests: New test.
32334         * tests/test-remove.c: Likewise.
32335
32336         unlink: new module, for Solaris 9 bug
32337         * modules/unlink: New file.
32338         * lib/unlink.c: Likewise.
32339         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32341         * modules/unistd (Makefile.am): Use them.
32342         * lib/unistd.in.h (stat): Declare replacement.
32343         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32344         * doc/posix-functions/unlink.texi (unlink): Likewise.
32345         * modules/unlink-tests: New test.
32346         * tests/test-unlink.c: Likewise.
32347
32348         lstat: fix Solaris 9 bug
32349         * lib/lstat.c (lstat): Also check for trailing slash on
32350         non-symlink, non-directories.  Use stat module to simplify logic.
32351         * doc/posix-functions/lstat.texi (lstat): Document it.
32352         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32353         (configure.ac): Check for symlink.
32354         * tests/test-lstat.c (main): Add more tests.
32355
32356         stat: add as dependency to other modules
32357         * modules/chown (Depends-on): Add stat.
32358         * modules/euidaccess (Depends-on): Likewise.
32359         * modules/fchdir (Depends-on): Likewise.
32360         * modules/isdir (Depends-on): Likewise.
32361         * modules/link (Depends-on): Likewise.
32362         * modules/lstat (Depends-on): Likewise.
32363         * modules/mkdir-p (Depends-on): Likewise.
32364         * modules/modechange (Depends-on): Likewise.
32365         * modules/open (Depends-on): Likewise.
32366         * modules/readlink (Depends-on): Likewise.
32367         * modules/same (Depends-on): Likewise.
32368
32369         stat: fix Solaris 9 bug
32370         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32371         slash.
32372         * lib/stat.c (rpl_stat): Work around it.
32373         * doc/posix-functions/stat.texi (stat): Update documentation.
32374
32375         stat: new module, for mingw bug
32376         * modules/stat: New file.
32377         * lib/stat.c: Likewise.
32378         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32380         * modules/sys_stat (Makefile.am): Use them.
32381         * lib/sys_stat.in.h (stat): Declare replacement.
32382         * lib/openat.c (fstatat): Deal with lstat and stat being function
32383         macros.
32384         * modules/openat (Depends-on): Add inline.
32385         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32386         * doc/posix-functions/stat.texi (stat): Likewise.
32387         * modules/stat-tests: New test.
32388         * tests/test-stat.c: Likewise.
32389
32390 2009-09-19  Jim Meyering  <meyering@redhat.com>
32391
32392         syntax-check: detect unnecessary inclusion of canonicalize.h
32393         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32394
32395 2009-09-19  Eric Blake  <ebb9@byu.net>
32396
32397         canonicalize-lgpl: adjust clients to use correct header
32398         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32399         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32400         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32401         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32402         * lib/progreloc.c (includes): Likewise.
32403
32404 2009-09-19  Jim Meyering  <meyering@redhat.com>
32405
32406         test-posixtm.c: correct a comment
32407         * tests/test-posixtm.c: Correct first-line comment.
32408         Spotted by Eric Blake.
32409
32410 2009-09-16  Jim Meyering  <meyering@redhat.com>
32411
32412         posixtm-tests: make T const-correct; add a test case
32413         * tests/test-posixtm.c (T): Declare const.
32414         Add a test for -(2^31+1).
32415         Remove useless can-succeed-only-in-2002 test.
32416
32417         posixtm-tests: adjust the sole failing test
32418         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32419         expected output matches what mktime now produces.  Cross-checked via
32420         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32421
32422         posixtm: move #ifdef'd tests into a new module
32423         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32424         * tests/test-posixtm.c: ... this new file.
32425         * modules/posixtm-tests: New module.
32426
32427 2009-09-19  Eric Blake  <ebb9@byu.net>
32428
32429         openat: simplify use of at-func.c
32430         * lib/at-func.c (includes): Include prerequisites here, to
32431         simplify requirements on client files.
32432         * lib/openat-priv.h: Add double-inclusion guard.
32433         * lib/faccessat.c (includes): Simplify.
32434         * lib/fchmodat.c (includes): Likewise.
32435         * lib/fchownat.c (includes): Likewise.
32436         * lib/mkdirat.c (includes): Likewise.
32437         * lib/mkfifoat.c (includes): Likewise.
32438         * lib/symlinkat.c (includes): Likewise.
32439
32440         openat: allow return of fd 0
32441         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32442         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32443         unistd-safer.
32444         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32445         <fcntl.h>; this module does not leak fds.
32446         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32447         must be allowed to return 0, leaving openat_safer to add the
32448         safety.
32449         (openat_permissive): Avoid writing to just-opened fd 2 if
32450         restoring the current directory fails.
32451         * lib/openat-die.c (openat_restore_fail): Add comment.
32452         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32453         (save_cwd): Guarantee safe fd, but without use of open_safer.
32454         * tests/test-openat.c: New test.
32455         * modules/openat-tests (Files, Makefile.am): Distribute and build
32456         new file.
32457
32458         relocatable-prog-wrapper: fix build
32459         * modules/relocatable-prog-wrapper (Files): Update name of
32460         canonicalize m4 file, broken on 2009-09-17.
32461         Reported by emad hajjar <aleppos@hotmail.com>.
32462
32463 2009-09-19  Bruno Haible  <bruno@clisp.org>
32464
32465         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32466         * lib/safe-alloc.c: Likewise.
32467         Reported by Ian Beckwith <ianb@erislabs.net>.
32468
32469 2009-09-18  Bruno Haible  <bruno@clisp.org>
32470
32471         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32472         Reported by <erobles@sensacd.com.mx>.
32473
32474 2009-09-17  Eric Blake  <ebb9@byu.net>
32475
32476         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32477         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32478         slashes when checking if last component is missing.
32479         * tests/test-canonicalize.c (main): Test this.
32480
32481         canonicalize, canonicalize-lgpl: honor // if distinct from /
32482         * modules/canonicalize (Files): Add double-slash-root.m4.
32483         * modules/canonicalize-lgpl (Files): Likewise.
32484         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32485         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32486         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32487         fallback definition.
32488         (canonicalize_filename_mode): Use it to protect //.
32489         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32490         (__realpath): Likewise.
32491         * tests/test-canonicalize.c (main): Test this.
32492         * tests/test-canonicalize-lgpl.c (main): Likewise.
32493         * modules/canonicalize-tests (Depends-on): Add same-inode.
32494         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32495
32496         canonicalize-lgpl: fix glibc bug with trailing slash
32497         * m4/canonicalize-lgpl.m4: Move contents...
32498         * m4/canonicalize.m4: ...here.
32499         (gl_CANONICALIZE_LGPL): Factor realpath check...
32500         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32501         glibc 2.3.5 bug, fixed 2005-04-27.
32502         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32503         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32504         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32505         * modules/canonicalize-lgpl (Files): Manage file rename.
32506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32507         * modules/stdlib (Makefile.am): Substitute witness.
32508         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32509         is needed.
32510         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32511         replacement is required.
32512         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32513         * doc/glibc-functions/canonicalize_file_name.texi
32514         (canonicalize_file_name): Document this.
32515         * doc/posix-functions/realpath.texi (realpath): Likewise.
32516
32517         canonicalize-lgpl: reject non-directory with trailing slash
32518         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32519         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32520         catches failures in glibc 2.3.5.
32521         * tests/test-canonicalize.c (main): Likewise.
32522
32523         canonicalize-lgpl: use native realpath if it works
32524         * lib/canonicalize-lgpl.c (realpath): Guard with
32525         FUNC_REALPATH_WORKS.
32526         * lib/stdlib.in.h (realpath): Make declaration optional based on
32527         HAVE_REALPATH.
32528         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32529         native realpath works.
32530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32531         * modules/stdlib (Makefile.am): Substitute witness.
32532
32533         canonicalize, canonicalize-lgpl: use <stdlib.h>
32534         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32535         (Include): Mention <stdlib.h>.
32536         (configure.ac): Mention functions we provide.
32537         * modules/canonicalize (configure.ac): Likewise.
32538         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32539         realpath if canonicalize_file_name is missing.
32540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32541         * modules/stdlib (Makefile.am): Substitute witnesses.
32542         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32543         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32544         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32545         * NEWS: Document this.
32546         * doc/glibc-functions/canonicalize_file_name.texi
32547         (canonicalize_file_name): Likewise.
32548         * doc/posix-functions/realpath.texi (realpath): Likewise.
32549         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32550
32551         test-canonicalize: consolidate into single C program
32552         * tests/test-canonicalize.sh: Delete; move setup into...
32553         * tests/test-canonicalize.c (main): ...the program, making it
32554         easier to run in debugger.  Add some tests.
32555         * modules/canonicalize-tests (Files): Remove unused file.
32556         (Depends-on): Add progname.
32557         (configure.ac, Makefile.am): Simplify.
32558
32559         test-canonicalize-lgpl: consolidate into single C program
32560         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32561         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32562         easier to run in debugger.  Add some tests.
32563         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32564         (configure.ac, Makefile.am): Simplify.
32565
32566         canonicalize: avoid resolvepath
32567         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32568         unnecessary checks.
32569         * lib/canonicalize.c (includes): Simplify.
32570         (canonicalize_file_name): Drop resolvepath implementation.
32571         * modules/canonicalize (Depends-on): Drop filenamecat.
32572
32573         canonicalize: don't lose errno
32574         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32575         over calls to free.
32576
32577         canonicalize: simplify errno handling
32578         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32579         assignment.
32580
32581         canonicalize, canonicalize-lgpl: update module dependencies
32582         * modules/canonicalize (Depends-on): Add extensions, lstat,
32583         pathmax, stdlib.
32584         (Files): Drop pathmax.h.
32585         (configure.ac): Adjust macro name.
32586         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32587         lstat, stdlib, sys_stat.
32588         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32589         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32590         extensions.
32591         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32592         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32593         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32594         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32595         declaration, if available.
32596         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32597         we can rely on the readlink module.
32598         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32599         (includes): Use <unistd.h> unconditionally.
32600
32601 2009-09-17  Eric Blake  <ebb9@byu.net>
32602
32603         maint: make Include sections of modules consistent
32604         * modules/alloca: Use only header name; no need to list #include.
32605         * modules/alloca-opt: Likewise.
32606         * modules/arpa_inet: Likewise.
32607         * modules/canon-host: Likewise.
32608         * modules/configmake: Likewise.
32609         * modules/dirent: Likewise.
32610         * modules/eealloc: Likewise.
32611         * modules/environ: Likewise.
32612         * modules/fchdir: Likewise.
32613         * modules/fcntl: Likewise.
32614         * modules/fcntl-h: Likewise.
32615         * modules/gethrxtime: Likewise.
32616         * modules/gettime: Likewise.
32617         * modules/ignore-value: Likewise.
32618         * modules/inet_ntop: Likewise.
32619         * modules/inet_pton: Likewise.
32620         * modules/inttypes: Likewise.
32621         * modules/isnand-nolibm: Likewise.
32622         * modules/isnanf-nolibm: Likewise.
32623         * modules/mbchar: Likewise.
32624         * modules/mbfile: Likewise.
32625         * modules/mbiter: Likewise.
32626         * modules/mbuiter: Likewise.
32627         * modules/netdb: Likewise.
32628         * modules/netinet_in: Likewise.
32629         * modules/nproc: Likewise.
32630         * modules/pagealign_alloc: Likewise.
32631         * modules/poll: Likewise.
32632         * modules/printf-frexp: Likewise.
32633         * modules/pthread: Likewise.
32634         * modules/putenv: Likewise.
32635         * modules/random_r: Likewise.
32636         * modules/relocatable-prog: Likewise.
32637         * modules/search: Likewise.
32638         * modules/select: Likewise.
32639         * modules/selinux-h: Likewise.
32640         * modules/settime: Likewise.
32641         * modules/signal: Likewise.
32642         * modules/size_max: Likewise.
32643         * modules/socklen: Likewise.
32644         * modules/ssize_t: Likewise.
32645         * modules/stdarg: Likewise.
32646         * modules/stdbool: Likewise.
32647         * modules/stddef: Likewise.
32648         * modules/stdint: Likewise.
32649         * modules/stdio: Likewise.
32650         * modules/stdlib: Likewise.
32651         * modules/string: Likewise.
32652         * modules/strings: Likewise.
32653         * modules/sys_file: Likewise.
32654         * modules/sys_ioctl: Likewise.
32655         * modules/sys_select: Likewise.
32656         * modules/sys_socket: Likewise.
32657         * modules/sys_stat: Likewise.
32658         * modules/sys_time: Likewise.
32659         * modules/sys_times: Likewise.
32660         * modules/sys_utsname: Likewise.
32661         * modules/sys_wait: Likewise.
32662         * modules/sysexits: Likewise.
32663         * modules/time: Likewise.
32664         * modules/times: Likewise.
32665         * modules/tmpfile: Likewise.
32666         * modules/trim: Likewise.
32667         * modules/unistd: Likewise.
32668         * modules/wchar: Likewise.
32669         * modules/wctype: Likewise.
32670
32671 2009-09-17  Bruno Haible  <bruno@clisp.org>
32672
32673         Make getdate.y compile on QNX and NetBSD 5 / i386.
32674         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32675         TIME_T_FITS_IN_LONG_INT.
32676         * lib/getdate.y (long_time_t): New type.
32677         (relative_time): Change type of 'seconds' field to long_time_t.
32678         (get_date): Update types of local variables. Check against overflow
32679         during conversion from long_time_t to time_t.
32680         Reported by Matt Kraai <kraai@ftbfs.org>
32681         and Hasso Tepper <hasso@netbsd.org>.
32682
32683 2009-09-17  Bruno Haible  <bruno@clisp.org>
32684
32685         * modules/COPYING: Update copyright years.
32686         * modules/README: Likeiwse.
32687         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32688         Reported by Ian Beckwith <ianb@erislabs.net>.
32689
32690 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32691
32692         * users.txt: Update references for gnuit package.
32693
32694 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32695
32696         * m4/getdelim.m4: Fix typo in copyright line.
32697
32698 2009-09-17  Bruno Haible  <bruno@clisp.org>
32699
32700         * lib/atoll.c: Use the standard header with GPL copyright.
32701         * lib/argz.in.h: Likewise.
32702         * lib/glob.c: Likewise.
32703         * lib/glob-libc.h: Likewise.
32704         * lib/random_r.c: Likewise.
32705         * lib/siglist.h: Likewise.
32706         * lib/strsignal.c: Likewise.
32707         Reported by Ian Beckwith <ianb@erislabs.net>.
32708
32709 2009-09-17  Eric Blake  <ebb9@byu.net>
32710
32711         rmdir: ensure correct dependency order
32712         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32713
32714 2009-09-17  Bruno Haible  <bruno@clisp.org>
32715
32716         Disable assertion that fails on NetBSD 5 / i386.
32717         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32718         Reported by Sam Steingold <sds@gnu.org>
32719         and Hasso Tepper <hasso@netbsd.org>.
32720
32721 2009-09-16  Eric Blake  <ebb9@byu.net>
32722
32723         unlinkdir: port to mingw
32724         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32725         on which no one can unlink a directory.
32726
32727         stdlib: sort witness names
32728         * modules/stdlib (Makefile.am): Sort replacements.
32729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32730         * lib/stdlib.in.h: Likewise.
32731
32732         parse-duration-tests: avoid link failure
32733         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32734         LIBINTL.
32735         Reported by Tom G. Christensen.
32736
32737         openat-tests: ensure unlinkat behaves like rmdir
32738         * tests/test-rmdir.c (main): Factor guts...
32739         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32740         * modules/rmdir-tests (Files): Ship new file.
32741         * modules/openat-tests: New test.
32742         * tests/test-unlinkat.c: Likewise.
32743
32744         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32745         * modules/rmdir-errno (Status, Notice): Now obsolete.
32746
32747         rmdir: work around cygwin 1.5.x and mingw bugs
32748         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32749         * lib/rmdir.c (rmdir): Work around it.
32750         * modules/rmdir (Status, Notice): No longer obsolete.
32751         (Files): Add dos.m4.
32752         (Depends-on): Add unistd.
32753         (configure.ac): Set witnesses.
32754         (License): Relax to LGPLv2+.
32755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32756         * modules/unistd (Makefile.am): Substitute witnesses.
32757         * lib/unistd.in.h (rmdir): Declare replacement.
32758         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32759         * modules/rmdir-tests: New tests.
32760         * tests/test-rmdir.c: Likewise.
32761
32762 2009-09-15  Eric Blake  <ebb9@byu.net>
32763
32764         fchdir: improve use of replacement functions
32765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32766         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32767         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32768         REPLACE_CLOSEDIR.
32769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32770         * modules/sys_stat (Makefile.am): Substitute correct witness.
32771         * modules/dirent (Makefile.am): Likewise.
32772         * modules/unistd (Makefile.am): Likewise.
32773         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32774         * lib/unistd.in.h (dup): Likewise.
32775         * lib/sys_stat.in.h (fstat): Likewise.
32776
32777         maint: ignore gnulib-tool temp files
32778         * .gitignore: Ignore files created during gnulib-tool --test.
32779
32780 2009-09-13  Jim Meyering  <meyering@redhat.com>
32781
32782         posixtm: don't reject a time that specify "60" as the number of seconds
32783         * lib/posixtm.c (posixtime): The code to reject invalid dates
32784         would also reject a time specified with the .60 suffix.
32785         But POSIX allows that, in order to accommodate leap seconds.
32786         So don't reject it.
32787         (main): Adjust tests accordingly.
32788         * modules/posixtm (Depends-on): Add stpcpy.
32789
32790 2009-09-11  Jim Meyering  <meyering@redhat.com>
32791
32792         announce-gen: include [$release_type] in emitted Subject:
32793         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32794         e.g., [stable] in the emitted Subject: line.
32795
32796 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32797
32798         Remove obsolete macros from several modules.
32799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32800         obsolete Autoconf macros with their modern counterparts.
32801         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32802         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32804         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32805         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32806         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32807         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32808         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32809         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32810         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32811         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32812         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32813         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32814         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32815         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32816         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32817         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32818         * m4/time_r.m4 (gl_TIME_R): Likewise.
32819         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32820         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32821         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32822
32823         Fix copyright header in build-aux scripts.
32824         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32825         recommendation.
32826         * build-aux/ncftpput-ftp: Likewise.
32827         * build-aux/update-copyright: Likewise.
32828
32829 2009-09-09  Eric Blake  <ebb9@byu.net>
32830
32831         test-link: allow Linux choice of errno
32832         * tests/test-link.c (main): Relax test for alternate error.
32833
32834         strndup: fix improper m4 caching
32835         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32836         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32837         (gl_PREREQ_STRNDUP): Delete.
32838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32839         * modules/string (Makefile.am): Substitute it.
32840         * lib/string.in.h (strndup): Modernize prototype.
32841
32842         getcwd: port to mingw
32843         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32844         different from the POSIX assumptions made throughout the getcwd
32845         module; fortunately, the mingw getcwd does not need replacement.
32846         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32847         * modules/getcwd-tests: New test.
32848         * tests/test-getcwd.c: Likewise.
32849
32850         link: fix platform bugs
32851         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32852         * lib/link.c (link): Work around them.  Fix related mingw bug.
32853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32854         * modules/unistd (Makefile.am): Substitute it.
32855         * lib/unistd.in.h (link): Declare replacement.
32856         * doc/posix-functions/link.texi (link): Document this.
32857         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32858
32859         test-link: consolidate into single C program, test more cases
32860         * tests/test-link.sh: Delete.
32861         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32862         at least Cygwin and Solaris.
32863         * modules/link-tests (Files): Remove unused file.
32864         (Depends-on): Add errno, sys_stat.
32865         (Makefile.am): Simplify.
32866
32867 2009-09-08  Bruno Haible  <bruno@clisp.org>
32868
32869         Work around towlower, towupper bug on mingw.
32870         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32871         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32872         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32873         * doc/posix-functions/towupper.texi: Likewise.
32874         Reported by Eric Blake.
32875
32876 2009-09-08  Jim Meyering  <meyering@redhat.com>
32877
32878         build: don't try to run autoheader if we don't use it
32879         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32880         is not used in configure.ac.
32881
32882 2009-09-08  Eric Blake  <ebb9@byu.net>
32883
32884         euidaccess: fix compilation error
32885         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32886
32887         rawmemchr: relax license
32888         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32889         okay.
32890         Reported by Jim Meyering.
32891
32892         mkfifoat: new module
32893         * modules/mkfifoat: New file.
32894         * lib/mkfifoat.c: Likewise.
32895         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32897         * modules/sys_stat (Makefile.am): Use them.
32898         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32899         * MODULES.html.sh (File system functions): Mention module.
32900         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32901         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32902         * modules/mkfifoat-tests: New test.
32903         * tests/test-mkfifoat.c: Likewise.
32904
32905         strchrnul: relax license
32906         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32907         okay.
32908         Reported by Jim Meyering.
32909
32910 2009-09-08  Eric Blake  <ebb9@byu.net>
32911
32912         fstatat: fix compilation on Solaris
32913         * lib/fstatat.c (includes): Add fcntl.h.
32914         Reported by Pádraig Brady.
32915
32916 2009-09-07  Eric Blake  <ebb9@byu.net>
32917
32918         rename: modernize replacement
32919         * modules/rename (Depends-on): Add stdio.
32920         (configure.ac): Declare witness.
32921         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32922         stdio take care of replacement.
32923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32924         * modules/stdio (Makefile.am): Substitute them.
32925         * lib/stdio.in.h (rename): Declare replacement.
32926         * lib/rename.c (includes): Allow cross-compilation to non-windows
32927         machines.
32928         * doc/posix-functions/rename.texi (rename): Improve
32929         documentation.
32930
32931         stdio: sort witness names
32932         * modules/stdio (Makefile.am): Sort replacements.
32933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32934         * lib/stdio.in.h: Likewise.
32935
32936         getcwd: minor cleanups
32937         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32938         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32939
32940         openat: provide more convenience names
32941         * modules/faccessat (configure.ac): Add C witness.
32942         * lib/unistd.in.h (readlinkat): Fix typo.
32943         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32944         convenience wrappers.
32945         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32946         wrappers in syntax checks.
32947
32948 2009-09-06  Eric Blake  <ebb9@byu.net>
32949
32950         doc: fix comments in recent patches
32951         * lib/faccessat.c: Mention correct function.
32952         * lib/fchmodat.c: Likewise.
32953         * lib/fchownat.c: Likewise.
32954         * lib/symlinkat.c: Likewise.
32955         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32956         constants.
32957
32958         faccessat, symlinkat: continue cleanup of previous patch
32959         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32960         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32961         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32963         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32964         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32965         set.
32966
32967 2009-09-06  Bruno Haible  <bruno@clisp.org>
32968
32969         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32970         (fstatat): Declare if GNULIB_FSTATAT is set.
32971         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32972         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32973         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32974         * modules/fcntl-h (Files): Remove m4/openat.m4.
32975         * modules/sys_stat (Files): Remove m4/openat.m4.
32976         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32977         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32978         * modules/unistd (Files): Remove m4/openat.m4.
32979         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32980         GNULIB_OPENAT.
32981         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32982         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32984         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32985         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32986         gl_OPENAT_DEFAULTS.
32987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32988         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32989         Don't require gl_OPENAT_DEFAULTS.
32990         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32991         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32992         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32993         (gl_OPENAT_DEFAULTS): Remove macro.
32994
32995 2009-09-06  Bruno Haible  <bruno@clisp.org>
32996
32997         * modules/openat (configure.ac): Remove unneeded witness.
32998
32999 2009-09-06  Bruno Haible  <bruno@clisp.org>
33000
33001         Set errno to ENOSYS when a function is entirely unsupported.
33002         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33003         EOPNOTSUPP.
33004         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33005         * modules/chown (Depends-on): Remove errno.
33006
33007 2009-09-06  Bruno Haible  <bruno@clisp.org>
33008
33009         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33010
33011 2009-09-06  Bruno Haible  <bruno@clisp.org>
33012
33013         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33014
33015 2009-09-06  Ben Pfaff  <blp@gnu.org>
33016             Bruno Haible  <bruno@clisp.org>
33017
33018         Work around a glibc bug in strtok_r.
33019         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33020         Undefine if UNDEFINE_STRTOK_R is set.
33021         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33023         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33024         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33025         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33026         UNDEFINE_STRTOK_R.
33027         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33028
33029 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33030
33031         exclude: minor fix
33032         * lib/exclude.c: Include wctype.h
33033
33034 2009-09-06  Akim Demaille  <demaille@gostai.com>
33035
33036         bootstrap: improve error message
33037         * build-aux/bootstrap (find_tool): Upon failure, report the list
33038         of candidates.
33039         Honor the initial value of the envvar.
33040
33041 2009-09-05  Eric Blake  <ebb9@byu.net>
33042
33043         symlinkat: new module
33044         * modules/symlinkat: New file.
33045         * lib/symlinkat.c: Likewise.
33046         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33048         * modules/unistd (Makefile.am): Use them.
33049         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33050         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33051         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33052         * MODULES.html.sh (File system functions): Mention module.
33053         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33054         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33055         * modules/symlinkat-tests: New test.
33056         * tests/test-symlinkat.c: Likewise.
33057
33058         test-openat-safer: add more checks
33059         * tests/test-openat-safer.c (main): Check more code paths.
33060
33061 2009-09-05  Jim Meyering  <meyering@redhat.com>
33062
33063         syntax-check: detect unnecessary inclusion of openat.h
33064         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33065
33066 2009-09-05  Bruno Haible  <bruno@clisp.org>
33067
33068         Support towlower, towupper.
33069         * doc/posix-functions/towlower.texi: Mention module wctype.
33070         * doc/posix-functions/towupper.texi: Likewise.
33071         * lib/wctype.in.h (towlower, towupper): New functions.
33072         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33073         (ASSERT): New macro.
33074         (e): New variable.
33075         (main): Test also towlower, towupper. Test WEOF argument.
33076         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33077
33078 2009-09-05  Bruno Haible  <bruno@clisp.org>
33079
33080         Fix conversion behaviour when the input is invalid.
33081         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33082         mark occurring in first pass of indirect conversion.
33083         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33084         input.
33085         Found by clang's static analyzer.
33086
33087 2009-09-05  Bruno Haible  <bruno@clisp.org>
33088
33089         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33090         where direct conversion is possible.
33091
33092 2009-09-04  Eric Blake  <ebb9@byu.net>
33093
33094         openat: fail with ENOENT on empty name
33095         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33096         buffer.
33097
33098         link-follow: fix logic bug in prior patch
33099         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33100         reversed sense of yes and no in prior patch.  Avoid confusing
33101         compilation failure with desired semantics.
33102
33103         link-follow: accomodate mingw and cross-compilation
33104         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33105         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33106         cross-compilation results to -1, to make linkat easier to
33107         implement when cross-compiling.  Trivially support mingw.
33108         * modules/link-follow (configure.ac): Call new name.
33109         * NEWS: Mention this.
33110
33111 2009-09-03  Eric Blake  <ebb9@byu.net>
33112
33113         faccessat: compile replacement
33114         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33115         needed.
33116
33117         fts: fix compilation error
33118         * lib/fts.c (includes): Re-add "openat.h", for
33119         openat_needs_fchdir.
33120
33121         faccessat: new module
33122         * modules/faccessat: New file.
33123         * lib/faccessat.c: Likewise.
33124         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33126         * modules/unistd (Makefile.am): Use it.
33127         * lib/unistd.in.h (faccessat): Declare it.
33128         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33129         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33130         * MODULES.html.sh (File system functions): Mention it.
33131         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33132         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33133
33134         euidaccess: prefer POSIX over non-standard implementation
33135         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33136         * lib/euidaccess.c (euidaccess): Use it if available.
33137
33138         openat: make template easier to use
33139         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33140         AT_FUNC_F2 to be undefined.
33141         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33142         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33143         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33144         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33145         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33146         Likewise.
33147         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33148         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33149         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33150         Likewise.
33151
33152         openat: declare in POSIX headers
33153         * NEWS: Mention this.
33154         * modules/openat (configure.ac): Declare witnesses.
33155         (Depends-on): Add fcntl-h, sys_stat, unistd.
33156         (Include): Mention correct headers.
33157         * modules/fcntl-h (Depends-on): Add link-warning.
33158         (Files): Add openat.m4.
33159         (Makefile.am): Substitute witnesses.
33160         * modules/sys_stat (Files, Makefile.am): Likewise.
33161         * modules/unistd (Files, Makefile.am): Likewise.
33162         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33163         (gl_OPENAT_DEFAULTS): New macro.
33164         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33166         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33167         (SYS_STAT_H): Remove unused variable.
33168         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33169         * lib/fcntl--.h (includes): Remove unneeded header.
33170         * lib/openat-safer.c (includes): Likewise.
33171         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33172         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33173         appropriate headers.
33174         (__OPENAT_PREFIX): Delete.
33175         * lib/fcntl.in.h (openat): Provide declaration.
33176         (AT_FDCWD): Fix Solaris bug.
33177         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33178         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33179         * lib/fchmodat.c (includes):  Adjust to find declaration.
33180         * lib/fchownat.c (includes): Likewise.
33181         * lib/mkdirat.c (includes): Likewise.
33182         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33183         still visible.
33184
33185 2009-09-02  Eric Blake  <ebb9@byu.net>
33186
33187         errno: use consistently
33188         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33189         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33190         * lib/canonicalize.c (ELOOP): Likewise.
33191         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33192         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33193         * lib/lchown.c (EOPNOTSUPP): Likewise.
33194         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33195         * lib/savewd.c (ESTALE): Likewise.
33196         * lib/settime.c (ENOSYS): Likewise.
33197         * lib/utimens.c (ENOSYS): Likewise.
33198         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33199         * lib/chdir-safer.c (ELOOP): Likewise.
33200         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33201         * modules/c-stack (Depends-on): Add errno.
33202         * modules/canonicalize (Depends-on): Likewise.
33203         * modules/chdir-safer (Depends-on): Likewise.
33204         * modules/fdopendir (Depends-on): Likewise.
33205         * modules/inet_ntop (Depends-on): Likewise.
33206         * modules/inet_pton (Depends-on): Likewise.
33207         * modules/lchown (Depends-on): Likewise.
33208         * modules/openat (Depends-on): Likewise.
33209         * modules/savewd (Depends-on): Likewise.
33210         * modules/settime (Depends-on): Likewise.
33211         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33212
33213         fts: avoid leaking fds
33214         * modules/fts (Depends-on): Add cloexec.
33215         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33216         flag.
33217
33218         fts: make directory fds more robust
33219         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33220         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33221
33222         backupfile, chdir-long, fts, savedir: make safer
33223         * lib/backupfile.c (includes): Use "dirent--.h", since
33224         numbered_backup can write to stderr during readdir.
33225         * lib/savedir.c (includes): Likewise.
33226         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33227         emulation can write to stderr on failure.
33228         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33229         * lib/getcwd.c: Document why opendir_safer is unused.
33230         * lib/glob.c: Likewise.
33231         * lib/scandir.c: Likewise.
33232         * lib/openat-proc.c: Likewise, for open_safer.
33233         * modules/backupfile (Depends-on): Add dirent-safer.
33234         * modules/savedir (Depends-on): Likewise.
33235         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33236         * modules/chdir-long (Depends-on): Add openat-safer.
33237
33238         openat-safer: new module
33239         * modules/openat-safer: New file.
33240         * lib/openat-safer.c: Likewise.
33241         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33242         * lib/fcntl-safer.h (openat_safer): Declare.
33243         * lib/fcntl--.h (openat): Override.
33244         * MODULES.html.sh (File descriptor based I/O): Mention it.
33245         * lib/openat.h: Add double-inclusion guards.
33246         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33247         "fcntl--.h", so we can implement openat.
33248         * modules/openat-safer-tests: New test.
33249         * tests/test-openat-safer.c: New file.
33250
33251         dirent-safer: new module
33252         * modules/dirent-safer: New file.
33253         * lib/dirent--.h: Likewise.
33254         * lib/dirent-safer.h: Likewise.
33255         * lib/opendir-safer.c: Likewise.
33256         * m4/dirent-safer.m4: Likewise.
33257         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33258         * modules/dirent-safer-tests: New test.
33259         * tests/test-dirent-safer.c: New file.
33260         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33261
33262         fdopendir: optimize on mingw
33263         * lib/unistd.in.h (_gl_directory_name): New prototype.
33264         * lib/fchdir.c (_gl_directory_name): Implement it.
33265         (fchdir): Use it to simplify implementation.
33266         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33267         fchdir, when available, to avoid calling [f]chdir().
33268
33269         fdopendir: split into its own module
33270         * lib/openat.c (fdopendir): Move...
33271         * lib/fdopendir.c: ...into new file.
33272         * modules/fdopendir: New module.
33273         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33274         * modules/openat (Depends-on): Add fdopendir.
33275         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33276         fdopendir here.
33277         * modules/savedir (Depends-on): Only need fdopendir, not full
33278         openat.
33279         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33280         * lib/openat.h (fdopendir): Drop prototype.
33281         * lib/dirent.in.h (fdopendir): Provide prototype.
33282         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33283         * modules/dirent (Makefile.am): Substitute them.
33284         * MODULES.html.sh (File system functions): Mention it.
33285         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33286         * modules/fdopendir-tests: New file.
33287         * tests/test-fdopendir.c: Likewise.
33288
33289         fchdir: use more consistent macro convention
33290         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33291         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33292         REPLACE_FCHDIR, rather than relying on config.h macros.
33293         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33294         inside a single make-time REPLACE_FCHDIR block, rather than using
33295         the config.h FCHDIR_REPLACEMENT.
33296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33297         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33298         Manage fstat replacement.
33299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33300         REPLACE_FCHDIR.
33301         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33302         (Makefile.am): Substitute REPLACE_FCHDIR.
33303         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33304         FCHDIR_REPLACEMENT.
33305         * lib/dup-safer.c (dup_safer): Likewise.
33306         * lib/dup2.c (rpl_dup2): Likewise.
33307         * lib/dup3.c (rpl_dup3): Likewise.
33308         * lib/open.c (rpl_open): Likewise.
33309
33310         fchdir: simplify error handling, and support dup3
33311         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33312         stdbool, malloc-posix, realloc-posix.
33313         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33314         (ensure_dirs_slot): Return false on allocation failure.
33315         (rpl_dup2): Delete.
33316         (_gl_register_dup): New function.
33317         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33318         (_gl_register_fd): Close fd on allocation failure.
33319         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33320         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33321         prototype.
33322         (rpl_dup2_fchdir): Delete prototype.
33323         * lib/open.c (open): Update caller.
33324         * lib/dup2.c (dup2): Track fchdir metadata.
33325         * lib/dup3.c (dup3): Likewise.
33326         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33327         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33328
33329 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33330
33331         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33332         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33333         don't pass arguments to AC_OUTPUT.
33334
33335 2009-09-02  Bruno Haible  <bruno@clisp.org>
33336
33337         * modules/mkdtemp (License): Relicense under LGPLv2+.
33338         Reported by Paolo Bonzini.
33339
33340 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33341
33342         Replace uses of obsolete autoconf macros in Jim's modules.
33343         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33344         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33345         can evoke a warning from autoconf when run with -Wobsolete
33346         enabled.  They were declared obsolete for good reasons (see
33347         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33348         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33349         should not continue using the deprecated macros.
33350         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33351         obsolete Autoconf macros with modern counterparts.
33352         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33353         * m4/dos.m4 (gl_AC_DOS): Likewise.
33354         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33355         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33356         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33357         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33358         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33359         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33360         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33361         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33362         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33363         Likewise.
33364         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33365         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33366         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33367         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33368         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33369         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33370
33371 2009-09-01  Eric Blake  <ebb9@byu.net>
33372
33373         fchdir: fix off-by-one bug in previous patch
33374         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33375         (_gl_unregister_fd): Delete useless if.
33376
33377 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33378
33379         maint.mk: sort the list of syntax-check rules
33380         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33381         easier to get a sense of progress when the rules are run sequentially
33382         and take a long time.
33383
33384 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33385
33386         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33387         * modules/netinet_in: Likewise.
33388         * modules/sys_file: Likewise.
33389         * modules/sys_ioctl: Likewise.
33390         * modules/sys_select: Likewise.
33391         * modules/sys_socket: Likewise.
33392         * modules/sys_stat: Likewise.
33393         * modules/sys_time: Likewise.
33394         * modules/sys_times: Likewise.
33395         * modules/sys_utsname: Likewise.
33396         * modules/sys_wait: Likewise.
33397
33398 2009-09-01  Jim Meyering  <meyering@redhat.com>
33399
33400         fts: help ensure that return values are not ignored
33401         * lib/fts_.h (__GNUC_PREREQ): Define.
33402         (__attribute_warn_unused_result__): Define.
33403         (fts_children, fts_close, fts_open, fts_read): Declare with
33404         __attribute_warn_unused_result__.
33405
33406         fts: fts_close now fails also when closing a dir file descriptor fails
33407         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33408         and propagate to caller, along with errno.
33409
33410         announce-gen: correct formatting in --help output
33411         * build-aux/announce-gen (usage): Move the one-line description in
33412         --help output "up", to where it belongs, just after Usage:.
33413
33414 2009-08-31  Eric Blake  <ebb9@byu.net>
33415
33416         fchdir: port to mingw
33417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33418         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33419         opened, then use a substitute.
33420         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33421         replacement.
33422         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33423         (_gl_register_fd): No need to check stat if open already filters
33424         all directories.
33425         (fchdir): Fix error condition to match POSIX.
33426         * modules/fchdir (Depends-on): Add sys_stat.
33427         * doc/posix-functions/open.texi (open): Document the limitation.
33428         * modules/fchdir-tests: New file.
33429         * tests/test-fchdir.c: Likewise.
33430
33431         canonicalize: allow cross-testing from cygwin to mingw
33432         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33433         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33434         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33435         Likewise.
33436         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33437         target does not support symlinks.
33438         * tests/test-canonicalize-lgpl.sh: Likewise.
33439
33440         chown: avoid compilation warning on mingw
33441         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33442         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33443         mingw.
33444         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33445         * modules/chown (Depends-on): Add errno.
33446
33447 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33448
33449         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33450         command.
33451
33452 2009-08-31  Jim Meyering  <meyering@redhat.com>
33453
33454         canonicalize: remove useless initialization
33455         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33456         initialization of local, "end".
33457
33458 2009-08-30  Bruno Haible  <bruno@clisp.org>
33459
33460         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33461         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33462         ENOSYS.
33463
33464 2009-08-30  Bruno Haible  <bruno@clisp.org>
33465
33466         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33467         /usr/xpg4/bin/tr when it exists.
33468         * tests/test-pipe-filter-gi1.sh: Likewise.
33469
33470 2009-08-30  Bruno Haible  <bruno@clisp.org>
33471
33472         Work around deficient /usr/bin/id program on Solaris.
33473         * tests/test-file-has-acl.sh (ID): New variable.
33474         * tests/test-set-mode-acl.sh (ID): Likewise.
33475         * tests/test-copy-acl.sh (ID): Likewise.
33476         * tests/test-copy-file.sh (ID): Likewise.
33477
33478 2009-08-30  Bruno Haible  <bruno@clisp.org>
33479
33480         New module 'xstriconveh'.
33481         * lib/xstriconveh.h: New file.
33482         * lib/xstriconveh.c: New file.
33483         * modules/xstriconveh: New file.
33484
33485 2009-08-30  Bruno Haible  <bruno@clisp.org>
33486
33487         Make it easier to use mem_cd_iconveh.
33488         * lib/striconveh.h (iconveh_t): New type.
33489         (iconveh_open, iconveh_close): New declarations.
33490         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33491         with a single 'const iconveh_t *' argument.
33492         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33493         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33494         with a single 'const iconveh_t *' argument.
33495         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33496         * tests/test-striconveh.c (main): Update.
33497         * NEWS: Mention the change.
33498
33499 2009-08-30  Bruno Haible  <bruno@clisp.org>
33500
33501         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33502         problem.
33503
33504 2009-08-30  Bruno Haible  <bruno@clisp.org>
33505
33506         Work around iconv_open problem on Solaris.
33507         * lib/iconv_open-solaris.gperf: New file.
33508         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33509         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33510         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33511         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33512         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33513         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33514
33515 2009-08-29  Jim Meyering  <meyering@redhat.com>
33516
33517         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33518         * top/maint.mk (cvs-check): Remove target; it was just an alias
33519         to the better-named vc-diff-check.
33520         (maintainer-distcheck): Remove rule.  It was used only from
33521         the (alpha/beta/major) target, and all of its commands but one
33522         were coreutils-specific.
33523         (vc-dist): Remove rule.
33524         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33525         Run vc-diff-check, not vc-dist.
33526         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33527
33528 2009-08-27  Bruno Haible  <bruno@clisp.org>
33529
33530         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33531         of 0.
33532
33533 2009-08-27  Bruno Haible  <bruno@clisp.org>
33534
33535         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33536         compilers.
33537         * doc/func.texi: Document the SunPRO C bug.
33538
33539 2009-08-27  Bruno Haible  <bruno@clisp.org>
33540
33541         Fix link error on Solaris.
33542         * tests/test-parse-duration.c (xstrdup): Remove function.
33543
33544 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33545
33546         ignore-value: handle pointer types, too
33547         * lib/ignore-value.h (__attribute__): Remove definition.
33548         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33549         of a more concise and more-often effective "(void) i" statement.
33550         (ignore_ptr): New function to suppress warnings from functions that
33551         return pointers, and to make it explicit that one function doesn't
33552         handle all cases.
33553
33554 2009-08-25  Bruno Haible  <bruno@clisp.org>
33555
33556         dup2: work around a Linux bug.
33557         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33558         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33559         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33560         Reported by Simon Josefsson.
33561
33562 2009-08-25  Jim Meyering  <meyering@redhat.com>
33563
33564         libguestfs uses gnulib
33565         * users.txt: Add libguestfs.
33566
33567 2009-08-24  Eric Blake  <ebb9@byu.net>
33568
33569         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33570         * lib/pipe2.c (includes): Add binary-io.h.
33571         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33572
33573 2009-08-24  Bruno Haible  <bruno@clisp.org>
33574
33575         Tolerate declared but missing accept4 syscall.
33576         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33577         available.
33578         * lib/sys_socket.in.h (accept4): If the function is already present,
33579         override it.
33580         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33581         * modules/accept4 (Makefile.am): Compile accept4.c always.
33582         Reported by Paolo Bonzini and Eric Blake.
33583
33584 2009-08-23  Bruno Haible  <bruno@clisp.org>
33585
33586         New module 'accept4'.
33587         * lib/sys_socket.in.h (accept4): New declaration.
33588         * lib/accept4.c: New file.
33589         * m4/accept4.m4: New file.
33590         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33591         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33592         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33593         HAVE_ACCEPT4.
33594         * modules/accept4: New file.
33595         * doc/glibc-functions/accept4.texi: Mention the new module.
33596
33597 2009-08-24  Jim Meyering  <meyering@redhat.com>
33598
33599         progname: also set global program_invocation_name, when possible
33600         Before this change, a libtool-enabled program that calls glibc's
33601         error function would report the program name as
33602         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33603         * modules/progname (configure.ac): Check for a declaration of
33604         program_invocation_name.
33605         * lib/progname.c:  Include <errno.h>.
33606         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33607         Set program_invocation_name.
33608
33609 2009-08-23  Bruno Haible  <bruno@clisp.org>
33610
33611         * lib/dup3.c: Include <string.h>.
33612
33613 2009-08-23  Bruno Haible  <bruno@clisp.org>
33614
33615         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33616         * lib/pipe2.c (pipe2): Likewise.
33617         Suggested by Eric Blake.
33618
33619 2009-08-23  Bruno Haible  <bruno@clisp.org>
33620
33621         Tolerate declared but missing dup3 syscall.
33622         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33623         * lib/unistd.in.h (dup3): If the function is already present,
33624         override it.
33625         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33626         * modules/dup3 (Makefile.am): Compile dup3.c always.
33627         Reported by Paolo Bonzini.
33628
33629 2009-08-23  Bruno Haible  <bruno@clisp.org>
33630
33631         Tolerate declared but missing pipe2 syscall.
33632         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33633         available.
33634         * lib/unistd.in.h (pipe2): If the function is already present,
33635         override it.
33636         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33637         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33638         Reported by Paolo Bonzini.
33639
33640 2009-08-23  Bruno Haible  <bruno@clisp.org>
33641
33642         * lib/pipe2.c (pipe2): Move #ifs inside function.
33643
33644 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33645
33646         quotearg: document limitations of quote_these_too
33647         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33648         those limitations are created.
33649         * lib/quotearg.h (set_char_quoting): Document that digits and
33650         letters that are special after backslash are not permitted.
33651         (quotearg_char): Cross-reference set_char_quoting documentation.
33652
33653 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33654
33655         quotearg: implement custom_quoting_style
33656         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33657         right_quote fields.
33658         (set_custom_quoting): New public function.
33659         (quotearg_buffer_restyled): Add left_quote and right_quote
33660         arguments, handle them very much like locale quoting, and update
33661         all uses.
33662         (quotearg_n_custom): New public function.
33663         (quotearg_n_custom_mem): New public function.
33664         (quotearg_custom): New public function.
33665         (quotearg_custom_mem): New public function.
33666         * lib/quotearg.h: Prototype and document new public functions.
33667         (enum quoting_style): For escape_quoting_style and
33668         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33669         ignored even though they're otherwise like c_quoting_style.
33670         Add custom_quoting_style member and document with comparison to
33671         clocale_quoting_style.
33672         * tests/test-quotearg.c (custom_quotes): New array.
33673         (custom_results): New array.
33674         (main): Extend to test custom quoting.
33675
33676 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33677
33678         quotearg: fix right quote escaping when it's in quote_these_too
33679         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33680         quote, be sure to prepend only one backslash.
33681         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33682         (main): Test it.
33683
33684 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33685
33686         quotearg-tests: test escaping of embedded locale quotes
33687         * tests/test-quotearg.c (struct result_strings): Add member for
33688         new input.
33689         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33690         (inputs): Add new input.
33691         (results_g): Add expected results.
33692         (flag_results): Likewise.
33693         (locale_results): Likewise.
33694         (compare_strings): Check those.
33695
33696 2009-08-23  Bruno Haible  <bruno@clisp.org>
33697
33698         Tests for module 'dup3'.
33699         * modules/dup3-tests: New file.
33700         * tests/test-dup3.c: New file.
33701
33702         New module 'dup3'.
33703         * lib/unistd.in.h (dup3): New declaration.
33704         * lib/dup3.c: New file.
33705         * m4/dup3.m4: New file.
33706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33707         HAVE_DUP3.
33708         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33709         * modules/dup3: New file.
33710         * doc/glibc-functions/dup3.texi: Mention the new module.
33711
33712 2009-08-23  Bruno Haible  <bruno@clisp.org>
33713
33714         Tweak the dup2 test.
33715         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33716         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33717         the test file is still empty. Fix argument order of lseek.
33718
33719 2009-08-23  Bruno Haible  <bruno@clisp.org>
33720
33721         Avoid test link errors when the modules getopt-gnu, gettext are used.
33722         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33724
33725 2009-08-23  Bruno Haible  <bruno@clisp.org>
33726
33727         Fix getdtablesize() on mingw.
33728         * lib/getdtablesize.c (getdtablesize): Implement differently.
33729         * lib/unistd.in.h (getdtablesize): Improve comment.
33730
33731 2009-08-23  Bruno Haible  <bruno@clisp.org>
33732
33733         New module 'mkostemp'.
33734         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33735         * lib/stdlib.in.h (mksotemp): New declaration.
33736         * lib/mkostemp.c: New file, from glibc with modifications.
33737         * lib/tempname.h (GT_FILE): Remove outdated comment.
33738         (gen_tempname): Add flags argument.
33739         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33740         (__GT_FILE): Map to 1.
33741         (small_open, large_open): Remove macros.
33742         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33743         * lib/mkstemp.c (mkstemp): Update.
33744         * lib/mkdtemp.c (mkdtemp): Likewise.
33745         * m4/mkostemp.m4: New file.
33746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33747         HAVE_MKOSTEMP.
33748         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33749         HAVE_MKOSTEMP.
33750         * modules/mkostemp: New file, based on modules/mkstemp.
33751         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33752         * NEWS: Mention the change.
33753
33754 2009-08-23  Bruno Haible  <bruno@clisp.org>
33755
33756         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33757         Reported by Eric Blake.
33758
33759 2009-08-23  Bruno Haible  <bruno@clisp.org>
33760
33761         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33762         Reported by Eric Blake.
33763
33764 2009-08-23  Bruno Haible  <bruno@clisp.org>
33765
33766         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33767         * modules/pipe2 (Depends-on): Likewise.
33768
33769 2009-08-23  Eric Blake  <ebb9@byu.net>
33770
33771         fcntl-h: add O_TTY_INIT support
33772         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33773         * tests/test-fcntl-h.c (o): Test it.
33774         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33775
33776         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33777         * modules/fcntl: Move <fcntl.h> header replacement...
33778         * modules/fcntl-h: ...to new name, so as not to collide with
33779         like-named function.
33780         * tests/test-fcntl.c: Rename...
33781         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33782         * modules/fcntl-tests: Rename...
33783         * modules/fcntl-h-tests: ...to this.  Update test file name.
33784         * modules/chdir-long (Depends-on): Update clients.
33785         * modules/chdir-safer (Depends-on): Likewise.
33786         * modules/fcntl-safer (Depends-on): Likewise.
33787         * modules/fts (Depends-on): Likewise.
33788         * modules/mkancesdirs (Depends-on): Likewise.
33789         * modules/mkdir-p (Depends-on): Likewise.
33790         * modules/open (Depends-on): Likewise.
33791         * modules/savewd (Depends-on): Likewise.
33792         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33793         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33794
33795 2009-08-22  Bruno Haible  <bruno@clisp.org>
33796
33797         * modules/binary-io (License): Relicense under LGPL.
33798         * modules/pipe2 (License): Likewise.
33799
33800 2009-08-22  Bruno Haible  <bruno@clisp.org>
33801
33802         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33803         return value.
33804         * lib/pipe-filter-gi.c (filter_init): Likewise.
33805         Reported by Eric Blake.
33806
33807 2009-08-22  Bruno Haible  <bruno@clisp.org>
33808
33809         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33810         * modules/pipe (Depends-on): Add pipe2.
33811
33812 2009-08-22  Bruno Haible  <bruno@clisp.org>
33813
33814         Tests for module 'pipe2'.
33815         * modules/pipe2-tests: New file.
33816         * tests/test-pipe2.c: New file.
33817
33818         New module 'pipe2'.
33819         * lib/unistd.in.h (pipe2): New declaration.
33820         * lib/pipe2.c: New file.
33821         * m4/pipe2.m4: New file.
33822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33823         HAVE_PIPE2.
33824         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33825         * modules/pipe2: New file.
33826         * doc/glibc-functions/pipe2.texi: Mention the new module.
33827
33828 2009-08-22  Bruno Haible  <bruno@clisp.org>
33829
33830         Reference some new glibc functions.
33831         * doc/glibc-functions/accept4.texi: New file.
33832         * doc/glibc-functions/dup3.texi: New file.
33833         * doc/glibc-functions/mkostemp.texi: New file.
33834         * doc/glibc-functions/pipe2.texi: New file.
33835         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33836         (Glibc sys/socket.h): Refer to accept4.
33837         (Glibc unistd.h): Refer to dup3, pipe2.
33838         Reported by Eric Blake.
33839
33840 2009-08-22  Jim Meyering  <meyering@redhat.com>
33841             Bruno Haible  <bruno@clisp.org>
33842
33843         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33844         This makes it so packages using automake-1.11's silent-rules option
33845         can print e.g., a single "GEN    configmake.h" line, rather than
33846         the 30+ statements that perform the job.  If you want to see the
33847         actual commands, you can still run "make V=1".
33848         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33849         so that make output is abbreviated when those variables are defined
33850         appropriately.
33851         * modules/argz: Likewise.
33852         * modules/arpa_inet: Likewise.
33853         * modules/byteswap: Likewise.
33854         * modules/configmake: Likewise.
33855         * modules/dirent: Likewise.
33856         * modules/errno: Likewise.
33857         * modules/fcntl: Likewise.
33858         * modules/float: Likewise.
33859         * modules/fnmatch: Likewise.
33860         * modules/getopt-posix: Likewise.
33861         * modules/glob: Likewise.
33862         * modules/iconv_open: Likewise.
33863         * modules/inttypes: Likewise.
33864         * modules/localcharset: Likewise.
33865         * modules/locale: Likewise.
33866         * modules/math: Likewise.
33867         * modules/netdb: Likewise.
33868         * modules/netinet_in: Likewise.
33869         * modules/poll: Likewise.
33870         * modules/posix_spawnp-tests: Likewise.
33871         * modules/sched: Likewise.
33872         * modules/search: Likewise.
33873         * modules/selinux-h: Likewise.
33874         * modules/signal: Likewise.
33875         * modules/spawn: Likewise.
33876         * modules/stdarg: Likewise.
33877         * modules/stdbool: Likewise.
33878         * modules/stddef: Likewise.
33879         * modules/stdint: Likewise.
33880         * modules/stdio: Likewise.
33881         * modules/stdlib: Likewise.
33882         * modules/string: Likewise.
33883         * modules/strings: Likewise.
33884         * modules/sys_file: Likewise.
33885         * modules/sys_ioctl: Likewise.
33886         * modules/sys_select: Likewise.
33887         * modules/sys_socket: Likewise.
33888         * modules/sys_stat: Likewise.
33889         * modules/sys_time: Likewise.
33890         * modules/sys_times: Likewise.
33891         * modules/sys_utsname: Likewise.
33892         * modules/sys_wait: Likewise.
33893         * modules/sysexits: Likewise.
33894         * modules/time: Likewise.
33895         * modules/unistd: Likewise.
33896         * modules/wchar: Likewise.
33897         * modules/wctype: Likewise.
33898
33899 2009-08-22  Jim Meyering  <meyering@redhat.com>
33900
33901         announce-gen: detect write failure
33902         * build-aux/announce-gen: Add Coda at end.
33903         Remove equivalent-but-more-verbose block at top.
33904
33905 2009-08-19  Akim Demaille  <demaille@gostai.com>
33906
33907         bootstrap: --help to stdout.
33908         * bootstrap (usage): Don't send --help to stderr.
33909         Use a here doc instead of a long string.
33910
33911 2009-08-21  Eric Blake  <ebb9@byu.net>
33912
33913         test-popen-safer: split from test-popen
33914         * tests/test-popen.c (main): Move...
33915         * tests/test-popen.h: ...into new file.
33916         * tests/test-popen-safer2.c: New file.
33917         * modules/popen-tests (Files): Add test-popen.h.
33918         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33919         Suggested by Bruno Haible.
33920
33921         test-fcntl-safer: split from test-open
33922         * tests/test-open.c (main): Move...
33923         * tests/test-open.h: ...into new file.
33924         * tests/test-fcntl-safer.c: New file.
33925         * modules/open-tests (Files): Add test-open.h.
33926         * modules/fcntl-safer-tests: New file.
33927         Suggested by Bruno Haible.
33928
33929         test-fopen-safer: split from test-fopen
33930         * tests/test-fopen.c (main): Move...
33931         * tests/test-fopen.h: ...into new file.
33932         * tests/test-fopen-safer.c: New file.
33933         * modules/fopen-tests (Files): Add test-fopen.h.
33934         * modules/fopen-safer-tests: New file.
33935         Suggested by Bruno Haible.
33936
33937 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33938
33939         popen-safer: test O_CLOEXEC at run-time.
33940         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33941
33942 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33943
33944         fcntl: move more flags to the header
33945         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33946         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33947         * lib/fcntl.in.h: Do both things here.
33948
33949 2009-08-21  Jim Meyering  <meyering@redhat.com>
33950
33951         consistently remove $@-t before redirecting to it
33952         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33953         * modules/alloca-opt: Likewise.
33954         * modules/byteswap: Likewise.
33955         * modules/fnmatch: Likewise.
33956         * modules/getopt-posix: Likewise.
33957         * modules/glob: Likewise.
33958         * modules/poll: Likewise.
33959         * modules/posix_spawnp-tests: Likewise.
33960         * modules/sys_socket: Likewise.
33961         * modules/sysexits: Likewise.
33962
33963 2009-08-21  Eric Blake  <ebb9@byu.net>
33964
33965         popen: simplify access to original popen
33966         * lib/popen.c (rpl_popen): No need to worry about popen being a
33967         macro.
33968         Reported by Bruno Haible.
33969
33970 2009-08-20  Eric Blake  <ebb9@byu.net>
33971
33972         build: avoid some compiler warnings
33973         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33974         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33975         type.
33976         (new_exclude_segment, excluded_file_pattern_p)
33977         (excluded_file_name_p): Reduce scope.
33978         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33979         old-style declaration.
33980
33981 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33982
33983         * tests/test-exclude1.sh: Handle Windows EOL.
33984         * tests/test-exclude2.sh: Likewise.
33985         * tests/test-exclude3.sh: Likewise.
33986         * tests/test-exclude4.sh: Likewise.
33987         * tests/test-exclude5.sh: Likewise.
33988         * tests/test-exclude6.sh: Likewise.
33989         * tests/test-exclude7.sh: Likewise.
33990
33991 2009-08-19  Akim Demaille  <demaille@gostai.com>
33992
33993         bootstrap: find sha1sum when named gsha1sum.
33994         * bootstrap (find_tool): New.
33995         ($SHA1SUM): New.
33996         Use it.
33997
33998 2009-08-20  Jim Meyering  <meyering@redhat.com>
33999
34000         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34001         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34002         expression that converts "." in a file name to "\." in the resulting
34003         regexp.  Start with a dummy statement, so that prior shell variable
34004         definitions are expanded portably.  Reported by Simon Josefsson.
34005
34006 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34007
34008         Fix polling for writeability of a screen buffer.
34009         * lib/poll.c: Distinguish input and screen buffers for the
34010         Win32 implementation.
34011         * lib/select.c: Likewise.
34012
34013 2009-08-19  Eric Blake  <ebb9@byu.net>
34014
34015         popen-safer: prevent popen from clobbering std descriptors
34016         * modules/popen-safer: New file.
34017         * lib/popen-safer.c: Likewise.
34018         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34019         * lib/stdio--.h (popen): Provide override.
34020         * lib/stdio-safer.h (popen_safer): Provide declaration.
34021         * tests/test-popen.c (includes): Partially test this.
34022         * modules/popen-safer-tests: New file, for more tests.
34023         * tests/test-popen-safer.c: Likewise.
34024         * MODULES.html.sh (file stream based Input/Output): Mention it.
34025
34026         tests: test some of the *-safer modules
34027         * modules/fopen-safer (Depends-on): Add fopen.
34028         * modules/fcntl-safer (Depends-on): Add fcntl.
34029         * modules/stdlib-safer (Depends-on): Add stdlib.
34030         (configure.ac): Set indicator.
34031         * modules/unistd-safer (configure.ac): Likewise.
34032         * modules/tmpfile-safer (configure.ac): Likewise.
34033         (Depends-on): Add tmpfile.
34034         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34035         active.
34036         * tests/test-fopen.c (includes): Test safer versions when they are
34037         in use.
34038         * tests/test-open.c (includes): Likewise.
34039
34040         popen: fix cygwin 1.5 bug when stdin closed
34041         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34042         * modules/popen: New file.
34043         * modules/popen-tests: Likewise.
34044         * tests/test-popen.c: Likewise.
34045         * m4/popen.m4: Likewise.
34046         * lib/popen.c: Likewise.
34047         * lib/stdio.in.h (popen): New declaration.
34048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34049         * modules/stdio (Makefile.am): Likewise.
34050         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34051
34052 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34053
34054         maint.mk: give full control over update-copyright exclusions
34055         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34056         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34057         (update-copyright): Don't force inclusion of top-level
34058         ChangeLog.  Don't force exclusion of all COPYING files, but make
34059         them the default exclusion instead.
34060
34061 2009-08-16  Bruno Haible  <bruno@clisp.org>
34062
34063         Fix test failures on Solaris 10.
34064         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34065         tests when Solaris iconv() is used.
34066         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34067         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34068         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34069         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34070         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34071
34072 2009-08-16  Bruno Haible  <bruno@clisp.org>
34073
34074         Fix test failures on Solaris 10.
34075         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34076         'tr' program and pass it as first argument.
34077         * tests/test-pipe-filter-gi1.sh: Likewise.
34078         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34079         program as first argument.
34080         * tests/test-pipe-filter-gi1.c (main): Likewise.
34081
34082 2009-08-16  Eric Blake  <ebb9@byu.net>
34083
34084         fpurge: fix previous commits
34085         * modules/fpurge (Makefile.am): Make replacement conditional,
34086         partially reverting 2007-04-29 change; missed in previous
34087         attempt.
34088         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34089         is missing.
34090
34091 2009-08-16  Bruno Haible  <bruno@clisp.org>
34092
34093         Clarify fpurge's effect on the file position.
34094         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34095         * tests/test-fpurge.c (main): Make a second pass for checking the file
34096         position.
34097
34098 2009-08-16  Bruno Haible  <bruno@clisp.org>
34099
34100         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34101         declaration of fpurge is missing.
34102         * tests/test-fpurge.c (main): Check that the file has not more contents
34103         than expected. Close the file before removing it.
34104
34105 2009-08-15  Eric Blake  <ebb9@byu.net>
34106
34107         fpurge: don't wrap working cygwin implementation
34108         * lib/fpurge.c (fpurge): Fix comment typo.
34109         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34110         1.7 to avoid replacement.
34111         * tests/test-fpurge.c (main): Enhance test.
34112
34113 2009-08-15  Eric Blake  <ebb9@byu.net>
34114         and Jim Meyering  <meyering@redhat.com>
34115
34116         test-update-copyright: skip if perl is insufficient
34117         * tests/test-update-copyright.sh: Failure to run maintainer tool
34118         should not cause testsuite failure on cygwin 1.5.
34119
34120 2009-08-14  Eric Blake  <ebb9@byu.net>
34121
34122         doc: mention more functions added in cygwin 1.7.0
34123         * doc/posix-headers/limits.texi (limits.h): Update for recent
34124         cygwin additions.
34125         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34126         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34127         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34128         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34129         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34130
34131 2009-08-14  Eric Blake  <ebb9@byu.net>
34132
34133         maint.mk: simplify update-copyright rule
34134         * top/maint.mk (update-copyright-local): Delete, and document how
34135         to do it in cfg.mk instead.
34136         (update-copyright-exclude-regexp): Delete, and document how to do
34137         it in .x-update-copyright instead.
34138         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34139         exclude ChangeLog.
34140
34141 2009-08-14  Bruno Haible  <bruno@clisp.org>
34142
34143         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34144
34145 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34146
34147         maint.mk: support update-copyright-env
34148         * top/maint.mk (update-copyright-env): Define place-holder.
34149         (update-copyright): Expand $(update-copyright-env) before
34150         invoking update-copyright.
34151
34152 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34153
34154         update-copyright: implement forced reformatting
34155         * build-aux/update-copyright: Implement and document
34156         UPDATE_COPYRIGHT_FORCE.
34157         * tests/test-update-copyright.sh: Test it.
34158
34159 2009-08-14  Eric Blake  <ebb9@byu.net>
34160         and Bruno Haible  <bruno@clisp.org>
34161
34162         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34163         * tests/test-locale.c: Revert previous patch related to NULL.
34164         * tests/test-stdio.c: Likewise.
34165         * tests/test-stdlib.c: Likewise.
34166         * tests/test-string.c: Likewise.
34167         * tests/test-unistd.c: Likewise.
34168         * modules/time-tests (Depends-on): Add verify.
34169         * modules/wchar-tests (Depends-on): Likewise.
34170         * tests/test-time.c: Test for NULL compliance.
34171         * tests/test-wchar.c: Likewise.
34172         * modules/locale (Depends-on): Add stddef.
34173         * modules/stdio (Depends-on): Likewise.
34174         * modules/stdlib (Depends-on): Likewise.
34175         * modules/string (Depends-on): Likewise.
34176         * modules/time (Depends-on): Likewise.
34177         * modules/unistd (Depends-on): Likewise.
34178         * modules/wchar (Depends-on): Likewise.
34179         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34180         * lib/stdlib.in.h (includes): Likewise.
34181         * lib/string.in.h (includes): Likewise.
34182         * lib/time.in.h (includes): Likewise.
34183         * lib/unistd.in.h (includes): Likewise.
34184         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34185         replaced.
34186         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34187         * m4/stddef_h.m4: New file.
34188         * modules/stddef: Likewise.
34189         * lib/stddef.in.h: Likewise.
34190         * modules/stddef-tests: Likewise.
34191         * tests/test-stddef.c: Likewise.
34192         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34193         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34194         * doc/posix-headers/locale.texi (locale.h): Likewise.
34195         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34196         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34197         * doc/posix-headers/string.texi (string.h): Likewise.
34198         * doc/posix-headers/time.texi (time.h): Likewise.
34199         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34200         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34201
34202 2009-08-14  Eric Blake  <ebb9@byu.net>
34203
34204         doc: improve git diff of texinfo files
34205         * .gitattributes: Add rule for *.texi files, with hint on how to
34206         use it.
34207         Copied from m4, and based on a report by Bruno Haible.
34208
34209 2009-08-14  Bruno Haible  <bruno@clisp.org>
34210
34211         Disable multithread support by default on Cygwin 1.5.x for real.
34212         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34213
34214 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34215
34216         update-copyright: much ado about intervals
34217         * build-aux/update-copyright: Implement and document
34218         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34219         of copyright year intervals.
34220         Also, document UPDATE_COPYRIGHT_YEAR.
34221         * tests/test-update-copyright.sh: Test it.
34222
34223         update-copyright: convert 2-digit to 4-digit years
34224         * build-aux/update-copyright: Implement and document.
34225         * tests/test-update-copyright.sh: Update.
34226
34227 2009-08-14  Jim Meyering  <meyering@redhat.com>
34228
34229         test-exclude: avoid coreutils "make check" failure
34230         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34231         just as in test-argmatch.c.
34232
34233 2009-08-13  Eric Blake  <ebb9@byu.net>
34234
34235         test-dup2: fix bad assumption
34236         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34237         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34238
34239         test-version-etc: fix CRLF portability issue
34240         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34241         recognize \r.
34242         * tests/test-argp-version-etc-1.sh: Likewise.
34243
34244         getopt: update client modules
34245         * modules/argp (Depends-on): Use getopt-gnu.
34246         * modules/git-merge-changelog (Depends-on): Likewise.
34247         * modules/long-options (Depends-on): Likewise.
34248         * modules/xstrtol (Depends-on): Likewise.
34249
34250 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34251
34252         * tests/test-version-etc.sh: Don't fail on different
34253         project/version.  Don't fail on CRLF differences.  Rewrite to use
34254         multiple -e instead of multiple sed forks, suggested by Eric Blake
34255         <ebb9@byu.net>.
34256         * tests/test-argp-version-etc-1.sh: Likewise.
34257
34258 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34259
34260         * tests/test-version-etc.sh: Don't fail on different
34261         project/version.
34262
34263 2009-08-12  Bruno Haible  <bruno@clisp.org>
34264
34265         Tests for modules 'getopt-posix', 'getopt-gnu'.
34266         * modules/getopt-posix-tests: New file.
34267         * tests/test-getopt.c: New file.
34268         * tests/test-getopt.h: New file.
34269         * tests/test-getopt_long.h: New file.
34270
34271         New modules 'getopt-posix', 'getopt-gnu'.
34272         * modules/getopt-gnu: New file, renamed from modules/getopt.
34273         * modules/getopt-posix: New file.
34274         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34275         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34276         (gl_GETOPT): Remove macro.
34277         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34278         Disable the test against BSD systems that declare optreset. Test
34279         against mingw bug. Test against lack of support of optional arguments
34280         on many platforms.
34281         * doc/glibc-headers/getopt.texi: Update module name and list of
34282         relevant platforms.
34283         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34284         'getopt-gnu' and more portability problems.
34285         * NEWS: Mention the changes.
34286
34287 2009-08-12  Bruno Haible  <bruno@clisp.org>
34288
34289         Ensure that optarg etc. get declared by <unistd.h>.
34290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34291         AC_USE_SYSTEM_EXTENSIONS.
34292         * modules/getopt (Depends-on): Add 'extensions'.
34293
34294 2009-08-12  Bruno Haible  <bruno@clisp.org>
34295
34296         Avoid test link errors.
34297         * modules/pipe-filter-ii-tests (Makefile.am): Define
34298         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34299         * modules/pipe-filter-gi-tests (Makefile.am): Define
34300         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34302
34303 2009-08-12  Bruno Haible  <bruno@clisp.org>
34304
34305         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34306         gl_GETOPT_SUBSTITUTE before.
34307         (gl_GETOPT): Use it.
34308         * m4/argp.m4 (gl_ARGP): Update.
34309         Reported by Sergey Poznyakoff.
34310
34311         * m4/getopt.m4: Reorder macros.
34312         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34313         (gl_GETOPT_SUBSTITUTE): Remove macro.
34314
34315 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34316
34317         Minor improvement in gitlog-to-changelog
34318
34319         * build-aux/gitlog-to-changelog: New option `--format' makes
34320         output format string configurable.
34321
34322 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34323
34324         Optimize exclude: use hash tables for non-wildcard patterns.
34325
34326         * lib/exclude.c: Include hash.h and mbuiter.h
34327         (struct exclude_pattern, exclude_segment): New data types.
34328         (struct exclude): Rewrite.
34329         (fnmatch_pattern_has_wildcards): New function.
34330         (new_exclude_segment, free_exclude_segment): New functions.
34331         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34332         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34333         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34334         * modules/exclude: Depend on hash and mbuiter.
34335
34336         * modules/exclude-tests: New file.
34337         * tests/test-exclude.c: New file.
34338         * tests/test-exclude1.sh: New file.
34339         * tests/test-exclude2.sh: New file.
34340         * tests/test-exclude3.sh: New file.
34341         * tests/test-exclude4.sh: New file.
34342         * tests/test-exclude5.sh: New file.
34343         * tests/test-exclude6.sh: New file.
34344         * tests/test-exclude7.sh: New file.
34345
34346 2009-08-12  Bruno Haible  <bruno@clisp.org>
34347
34348         Ensure that getopt() gets declared by <unistd.h>.
34349         * lib/unistd.in.h: Conditionally include getopt.h.
34350         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34351         Set GNULIB_UNISTD_H_GETOPT.
34352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34353         GNULIB_UNISTD_H_GETOPT.
34354         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34355
34356 2009-08-12  Bruno Haible  <bruno@clisp.org>
34357
34358         Clarify logic.
34359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34360         gl_replace_getopt instead of GETOPT_H.
34361
34362 2009-08-12  Bruno Haible  <bruno@clisp.org>
34363
34364         * m4/getopt.m4: Add comments.
34365
34366 2009-08-12  Bruno Haible  <bruno@clisp.org>
34367
34368         Disable multithread support by default on Cygwin 1.5.x.
34369         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34370         set gl_use_threads=no if not specified otherwise.
34371
34372 2009-08-11  Bruno Haible  <bruno@clisp.org>
34373
34374         Avoid compilation error on NetBSD 5.0.
34375         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34376         * tests/test-stdio.c: Likewise.
34377         * tests/test-stdlib.c: Likewise.
34378         * tests/test-string.c: Likewise.
34379         * tests/test-unistd.c: Likewise.
34380         Reported by Greg Troxel <gdt@ir.bbn.com>
34381         at <https://savannah.gnu.org/support/?106973>.
34382
34383 2009-08-11  Bruno Haible  <bruno@clisp.org>
34384
34385         * modules/dup2-tests (Depends-on): Remove close.
34386
34387         Undo 2009-07-19 commit.
34388         * modules/acl-tests (Depends-on): Remove close.
34389         * modules/binary-io-tests (Depends-on): Likewise.
34390         * modules/closein-tests (Depends-on): Likewise.
34391         * modules/flock-tests (Depends-on): Likewise.
34392         * modules/fsync-tests (Depends-on): Likewise.
34393         * modules/lseek-tests (Depends-on): Likewise.
34394         * modules/pipe-tests (Depends-on): Likewise.
34395         * modules/posix_spawn-tests (Depends-on): Likewise.
34396         * modules/posix_spawnp-tests (Depends-on): Likewise.
34397         * modules/stat-time-tests (Depends-on): Likewise.
34398         * modules/yesno-tests (Depends-on): Likewise.
34399
34400 2009-08-10  Bruno Haible  <bruno@clisp.org>
34401
34402         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34403
34404 2009-08-10  Bruno Haible  <bruno@clisp.org>
34405
34406         Fix a gcc warning.
34407         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34408
34409 2009-08-10  Bruno Haible  <bruno@clisp.org>
34410
34411         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34412         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34413         not only the first time.
34414         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34415         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34416         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34417         is 1, not only the the first time.
34418
34419 2009-08-10  Bruno Haible  <bruno@clisp.org>
34420
34421         Make it possible to use module 'gethostname' without module 'close'.
34422         * lib/unistd.in.h (close): Evoke a link error only if
34423         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34425         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34426         * modules/unistd (Makefile.am): Substitute
34427         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34428         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34429         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34430         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34431         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34432         * modules/sys_ioctl (Makefile.am): Substitute
34433         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34434         * modules/socket (configure.ac): On native Windows, set
34435         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34436         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34437         Reported by Sam Steingold <sds@gnu.org>.
34438
34439 2009-08-10  Bruno Haible  <bruno@clisp.org>
34440
34441         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34442         * modules/ioctl (configure.ac): Likewise.
34443
34444 2009-08-10  Bruno Haible  <bruno@clisp.org>
34445
34446         Avoid collision between gnulib wrapper and libintl wrapper.
34447         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34448         already defined in intl/printf.c.
34449         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34450         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34451
34452 2009-08-09  Bruno Haible  <bruno@clisp.org>
34453
34454         Make <sys/select.h> really self-contained, also on Solaris 10.
34455         * lib/sys_select.in.h: Include <string.h>.
34456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34457         Solaris 10 problem.
34458         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34459         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34460         Reported by Jim Meyering.
34461
34462 2009-08-09  Bruno Haible  <bruno@clisp.org>
34463
34464         Avoid warnings from 'aclocal' that are due to a use of macro name
34465         AM_XGETTEXT_OPTION that is not defined in automake.
34466         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34467         automake.
34468         * modules/error (configure.ac): Likewise.
34469         * modules/propername (configure.ac): Likewise.
34470         * modules/vasprintf (configure.ac): Likewise.
34471         * modules/verror (configure.ac): Likewise.
34472         * modules/xprintf (configure.ac): Likewise.
34473         * modules/xvasprintf (configure.ac): Likewise.
34474
34475 2009-08-08  Bruno Haible  <bruno@clisp.org>
34476
34477         Avoid compilation error in C++ mode.
34478         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34479         Reported by Sam Steingold <sds@gnu.org>.
34480
34481 2009-08-08  Bruno Haible  <bruno@clisp.org>
34482
34483         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34484         for the various Unix platforms.
34485         * doc/posix-headers/limits.texi: Update platforms list regarding
34486         HOST_NAME_MAX.
34487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34488
34489 2009-08-07  Jim Meyering  <meyering@redhat.com>
34490
34491         selinux-at: fix typo in a comment
34492         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34493         Spotted by Paolo Bonzini.
34494
34495         selinux-at: remove redundant m4 code, add documentation
34496         * modules/selinux-at (configure.ac): Remove redundant code.
34497         LIB_SELINUX is already set via the dependent module, selinux-h.
34498         (Include): Add quotes around selinux-at.h.
34499         * lib/selinux-at.h: Add documentation.
34500         Reported by Bruno Haible in
34501         http://marc.info/?l=gnulib-bug&m=124958988300749
34502
34503 2009-08-07  Bruno Haible  <bruno@clisp.org>
34504
34505         Avoid link error on MacOS X 10.3 and 10.4.
34506         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34507         on non-ELF systems.
34508         * lib/argp-pv.c (argp_program_version): Likewise.
34509         Reported by Simon Josefsson.
34510
34511 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34512
34513         * tests/test-version-etc.sh: Use $EXEEXT.
34514
34515 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34516
34517         update-copyright: update documentation to point to maint.mk
34518         * build-aux/update-copyright: Here.
34519
34520 2009-08-06  Jim Meyering  <meyering@redhat.com>
34521
34522         maint.mk: support update-copyright-local
34523         * top/maint.mk (update-copyright-local): Define place-holder.
34524         (update-copyright): Depend on $(update-copyright-local).
34525
34526 2009-08-06  Jim Meyering  <meyering@redhat.com>
34527
34528         selinux-at: new module
34529         Initially written for coreutils, this module will soon be
34530         used by findutils, too.
34531         * MODULES.html.sh [Misc]: Add selinux-at.
34532         * lib/selinux-at.h: New file, from coreutils.
34533         * lib/selinux-at.c: Likewise.
34534         * modules/selinux-at: Likewise.
34535         (License): Change from LGPL to GPL, since it depends
34536         on the GPL'd openat module.
34537
34538         doc: update README
34539         * README: Remove references to cogito.
34540         Remove cvs-repo-updating instructions from 2007.
34541         Don't imply that CVS is better if you have limited disk space.
34542
34543 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34544
34545         update-copyright: support C-style comments
34546         * build-aux/update-copyright: Implement and document.
34547         * tests/test-update-copyright.sh: Test.
34548
34549 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34550
34551         update-copyright: support omitted "(C)"
34552         * build-aux/update-copyright: Implement and document.  Also,
34553         allow variable whitespace before "(C)".
34554         * tests/test-update-copyright.sh: Test.
34555
34556 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34557
34558         update-copyright: don't trip on non-FSF copyright statements
34559         * build-aux/update-copyright: Fix so that the first correctly
34560         formatted FSF copyright statement is recognized no matter what
34561         appears before it.  Update documentation.
34562         * tests/test-update-copyright.sh: Test that.
34563
34564 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34565
34566         update-copyright: clean up code a little
34567         * build-aux/update-copyright: Append "_re" to the name of any
34568         variable holding a regular expression.
34569         Replace "old" and "new" with "stmt" in variable names.
34570         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34571         handled correctly.
34572         Format code more consistently.
34573
34574 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34575
34576         update-copyright-tests: improve portability
34577         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34578         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34579
34580 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34581
34582         update-copyright: support @copyright{} and &copy;
34583         * build-aux/update-copyright: Implement and document.
34584         * tests/test-update-copyright.sh: Test.
34585
34586 2009-08-04  Jim Meyering  <meyering@redhat.com>
34587
34588         update-copyright-tests: correctly test EOL=\r\n handling
34589         * tests/test-update-copyright.sh: Put \r at the end of some lines
34590         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34591
34592         maint.mk: make update-copyright exclusion list more configurable
34593         * top/maint.mk (update-copyright): Default to excluding COPYING,
34594         but allow an override, in case someone does want to update that file.
34595
34596         maint.mk: don't update copyright date in COPYING
34597         * top/maint.mk (update-copyright): Exclude COPYING.
34598
34599         maint.mk: add a copyright-updating rule
34600         * top/maint.mk (update-copyright): New rule.
34601         Derived from coreutils/Makefile.am.
34602
34603         update-copyright: rename some variables
34604         * build-aux/update-copyright: Rename a few variables for clarity.
34605         Tweak syntax.  List Joel E. Denny as coauthor.
34606
34607 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34608
34609         update-copyright: fix bug for 2-digit last year and add tests
34610         * build-aux/update-copyright: Fix bug.
34611         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34612         specified.
34613         * modules/update-copyright-tests: New
34614         * tests/test-update-copyright.sh: New.
34615
34616 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34617
34618         update-copyright: handle leading tabs in line prefix
34619         * build-aux/update-copyright: Count leading tabs as 8 spaces
34620         when computing margin.  This helps with the formatting of
34621         ChangeLogs, for example.
34622         Fix documentation a little.
34623
34624 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34625
34626         update-copyright: support EOL=\r\n
34627         * build-aux/update-copyright: Implement that.
34628
34629 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34630
34631         update-copyright: automatically format copyright statements
34632         * build-aux/update-copyright: Implement that.
34633         Also, be a little more predictable and safer by always failing
34634         when the full copyright format is not perfectly recognized as an
34635         unbroken whole.  Discussed at
34636         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34637         Rewrite documentation.
34638
34639 2009-08-03  Bruno Haible  <bruno@clisp.org>
34640
34641         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34642
34643 2009-08-02  Bruno Haible  <bruno@clisp.org>
34644
34645         Tests for module 'uname'.
34646         * modules/uname-tests: New file.
34647         * tests/test-uname.c: New file.
34648
34649         New module 'uname'.
34650         * lib/uname.c: New file.
34651         * m4/uname.m4: New file.
34652         * modules/uname: New file.
34653         * doc/posix-functions/uname.texi: Mention the new module.
34654
34655 2009-08-02  Bruno Haible  <bruno@clisp.org>
34656
34657         Tests for module 'sys_utsname'.
34658         * modules/sys_utsname-tests: New file.
34659         * tests/test-sys_utsname.c: New file.
34660
34661         New module 'sys_utsname'.
34662         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34663         * m4/sys_utsname_h.m4: New file.
34664         * modules/sys_utsname: New file.
34665         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34666
34667 2009-08-02  Bruno Haible  <bruno@clisp.org>
34668
34669         Implicitly initialize the sockets library.
34670         * lib/gethostname.c: Include sockets.h.
34671         (rpl_gethostname): Invoke gl_sockets_startup.
34672         * lib/socket.c: Include sockets.h.
34673         (rpl_socket): Invoke gl_sockets_startup.
34674         * modules/gethostname (Depends-on): Add sockets.
34675         * modules/socket (Depends-on): Likewise.
34676         * tests/test-poll.c: Don't include sockets.h.
34677         (main): Don't invoke gl_sockets_startup.
34678         * tests/test-select.c: Don't include sockets.h.
34679         (main): Don't invoke gl_sockets_startup.
34680
34681 2009-08-02  Bruno Haible  <bruno@clisp.org>
34682
34683         Allow multiple calls to gl_sockets_startup.
34684         * lib/sockets.c (initialized_sockets_version): New variable.
34685         (gl_sockets_startup): Do nothing if already called for this or a higher
34686         version.
34687         (gl_sockets_cleanup): Reset initialized_sockets_version.
34688
34689 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34690
34691         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34692         different project/version.
34693
34694 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34695             Bruno Haible  <bruno@clisp.org>
34696
34697         Tests for module 'pipe-filter-gi'.
34698         * modules/pipe-filter-gi-tests: New file.
34699         * tests/test-pipe-filter-gi1.sh: New file.
34700         * tests/test-pipe-filter-gi1.c: New file.
34701         * tests/test-pipe-filter-gi2.sh: New file.
34702         * tests/test-pipe-filter-gi2-main.c: New file.
34703         * tests/test-pipe-filter-gi2-child.c: New file.
34704
34705         New module 'pipe-filter-gi'.
34706         * lib/pipe-filter-gi.c: New file.
34707         * modules/pipe-filter-gi: New file.
34708
34709 2009-08-02  Bruno Haible  <bruno@clisp.org>
34710             Paolo Bonzini  <bonzini@gnu.org>
34711
34712         Tests for module 'pipe-filter-ii'.
34713         * modules/pipe-filter-ii-tests: New file.
34714         * tests/test-pipe-filter-ii1.sh: New file.
34715         * tests/test-pipe-filter-ii1.c: New file.
34716         * tests/test-pipe-filter-ii2.sh: New file.
34717         * tests/test-pipe-filter-ii2-main.c: New file.
34718         * tests/test-pipe-filter-ii2-child.c: New file.
34719
34720         New module 'pipe-filter-ii'.
34721         * lib/pipe-filter.h: New file.
34722         * lib/pipe-filter-ii.c: New file.
34723         * lib/pipe-filter-aux.h: New file.
34724         * modules/pipe-filter-ii: New file.
34725
34726 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34727
34728         * lib/gc-libgcrypt.c: Change copyright to FSF.
34729         * lib/gc-gnulib.c: Likewise.
34730
34731 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34732
34733         * lib/gethostname.c: Include limits.h.
34734
34735 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34736             Bruno Haible  <bruno@clisp.org>
34737
34738         Ensure HOST_NAME_MAX as part of the gethostname module.
34739         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34740         define also HOST_NAME_MAX.
34741         * tests/test-gethostname.c: Include <limits.h>.
34742         (main): Check also HOST_NAME_MAX.
34743         * doc/posix-headers/limits.texi: Document the mingw problem.
34744
34745 2009-08-02  Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34748         Add comments.
34749
34750 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34751
34752         * lib/gethostname.c: Add Windows wrapper.
34753         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34754         * modules/gethostname: Depend on sys_socket & errno, for also
34755         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34756         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34757
34758 2009-07-31  Jim Meyering  <meyering@redhat.com>
34759
34760         getloadavg: fix symbol name in comment
34761         * lib/getloadavg.c: Correct a typo I introduced when adding
34762         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34763         Matt Kraai spotted the problem.
34764
34765 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34766
34767         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34768         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34769         code also if ! defined N_NAME_POINTER.
34770         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34771         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34772         but the n_name member is a 12-byte array.
34773
34774 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34775
34776         update-copyright: generalize comment handling
34777         * build-aux/update-copyright: Handle copyright statements
34778         within more comment styles.
34779         Document usage.
34780         Report any file with an external copyright holder or parse failure.
34781
34782 2009-07-29  Jim Meyering  <meyering@redhat.com>
34783
34784         mktime: correct setting of REPLACE_MKTIME
34785         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34786
34787         update-copyright: new module
34788         * modules/update-copyright: New file.
34789         * build-aux/update-copyright: New file.
34790         * MODULES.html.sh (maint+release support): Add update-copyright.
34791
34792 2009-07-27  Bruno Haible  <bruno@clisp.org>
34793
34794         Fix compilation error when <ctime> is used and mktime is replaced.
34795         * lib/time.in.h (mktime): New declaration.
34796         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34797         REPLACE_MKTIME instead of defining mktime in config.h.
34798         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34799         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34800         Reported by Ross McFarland <rwmcfa1@neces.com>.
34801
34802 2009-07-27  Bruno Haible  <bruno@clisp.org>
34803
34804         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34805         Reported by Matt Kraai <mkraai@beckman.com>.
34806
34807 2009-07-25  Jim Meyering  <meyering@redhat.com>
34808
34809         maint.mk: avoid warnings about missing files
34810         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34811         diagnostic when .prev-version does not exist.
34812         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34813         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34814         nonexistent cfg.mk.
34815         Suggestions from Simon Josefsson.
34816
34817 2009-07-25  Bruno Haible  <bruno@clisp.org>
34818
34819         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34820         defined as macros. Needed on QNX 6.4.1.
34821         Reported by Matt Kraai <mkraai@beckman.com>.
34822
34823 2009-07-23  Jim Meyering  <meyering@redhat.com>
34824
34825         maint.mk: invoke "make dist" with a working value of XZ_OPT
34826         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34827
34828 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34829
34830         Make fseeko.c compile on QNX.
34831         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34832
34833 2009-07-22  Peter Simons  <simons@cryp.to>
34834
34835         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34836         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34837         * lib/md4.h: Likewise.
34838         * lib/md5.h: Likewise.
34839         * lib/sha1.h: Likewise.
34840         * lib/sha256.h: Likewise.
34841         * lib/sha512.h: Likewise.
34842
34843         tests-sha1: don't assign literal string to 'char *' variable
34844         * tests/test-sha1.c (main): Declare locals with "const" to match
34845         attributes of the right hand side.
34846
34847 2009-07-21  Eric Blake  <ebb9@byu.net>
34848
34849         dup2: fix more mingw problems
34850         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34851         fd to itself.
34852         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34853         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34854         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34855         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34856         care of mingw bugs.
34857
34858 2009-07-21  Jim Meyering  <meyering@redhat.com>
34859
34860         vc-list-files: avoid failure when /bin/sh is dash
34861         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34862         On some Debian based systems, /bin/sh is a symlink to dash, and running
34863         this command would omit the "/" following each 'tests' prefix:
34864           dash -x build-aux/vc-list-files -C . tests
34865         That is because bash and dash work differently:
34866           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34867           bash ok
34868           dash odd
34869
34870 2009-07-21  Eric Blake  <ebb9@byu.net>
34871
34872         dup2-tests: test previous patch
34873         * modules/dup2-tests: New file.
34874         * tests/test-dup2.c: Likewise.
34875         * tests/test-open.c (main): Avoid unspecified behavior.
34876         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34877         test.
34878
34879         dup2: work around mingw and cygwin 1.5 bug
34880         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34882         * modules/unistd (Makefile.am): Substitute it.
34883         * lib/unistd.in.h (dup2): Declare the replacement.
34884         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34885         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34886         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34887         * modules/execute (Depends-on): Add dup2.
34888         * modules/fseterr (Depends-on): Likewise.
34889         * modules/pipe (Depends-on): Likewise.
34890         * modules/posix_spawn-internal (Depends-on): Likewise.
34891
34892 2009-07-21  Bruno Haible  <bruno@clisp.org>
34893
34894         * modules/.gitattributes: New file.
34895
34896 2009-07-20  Bruno Haible  <bruno@clisp.org>
34897
34898         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34899         (main): Use it.
34900
34901 2009-07-20  Eric Blake  <ebb9@byu.net>
34902
34903         test-pipe: make a bit more robust.
34904         * tests/test-pipe.c (myerr): Allow error messages regardless of
34905         what we do to stderr.
34906         (test_pipe): Rearrange to avoid deadlock.
34907         (child_main): Try a larger read, to ensure we avoided deadlock.
34908         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34909         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34910         if misused.
34911
34912 2009-07-19  Jim Meyering  <meyering@redhat.com>
34913
34914         fts: avoid false-positive cycle-detection
34915         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34916         for each new command line argument.
34917
34918 2009-07-19  Bruno Haible  <bruno@clisp.org>
34919
34920         Fix build error on mingw with the modules sys_select and unistd.
34921         * modules/acl-tests (Depends-on): Add close.
34922         * modules/binary-io-tests (Depends-on): Likewise.
34923         * modules/closein-tests (Depends-on): Likewise.
34924         * modules/flock-tests (Depends-on): Likewise.
34925         * modules/fsync-tests (Depends-on): Likewise.
34926         * modules/lseek-tests (Depends-on): Likewise.
34927         * modules/pipe-tests (Depends-on): Likewise.
34928         * modules/posix_spawn-tests (Depends-on): Likewise.
34929         * modules/posix_spawnp-tests (Depends-on): Likewise.
34930         * modules/stat-time-tests (Depends-on): Likewise.
34931         * modules/yesno-tests (Depends-on): Likewise.
34932
34933 2009-07-19  Bruno Haible  <bruno@clisp.org>
34934
34935         Unify conditionals.
34936         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34937         macros, not at the compiler macros.
34938         * lib/pipe.c: Likewise.
34939         * lib/execute.c: Likewise.
34940         * lib/spawni.c: Likewise.
34941
34942 2009-07-19  Bruno Haible  <bruno@clisp.org>
34943
34944         Fix handling of closed stdin/stdout/stderr on mingw.
34945         * lib/w32spawn.h: Include unistd.h.
34946         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34947         file descriptor with O_NOINHERIT flag.
34948         (fd_safer_noinherit): New function, based on fd-safer.c.
34949         (dup_safer_noinherit): New function, based on dup-safer.c.
34950         (undup_safer_noinherit): New function.
34951         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34952         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34953         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34954         instead of fd_safer.
34955         * tests/test-pipe.c: Include <windows.h>.
34956         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34957         result.
34958
34959         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34960         from main.
34961         (test_pipe): Pass an extra argument for disambiguation.
34962         (main): Invoke parent_main or child_main.
34963
34964         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34965         consistently.
34966
34967 2009-07-18  Eric Blake  <ebb9@byu.net>
34968
34969         test-pipe: fix mingw build
34970         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34971
34972 2009-07-18  Bruno Haible  <bruno@clisp.org>
34973
34974         * modules/pipe-tests (Makefile.am): Fix typo.
34975
34976 2009-07-18  Eric Blake  <ebb9@byu.net>
34977
34978         error: fix mingw build
34979         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34980         Reported by Bruno Haible.
34981
34982         error: avoid undefined use of stdout
34983         * lib/error.c (error, error_at_line): Check that fd 1 is open
34984         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34985         is handling faults and the close_stdout module wants to report the
34986         detection of closed stdout as an error.
34987
34988 2009-07-17  Eric Blake  <ebb9@byu.net>
34989
34990         pipe: be robust in face of closed fds
34991         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34992         should cause child to misbehave.
34993         * modules/pipe-tests: New module.
34994         * tests/test-pipe.c: New file.
34995         * tests/test-pipe.sh: New file.
34996         Reported by Akim Demaille.
34997
34998 2009-07-14  Bruno Haible  <bruno@clisp.org>
34999
35000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35001         Reported by anonymous kc.
35002
35003 2009-07-07  Jim Meyering  <meyering@redhat.com>
35004
35005         maint.mk: don't look for translatable strings in *.m4 or *.mk
35006         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35007         when searching for translatable strings.
35008
35009 2009-07-05  Jim Meyering  <meyering@redhat.com>
35010
35011         remove superfluous parentheses in STREQ definition
35012         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35013         * lib/getugroups.c (STREQ): Likewise.
35014         * lib/fnmatch.c (STREQ): Likewise.
35015         Spotted by Bruno Haible.
35016
35017 2009-07-04  Jim Meyering  <meyering@redhat.com>
35018
35019         argv-iter: new module
35020         * MODULES.html.sh: Add argv-iter.
35021         * lib/argv-iter.c, lib/argv-iter.h: New files.
35022         * modules/argv-iter: New file.
35023         * modules/argv-iter-tests: New file.
35024         * tests/test-argv-iter.c: Test it.
35025
35026 2009-07-04  Bruno Haible  <bruno@clisp.org>
35027
35028         Fix assertion.
35029         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35030         contains more exact copies of a given entry than file2, leave the extra
35031         copies unpaired rather than aborting.
35032         Reported by Eric Blake.
35033
35034 2009-07-02  Bruno Haible  <bruno@clisp.org>
35035
35036         Speedup git-merge-changelog for git cherry-pick.
35037         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35038         (entries_mapping_get): New function, extracted from compute_mapping.
35039         (entries_mapping_reverse_get): New function.
35040         (compute_mapping): Add a 'full' argument. Return the result in a
35041         'struct entries_mapping'.
35042         (main): Update. Access the mappings through entries_mapping_get.
35043         Reported by Eric Blake.
35044
35045 2009-07-02  Bruno Haible  <bruno@clisp.org>
35046
35047         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35048         best_i.
35049
35050 2009-07-02  Bruno Haible  <bruno@clisp.org>
35051
35052         Speed up approximate search for matching ChangeLog entries.
35053         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35054         argument. Call fstrcmp_bounded instead of fstrcmp.
35055         (compute_mapping, try_split_merged_entry, main): Update callers.
35056
35057 2009-07-02  Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35060
35061 2009-06-30  Bruno Haible  <bruno@clisp.org>
35062
35063         Reduce the number of uc_is_cased calls.
35064         * lib/unicase.h (casing_suffix_context_t): Add
35065         'first_char_except_ignorable' field.
35066         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35067         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35068         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35069         Update initializer.
35070         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35071         case-ignorable characters.
35072         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35073         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35074         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35075         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35076         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35077
35078 2009-06-30  Bruno Haible  <bruno@clisp.org>
35079
35080         Tests for module 'unicase/ignorable'.
35081         * modules/unicase/ignorable-tests: New file.
35082         * tests/unicase/test-ignorable.c: New file, generated by
35083         gen-uni-tables.
35084
35085         Tests for module 'unicase/cased'.
35086         * modules/unicase/cased-tests: New file.
35087         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35088         * tests/unicase/test-predicate-part1.h: New file, derived from
35089         tests/unictype/test-predicate-part1.h.
35090         * tests/unicase/test-predicate-part2.h: New file, same as
35091         tests/unictype/test-predicate-part2.h.
35092
35093         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35094         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35095         (output_casing_properties): New function.
35096         (main): Call it.
35097         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35098         * lib/unicase/cased.c: Include unictype/bitmap.h.
35099         (uc_is_cased): Define through a bitmap lookup.
35100         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35101         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35102         (uc_is_case_ignorable): Define through a bitmap lookup.
35103         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35104         lib/unictype/bitmap.h.
35105         (Depends-on): Add inline. Clean up.
35106         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35107         lib/unictype/bitmap.h.
35108         (Depends-on): Add inline. Clean up.
35109         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35110         recognition.
35111         * tests/unicase/test-u16-tolower.c (main): Likewise.
35112         * tests/unicase/test-u32-tolower.c (main): Likewise.
35113
35114 2009-06-30  Bruno Haible  <bruno@clisp.org>
35115
35116         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35117         * lib/unicase/u16-casemap.c: Likewise.
35118         * lib/unicase/u32-casemap.c: Likewise.
35119
35120 2009-06-29  Bruno Haible  <bruno@clisp.org>
35121
35122         Define u32_casefold as a wrapper around u32_ct_casefold.
35123         * lib/unicase/u32-casefold.c: Update.
35124         * modules/unicase/u32-casefold (Depends-on): Add
35125         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35126         unicase/empty-suffix-context. Clean up.
35127
35128         Define u16_casefold as a wrapper around u16_ct_casefold.
35129         * lib/unicase/u16-casefold.c: Update.
35130         * modules/unicase/u16-casefold (Depends-on): Add
35131         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35132         unicase/empty-suffix-context. Clean up.
35133
35134         Define u8_casefold as a wrapper around u8_ct_casefold.
35135         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35136         * lib/unicase/u8-casefold.c: Update.
35137         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35138         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35139
35140         Define u32_totitle as a wrapper around u32_ct_totitle.
35141         * lib/unicase/u32-totitle.c: Update.
35142         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35143         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35144
35145         Define u16_totitle as a wrapper around u16_ct_totitle.
35146         * lib/unicase/u16-totitle.c: Update.
35147         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35148         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35149
35150         Define u8_totitle as a wrapper around u8_ct_totitle.
35151         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35152         functions.
35153         (FUNC): Delegate to U_CT_TOTITLE.
35154         * lib/unicase/u8-totitle.c: Update.
35155         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35156         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35157
35158         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35159         invocation.
35160         * modules/unicase/u32-tolower (Depends-on): Add
35161         unicase/empty-prefix-context, unicase/empty-suffix-context.
35162
35163         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35164         invocation.
35165         * modules/unicase/u16-tolower (Depends-on): Add
35166         unicase/empty-prefix-context, unicase/empty-suffix-context.
35167
35168         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35169         * modules/unicase/u8-tolower (Depends-on): Add
35170         unicase/empty-prefix-context, unicase/empty-suffix-context.
35171
35172         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35173         invocation.
35174         * modules/unicase/u32-toupper (Depends-on): Add
35175         unicase/empty-prefix-context, unicase/empty-suffix-context.
35176
35177         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35178         invocation.
35179         * modules/unicase/u16-toupper (Depends-on): Add
35180         unicase/empty-prefix-context, unicase/empty-suffix-context.
35181
35182         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35183         * modules/unicase/u8-toupper (Depends-on): Add
35184         unicase/empty-prefix-context, unicase/empty-suffix-context.
35185
35186         New module 'unicase/u32-ct-casefold'.
35187         * lib/unicase/u32-ct-casefold.c: New file.
35188         * modules/unicase/u32-ct-casefold: New file.
35189
35190         New module 'unicase/u16-ct-casefold'.
35191         * lib/unicase/u16-ct-casefold.c: New file.
35192         * modules/unicase/u16-ct-casefold: New file.
35193
35194         New module 'unicase/u8-ct-casefold'.
35195         * lib/unicase/u8-ct-casefold.c: New file.
35196         * lib/unicase/u-ct-casefold.h: New file, derived from
35197         lib/unicase/u-casefold.h.
35198         * modules/unicase/u8-ct-casefold: New file.
35199
35200         New module 'unicase/u32-ct-totitle'.
35201         * lib/unicase/u32-ct-totitle.c: New file.
35202         * modules/unicase/u32-ct-totitle: New file.
35203
35204         New module 'unicase/u16-ct-totitle'.
35205         * lib/unicase/u16-ct-totitle.c: New file.
35206         * modules/unicase/u16-ct-totitle: New file.
35207
35208         New module 'unicase/u8-ct-totitle'.
35209         * lib/unicase/u8-ct-totitle.c: New file.
35210         * lib/unicase/u-ct-totitle.h: New file, derived from
35211         lib/unicase/u-totitle.h.
35212         * modules/unicase/u8-ct-totitle: New file.
35213
35214         New module 'unicase/u32-ct-tolower'.
35215         * lib/unicase/u32-ct-tolower.c: New file.
35216         * modules/unicase/u32-ct-tolower: New file.
35217
35218         New module 'unicase/u16-ct-tolower'.
35219         * lib/unicase/u16-ct-tolower.c: New file.
35220         * modules/unicase/u16-ct-tolower: New file.
35221
35222         New module 'unicase/u8-ct-tolower'.
35223         * lib/unicase/u8-ct-tolower.c: New file.
35224         * modules/unicase/u8-ct-tolower: New file.
35225
35226         New module 'unicase/u32-ct-toupper'.
35227         * lib/unicase/u32-ct-toupper.c: New file.
35228         * modules/unicase/u32-ct-toupper: New file.
35229
35230         New module 'unicase/u16-ct-toupper'.
35231         * lib/unicase/u16-ct-toupper.c: New file.
35232         * modules/unicase/u16-ct-toupper: New file.
35233
35234         New module 'unicase/u8-ct-toupper'.
35235         * lib/unicase/u8-ct-toupper.c: New file.
35236         * modules/unicase/u8-ct-toupper: New file.
35237
35238         Add context arguments to u*_casemap functions.
35239         * lib/unicase/unicasemap.h: Include unicase.h.
35240         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35241         suffix_context arguments.
35242         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35243         functions.
35244         (FUNC): Add prefix_context and suffix_context arguments. Use
35245         uc_is_cased and uc_is_case_ignorable.
35246         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35247         * lib/unicase/u16-casemap.c: Likewise.
35248         * lib/unicase/u32-casemap.c: Likewise.
35249         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35250         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35251         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35252         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35253         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35254         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35255
35256         New module 'unicase/u32-suffix-context'.
35257         * lib/unicase/u32-suffix-context.c: New file.
35258         * modules/unicase/u32-suffix-context: New file.
35259
35260         New module 'unicase/u16-suffix-context'.
35261         * lib/unicase/u16-suffix-context.c: New file.
35262         * modules/unicase/u16-suffix-context: New file.
35263
35264         New module 'unicase/u8-suffix-context'.
35265         * lib/unicase/u8-suffix-context.c: New file.
35266         * lib/unicase/u-suffix-context.h: New file.
35267         * modules/unicase/u8-suffix-context: New file.
35268
35269         New module 'unicase/empty-suffix-context'.
35270         * lib/unicase/empty-suffix-context.c: New file.
35271         * modules/unicase/empty-suffix-context: New file.
35272
35273         New module 'unicase/u32-prefix-context'.
35274         * lib/unicase/u32-prefix-context.c: New file.
35275         * modules/unicase/u32-prefix-context: New file.
35276
35277         New module 'unicase/u16-prefix-context'.
35278         * lib/unicase/u16-prefix-context.c: New file.
35279         * modules/unicase/u16-prefix-context: New file.
35280
35281         New module 'unicase/u8-prefix-context'.
35282         * lib/unicase/u8-prefix-context.c: New file.
35283         * lib/unicase/u-prefix-context.h: New file.
35284         * lib/unicase/context.h: New file.
35285         * modules/unicase/u8-prefix-context: New file.
35286
35287         New module 'unicase/empty-prefix-context'.
35288         * lib/unicase/empty-prefix-context.c: New file.
35289         * modules/unicase/empty-prefix-context: New file.
35290
35291         New module 'unicase/ignorable'.
35292         * lib/unicase/ignorable.c: New file.
35293         * modules/unicase/ignorable: New file.
35294
35295         New module 'unicase/cased'.
35296         * lib/unicase/caseprop.h: New file.
35297         * lib/unicase/cased.c: New file.
35298         * modules/unicase/cased: New file.
35299
35300         New functions for case mapping of substrings.
35301         * lib/unicase.h (casing_prefix_context_t): New type.
35302         (unicase_empty_prefix_context): New variable.
35303         (u8_casing_prefix_context, u16_casing_prefix_context,
35304         u32_casing_prefix_context, u8_casing_prefixes_context,
35305         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35306         declarations.
35307         (casing_suffix_context_t): New type.
35308         (unicase_empty_suffix_context): New variable.
35309         (u8_casing_suffix_context, u16_casing_suffix_context,
35310         u32_casing_suffix_context, u8_casing_suffixes_context,
35311         u16_casing_suffixes_context, u32_casing_suffixes_context,
35312         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35313         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35314         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35315         declarations.
35316
35317 2009-06-28  Jim Meyering  <meyering@redhat.com>
35318
35319         boostrap: indent only with spaces
35320         * build-aux/bootstrap: Indent only with spaces, never TABs.
35321
35322         bootstrap: split long lines
35323         * build-aux/bootstrap: Keep line length < 80.
35324
35325         bootstrap: sync from coreutils
35326         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35327         just as autoreconf does.  Verify a list of prerequisite
35328         package-name,version-number pairs if defined in bootstrap.conf.
35329         Refer to README-prereq, if prerequisites are not satisfied.
35330
35331 2009-06-27  Eric Blake  <ebb9@byu.net>
35332
35333         tests: add test for bogus NULL definition
35334         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35335         * tests/test-stdlib.c: Likewise.
35336         * tests/test-string.c: Likewise.
35337         * tests/test-locale.c: Likewise.
35338         * tests/test-unistd.c: Likewise.
35339         * modules/stdio-tests (Depends-on): Add verify.
35340         * modules/stdlib-tests (Depends-on): Likewise.
35341         * modules/string-tests (Depends-on): Likewise.
35342         * modules/locale-tests (Depends-on): Likewise.
35343         * modules/unistd-tests (Depends-on): Likewise.
35344
35345 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35346
35347         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35348         self-explaining comment.
35349         * m4/selinux-selinux-h: Update serial.
35350         (gl_LIBSELINUX): New macro, adding a warning for missing development
35351         packages to code extracted from...
35352         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35353         Add warning for missing development packages here, too.
35354
35355 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35356
35357         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35358
35359 2009-06-25  Eric Blake  <ebb9@byu.net>
35360
35361         version-etc: fix regression
35362         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35363         gcc.
35364         (version_etc): Use it, to catch bugs with trailing NULL.
35365         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35366         (version_etc_va): Fix logic bug.
35367         * modules/version-etc-tests: Add test.
35368         * tests/test-version-etc.c: New file.
35369         * tests/test-version-etc.sh: Likewise.
35370
35371 2009-06-25  Sam Steingold  <sds@gnu.org>
35372
35373         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35374         mbtowc declaration.
35375
35376 2009-06-25  Eric Blake  <ebb9@byu.net>
35377
35378         fpurge: migrate into <stdio.h>
35379         * lib/fpurge.h: Delete...
35380         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35381         * lib/fpurge.c (fpurge): Change declaring header.
35382         * modules/fpurge (Files): Drop deleted file.
35383         (Depends-on): Add stdio.
35384         (configure.ac): Set witness.
35385         * modules/stdio (Makefile.am): Support fpurge macros.
35386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35387         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35388         * lib/fflush.c: Update client.
35389         * tests/test-fpurge.c: Likewise.
35390         * NEWS: Mention the change.
35391
35392 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35393
35394         * lib/argp-version-etc.c (program_authors): Add const
35395         qualifier.
35396         * lib/version-etc.c: Fix typos in the comments.
35397         * modules/argp-version-etc: Depends on version-etc.
35398
35399 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35400
35401         argp-version-etc: new module.
35402
35403         * lib/argp-version-etc.c: New file.
35404         * lib/argp-version-etc.h: New file.
35405         * modules/argp-version-etc: New file.
35406         * modules/argp-version-etc-tests: New file.
35407         * tests/test-argp-version-etc.c: New test.
35408         * tests/test-argp-version-etc-1.sh: New test.
35409
35410 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35411
35412         Provide additional interfaces and documentation for version-etc
35413         module.
35414
35415         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35416         interfaces.
35417         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35418         prototypes.
35419
35420 2009-06-24  Bruno Haible  <bruno@clisp.org>
35421
35422         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35423         HAVE_LIB${NAME} macro.
35424         Reported by Sam Steingold <sds@gnu.org>.
35425
35426 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35427
35428         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35429         needed.
35430
35431 2009-06-21  Bruno Haible  <bruno@clisp.org>
35432
35433         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35434         work.
35435         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35436         together with LIB${NAME}, LTLIB${NAME}.
35437         Reported by Sam Steingold <sds@gnu.org>.
35438
35439 2009-06-20  Jim Meyering  <meyering@redhat.com>
35440
35441         tests: make sc_require_test_exit_idiom more generic
35442         * top/maint.mk (Exit_witness_file): New overridable variable.
35443         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35444         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35445
35446 2009-06-19  Jim Meyering  <meyering@redhat.com>
35447
35448         hash: reverse order of src/dst parameters in an internal interface
35449         * lib/hash.c (transfer_entries): Reverse order of parameters to
35450         put DST before SRC.  Adjust callers.
35451
35452         tests: test-hash: avoid wholesale duplication
35453         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35454         Instead, use a loop and add a single conditional.
35455
35456         tests: test-hash: allow seed selection via a command line argument
35457         * tests/test-hash.c (get_seed): New function.
35458         (main): Use it.
35459
35460 2009-06-19  Eric Blake  <ebb9@byu.net>
35461
35462         hash: avoid memory leak on allocation failure
35463         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35464         failure.  Factor repeated algorithm...
35465         (transfer_entries): ...into new helper routine.
35466         (hash_delete): React to hash_rehash return value.
35467
35468         hash: reduce memory pressure in hash_rehash no-op case
35469         * lib/hash.c (next_prime): Avoid overflow.
35470         (hash_initialize): Factor bucket size computation...
35471         (compute_bucket_size): ...into new helper function.
35472         (hash_rehash): Use new function and open coding to reduce memory
35473         pressure, and avoid a memory leak in USE_OBSTACK code.
35474         Reported by Jim Meyering.
35475
35476 2009-06-18  Eric Blake  <ebb9@byu.net>
35477
35478         hash: make rotation more obvious
35479         * modules/hash (Depends-on): Add bitrotate and stdint.
35480         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35481         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35482         (SIZE_MAX): Rely on headers for definition.
35483         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35484         (raw_hasher): Use rotr_sz.
35485         Suggested by Jim Meyering.
35486
35487         hash: fix memory leak in last patch
35488         * lib/hash.c (hash_rehash): Avoid memory leak.
35489
35490         hash: avoid no-op rehashing
35491         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35492
35493         hash: provide default callback functions
35494         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35495         (hash_initialize): Use them as defaults.
35496         * tests/test-hash.c (main): Test this.
35497
35498         hash: minor optimization
35499         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35500         when possible.
35501         (hash_initialize): Document this promise.
35502         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35503         * tests/test-hash.c (hash_compare_strings): Test this.
35504
35505 2009-06-18  Bruno Haible  <bruno@clisp.org>
35506
35507         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35508         going to be replaced anyway.
35509
35510 2009-06-18  Bruno Haible  <bruno@clisp.org>
35511
35512         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35513         in one place.
35514         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35515         be replaced anyway.
35516
35517 2009-06-18  Eric Blake  <ebb9@byu.net>
35518
35519         hash: check for resize before insertion
35520         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35521         threshold before insertion, so that a pathological hash_rehash
35522         that fills every bucket can still trigger another rehash.
35523
35524 2009-06-18  Jim Meyering  <meyering@redhat.com>
35525
35526         hash-tests: add a loop around the small tests
35527         * tests/test-hash.c (main): Repeat small tests with selected
35528         small initial table sizes.
35529
35530 2009-06-17  Eric Blake  <ebb9@byu.net>
35531
35532         hash: minor cleanups
35533         * lib/hash.h (hash_entry): Make opaque, by moving...
35534         * lib/hash.c (hash_entry): ...here.
35535         (hash_insert): Clarify restrictions on what can be inserted.
35536         (hash_get_next): Clarify when it is safe to remove an element
35537         during traversal.
35538         (check_tuning): Skip verification when tuning is known safe.
35539         (hash_initialize): Clarify restrictions on tuning.
35540
35541 2009-06-17  Jim Meyering  <jim@meyering.net>
35542         and Eric Blake  <ebb9@byu.net>
35543
35544         hash-tests: new module
35545         * modules/hash-tests: New file.
35546         * tests/test-hash.c: New file.
35547
35548 2009-06-17  Eric Blake  <ebb9@byu.net>
35549
35550         strstr-simple: document new module
35551         * MODULES.html.sh: Document new module.
35552
35553         strstr, strcasestr: replace on platforms with broken memchr
35554         * modules/strstr: Split into...
35555         * modules/strstr-simple: ...new module that does not care about
35556         performance, but does care about glibc bug.
35557         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35558         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35559         if platform memchr is broken, per Debian bug 521737.
35560         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35561         memchr.
35562         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35563         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35564         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35565         * modules/mountlist (Depends-on): Add strstr-simple.
35566         * modules/gen-uni-tables (Depends-on): Likewise.
35567         * modules/argz (Depends-on): Add strstr.
35568
35569 2009-06-17  Bruno Haible  <bruno@clisp.org>
35570
35571         * modules/posix_spawn-internal (Depends-on): Add errno.
35572
35573 2009-06-17  Bruno Haible  <bruno@clisp.org>
35574
35575         Define missing ESTALE on Interix 3.5.
35576         * lib/errno.in.h (ESTALE): Assign a value if missing.
35577         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35578         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35579         missing.
35580         * doc/posix-headers/errno.texi: Mention the Interix bug.
35581         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35582
35583 2009-06-15  Eric Blake  <ebb9@byu.net>
35584
35585         memchr, memchr2: add valgrind exception
35586         * lib/memchr.valgrind: New file.
35587         * lib/memchr2.valgrind: New file.
35588         * modules/memchr (Files): Distribute valgrind file.
35589         * modules/memchr2 (Files): Likewise.
35590
35591         docs: memchr is no longer obsolete
35592         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35593         * lib/string.in.h (memchr): Simplify logic.
35594
35595 2009-06-14  Jim Meyering  <meyering@redhat.com>
35596
35597         link-follow: fix the "checking..." message to not mention trailing slash
35598         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35599         never considered trailing slashes.
35600
35601 2009-06-14  Bruno Haible  <bruno@clisp.org>
35602
35603         * m4/memchr.m4: Mention also the bug on IA-64.
35604         * doc/posix-functions/memchr.texi: Likewise.
35605
35606 2009-06-12  Eric Blake  <ebb9@byu.net>
35607
35608         memchr: detect broken x86_64 and alpha implementations
35609         * modules/memchr-tests (Depends-on): Move mmap detection...
35610         * modules/memchr (Depends-on): ...here.
35611         (configure.ac): Set indicator.
35612         * lib/string.in.h (memchr): Declare replacement.
35613         * modules/string (Makefile.am): Trigger replacement.
35614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35615         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35616         bugs.
35617         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35618         * modules/getpagesize (License): Relax license.
35619
35620 2009-06-11  Bruno Haible  <bruno@clisp.org>
35621
35622         * lib/idpriv.h: Add more references.
35623
35624 2009-06-08  Bruno Haible  <bruno@clisp.org>
35625
35626         Tests for module 'idpriv-droptemp'.
35627         * modules/idpriv-droptemp-tests: New file.
35628         * tests/test-idpriv-droptemp.sh: New file.
35629         * tests/test-idpriv-droptemp.su.sh: New file.
35630         * tests/test-idpriv-droptemp.c: New file.
35631
35632         New module 'idpriv-droptemp'.
35633         * lib/idpriv-droptemp.c: New file.
35634         * modules/idpriv-droptemp: New file.
35635
35636 2009-06-08  Bruno Haible  <bruno@clisp.org>
35637
35638         Tests for module 'idpriv-drop'.
35639         * modules/idpriv-drop-tests: New file.
35640         * tests/test-idpriv-drop.sh: New file.
35641         * tests/test-idpriv-drop.su.sh: New file.
35642         * tests/test-idpriv-drop.c: New file.
35643
35644         New module 'idpriv-drop'.
35645         * lib/idpriv.h: New file.
35646         * lib-idpriv-drop.c: New file.
35647         * m4/idpriv.m4: New file.
35648         * modules/idpriv-drop: New file.
35649
35650 2009-06-08  Bruno Haible  <bruno@clisp.org>
35651
35652         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35653         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35654         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35655         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35656         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35657         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35658         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35659
35660 2009-06-08  Eric Blake  <ebb9@byu.net>
35661
35662         test-strstr: use memory fence, when possible
35663         * tests/test-strstr.c (main): Use memory fence, in order to be
35664         more likely to trigger Debian bug 521737.
35665         * modules/strstr-tests (Files): Pull in additional files.
35666
35667         memchr: no longer obsolete, for wider field testing
35668         * modules/memchr (Status, Notice): Delete, this module is no
35669         longer obsolete.
35670         * modules/vasnprintf (Depends-on): Add memchr.
35671
35672 2009-06-07  Jim Meyering  <meyering@redhat.com>
35673
35674         hash: declare some functions with the warn_unused_result attribute
35675         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35676
35677 2009-06-07  Bruno Haible  <bruno@clisp.org>
35678
35679         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35680         Reported by Eric Blake.
35681
35682 2009-06-06  Eric Blake  <ebb9@byu.net>
35683
35684         test-alignof: fix typo with long double
35685         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35686         compiler error.
35687
35688 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35689
35690         Escape non-texinfo { and }s.
35691         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35692         markup error.
35693
35694 2009-06-04  Jim Meyering  <meyering@redhat.com>
35695
35696         gitlog-to-changelog: don't infloop on an empty commit log
35697         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35698         Reported by Boris Petersen <transacid@centerim.org>.
35699
35700 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35701
35702         version-etc: extend for packagers
35703         Add three new configure options, intended for packagers:
35704           --with-packager="packager name"
35705           --with-packager-version="packager-specific version"
35706           --with-packager-bug-reports="packager bug reporting"
35707         An example with coreutils:
35708           $ ./configure \
35709             --with-packager=Gentoo \
35710             --with-packager-bug-report=http://bugs.gentoo.org/ \
35711             --with-packager-version="patchset 1.6"
35712           $ ./src/ls --version | head -n2
35713           ls (GNU coreutils) 7.1-dirty
35714           Packaged by Gentoo (patchset 1.6)
35715         Note that the bug reporting info via --help doesn't show up because
35716         coreutils uses its own custom emit_bug_reporting_address() implementation
35717         in src/system.h.  If it didn't, it'd look like:
35718           $ ./src/ls --help | tail -n4
35719           Report bugs to <bug-coreutils@gnu.org>.
35720           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35721           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35722           General help using GNU software: <http://www.gnu.org/gethelp/>.
35723         * lib/version-etc.c: Print new information, if provided.
35724         * m4/version-etc.m4: New file.
35725         * modules/version-etc (Files): Add m4/version-etc.m4.
35726         (configure.ac): Add gl_VERSION_ETC.
35727
35728 2009-05-31  Bruno Haible  <bruno@clisp.org>
35729
35730         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35731         and 'int64_t'.
35732         * modules/alignof-tests (Dependencies): Add stdint.
35733         Reported by Eric Blake.
35734
35735 2009-05-31  Bruno Haible  <bruno@clisp.org>
35736
35737         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35738         restriction due to compiler bugs.
35739         Reported by Eric Blake.
35740
35741 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35742             Bruno Haible  <bruno@clisp.org>
35743
35744         Fix test-alignof failure.
35745         * lib/alignof.h (alignof_slot): New macro.
35746         (alignof_type): New macro, with the same semantics as the previous
35747         'alignof'.
35748         (alignof): Alias to alignof_slot.
35749         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35750         check that the results are usable as constant expressions.
35751
35752 2009-05-31  Bruno Haible  <bruno@clisp.org>
35753
35754         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35755         * tests/test-memchr.c (main): Check that memchr does not read past the
35756         first occurrence of the byte.
35757         * tests/test-strstr.c (main): Update comment.
35758         Suggested by Eric Blake.
35759
35760 2009-05-30  Bruno Haible  <bruno@clisp.org>
35761
35762         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35763         detail how to use dumpbin.
35764         Reported by David Byron <dbyron@dbyron.com>.
35765
35766 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35767
35768         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35769
35770 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35771
35772         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35773
35774 2009-05-28  Bruno Haible  <bruno@clisp.org>
35775
35776         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35777         build-aux/ files.
35778
35779 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35780
35781         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35782
35783 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35784
35785         * gnulib-tool (sed_transform_main_lib_file)
35786         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35787         regexps.
35788
35789 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35790
35791         * tests/test-strstr.c: Add another self-test.
35792         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35793         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35794
35795 2009-05-23  Bruno Haible  <bruno@clisp.org>
35796
35797         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35798         change.
35799
35800 2009-05-21  Bruno Haible  <bruno@clisp.org>
35801
35802         Simplify use of mode_t varargs.
35803         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35804         uses 'mode_t' or 'int'.
35805         * lib/openat.c (openat): Likewise.
35806         * lib/open-safer.c (open_safer): Likewise.
35807         * m4/mode_t.m4: New file.
35808         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35809         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35810         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35811         * modules/open (Files): Add m4/mode_t.m4.
35812         * modules/openat (Files): Likewise.
35813         * modules/fcntl-safer (Files): Likewise.
35814         Suggested by Eric Blake.
35815
35816 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35817
35818         * doc/glibc-functions/fallocate.texi: New file.
35819         * doc/gnulib.texi: Include it.
35820
35821 2009-05-21  Eric Blake  <ebb9@byu.net>
35822             Bruno Haible  <bruno@clisp.org>
35823
35824         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35825         invocations.
35826         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35827
35828 2009-05-21  Eric Blake  <ebb9@byu.net>
35829             Bruno Haible  <bruno@clisp.org>
35830
35831         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35832         include_next. Fix of 2008-11-20 commit.
35833         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35834         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35835         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35836         NEXT_MATH_H.
35837         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35838         instead of NEXT_MATH_H.
35839
35840 2009-05-21  Bruno Haible  <bruno@clisp.org>
35841
35842         Avoid redefinition warnings for SIZE_MAX.
35843         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35844         Reported by Simon Josefsson.
35845
35846 2009-05-21  Bruno Haible  <bruno@clisp.org>
35847
35848         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35849         AC_CACHE_VAL.
35850
35851 2009-05-20  Bruno Haible  <bruno@clisp.org>
35852
35853         Make zeroptr.h work on mingw.
35854         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35855         mprotect.
35856         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35857         * modules/memchr2-tests (configure.ac): Likewise.
35858         * modules/memcmp-tests (configure.ac): Likewise.
35859         * modules/memmem-tests (configure.ac): Likewise.
35860         * modules/memrchr-tests (configure.ac): Likewise.
35861         Reported by Simon Josefsson.
35862
35863 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35864
35865         * tests/test-glob.c: Include string.h for strcmp prototype.
35866
35867 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35868
35869         * modules/getdelim (Depends-on): Add explicit stdint, although it
35870         was implicitly already pulled in via realloc-posix.
35871         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35872
35873 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35874
35875         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35876         G. Christensen" <tgc@jupiterrise.com>.
35877         * m4/sys_socket_h.m4: Check for sa_family_t.
35878         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35879         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35880         * tests/test-sys_socket.c: Check that sa_family_t works.
35881
35882 2009-05-18  Eric Blake  <ebb9@byu.net>
35883
35884         maint.mk: allow gnulib_dir in VPATH build
35885         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35886
35887 2009-05-15  Jim Meyering  <meyering@redhat.com>
35888
35889         maint.mk: Give gnulib_dir a default definition.
35890         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35891         Thus, most packages no longer need to specify this variable in cfg.mk
35892
35893 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35894
35895         rename.m4: fix typos that would make non-mingw cross-configure fail
35896         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35897
35898 2009-05-13  Eric Blake  <ebb9@byu.net>
35899
35900         mmap-anon: avoid out-of-order autoconf expansion
35901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35902         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35903         * modules/memchr-tests (Depends-on): Add extensions.
35904         * modules/memchr2-tests (Depends-on): Add extensions.
35905         * modules/memcmp-tests (Depends-on): Add extensions.
35906         * modules/memmem-tests (Depends-on): Add extensions.
35907         * modules/memrchr-tests (Depends-on): Add extensions.
35908
35909 2009-05-13  Bruno Haible  <bruno@clisp.org>
35910
35911         Make some tests ISO C 99 compliant.
35912         * tests/zerosize-ptr.h: New file.
35913         * tests/test-memchr.c: Include zerosize-ptr.h.
35914         (main): Use a zero-size object pointer instead of NULL.
35915         * tests/test-memchr2.c: Include zerosize-ptr.h.
35916         (main): Use a zero-size object pointer instead of NULL.
35917         * tests/test-memcmp.c: Include zerosize-ptr.h.
35918         (main): Use a zero-size object pointer instead of NULL.
35919         * tests/test-memmem.c: Include zerosize-ptr.h.
35920         (main): Use a zero-size object pointer instead of NULL.
35921         * tests/test-memrchr.c: Include zerosize-ptr.h.
35922         (main): Use a zero-size object pointer instead of NULL.
35923         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35924         m4/mmap-anon.m4.
35925         (Depends-on): Add getpagesize.
35926         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35927         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35928         m4/mmap-anon.m4.
35929         (Depends-on): Add getpagesize.
35930         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35931         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35932         m4/mmap-anon.m4.
35933         (Depends-on): Add getpagesize.
35934         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35935         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35936         m4/mmap-anon.m4.
35937         (Depends-on): Add getpagesize.
35938         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35939         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35940         m4/mmap-anon.m4.
35941         (Depends-on): Add getpagesize.
35942         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35943
35944 2009-05-12  Bruno Haible  <bruno@clisp.org>
35945
35946         Tests for module 'alignof'.
35947         * modules/alignof-tests: New file.
35948         * tests/test-alignof.c: New file.
35949
35950 2009-05-12  Bruno Haible  <bruno@clisp.org>
35951
35952         Fix alignof macro.
35953         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35954         vendor compilers that are always correct.
35955
35956 2009-05-12  Bruno Haible  <bruno@clisp.org>
35957
35958         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35959         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35960         not whether its fully works.
35961
35962 2009-05-12  Bruno Haible  <bruno@clisp.org>
35963
35964         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35965
35966 2009-05-12  Jim Meyering  <meyering@redhat.com>
35967
35968         * top/maint.mk: Adjust backslash alignment.
35969
35970 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35971
35972         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35973
35974 2009-05-11  Eric Blake  <ebb9@byu.net>
35975
35976         argp: avoid undefined behavior
35977         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35978         macros.
35979
35980 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35981
35982         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35983         user.name to prevent git commit from complaining.
35984
35985 2009-05-10  Bruno Haible  <bruno@clisp.org>
35986
35987         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35988         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35989         it rewrites every file name only once.
35990         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35991
35992 2009-05-08  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35995         instead of 'max'.
35996
35997 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35998
35999         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36000         sockaddr_storage test.
36001
36002 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36003
36004         * modules/sys_socket (Makefile.am): Substitute
36005         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36006         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36007         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36008         * tests/test-sys_socket.c: Check sockaddr_storage.
36009
36010 2009-05-08  Bruno Haible  <bruno@clisp.org>
36011
36012         New module 'alignof'.
36013         * lib/alignof.h: New file.
36014         * modules/alignof: New file.
36015
36016 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36017             Bruno Haible  <bruno@clisp.org>
36018
36019         Fix test-file-has-acl on FreeBSD.
36020         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36021         mask is implicitly added.
36022         * tests/test-file-has-acl.c: Include <signal.h>.
36023         (main): Terminate the test after 5 seconds.
36024         * modules/acl-tests (configure.ac): Check for alarm function.
36025
36026 2009-05-04  Bruno Haible  <bruno@clisp.org>
36027
36028         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36029         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36030         * modules/errno (configure.ac): Drop AC_REQUIRE.
36031         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36032         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36033
36034 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36035
36036         * modules/glob-tests: New module.
36037         * tests/test-glob.c: Add.
36038
36039 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36040
36041         * modules/fnmatch-tests: New module.
36042         * tests/test-fnmatch.c: Add.
36043
36044 2009-05-04  Eric Blake  <ebb9@byu.net>
36045
36046         maint: make the new no-submodule-changes rule VPATH-safe
36047         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36048
36049 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36050             Bruno Haible  <bruno@clisp.org>
36051
36052         acl: Fix infinite loop on FreeBSD.
36053         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36054         of return value from acl_get_entry.
36055         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36056         Likewise.
36057
36058 2009-05-03  Bruno Haible  <bruno@clisp.org>
36059
36060         * lib/acl-internal.h (acl_entries): Clarify return value.
36061         * lib/acl_entries.c (acl_entries): Likewise.
36062
36063 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36064
36065         Bug fix in acl module.
36066         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36067
36068 2009-05-03  Bruno Haible  <bruno@clisp.org>
36069
36070         Create gperf-generated file in the source dir, not in the build dir.
36071         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36072         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36073         * modules/unicase/locale-language (unicase/locale-languages.h):
36074         Likewise.
36075         * modules/unicase/special-casing (unicase/special-casing-table.h):
36076         Likewise.
36077         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36078         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36079         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36080         Reported by Ralf Wildenhues.
36081
36082 2009-05-03  Bruno Haible  <bruno@clisp.org>
36083
36084         * modules/fnmatch (Description, configure.ac): Taken from
36085         fnmatch-posix.
36086         * modules/fnmatch-posix: Turn into a symbolic reference to the
36087         'fnmatch' module, and deprecate.
36088         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36089
36090 2009-05-03  Bruno Haible  <bruno@clisp.org>
36091
36092         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36093         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36094         Reported by Ralf Wildenhues.
36095
36096 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36097
36098         * m4/fnmatch.m4: Fix fnmatch re-define.
36099
36100 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36101
36102         priv-set: new module and tests; adapt write-any-file
36103         * lib/priv-set.c: New file.
36104         * lib/priv-set.h: New file.
36105         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36106         * lib/write-any-file.c: Simplify by using priv-set module.
36107         * m4/priv-set.m4: New file.
36108         * modules/priv-set: New file.
36109         * modules/unlinkdir: Add dependency on priv-set module.
36110         * modules/write-any-file: Likewise.
36111
36112         Tests for module 'priv-set'.
36113         * modules/priv-set-tests: New file.
36114         * tests/test-priv-set.c: New file.
36115
36116 2009-05-03  Jim Meyering  <meyering@redhat.com>
36117             Bruno Haible  <bruno@clisp.org>
36118
36119         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36120         use the converted UTF-8 variant of the name instead.
36121
36122 2009-05-03  Jim Meyering  <meyering@redhat.com>
36123
36124         tests: tighten some getdate tests
36125         * tests/test-getdate.c (main): Tighten tests: require equality,
36126         not just greater than.  Set TZ envvar to UTC0.
36127
36128 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36129
36130         getdate: correctly interpret "next monday" when run on a Monday
36131         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36132         that e.g., "next tues" (when run on a tuesday) results in a date
36133         that is one week in the future, and not today's date.
36134         I.e., add a week when the wday is the same as the current one.
36135         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36136         and earlier by Martin Bernreuther and Jan Minář.
36137         * tests/test-getdate.c (main): Check that "next DAY" is always in
36138         the future and that "last DAY" is always in the past.
36139
36140 2009-05-02  Jim Meyering  <meyering@redhat.com>
36141
36142         build: ensure that a release build fails when a submodule is unclean
36143         * top/maint.mk (no-submodule-changes): New rule.
36144         (alpha beta major): Depend on it.
36145
36146 2009-05-02  Bruno Haible  <bruno@clisp.org>
36147
36148         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36149         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36150         shell variable gl_fnmatch_required to detect which variant is
36151         requested.
36152         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36153         gl_FUNC_FNMATCH_POSIX.
36154         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36155         exclude fnmatch-posix.
36156
36157 2009-05-02  Bruno Haible  <bruno@clisp.org>
36158
36159         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36160         * modules/mbsrtowcs (License): Change to LGPLv2+.
36161         * modules/strnlen1 (License): Likewise.
36162         Reported by Simon Josefsson.
36163
36164 2009-05-02  Bruno Haible  <bruno@clisp.org>
36165
36166         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36167         "cross".
36168         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36169         gnulib-tool was called with option --source-base=lib.
36170
36171 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36172
36173         Use automake *-local hooks without commands, for extensibility.
36174         * modules/localcharset (Makefile.am): Rename install-exec-local
36175         rule to install-exec-localcharset, and make it a prerequisite of
36176         install-exec-local.  Likewise, rename the uninstall-local rule to
36177         uninstall-localcharset, and make it a prerequisite of the former.
36178
36179 2009-05-01  Bruno Haible  <bruno@clisp.org>
36180
36181         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36182         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36183         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36185         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36186         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36187         m4/locale-zh.m4, m4/codeset.m4.
36188
36189         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36190         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36191         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36192         m4/locale-zh.m4.
36193
36194         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36195         REPLACE_WCRTOMB if mbstate_t must be replaced.
36196         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36197         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36198
36199 2009-05-01  Bruno Haible  <bruno@clisp.org>
36200
36201         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36202         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36203         dngettext, dcngettext, textdomain, bindtextdomain,
36204         bind_textdomain_codeset): Undefine before redefining.
36205
36206 2009-04-30  Bruno Haible  <bruno@clisp.org>
36207
36208         Fix bug introduced on 2009-04-25.
36209         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36210         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36211         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36212         is defined.
36213         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36214         is defined.
36215         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36216         is defined.
36217         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36218
36219 2009-04-28  Bruno Haible  <bruno@clisp.org>
36220
36221         Comment tweaks.
36222         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36223         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36224         * lib/unicase.h (u*_casexfrm): Likewise.
36225         Reported by Paolo Bonzini.
36226
36227 2009-04-28  Bruno Haible  <bruno@clisp.org>
36228
36229         Fix a compilation error.
36230         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36231         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36232         Reported by Jim Meyering.
36233
36234 2009-04-27  Bruno Haible  <bruno@clisp.org>
36235
36236         New module 'libunistring'.
36237         * modules/libunistring: New file.
36238         * m4/libunistring.m4: New file.
36239         * MODULES.html.sh (Unicode string functions): Add it.
36240
36241 2009-04-27  Eric Blake  <ebb9@byu.net>
36242
36243         maint.mk: allow package-specific header to provide <config.h>
36244         * top/maint.mk (sc_require_config_h): New variable.
36245         (sc_require_config_h, sc_require_config_h_first): Use it.
36246
36247 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36248
36249         * top/maint.mk (sc_avoid_if_before_free): Except
36250         useless-if-before-free script.
36251
36252 2009-04-27  Eric Blake  <ebb9@byu.net>
36253
36254         maintainer-makefile: depend on all required helper scripts
36255         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36256         useless-if-before-free.
36257         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36258         version, rather than assuming gnulib checkout is available.
36259         Reported by Simen Josefsson.
36260
36261 2009-04-26  Bruno Haible  <bruno@clisp.org>
36262
36263         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36264         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36265         "../" or "..".
36266
36267 2009-04-26  Bruno Haible  <bruno@clisp.org>
36268
36269         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36270         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36271         AC_LIB_HAVE_LINKFLAGS.
36272
36273 2009-04-26  Bruno Haible  <bruno@clisp.org>
36274
36275         Simplify calling convention of u*_conv_from_encoding.
36276         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36277         u32_conv_from_encoding): Expect a resultbuf argument and return the
36278         result directly as a pointer.
36279         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36280         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36281         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36282         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36283         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36284         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36285         Update.
36286         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36287         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36288         * lib/vasnprintf.c (VASNPRINTF): Update.
36289         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36290         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36291         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36292         * NEWS: Mention the change.
36293
36294 2009-04-26  Bruno Haible  <bruno@clisp.org>
36295
36296         Simplify calling convention of u*_conv_to_encoding.
36297         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36298         u32_conv_to_encoding): Expect a resultbuf argument and return the
36299         result directly as a pointer.
36300         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36301         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36302         freeing scaled_offsets if mem_iconveha failed.
36303         * lib/unicase/u-casexfrm.h (FUNC): Update.
36304         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36305         * lib/vasnprintf.c (VASNPRINTF): Update.
36306         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36307         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36308         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36309         * NEWS: Mention the change.
36310
36311 2009-04-26  Bruno Haible  <bruno@clisp.org>
36312
36313         Avoid test failures on AIX and OSF/1.
36314         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36315         malloc(0).
36316         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36317         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36318         Likewise.
36319         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36320         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36321         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36322         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36323         * doc/posix-functions/malloc.texi: Document the portability problem
36324         related to malloc(0).
36325
36326 2009-04-26  Bruno Haible  <bruno@clisp.org>
36327
36328         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36329         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36330         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36331
36332 2009-04-25  Bruno Haible  <bruno@clisp.org>
36333
36334         Avoid link error when creating a namespace clean library.
36335         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36336         as macro with arguments if already defined as an alias.
36337         * lib/signbitf.c (gl_signbitf): Don't undefine.
36338         * lib/signbitd.c (gl_signbitd): Don't undefine.
36339         * lib/signbitl.c (gl_signbitl): Don't undefine.
36340
36341 2009-04-25  Jim Meyering  <meyering@redhat.com>
36342
36343         vc-list-files: fix another quoting bug
36344         * build-aux/vc-list-files: Avoid sed backslash expansion
36345         of pathological directory names.
36346
36347 2009-04-25  Eric Blake  <ebb9@byu.net>
36348
36349         vc-list-files: fix shell quoting error
36350         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36351         timestamp.
36352
36353 2009-04-25  Jim Meyering  <meyering@redhat.com>
36354
36355         vc-list-files: restore lost functionality with subdir argument
36356         * build-aux/vc-list-files: When given a non-"." sub-directory
36357         argument, substitute the $dir/ prefix back onto each resulting name.
36358         Otherwise, coreutils' root_tests check would fail.
36359
36360 2009-04-24  Eric Blake  <ebb9@byu.net>
36361
36362         vc-list-files: ignore git symlinks
36363         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36364         than ls-files, to ignore git symlinks.
36365
36366         maint.mk: import improvements from m4
36367         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36368         (move_if_change): Delete unused macro.
36369         (news-date-check, vc-diff-check): Support VPATH builds.
36370         (announcement): Likewise.  Split --bootstrap-tools list...
36371         (boostrap-tools): ...into separate list, which can be overridden
36372         in cfg.mk.
36373         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36374         requiring dependency on useless-if-before-free module.
36375         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36376         Support VPATH builds.
36377
36378 2009-04-24  Jim Meyering  <meyering@redhat.com>
36379
36380         maint.mk: remove coreutils-specific rules and variables
36381         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36382         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36383         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36384
36385         maint.mk: remove obsolete rule
36386         * top/maint.mk (rel-check): Remove rule.
36387         (WGET, WGETFLAGS): Remove now-unused variables.
36388
36389 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36390
36391         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36392         consistency.
36393
36394         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36395         '$(PATH_SEPARATOR)' instead of ':'.
36396
36397 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36398
36399         * lib/getopt1.c (main): Use 'const' for static array.
36400
36401 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36402
36403         * top/maint.mk: Sync with coreutils.
36404         * NEWS: Explain incompatibilities.
36405
36406 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36407             Bruno Haible  <bruno@clisp.org>
36408
36409         Fix cross-compilation results.
36410         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36411         statement, as third argument of AC_TRY_RUN.
36412         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36413         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36414         Likewise.
36415         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36416         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36417         Likewise.
36418         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36419         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36420         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36421
36422 2009-04-20  Bruno Haible  <bruno@clisp.org>
36423
36424         Avoid test failure on mingw.
36425         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36426
36427 2009-04-20  Bruno Haible  <bruno@clisp.org>
36428
36429         Avoid compilation error on mingw.
36430         * modules/localename-tests (Depends-on): Add locale.
36431
36432 2009-04-19  Bruno Haible  <bruno@clisp.org>
36433
36434         Support for building a shared library on Windows platforms.
36435         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36436         (main): Test the presence of UNINORM_NFC here.
36437         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36438         (main): Test the presence of UNINORM_NFD here.
36439         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36440         (main): Test the presence of UNINORM_NFKC here.
36441         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36442         (main): Test the presence of UNINORM_NFKD here.
36443
36444 2009-04-19  Bruno Haible  <bruno@clisp.org>
36445
36446         Avoid a compiler warning.
36447         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36448         Change type of variable 'sequence'.
36449
36450 2009-04-19  Bruno Haible  <bruno@clisp.org>
36451
36452         * modules/configmake (Makefile.am): When the contents of configmake.h
36453         does not change, arrange to preserve its modification time.
36454
36455 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36456
36457         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36458         gettext domain.
36459
36460 2009-04-16  Jim Meyering  <meyering@redhat.com>
36461
36462         useless-if-before-free: improve conversion code
36463         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36464         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36465
36466 2009-04-14  Bruno Haible  <bruno@clisp.org>
36467
36468         * modules/fcntl (Depends-on): Add extensions.
36469         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36470
36471 2009-04-12  Ben Pfaff  <blp@gnu.org>
36472
36473         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36474         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36475
36476 2009-03-20  Ben Pfaff  <blp@gnu.org>
36477
36478         Make rename replace existing destinations on Windows.
36479         * m4/rename.m4: Add test for Mingw.
36480         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36481         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36482         * doc/posix-functions/rename.texi: Document.
36483
36484 2009-04-10  Bruno Haible  <bruno@clisp.org>
36485
36486         New include file "iconveh.h".
36487         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36488         * lib/striconveh.h: Include it.
36489         (enum iconv_ilseq_handler): Remove definition.
36490         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36491         striconveh.h.
36492         * lib/striconveha.c: Include striconveh.h.
36493         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36494         * modules/striconveh (Files): Add lib/iconveh.h.
36495         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36496         lib/striconveh.h.
36497
36498 2009-04-10  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/uniconv.h: Update comment.
36501
36502 2009-04-10  Bruno Haible  <bruno@clisp.org>
36503
36504         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36505         always.
36506         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36507         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36508         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36509         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36510         "unistring-notinline.h", so that the function gets defined always.
36511         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36512         * lib/unistr/u8-uctomb.c: Likewise.
36513         * lib/unistr/u16-mbtouc.c: Likewise.
36514         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36515         * lib/unistr/u16-uctomb.c: Likewise.
36516         * lib/unistr/u32-mbtouc.c: Likewise.
36517         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36518         * lib/unistr/u32-uctomb.c: Likewise.
36519
36520 2009-04-10  Bruno Haible  <bruno@clisp.org>
36521
36522         Mark 'utime' obsolete.
36523         * modules/utime (Status, Notice): New sections.
36524         Suggested by Jim Meyering.
36525
36526         Fix cross-compile guess for utime test.
36527         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36528         autoconf.
36529         * doc/posix-functions/utime.texi: Give more precisions.
36530         Reported by Jan <ipif@ymail.com>.
36531
36532 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36533
36534         filevercmp: correct today's change
36535         * lib/filevercmp.c: Also handle coreutils' test inputs.
36536         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36537
36538         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36539         for reporting it.
36540         * lib/filevercmp.c: Special handle for "", "." and "..".
36541         * tests/test-filevercmp.c: Enlarge the set suite.
36542
36543 2009-04-07  Jim Meyering  <meyering@redhat.com>
36544
36545         useless-if-before-free: show how to remove braced useless free, too
36546         * build-aux/useless-if-before-free: still only in a comment, though.
36547
36548 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36549
36550         maint.mk: import changes to syntax-check macros from coreutils
36551         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36552         Use them in the relevant macros.
36553
36554 2009-04-06  Bruno Haible  <bruno@clisp.org>
36555
36556         Fix unportable use of bit-fields.
36557         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36558         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36559         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36560
36561 2009-04-06  Bruno Haible  <bruno@clisp.org>
36562
36563         Avoid test failures on AIX and OSF/1.
36564         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36565         that malloc(0) = NULL.
36566         * tests/unicase/test-u8-tolower.c (check): Likewise.
36567         * tests/unicase/test-u8-totitle.c (check): Likewise.
36568         * tests/unicase/test-u8-toupper.c (check): Likewise.
36569         * tests/unicase/test-u16-casefold.c (check): Likewise.
36570         * tests/unicase/test-u16-tolower.c (check): Likewise.
36571         * tests/unicase/test-u16-totitle.c (check): Likewise.
36572         * tests/unicase/test-u16-toupper.c (check): Likewise.
36573         * tests/unicase/test-u32-casefold.c (check): Likewise.
36574         * tests/unicase/test-u32-tolower.c (check): Likewise.
36575         * tests/unicase/test-u32-totitle.c (check): Likewise.
36576         * tests/unicase/test-u32-toupper.c (check): Likewise.
36577         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36578         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36579         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36580         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36581         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36582         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36583         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36584         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36585         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36586         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36587         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36588         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36589
36590 2009-04-05  Bruno Haible  <bruno@clisp.org>
36591
36592         Work around an autoconf limitation.
36593         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36594         comment line if it would be longer than 3 KB.
36595
36596 2009-04-05  Bruno Haible  <bruno@clisp.org>
36597
36598         Avoid test failure with libiconv-1.13.
36599         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36600         of the expected test results.
36601
36602 2009-04-05  Bruno Haible  <bruno@clisp.org>
36603
36604         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36605         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36606         that it should be installed.
36607
36608 2009-04-05  Bruno Haible  <bruno@clisp.org>
36609
36610         * gnulib-tool: New option --copy-file.
36611         (func_usage): Document it.
36612         (func_dest_tmpfilename): Moved out of func_import.
36613         (func_add_file, func_update_file): New functions, extracted from
36614         func_import.
36615         (func_import): Update.
36616
36617 2009-04-05  Karl Berry  <karl@gnu.org>
36618
36619         * README: prominently mention gnulib-tool.
36620         Rearrange sections so getting the code is near the top.
36621
36622 2009-04-05  Bruno Haible  <bruno@clisp.org>
36623
36624         * lib/unicase.h: Mention u*_cmp2.
36625         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36626         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36627         * lib/unicase/ulc-casecmp.c: Likewise.
36628         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36629         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36630         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36631         unistr/u8-cmp.
36632         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36633         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36634         unistr/u16-cmp.
36635         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36636         unistr/u32-cmp.
36637
36638         * lib/uninorm.h: Mention u*_cmp2.
36639         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36640         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36641         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36642         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36643         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36644         unistr/u8-cmp.
36645         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36646         unistr/u16-cmp.
36647         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36648         unistr/u32-cmp.
36649
36650         New module 'unistr/u32-cmp2'.
36651         * lib/unistr/u32-cmp2.c: New file.
36652         * modules/unistr/u32-cmp2: New file.
36653
36654         New module 'unistr/u16-cmp2'.
36655         * lib/unistr/u16-cmp2.c: New file.
36656         * modules/unistr/u16-cmp2: New file.
36657
36658         New module 'unistr/u8-cmp2'.
36659         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36660         * lib/unistr/u8-cmp2.c: New file.
36661         * lib/unistr/u-cmp2.h: New file.
36662         * modules/unistr/u8-cmp2: New file.
36663
36664 2009-04-05  Bruno Haible  <bruno@clisp.org>
36665
36666         * lib/unictype.h (uc_property_is_valid): New macro.
36667         * tests/unictype/test-pr_byname.c (main): Use it.
36668
36669         * lib/unistr.h: Doc fixes.
36670         * lib/uniconv.h: Doc fixes.
36671         * lib/unictype.h: Doc fixes.
36672
36673 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36674
36675         Port coreutils 7.2 to Solaris 8.
36676
36677         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36678         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36679         for Solaris 8.  This is a bit of a hack, as it means it's the
36680         caller's responsibility to add -lnsl if needed, but most likely it
36681         won't be needed since only getaddrinfo uses this and getaddrinfo
36682         isn't needed on Solaris 8.
36683
36684         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36685         problem to Solaris 8 encountered with coreutils 7.2, which
36686         resulted in a message "fnmatch.c:292: warning: passing argument 4
36687         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36688         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36689
36690 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36691
36692         * m4/ld-version-script.m4: Add FIXME comment.
36693
36694 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36695
36696         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36697         SOVERSION variable.
36698
36699 2009-04-02  Bruno Haible  <bruno@clisp.org>
36700
36701         * Makefile (info, html, dvi, pdf): Combine the rules.
36702         Suggested by Jim Meyering.
36703
36704 2009-04-01  Bruno Haible  <bruno@clisp.org>
36705
36706         * Makefile (info, html, dvi, pdf): New targets.
36707         Reported by Reuben Thomas <rrt@sc3d.org>.
36708
36709 2009-04-01  Bruno Haible  <bruno@clisp.org>
36710
36711         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36712         can be put into PATH.
36713         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36714
36715 2009-04-01  Bruno Haible  <bruno@clisp.org>
36716
36717         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36718
36719 2009-04-01  Bruno Haible  <bruno@clisp.org>
36720
36721         Rename module 'visibility'.
36722         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36723         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36724         * doc/gnulib.texi: Update.
36725         * MODULES.html.sh (Misc): Update.
36726         * NEWS: Mention the change.
36727
36728 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36729
36730         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36731         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36732         Eric Blake <ebb9@byu.net> for review.
36733         * MODULES.html.sh: Add lib-msvc-compat.
36734         * doc/gnulib.texi: Link to new section.
36735         * m4/ld-output-def.m4: New file.
36736         * doc/ld-output-def.texi: New file.
36737
36738 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36739
36740         Rename ld-version-script to lib-symbol-versions.  Suggested by
36741         Bruno Haible <bruno@clisp.org>.
36742         * modules/ld-version-script: Renamed to lib-symbol-versions.
36743         * doc/ld-version-script.texi: Fix module name.
36744         * MODULES.html.sh: Add lib-symbol-versions.
36745
36746 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36747
36748         * modules/u64-tests: New file.
36749         * tests/test-u64.c: New file.
36750
36751 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36752
36753         * MODULES.html.sh: Mention u64.
36754         * modules/u64: New module.
36755         * modules/crypto/sha512: Depend on u64 module instead of providing
36756         u64.h.
36757
36758 2009-03-27  Eric Blake  <ebb9@byu.net>
36759
36760         test-strerror: make debugging EAI_SYSTEM easier
36761         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36762         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36763         failure was EAI_SYSTEM.
36764
36765 2009-03-25  Bruno Haible  <bruno@clisp.org>
36766
36767         Fix a problem with --enable-relocatable on Solaris 7.
36768         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36769         since 2008-02-24.
36770
36771 2009-03-25  Eric Blake  <ebb9@byu.net>
36772
36773         test-sockets: avoid gcc warning
36774         * tests/test-sockets.c (main): Silence compiler warning.
36775
36776 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36777
36778         New modules nproc, pthread, contributed by Glen Lenker.
36779
36780         * MODULES.html.sh: Add pthread, nproc.
36781         * lib/nproc.c: New file.
36782         * lib/nproc.h: New file.
36783         * lib/pthread.in.h: New file.
36784         * m4/pthread.m4: New file.
36785         * modules/nproc: New file.
36786         * modules/pthread: New file.
36787
36788 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36789
36790         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36791         New variable.
36792
36793 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36794
36795         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36796         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36797         * tests/test-filevercmp.c: Add tests for backup suffixes.
36798
36799 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36800
36801         * modules/stdlib (Depends-on): Add stdint, needed when defining
36802         struct random_data on, for example, HP-UX 10.20.  Reported by
36803         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36804
36805 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36806
36807         * lib/readline.c (readline): Call fflush on stdout after printing
36808         prompt.
36809
36810 2009-03-20  Bruno Haible  <bruno@clisp.org>
36811
36812         Remove dependency from 'close' module to -lws2_32 on native Windows.
36813         * lib/close-hook.h: New file.
36814         * lib/close-hook.c: New file.
36815         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36816         w32sock.h.
36817         (_gl_close_fd_maybe_socket): Remove function.
36818         (rpl_close): Invoke execute_all_close_hooks instead of
36819         _gl_close_fd_maybe_socket.
36820         * lib/sockets.c: Include close-hook.h, w32sock.h.
36821         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36822         (close_sockets_hook): New variable.
36823         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36824         (gl_sockets_cleanup): Unregister it.
36825         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36826         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36827         * modules/close-hook: New file.
36828         * modules/close (Files): Remove lib/w32sock.h.
36829         (Depends-on): Add close-hook.
36830         (Link): Remove section.
36831         * modules/sockets (Files): Add lib/w32sock.h.
36832         (Depends-on): Add close-hook.
36833         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36834         invocation.
36835         * NEWS: Mention that LIB_CLOSE is gone.
36836
36837 2009-03-23  Eric Blake  <ebb9@byu.net>
36838
36839         signal-tests: test previous patch
36840         * tests/test-signal.c: New file.
36841         * modules/signal-tests: Likewise.
36842
36843         signal.h: always support 'volatile sig_atomic_t'
36844         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36845         (gl_SIGNAL_H_DEFAULTS): Add a default.
36846         * modules/signal (Makefile.am): Substitute if needed.
36847         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36848         users can blindly add volatile.
36849         * doc/posix-headers/signal.texi (signal.h): Document it.
36850         Reported by Matthew Woehlke.
36851
36852 2009-03-23  Jim Meyering  <meyering@redhat.com>
36853
36854         pathmax: PATH_MAX: use pathconf only when available
36855         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36856         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36857         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36858         This avoids a link failure in a PSP cross-compilation environment
36859         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36860
36861         * lib/vasnprintf.c (divide): Fix typo in comment.
36862
36863 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36864
36865         * gnulib-tool (func_filter_filelist): Fix comment.
36866
36867 2009-03-20  Bruno Haible  <bruno@clisp.org>
36868
36869         Make sockets.h self-contained.
36870         * lib/sockets.c: Include sockets.h first.
36871         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36872
36873 2009-03-19  Eric Blake  <ebb9@byu.net>
36874
36875         doc: mention more functions added in cygwin 1.7.0
36876         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36877         addition.
36878         * doc/posix-functions/log2f.texi: Likewise.
36879
36880 2009-03-19  Jim Meyering  <meyering@redhat.com>
36881
36882         fsusage: avoid syntax error due to statement-before-declaration
36883         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36884         after all declarations.  Reported by Matthew Woehlke in
36885         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36886
36887 2009-03-18  Eric Blake  <ebb9@byu.net>
36888
36889         build-aux/compile: sync from automake
36890         * build-aux/compile: New file, from automake.
36891         * config/srclist.txt: Mention build-aux/compile.
36892
36893 2009-03-17  Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/git-merge-changelog.c: Fix typo in comment.
36896         Reported by Reuben Thomas <rrt@sc3d.org>.
36897
36898 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36899
36900         * m4/regex.m4: update and improve help for
36901         --without-included-regex.
36902
36903 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36904
36905         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36906         failure on missing include files.
36907
36908 2009-03-17  Eric Blake  <ebb9@byu.net>
36909
36910         doc: mention more functions added in cygwin 1.7.0
36911         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36912         addition.
36913         * doc/posix-functions/fwscanf.texi: Likewise.
36914         * doc/posix-functions/swprintf.texi: Likewise.
36915         * doc/posix-functions/swscanf.texi: Likewise.
36916         * doc/posix-functions/vfwprintf.texi: Likewise.
36917         * doc/posix-functions/vfwscanf.texi: Likewise.
36918         * doc/posix-functions/vswprintf.texi: Likewise.
36919         * doc/posix-functions/vswscanf.texi: Likewise.
36920         * doc/posix-functions/vwprintf.texi: Likewise.
36921         * doc/posix-functions/vwscanf.texi: Likewise.
36922         * doc/posix-functions/wcscasecmp.texi: Likewise.
36923         * doc/posix-functions/wcsdup.texi: Likewise.
36924         * doc/posix-functions/wcsftime.texi: Likewise.
36925         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36926         * doc/posix-functions/wprintf.texi: Likewise.
36927         * doc/posix-functions/wscanf.texi: Likewise.
36928         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36929
36930 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36931
36932         maint.mk: really add $(AM_MAKEFLAGS)
36933         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36934         was inadvertently omitted in the last commit.
36935         Spotted by Bruno Haible.
36936
36937         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36938         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36939         $(AM_MAKEFLAGS)' rather than plain `make'.
36940
36941         gnulib-tool: execute $MAKE not make
36942         * gnulib-tool: Default $MAKE to 'make'.
36943         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36944         than make.  Initialize $MAKE in the do-autobuild script.
36945
36946         gnulib-tool: use $MAKE not make in generated files
36947         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36948         make, in generated files.  Initialize $MAKE in the do-autobuild
36949         script.
36950
36951         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36952
36953         GNUmakefile: disable parallelism only for multiple, recursive targets
36954         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36955         additions in the Makefile.
36956         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36957         by Automake.
36958         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36959         are listed on the command line and at least one of them is
36960         listed in $(ALL_RECURSIVE_TARGETS).
36961
36962 2009-03-14  Bruno Haible  <bruno@clisp.org>
36963
36964         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36965         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36966         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36967         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36968         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36969         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36970         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36971         unistr/u8-uctomb.
36972         * modules/unistr/u8-strchr (Depends-on): Likewise.
36973         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36974         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36975         unistr/u16-uctomb.
36976         * modules/unistr/u16-strchr (Depends-on): Likewise.
36977         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36978
36979 2009-03-12  Bruno Haible  <bruno@clisp.org>
36980
36981         Work around select() bug on Interix 3.5.
36982         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36983         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36984         * m4/select.m4: New file.
36985         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36986         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36987         * modules/select (Files): Add m4/select.m4.
36988         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36989         * modules/nanosleep (Depends-on): Add select.
36990         * modules/poll (Depends-on): Likewise.
36991         * doc/posix-functions/select.texi: Mention the Interix bug.
36992         Reported by Markus Duft <mduft@gentoo.org>.
36993
36994         * lib/select.c: Renamed from lib/winsock-select.c.
36995         * modules/select (Files): Add lib/select.c, remove
36996         lib/winsock-select.c.
36997         (configure.ac): Update.
36998
36999 2009-03-12  Jim Meyering  <meyering@redhat.com>
37000
37001         avoid gcc warnings about unused macro definitions
37002         * lib/readtokens.c (STREQ): Remove unused definition.
37003         * lib/xmalloc.c (SIZE_MAX): Likewise.
37004         * lib/openat-die.c (N_): Likewise.
37005         * lib/mountlist.c (SIZE_MAX): Remove definition.
37006         Instead, include <stdint.h>.
37007         * lib/readutmp.c: Likewise.
37008         * modules/readutmp (Depends-on): Add stdint.
37009         * modules/mountlist (Depends-on): Add stdint.
37010         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37011
37012 2009-03-10  Bruno Haible  <bruno@clisp.org>
37013
37014         Tests for module 'mbmemcasecoll'.
37015         * modules/mbmemcasecoll-tests: New file.
37016         * tests/test-mbmemcasecoll1.sh: New file.
37017         * tests/test-mbmemcasecoll2.sh: New file.
37018         * tests/test-mbmemcasecoll3.sh: New file.
37019         * tests/test-mbmemcasecoll.c: New file.
37020
37021         New module 'mbmemcasecoll'.
37022         * lib/mbmemcasecoll.h: New file.
37023         * lib/mbmemcasecoll.c: New file.
37024         * modules/mbmemcasecoll: New file.
37025
37026         * tests/test-mbmemcasecmp.h: New file, extracted from
37027         tests/test-mbmemcasecmp.c.
37028         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37029         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37030         (main): Update.
37031         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37032
37033 2009-03-09  Bruno Haible  <bruno@clisp.org>
37034
37035         Tests for module 'mbmemcasecmp'.
37036         * modules/mbmemcasecmp-tests: New file.
37037         * tests/test-mbmemcasecmp1.sh: New file.
37038         * tests/test-mbmemcasecmp2.sh: New file.
37039         * tests/test-mbmemcasecmp3.sh: New file.
37040         * tests/test-mbmemcasecmp.c: New file.
37041
37042         New module 'mbmemcasecmp'.
37043         * lib/mbmemcasecmp.h: New file.
37044         * lib/mbmemcasecmp.c: New file.
37045         * modules/mbmemcasecmp: New file.
37046
37047 2009-03-09  Bruno Haible  <bruno@clisp.org>
37048
37049         Tests for module 'unicase/ulc-casecoll'.
37050         * modules/unicase/ulc-casecoll-tests: New file.
37051         * tests/unicase/test-ulc-casecoll1.sh: New file.
37052         * tests/unicase/test-ulc-casecoll2.sh: New file.
37053         * tests/unicase/test-ulc-casecoll.c: New file.
37054
37055         New module 'unicase/ulc-casecoll'.
37056         * lib/unicase.h (ulc_casecoll): New declaration.
37057         * lib/unicase/ulc-casecoll.c: New file.
37058         * modules/unicase/ulc-casecoll: New file.
37059
37060         New module 'unicase/ulc-casexfrm'.
37061         * lib/unicase.h (ulc_casexfrm): New declaration.
37062         * lib/unicase/ulc-casexfrm.c: New file.
37063         * modules/unicase/ulc-casexfrm: New file.
37064
37065 2009-03-09  Bruno Haible  <bruno@clisp.org>
37066
37067         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37068         invocations.
37069
37070         * m4/mbscasecmp.m4: Remove file.
37071         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37072         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37073
37074         * m4/mbscasestr.m4: Remove file.
37075         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37076         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37077
37078         * m4/mbschr.m4: Remove file.
37079         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37080         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37081
37082         * m4/mbscspn.m4: Remove file.
37083         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37084         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37085
37086         * m4/mbslen.m4: Remove file.
37087         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37088         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37089
37090         * m4/mbsncasecmp.m4: Remove file.
37091         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37092         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37093
37094         * m4/mbsnlen.m4: Remove file.
37095         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37096         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37097
37098         * m4/mbspbrk.m4: Remove file.
37099         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37100         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37101
37102         * m4/mbspcasecmp.m4: Remove file.
37103         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37104         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37105
37106         * m4/mbsrchr.m4: Remove file.
37107         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37108         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37109
37110         * m4/mbssep.m4: Remove file.
37111         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37112         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37113
37114         * m4/mbsspn.m4: Remove file.
37115         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37116         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37117
37118         * m4/mbsstr.m4: Remove file.
37119         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37120         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37121
37122         * m4/mbstok_r.m4: Remove file.
37123         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37124         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37125
37126         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37127
37128         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37129         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37130
37131         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37132
37133 2009-03-08  Bruno Haible  <bruno@clisp.org>
37134
37135         Tests for module 'unicase/ulc-casecmp'.
37136         * modules/unicase/ulc-casecmp-tests: New file.
37137         * tests/unicase/test-ulc-casecmp1.sh: New file.
37138         * tests/unicase/test-ulc-casecmp2.sh: New file.
37139         * tests/unicase/test-ulc-casecmp.c: New file.
37140
37141         New module 'unicase/ulc-casecmp'.
37142         * lib/unicase.h (ulc_casecmp): New declaration.
37143         * lib/unicase/ulc-casecmp.c: New file.
37144         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37145         'const SRC_UNIT *'.
37146         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37147         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37148         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37149         * modules/unicase/ulc-casecmp: New file.
37150
37151         Tests for module 'unicase/u32-is-cased'.
37152         * modules/unicase/u32-is-cased-tests: New file.
37153         * tests/unicase/test-u32-is-cased.c: New file.
37154
37155         Tests for module 'unicase/u16-is-cased'.
37156         * modules/unicase/u16-is-cased-tests: New file.
37157         * tests/unicase/test-u16-is-cased.c: New file.
37158
37159         Tests for module 'unicase/u8-is-cased'.
37160         * modules/unicase/u8-is-cased-tests: New file.
37161         * tests/unicase/test-u8-is-cased.c: New file.
37162         * tests/unicase/test-is-cased.h: New file.
37163
37164         New module 'unicase/u32-is-cased'.
37165         * lib/unicase/u32-is-cased.c: New file.
37166         * modules/unicase/u32-is-cased: New file.
37167
37168         New module 'unicase/u16-is-cased'.
37169         * lib/unicase/u16-is-cased.c: New file.
37170         * modules/unicase/u16-is-cased: New file.
37171
37172         New module 'unicase/u8-is-cased'.
37173         * lib/unicase/u8-is-cased.c: New file.
37174         * lib/unicase/u-is-cased.h: New file.
37175         * modules/unicase/u8-is-cased: New file.
37176
37177         Tests for module 'unicase/u32-is-casefolded'.
37178         * modules/unicase/u32-is-casefolded-tests: New file.
37179         * tests/unicase/test-u32-is-casefolded.c: New file.
37180
37181         Tests for module 'unicase/u16-is-casefolded'.
37182         * modules/unicase/u16-is-casefolded-tests: New file.
37183         * tests/unicase/test-u16-is-casefolded.c: New file.
37184
37185         Tests for module 'unicase/u8-is-casefolded'.
37186         * modules/unicase/u8-is-casefolded-tests: New file.
37187         * tests/unicase/test-u8-is-casefolded.c: New file.
37188         * tests/unicase/test-is-casefolded.h: New file.
37189
37190         New module 'unicase/u32-is-casefolded'.
37191         * lib/unicase/u32-is-casefolded.c: New file.
37192         * modules/unicase/u32-is-casefolded: New file.
37193
37194         New module 'unicase/u16-is-casefolded'.
37195         * lib/unicase/u16-is-casefolded.c: New file.
37196         * modules/unicase/u16-is-casefolded: New file.
37197
37198         New module 'unicase/u8-is-casefolded'.
37199         * lib/unicase/u8-is-casefolded.c: New file.
37200         * modules/unicase/u8-is-casefolded: New file.
37201
37202         Tests for module 'unicase/u32-is-titlecase'.
37203         * modules/unicase/u32-is-titlecase-tests: New file.
37204         * tests/unicase/test-u32-is-titlecase.c: New file.
37205
37206         Tests for module 'unicase/u16-is-titlecase'.
37207         * modules/unicase/u16-is-titlecase-tests: New file.
37208         * tests/unicase/test-u16-is-titlecase.c: New file.
37209
37210         Tests for module 'unicase/u8-is-titlecase'.
37211         * modules/unicase/u8-is-titlecase-tests: New file.
37212         * tests/unicase/test-u8-is-titlecase.c: New file.
37213         * tests/unicase/test-is-titlecase.h: New file.
37214
37215         New module 'unicase/u32-is-titlecase'.
37216         * lib/unicase/u32-is-titlecase.c: New file.
37217         * modules/unicase/u32-is-titlecase: New file.
37218
37219         New module 'unicase/u16-is-titlecase'.
37220         * lib/unicase/u16-is-titlecase.c: New file.
37221         * modules/unicase/u16-is-titlecase: New file.
37222
37223         New module 'unicase/u8-is-titlecase'.
37224         * lib/unicase/u8-is-titlecase.c: New file.
37225         * modules/unicase/u8-is-titlecase: New file.
37226
37227         Tests for module 'unicase/u32-is-lowercase'.
37228         * modules/unicase/u32-is-lowercase-tests: New file.
37229         * tests/unicase/test-u32-is-lowercase.c: New file.
37230
37231         Tests for module 'unicase/u16-is-lowercase'.
37232         * modules/unicase/u16-is-lowercase-tests: New file.
37233         * tests/unicase/test-u16-is-lowercase.c: New file.
37234
37235         Tests for module 'unicase/u8-is-lowercase'.
37236         * modules/unicase/u8-is-lowercase-tests: New file.
37237         * tests/unicase/test-u8-is-lowercase.c: New file.
37238         * tests/unicase/test-is-lowercase.h: New file.
37239
37240         New module 'unicase/u32-is-lowercase'.
37241         * lib/unicase/u32-is-lowercase.c: New file.
37242         * modules/unicase/u32-is-lowercase: New file.
37243
37244         New module 'unicase/u16-is-lowercase'.
37245         * lib/unicase/u16-is-lowercase.c: New file.
37246         * modules/unicase/u16-is-lowercase: New file.
37247
37248         New module 'unicase/u8-is-lowercase'.
37249         * lib/unicase/u8-is-lowercase.c: New file.
37250         * modules/unicase/u8-is-lowercase: New file.
37251
37252         Tests for module 'unicase/u32-is-uppercase'.
37253         * modules/unicase/u32-is-uppercase-tests: New file.
37254         * tests/unicase/test-u32-is-uppercase.c: New file.
37255
37256         Tests for module 'unicase/u16-is-uppercase'.
37257         * modules/unicase/u16-is-uppercase-tests: New file.
37258         * tests/unicase/test-u16-is-uppercase.c: New file.
37259
37260         Tests for module 'unicase/u8-is-uppercase'.
37261         * modules/unicase/u8-is-uppercase-tests: New file.
37262         * tests/unicase/test-u8-is-uppercase.c: New file.
37263         * tests/unicase/test-is-uppercase.h: New file.
37264
37265         New module 'unicase/u32-is-uppercase'.
37266         * lib/unicase/u32-is-uppercase.c: New file.
37267         * modules/unicase/u32-is-uppercase: New file.
37268
37269         New module 'unicase/u16-is-uppercase'.
37270         * lib/unicase/u16-is-uppercase.c: New file.
37271         * modules/unicase/u16-is-uppercase: New file.
37272
37273         New module 'unicase/u8-is-uppercase'.
37274         * lib/unicase/u8-is-uppercase.c: New file.
37275         * modules/unicase/u8-is-uppercase: New file.
37276
37277         New module 'unicase/u32-is-invariant'.
37278         * lib/unicase/u32-is-invariant.c: New file.
37279         * modules/unicase/u32-is-invariant: New file.
37280
37281         New module 'unicase/u16-is-invariant'.
37282         * lib/unicase/u16-is-invariant.c: New file.
37283         * modules/unicase/u16-is-invariant: New file.
37284
37285         New module 'unicase/u8-is-invariant'.
37286         * lib/unicase/u8-is-invariant.c: New file.
37287         * lib/unicase/invariant.h: New file.
37288         * lib/unicase/u-is-invariant.h: New file.
37289         * modules/unicase/u8-is-invariant: New file.
37290
37291         Tests for module 'unicase/u32-casecoll'.
37292         * modules/unicase/u32-casecoll-tests: New file.
37293         * tests/unicase/test-u32-casecoll.c: New file.
37294
37295         Tests for module 'unicase/u16-casecoll'.
37296         * modules/unicase/u16-casecoll-tests: New file.
37297         * tests/unicase/test-u16-casecoll.c: New file.
37298
37299         Tests for module 'unicase/u8-casecoll'.
37300         * modules/unicase/u8-casecoll-tests: New file.
37301         * tests/unicase/test-u8-casecoll.c: New file.
37302
37303         New module 'unicase/u32-casecoll'.
37304         * lib/unicase/u32-casecoll.c: New file.
37305         * modules/unicase/u32-casecoll: New file.
37306
37307         New module 'unicase/u16-casecoll'.
37308         * lib/unicase/u16-casecoll.c: New file.
37309         * modules/unicase/u16-casecoll: New file.
37310
37311         New module 'unicase/u8-casecoll'.
37312         * lib/unicase/u8-casecoll.c: New file.
37313         * lib/unicase/u-casecoll.h: New file.
37314         * modules/unicase/u8-casecoll: New file.
37315
37316         New module 'unicase/u32-casexfrm'.
37317         * lib/unicase/u32-casexfrm.c: New file.
37318         * modules/unicase/u32-casexfrm: New file.
37319
37320         New module 'unicase/u16-casexfrm'.
37321         * lib/unicase/u16-casexfrm.c: New file.
37322         * modules/unicase/u16-casexfrm: New file.
37323
37324         New module 'unicase/u8-casexfrm'.
37325         * lib/unicase/u8-casexfrm.c: New file.
37326         * lib/unicase/u-casexfrm.h: New file.
37327         * modules/unicase/u8-casexfrm: New file.
37328
37329         Tests for module 'unicase/u32-casecmp'.
37330         * modules/unicase/u32-casecmp-tests: New file.
37331         * tests/unicase/test-u32-casecmp.c: New file.
37332
37333         Tests for module 'unicase/u16-casecmp'.
37334         * modules/unicase/u16-casecmp-tests: New file.
37335         * tests/unicase/test-u16-casecmp.c: New file.
37336
37337         Tests for module 'unicase/u8-casecmp'.
37338         * modules/unicase/u8-casecmp-tests: New file.
37339         * tests/unicase/test-u8-casecmp.c: New file.
37340         * tests/unicase/test-casecmp.h: New file.
37341
37342         New module 'unicase/u32-casecmp'.
37343         * lib/unicase/u32-casecmp.c: New file.
37344         * modules/unicase/u32-casecmp: New file.
37345
37346         New module 'unicase/u16-casecmp'.
37347         * lib/unicase/u16-casecmp.c: New file.
37348         * modules/unicase/u16-casecmp: New file.
37349
37350         New module 'unicase/u8-casecmp'.
37351         * lib/unicase/u8-casecmp.c: New file.
37352         * lib/unicase/u-casecmp.h: New file.
37353         * modules/unicase/u8-casecmp: New file.
37354
37355         Tests for module 'unicase/u32-casefold'.
37356         * modules/unicase/u32-casefold-tests: New file.
37357         * tests/unicase/test-u32-casefold.c: New file.
37358
37359         Tests for module 'unicase/u16-casefold'.
37360         * modules/unicase/u16-casefold-tests: New file.
37361         * tests/unicase/test-u16-casefold.c: New file.
37362
37363         Tests for module 'unicase/u8-casefold'.
37364         * modules/unicase/u8-casefold-tests: New file.
37365         * tests/unicase/test-u8-casefold.c: New file.
37366
37367         New module 'unicase/u32-casefold'.
37368         * lib/unicase/u32-casefold.c: New file.
37369         * modules/unicase/u32-casefold: New file.
37370
37371         New module 'unicase/u16-casefold'.
37372         * lib/unicase/u16-casefold.c: New file.
37373         * modules/unicase/u16-casefold: New file.
37374
37375         New module 'unicase/u8-casefold'.
37376         * lib/unicase/u8-casefold.c: New file.
37377         * lib/unicase/u-casefold.h: New file.
37378         * modules/unicase/u8-casefold: New file.
37379
37380         New module 'unicase/tocasefold'.
37381         * lib/unicase/casefold.h: New file.
37382         * lib/unicase/tocasefold.c: New file.
37383         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37384         * modules/unicase/tocasefold: New file.
37385
37386         Tests for module 'unicase/u32-totitle'.
37387         * modules/unicase/u32-totitle-tests: New file.
37388         * tests/unicase/test-u32-totitle.c: New file.
37389
37390         Tests for module 'unicase/u16-totitle'.
37391         * modules/unicase/u16-totitle-tests: New file.
37392         * tests/unicase/test-u16-totitle.c: New file.
37393
37394         Tests for module 'unicase/u8-totitle'.
37395         * modules/unicase/u8-totitle-tests: New file.
37396         * tests/unicase/test-u8-totitle.c: New file.
37397
37398         New module 'unicase/u32-totitle'.
37399         * lib/unicase/u32-totitle.c: New file.
37400         * modules/unicase/u32-totitle: New file.
37401
37402         New module 'unicase/u16-totitle'.
37403         * lib/unicase/u16-totitle.c: New file.
37404         * modules/unicase/u16-totitle: New file.
37405
37406         New module 'unicase/u8-totitle'.
37407         * lib/unicase/u8-totitle.c: New file.
37408         * lib/unicase/u-totitle.h: New file.
37409         * modules/unicase/u8-totitle: New file.
37410
37411         Tests for module 'unicase/u32-tolower'.
37412         * modules/unicase/u32-tolower-tests: New file.
37413         * tests/unicase/test-u32-tolower.c: New file.
37414
37415         Tests for module 'unicase/u16-tolower'.
37416         * modules/unicase/u16-tolower-tests: New file.
37417         * tests/unicase/test-u16-tolower.c: New file.
37418
37419         Tests for module 'unicase/u8-tolower'.
37420         * modules/unicase/u8-tolower-tests: New file.
37421         * tests/unicase/test-u8-tolower.c: New file.
37422
37423         New module 'unicase/u32-tolower'.
37424         * lib/unicase/u32-tolower.c: New file.
37425         * modules/unicase/u32-tolower: New file.
37426
37427         New module 'unicase/u16-tolower'.
37428         * lib/unicase/u16-tolower.c: New file.
37429         * modules/unicase/u16-tolower: New file.
37430
37431         New module 'unicase/u8-tolower'.
37432         * lib/unicase/u8-tolower.c: New file.
37433         * modules/unicase/u8-tolower: New file.
37434
37435         Tests for module 'unicase/u32-toupper'.
37436         * modules/unicase/u32-toupper-tests: New file.
37437         * tests/unicase/test-u32-toupper.c: New file.
37438
37439         Tests for module 'unicase/u16-toupper'.
37440         * modules/unicase/u16-toupper-tests: New file.
37441         * tests/unicase/test-u16-toupper.c: New file.
37442
37443         Tests for module 'unicase/u8-toupper'.
37444         * modules/unicase/u8-toupper-tests: New file.
37445         * tests/unicase/test-u8-toupper.c: New file.
37446
37447         New module 'unicase/u32-toupper'.
37448         * lib/unicase/u32-toupper.c: New file.
37449         * modules/unicase/u32-toupper: New file.
37450
37451         New module 'unicase/u16-toupper'.
37452         * lib/unicase/u16-toupper.c: New file.
37453         * modules/unicase/u16-toupper: New file.
37454
37455         New module 'unicase/u8-toupper'.
37456         * lib/unicase/u8-toupper.c: New file.
37457         * modules/unicase/u8-toupper: New file.
37458
37459         New module 'unicase/u32-casemap'.
37460         * lib/unicase/u32-casemap.c: New file.
37461         * modules/unicase/u32-casemap: New file.
37462
37463         New module 'unicase/u16-casemap'.
37464         * lib/unicase/u16-casemap.c: New file.
37465         * modules/unicase/u16-casemap: New file.
37466
37467         New module 'unicase/u8-casemap'.
37468         * lib/unicase/unicasemap.h: New file.
37469         * lib/unicase/u8-casemap.c: New file.
37470         * lib/unicase/u-casemap.h: New file.
37471         * modules/unicase/u8-casemap: New file.
37472
37473         New module 'unicase/special-casing'.
37474         * lib/unicase/special-casing.h: New file.
37475         * lib/unicase/special-casing.c: New file.
37476         * lib/unicase/special-casing-table.gperf: New file, generated by
37477         gen-uni-tables.c.
37478         * modules/unicase/special-casing: New file.
37479
37480         Tests for module 'unicase/locale-language'.
37481         * modules/unicase/locale-language-tests: New file.
37482         * tests/unicase/test-locale-language.sh: New file.
37483         * tests/unicase/test-locale-language.c: New file.
37484
37485         New module 'unicase/locale-language'.
37486         * lib/unicase/locale-language.c: New file.
37487         * lib/unicase/locale-languages.gperf: New file.
37488         * modules/unicase/locale-language: New file.
37489
37490         Generate more tables for case conversion and case folding.
37491         * lib/gen-uni-tables.c (SCC_*): New enum items.
37492         (struct special_casing_rule): New type.
37493         (casing_rules, num_casing_rules, allocated_casing_rules): New
37494         variables.
37495         (add_casing_rule, fill_casing_rules): New functions.
37496         (struct casefold_rule): New type.
37497         (casefolding_rules, num_casefolding_rules,
37498         allocated_casefolding_rules): New variables.
37499         (fill_casefolding_rules): New function.
37500         (unicode_casefold): New variable.
37501         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37502         sort_casing_rules, output_casing_rules): New functions.
37503         (main): Accept to more arguments: SpecialCasing.txt and
37504         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37505         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37506         Output mapping for casefolding.
37507
37508         * lib/unicase.h: Include stdbool.h, uninorm.h.
37509         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37510         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37511         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37512         arguments.
37513         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37514         resultp arguments.
37515         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37516         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37517         resultp arguments.
37518         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37519         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37520         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37521         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37522         declarations.
37523         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37524
37525 2009-03-08  Bruno Haible  <bruno@clisp.org>
37526
37527         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37528         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37529         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37530         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37531
37532 2009-03-07  Bruno Haible  <bruno@clisp.org>
37533
37534         Adjust u*_normcmp, u*_normcoll API.
37535         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37536         u16_normcoll, u32_normcoll): Change failure conventions.
37537         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37538         errno and return -1.
37539         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37540
37541 2009-03-07  Bruno Haible  <bruno@clisp.org>
37542
37543         Tests for module 'uninorm/u32-normcoll'.
37544         * modules/uninorm/u32-normcoll-tests: New file.
37545         * tests/uninorm/test-u32-normcoll.c: New file.
37546
37547         Tests for module 'uninorm/u16-normcoll'.
37548         * modules/uninorm/u16-normcoll-tests: New file.
37549         * tests/uninorm/test-u16-normcoll.c: New file.
37550
37551         Tests for module 'uninorm/u8-normcoll'.
37552         * modules/uninorm/u8-normcoll-tests: New file.
37553         * tests/uninorm/test-u8-normcoll.c: New file.
37554
37555 2009-03-07  Bruno Haible  <bruno@clisp.org>
37556
37557         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37558         tests/uninorm/test-u32-normcmp.c.
37559         * tests/uninorm/test-u32-normcmp.c: Include it.
37560         (test_nonascii): New function, extracted from main. Add some more
37561         tests.
37562         (main): Invoke test_ascii and test_nonascii.
37563         * modules/uninorm/u32-normcmp-tests (Files): Add
37564         tests/uninorm/test-u32-normcmp.h.
37565         (Depends-on): Remove uninorm/u32-normcmp.
37566
37567         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37568         tests/uninorm/test-u16-normcmp.c.
37569         * tests/uninorm/test-u16-normcmp.c: Include it.
37570         (test_nonascii): New function, extracted from main. Add some more
37571         tests.
37572         (main): Invoke test_ascii and test_nonascii.
37573         * modules/uninorm/u16-normcmp-tests (Files): Add
37574         tests/uninorm/test-u16-normcmp.h.
37575         (Depends-on): Remove uninorm/u16-normcmp.
37576
37577         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37578         tests/uninorm/test-u8-normcmp.c.
37579         * tests/uninorm/test-u8-normcmp.c: Include it.
37580         (test_nonascii): New function, extracted from main. Add some more
37581         tests.
37582         (main): Invoke test_ascii and test_nonascii.
37583         * modules/uninorm/u8-normcmp-tests (Files): Add
37584         tests/uninorm/test-u8-normcmp.h.
37585         (Depends-on): Remove uninorm/u8-normcmp.
37586
37587 2009-03-07  Bruno Haible  <bruno@clisp.org>
37588
37589         New module 'uninorm/u32-normcoll'.
37590         * lib/uninorm/u32-normcoll.c: New file.
37591         * modules/uninorm/u32-normcoll: New file.
37592
37593         New module 'uninorm/u16-normcoll'.
37594         * lib/uninorm/u16-normcoll.c: New file.
37595         * modules/uninorm/u16-normcoll: New file.
37596
37597         New module 'uninorm/u8-normcoll'.
37598         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37599         declarations.
37600         * lib/uninorm/u8-normcoll.c: New file.
37601         * lib/uninorm/u-normcoll.h: New file.
37602         * modules/uninorm/u8-normcoll: New file.
37603
37604         New module 'uninorm/u32-normxfrm'.
37605         * lib/uninorm/u32-normxfrm.c: New file.
37606         * modules/uninorm/u32-normxfrm: New file.
37607
37608         New module 'uninorm/u16-normxfrm'.
37609         * lib/uninorm/u16-normxfrm.c: New file.
37610         * modules/uninorm/u16-normxfrm: New file.
37611
37612         New module 'uninorm/u8-normxfrm'.
37613         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37614         declarations.
37615         * lib/uninorm/u8-normxfrm.c: New file.
37616         * lib/uninorm/u-normxfrm.h: New file.
37617         * modules/uninorm/u8-normxfrm: New file.
37618
37619 2009-03-07  Bruno Haible  <bruno@clisp.org>
37620
37621         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37622         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37623         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37624
37625 2009-03-07  Bruno Haible  <bruno@clisp.org>
37626
37627         New module 'memxfrm'.
37628         * lib/memxfrm.h: New file.
37629         * lib/memxfrm.c: New file.
37630         * modules/memxfrm: New file.
37631
37632 2009-03-07  Bruno Haible  <bruno@clisp.org>
37633
37634         New module 'memcmp2'.
37635         * lib/memcmp2.h: New file.
37636         * lib/memcmp2.c: New file.
37637         * modules/memcmp2: New file.
37638
37639 2009-03-07  Bruno Haible  <bruno@clisp.org>
37640
37641         Tests for module 'uninorm/decomposing-form'.
37642         * modules/uninorm/decomposing-form-tests: New file.
37643         * tests/uninorm/test-decomposing-form.c: New file.
37644
37645         New module 'uninorm/decomposing-form'.
37646         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37647         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37648         Add 'decomposing_variant' field.
37649         * lib/uninorm/decomposing-form.c: New file.
37650         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37651         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37652         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37653         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37654         * modules/uninorm/decomposing-form: New file.
37655         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37656         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37657
37658 2009-03-07  Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37661         strings.
37662
37663 2009-03-06  Bruno Haible  <bruno@clisp.org>
37664
37665         Tests for module 'uninorm/u32-normcmp'.
37666         * tests/uninorm/test-u32-normcmp.c: New file.
37667         * modules/uninorm/u32-normcmp-tests: New file.
37668
37669         Tests for module 'uninorm/u16-normcmp'.
37670         * tests/uninorm/test-u16-normcmp.c: New file.
37671         * modules/uninorm/u16-normcmp-tests: New file.
37672
37673         Tests for module 'uninorm/u8-normcmp'.
37674         * tests/uninorm/test-u8-normcmp.c: New file.
37675         * modules/uninorm/u8-normcmp-tests: New file.
37676
37677         New module 'uninorm/u32-normcmp'.
37678         * lib/uninorm/u32-normcmp.c: New file.
37679         * modules/uninorm/u32-normcmp: New file.
37680
37681         New module 'uninorm/u16-normcmp'.
37682         * lib/uninorm/u16-normcmp.c: New file.
37683         * modules/uninorm/u16-normcmp: New file.
37684
37685         New module 'uninorm/u8-normcmp'.
37686         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37687         declarations.
37688         * lib/uninorm/u8-normcmp.c: New file.
37689         * lib/uninorm/u-normcmp.h: New file.
37690         * modules/uninorm/u8-normcmp: New file.
37691
37692 2009-03-06  Bruno Haible  <bruno@clisp.org>
37693
37694         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37695         Reported by Eric Blake.
37696
37697 2009-03-06  Eric Blake  <ebb9@byu.net>
37698             Bruno Haible  <bruno@clisp.org>
37699
37700         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37701         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37702         condition.
37703         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37704         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37705         condition.
37706         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37707
37708 2009-03-06  Eric Blake  <ebb9@byu.net>
37709
37710         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37711         to avoid compiler warnings.
37712         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37713
37714 2009-03-05  Bruno Haible  <bruno@clisp.org>
37715
37716         * tests/test-ftell.c (main): Disable test beyond end of file on
37717         FreeMiNT.
37718         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37719
37720 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37721
37722         * lib/filevercmp.c: Move hidden files up in ordering.
37723         * tests/test-filevercmp.c: Add tests for hidden files.
37724
37725 2009-03-04  Bruno Haible  <bruno@clisp.org>
37726
37727         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37728         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37729         AM_CFLAGS.
37730         Reported by Simon Josefsson.
37731
37732 2009-03-03  Bruno Haible  <bruno@clisp.org>
37733
37734         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37735         Reported by Simon Josefsson.
37736
37737         * doc/ld-version-script.texi: Update node reference.
37738
37739 2009-03-03  Bruno Haible  <bruno@clisp.org>
37740
37741         * modules/visibility (License): Change to 'unlimited'.
37742         Suggested by Simon Josefsson.
37743
37744 2009-03-03  Jim Meyering  <meyering@redhat.com>
37745
37746         unlinkdir: cannot_unlink_dir may modify process state
37747         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37748         it's neither thread-safe nor appropriate for use in a library.
37749
37750 2009-03-03  Eric Blake  <ebb9@byu.net>
37751
37752         test-closein: silence test under Darwin
37753         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37754         care if it dies from EPIPE or EBADF.
37755
37756 2009-03-03  Bruno Haible  <bruno@clisp.org>
37757
37758         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37759         earlier.
37760         * doc/visibility.texi: Fix @node and @section.
37761
37762 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37763
37764         * doc/gnulib.texi: Link to sections for ld version script and
37765         visibility.
37766         * doc/visibility.texi: Add @node and @section.
37767         * modules/ld-version-script: New module.
37768         * m4/ld-version-script.m4: New file.
37769         * doc/ld-version-script.texi: New file.
37770
37771 2009-03-02  David Lutterkort  <lutter@redhat.com>
37772
37773         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37775
37776 2009-03-02  Bruno Haible  <bruno@clisp.org>
37777
37778         * doc/visibility.texi: Mention libtool's -export-symbols option.
37779
37780 2009-03-02  Jim Meyering  <meyering@redhat.com>
37781
37782         announce-gen: new option: --no-print-checksums
37783         * build-aux/announce-gen (usage): Describe it.
37784         (print_checksums): Print a newline here, not in the [*] footnote.
37785         (main): Honor it.
37786
37787 2009-03-01  Bruno Haible  <bruno@clisp.org>
37788
37789         Use socklen_t in the native Windows replacements prototypes.
37790         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37791         instead of 'int'.
37792         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37793         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37794         * modules/getsockopt (Depends-on): Add socklen.
37795         * modules/setsockopt (Depends-on): Add socklen.
37796
37797 2009-03-01  Bruno Haible  <bruno@clisp.org>
37798
37799         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37800         least 4.2.
37801
37802 2009-03-01  Eric Blake  <ebb9@byu.net>
37803             Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37806         error messages.
37807         * lib/wait-process.c (wait_subprocess): Omit error message about
37808         deadly signal sent to the child of termsigp != NULL.
37809
37810 2009-03-01  Eric Blake  <ebb9@byu.net>
37811
37812         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37813
37814 2009-03-01  Bruno Haible  <bruno@clisp.org>
37815
37816         Avoid a gcc warning.
37817         * tests/test-sched.c (b): Make global.
37818         Reported by Eric Blake.
37819
37820 2009-01-19  Martin Lambers  <marlam@marlam.de>
37821
37822         Provide POSIX semantics for socket timeout options on W32.
37823         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37824         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37825         * modules/setsockopt: Depend on sys_time module for struct timeval.
37826         * modules/getsockopt: Depend on sys_time module for struct timeval.
37827
37828 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37829
37830         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37831         __USE_GNU, for consistency with netdb.in.h.
37832         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37833
37834 2009-03-01  Bruno Haible  <bruno@clisp.org>
37835
37836         More support for FreeMiNT.
37837         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37838         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37839
37840 2009-03-01  Bruno Haible  <bruno@clisp.org>
37841
37842         More support for FreeMiNT.
37843         * lib/fpurge.c (fpurge): Correct last commit.
37844         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37845
37846 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37847
37848         Fix unportable awk script in vc-list-files.
37849         * build-aux/vc-list-files: In the replacement awk script, use
37850         substr with a second argument of 1, not zero.
37851         Report by Simon Josefsson.
37852
37853 2009-02-28  Bruno Haible  <bruno@clisp.org>
37854
37855         More support for FreeMiNT.
37856         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37857         to FreeMiNT today.
37858         * lib/fwriting.c (fwriting): Likewise.
37859         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37860
37861 2009-02-28  Bruno Haible  <bruno@clisp.org>
37862
37863         * tests/test-freadseek.c (main): Disable test beyond end of file on
37864         FreeMiNT.
37865         * tests/test-ftello.c (main): Likewise.
37866         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37867
37868 2009-02-28  Bruno Haible  <bruno@clisp.org>
37869
37870         Add tentative support for FreeMiNT.
37871         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37872         * lib/fpurge.c (fpurge): Likewise.
37873         * lib/freadable.c (freadable): Likewise.
37874         * lib/freading.c (freading): Likewise.
37875         * lib/freadptr.c (freadptr): Likewise.
37876         * lib/freadseek.c (freadptrinc): Likewise.
37877         * lib/fseeko.c (rpl_fseeko): Likewise.
37878         * lib/fseterr.c (fseterr): Likewise.
37879         * lib/fwritable.c (fwritable): Likewise.
37880         * lib/fwriting.c (fwriting): Likewise.
37881         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37882         Hourihane.
37883         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37884
37885 2009-02-28  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37888         SIGCHLD.
37889         Reported by Jim Meyering.
37890
37891 2009-02-28  Bruno Haible  <bruno@clisp.org>
37892
37893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37894         Mention the results of these tests on various platforms.
37895         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37896         order.
37897         * doc/posix-functions/printf.texi: Likewise.
37898         * doc/posix-functions/snprintf.texi: Likewise.
37899         * doc/posix-functions/sprintf.texi: Likewise.
37900         * doc/posix-functions/vfprintf.texi: Likewise.
37901         * doc/posix-functions/vprintf.texi: Likewise.
37902         * doc/posix-functions/vsnprintf.texi: Likewise.
37903         * doc/posix-functions/vsprintf.texi: Likewise.
37904         * doc/glibc-functions/obstack_printf.texi: Likewise.
37905         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37906
37907 2009-02-28  Bruno Haible  <bruno@clisp.org>
37908
37909         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37910         Reported by Loïc Minier <lool@dooz.org>.
37911
37912 2009-02-27  Bruno Haible  <bruno@clisp.org>
37913
37914         * gnulib-tool (func_import): Make the sed expression used to create the
37915         sed script for updating the .gitignore file POSIX compliant.
37916         Reported by Eric Blake.
37917
37918 2009-02-27  Bruno Haible  <bruno@clisp.org>
37919
37920         * gnulib-tool (sed): Don't alias as "sed --posix".
37921         Reported by Eric Blake.
37922
37923 2009-02-27  Bruno Haible  <bruno@clisp.org>
37924
37925         Avoid test link errors.
37926         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37927         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37928         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37929         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37931
37932 2009-02-27  Bruno Haible  <bruno@clisp.org>
37933
37934         Avoid spurious "(cached)" in configure output.
37935         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37936         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37937         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37938         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37939         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37940         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37941         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37942         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37943         Reported by Eric Blake.
37944
37945 2009-02-27  Eric Blake  <ebb9@byu.net>
37946
37947         printf: fix regression in previous patch
37948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37949
37950 2009-02-27  Bruno Haible  <bruno@clisp.org>
37951
37952         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37953         value.
37954         * lib/stdint.in.h: Likewise.
37955         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37956
37957 2009-02-27  Eric Blake  <ebb9@byu.net>
37958
37959         doc: mention more functions added in cygwin 1.7.0
37960         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37961         addition.
37962         * doc/posix-functions/open_wmemstream.texi: Likewise.
37963         * doc/posix-functions/wcsnlen.texi: Likewise.
37964         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37965         * doc/posix-functions/wcstod.texi: Likewise.
37966         * doc/posix-functions/wcstof.texi: Likewise.
37967         * doc/posix-functions/wcstoimax.texi: Likewise.
37968         * doc/posix-functions/wcstok.texi: Likewise.
37969         * doc/posix-functions/wcstoumax.texi: Likewise.
37970
37971         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37972         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37973         * doc/posix-functions/fprintf.texi: Update.
37974         * doc/posix-functions/printf.texi: Update.
37975         * doc/posix-functions/snprintf.texi: Update.
37976         * doc/posix-functions/sprintf.texi: Update.
37977         * doc/posix-functions/vfprintf.texi: Update.
37978         * doc/posix-functions/vprintf.texi: Update.
37979         * doc/posix-functions/vsnprintf.texi: Update.
37980         * doc/posix-functions/vsprintf.texi: Update.
37981         * doc/glibc-functions/obstack_printf.texi: Update.
37982         * doc/glibc-functions/obstack_vprintf.texi: Update.
37983
37984 2009-02-26  Eric Blake  <ebb9@byu.net>
37985
37986         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37987         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37988         compilation bug by using runtime conversion.
37989         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37990         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37991         * modules/ceill-tests (Files): Use nan.h.
37992         * modules/floorl-tests (Files): Likewise.
37993         * modules/frexpl-tests (Files): Likewise.
37994         * modules/isnanl-tests (Files): Likewise.
37995         * modules/ldexpl-tests (Files): Likewise.
37996         * modules/roundl-tests (Files): Likewise.
37997         * modules/truncl-tests (Files): Likewise.
37998         * tests/test-ceill.c (main): Use a working NaN.
37999         * tests/test-floorl.c (main): Likewise.
38000         * tests/test-frexpl.c (main): Likewise.
38001         * tests/test-isnan.c (test_long_double): Likewise.
38002         * tests/test-isnanl.h (main): Likewise.
38003         * tests/test-ldexpl.h (main): Likewise.
38004         * tests/test-roundl.h (main): Likewise.
38005         * tests/test-truncl.h (main): Likewise.
38006         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38007
38008 2009-02-26  Eric Blake  <ebb9@byu.net>
38009             Bruno Haible  <bruno@clisp.org>
38010
38011         Work around a *printf bug with %ls on Solaris.
38012         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38013         precision is specified, sprintf stops converting the wide string
38014         argument when the number of bytes that have been produced by this
38015         conversion equals or exceeds the precision.
38016         * doc/posix-functions/fprintf.texi: Update.
38017         * doc/posix-functions/printf.texi: Update.
38018         * doc/posix-functions/snprintf.texi: Update.
38019         * doc/posix-functions/sprintf.texi: Update.
38020         * doc/posix-functions/vfprintf.texi: Update.
38021         * doc/posix-functions/vprintf.texi: Update.
38022         * doc/posix-functions/vsnprintf.texi: Update.
38023         * doc/posix-functions/vsprintf.texi: Update.
38024         * doc/glibc-functions/obstack_printf.texi: Update.
38025         * doc/glibc-functions/obstack_vprintf.texi: Update.
38026
38027 2009-02-26  Eric Blake  <ebb9@byu.net>
38028
38029         stdlib: favor compiler check of random.h
38030         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38031         to avoid an ObjC random.h installed by Swarm.
38032
38033 2009-02-26  Bruno Haible  <bruno@clisp.org>
38034
38035         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38036         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38037         Reported by Gary V. Vaughan <gary@gnu.org>.
38038
38039 2009-02-26  Bruno Haible  <bruno@clisp.org>
38040
38041         Fix *printf behaviour regarding the %ls directive.
38042         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38043         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38044         NEED_PRINTF_DIRECTIVE_LS.
38045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38046         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38048         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38049         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38050         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38051         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38055         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38056         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38060         * doc/posix-functions/fprintf.texi: Update.
38061         * doc/posix-functions/printf.texi: Update.
38062         * doc/posix-functions/snprintf.texi: Update.
38063         * doc/posix-functions/sprintf.texi: Update.
38064         * doc/posix-functions/vfprintf.texi: Update.
38065         * doc/posix-functions/vprintf.texi: Update.
38066         * doc/posix-functions/vsnprintf.texi: Update.
38067         * doc/posix-functions/vsprintf.texi: Update.
38068         * doc/glibc-functions/obstack_printf.texi: Update.
38069         * doc/glibc-functions/obstack_vprintf.texi: Update.
38070         Reported by Eric Blake.
38071
38072 2009-02-25  Bruno Haible  <bruno@clisp.org>
38073
38074         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38075         with known value.
38076         Reported by Gary V. Vaughan <gary@gnu.org>.
38077
38078 2009-02-25  Bruno Haible  <bruno@clisp.org>
38079
38080         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38081         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38082         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38083         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38084         Reported by Gary V. Vaughan <gary@gnu.org>.
38085
38086 2009-02-25  Bruno Haible  <bruno@clisp.org>
38087
38088         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38089         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38090         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38091         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38092         Reported by Gary V. Vaughan <gary@gnu.org>.
38093
38094 2009-02-25  Eric Blake  <ebb9@byu.net>
38095
38096         tests: skip fseek/ftell tests if ungetc is broken
38097         * m4/ungetc.m4: New file.
38098         * modules/fseek-tests: Split test, so ungetc dependency is
38099         separate from rest of test.
38100         * modules/fseeko-tests: Likewise.
38101         * modules/ftell-tests: Likewise.
38102         * modules/ftello-tests: Likewise.
38103         * tests/test-fseek.c (main): Isolate ungetc dependency.
38104         * tests/test-fseeko.c (main): Likewise.
38105         * tests/test-ftell.c (main): Likewise.
38106         * tests/test-ftello.c (main): Likewise.
38107         * tests/test-fseek2.sh: New file.
38108         * tests/test-fseeko2.sh: Likewise.
38109         * tests/test-ftell2.sh: Likewise.
38110         * tests/test-ftello2.sh: Likewise.
38111
38112 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38113
38114         test-getaddrinfo: fix usage of skip return code 77
38115         * tests/test-gettaddrinfo.c: Return skip code 77 only
38116         for first occurance of skip (4x77 is not 77)
38117
38118 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38119
38120         strtod: avoid C99 decl-after-statement
38121         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38122
38123 2009-02-24  Eric Blake  <ebb9@byu.net>
38124
38125         strtod: detect HP-UX 11.31 bug
38126         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38127         Reported by Gary V. Vaughan.
38128
38129 2009-02-23  Bruno Haible  <bruno@clisp.org>
38130
38131         Fix invalid read past end of memory block.
38132         * lib/vasnprintf.c (DCHAR_SET): Define.
38133         (local_wcslen): Define only when needed.
38134         (local_strnlen, local_wcsnlen): New functions.
38135         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38136         directives that involve a conversion ourselves.
38137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38138         wcsnlen, mbrtowc, wcrtomb.
38139         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38140         * tests/test-vasprintf-posix.c (test_function): Likewise.
38141         * tests/test-snprintf-posix.h (test_function): Likewise.
38142         * tests/test-sprintf-posix.h (test_function): Likewise.
38143         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38144
38145 2009-02-22  Bruno Haible  <bruno@clisp.org>
38146
38147         Implement new clarified decomposition of Hangul syllables.
38148         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38149         of type LTV, return only a pairwise decomposition.
38150         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38151         Likewise.
38152         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38153         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38154         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38155
38156 2009-02-22  Bruno Haible  <bruno@clisp.org>
38157
38158         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38159         zero-length results and shrink excess allocated memory.
38160         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38161         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38162         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38163         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38164         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38165         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38166         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38167         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38168         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38169         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38170         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38171         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38172
38173 2009-02-21  Bruno Haible  <bruno@clisp.org>
38174
38175         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38176         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38177         spaces after a period. Put a space between a macro name and its
38178         argument list. Trivial rewordings.
38179         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38180         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38181         (main): Return 0 explicitly.
38182
38183 2009-02-21  Bruno Haible  <bruno@clisp.org>
38184
38185         Tests for module 'uninorm/filter'.
38186         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38187         * modules/uninorm/filter-tests: New file.
38188
38189         New module 'uninorm/filter'.
38190         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38191         uninorm_filter_flush, uninorm_filter_free): New declarations.
38192         * lib/uninorm/uninorm-filter.c: New file.
38193         * modules/uninorm/filter: New file.
38194
38195 2009-02-21  Bruno Haible  <bruno@clisp.org>
38196
38197         Tests for module 'uninorm/nfkc'.
38198         * tests/uninorm/test-nfkc.c: New file.
38199         * tests/uninorm/test-u8-nfkc.c: New file.
38200         * tests/uninorm/test-u16-nfkc.c: New file.
38201         * tests/uninorm/test-u32-nfkc.c: New file.
38202         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38203         * tests/uninorm/test-u32-nfkc-big.c: New file.
38204         * modules/uninorm/nfkc-tests: New file.
38205
38206         New module 'uninorm/nfkc'.
38207         * lib/uninorm/nfkc.c: New file.
38208         * modules/uninorm/nfkc: New file.
38209
38210         Tests for module 'uninorm/nfkd'.
38211         * tests/uninorm/test-nfkd.c: New file.
38212         * tests/uninorm/test-u8-nfkd.c: New file.
38213         * tests/uninorm/test-u16-nfkd.c: New file.
38214         * tests/uninorm/test-u32-nfkd.c: New file.
38215         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38216         * tests/uninorm/test-u32-nfkd-big.c: New file.
38217         * modules/uninorm/nfkd-tests: New file.
38218
38219         New module 'uninorm/nfkd'.
38220         * lib/uninorm/nfkd.c: New file.
38221         * modules/uninorm/nfkd: New file.
38222
38223         Tests for module 'uninorm/nfc'.
38224         * tests/uninorm/test-nfc.c: New file.
38225         * tests/uninorm/test-u8-nfc.c: New file.
38226         * tests/uninorm/test-u16-nfc.c: New file.
38227         * tests/uninorm/test-u32-nfc.c: New file.
38228         * tests/uninorm/test-u32-nfc-big.sh: New file.
38229         * tests/uninorm/test-u32-nfc-big.c: New file.
38230         * modules/uninorm/nfc-tests: New file.
38231
38232         New module 'uninorm/nfc'.
38233         * lib/uninorm/nfc.c: New file.
38234         * modules/uninorm/nfc: New file.
38235
38236         Tests for module 'uninorm/nfd'.
38237         * tests/uninorm/test-nfd.c: New file.
38238         * tests/uninorm/test-u8-nfd.c: New file.
38239         * tests/uninorm/test-u16-nfd.c: New file.
38240         * tests/uninorm/test-u32-nfd.c: New file.
38241         * tests/uninorm/test-u32-nfd-big.sh: New file.
38242         * tests/uninorm/test-u32-nfd-big.c: New file.
38243         * tests/uninorm/test-u32-normalize-big.h: New file.
38244         * tests/uninorm/test-u32-normalize-big.c: New file.
38245         * tests/uninorm/NormalizationTest.txt: New file, created from
38246         Unicode 5.1.0 NormalizationTest.txt.
38247         * modules/uninorm/nfd-tests: New file.
38248
38249         New module 'uninorm/nfd'.
38250         * lib/uninorm/nfd.c: New file.
38251         * modules/uninorm/nfd: New file.
38252
38253         New module 'uninorm/u32-normalize'.
38254         * lib/uninorm/u32-normalize.c: New file.
38255         * modules/uninorm/u32-normalize: New file.
38256
38257         New module 'uninorm/u16-normalize'.
38258         * lib/uninorm/u16-normalize.c: New file.
38259         * modules/uninorm/u16-normalize: New file.
38260
38261         New module 'uninorm/u8-normalize'.
38262         * lib/uninorm/u8-normalize.c: New file.
38263         * lib/uninorm/normalize-internal.h: New file.
38264         * lib/uninorm/u-normalize-internal.h: New file.
38265         * modules/uninorm/u8-normalize: New file.
38266
38267         New module 'uninorm/decompose-internal'.
38268         * lib/uninorm/decompose-internal.c: New file.
38269         * modules/uninorm/decompose-internal: New file.
38270
38271         Tests for module 'uninorm/composition'.
38272         * tests/uninorm/test-composition.c: New file.
38273         * modules/uninorm/composition-tests: New file.
38274
38275         New module 'uninorm/composition'.
38276         * lib/uninorm/composition.c: New file.
38277         * lib/uninorm/composition-table.gperf: New file, generated by
38278         gen-uni-tables.
38279         * modules/uninorm/composition: New file.
38280
38281         Tests for module 'uninorm/compat-decomposition'.
38282         * tests/uninorm/test-compat-decomposition.c: New file.
38283         * modules/uninorm/compat-decomposition-tests: New file.
38284
38285         New module 'uninorm/compat-decomposition'.
38286         * lib/uninorm/decompose-internal.h: New file.
38287         * lib/uninorm/compat-decomposition.c: New file.
38288         * modules/uninorm/compat-decomposition: New file.
38289
38290         Tests for module 'uninorm/canonical-decomposition'.
38291         * tests/uninorm/test-canonical-decomposition.c: New file.
38292         * modules/uninorm/canonical-decomposition-tests: New file.
38293
38294         New module 'uninorm/canonical-decomposition'.
38295         * lib/uninorm/canonical-decomposition.c: New file.
38296         * modules/uninorm/canonical-decomposition: New file.
38297
38298         Tests for module 'uninorm/decomposition'.
38299         * tests/uninorm/test-decomposition.c: New file.
38300         * modules/uninorm/decomposition-tests: New file.
38301
38302         New module 'uninorm/decomposition'.
38303         * lib/uninorm/decomposition.c: New file.
38304         * modules/uninorm/decomposition: New file.
38305
38306         New module 'uninorm/decomposition-table'.
38307         * lib/uninorm/decomposition-table.h: New file.
38308         * lib/uninorm/decomposition-table.c: New file.
38309         * lib/uninorm/decomposition-table1.h: New file, generated by
38310         gen-uni-tables.
38311         * lib/uninorm/decomposition-table2.h: New file, generated by
38312         gen-uni-tables.
38313         * modules/uninorm/decomposition-table: New file.
38314
38315         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38316         (UC_DECOMP_*): New enumeration items.
38317         (get_decomposition): New function.
38318         (struct decomp_table): New type.
38319         (output_decomposition, output_decomposition_tables): New functions.
38320         (unicode_composition_exclusions): New variable.
38321         (fill_composition_exclusions, debug_output_composition_tables): New
38322         functions.
38323         (main): Accept one more argument. Invoke fill_composition_exclusions.
38324         Output decomposition and composition tables.
38325
38326         New module 'uninorm/base'.
38327         * lib/uninorm.h: New file.
38328         * lib/unictype.h: Update comment.
38329         * modules/uninorm/base: New file.
38330
38331 2009-02-21  David Lutterkort  <lutter@redhat.com>
38332
38333         Tests for module 'safe-alloc'.
38334         * tests/test-safe-alloc.c: New file.
38335         * modules/safe-alloc-tests: New file.
38336
38337         New module 'safe-alloc'.
38338         * lib/safe-alloc.h: New file.
38339         * lib/safe-alloc.c: New file.
38340         * m4/safe-alloc.m4: New file.
38341         * modules/safe-alloc: New file.
38342         * doc/safe-alloc.texi: New file.
38343         * doc/gnulib.texi: Include it.
38344         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38345         safe-alloc.
38346
38347 2009-02-18  Bruno Haible  <bruno@clisp.org>
38348
38349         Fix link error on non-glibc systems.
38350         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38351         variable.
38352         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38353
38354 2009-02-18  Jim Meyering  <meyering@redhat.com>
38355
38356         fts: avoid used-uninitialized error due to recent change
38357         * lib/fts.c (fts_read): Guard uses of the new member,
38358         parent->fts_n_dirs_remaining, since it's not relevant for
38359         the parent of a directory specified on the command-line.
38360
38361 2009-02-17  James Youngman  <jay@gnu.org>
38362             Bruno Haible  <bruno@clisp.org>
38363
38364         * m4/include_next.m4: Reformulate comment.
38365
38366 2009-02-16  Jim Meyering  <meyering@redhat.com>
38367
38368         fts: add #if guards so that the fts_lgpl module still builds
38369         * lib/fts.c: Guard just-added hash-table-using parts with
38370         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38371         Reported by Simon Josefsson.
38372
38373 2009-02-15  Bruno Haible  <bruno@clisp.org>
38374
38375         * modules/array-mergesort-tests: New file.
38376         * tests/test-array-mergesort.c: New file.
38377
38378         New module 'array-mergesort'.
38379         * modules/array-mergesort: New file.
38380         * lib/array-mergesort.h: New file.
38381
38382 2009-02-15  Bruno Haible  <bruno@clisp.org>
38383
38384         Fix 2009-02-07 commit.
38385         * lib/gen-uni-tables.c (output_predicate, output_category,
38386         output_combclass, output_bidi_category, output_decimal_digit,
38387         output_digit, output_numeric, output_mirror, output_scripts,
38388         output_ident_category, output_simple_mapping): Fix format directives.
38389         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38390
38391 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38392
38393         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38394         fixes are available from IBM.
38395
38396 2009-02-13  Jim Meyering  <meyering@redhat.com>
38397
38398         fts: arrange not to stat non-directories in more cases
38399         This makes GNU find (when it doesn't need to stat each file)
38400         *much* more efficient at traversing reiserfs file systems.
38401         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38402         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38403         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38404         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38405         (leaf_optimization_applies): New function.
38406         (LCO_hash, LCO_compare): New helper functions.
38407         (link_count_optimize_ok): New function.
38408         (fts_stat): Initialize new member (if dir).
38409         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38410         we've just stat'ed a directory.  Skip the stat call when possible.
38411         ---
38412         Note this AFS-related exchange:
38413         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38414         and note find's pioctl call in find/fstype.c.
38415         But that is necessary only if you want to enable the
38416         optimization for AFS, and for now, I don't.
38417
38418         fts: move a function definition "up" (no semantic change)
38419         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38420         "up" to precede upcoming use of a related function.
38421
38422 2009-02-11  Jim Meyering  <meyering@redhat.com>
38423
38424         fts: correct internal computation of nlinks (optimization-related)
38425         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38426         whether the current entry is a directory, so don't test it.
38427
38428 2009-02-10  Bruno Haible  <bruno@clisp.org>
38429
38430         Tests for module 'uniwbrk/ulc-wordbreaks'.
38431         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38432         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38433         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38434
38435         Tests for module 'uniwbrk/u32-wordbreaks'.
38436         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38437         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38438
38439         Tests for module 'uniwbrk/u16-wordbreaks'.
38440         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38441         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38442
38443         Tests for module 'uniwbrk/u8-wordbreaks'.
38444         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38445         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38446
38447 2009-02-10  Bruno Haible  <bruno@clisp.org>
38448
38449         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38450         property.
38451         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38452         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38453         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38454
38455 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38456
38457         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38458         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38459
38460 2009-02-10  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38463         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38464         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38465         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38466         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38467         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38468
38469 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38470
38471         * lib/sockets.h (gl_fd_to_handle): New function.
38472
38473         * tests/test-sockets.c: Call gl_fd_to_handle.
38474
38475 2009-02-09  Bruno Haible  <bruno@clisp.org>
38476
38477         * doc/havelib.texi: Document the conventions on bi-arch systems.
38478
38479 2009-02-08  Bruno Haible  <bruno@clisp.org>
38480
38481         Document the AC_LIB_LINKFLAGS macro.
38482         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38483         * doc/gnulib.texi: Include it.
38484
38485 2009-02-08  Bruno Haible  <bruno@clisp.org>
38486
38487         Fix wrong order of sections, compared to TOC.
38488         * doc/gnulib.texi: Include relocatable-maint.texi after the
38489         "Regular expressions" node, not before.
38490
38491 2009-02-08  Bruno Haible  <bruno@clisp.org>
38492
38493         Tests for module 'unicase/totitle'.
38494         * modules/unicase/totitle-tests: New file.
38495
38496         Tests for module 'unicase/tolower'.
38497         * modules/unicase/tolower-tests: New file.
38498
38499         Tests for module 'unicase/toupper'.
38500         * modules/unicase/toupper-tests: New file.
38501         * tests/unicase/test-mapping-part1.h: New file.
38502         * tests/unicase/test-mapping-part2.h: New file.
38503
38504         New module 'unicase/totitle'.
38505         * modules/unicase/totitle: New file.
38506         * lib/unicase/totitle.c: New file.
38507
38508         New module 'unicase/tolower'.
38509         * modules/unicase/tolower: New file.
38510         * lib/unicase/tolower.c: New file.
38511
38512         New module 'unicase/toupper'.
38513         * modules/unicase/toupper: New file.
38514         * lib/unicase/toupper.c: New file.
38515         * lib/unicase/simple-mapping.h: New file.
38516
38517         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38518         (mapping_table): New structure.
38519         (output_simple_mapping): New function.
38520         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38521         * modules/gen-uni-tables (Description): Update.
38522         * lib/unicase/toupper.h: New file, automatically generated by
38523         gen-uni-tables.
38524         * lib/unicase/tolower.h: New file, automatically generated by
38525         gen-uni-tables.
38526         * lib/unicase/totitle.h: New file, automatically generated by
38527         gen-uni-tables.
38528         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38529         gen-uni-tables.
38530         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38531         gen-uni-tables.
38532         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38533         gen-uni-tables.
38534
38535         New module 'unicase/base'.
38536         * modules/unicase/base: New file.
38537         * lib/unicase.h: New file.
38538
38539 2009-02-08  Bruno Haible  <bruno@clisp.org>
38540
38541         New module 'uniwbrk/ulc-wordbreaks'.
38542         * modules/uniwbrk/ulc-wordbreaks: New file.
38543         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38544
38545         New module 'uniwbrk/u32-wordbreaks'.
38546         * modules/uniwbrk/u32-wordbreaks: New file.
38547         * lib/uniwbrk/u32-wordbreaks.c: New file.
38548
38549         New module 'uniwbrk/u16-wordbreaks'.
38550         * modules/uniwbrk/u16-wordbreaks: New file.
38551         * lib/uniwbrk/u16-wordbreaks.c: New file.
38552
38553         New module 'uniwbrk/u8-wordbreaks'.
38554         * modules/uniwbrk/u8-wordbreaks: New file.
38555         * lib/uniwbrk/u8-wordbreaks.c: New file.
38556         * lib/uniwbrk/u-wordbreaks.h: New file.
38557
38558         New module 'uniwbrk/table'.
38559         * modules/uniwbrk/table: New file.
38560         * lib/uniwbrk/wbrktable.h: New file.
38561         * lib/uniwbrk/wbrktable.c: New file.
38562
38563         New module 'uniwbrk/wordbreak-property'.
38564         * modules/uniwbrk/wordbreak-property: New file.
38565         * lib/uniwbrk/wordbreak-property.c: New file.
38566
38567         * lib/gen-uni-tables.c (WBP_*): New enum items.
38568         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38569         (unicode_org_wbp): New variable.
38570         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38571         New functions.
38572         (wbp_table): New structure.
38573         (output_wbp, output_wbrk_tables): New functions.
38574         (main): Accept additional argument. Invoke fill_org_wbp,
38575         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38576         output_wbrk_tables.
38577         * modules/gen-uni-tables (Description): Update.
38578         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38579         gen-uni-tables.
38580
38581         New module 'uniwbrk/base'.
38582         * modules/uniwbrk/base: New file.
38583         * lib/uniwbrk.h: New file.
38584
38585 2009-02-08  Bruno Haible  <bruno@clisp.org>
38586
38587         Update to Unicode 5.1.0.
38588         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38589         U+2185..U+2188.
38590         (is_property_default_ignorable_code_point): Don't include characters
38591         of category Cc or Cs and not-a-characters.
38592         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38593         U+0D79, U+109E, U+109F, U+A60C.
38594         * lib/unictype/bidi_of.h: Regenerated.
38595         * lib/unictype/blocks.h: Regenerated.
38596         * lib/unictype/categ_C.h: Regenerated.
38597         * lib/unictype/categ_Cf.h: Regenerated.
38598         * lib/unictype/categ_Cn.h: Regenerated.
38599         * lib/unictype/categ_L.h: Regenerated.
38600         * lib/unictype/categ_Ll.h: Regenerated.
38601         * lib/unictype/categ_Lm.h: Regenerated.
38602         * lib/unictype/categ_Lo.h: Regenerated.
38603         * lib/unictype/categ_Lu.h: Regenerated.
38604         * lib/unictype/categ_M.h: Regenerated.
38605         * lib/unictype/categ_Mc.h: Regenerated.
38606         * lib/unictype/categ_Me.h: Regenerated.
38607         * lib/unictype/categ_Mn.h: Regenerated.
38608         * lib/unictype/categ_N.h: Regenerated.
38609         * lib/unictype/categ_Nd.h: Regenerated.
38610         * lib/unictype/categ_Nl.h: Regenerated.
38611         * lib/unictype/categ_No.h: Regenerated.
38612         * lib/unictype/categ_P.h: Regenerated.
38613         * lib/unictype/categ_Pd.h: Regenerated.
38614         * lib/unictype/categ_Pe.h: Regenerated.
38615         * lib/unictype/categ_Pf.h: Regenerated.
38616         * lib/unictype/categ_Pi.h: Regenerated.
38617         * lib/unictype/categ_Po.h: Regenerated.
38618         * lib/unictype/categ_Ps.h: Regenerated.
38619         * lib/unictype/categ_S.h: Regenerated.
38620         * lib/unictype/categ_Sk.h: Regenerated.
38621         * lib/unictype/categ_Sm.h: Regenerated.
38622         * lib/unictype/categ_So.h: Regenerated.
38623         * lib/unictype/categ_of.h: Regenerated.
38624         * lib/unictype/combining.h: Regenerated.
38625         * lib/unictype/ctype_alnum.h: Regenerated.
38626         * lib/unictype/ctype_alpha.h: Regenerated.
38627         * lib/unictype/ctype_graph.h: Regenerated.
38628         * lib/unictype/ctype_lower.h: Regenerated.
38629         * lib/unictype/ctype_print.h: Regenerated.
38630         * lib/unictype/ctype_punct.h: Regenerated.
38631         * lib/unictype/ctype_upper.h: Regenerated.
38632         * lib/unictype/decdigit.h: Regenerated.
38633         * lib/unictype/digit.h: Regenerated.
38634         * lib/unictype/mirror.h: Regenerated.
38635         * lib/unictype/numeric.h: Regenerated.
38636         * lib/unictype/pr_alphabetic.h: Regenerated.
38637         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38638         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38639         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38640         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38641         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38642         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38643         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38644         * lib/unictype/pr_combining.h: Regenerated.
38645         * lib/unictype/pr_dash.h: Regenerated.
38646         * lib/unictype/pr_decimal_digit.h: Regenerated.
38647         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38648         * lib/unictype/pr_deprecated.h: Regenerated.
38649         * lib/unictype/pr_diacritic.h: Regenerated.
38650         * lib/unictype/pr_extender.h: Regenerated.
38651         * lib/unictype/pr_format_control.h: Regenerated.
38652         * lib/unictype/pr_grapheme_base.h: Regenerated.
38653         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38654         * lib/unictype/pr_grapheme_link.h: Regenerated.
38655         * lib/unictype/pr_id_continue.h: Regenerated.
38656         * lib/unictype/pr_id_start.h: Regenerated.
38657         * lib/unictype/pr_ideographic.h: Regenerated.
38658         * lib/unictype/pr_ignorable_control.h: Regenerated.
38659         * lib/unictype/pr_lowercase.h: Regenerated.
38660         * lib/unictype/pr_math.h: Regenerated.
38661         * lib/unictype/pr_numeric.h: Regenerated.
38662         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38663         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38664         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38665         * lib/unictype/pr_other_id_continue.h: Regenerated.
38666         * lib/unictype/pr_other_lowercase.h: Regenerated.
38667         * lib/unictype/pr_other_math.h: Regenerated.
38668         * lib/unictype/pr_punctuation.h: Regenerated.
38669         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38670         * lib/unictype/pr_soft_dotted.h: Regenerated.
38671         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38672         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38673         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38674         * lib/unictype/pr_uppercase.h: Regenerated.
38675         * lib/unictype/pr_xid_continue.h: Regenerated.
38676         * lib/unictype/pr_xid_start.h: Regenerated.
38677         * lib/unictype/pr_zero_width.h: Regenerated.
38678         * lib/unictype/scripts.h: Regenerated.
38679         * lib/unictype/scripts_byname.gperf: Regenerated.
38680         * lib/unictype/sy_java_ident.h: Regenerated.
38681         * lib/unilbrk/lbrkprop1.h: Regenerated.
38682         * lib/unilbrk/lbrkprop2.h: Regenerated.
38683         * tests/unictype/test-categ_C.c: Regenerated.
38684         * tests/unictype/test-categ_Cf.c: Regenerated.
38685         * tests/unictype/test-categ_Cn.c: Regenerated.
38686         * tests/unictype/test-categ_L.c: Regenerated.
38687         * tests/unictype/test-categ_Ll.c: Regenerated.
38688         * tests/unictype/test-categ_Lm.c: Regenerated.
38689         * tests/unictype/test-categ_Lo.c: Regenerated.
38690         * tests/unictype/test-categ_Lu.c: Regenerated.
38691         * tests/unictype/test-categ_M.c: Regenerated.
38692         * tests/unictype/test-categ_Mc.c: Regenerated.
38693         * tests/unictype/test-categ_Me.c: Regenerated.
38694         * tests/unictype/test-categ_Mn.c: Regenerated.
38695         * tests/unictype/test-categ_N.c: Regenerated.
38696         * tests/unictype/test-categ_Nd.c: Regenerated.
38697         * tests/unictype/test-categ_Nl.c: Regenerated.
38698         * tests/unictype/test-categ_No.c: Regenerated.
38699         * tests/unictype/test-categ_P.c: Regenerated.
38700         * tests/unictype/test-categ_Pd.c: Regenerated.
38701         * tests/unictype/test-categ_Pe.c: Regenerated.
38702         * tests/unictype/test-categ_Pf.c: Regenerated.
38703         * tests/unictype/test-categ_Pi.c: Regenerated.
38704         * tests/unictype/test-categ_Po.c: Regenerated.
38705         * tests/unictype/test-categ_Ps.c: Regenerated.
38706         * tests/unictype/test-categ_S.c: Regenerated.
38707         * tests/unictype/test-categ_Sk.c: Regenerated.
38708         * tests/unictype/test-categ_Sm.c: Regenerated.
38709         * tests/unictype/test-categ_So.c: Regenerated.
38710         * tests/unictype/test-ctype_alnum.c: Regenerated.
38711         * tests/unictype/test-ctype_alpha.c: Regenerated.
38712         * tests/unictype/test-ctype_graph.c: Regenerated.
38713         * tests/unictype/test-ctype_lower.c: Regenerated.
38714         * tests/unictype/test-ctype_print.c: Regenerated.
38715         * tests/unictype/test-ctype_punct.c: Regenerated.
38716         * tests/unictype/test-ctype_upper.c: Regenerated.
38717         * tests/unictype/test-decdigit.h: Regenerated.
38718         * tests/unictype/test-digit.h: Regenerated.
38719         * tests/unictype/test-numeric.h: Regenerated.
38720         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38721         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38722         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38723         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38724         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38725         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38726         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38727         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38728         * tests/unictype/test-pr_combining.c: Regenerated.
38729         * tests/unictype/test-pr_dash.c: Regenerated.
38730         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38731         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38732         * tests/unictype/test-pr_deprecated.c: Regenerated.
38733         * tests/unictype/test-pr_diacritic.c: Regenerated.
38734         * tests/unictype/test-pr_extender.c: Regenerated.
38735         * tests/unictype/test-pr_format_control.c: Regenerated.
38736         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38737         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38738         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38739         * tests/unictype/test-pr_id_continue.c: Regenerated.
38740         * tests/unictype/test-pr_id_start.c: Regenerated.
38741         * tests/unictype/test-pr_ideographic.c: Regenerated.
38742         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38743         * tests/unictype/test-pr_lowercase.c: Regenerated.
38744         * tests/unictype/test-pr_math.c: Regenerated.
38745         * tests/unictype/test-pr_numeric.c: Regenerated.
38746         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38747         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38748         Regenerated.
38749         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38750         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38751         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38752         * tests/unictype/test-pr_other_math.c: Regenerated.
38753         * tests/unictype/test-pr_punctuation.c: Regenerated.
38754         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38755         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38756         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38757         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38758         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38759         * tests/unictype/test-pr_uppercase.c: Regenerated.
38760         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38761         * tests/unictype/test-pr_xid_start.c: Regenerated.
38762         * tests/unictype/test-pr_zero_width.c: Regenerated.
38763
38764         Update to Unicode 5.1.0.
38765         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38766         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38767         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38768         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38769         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38770         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38771         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38772         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38773         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38774         (nonspacing_table_ind): Update.
38775         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38776
38777         Update to Unicode 5.1.0.
38778         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38779         code transform.
38780         * lib/uniname/uniname.c (unicode_character_name,
38781         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38782         * lib/uniname/uninames.h: Regenerated.
38783         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38784
38785 2009-02-07  Bruno Haible  <bruno@clisp.org>
38786
38787         Merge gen-ctype and gen-lbrk into a single program.
38788         * lib/gen-uni-tables.c: New file, incorporating
38789         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38790         Add directory prefixes to the names of the generated files.
38791         * lib/unictype/gen-ctype.c: Remove file.
38792         * lib/unilbrk/gen-lbrk.c: Remove file.
38793         * modules/gen-uni-tables: New file.
38794         * modules/unictype/gen-ctype: Remove file.
38795         * modules/unilbrk/gen-lbrk: Remove file.
38796
38797 2009-02-07  Bruno Haible  <bruno@clisp.org>
38798
38799         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38800
38801         New module 'unistr/u32-strcoll'.
38802         * modules/unistr/u32-strcoll: New file.
38803         * lib/unistr/u32-strcoll.c: New file.
38804
38805         New module 'unistr/u16-strcoll'.
38806         * modules/unistr/u16-strcoll: New file.
38807         * lib/unistr/u16-strcoll.c: New file.
38808
38809         New module 'unistr/u8-strcoll'.
38810         * modules/unistr/u8-strcoll: New file.
38811         * lib/unistr/u8-strcoll.c: New file.
38812         * lib/unistr/u-strcoll.h: New file.
38813
38814 2009-02-07  Bruno Haible  <bruno@clisp.org>
38815
38816         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38817         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38818         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38819         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38820         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38821         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38822
38823 2009-02-07  Bruno Haible  <bruno@clisp.org>
38824
38825         Make 64-bit clean.
38826         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38827         output_combclass, output_bidi_category, output_decimal_digit,
38828         output_digit, output_numeric, output_mirror, output_scripts,
38829         output_ident_category): Use proper width specifier in format strings.
38830
38831 2009-02-07  Bruno Haible  <bruno@clisp.org>
38832
38833         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38834         failure behaviour.
38835
38836 2009-02-07  Jim Meyering  <meyering@redhat.com>
38837
38838         regex: avoid compilation failure with upcoming gcc-4.4
38839         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38840         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38841         "... error: integer overflow in preprocessor expression".
38842
38843 2009-02-05  Ben Pfaff  <blp@gnu.org>
38844
38845         Fix link errors on Windows when close module is used.
38846         * modules/close: Add $(LIB_CLOSE) to Link section.
38847         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38848         $(LIB_CLOSE) on Windows.
38849
38850 2009-02-05  Jim Meyering  <meyering@redhat.com>
38851
38852         still avoid unused-parameter warnings, but do it cleanly
38853         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38854         (get_fs_usage): Cast to void instead.
38855         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38856         (dev_from_mount_options, read_file_system_list): Cast to void.
38857         Prompted by Bruno Haible.
38858
38859 2009-02-04  Jim Meyering  <meyering@redhat.com>
38860
38861         fsusage.c: correct copyright year
38862         * lib/fsusage.c: Reflect year in which the change is pushed into
38863
38864         avoid misc. warnings
38865         * lib/fsusage.c (UNUSED_PARAM): Define.
38866         (get_fs_usage): Mark parameter "disk" as unused.
38867         * lib/getugroups.c (getgrent): Use "void" in prototype.
38868         * lib/mountlist.c: Mark unused parameters.
38869         (read_file_system_list): Declare a local with "const".
38870         * lib/nanosleep.c (getnow): Declare static.
38871         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38872
38873         dirfd: set errno upon failure
38874         * lib/dirfd.c: Include <errno.h>.
38875         Set errno to ENOTSUP when returning -1.
38876         * modules/dirfd (Depends-on): Add errno.
38877         Suggested by John Kodis <kodis@comcast.net>.
38878
38879 2009-02-01  Bruno Haible  <bruno@clisp.org>
38880
38881         Don't assume sizeof (long) >= sizeof (void *).
38882         * lib/memcmp.c: Include stdint.h.
38883         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38884         srcp2 to 'const byte *'.
38885         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38886         types to uintptr_t.
38887         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38888         * modules/memcmp (Depends-on): Add stdint.
38889         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38890
38891 2009-01-30  Eric Blake  <ebb9@byu.net>
38892
38893         fix more require-before-expand issues
38894         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38895         expand, AC_PROG_AWK.
38896         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38897
38898 2009-01-28  Eric Blake  <ebb9@byu.net>
38899
38900         version-etc: use consistent URL formatting
38901         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38902         Improve formatting.  Use fputs for string without %.
38903
38904 2009-01-28  Jim Meyering  <meyering@redhat.com>
38905
38906         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38907         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38908         "underquoted definition of NAME" from autoconf-2.59.
38909
38910 2009-01-28  Bruno Haible  <bruno@clisp.org>
38911
38912         * doc/gnulib.texi: Add "Obsolete modules" to index.
38913
38914 2009-01-28  Jim Meyering  <meyering@redhat.com>
38915
38916         useless-if-before-free: recognize more variants
38917         * build-aux/useless-if-before-free: Also recognize e.g.,
38918         if (NULL != p) free (p);
38919
38920 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38921
38922         test-getaddrinfo: skip (don't fail) this test when there's no network
38923         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38924         on the presumption that it means you lack network access.
38925
38926 2009-01-26  Jim Meyering  <meyering@redhat.com>
38927
38928         fflush: avoid warnings on modern systems
38929         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38930         pos and result, into scopes where they're used.
38931
38932 2009-01-26  Eric Blake  <ebb9@byu.net>
38933
38934         Silence warning reintroduced by recent extensions patch.
38935         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38936         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38937         autoconf.
38938
38939         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38940         * m4/00gnulib.m4: New file.
38941         * gnulib-tool (func_get_filelist): Always use it.
38942         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38943         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38944
38945 2009-01-25  Bruno Haible  <bruno@clisp.org>
38946
38947         Make test-quotearg work on MacOS X and AIX.
38948         * tests/test-quotearg.sh: New file.
38949         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38950         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38951         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38952         include <libintl.h>.
38953         (fake_locale): Remove variable.
38954         (gettext, dgettext, dcgettext): Remove functions.
38955         (main): Instead of setting a fake locale, set a real locale. Call
38956         textdomain and bindtextdomain.
38957         * modules/quotearg-tests (Files): Add the new files.
38958         (Depends-on): Add gettext, setenv, unsetenv.
38959         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38960         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38961         Augment TESTS_ENVIRONMENT.
38962
38963 2009-01-25  Bruno Haible  <bruno@clisp.org>
38964
38965         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38966         fr_FR.ISO8859-1 locale on MacOS X.
38967         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38968         ja_JP.eucJP locale on MacOS X.
38969         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38970         zh_CN.GB18030 locale on MacOS X.
38971
38972 2009-01-25  Bruno Haible  <bruno@clisp.org>
38973
38974         Avoid link errors on MacOS X 10.3.
38975         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38976         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38977
38978 2009-01-25  Bruno Haible  <bruno@clisp.org>
38979
38980         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38981         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38982         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38983         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38984         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38985         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38986         posix_spawnattr_init, posix_spawnattr_setsigmask,
38987         posix_spawnattr_setflags, posix_spawnattr_destroy.
38988
38989         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38990         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38991         * modules/execute (Files): Remove m4/posix_spawn.m4.
38992         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38993         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38994         posix_spawnattr_init, posix_spawnattr_setsigmask,
38995         posix_spawnattr_setflags, posix_spawnattr_destroy.
38996
38997 2009-01-25  Bruno Haible  <bruno@clisp.org>
38998
38999         * lib/glthread/threadlib.c: Include <stdlib.h>.
39000
39001 2009-01-25  Bruno Haible  <bruno@clisp.org>
39002
39003         * lib/glthread/threadlib.c (dummy): New declaration.
39004
39005 2009-01-25  Bruno Haible  <bruno@clisp.org>
39006
39007         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39008         multibyte characters also for the GB18030 encoding. Don't crash when
39009         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39010
39011 2009-01-25  Bruno Haible  <bruno@clisp.org>
39012
39013         Avoid redefining 'struct random_data' on OSF/1 5.1.
39014         * lib/stdlib.in.h: Include <random.h> if it exists.
39015         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39016         HAVE_RANDOM_H. Include <random.h> when testing whether
39017         'struct random_data' exists.
39018         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39019
39020 2009-01-25  Bruno Haible  <bruno@clisp.org>
39021
39022         Don't install charset.alias on MacOS X >= 10.3.
39023         * lib/localcharset.c (DARWIN7): New macro.
39024         (get_charset_aliases): Hardcode the result for Darwin7.
39025         * modules/localcharset (install-exec-local): Don't install
39026         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39027
39028 2009-01-25  Bruno Haible  <bruno@clisp.org>
39029
39030         Don't install charset.alias on mingw and Cygwin.
39031         * modules/localcharset (install-exec-local): Don't install
39032         charset.alias on mingw and Cygwin, if the file does not yet exist.
39033         The result for these platforms is hardcoded in localcharset.c.
39034
39035 2009-01-25  Bruno Haible  <bruno@clisp.org>
39036
39037         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39039         before requiring AC_USE_SYSTEM_EXTENSIONS.
39040
39041 2009-01-25  Jim Meyering  <meyering@redhat.com>
39042
39043         c-strtod: avoid warnings
39044         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39045         "assignment discards qualifiers from pointer target type" warnings.
39046
39047 2009-01-24  Bruno Haible  <bruno@clisp.org>
39048
39049         Add support for non-UTF-8 locales on MacOS X.
39050         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39051         canonical encodings. For Darwin 7 and newer, don't map traditional
39052         encodings to UTF-8.
39053         Reported by Vincent Lefevre <vincent@vinc17.org>
39054         at <http://savannah.gnu.org/bugs/?25235>.
39055
39056 2009-01-24  Bruno Haible  <bruno@clisp.org>
39057
39058         * doc/gnulib.texi (Obsolete modules): New section.
39059         Reported by Mike Frysinger <vapier@gentoo.org>.
39060
39061 2009-01-24  Bruno Haible  <bruno@clisp.org>
39062
39063         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39064         (%.dvi): New rule.
39065
39066 2009-01-24  Bruno Haible  <bruno@clisp.org>
39067
39068         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39069         Reported by Eric Blake.
39070
39071 2009-01-24  Bruno Haible  <bruno@clisp.org>
39072
39073         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39074         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39075         Reported by Gary V. Vaughan <gary@gnu.org>.
39076
39077 2009-01-24  Bruno Haible  <bruno@clisp.org>
39078
39079         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39080
39081 2009-01-23  Bruno Haible  <bruno@clisp.org>
39082
39083         Make c-strtod, c-strtold usable in libraries.
39084         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39085         (C_STRTOD): Call strdup instead of xstrdup.
39086         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39087         * modules/c-strtold (Depends-on): Likewise.
39088         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39089         * NEWS: Mention the change.
39090         Reported by Michael Gold <mgold@ncf.ca>.
39091
39092 2009-01-23  Jim Meyering  <meyering@redhat.com>
39093
39094         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39095         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39096         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39097
39098 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39099
39100         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39101         GNU CoreUtils.
39102         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39103         * modules/version-etc (Description): Update.
39104
39105 2009-01-22  Bruno Haible  <bruno@clisp.org>
39106
39107         Cache the C locale object.
39108         * lib/c-strtod.c (c_locale_cache): New variable.
39109         (c_locale): New function.
39110         (C_STRTOD): Use it, and don't call freelocale.
39111         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39112         Suggested by Paolo Bonzini.
39113
39114 2009-01-21  Bruno Haible  <bruno@clisp.org>
39115
39116         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39117         conditions other than overflow.
39118
39119 2009-01-21  Bruno Haible  <bruno@clisp.org>
39120
39121         * lib/c-strtod.c: Include errno.h.
39122         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39123         value from STRTOD_L and STRTOD.
39124
39125 2009-01-21  Bruno Haible  <bruno@clisp.org>
39126         and Jim Meyering  <meyering@redhat.com>
39127
39128         nanosleep: skip configure test (fail it) for apple universal builds
39129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39130         universal builds, assume that nanosleep does not work.
39131         * modules/nanosleep (Depends-on): Add multiarch.
39132
39133         mktime: skip configure test (fail it) for apple universal builds
39134         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39135         universal builds, assume that mktime does not work.
39136         * modules/mktime (Depends-on): Add multiarch.
39137
39138 2009-01-21  Eric Blake  <ebb9@byu.net>
39139
39140         multiarch: avoid expand-before-require warning
39141         * modules/multiarch (configure.ac): Require, rather than expand,
39142         gl_MULTIARCH.
39143         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39144         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39145         enforce that all clients require it.  Partial reversion of
39146         2008-12-29 patch.
39147
39148         error: avoid expand-before-require warning
39149         * modules/errno (configure.ac): Require, rather than expand,
39150         gl_HEADER_ERRNO_H.
39151         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39152         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39153         enforce that all clients require it.
39154
39155         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39156         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39157         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39158         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39159
39160 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39161
39162         Revert:
39163         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39164
39165         regex: do not depend on obsolete modules.
39166         * modules/regex: Remove memcmp and memmove.
39167
39168 2009-01-20  Bruno Haible  <bruno@clisp.org>
39169
39170         Make the 'link' module link on Windows NT 4.
39171         * lib/link.c (_WIN32_WINNT): Don't define.
39172         (CreateHardLinkFuncType): New type.
39173         (CreateHardLinkFunc, initialized): New variables.
39174         (initialize): New function.
39175         (link): Invoke CreateHardLink indirectly through the function pointer.
39176
39177 2009-01-20  Bruno Haible  <bruno@clisp.org>
39178
39179         Fix compilation failure on mingw.
39180         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39181
39182 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39183
39184         * doc/c-strtod.texi: Mention a couple of restrictions.
39185
39186 2009-01-20  Jim Meyering  <meyering@redhat.com>
39187
39188         gettimeofday: move more declarations out of functions
39189         * lib/gettimeofday.c: Move extern declarations of tzset and
39190         gmtime out of containing functions.  Prompted by Bruno Haible.
39191
39192 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39193
39194         regex: do not depend on obsolete modules.
39195         * modules/regex: Remove memcmp and memmove.
39196
39197 2009-01-19  Bruno Haible  <bruno@clisp.org>
39198
39199         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39200         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39201         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39202         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39203         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39204
39205 2009-01-19  Bruno Haible  <bruno@clisp.org>
39206
39207         * tests/test-link.c: Include <errno.h>.
39208         (main): Exit with code 77 when a hard link cannot be created due to
39209         the file system.
39210         * tests/test-link.sh: Skip test when a hard link cannot be created due
39211         to the file system.
39212         Suggested by Eric Blake.
39213
39214 2009-01-19  Martin Lambers  <marlam@marlam.de>
39215
39216         * modules/link-tests: New file.
39217         * tests/test-link.sh: New file.
39218         * tests/test-link.c: New file.
39219
39220 2009-01-19  Eric Blake  <ebb9@byu.net>
39221
39222         doc: mention another function added in cygwin 1.7.0
39223         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39224         Another new function in cygwin 1.7.
39225
39226 2009-01-19  Bruno Haible  <bruno@clisp.org>
39227
39228         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39229         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39230         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39231         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39232         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39233         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39234         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39235         * m4/md4.m4 (gl_MD4): Likewise.
39236         * m4/md5.m4 (gl_MD5): Likewise.
39237         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39238         * m4/sha1.m4 (gl_SHA1): Likewise.
39239         * m4/sha256.m4 (gl_SHA256): Likewise.
39240         * m4/sha512.m4 (gl_SHA512): Likewise.
39241
39242 2009-01-19  Bruno Haible  <bruno@clisp.org>
39243
39244         * modules/uniname/uniname-tests (Depends-on): Add progname.
39245         * tests/uniname/test-uninames.c: Include progname.h.
39246         (main): Call set_program_name.
39247
39248         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39249         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39250         (main): Call set_program_name.
39251
39252         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39253         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39254         (main): Call set_program_name.
39255
39256         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39257         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39258         (main): Call set_program_name.
39259
39260         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39261         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39262         (main): Call set_program_name.
39263
39264         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39265         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39266         (main): Call set_program_name.
39267
39268         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39269         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39270         (main): Call set_program_name.
39271
39272         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39273         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39274         (main): Call set_program_name.
39275
39276         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39277         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39278         (main): Call set_program_name.
39279
39280 2009-01-19  Eric Blake  <ebb9@byu.net>
39281
39282         test-unistd: test previous patch
39283         * tests/test-unistd.c: Test *_FILENO macros.
39284
39285         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39286         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39287         Guarantee a definition.
39288         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39289         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39290         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39291         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39292         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39293         Likewise.
39294         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39295         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39296         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39297         Likewise.
39298         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39299         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39300         (STDERR_FILENO): Likewise.
39301         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39302         (STDERR_FILENO): Likewise.
39303         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39304         (STDERR_FILENO): Likewise.
39305         Reported by Elbert Pol.
39306
39307 2009-01-19  Eric Blake  <ebb9@byu.net>
39308
39309         doc: mention more functions added in cygwin 1.7.0
39310         * doc/posix-functions/abort.texi (abort): Update wording related
39311         to cygwin.
39312         * doc/posix-functions/daylight.texi (daylight): Likewise.
39313         * doc/posix-functions/optarg.texi (optarg): Likewise.
39314         * doc/posix-functions/optarg.texi (opterr): Likewise.
39315         * doc/posix-functions/optarg.texi (optind): Likewise.
39316         * doc/posix-functions/optarg.texi (optopt): Likewise.
39317         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39318         worked in 1.5.x, and was withdrawn in 1.7.
39319         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39320         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39321         cygwin versions.
39322         * doc/posix-functions/perror.texi (perror): Likewise.
39323         * doc/posix-functions/printf.texi (printf): Likewise.
39324         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39325         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39326         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39327         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39328         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39329         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39330         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39331         Likewise.
39332         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39333         Likewise.
39334         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39335         this function.
39336         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39337         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39338         Likewise.
39339         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39340         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39341         * doc/posix-functions/confstr.texi (confstr): Likewise.
39342         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39343         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39344         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39345         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39346         * doc/posix-functions/fputws.texi (fputws): Likewise.
39347         * doc/posix-functions/fwide.texi (fwide): Likewise.
39348         * doc/posix-functions/getwc.texi (getwc): Likewise.
39349         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39350         * doc/posix-functions/putwc.texi (putwc): Likewise.
39351         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39352         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39353         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39354         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39355         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39356         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39357         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39358         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39359         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39360         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39361         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39362
39363 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39364
39365         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39366         * lib/ioctl.c: Include <sys/ioctl.h>.
39367
39368 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39369
39370         * modules/getdate-tests (Depends-on): Add progname.
39371         * tests/test-getdate.c: Use progname module, to avoid link errors
39372         on non-glibc systems.
39373
39374 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39375
39376         * modules/filenamecat-tests (Depends-on): Add progname.
39377         * modules/fstrcmp-tests (Depends-on): Likewise.
39378
39379         * tests/test-filenamecat.c: Use progname module, to avoid link
39380         errors on non-glibc systems.
39381         * tests/test-fstrcmp.c: Likewise.
39382
39383 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39384
39385         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39386         * lib/gettimeofday.c: Move extern declaration out of function.
39387
39388 2009-01-18  Bruno Haible  <bruno@clisp.org>
39389
39390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39391         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39392         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39393
39394 2009-01-18  Bruno Haible  <bruno@clisp.org>
39395
39396         * lib/strftime.c (MEMPCPY): Remove unused macro.
39397         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39398
39399 2009-01-18  Martin Lambers  <marlam@marlam.de>
39400
39401         New module 'link'.
39402         * lib/unistd.in.h (link): New declaration.
39403         * lib/link.c: New file.
39404         * m4/link.m4: New file.
39405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39406         HAVE_LINK.
39407         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39408         * modules/link: New file.
39409         * doc/posix-functions/link.texi: Mention the new module.
39410
39411 2009-01-18  Bruno Haible  <bruno@clisp.org>
39412
39413         * tests/test-avltree_list.c (main): Call set_program_name.
39414         * tests/test-avltree_oset.c (main): Likewise.
39415         * tests/test-obstack-printf.c: Include progname.h.
39416         (main): Call set_program_name.
39417         * tests/test-quotearg.c: Include progname.h.
39418         (main): Call set_program_name.
39419         * tests/test-xmemdup0.c: Include progname.h.
39420         (main): Call set_program_name.
39421
39422 2009-01-18  Bruno Haible  <bruno@clisp.org>
39423
39424         New module 'alphasort'.
39425         * lib/dirent.in.h (alphasort): New declaration.
39426         * lib/alphasort.c: New file, from glibc with modifications.
39427         * m4/alphasort.m4: New file.
39428         * modules/alphasort: New file.
39429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39430         HAVE_ALPHASORT.
39431         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39432         HAVE_ALPHASORT.
39433         * doc/posix-functions/alphasort.texi: Mention the new module and the
39434         portability problems.
39435
39436 2009-01-18  Bruno Haible  <bruno@clisp.org>
39437
39438         New module 'scandir'.
39439         * lib/dirent.in.h (scandir): New declaration.
39440         * lib/scandir.c: New file, from glibc with modifications.
39441         * m4/scandir.m4: New file.
39442         * modules/scandir: New file.
39443         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39444         HAVE_SCANDIR.
39445         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39446         HAVE_SCANDIR.
39447         * doc/posix-functions/scandir.texi: Mention the new module and the
39448         portability problems.
39449
39450 2009-01-17  Bruno Haible  <bruno@clisp.org>
39451
39452         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39453         Update documentation.
39454         (func_remove_suffix): Escape all dots in the suffix. Update
39455         documentation.
39456         (func_filter_filelist): Update documentation.
39457         Reported by Ralf Wildenhues.
39458
39459 2009-01-17  Bruno Haible  <bruno@clisp.org>
39460
39461         * modules/dprintf-posix-tests: New file.
39462         * tests/test-dprintf-posix.sh: New file.
39463         * tests/test-dprintf-posix.c: New file.
39464
39465         New modules 'dprintf', 'dprintf-posix'.
39466         * lib/stdio.in.h (dprintf): New declaration.
39467         * lib/dprintf.c: New file.
39468         * m4/dprintf.m4: New file.
39469         * m4/dprintf-posix.m4: New file.
39470         * modules/dprintf: New file.
39471         * modules/dprintf-posix: New file.
39472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39473         HAVE_DPRINTF, REPLACE_DPRINTF.
39474         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39475         HAVE_DPRINTF, REPLACE_DPRINTF.
39476         * doc/posix-functions/dprintf.texi: Mention the new modules.
39477
39478 2009-01-17  Bruno Haible  <bruno@clisp.org>
39479
39480         * modules/vdprintf-posix-tests: New file.
39481         * tests/test-vdprintf-posix.sh: New file.
39482         * tests/test-vdprintf-posix.c: New file.
39483
39484         New modules 'vdprintf', 'vdprintf-posix'.
39485         * lib/stdio.in.h (vdprintf): New declaration.
39486         * lib/vdprintf.c: New file.
39487         * m4/vdprintf.m4: New file.
39488         * m4/vdprintf-posix.m4: New file.
39489         * modules/vdprintf: New file.
39490         * modules/vdprintf-posix: New file.
39491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39492         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39493         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39494         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39495         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39496
39497 2009-01-17  Bruno Haible  <bruno@clisp.org>
39498
39499         Fix replacement of fopen on mingw.
39500         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39501         mingw.
39502
39503 2009-01-17  Bruno Haible  <bruno@clisp.org>
39504
39505         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39506         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39507
39508 2009-01-17  Bruno Haible  <bruno@clisp.org>
39509
39510         Avoid test-fflush2.sh failure on mingw.
39511         * tests/test-fflush2.c: Include binary-io.h.
39512         (main): Put standard input into binary mode.
39513         * modules/fflush-tests (Depends-on): Add binary-io.
39514
39515 2009-01-17  Bruno Haible  <bruno@clisp.org>
39516
39517         * lib/wchar.in.h: In another particular situation, include only the
39518         system's <wchar.h> file.
39519         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39520         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39521         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39522
39523 2009-01-17  Bruno Haible  <bruno@clisp.org>
39524
39525         Support for stripping executables in --enable-relocatable.
39526         * build-aux/install-reloc: Expect one more argument, or an environment
39527         variable RELOC_STRIP_PROG. If set, strip the destination program and
39528         its wrapper.
39529         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39530         RELOC_STRIP_PROG.
39531         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39532         to set RELOCATABLE_STRIP.
39533         * NEWS: Mention the new Makefile requirement.
39534
39535 2009-01-17  Bruno Haible  <bruno@clisp.org>
39536
39537         * build-aux/install-reloc: Remove debugging information left over by
39538         C compiler on MacOS X.
39539
39540 2009-01-17  Bruno Haible  <bruno@clisp.org>
39541
39542         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39543         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39544         _NSGetExecutablePath.
39545
39546 2009-01-16  Jim Meyering  <meyering@redhat.com>
39547
39548         strerror: avoid warnings about discarding "const"
39549         * lib/strerror.c (rpl_strerror): Instead of returning a const
39550         string from each and every "case", use a variable, and add a single
39551         cast after the switch.
39552
39553 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39554
39555         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39556
39557 2009-01-16  Bruno Haible  <bruno@clisp.org>
39558
39559         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39560         array initializer syntax that also works in C++ mode.
39561         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39562
39563 2009-01-16  Jim Meyering  <meyering@redhat.com>
39564
39565         poll: suppress a warning
39566         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39567         to ignore "...unsigned expression < 0 is always false" warnings.
39568
39569 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39570
39571         poll: remove declarations of unused variables
39572         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39573         sockbuf and optlen.
39574
39575 2009-01-15  Bruno Haible  <bruno@clisp.org>
39576
39577         Make fflush-after-ungetc POSIX compliant on BSD systems.
39578         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39579         (clear_ungetc_buffer): Implement also for other systems.
39580         (rpl_fflush): On glibc systems, invoke
39581         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39582         clear_ungetc_buffer after fetching the stream's position, not before.
39583
39584 2009-01-15  Bruno Haible  <bruno@clisp.org>
39585
39586         Make fflush-after-ungetc POSIX compliant on glibc systems.
39587         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39588         after ungetc.
39589         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39590         (rpl_fflush): On glibc systems, simply call the system's fflush
39591         function after clearing the ungetc buffer.
39592         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39593         Instead, lseek only to the end of file, then use the system's fseeko
39594         for the rest. On glibc systems, reset the EOF indicator bit.
39595
39596 2009-01-15  Jim Meyering  <meyering@redhat.com>
39597
39598         openmp.m4: revert quote-adding change, for portability to older autoconf
39599         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39600         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39601         Simon Josefsson noticed the problem when using autoconf-2.61.
39602
39603 2009-01-15  Bruno Haible  <bruno@clisp.org>
39604
39605         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39606         * tests/test-fflush2.c (ASSERT): Always fail.
39607         (main): Add two tests for fflush() after ungetc(), taking into account
39608         the Austin Group's clarification.
39609         Suggested by Eric Blake.
39610
39611 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39612
39613         mktime.m4: remove K&R-style function prototypes
39614         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39615         for the Sun C++ compiler.
39616
39617 2009-01-14  Bruno Haible  <bruno@clisp.org>
39618
39619         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39620         while including <wchar.h>.
39621         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39622         the system's <wchar.h> file.
39623         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39624
39625 2009-01-14  Bruno Haible  <bruno@clisp.org>
39626
39627         * m4/csharp.m4: Don't mention gettext on the serial number line.
39628         * m4/csharpexec.m4: Likewise.
39629         * m4/eaccess.m4: Likewise.
39630         * m4/javaexec.m4: Likewise.
39631         * m4/sig_atomic_t.m4: Likewise.
39632         * m4/tmpdir.m4: Likewise.
39633         * m4/intldir.m4: Bump gettext version.
39634         * m4/lib-ld.m4: Likewise.
39635
39636 2009-01-14  Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/progname.c (set_program_name): Add more comments.
39639         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39640
39641 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39642
39643         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39644         were sys/stat.h does not define it.
39645
39646 2009-01-14  Jim Meyering  <meyering@redhat.com>
39647
39648         many *.m4 files: improve m4 quoting
39649         99% of this change was performed by running the following commands:
39650         git ls-files | grep '\.m4$' | xargs perl -pi \
39651           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39652           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39653           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39654           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39655         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39656         The remainder were to add Copyright dates, increment serial numbers,
39657         undo some changes in comments, exclude m4/intl.m4, and add quotes
39658         around the "1" in ",1" where the unusual spacing prohibited the
39659         above regexps from doing the job.  For more details, see
39660         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39661         * m4/acl.m4: Modified.
39662         * m4/afs.m4: Likewise.
39663         * m4/alloca.m4: Likewise.
39664         * m4/argp.m4: Likewise.
39665         * m4/argz.m4: Likewise.
39666         * m4/atexit.m4: Likewise.
39667         * m4/bison-i18n.m4: Likewise.
39668         * m4/bison.m4: Likewise.
39669         * m4/byteswap.m4: Likewise.
39670         * m4/c-stack.m4: Likewise.
39671         * m4/c-strtod.m4: Likewise.
39672         * m4/calloc.m4: Likewise.
39673         * m4/canonicalize-lgpl.m4: Likewise.
39674         * m4/chown.m4: Likewise.
39675         * m4/clock_time.m4: Likewise.
39676         * m4/codeset.m4: Likewise.
39677         * m4/copy-file.m4: Likewise.
39678         * m4/csharp.m4: Likewise.
39679         * m4/csharpcomp.m4: Likewise.
39680         * m4/csharpexec.m4: Likewise.
39681         * m4/d-ino.m4: Likewise.
39682         * m4/d-type.m4: Likewise.
39683         * m4/dirfd.m4: Likewise.
39684         * m4/double-slash-root.m4: Likewise.
39685         * m4/eaccess.m4: Likewise.
39686         * m4/eealloc.m4: Likewise.
39687         * m4/environ.m4: Likewise.
39688         * m4/errno_h.m4: Likewise.
39689         * m4/euidaccess.m4: Likewise.
39690         * m4/execute.m4: Likewise.
39691         * m4/fatal-signal.m4: Likewise.
39692         * m4/fchdir.m4: Likewise.
39693         * m4/fcntl_h.m4: Likewise.
39694         * m4/fileblocks.m4: Likewise.
39695         * m4/filenamecat.m4: Likewise.
39696         * m4/findprog.m4: Likewise.
39697         * m4/flexmember.m4: Likewise.
39698         * m4/fnmatch.m4: Likewise.
39699         * m4/fopen.m4: Likewise.
39700         * m4/fpending.m4: Likewise.
39701         * m4/fprintf-posix.m4: Likewise.
39702         * m4/free.m4: Likewise.
39703         * m4/frexp.m4: Likewise.
39704         * m4/frexpl.m4: Likewise.
39705         * m4/fsusage.m4: Likewise.
39706         * m4/ftruncate.m4: Likewise.
39707         * m4/gc-camellia.m4: Likewise.
39708         * m4/gc-random.m4: Likewise.
39709         * m4/gc.m4: Likewise.
39710         * m4/getaddrinfo.m4: Likewise.
39711         * m4/getcwd-abort-bug.m4: Likewise.
39712         * m4/getcwd-path-max.m4: Likewise.
39713         * m4/getdate.m4: Likewise.
39714         * m4/getdomainname.m4: Likewise.
39715         * m4/getgroups.m4: Likewise.
39716         * m4/gethostname.m4: Likewise.
39717         * m4/gethrxtime.m4: Likewise.
39718         * m4/getline.m4: Likewise.
39719         * m4/getloadavg.m4: Likewise.
39720         * m4/getndelim2.m4: Likewise.
39721         * m4/getpass.m4: Likewise.
39722         * m4/gettext.m4: Likewise.
39723         * m4/gettime.m4: Likewise.
39724         * m4/gettimeofday.m4: Likewise.
39725         * m4/gnulib-common.m4: Likewise.
39726         * m4/group-member.m4: Likewise.
39727         * m4/host-os.m4: Likewise.
39728         * m4/iconv.m4: Likewise.
39729         * m4/iconv_open.m4: Likewise.
39730         * m4/inet_ntop.m4: Likewise.
39731         * m4/inet_pton.m4: Likewise.
39732         * m4/inline.m4: Likewise.
39733         * m4/intldir.m4: Likewise.
39734         * m4/intlmacosx.m4: Likewise.
39735         * m4/intmax.m4: Likewise.
39736         * m4/intmax_t.m4: Likewise.
39737         * m4/inttypes.m4: Likewise.
39738         * m4/inttypes_h.m4: Likewise.
39739         * m4/inttypes-pri.m4: Likewise.
39740         * m4/isapipe.m4: Likewise.
39741         * m4/isnand.m4: Likewise.
39742         * m4/isnanf.m4: Likewise.
39743         * m4/isnanl.m4: Likewise.
39744         * m4/javacomp.m4: Likewise.
39745         * m4/javaexec.m4: Likewise.
39746         * m4/jm-winsz1.m4: Likewise.
39747         * m4/jm-winsz2.m4: Likewise.
39748         * m4/lchown.m4: Likewise.
39749         * m4/lcmessage.m4: Likewise.
39750         * m4/ldexpl.m4: Likewise.
39751         * m4/lib-ld.m4: Likewise.
39752         * m4/lib-link.m4: Likewise.
39753         * m4/libsigsegv.m4: Likewise.
39754         * m4/link-follow.m4: Likewise.
39755         * m4/localcharset.m4: Likewise.
39756         * m4/locale-fr.m4: Likewise.
39757         * m4/locale-ja.m4: Likewise.
39758         * m4/locale-tr.m4: Likewise.
39759         * m4/locale-zh.m4: Likewise.
39760         * m4/lock.m4: Likewise.
39761         * m4/longlong.m4: Likewise.
39762         * m4/ls-mntd-fs.m4: Likewise.
39763         * m4/lstat.m4: Likewise.
39764         * m4/malloc.m4: Likewise.
39765         * m4/mathl.m4: Likewise.
39766         * m4/mbrtowc.m4: Likewise.
39767         * m4/mbstate_t.m4: Likewise.
39768         * m4/mbswidth.m4: Likewise.
39769         * m4/memchr.m4: Likewise.
39770         * m4/memcmp.m4: Likewise.
39771         * m4/memcpy.m4: Likewise.
39772         * m4/memmem.m4: Likewise.
39773         * m4/memmove.m4: Likewise.
39774         * m4/mempcpy.m4: Likewise.
39775         * m4/memrchr.m4: Likewise.
39776         * m4/memset.m4: Likewise.
39777         * m4/minmax.m4: Likewise.
39778         * m4/mkdir-slash.m4: Likewise.
39779         * m4/mkdtemp.m4: Likewise.
39780         * m4/mktime.m4: Likewise.
39781         * m4/mmap-anon.m4: Likewise.
39782         * m4/mountlist.m4: Likewise.
39783         * m4/nanosleep.m4: Likewise.
39784         * m4/nls.m4: Likewise.
39785         * m4/nocrash.m4: Likewise.
39786         * m4/open.m4: Likewise.
39787         * m4/openat.m4: Likewise.
39788         * m4/openmp.m4: Likewise.
39789         * m4/pathmax.m4: Likewise.
39790         * m4/perl.m4: Likewise.
39791         * m4/physmem.m4: Likewise.
39792         * m4/pipe.m4: Likewise.
39793         * m4/po.m4: Likewise.
39794         * m4/poll.m4: Likewise.
39795         * m4/posixtm.m4: Likewise.
39796         * m4/posixver.m4: Likewise.
39797         * m4/printf-frexp.m4: Likewise.
39798         * m4/printf-frexpl.m4: Likewise.
39799         * m4/printf-posix.m4: Likewise.
39800         * m4/printf-posix-rpl.m4: Likewise.
39801         * m4/printf.m4: Likewise.
39802         * m4/progtest.m4: Likewise.
39803         * m4/putenv.m4: Likewise.
39804         * m4/readline.m4: Likewise.
39805         * m4/readlink.m4: Likewise.
39806         * m4/readutmp.m4: Likewise.
39807         * m4/realloc.m4: Likewise.
39808         * m4/regex.m4: Likewise.
39809         * m4/relocatable.m4: Likewise.
39810         * m4/relocatable-lib.m4: Likewise.
39811         * m4/rename-dest-slash.m4: Likewise.
39812         * m4/rename.m4: Likewise.
39813         * m4/rmdir-errno.m4: Likewise.
39814         * m4/rmdir.m4: Likewise.
39815         * m4/roundf.m4: Likewise.
39816         * m4/roundl.m4: Likewise.
39817         * m4/rpmatch.m4: Likewise.
39818         * m4/save-cwd.m4: Likewise.
39819         * m4/selinux-selinux-h.m4: Likewise.
39820         * m4/setenv.m4: Likewise.
39821         * m4/settime.m4: Likewise.
39822         * m4/sig2str.m4: Likewise.
39823         * m4/sig_atomic_t.m4: Likewise.
39824         * m4/signalblocking.m4: Likewise.
39825         * m4/signbit.m4: Likewise.
39826         * m4/sigpipe.m4: Likewise.
39827         * m4/sockets.m4: Likewise.
39828         * m4/sockpfaf.m4: Likewise.
39829         * m4/st_dm_mode.m4: Likewise.
39830         * m4/stat-time.m4: Likewise.
39831         * m4/stdbool.m4: Likewise.
39832         * m4/stdint.m4: Likewise.
39833         * m4/stdint_h.m4: Likewise.
39834         * m4/stpcpy.m4: Likewise.
39835         * m4/stpncpy.m4: Likewise.
39836         * m4/strcase.m4: Likewise.
39837         * m4/strchrnul.m4: Likewise.
39838         * m4/strcspn.m4: Likewise.
39839         * m4/strdup.m4: Likewise.
39840         * m4/strftime.m4: Likewise.
39841         * m4/strndup.m4: Likewise.
39842         * m4/strnlen.m4: Likewise.
39843         * m4/strpbrk.m4: Likewise.
39844         * m4/strptime.m4: Likewise.
39845         * m4/strsep.m4: Likewise.
39846         * m4/strtod.m4: Likewise.
39847         * m4/strtoimax.m4: Likewise.
39848         * m4/strtok_r.m4: Likewise.
39849         * m4/strtol.m4: Likewise.
39850         * m4/strtoll.m4: Likewise.
39851         * m4/strtoul.m4: Likewise.
39852         * m4/strtoull.m4: Likewise.
39853         * m4/strtoumax.m4: Likewise.
39854         * m4/strverscmp.m4: Likewise.
39855         * m4/threadlib.m4: Likewise.
39856         * m4/timegm.m4: Likewise.
39857         * m4/tm_gmtoff.m4: Likewise.
39858         * m4/tmpdir.m4: Likewise.
39859         * m4/tmpfile.m4: Likewise.
39860         * m4/tzset.m4: Likewise.
39861         * m4/uintmax_t.m4: Likewise.
39862         * m4/unlinkdir.m4: Likewise.
39863         * m4/unlocked-io.m4: Likewise.
39864         * m4/uptime.m4: Likewise.
39865         * m4/userspec.m4: Likewise.
39866         * m4/utimbuf.m4: Likewise.
39867         * m4/utime.m4: Likewise.
39868         * m4/utimes-null.m4: Likewise.
39869         * m4/utimes.m4: Likewise.
39870         * m4/vararrays.m4: Likewise.
39871         * m4/vasnprintf.m4: Likewise.
39872         * m4/vfprintf-posix.m4: Likewise.
39873         * m4/vprintf-posix.m4: Likewise.
39874         * m4/wait-process.m4: Likewise.
39875         * m4/wchar_t.m4: Likewise.
39876         * m4/wint_t.m4: Likewise.
39877         * m4/write-any-file.m4: Likewise.
39878         * m4/yield.m4: Likewise.
39879
39880 2009-01-13  Bruno Haible  <bruno@clisp.org>
39881
39882         Avoid test-copy-file.sh failures when ACL support insufficient.
39883         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39884         TESTS_ENVIRONMENT.
39885         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39886         Reported by Jim Meyering.
39887
39888 2009-01-13  Bruno Haible  <bruno@clisp.org>
39889
39890         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39891         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39892         * modules/unistdio/u8-printf-parse (Files): Likewise.
39893         * modules/unistdio/u32-printf-parse (Files): Likewise.
39894         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39895
39896 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39897
39898         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39899         and m4/inttypes_h.m4 too.
39900
39901 2009-01-12  Eric Blake  <ebb9@byu.net>
39902
39903         tests: IRIX 6.2 cc can't compile -0.0 into .data
39904         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39905         rather than at compile-time.
39906         * tests/test-floorl.c (minus_zero): Likewise.
39907         * tests/test-frexpl.c (minus_zero): Likewise.
39908         * tests/test-isnan.c (minus_zerol): Likewise.
39909         * tests/test-isnanl.h (minus_zero): Likewise.
39910         * tests/test-ldexpl.c (minus_zero): Likewise.
39911         * tests/test-roundl.c (minus_zero): Likewise.
39912         * tests/test-signbit.c (minus_zerol): Likewise.
39913         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39914         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39915         * tests/test-truncl.c (minus_zero): Likewise.
39916         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39917         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39918         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39919
39920 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39921
39922         regex: fix glibc bug 9697
39923         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39924         handling.
39925
39926 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39927
39928         regex: fix glibc bug 697
39929         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39930         being NULL also if there are no backreferences.
39931
39932 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39933
39934         regex: merge glibc changes
39935         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39936         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39937         re_string_skip_chars, re_string_reconstruct): Likewise.
39938         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39939
39940 2009-01-07  Jim Meyering  <meyering@redhat.com>
39941
39942         poll: filter through cppi
39943         * lib/poll.c: Indent cpp directives to reflect nesting.
39944
39945 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39946
39947         poll: don't return uninitialized
39948         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39949
39950 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39951
39952         avoid compile failure on AIX 6.1
39953         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39954         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39955
39956 2009-01-04  Jim Meyering  <meyering@redhat.com>
39957
39958         remove duplicate inclusion of <stdio.h>
39959         * tests/test-fprintf-posix.c: Likewise.
39960         * tests/test-printf-posix.c: Likewise.
39961         * tests/test-snprintf-posix.c: Likewise.
39962         * tests/test-sprintf-posix.c: Likewise.
39963         * tests/test-vasprintf-posix.c: Likewise.
39964         * tests/test-vfprintf-posix.c: Likewise.
39965         * tests/test-vprintf-posix.c: Likewise.
39966         * tests/test-vsnprintf-posix.c: Likewise.
39967         * tests/test-vsprintf-posix.c: Likewise.
39968
39969 2009-01-03  Jim Meyering  <meyering@redhat.com>
39970
39971         gnulib-tool: fix sed-based filtering
39972         * gnulib-tool (func_filter_filelist): Remove extra backslash
39973         in sed_fff_filter definition.
39974
39975 2009-01-02  Jim Meyering  <meyering@redhat.com>
39976
39977         strftime: avoid compilation failure on Solaris 2.6
39978         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39979         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39980         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39981         be available.  Reported by Tom G. Christensen.  Details in
39982         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39983
39984 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39985             Bruno Haible  <bruno@clisp.org>
39986
39987         Speed up gnulib-tool by doing more string processing through shell
39988         built-ins.
39989         * gnulib-tool (fast_func_append): New variable.
39990         (func_remove_prefix, func_remove_suffix): New functions.
39991         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39992         (func_filter_filelist): New function.
39993         (func_get_dependencies): Use func_remove_suffix instead of sed.
39994         (func_get_automake_snippet): Use func_filter_filelist instead of a
39995         subshell and sed invocation.
39996
39997 2009-01-01  Bruno Haible  <bruno@clisp.org>
39998
39999         Fix a security bug.
40000         * gnulib-tool (func_import, import, update): Don't allow the characters
40001         '"', '$', '`', '\' in macro arguments that become part of commands that
40002         are evaluated.
40003
40004 2009-01-01  Bruno Haible  <bruno@clisp.org>
40005
40006         * gnulib-tool (func_reset_sigpipe): Add more comments.
40007
40008 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40009
40010         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40011         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40012         already know the answer.
40013
40014 2009-01-01  Jim Meyering  <meyering@redhat.com>
40015
40016         * lib/version-etc.c (version_etc_va): Update copyright year.
40017
40018 2008-12-30  Bruno Haible  <bruno@clisp.org>
40019
40020         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40021         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40022         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40023
40024 2008-12-29  Eric Blake  <ebb9@byu.net>
40025
40026         multiarch: avoid autoconf AC_REQUIRE bug
40027         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40028         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40029         2.63 and older.
40030         Reported by Bruno Haible, and analyzed in
40031         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40032
40033 2008-12-29  Bruno Haible  <bruno@clisp.org>
40034
40035         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40036         files in subdirectories correctly.
40037         Reported by Ralf Wildenhues.
40038
40039 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40040
40041         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40042         rather than 'join FILE -', for Solaris join.
40043
40044 2008-12-29  Bruno Haible  <bruno@clisp.org>
40045
40046         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40047         quoting.
40048         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40049         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40050         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40051         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40052         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40053         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40054         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40055         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40056         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40057         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40058         * m4/nls.m4 (AM_NLS): Likewise.
40059         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40060         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40061         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40062         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40063         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40064         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40065         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40066         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40067         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40068         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40069         * m4/xsize.m4 (gl_XSIZE): Likewise.
40070         Suggested by Jim Meyering.
40071
40072 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40073
40074         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40075         * lib/parse-duration.c: use a switch instead of cascading if's.
40076
40077 2008-12-29  Eric Blake  <ebb9@byu.net>
40078
40079         wchar.h: supply WEOF on Irix 5.3
40080         * lib/wchar.in.h (wint_t): Also supply WEOF.
40081         * lib/wctype.in.h (wint_t): Likewise.
40082         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40083         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40084         Reported by Tom G. Christensen.
40085
40086 2008-12-26  Bruno Haible  <bruno@clisp.org>
40087
40088         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40089         i486, i586, i686.
40090
40091 2008-12-26  Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40094
40095 2008-12-26  Bruno Haible  <bruno@clisp.org>
40096
40097         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40098         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40099         not __STDC_CONSTANT_MACROS.
40100         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40101
40102 2008-12-25  Bruno Haible  <bruno@clisp.org>
40103
40104         Add support for universal builds to vasnprintf.
40105         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40106         universal builds, guess no.
40107         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40108         * modules/vasprintf-posix (Depends-on): Likewise.
40109         * modules/fprintf-posix (Depends-on): Likewise.
40110         * modules/vfprintf-posix (Depends-on): Likewise.
40111         * modules/snprintf-posix (Depends-on): Likewise.
40112         * modules/vsnprintf-posix (Depends-on): Likewise.
40113         * modules/sprintf-posix (Depends-on): Likewise.
40114         * modules/vsprintf-posix (Depends-on): Likewise.
40115         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40116         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40117         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40118         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40119         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40120         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40121         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40122
40123         Add support for universal builds to <inttypes.h>.
40124         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40125         _SCNu64_PREFIX): In Apple
40126         universal builds, define directly, using _LP64.
40127         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40128         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40129         * modules/inttypes (Depends-on): Add multiarch.
40130         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40131
40132         Add support for universal builds to <stdint.h>.
40133         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40134         universal builds, define directly, using _LP64.
40135         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40136         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40137         and size_t.
40138         * modules/stdint (Depends-on): Add multiarch.
40139         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40140
40141         New module 'multiarch'.
40142         * modules/multiarch: New file.
40143         * m4/multiarch.m4: New file.
40144
40145 2008-12-25  Bruno Haible  <bruno@clisp.org>
40146
40147         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40148
40149 2008-12-25  Bruno Haible  <bruno@clisp.org>
40150
40151         * modules/btowc (License): Relicense under LGPLv2+.
40152         * modules/mbsinit (License): Likewise.
40153         * modules/mbrtowc (License): Likewise.
40154         * modules/wcrtomb (License): Likewise.
40155         * modules/streq (License): Likewise.
40156         Reported by David Lutterkort <lutter@redhat.com>.
40157
40158 2008-12-23  Bruno Haible  <bruno@clisp.org>
40159
40160         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40161
40162 2008-12-23  Bruno Haible  <bruno@clisp.org>
40163
40164         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40165         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40166         GETADDRINFO_LIB, not in LIBS.
40167         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40168         * modules/canon-host (Link): Likewise.
40169         * NEWS: Mention the change.
40170         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40171         GETADDRINFO_LIB.
40172
40173 2008-12-22  Bruno Haible  <bruno@clisp.org>
40174
40175         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40176         * doc/posix-functions/iswalpha_l.texi: Likewise.
40177         * doc/posix-functions/iswblank_l.texi: Likewise.
40178         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40179         * doc/posix-functions/iswctype_l.texi: Likewise.
40180         * doc/posix-functions/iswdigit_l.texi: Likewise.
40181         * doc/posix-functions/iswgraph_l.texi: Likewise.
40182         * doc/posix-functions/iswlower_l.texi: Likewise.
40183         * doc/posix-functions/iswprint_l.texi: Likewise.
40184         * doc/posix-functions/iswpunct_l.texi: Likewise.
40185         * doc/posix-functions/iswspace_l.texi: Likewise.
40186         * doc/posix-functions/iswupper_l.texi: Likewise.
40187         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40188         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40189         * doc/posix-functions/open_wmemstream.texi: Likewise.
40190         * doc/posix-functions/swscanf.texi: Likewise.
40191         * doc/posix-functions/towctrans_l.texi: Likewise.
40192         * doc/posix-functions/towlower.texi: Likewise.
40193         * doc/posix-functions/towlower_l.texi: Likewise.
40194         * doc/posix-functions/towupper.texi: Likewise.
40195         * doc/posix-functions/towupper_l.texi: Likewise.
40196         * doc/posix-functions/vfwprintf.texi: Likewise.
40197         * doc/posix-functions/vfwscanf.texi: Likewise.
40198         * doc/posix-functions/vswscanf.texi: Likewise.
40199         * doc/posix-functions/vwprintf.texi: Likewise.
40200         * doc/posix-functions/vwscanf.texi: Likewise.
40201         * doc/posix-functions/wcpcpy.texi: Likewise.
40202         * doc/posix-functions/wcpncpy.texi: Likewise.
40203         * doc/posix-functions/wcscasecmp.texi: Likewise.
40204         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40205         * doc/posix-functions/wcscoll_l.texi: Likewise.
40206         * doc/posix-functions/wcsdup.texi: Likewise.
40207         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40208         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40209         * doc/posix-functions/wcsnlen.texi: Likewise.
40210         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40211         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40212         * doc/posix-functions/wctrans_l.texi: Likewise.
40213         * doc/posix-functions/wctype_l.texi: Likewise.
40214         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40215         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40216         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40217         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40218         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40219         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40220         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40221         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40222         * doc/glibc-functions/wcschrnul.texi: Likewise.
40223         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40224         * doc/glibc-functions/wcstod_l.texi: Likewise.
40225         * doc/glibc-functions/wcstof_l.texi: Likewise.
40226         * doc/glibc-functions/wcstol_l.texi: Likewise.
40227         * doc/glibc-functions/wcstold_l.texi: Likewise.
40228         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40229         * doc/glibc-functions/wcstoq.texi: Likewise.
40230         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40231         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40232         * doc/glibc-functions/wcstouq.texi: Likewise.
40233         * doc/glibc-functions/wmempcpy.texi: Likewise.
40234
40235 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40236             Eric Blake  <ebb9@byu.net>
40237             Paolo Bonzini  <bonzini@gnu.org>
40238             Bruno Haible  <bruno@clisp.org>
40239
40240         Make c-stack work on Haiku.
40241         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40242         (c_stack_action): Use SA_ONSTACK flag.
40243
40244 2008-12-22  Bruno Haible  <bruno@clisp.org>
40245
40246         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40247
40248 2008-12-22  Bruno Haible  <bruno@clisp.org>
40249
40250         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40251         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40252         being overridden.
40253         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40254         New macros.
40255         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40256         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40257         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40258         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40259
40260 2008-12-22  Bruno Haible  <bruno@clisp.org>
40261
40262         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40263         from test code.
40264
40265 2008-12-22  Eric Blake  <ebb9@byu.net>
40266
40267         Avoid gcc warnings on cygwin.
40268         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40269         Avoid unused variable.
40270         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40271         Likewise.
40272
40273 2008-12-22  Bruno Haible  <bruno@clisp.org>
40274
40275         Remove HAVE_MBRTOWC conditionals.
40276         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40277         (mbscasecmp): Assume mbrtowc function.
40278         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40279         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40280         * lib/mbschr.c: Include mbuiter.h unconditionally.
40281         (mbschr): Assume mbrtowc function.
40282         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40283         (mbscspn): Assume mbrtowc function.
40284         * lib/mbslen.c: Include mbuiter.h unconditionally.
40285         (mbslen): Assume mbrtowc function.
40286         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40287         (mbsncasecmp): Assume mbrtowc function.
40288         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40289         (mbsnlen): Assume mbrtowc function.
40290         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40291         (mbspbrk): Assume mbrtowc function.
40292         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40293         (mbspcasecmp): Assume mbrtowc function.
40294         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40295         (mbsrchr): Assume mbrtowc function.
40296         * lib/mbssep.c: Include mbuiter.h unconditionally.
40297         (mbssep): Assume mbrtowc function.
40298         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40299         (mbsspn): Assume mbrtowc function.
40300         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40301         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40302         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40303         (mbstok_r): Assume mbrtowc function.
40304         * lib/propername.c: Include mbuiter.h unconditionally.
40305         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40306         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40307         (trim2): Assume mbrtowc function.
40308         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40309         (mbsnwidth): Assume mbrtowc function.
40310         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40311         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40312         fallback definitions.
40313         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40314
40315 2008-12-22  Bruno Haible  <bruno@clisp.org>
40316
40317         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40318
40319 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40320
40321         * modules/regex: Request emulations for the mb*/wc* functions we need.
40322         * m4/regex.m4: Don't look for those functions here.
40323         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40324
40325 2008-12-22  Bruno Haible  <bruno@clisp.org>
40326
40327         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40328
40329 2008-12-21  Bruno Haible  <bruno@clisp.org>
40330
40331         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40332         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40333         (Include): Remove conditionalization.
40334         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40335         (Include): Remove conditionalization.
40336         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40337         (Include): Remove conditionalization.
40338         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40339         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40340         * NEWS: Mention the change.
40341         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40342         via Sergey Poznyakoff <gray@gnu.org.ua>.
40343
40344 2008-12-21  Bruno Haible  <bruno@clisp.org>
40345
40346         * MODULES.html.sh (Extended multibyte and wide character utilities
40347         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40348         wcrtomb, wcsrtombs.
40349         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40350         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40351         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40352         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40353
40354 2008-12-21  Bruno Haible  <bruno@clisp.org>
40355
40356         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40357
40358 2008-12-21  Bruno Haible  <bruno@clisp.org>
40359
40360         * modules/wcsnrtombs-tests: New file.
40361         * tests/test-wcsnrtombs1.sh: New file.
40362         * tests/test-wcsnrtombs2.sh: New file.
40363         * tests/test-wcsnrtombs3.sh: New file.
40364         * tests/test-wcsnrtombs4.sh: New file.
40365         * tests/test-wcsnrtombs.c: New file.
40366
40367         New module 'wcsnrtombs'.
40368         * lib/wchar.in.h (wcsnrtombs): New declaration.
40369         * lib/wcsnrtombs.c: New file.
40370         * lib/wcsrtombs-state.c: New file.
40371         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40372         (internal_state): Remove variable.
40373         * m4/wcsnrtombs.m4: New file.
40374         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40375         compilation units.
40376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40377         HAVE_WCSNRTOMBS.
40378         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40379         HAVE_WCSNRTOMBS.
40380         * modules/wcsnrtombs: New file.
40381         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40382         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40383
40384 2008-12-21  Bruno Haible  <bruno@clisp.org>
40385
40386         * modules/wcsrtombs-tests: New file.
40387         * tests/test-wcsrtombs1.sh: New file.
40388         * tests/test-wcsrtombs2.sh: New file.
40389         * tests/test-wcsrtombs3.sh: New file.
40390         * tests/test-wcsrtombs4.sh: New file.
40391         * tests/test-wcsrtombs.c: New file.
40392
40393         New module 'wcsrtombs'.
40394         * lib/wchar.in.h (wcsrtombs): New declaration.
40395         * lib/wcsrtombs.c: New file.
40396         * m4/wcsrtombs.m4: New file.
40397         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40398         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40400         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40401         * modules/wcsrtombs: New file.
40402         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40403         bugs.
40404
40405 2008-12-21  Bruno Haible  <bruno@clisp.org>
40406
40407         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40408         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40409         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40410         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40411         if not correct.
40412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40413         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40414         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40415         m4/locale-zh.m4, m4/codeset.m4.
40416         * doc/posix-functions/wcrtomb.texi: Document the bug.
40417
40418 2008-12-21  Bruno Haible  <bruno@clisp.org>
40419
40420         Work around a btowc() bug on IRIX 6.5.
40421         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40422         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40423         REPLACE_WTOBC if not.
40424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40425         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40426         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40427
40428 2008-12-21  Bruno Haible  <bruno@clisp.org>
40429
40430         * modules/wcrtomb-tests: New file.
40431         * tests/test-wcrtomb.sh: New file.
40432         * tests/test-wcrtomb.c: New file.
40433
40434         New module 'wcrtomb'.
40435         * lib/wchar.in.h (wcrtomb): New declaration.
40436         * lib/wcrtomb.c: New file.
40437         * m4/wcrtomb.m4: New file.
40438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40439         HAVE_WCRTOMB.
40440         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40441         HAVE_WCRTOMB.
40442         * modules/wcrtomb: New file.
40443         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40444
40445 2008-12-21  Bruno Haible  <bruno@clisp.org>
40446
40447         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40448         * modules/mbsrtowcs (Files): Likewise.
40449         * modules/wctob (Files): Likewise.
40450         * modules/c-strcase-tests (Files): Likewise.
40451         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40452         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40453         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40454         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40455         * modules/vasnprintf-posix-tests (Files): Likewise.
40456
40457 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40458
40459         gitlog-to-changelog: pass all command-line arguments to git-log
40460         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40461         it is sometimes convenient to filter the commits in various ways.
40462         gitlog-to-changelog only allows --since to specify a start date,
40463         but git-log itself supports many other filtering mechanisms.
40464         At the moment, I want to filter by branch name.  Rather than
40465         adding a --branch option to gitlog-to-changelog, it seems more
40466         flexible to simply pass all options directly to git-log and let
40467         git do the work.  Notice that this effectively makes --since a
40468         redundant option for gitlog-to-changelog, but removing it would
40469         require current usage to change since calls would then require
40470         an additional '--'.
40471
40472 2008-12-21  Bruno Haible  <bruno@clisp.org>
40473
40474         * modules/mbsnrtowcs-tests: New file.
40475         * tests/test-mbsnrtowcs1.sh: New file.
40476         * tests/test-mbsnrtowcs2.sh: New file.
40477         * tests/test-mbsnrtowcs3.sh: New file.
40478         * tests/test-mbsnrtowcs4.sh: New file.
40479         * tests/test-mbsnrtowcs.c: New file.
40480
40481         New module 'mbsnrtowcs'.
40482         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40483         * lib/mbsnrtowcs.c: New file.
40484         * lib/mbsrtowcs-state.c: New file.
40485         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40486         (internal_state): Remove variable.
40487         * m4/mbsnrtowcs.m4: New file.
40488         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40489         compilation units.
40490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40491         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40492         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40493         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40494         * modules/mbsnrtowcs: New file.
40495         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40496         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40497         portability problem.
40498
40499 2008-12-21  Bruno Haible  <bruno@clisp.org>
40500
40501         Work around mbsrtowcs bug.
40502         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40503         (gl_FUNC_MBSRTOWCS): Invoke it.
40504         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40505         m4/locale-zh.m4.
40506         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40507
40508 2008-12-21  Bruno Haible  <bruno@clisp.org>
40509
40510         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40511
40512 2008-12-21  Bruno Haible  <bruno@clisp.org>
40513
40514         Update doc for AIX.
40515         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40516         16-bit wchar_t type.
40517         * doc/posix-functions/btowc.texi: Likewise.
40518         * doc/posix-functions/fgetwc.texi: Likewise.
40519         * doc/posix-functions/fgetws.texi: Likewise.
40520         * doc/posix-functions/fputwc.texi: Likewise.
40521         * doc/posix-functions/fputws.texi: Likewise.
40522         * doc/posix-functions/fwide.texi: Likewise.
40523         * doc/posix-functions/fwprintf.texi: Likewise.
40524         * doc/posix-functions/fwscanf.texi: Likewise.
40525         * doc/posix-functions/getwchar.texi: Likewise.
40526         * doc/posix-functions/getwc.texi: Likewise.
40527         * doc/posix-functions/iswalnum.texi: Likewise.
40528         * doc/posix-functions/iswalpha.texi: Likewise.
40529         * doc/posix-functions/iswblank.texi: Likewise.
40530         * doc/posix-functions/iswcntrl.texi: Likewise.
40531         * doc/posix-functions/iswctype.texi: Likewise.
40532         * doc/posix-functions/iswdigit.texi: Likewise.
40533         * doc/posix-functions/iswgraph.texi: Likewise.
40534         * doc/posix-functions/iswlower.texi: Likewise.
40535         * doc/posix-functions/iswprint.texi: Likewise.
40536         * doc/posix-functions/iswpunct.texi: Likewise.
40537         * doc/posix-functions/iswspace.texi: Likewise.
40538         * doc/posix-functions/iswupper.texi: Likewise.
40539         * doc/posix-functions/iswxdigit.texi: Likewise.
40540         * doc/posix-functions/mbrtowc.texi: Likewise.
40541         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40542         * doc/posix-functions/mbstowcs.texi: Likewise.
40543         * doc/posix-functions/mbtowc.texi: Likewise.
40544         * doc/posix-functions/putwchar.texi: Likewise.
40545         * doc/posix-functions/putwc.texi: Likewise.
40546         * doc/posix-functions/swprintf.texi: Likewise.
40547         * doc/posix-functions/tolower.texi: Likewise.
40548         * doc/posix-functions/toupper.texi: Likewise.
40549         * doc/posix-functions/towctrans.texi: Likewise.
40550         * doc/posix-functions/ungetwc.texi: Likewise.
40551         * doc/posix-functions/vswprintf.texi: Likewise.
40552         * doc/posix-functions/wcrtomb.texi: Likewise.
40553         * doc/posix-functions/wcscat.texi: Likewise.
40554         * doc/posix-functions/wcschr.texi: Likewise.
40555         * doc/posix-functions/wcscmp.texi: Likewise.
40556         * doc/posix-functions/wcscoll.texi: Likewise.
40557         * doc/posix-functions/wcscpy.texi: Likewise.
40558         * doc/posix-functions/wcscspn.texi: Likewise.
40559         * doc/posix-functions/wcsftime.texi: Likewise.
40560         * doc/posix-functions/wcslen.texi: Likewise.
40561         * doc/posix-functions/wcsncat.texi: Likewise.
40562         * doc/posix-functions/wcsncmp.texi: Likewise.
40563         * doc/posix-functions/wcsncpy.texi: Likewise.
40564         * doc/posix-functions/wcspbrk.texi: Likewise.
40565         * doc/posix-functions/wcsrchr.texi: Likewise.
40566         * doc/posix-functions/wcsrtombs.texi: Likewise.
40567         * doc/posix-functions/wcsspn.texi: Likewise.
40568         * doc/posix-functions/wcsstr.texi: Likewise.
40569         * doc/posix-functions/wcstod.texi: Likewise.
40570         * doc/posix-functions/wcstof.texi: Likewise.
40571         * doc/posix-functions/wcstoimax.texi: Likewise.
40572         * doc/posix-functions/wcstok.texi: Likewise.
40573         * doc/posix-functions/wcstold.texi: Likewise.
40574         * doc/posix-functions/wcstoll.texi: Likewise.
40575         * doc/posix-functions/wcstol.texi: Likewise.
40576         * doc/posix-functions/wcstombs.texi: Likewise.
40577         * doc/posix-functions/wcstoull.texi: Likewise.
40578         * doc/posix-functions/wcstoul.texi: Likewise.
40579         * doc/posix-functions/wcstoumax.texi: Likewise.
40580         * doc/posix-functions/wcswidth.texi: Likewise.
40581         * doc/posix-functions/wcsxfrm.texi: Likewise.
40582         * doc/posix-functions/wctob.texi: Likewise.
40583         * doc/posix-functions/wctomb.texi: Likewise.
40584         * doc/posix-functions/wctrans.texi: Likewise.
40585         * doc/posix-functions/wctype.texi: Likewise.
40586         * doc/posix-functions/wcwidth.texi: Likewise.
40587         * doc/posix-functions/wmemchr.texi: Likewise.
40588         * doc/posix-functions/wmemcmp.texi: Likewise.
40589         * doc/posix-functions/wmemcpy.texi: Likewise.
40590         * doc/posix-functions/wmemmove.texi: Likewise.
40591         * doc/posix-functions/wmemset.texi: Likewise.
40592         * doc/posix-functions/wprintf.texi: Likewise.
40593         * doc/posix-functions/wscanf.texi: Likewise.
40594
40595 2008-12-21  Bruno Haible  <bruno@clisp.org>
40596
40597         Update doc for HP-UX 11.11.
40598         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40599         in HP-UX version 11.00, not in all versions of HP-UX 11.
40600         * doc/posix-functions/fwide.texi: Likewise.
40601         * doc/posix-functions/fwprintf.texi: Likewise.
40602         * doc/posix-functions/fwscanf.texi: Likewise.
40603         * doc/posix-functions/inet_ntop.texi: Likewise.
40604         * doc/posix-functions/inet_pton.texi: Likewise.
40605         * doc/posix-functions/mbrlen.texi: Likewise.
40606         * doc/posix-functions/mbrtowc.texi: Likewise.
40607         * doc/posix-functions/mbsinit.texi: Likewise.
40608         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40609         * doc/posix-functions/swprintf.texi: Likewise.
40610         * doc/posix-functions/swscanf.texi: Likewise.
40611         * doc/posix-functions/towctrans.texi: Likewise.
40612         * doc/posix-functions/vfwprintf.texi: Likewise.
40613         * doc/posix-functions/vswprintf.texi: Likewise.
40614         * doc/posix-functions/vwprintf.texi: Likewise.
40615         * doc/posix-functions/wcrtomb.texi: Likewise.
40616         * doc/posix-functions/wcsrtombs.texi: Likewise.
40617         * doc/posix-functions/wcsstr.texi: Likewise.
40618         * doc/posix-functions/wctob.texi: Likewise.
40619         * doc/posix-functions/wctrans.texi: Likewise.
40620         * doc/posix-functions/wmemchr.texi: Likewise.
40621         * doc/posix-functions/wmemcmp.texi: Likewise.
40622         * doc/posix-functions/wmemcpy.texi: Likewise.
40623         * doc/posix-functions/wmemmove.texi: Likewise.
40624         * doc/posix-functions/wmemset.texi: Likewise.
40625         * doc/posix-functions/wprintf.texi: Likewise.
40626         * doc/posix-functions/wscanf.texi: Likewise.
40627
40628 2008-12-21  Bruno Haible  <bruno@clisp.org>
40629
40630         Work around a portability problem.
40631         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40632         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40633
40634 2008-12-20  Bruno Haible  <bruno@clisp.org>
40635
40636         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40637         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40638         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40640         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40641
40642         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40643         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40644         set.
40645         (GNULIB_defined_mbstate_t): New macro.
40646         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40647         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40648         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40649         reuses the system's mbrtowc function but works around the bugs.
40650         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40651         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40652         macros.
40653         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40654         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40655         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40656         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40657         REPLACE_MBSINIT if mbsinit needs to be overridden.
40658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40659         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40660         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40661         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40662         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40663         m4/locale-zh.m4.
40664         (Depends): Add mbsinit.
40665         * modules/mbsinit (Depends): Add mbrtowc.
40666         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40667
40668 2008-12-20  Bruno Haible  <bruno@clisp.org>
40669
40670         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40671         so that there are no conversion errors on AIX.
40672         * tests/test-mbsrtowcs.c (main): LIkewise.
40673
40674 2008-12-20  Bruno Haible  <bruno@clisp.org>
40675
40676         Work around wctob bug on Solaris <= 9.
40677         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40678         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40680         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40681         * modules/wctob (Files): Add m4/locale-fr.m4.
40682         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40683
40684 2008-12-20  Bruno Haible  <bruno@clisp.org>
40685
40686         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40687         /dev/null.
40688         * tests/test-select-in.sh: Likewise.
40689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40690
40691 2008-12-20  Bruno Haible  <bruno@clisp.org>
40692
40693         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40694         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40695         Cygwin 1.5.x.
40696
40697 2008-12-20  Bruno Haible  <bruno@clisp.org>
40698
40699         Ensure mbstate_t is defined on HP-UX 11.11.
40700         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40701         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40702         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40703         AC_USE_SYSTEM_EXTENSIONS.
40704         * modules/fnmatch (Depends-on): Add extensions.
40705         * modules/mbrlen (Depends-on): Likewise.
40706         * modules/mbrtowc (Depends-on): Likewise.
40707         * modules/mbsinit (Depends-on): Likewise.
40708         * modules/mbsrtowcs (Depends-on): Likewise.
40709         * modules/mbswidth (Depends-on): Likewise.
40710         * modules/quotearg (Depends-on): Likewise.
40711         * modules/strftime (Depends-on): Likewise.
40712
40713 2008-12-20  Bruno Haible  <bruno@clisp.org>
40714
40715         Ensure wctob is declared on IRIX 6.5.
40716         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40717         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40718         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40720         of HAVE_WCTOB.
40721         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40722         HAVE_WCTOB.
40723         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40724
40725 2008-12-19  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/mbsrtowcs-tests: New file.
40728         * tests/test-mbsrtowcs1.sh: New file.
40729         * tests/test-mbsrtowcs2.sh: New file.
40730         * tests/test-mbsrtowcs3.sh: New file.
40731         * tests/test-mbsrtowcs4.sh: New file.
40732         * tests/test-mbsrtowcs.c: New file.
40733
40734         New module 'mbsrtowcs'.
40735         * lib/wchar.in.h (mbsrtowcs): New declaration.
40736         * lib/mbsrtowcs.c: New file.
40737         * m4/mbsrtowcs.m4: New file.
40738         * modules/mbsrtowcs: New file.
40739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40740         HAVE_MBSRTOWCS.
40741         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40742         HAVE_MBSRTOWCS.
40743         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40744
40745 2008-12-19  Bruno Haible  <bruno@clisp.org>
40746
40747         New module 'mbrlen'.
40748         * lib/wchar.in.h (mbrlen): New declaration.
40749         * lib/mbrlen.c: New file.
40750         * m4/mbrlen.m4: New file.
40751         * modules/mbrlen: New file.
40752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40753         HAVE_MBRLEN.
40754         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40755         HAVE_MBRLEN.
40756         * doc/posix-functions/mbrlen.texi: Document the new module.
40757
40758 2008-12-19  Bruno Haible  <bruno@clisp.org>
40759
40760         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40761         * modules/mbrtowc (Depends-on): Add verify.
40762         Suggested by Paul Eggert.
40763
40764 2008-12-18  Bruno Haible  <bruno@clisp.org>
40765
40766         * modules/mbsinit-tests: New file.
40767         * tests/test-mbsinit.sh: New file.
40768         * tests/test-mbsinit.c: New file.
40769
40770 2008-12-18  Bruno Haible  <bruno@clisp.org>
40771
40772         * modules/mbrtowc-tests: New file.
40773         * tests/test-mbrtowc1.sh: New file.
40774         * tests/test-mbrtowc2.sh: New file.
40775         * tests/test-mbrtowc3.sh: New file.
40776         * tests/test-mbrtowc4.sh: New file.
40777         * tests/test-mbrtowc.c: New file.
40778
40779         New module 'mbrtowc'.
40780         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40781         mbsinit and mbrtowc.
40782         (mbrtowc): New declaration.
40783         * lib/mbrtowc.c: New file.
40784         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40785         * modules/mbrtowc: New file.
40786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40787         HAVE_MBRTOWC.
40788         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40789         HAVE_MBRTOWC.
40790         * doc/posix-functions/mbrtowc.texi: Document the new module.
40791
40792 2008-12-18  Bruno Haible  <bruno@clisp.org>
40793
40794         New module 'wctob'.
40795         * lib/wchar.in.h (wctob): New declaration.
40796         * lib/wctob.c: New file.
40797         * m4/wctob.m4: New file.
40798         * modules/wctob: New file.
40799         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40800         HAVE_WCTOB.
40801         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40802         * doc/posix-functions/wctob.texi: Document the new module.
40803
40804 2008-12-18  Bruno Haible  <bruno@clisp.org>
40805
40806         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40807         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40808
40809 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40810
40811         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40812         G. Christensen" <tgc@jupiterrise.com>.
40813
40814         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40815         G. Christensen" <tgc@jupiterrise.com>.
40816
40817         * lib/flock.c: Need to include string.h.  Reported by "Tom
40818         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40819         <ebb9@byu.net>.
40820
40821 2008-12-18  Bruno Haible  <bruno@clisp.org>
40822
40823         * m4/locale-ja.m4: New file, from GNU gettext.
40824
40825 2008-12-17  Bruno Haible  <bruno@clisp.org>
40826
40827         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40828         Suggested by Eric Blake.
40829
40830 2008-12-17  Bruno Haible  <bruno@clisp.org>
40831
40832         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40833
40834 2008-12-17  Bruno Haible  <bruno@clisp.org>
40835
40836         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40837         * modules/mbsinit (Depends-on): Add verify.
40838         Suggested by Paul Eggert.
40839
40840 2008-12-17  Bruno Haible  <bruno@clisp.org>
40841
40842         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40843         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40844         gl_FUNC_MBRTOWC.
40845         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40846         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40847         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40848         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40849         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40850         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40851         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40852         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40853         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40854         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40855         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40856         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40857         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40858         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40859         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40860         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40861         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40862         * modules/trim (configure.ac): Likewise.
40863
40864 2008-12-17  Bruno Haible  <bruno@clisp.org>
40865
40866         * modules/btowc-tests: New file.
40867         * tests/test-btowc1.sh: New file.
40868         * tests/test-btowc2.sh: New file.
40869         * tests/test-btowc.c: New file.
40870
40871         New module 'btowc'.
40872         * lib/wchar.in.h (btowc): New declaration.
40873         * lib/btowc.c: New file.
40874         * m4/btowc.m4: New file.
40875         * modules/btowc: New file.
40876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40877         HAVE_BTOWC.
40878         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40879         * doc/posix-functions/btowc.texi: Document the new module.
40880
40881 2008-12-17  Bruno Haible  <bruno@clisp.org>
40882
40883         New module 'mbsinit'.
40884         * lib/wchar.in.h (mbsinit): New declaration.
40885         * lib/mbsinit.c: New file.
40886         * m4/mbsinit.m4: New file.
40887         * modules/mbsinit: New file.
40888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40889         HAVE_MBSINIT.
40890         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40891         HAVE_MBSINIT.
40892         * doc/posix-functions/mbsinit.texi: Document the new module.
40893
40894 2008-12-16  Bruno Haible  <bruno@clisp.org>
40895
40896         * lib/unistd.in.h: Add comment.
40897         * tests/test-environ.c: Don't include <stdlib.h>.
40898
40899 2008-12-16  Bruno Haible  <bruno@clisp.org>
40900
40901         * lib/parse-duration.h (parse_duration): Document return value
40902         convention.
40903         * lib/parse-duration.c: Include specification header first. Add
40904         comments.
40905         (_): Remove macro.
40906         (parse_year_month_day, parse_hour_minute_second): Move side effects
40907         outside of strchr call.
40908         (parse_non_iso8601): Move side effects outside of isspace call.
40909         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40910         call.
40911
40912 2008-12-16  Bruno Haible  <bruno@clisp.org>
40913
40914         * tests/test-parse-duration.sh: Produce no output when the test
40915         succeeds.
40916
40917 2008-12-16  Bruno Haible  <bruno@clisp.org>
40918
40919         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40920         expressions.
40921
40922 2008-12-15  Bruno Haible  <bruno@clisp.org>
40923
40924         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40925         * doc/glibc-functions/flistxattr.texi: Likewise.
40926         * doc/glibc-functions/fopencookie.texi: Likewise.
40927         * doc/glibc-functions/fremovexattr.texi: Likewise.
40928         * doc/glibc-functions/fsetxattr.texi: Likewise.
40929         * doc/glibc-functions/getxattr.texi: Likewise.
40930         * doc/glibc-functions/lgetxattr.texi: Likewise.
40931         * doc/glibc-functions/listxattr.texi: Likewise.
40932         * doc/glibc-functions/llistxattr.texi: Likewise.
40933         * doc/glibc-functions/lremovexattr.texi: Likewise.
40934         * doc/glibc-functions/lsetxattr.texi: Likewise.
40935         * doc/glibc-functions/removexattr.texi: Likewise.
40936         * doc/glibc-functions/setxattr.texi: Likewise.
40937         * doc/posix-functions/open_memstream.texi: Likewise.
40938
40939 2008-12-15  Eric Blake  <ebb9@byu.net>
40940
40941         Update doc for cygwin 1.7.
40942         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40943         functions.
40944         * doc/posix-functions/fchmodat.texi: Likewise.
40945         * doc/posix-functions/fchownat.texi: Likewise.
40946         * doc/posix-functions/fdopendir.texi: Likewise.
40947         * doc/posix-functions/fmemopen.texi: Likewise.
40948         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40949         * doc/posix-functions/fstatat.texi: Likewise.
40950         * doc/posix-functions/futimens.texi: Likewise.
40951         * doc/posix-functions/gai_strerror.texi: Likewise.
40952         * doc/posix-functions/getaddrinfo.texi: Likewise.
40953         * doc/posix-functions/getnameinfo.texi: Likewise.
40954         * doc/posix-functions/if_freenameindex.texi: Likewise.
40955         * doc/posix-functions/if_indextoname.texi: Likewise.
40956         * doc/posix-functions/if_nameindex.texi: Likewise.
40957         * doc/posix-functions/if_nametoindex.texi: Likewise.
40958         * doc/posix-functions/insque.texi: Likewise.
40959         * doc/posix-functions/linkat.texi: Likewise.
40960         * doc/posix-functions/llrint.texi: Likewise.
40961         * doc/posix-functions/llrintf.texi: Likewise.
40962         * doc/posix-functions/llrintl.texi: Likewise.
40963         * doc/posix-functions/lockf.texi: Likewise.
40964         * doc/posix-functions/lrintl.texi: Likewise.
40965         * doc/posix-functions/mkdirat.texi: Likewise.
40966         * doc/posix-functions/mkfifoat.texi: Likewise.
40967         * doc/posix-functions/mknodat.texi: Likewise.
40968         * doc/posix-functions/mq_close.texi: Likewise.
40969         * doc/posix-functions/mq_getattr.texi: Likewise.
40970         * doc/posix-functions/mq_notify.texi: Likewise.
40971         * doc/posix-functions/mq_open.texi: Likewise.
40972         * doc/posix-functions/mq_receive.texi: Likewise.
40973         * doc/posix-functions/mq_send.texi: Likewise.
40974         * doc/posix-functions/mq_setattr.texi: Likewise.
40975         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40976         * doc/posix-functions/mq_timedsend.texi: Likewise.
40977         * doc/posix-functions/mq_unlink.texi: Likewise.
40978         * doc/posix-functions/open_memstream.texi: Likewise.
40979         * doc/posix-functions/openat.texi: Likewise.
40980         * doc/posix-functions/posix_fadvise.texi: Likewise.
40981         * doc/posix-functions/posix_fallocate.texi: Likewise.
40982         * doc/posix-functions/posix_madvise.texi: Likewise.
40983         * doc/posix-functions/posix_memalign.texi: Likewise.
40984         * doc/posix-functions/posix_openpt.texi: Likewise.
40985         * doc/posix-functions/readlinkat.texi: Likewise.
40986         * doc/posix-functions/remque.texi: Likewise.
40987         * doc/posix-functions/renameat.texi: Likewise.
40988         * doc/posix-functions/rintl.texi: Likewise.
40989         * doc/posix-functions/sem_unlink.texi: Likewise.
40990         * doc/posix-functions/shm_open.texi: Likewise.
40991         * doc/posix-functions/shm_unlink.texi: Likewise.
40992         * doc/posix-functions/signgam.texi: Likewise.
40993         * doc/posix-functions/sigset.texi: Likewise.
40994         * doc/posix-functions/stpcpy.texi: Likewise.
40995         * doc/posix-functions/stpncpy.texi: Likewise.
40996         * doc/posix-functions/strerror.texi: Likewise.
40997         * doc/posix-functions/strtod.texi: Likewise.
40998         * doc/posix-functions/symlinkat.texi: Likewise.
40999         * doc/posix-functions/unlinkat.texi: Likewise.
41000         * doc/posix-functions/utimensat.texi: Likewise.
41001         * doc/glibc-functions/bindresvport.texi: Likewise.
41002         * doc/glibc-functions/dn_expand.texi: Likewise.
41003         * doc/glibc-functions/exp10.texi: Likewise.
41004         * doc/glibc-functions/exp10f.texi: Likewise.
41005         * doc/glibc-functions/fgetxattr.texi: Likewise.
41006         * doc/glibc-functions/flistxattr.texi: Likewise.
41007         * doc/glibc-functions/fopencookie.texi: Likewise.
41008         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41009         * doc/glibc-functions/fremovexattr.texi: Likewise.
41010         * doc/glibc-functions/fsetxattr.texi: Likewise.
41011         * doc/glibc-functions/getifaddrs.texi: Likewise.
41012         * doc/glibc-functions/getxattr.texi: Likewise.
41013         * doc/glibc-functions/lgetxattr.texi: Likewise.
41014         * doc/glibc-functions/listxattr.texi: Likewise.
41015         * doc/glibc-functions/llistxattr.texi: Likewise.
41016         * doc/glibc-functions/lremovexattr.texi: Likewise.
41017         * doc/glibc-functions/lsetxattr.texi: Likewise.
41018         * doc/glibc-functions/pow10.texi: Likewise.
41019         * doc/glibc-functions/pow10f.texi: Likewise.
41020         * doc/glibc-functions/rcmd_af.texi: Likewise.
41021         * doc/glibc-functions/removexattr.texi: Likewise.
41022         * doc/glibc-functions/res_init.texi: Likewise.
41023         * doc/glibc-functions/res_mkquery.texi: Likewise.
41024         * doc/glibc-functions/res_query.texi: Likewise.
41025         * doc/glibc-functions/res_querydomain.texi: Likewise.
41026         * doc/glibc-functions/res_send.texi: Likewise.
41027         * doc/glibc-functions/rresvport_af.texi: Likewise.
41028         * doc/glibc-functions/setxattr.texi: Likewise.
41029         * doc/glibc-functions/strcasestr.texi: Likewise.
41030
41031 2008-12-15  Bruno Haible  <bruno@clisp.org>
41032
41033         Fix compilation error on OSF/1 4.0.
41034         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41035         <sys/time.h>, simply delegate to the system header.
41036         Reported by Daniel Richard G. <oss@teragram.com>.
41037
41038 2008-12-15  Bruno Haible  <bruno@clisp.org>
41039
41040         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41041         * doc/posix-functions/fchmodat.texi: Likewise.
41042         * doc/posix-functions/fchownat.texi: Likewise.
41043         * doc/posix-functions/fdopendir.texi: Likewise.
41044         * doc/posix-functions/fstatat.texi: Likewise.
41045         * doc/posix-functions/mkdirat.texi: Likewise.
41046         * doc/posix-functions/unlinkat.texi: Likewise.
41047
41048 2008-12-14  Bruno Haible  <bruno@clisp.org>
41049
41050         Update doc for POSIX:2008.
41051         * doc/posix-functions/faccessat.texi: New file.
41052         * doc/posix-functions/fchmodat.texi: New file.
41053         * doc/posix-functions/fchownat.texi: New file.
41054         * doc/posix-functions/fdopendir.texi: New file.
41055         * doc/posix-functions/fstatat.texi: New file.
41056         * doc/posix-functions/futimens.texi: New file.
41057         * doc/posix-functions/linkat.texi: New file.
41058         * doc/posix-functions/mkdirat.texi: New file.
41059         * doc/posix-functions/mkfifoat.texi: New file.
41060         * doc/posix-functions/mknodat.texi: New file.
41061         * doc/posix-functions/open_wmemstream.texi: New file.
41062         * doc/posix-functions/openat.texi: New file.
41063         * doc/posix-functions/psiginfo.texi: New file.
41064         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41065         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41066         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41067         * doc/posix-functions/readlinkat.texi: New file.
41068         * doc/posix-functions/renameat.texi: New file.
41069         * doc/posix-functions/strerror_l.texi: New file.
41070         * doc/posix-functions/symlinkat.texi: New file.
41071         * doc/posix-functions/unlinkat.texi: New file.
41072         * doc/posix-functions/utimensat.texi: New file.
41073         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41074
41075 2008-12-14  Bruno Haible  <bruno@clisp.org>
41076
41077         Update doc for POSIX:2008.
41078         * doc/posix-functions/alphasort.texi: Renamed from
41079         doc/glibc-functions/alphasort.texi.
41080         * doc/posix-functions/dirfd.texi: Renamed from
41081         doc/glibc-functions/dirfd.texi.
41082         * doc/posix-functions/dprintf.texi: Renamed from
41083         doc/glibc-functions/dprintf.texi.
41084         * doc/posix-functions/duplocale.texi: Renamed from
41085         doc/glibc-functions/duplocale.texi.
41086         * doc/posix-functions/fexecve.texi: Renamed from
41087         doc/glibc-functions/fexecve.texi.
41088         * doc/posix-functions/fmemopen.texi: Renamed from
41089         doc/glibc-functions/fmemopen.texi.
41090         * doc/posix-functions/freelocale.texi: Renamed from
41091         doc/glibc-functions/freelocale.texi.
41092         * doc/posix-functions/getdate_err.texi: Renamed from
41093         doc/glibc-functions/getdate_err.texi.
41094         * doc/posix-functions/isalnum_l.texi: Renamed from
41095         doc/glibc-functions/isalnum_l.texi.
41096         * doc/posix-functions/isalpha_l.texi: Renamed from
41097         doc/glibc-functions/isalpha_l.texi.
41098         * doc/posix-functions/isblank_l.texi: Renamed from
41099         doc/glibc-functions/isblank_l.texi.
41100         * doc/posix-functions/iscntrl_l.texi: Renamed from
41101         doc/glibc-functions/iscntrl_l.texi.
41102         * doc/posix-functions/isdigit_l.texi: Renamed from
41103         doc/glibc-functions/isdigit_l.texi.
41104         * doc/posix-functions/isgraph_l.texi: Renamed from
41105         doc/glibc-functions/isgraph_l.texi.
41106         * doc/posix-functions/islower_l.texi: Renamed from
41107         doc/glibc-functions/islower_l.texi.
41108         * doc/posix-functions/isprint_l.texi: Renamed from
41109         doc/glibc-functions/isprint_l.texi.
41110         * doc/posix-functions/ispunct_l.texi: Renamed from
41111         doc/glibc-functions/ispunct_l.texi.
41112         * doc/posix-functions/isspace_l.texi: Renamed from
41113         doc/glibc-functions/isspace_l.texi.
41114         * doc/posix-functions/isupper_l.texi: Renamed from
41115         doc/glibc-functions/isupper_l.texi.
41116         * doc/posix-functions/iswalnum_l.texi: Renamed from
41117         doc/glibc-functions/iswalnum_l.texi.
41118         * doc/posix-functions/iswalpha_l.texi: Renamed from
41119         doc/glibc-functions/iswalpha_l.texi.
41120         * doc/posix-functions/iswblank_l.texi: Renamed from
41121         doc/glibc-functions/iswblank_l.texi.
41122         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41123         doc/glibc-functions/iswcntrl_l.texi.
41124         * doc/posix-functions/iswctype_l.texi: Renamed from
41125         doc/glibc-functions/iswctype_l.texi.
41126         * doc/posix-functions/iswdigit_l.texi: Renamed from
41127         doc/glibc-functions/iswdigit_l.texi.
41128         * doc/posix-functions/iswgraph_l.texi: Renamed from
41129         doc/glibc-functions/iswgraph_l.texi.
41130         * doc/posix-functions/iswlower_l.texi: Renamed from
41131         doc/glibc-functions/iswlower_l.texi.
41132         * doc/posix-functions/iswprint_l.texi: Renamed from
41133         doc/glibc-functions/iswprint_l.texi.
41134         * doc/posix-functions/iswpunct_l.texi: Renamed from
41135         doc/glibc-functions/iswpunct_l.texi.
41136         * doc/posix-functions/iswspace_l.texi: Renamed from
41137         doc/glibc-functions/iswspace_l.texi.
41138         * doc/posix-functions/iswupper_l.texi: Renamed from
41139         doc/glibc-functions/iswupper_l.texi.
41140         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41141         doc/glibc-functions/iswxdigit_l.texi.
41142         * doc/posix-functions/isxdigit_l.texi: Renamed from
41143         doc/glibc-functions/isxdigit_l.texi.
41144         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41145         doc/glibc-functions/mbsnrtowcs.texi.
41146         * doc/posix-functions/mkdtemp.texi: Renamed from
41147         doc/glibc-functions/mkdtemp.texi.
41148         * doc/posix-functions/newlocale.texi: Renamed from
41149         doc/glibc-functions/newlocale.texi.
41150         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41151         doc/glibc-functions/nl_langinfo_l.texi.
41152         * doc/posix-functions/open_memstream.texi: Renamed from
41153         doc/glibc-functions/open_memstream.texi.
41154         * doc/posix-functions/opterr.texi: Renamed from
41155         doc/glibc-functions/opterr.texi.
41156         * doc/posix-functions/optind.texi: Renamed from
41157         doc/glibc-functions/optind.texi.
41158         * doc/posix-functions/optopt.texi: Renamed from
41159         doc/glibc-functions/optopt.texi.
41160         * doc/posix-functions/psignal.texi: Renamed from
41161         doc/glibc-functions/psignal.texi.
41162         * doc/posix-functions/scandir.texi: Renamed from
41163         doc/glibc-functions/scandir.texi.
41164         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41165         doc/glibc-functions/sched_get_priority_min.texi.
41166         * doc/posix-functions/signgam.texi: Renamed from
41167         doc/glibc-functions/signgam.texi.
41168         * doc/posix-functions/stpcpy.texi: Renamed from
41169         doc/glibc-functions/stpcpy.texi.
41170         * doc/posix-functions/stpncpy.texi: Renamed from
41171         doc/glibc-functions/stpncpy.texi.
41172         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41173         doc/glibc-functions/strcasecmp_l.texi.
41174         * doc/posix-functions/strcoll_l.texi: Renamed from
41175         doc/glibc-functions/strcoll_l.texi.
41176         * doc/posix-functions/strfmon_l.texi: Renamed from
41177         doc/glibc-functions/strfmon_l.texi.
41178         * doc/posix-functions/strftime_l.texi: Renamed from
41179         doc/glibc-functions/strftime_l.texi.
41180         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41181         doc/glibc-functions/strncasecmp_l.texi.
41182         * doc/posix-functions/strndup.texi: Renamed from
41183         doc/glibc-functions/strndup.texi.
41184         * doc/posix-functions/strnlen.texi: Renamed from
41185         doc/glibc-functions/strnlen.texi.
41186         * doc/posix-functions/strsignal.texi: Renamed from
41187         doc/glibc-functions/strsignal.texi.
41188         * doc/posix-functions/strxfrm_l.texi: Renamed from
41189         doc/glibc-functions/strxfrm_l.texi.
41190         * doc/posix-functions/timer_gettime.texi: Renamed from
41191         doc/glibc-functions/timer_gettime.texi.
41192         * doc/posix-functions/tolower_l.texi: Renamed from
41193         doc/glibc-functions/tolower_l.texi.
41194         * doc/posix-functions/toupper_l.texi: Renamed from
41195         doc/glibc-functions/toupper_l.texi.
41196         * doc/posix-functions/towctrans_l.texi: Renamed from
41197         doc/glibc-functions/towctrans_l.texi.
41198         * doc/posix-functions/towlower_l.texi: Renamed from
41199         doc/glibc-functions/towlower_l.texi.
41200         * doc/posix-functions/towupper_l.texi: Renamed from
41201         doc/glibc-functions/towupper_l.texi.
41202         * doc/posix-functions/uselocale.texi: Renamed from
41203         doc/glibc-functions/uselocale.texi.
41204         * doc/posix-functions/vdprintf.texi: Renamed from
41205         doc/glibc-functions/vdprintf.texi.
41206         * doc/posix-functions/wcpcpy.texi:
41207         Renamed from doc/glibc-functions/wcpcpy.texi.
41208         * doc/posix-functions/wcpncpy.texi: Renamed from
41209         doc/glibc-functions/wcpncpy.texi.
41210         * doc/posix-functions/wcscasecmp.texi: Renamed from
41211         doc/glibc-functions/wcscasecmp.texi.
41212         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41213         doc/glibc-functions/wcscasecmp_l.texi.
41214         * doc/posix-functions/wcscoll_l.texi: Renamed from
41215         doc/glibc-functions/wcscoll_l.texi.
41216         * doc/posix-functions/wcsdup.texi: Renamed from
41217         doc/glibc-functions/wcsdup.texi.
41218         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41219         doc/glibc-functions/wcsncasecmp.texi.
41220         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41221         doc/glibc-functions/wcsncasecmp_l.texi.
41222         * doc/posix-functions/wcsnlen.texi: Renamed from
41223         doc/glibc-functions/wcsnlen.texi.
41224         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41225         doc/glibc-functions/wcsnrtombs.texi.
41226         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41227         doc/glibc-functions/wcsxfrm_l.texi.
41228         * doc/posix-functions/wctrans_l.texi: Renamed from
41229         doc/glibc-functions/wctrans_l.texi.
41230         * doc/posix-functions/wctype_l.texi: Renamed from
41231         doc/glibc-functions/wctype_l.texi.
41232         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41233         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41234         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41235         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41236         these subsections.
41237         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41238         Remove sections.
41239
41240 2008-12-14  Bruno Haible  <bruno@clisp.org>
41241
41242         Update doc for POSIX:2008.
41243         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41244
41245 2008-12-14  Bruno Haible  <bruno@clisp.org>
41246
41247         Update doc for POSIX:2008.
41248         * doc/pastposix-functions/bcmp.texi: Renamed from
41249         doc/posix-functions/bcmp.texi.
41250         * doc/pastposix-functions/bcopy.texi: Renamed from
41251         doc/posix-functions/bcopy.texi.
41252         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41253         doc/posix-functions/bsd_signal.texi.
41254         * doc/pastposix-functions/bzero.texi: Renamed from
41255         doc/posix-functions/bzero.texi.
41256         * doc/pastposix-functions/ecvt.texi: Renamed from
41257         doc/posix-functions/ecvt.texi.
41258         * doc/pastposix-functions/fcvt.texi: Renamed from
41259         doc/posix-functions/fcvt.texi.
41260         * doc/pastposix-functions/ftime.texi: Renamed from
41261         doc/posix-functions/ftime.texi.
41262         * doc/pastposix-functions/gcvt.texi: Renamed from
41263         doc/posix-functions/gcvt.texi.
41264         * doc/pastposix-functions/getcontext.texi: Renamed from
41265         doc/posix-functions/getcontext.texi.
41266         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41267         doc/posix-functions/gethostbyaddr.texi.
41268         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41269         doc/posix-functions/gethostbyname.texi.
41270         * doc/pastposix-functions/getwd.texi: Renamed from
41271         doc/posix-functions/getwd.texi.
41272         * doc/pastposix-functions/h_errno.texi: Renamed from
41273         doc/posix-functions/h_errno.texi.
41274         * doc/pastposix-functions/index.texi: Renamed from
41275         doc/posix-functions/index.texi.
41276         * doc/pastposix-functions/makecontext.texi: Renamed from
41277         doc/posix-functions/makecontext.texi.
41278         * doc/pastposix-functions/mktemp.texi: Renamed from
41279         doc/posix-functions/mktemp.texi.
41280         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41281         doc/posix-functions/pthread_attr_getstackaddr.texi.
41282         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41283         doc/posix-functions/pthread_attr_setstackaddr.texi.
41284         * doc/pastposix-functions/rindex.texi: Renamed from
41285         doc/posix-functions/rindex.texi.
41286         * doc/pastposix-functions/scalb.texi: Renamed from
41287         doc/posix-functions/scalb.texi.
41288         * doc/pastposix-functions/setcontext.texi: Renamed from
41289         doc/posix-functions/setcontext.texi.
41290         * doc/pastposix-functions/swapcontext.texi: Renamed from
41291         doc/posix-functions/swapcontext.texi.
41292         * doc/pastposix-functions/ualarm.texi: Renamed from
41293         doc/posix-functions/ualarm.texi.
41294         * doc/pastposix-functions/usleep.texi: Renamed from
41295         doc/posix-functions/usleep.texi.
41296         * doc/pastposix-functions/vfork.texi: Renamed from
41297         doc/posix-functions/vfork.texi.
41298         * doc/pastposix-functions/wcswcs.texi: Renamed from
41299         doc/posix-functions/wcswcs.texi.
41300         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41301         (Function Substitutes): Update.
41302
41303 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41304
41305         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41306         m4/strerror.m4.
41307
41308 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41309             Bruno Haible  <bruno@clisp.org>
41310
41311         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41312
41313 2008-12-13  Bruno Haible  <bruno@clisp.org>
41314
41315         * modules/strtoull (Depends-on): Remove unistd.
41316
41317 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41318
41319         * modules/strtoull (Depends-on): Add stdlib.
41320
41321 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41322
41323         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41324
41325 2008-12-10  Jim Meyering  <meyering@redhat.com>
41326
41327         gl_ASSERT: don't say assertions are disabled when they're not
41328         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41329         "checking whether to enable assertions... no", when they are in
41330         fact enabled.  This is solely a bug in the output of configure.
41331         In spite of saying "no", NDEBUG was not defined in that case.
41332         Also, as noted by Eric Blake, leave assertions enabled upon
41333         --enable-assert=INVALID.
41334
41335 2008-12-10  Bruno Haible  <bruno@clisp.org>
41336
41337         Change MODULES.html to refer to POSIX:2008 where possible.
41338         * MODULES.html.sh (POSIX2008_URL): New variable.
41339         (posix_headers): Remove sys/timeb, ucontext.
41340         (posix2001_headers): New variable.
41341         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41342         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41343         index, makecontext, mktemp, pthread_attr_getstackaddr,
41344         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41345         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41346         (posix2001_functions): New variable.
41347         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41348         otherwise.
41349
41350 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41351
41352         add missing include to parse-duration.c
41353         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41354         * modules/parse-duration (Depends-on): Add xalloc.
41355
41356         fix sed script reading maint.mk
41357         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41358         (syntax-check-rules): Use it.
41359
41360 2008-12-09  Bruno Haible  <bruno@clisp.org>
41361
41362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41363         MacOS X 10.4/PowerPC.
41364         Reported by Simon Josefsson.
41365
41366 2008-12-08  Jim Meyering  <meyering@redhat.com>
41367
41368         work around mingw's lack of some S_IF definitions
41369         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41370         Reported by Simon Josefsson.
41371
41372 2008-12-08  Bruno Haible  <bruno@clisp.org>
41373
41374         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41375         applied to variables. Needed on MacOS X 10.4/PowerPC.
41376         Reported by Simon Josefsson.
41377
41378 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41379         and Eric Blake  <ebb9@byu.net>
41380
41381         assert: honor --enable-assert
41382         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41383         order to honor --enable-assert, rather than treating it as a
41384         synonym for --disable-assert.
41385
41386 2008-12-08  Jim Meyering  <meyering@redhat.com>
41387
41388         * lib/posixtm.c: Remove now-useless declaration of mktime.
41389
41390         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41391
41392 2008-12-07  Bruno Haible  <bruno@clisp.org>
41393
41394         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41395         test_once): Mark functions as static.
41396         * tests/test-tls.c (test_tls): Likewise.
41397
41398 2008-12-07  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41401         iconv_register_autodetect.
41402
41403 2008-12-07  Jim Meyering  <meyering@redhat.com>
41404
41405         posixtm.c: avoid a warning
41406         * lib/posixtm.c (posixtime): Don't initialize tm0.
41407         It's no longer needed to placate gcc4's -Wuninitialized,
41408         and the attempt to placate would elicit a new warning.
41409
41410         unicodeio.c: mark unused parameters
41411         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41412         (fallback_failure_callback): Likewise.
41413
41414 2008-12-07  Bruno Haible  <bruno@clisp.org>
41415
41416         * gnulib-tool (func_create_testdir): When building the tests
41417         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41418         Reported by Simon Josefsson.
41419
41420 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41421
41422         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41423
41424 2008-12-06  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41427         Suggested by Eric Blake.
41428
41429 2008-12-06  Bruno Haible  <bruno@clisp.org>
41430
41431         Fix a c-stack test failure on MacOS X.
41432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41433         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41434         handler for SIGBUS as well.
41435         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41436         install a signal handler for SIGBUS as well.
41437         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41438
41439 2008-12-06  Bruno Haible  <bruno@clisp.org>
41440
41441         Advocacy documentation.
41442         * doc/gnulib-intro.texi (Benefits): New section.
41443         * doc/gnulib.texi: Update.
41444
41445 2008-12-06  Bruno Haible  <bruno@clisp.org>
41446
41447         Document the 'manywarnings' module.
41448         * doc/manywarnings.texi: New file.
41449         * doc/gnulib.texi: Include it.
41450
41451 2008-12-05  Eric Blake  <ebb9@byu.net>
41452
41453         tests: silence some gcc warnings
41454         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41455         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41456         type mismatches.
41457
41458 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41459             Bruno Haible  <bruno@clisp.org>
41460
41461         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41462
41463 2008-11-29  Jim Meyering  <meyering@redhat.com>
41464
41465         unicodeio.c: mark unused parameters
41466         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41467         (fallback_failure_callback): Likewise.
41468
41469         fts: fix a thinko
41470         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41471         (set_stat_type): Return S_IF*-valued "type" directly.
41472         Prompted by James Youngman's spotting a related bug.
41473         Confirmed by further testing through find.
41474
41475         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41476         * lib/fts.c (D_TYPE): Define.
41477         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41478         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41479         (s_ifmt_shift_bits): New function.
41480         (set_stat_type): New function.
41481         (fts_build): When not calling fts_stat, call set_stat_type
41482         to propagate dirent.d_type info to fts_read caller.
41483         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41484         fts_statp->st_mode type information may be valid.
41485
41486 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41487
41488         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41489         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41490         <sds@gnu.org>.
41491
41492 2008-11-20  Bruno Haible  <bruno@clisp.org>
41493
41494         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41495         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41496         INCLUDE_NEXT.
41497         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41498         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41499         * modules/math (Makefile.am): Substitute
41500         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41501         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41502
41503 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41504             Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/stdint.in.h: Define all type macros so that their expansion is
41507         a single typedef'ed token. Fixes a compilation failure in Boost which
41508         does "using ::int8_t;".
41509
41510 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41511
41512         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41513         gl_MANYWARN_ALL_GCC.
41514         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41515         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41516         * modules/manywarnings: New file.
41517         * MODULES.html.sh: Mention manywarnings module.
41518
41519 2008-11-18  Bruno Haible  <bruno@clisp.org>
41520
41521         * doc/gnulib-tool.texi (Unit tests): New section.
41522
41523 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41524
41525         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41526         paths like 'lib/po/foo.po'.
41527
41528 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41529
41530         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41531         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41532
41533 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41534
41535         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41536         parameter works.
41537
41538 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41539
41540         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41541
41542 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41543
41544         * modules/parse-duration-tests: New file.
41545         * tests/test-parse-duration.sh: New file.
41546         * tests/test-parse-duration.c: New file.
41547
41548         New module 'parse-duration'.
41549         * lib/parse-duration.h: New file.
41550         * lib/parse-duration.c: New file.
41551         * modules/parse-duration: New file.
41552
41553 2008-11-17  Bruno Haible  <bruno@clisp.org>
41554
41555         * tests/test-select-out.sh: Comment out the first pipe test.
41556         Reported by Simon Josefsson.
41557
41558 2008-11-17  Bruno Haible  <bruno@clisp.org>
41559
41560         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41562         gl_HOSTENT.
41563
41564 2008-11-17  Bruno Haible  <bruno@clisp.org>
41565
41566         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41567         -lnetwork and -lnet. Needed for Haiku and BeOS.
41568
41569 2008-11-16  Bruno Haible  <bruno@clisp.org>
41570
41571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41572
41573 2008-11-16  Bruno Haible  <bruno@clisp.org>
41574
41575         Avoid test failure on Haiku.
41576         * tests/test-fsync.c: Include <errno.h>.
41577         (main): Don't require that fsync (0) fails.
41578
41579 2008-11-15  Bruno Haible  <bruno@clisp.org>
41580
41581         New module 'hostent'.
41582         * modules/hostent: New file.
41583         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41584
41585 2008-11-15  Bruno Haible  <bruno@clisp.org>
41586
41587         New module 'servent'.
41588         * modules/servent: New file.
41589         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41590
41591 2008-11-15  Bruno Haible  <bruno@clisp.org>
41592
41593         Avoid generating same test program with two different rules.
41594         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41595         test-frexp to test-frexp-nolibm.
41596         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41597         test-frexpl to test-frexpl-nolibm.
41598
41599 2008-11-15  Bruno Haible  <bruno@clisp.org>
41600
41601         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41602         $(FREXPL_LIBM).
41603
41604 2008-11-15  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/netdb.in.h: Activate the definitions also when the system's
41607         <netdb.h> has 'struct addrinfo'.
41608         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41609         EAI_OVERFLOW or AI_NUMERICSERV.
41610         * doc/posix-headers/netdb.texi: Document the problem.
41611
41612 2008-11-15  Bruno Haible  <bruno@clisp.org>
41613
41614         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41615
41616         Make the 'sched' module work on platforms where <sched.h> exists but
41617         is incomplete (such as Haiku).
41618         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41619         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41620         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41621         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41622         HAVE_STRUCT_SCHED_PARAM.
41623         * modules/sched (Depends-on): Add include_next.
41624         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41625         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41626         * doc/posix-headers/sched.texi: Document the issue.
41627
41628 2008-11-13  Jim Meyering  <meyering@redhat.com>
41629
41630         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41631         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41632         test would fail due to the difference in the Report bugs to ...
41633         line.  The expected address is empty, "<>", while the actual
41634         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41635
41636 2008-11-12  Bruno Haible  <bruno@clisp.org>
41637
41638         lstat: don't compile lstat.c on systems lacking lstat
41639         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41640         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41641         Reported by Daniel P. Berrange via Jim Meyering.
41642
41643 2008-11-12  Jim Meyering  <meyering@redhat.com>
41644
41645         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41646
41647 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41648
41649         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41650         instead.
41651
41652 2008-11-12  Bruno Haible  <bruno@clisp.org>
41653
41654         * lib/unicodeio.c: Include unistr.h.
41655         (utf8_wctomb): Remove function.
41656         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41657
41658 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41659
41660         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41661         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41662         <bruno@clisp.org>.
41663         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41664
41665 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41666
41667         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41668         * doc/gnulib.texi: Add section for warnings.
41669
41670 2008-11-11  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/sockets.h: Add a comment.
41673
41674 2008-11-11  Karl Berry  <karl@gnu.org>
41675
41676         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41677
41678 2008-11-11  Eric Blake  <ebb9@byu.net>
41679
41680         fdl.texi: avoid git symlinks
41681         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41682
41683 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41684
41685         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41686
41687 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41688
41689         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41690         (gl_WARN_ADD): Substitute $2 if literal.
41691
41692 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41693
41694         * m4/warning.m4: Remove.
41695
41696 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41697
41698         * m4/warnings.m4: Almost complete rewrite. :-)
41699
41700 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41701
41702         * modules/warnings: New module.
41703         * m4/warnings.m4: New file.
41704         * MODULES.html.sh: Mention warnings module.
41705         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41706         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41707
41708 2008-11-10  Eric Blake  <ebb9@byu.net>
41709
41710         fdl.texi: make a symlink to the latest version
41711         * doc/standards.texi: Revert today's earlier change.
41712         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41713         * doc/fdl.texi: ...and replace this with a symlink to the newer
41714         fdl-1.3.texi.
41715
41716 2008-11-10  Bruno Haible  <bruno@clisp.org>
41717
41718         * tests/test-select-fd.c (main): Accept the result file name as fourth
41719         argument.
41720         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41721         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41722
41723 2008-11-10  Bruno Haible  <bruno@clisp.org>
41724
41725         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41726         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41727         as autoconf-substituted macros.
41728         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41729         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41730         gl_NETDB_H_DEFAULTS. Set these variables.
41731         * modules/netdb (Makefile.am): Substitute these variables.
41732
41733 2008-11-10  Eric Blake  <ebb9@byu.net>
41734
41735         standards.texi: include correct file for FDL 1.3
41736         * doc/standards.texi (GNU Free Documentation License): Change
41737         include file to pull in FDL 1.3, not 1.2.
41738
41739         fdl.texi: revert accidental change to license
41740         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41741
41742 2008-11-10  Bruno Haible  <bruno@clisp.org>
41743
41744         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41745         cross-compiling guesses also when the native compile gives no result.
41746
41747 2008-11-10  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/spawni.c (__spawni): Force variable into the stack.
41750
41751 2008-11-10  Bruno Haible  <bruno@clisp.org>
41752
41753         Add support for Haiku.
41754         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41755         glibc and BeOS, but also on Haiku.
41756         * lib/fpurge.c (fpurge): Likewise.
41757         * lib/freadable.c (freadable): Likewise.
41758         * lib/freadahead.c (freadahead): Likewise.
41759         * lib/freading.c (freading): Likewise.
41760         * lib/freadptr.c (freadptr): Likewise.
41761         * lib/freadseek.c (freadptrinc): Likewise.
41762         * lib/fseeko.c (rpl_fseeko): Likewise.
41763         * lib/fseterr.c (fseterr): Likewise.
41764         * lib/fwritable.c (fwritable): Likewise.
41765         * lib/fwriting.c (fwriting): Likewise.
41766         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41767
41768 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41769
41770         * lib/config.charset: Treat Haiku like BeOS.
41771
41772 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41773
41774         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41775         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41776
41777 2008-11-08  Bruno Haible  <bruno@clisp.org>
41778
41779         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41780         AC_CACHE_CHECK.
41781
41782 2008-11-08  Bruno Haible  <bruno@clisp.org>
41783
41784         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41785
41786 2008-11-08  Bruno Haible  <bruno@clisp.org>
41787
41788         * tests/test-select-fd.c: New file.
41789         * tests/test-select-in.sh: New file.
41790         * tests/test-select-out.sh: New file.
41791         * tests/test-select-stdin.c: New file.
41792         * modules/select-tests (Files): Add the new files.
41793         (Depends-on): Add gettimeofday.
41794         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41795         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41796         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41797
41798 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41799             Bruno Haible  <bruno@clisp.org>
41800
41801         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41802
41803 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41804
41805         * build-aux/pmccabe2html: Added support for C++ source files.
41806
41807 2008-11-05  Ben Pfaff  <blp@gnu.org>
41808
41809         Fix lib/close.c build on Windows.
41810         * modules/close (Files): Add lib/w32sock.h.
41811
41812 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41813
41814         Accept Bison's NEWS format.
41815         * build-aux/announce-gen (print_news_deltas): Tweak
41816         $re_prefix.
41817
41818 2008-11-04  Bruno Haible  <bruno@clisp.org>
41819
41820         * modules/random_r (Maintainer): Add glibc.
41821
41822 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41823
41824         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41825         by karl@freefriends.org (Karl Berry).
41826         * doc/alloca.texi: Likewise.
41827         * doc/c-ctype.texi: Likewise.
41828         * doc/c-strcase.texi: Likewise.
41829         * doc/c-strcaseeq.texi: Likewise.
41830         * doc/c-strcasestr.texi: Likewise.
41831         * doc/c-strstr.texi: Likewise.
41832         * doc/c-strtod.texi: Likewise.
41833         * doc/c-strtold.texi: Likewise.
41834         * doc/ctime.texi: Likewise.
41835         * doc/error.texi: Likewise.
41836         * doc/fdl.texi: Likewise.
41837         * doc/gcd.texi: Likewise.
41838         * doc/getdate.texi: Likewise.
41839         * doc/gnulib-intro.texi: Likewise.
41840         * doc/gnulib-tool.texi: Likewise.
41841         * doc/gnulib.texi: Likewise.
41842         * doc/inet_ntoa.texi: Likewise.
41843         * doc/maintain.texi: Likewise.
41844         * doc/make-stds.texi: Likewise.
41845         * doc/quote.texi: Likewise.
41846         * doc/regexprops-generic.texi: Likewise.
41847         * doc/standards.texi: Likewise.
41848         * doc/verify.texi: Likewise.
41849         * doc/visibility.texi: Likewise.
41850         * doc/gnulib.texi (GNU Free Documentation License): Include
41851         fdl-1.3.texi instead of fdl.texi.
41852
41853 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41854
41855         * doc/fdl-1.3.texi: New file, from
41856         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41857         * modules/fdl-1.3: Add.
41858         * MODULES.html.sh: Add fdl-1.3.
41859
41860 2008-11-03  Bruno Haible  <bruno@clisp.org>
41861
41862         Make determination of absolute name of header file work with AIX xlc.
41863         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41864         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41865         preprocessing.
41866         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41867         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41868
41869 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41870
41871         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41872         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41873         <ludo@gnu.org>.
41874
41875 2008-11-02  Bruno Haible  <bruno@clisp.org>
41876
41877         Mark 'strpbrk' obsolete.
41878         * modules/strpbrk (Status, Notice): New sections.
41879         * modules/strtok_r (Depends-on): Add strpbrk.
41880
41881 2008-11-02  Bruno Haible  <bruno@clisp.org>
41882
41883         Mark 'strdup' obsolete.
41884         * modules/strdup (Status, Notice): New sections.
41885         * modules/findprog (Depends-on): Add strdup.
41886         * modules/getaddrinfo (Depends-on): Likewise.
41887         * modules/localename (Depends-on): Likewise.
41888         * modules/relocatable-lib (Depends-on): Likewise.
41889         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41890         * modules/relocatable-prog (Depends-on): Likewise.
41891         * modules/trim (Depends-on): Likewise.
41892         * modules/unictype/gen-ctype (Depends-on): Likewise.
41893         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41894
41895 2008-11-02  Bruno Haible  <bruno@clisp.org>
41896
41897         Mark 'strcspn' obsolete.
41898         * modules/strcspn (Status, Notice): New sections.
41899
41900 2008-11-02  Bruno Haible  <bruno@clisp.org>
41901
41902         Mark 'rmdir' obsolete.
41903         * modules/rmdir (Status, Notice): New sections.
41904         * modules/clean-temp (Depends-on): Add rmdir.
41905         * modules/openat (Depends-on): Likewise.
41906
41907 2008-11-02  Bruno Haible  <bruno@clisp.org>
41908
41909         Mark 'raise' obsolete.
41910         * modules/raise (Status, Notice): New sections.
41911         (Include): Specify <signal.h>.
41912         * modules/stdio (Depends-on): Add raise.
41913         * modules/write (Depends-on): Likewise.
41914
41915 2008-11-02  Bruno Haible  <bruno@clisp.org>
41916
41917         Mark 'memset' obsolete.
41918         * modules/memset (Status, Notice): New sections.
41919
41920 2008-11-02  Bruno Haible  <bruno@clisp.org>
41921
41922         Mark 'memmove' obsolete.
41923         * modules/memmove (Status, Notice): New sections.
41924         * modules/argp (Depends-on): Add memmove.
41925         * modules/argz (Depends-on): Likewise.
41926         * modules/canonicalize (Depends-on): Likewise.
41927         * modules/canonicalize-lgpl (Depends-on): Likewise.
41928         * modules/fts (Depends-on): Likewise.
41929         * modules/getcwd (Depends-on): Likewise.
41930         * modules/human (Depends-on): Likewise.
41931         * modules/regex (Depends-on): Likewise.
41932         * modules/striconveh (Depends-on): Likewise.
41933         * modules/trim (Depends-on): Likewise.
41934         * modules/unistr/u8-move (Depends-on): Likewise.
41935         * modules/unistr/u16-move (Depends-on): Likewise.
41936         * modules/unistr/u32-move (Depends-on): Likewise.
41937
41938 2008-11-02  Bruno Haible  <bruno@clisp.org>
41939
41940         Mark 'memcpy' obsolete.
41941         * modules/memcpy (Status, Notice): New sections.
41942
41943 2008-11-02  Bruno Haible  <bruno@clisp.org>
41944
41945         Mark 'memcmp' obsolete.
41946         * modules/memcmp (Status, Notice): New sections.
41947         * modules/argmatch (Depends-on): Add memchr.
41948         * modules/backupfile (Depends-on): Likewise.
41949         * modules/c-strcasestr (Depends-on): Likewise.
41950         * modules/crypto/des (Depends-on): Likewise.
41951         * modules/csharpcomp (Depends-on): Likewise.
41952         * modules/fnmatch (Depends-on): Likewise.
41953         * modules/git-merge-changelog (Depends-on): Likewise.
41954         * modules/isnand (Depends-on): Likewise.
41955         * modules/isnand-nolibm (Depends-on): Likewise.
41956         * modules/isnanf (Depends-on): Likewise.
41957         * modules/isnanf-nolibm (Depends-on): Likewise.
41958         * modules/isnanl (Depends-on): Likewise.
41959         * modules/isnanl-nolibm (Depends-on): Likewise.
41960         * modules/mbchar (Depends-on): Likewise.
41961         * modules/memcoll (Depends-on): Likewise.
41962         * modules/quotearg (Depends-on): Likewise.
41963         * modules/regex (Depends-on): Likewise.
41964         * modules/relocatable-prog (Depends-on): Likewise.
41965         * modules/same (Depends-on): Likewise.
41966         * modules/signbit (Depends-on): Likewise.
41967         * modules/strcasestr-simple (Depends-on): Likewise.
41968         * modules/unictype/gen-ctype (Depends-on): Likewise.
41969         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41970         * modules/uniname/uniname (Depends-on): Likewise.
41971         * modules/unistr/u8-cmp (Depends-on): Likewise.
41972
41973 2008-11-02  Bruno Haible  <bruno@clisp.org>
41974
41975         Mark 'memchr' obsolete.
41976         * modules/memchr (Status, Notice): New sections.
41977         * modules/argp (Depends-on): Add memchr.
41978         * modules/base64 (Depends-on): Likewise.
41979         * modules/c-strcasestr (Depends-on): Likewise.
41980         * modules/chdir-long (Depends-on): Likewise.
41981         * modules/fnmatch (Depends-on): Likewise.
41982         * modules/getsubopt (Depends-on): Likewise.
41983         * modules/git-merge-changelog (Depends-on): Likewise.
41984         * modules/glob (Depends-on): Likewise.
41985         * modules/strcasestr-simple (Depends-on): Likewise.
41986         * modules/strnlen (Depends-on): Likewise.
41987
41988 2008-11-02  Bruno Haible  <bruno@clisp.org>
41989
41990         Mark 'atexit' obsolete.
41991         * modules/atexit (Status, Notice): New sections.
41992         * modules/chdir-long (Depends-on): Add atexit.
41993         * modules/wait-process (Depends-on): Likewise.
41994
41995 2008-11-02  Bruno Haible  <bruno@clisp.org>
41996
41997         * gnulib-tool: New option --with-obsolete.
41998         (func_usage): Document it.
41999         (func_modules_transitive_closure): Drop obsolete dependencies if
42000         incobsolete is not true.
42001         (func_import): Read and save the incobsolete variable to the cache.
42002
42003 2008-11-02  Bruno Haible  <bruno@clisp.org>
42004
42005         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42006         * gnulib-tool: New option --extract-status.
42007         (func_usage): Document it.
42008         (sed_extract_prog): Recognize it.
42009         (func_get_status): New function.
42010
42011 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42012
42013         * modules/sockets (License): Change from LGPL to LGPLv2+.
42014
42015 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42016
42017         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42018
42019 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42020
42021         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42022         Mention times and sys_times.
42023         * modules/sys_times, modules/sys_times-tests: New modules.
42024         * modules/times, modules/times-tests: Likewise
42025         * m4/sys_times_h.m4: New file.
42026         * lib/sys_times.in.h: Likewise
42027         * lib/times.c: Likewise.
42028         * tests/test-sys_times.c: Likewise.
42029         * tests/test-times.c: Likewise.
42030         * doc/posix-headers/sys_times.texi: Update.
42031         * doc/posix-functions/times.texi: Update.
42032
42033 2008-10-28  Jim Meyering  <meyering@redhat.com>
42034
42035         * modules/tempname (Depends-on): Add lstat.
42036
42037         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42038
42039 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42040
42041         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42042         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42043         using idiom used elsewhere in gnulib.
42044
42045 2008-10-27  Jim Meyering  <meyering@redhat.com>
42046
42047         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42048
42049 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42050
42051         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42052         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42053         programs.
42054         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42055
42056 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42057
42058         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42059
42060 2008-10-27  Bruno Haible  <bruno@clisp.org>
42061
42062         * tests/test-lstat.c: Include <stdio.h>.
42063
42064 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42065
42066         * modules/lstat-tests: New module.
42067         * tests/test-lstat.c: New file.
42068
42069 2008-10-26  Jim Meyering  <meyering@redhat.com>
42070
42071         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42072
42073 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42074             Bruno Haible  <bruno@clisp.org>
42075
42076         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42077         * modules/configmake (Include): Add a note that the include must come
42078         after all system headers.
42079         * lib/javaversion.c: Include configmake.h after all other includes.
42080
42081 2008-10-26  Bruno Haible  <bruno@clisp.org>
42082
42083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42084         HAVE_STRUCT_RANDOM_DATA to 1.
42085         (gl_STDLIB_H): Simplify.
42086
42087 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42088
42089         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42090         substitute HAVE_STRUCT_RANDOM_DATA.
42091         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42092         random_data.
42093         * modules/stdlib (Makefile.am): Substitute
42094         HAVE_STRUCT_RANDOM_DATA.
42095
42096 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42097
42098         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42099         * doc/gnulib-intro.texi (Copyright): Likewise.
42100
42101 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42102
42103         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42104         findings.
42105
42106 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42107             Bruno Haible  <bruno@clisp.org>
42108
42109         * lib/unistd.in.h: Include <winsock2.h>.
42110         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42111         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42112         Provide dummy declarations.
42113         (gethostname): Override.
42114         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42115         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42116         gl_PREREQ_SYS_H_WINSOCK2.
42117         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42118         * doc/posix-functions/gethostname.texi: More details.
42119
42120 2008-10-25  Bruno Haible  <bruno@clisp.org>
42121
42122         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42123         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42124         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42125
42126         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42127         here ...
42128         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42129         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42130         gl_UNISTD_H_DEFAULTS.
42131
42132 2008-10-25  Eric Blake  <ebb9@byu.net>
42133
42134         signbit: avoid spurious compiler failure
42135         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42136         declarations inside function.
42137
42138 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42139             Bruno Haible  <bruno@clisp.org>
42140
42141         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42142         * modules/random_r (Depends-on): Add stdint.
42143
42144 2008-10-24  Bruno Haible  <bruno@clisp.org>
42145
42146         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42147         Eggert.
42148         * modules/strerror (License): Likewise.
42149
42150 2008-10-24  Jim Meyering  <meyering@redhat.com>
42151
42152         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42153         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42154
42155 2008-10-24  Eric Blake  <ebb9@byu.net>
42156
42157         getgroups: fix compilation when getgroups is available
42158         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42159         but with <config.h> override of getgroups disabled.
42160
42161 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42162
42163         * doc/gnulib.texi (Header files): Add note about C++ problems.
42164         Explained by Bruno Haible <bruno@clisp.org>.
42165
42166 2008-10-23  Bruno Haible  <bruno@clisp.org>
42167
42168         Define a dummy SA_NODEFER macro on Interix.
42169         * lib/signal.in.h (SA_NODEFER): Define fallback.
42170         Reported by Aleksey Cheusov <cheusov@tut.by> via
42171         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42172
42173 2008-10-23  Bruno Haible  <bruno@clisp.org>
42174
42175         * modules/freadahead (License): Change to LGPLv2+.
42176         Suggested by Simon Josefsson.
42177
42178 2008-10-23  Jim Meyering  <meyering@redhat.com>
42179
42180         random_r: new module
42181         * modules/random_r: New file.
42182         * m4/random_r.m4: New file.
42183         * lib/random_r.c: New file, from glibc.
42184         * modules/random_r-tests: New file.
42185         * tests/test-random_r.c: New file.
42186         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42187          Declare.
42188         (RAND_MAX): Define.
42189         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42190         * modules/stdlib: Substitute them, too.
42191         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42192         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42193         * doc/glibc-functions/random_r.texi: Likewise.
42194         * doc/glibc-functions/setstate_r.texi: Likewise.
42195         * doc/glibc-functions/srandom_r.texi: Likewise.
42196         * config/srclist.txt: Mention it.
42197
42198 2008-10-23  David Lutterkort  <lutter@redhat.com>
42199
42200         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42201         link requirement
42202
42203 2008-10-23  Jim Meyering  <meyering@redhat.com>
42204
42205         selinux-h: mark parameters of stub functions as intentionally unused
42206         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42207         * lib/se-context.in.h: Likewise.
42208
42209 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42210
42211         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42212
42213 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42214
42215         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42216
42217 2008-10-22  Eric Blake  <ebb9@byu.net>
42218
42219         glthread/thread: avoid compiler warning
42220         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42221         Add unreachable abort to silence compiler.
42222
42223 2008-10-22  Eric Blake  <ebb9@byu.net>
42224
42225         netdb: also supply struct addrinfo for cygwin 1.5.x
42226         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42227         older cygwin.
42228         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42229         cygwin.
42230         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42231
42232 2008-10-22  Bruno Haible  <bruno@clisp.org>
42233
42234         * users.txt: Update entry about pspp.
42235
42236 2008-10-21  Bruno Haible  <bruno@clisp.org>
42237
42238         Simplification.
42239         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42240         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42241
42242         Simplification.
42243         * lib/ioctl.c (ioctl): Don't undefine.
42244         * lib/socket.c (socket): Don't undefine.
42245
42246         Remove unused module indicator macros.
42247         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42248         GNULIB_$1 as a C macro.
42249
42250         * doc/posix-functions/close.texi: Undo last change.
42251         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42252         Windows platforms.
42253
42254 2008-10-21  Bruno Haible  <bruno@clisp.org>
42255
42256         Add gethostname() declaration to <unistd.h>.
42257         * lib/unistd.in.h (gethostname): New declaration.
42258         * lib/gethostname.c: Include <unistd.h>.
42259         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42260         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42262         and HAVE_GETHOSTNAME.
42263         * modules/gethostname (Depends-on): Add unistd.
42264         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42265         (Include): Specify <unistd.h>.
42266         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42267         HAVE_GETHOSTNAME.
42268         * tests/test-gethostname.c: Include <unistd.h> first.
42269
42270 2008-10-21  Bruno Haible  <bruno@clisp.org>
42271
42272         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42273         * modules/select-tests (Depends-on): Likewise.
42274         Reported by Simon Josefsson.
42275
42276 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42277
42278         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42279         * lib/accept.c: New file, based on winsock.c.
42280         * lib/bind.c: New file, based on winsock.c.
42281         * lib/connect.c: New file, based on winsock.c.
42282         * lib/getpeername.c: New file, based on winsock.c.
42283         * lib/getsockname.c: New file, based on winsock.c.
42284         * lib/getsockopt.c: New file, based on winsock.c.
42285         * lib/ioctl.c: New file, based on winsock.c.
42286         * lib/listen.c: New file, based on winsock.c.
42287         * lib/recv.c: New file, based on winsock.c.
42288         * lib/recvfrom.c: New file, based on winsock.c.
42289         * lib/send.c: New file, based on winsock.c.
42290         * lib/sendto.c: New file, based on winsock.c.
42291         * lib/setsockopt.c: New file, based on winsock.c.
42292         * lib/shutdown.c: New file, based on winsock.c.
42293         * lib/socket.c: New file, based on winsock.c.
42294         * lib/w32sock.h: New file, based on winsock.c.
42295         * lib/winsock.c: Remove file.
42296         * modules/accept: Likewise.
42297         * modules/bind: Likewise.
42298         * modules/connect: Likewise.
42299         * modules/getpeername: Likewise.
42300         * modules/getsockname: Likewise.
42301         * modules/getsockopt: Likewise.
42302         * modules/ioctl: Likewise.
42303         * modules/listen: Likewise.
42304         * modules/recv: Likewise.
42305         * modules/recvfrom: Likewise.
42306         * modules/send: Likewise.
42307         * modules/sendto: Likewise.
42308         * modules/setsockopt: Likewise.
42309         * modules/shutdown: Likewise.
42310         * modules/socket: Use socket.c instead of winsock.c.
42311         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42312         * doc/posix-functions/accept.texi: Doc fix.
42313         * doc/posix-functions/bind.texi: Doc fix.
42314         * doc/posix-functions/close.texi: Doc fix.
42315         * doc/posix-functions/connect.texi: Doc fix.
42316         * doc/posix-functions/getpeername.texi: Doc fix.
42317         * doc/posix-functions/getsockname.texi: Doc fix.
42318         * doc/posix-functions/getsockopt.texi: Doc fix.
42319         * doc/posix-functions/ioctl.texi: Doc fix.
42320         * doc/posix-functions/listen.texi: Doc fix.
42321         * doc/posix-functions/recv.texi: Doc fix.
42322         * doc/posix-functions/recvfrom.texi: Doc fix.
42323         * doc/posix-functions/send.texi: Doc fix.
42324         * doc/posix-functions/sendto.texi: Doc fix.
42325         * doc/posix-functions/setsockopt.texi: Doc fix.
42326         * doc/posix-functions/shutdown.texi: Doc fix.
42327         * doc/posix-functions/socket.texi: Doc fix.
42328
42329 2008-10-20  Bruno Haible  <bruno@clisp.org>
42330
42331         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42332         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42333         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42334         as an alias for SIGABRT.
42335         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42336         (sigaction): Map it to SIGABRT.
42337         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42338
42339 2008-10-20  Bruno Haible  <bruno@clisp.org>
42340
42341         * lib/fts.c: Don't include lstat.h.
42342         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42343
42344         Move the lstat() declaration to <sys/stat.h>.
42345         * lib/lstat.h: Remove file.
42346         * lib/sys_stat.in.h: Add special invocation convention.
42347         (lstat): New declaration.
42348         * lib/lstat.c (orig_lstat): New function.
42349         (rpl_lstat): Use orig_lstat instead of lstat.
42350         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42351         AC_C_INLINE. Set REPLACE_LSTAT.
42352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42353         and REPLACE_LSTAT.
42354         * modules/lstat (Files): Remove lib/lstat.h.
42355         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42356         (Include): Specify <sys/stat.h> instead of lstat.h.
42357         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42358         REPLACE_LSTAT.
42359         * NEWS: Mention the change.
42360
42361 2008-10-20  Bruno Haible  <bruno@clisp.org>
42362
42363         * modules/posix_spawn-tests: New file.
42364         * tests/test-posix_spawn3.c: New file.
42365
42366 2008-10-20  Bruno Haible  <bruno@clisp.org>
42367
42368         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42369         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42370         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42371         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42372         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42373
42374 2008-10-20  Bruno Haible  <bruno@clisp.org>
42375
42376         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42377         of posix_spawn on AIX 5.3.
42378
42379 2008-10-20  Bruno Haible  <bruno@clisp.org>
42380
42381         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42382
42383 2008-10-20  Bruno Haible  <bruno@clisp.org>
42384
42385         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42386         of AC_LANG_PROGRAM.
42387
42388 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42389
42390         * lib/netdb.in.h: Don't define GNU specific constants until they
42391         are supported or needed.  Reported by Bruno Haible
42392         <bruno@clisp.org>.
42393
42394 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42395
42396         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42397
42398 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42399
42400         * lib/getaddrinfo.h: Remove file.
42401         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42402         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42403         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42404         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42405         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42406         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42407         * tests/test-getaddrinfo.c: Likewise.
42408         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42409         * NEWS: Mention change.
42410
42411 2008-10-19  Bruno Haible  <bruno@clisp.org>
42412
42413         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42414
42415 2008-10-19  Bruno Haible  <bruno@clisp.org>
42416
42417         * lib/wait-process.c: Include simply <sys/wait.h>.
42418         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42419         WIFSTOPPED): Remove fallback definitions.
42420         * modules/wait-process (Depends-on): Add sys_wait.
42421
42422         New module 'sys_wait'.
42423         * modules/sys_wait: New file.
42424         * lib/sys_wait.in.h: New file, partially copied from
42425         lib/wait-process.c.
42426         * m4/sys_wait_h.m4: New file.
42427         * doc/posix-headers/sys_wait.texi: Mention the new module.
42428
42429 2008-10-19  Bruno Haible  <bruno@clisp.org>
42430
42431         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42432
42433 2008-10-19  Bruno Haible  <bruno@clisp.org>
42434
42435         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42436         * lib/wait-process.c (WAIT_T): Remove type.
42437         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42438         (wait_subprocess): Update.
42439
42440 2008-10-19  Bruno Haible  <bruno@clisp.org>
42441
42442         New module 'atoll'.
42443         * modules/atoll: New file.
42444         * lib/stdlib.in.h (atoll): New declaration.
42445         * lib/atoll.c: New file, from glibc with modifications.
42446         * m4/atoll.m4: New file.
42447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42448         HAVE_ATOLL.
42449         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42450         * doc/posix-functions/atoll.texi: Mention the new module.
42451
42452 2008-10-19  Bruno Haible  <bruno@clisp.org>
42453
42454         Add strtoull() declaration to <stdlib.h>.
42455         * lib/stdlib.in.h (strtoull): New declaration.
42456         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42457         Set HAVE_STRTOULL.
42458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42459         HAVE_STRTOULL.
42460         * modules/strtoull (Depends-on): Add stdlib.
42461         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42462         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42463         HAVE_STRTOULL.
42464
42465 2008-10-19  Bruno Haible  <bruno@clisp.org>
42466
42467         Add strtoll() declaration to <stdlib.h>.
42468         * lib/stdlib.in.h (strtoll): New declaration.
42469         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42470         Set HAVE_STRTOLL.
42471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42472         HAVE_STRTOLL.
42473         * modules/strtoll (Depends-on): Add stdlib.
42474         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42475         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42476
42477 2008-10-19  Bruno Haible  <bruno@clisp.org>
42478
42479         * modules/bcopy (Depends-on): Add strings.
42480         (Include): Specify <strings.h>.
42481
42482 2008-10-19  Bruno Haible  <bruno@clisp.org>
42483
42484         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42485
42486 2008-10-19  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42489         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42490         mingw.
42491
42492 2008-10-19  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/atanl.c: Don't include isnanl.h.
42495         * lib/cosl.c: Likewise.
42496         * lib/ldexpl.c: Likewise.
42497         * lib/logl.c: Likewise.
42498         * lib/sinl.c: Likewise.
42499         * lib/sqrtl.c: Likewise.
42500         * lib/tanl.c: Likewise.
42501
42502         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42503         * lib/isnanf.h: Remove file.
42504         * lib/isnand.h: Remove file.
42505         * lib/isnanl.h: Remove file.
42506         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42507         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42508         macros.
42509         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42510         HAVE_ISNANF, don't define it as a C macro.
42511         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42512         HAVE_ISNAND, don't define it as a C macro.
42513         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42514         HAVE_ISNANL, don't define it as a C macro.
42515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42516         HAVE_ISNAN[FDL].
42517         * modules/isnanf (Files): Remove lib/isnanf.h.
42518         (Depends-on): Add math.
42519         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42520         (Include): Specify <math.h> instead of isnanf.h.
42521         * modules/isnand (Files): Remove lib/isnand.h.
42522         (Depends-on): Add math.
42523         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42524         (Include): Specify <math.h> instead of isnand.h.
42525         * modules/isnanl (Files): Remove lib/isnanl.h.
42526         (Depends-on): Add math.
42527         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42528         (Include): Specify <math.h> instead of isnanl.h.
42529         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42530         HAVE_ISNAN[FDL].
42531         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42532         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42533         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42534         * NEWS: Mention the change.
42535
42536 2008-10-18  Bruno Haible  <bruno@clisp.org>
42537
42538         Add getusershell(), setusershell(), endusershell() declarations to
42539         <unistd.h>.
42540         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42541         declarations.
42542         * lib/getusershell.c: Include unistd.h.
42543         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42544         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42545         HAVE_GETUSERSHELL.
42546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42547         and HAVE_GETUSERSHELL.
42548         * modules/getusershell (Depends-on): Add unistd, extensions.
42549         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42550         (Include): Specify <unistd.h>.
42551         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42552         HAVE_GETUSERSHELL.
42553
42554 2008-10-18  Bruno Haible  <bruno@clisp.org>
42555
42556         Add a getloadavg() declaration to <stdlib.h>.
42557         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42558         getloadavg declaration.
42559         (getloadavg): New declaration.
42560         * lib/getloadavg.c: Include <stdlib.h> first.
42561         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42562         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42563         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42565         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42566         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42567         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42568         (Include): Specify <stdlib.h>.
42569         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42570         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42571
42572 2008-10-18  Bruno Haible  <bruno@clisp.org>
42573
42574         * lib/dirchownmod.c: Don't include lchmod.h.
42575
42576         Move the lchmod() declaration to <sys/stat.h>.
42577         * lib/lchmod.h: Remove file.
42578         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42579         (lchmod): New declaration, moved here from lib/lchown.h.
42580         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42581         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42583         and HAVE_LCHMOD.
42584         * modules/lchmod (Files): Remove lib/lchmod.h.
42585         (Depends-on): Add sys_stat, extensions.
42586         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42587         (Include): Specify <sys/stat.h> instead of lchmod.h.
42588         * modules/sys_stat (Depends-on): Add link-warning.
42589         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42590         definition of GL_LINK_WARNING.
42591         * NEWS: Mention the change.
42592
42593 2008-10-18  Bruno Haible  <bruno@clisp.org>
42594
42595         * lib/fchdir.c: Don't include dirfd.h.
42596         * lib/fts.c: Likewise.
42597         * lib/getcwd.c: Likewise.
42598         * lib/glob.c: Likewise.
42599
42600         Move the dirfd() declaration to <dirent.h>.
42601         * lib/dirfd.h: Remove file.
42602         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42603         (dirfd): New declaration.
42604         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42605         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42606         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42607         HAVE_DECL_DIRFD.
42608         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42609         HAVE_DECL_DIRFD.
42610         * modules/dirfd (Files): Remove lib/dirfd.h.
42611         (Depends-on): Add dirent, extensions.
42612         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42613         (Include): Specify <dirent.h> instead of dirfd.h.
42614         * modules/dirent (Depends-on): Add link-warning.
42615         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42616         definition of GL_LINK_WARNING.
42617         * NEWS: Mention the change.
42618
42619 2008-10-18  Bruno Haible  <bruno@clisp.org>
42620
42621         Move the euidaccess() declaration to <unistd.h>.
42622         * lib/euidaccess.h: Remove file.
42623         * lib/unistd.in.h (euidaccess): New declaration.
42624         * lib/euidaccess.c: Don't include euidaccess.h.
42625         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42626         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42628         and HAVE_EUIDACCESS.
42629         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42630         (Depends-on): Add unistd.
42631         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42632         (Include): Specify <unistd.h> instead of euidaccess.h.
42633         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42634         HAVE_EUIDACCESS.
42635         * NEWS: Mention the change.
42636
42637 2008-10-18  Bruno Haible  <bruno@clisp.org>
42638
42639         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42640
42641         Move the getdomainname() declaration to <unistd.h>.
42642         * lib/getdomainname.h: Remove file.
42643         * lib/unistd.in.h (getdomainname): New declaration.
42644         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42645         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42646         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42647         HAVE_GETDOMAINNAME.
42648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42649         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42650         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42651         (Depends-on): Add unistd, extensions.
42652         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42653         (Includes): Specify <unistd.h> instead of getdomainname.h.
42654         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42655         HAVE_GETDOMAINNAME.
42656         * NEWS: Mention the change.
42657
42658 2008-10-18  Bruno Haible  <bruno@clisp.org>
42659
42660         * modules/dirent: New file.
42661         * m4/dirent_h.m4: New file.
42662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42663         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42664         * modules/fchdir (Files): Remove lib/dirent.in.h.
42665         (Depends-on): Add dirent.
42666         (Makefile.am): Move rules to modules/dirent.
42667         * doc/posix-headers/dirent.texi: Mention the new module.
42668
42669 2008-10-18  Bruno Haible  <bruno@clisp.org>
42670
42671         Avoid -Wunused-parameter warnings in public gnulib header files.
42672         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42673         macro.
42674         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42675
42676 2008-10-18  Bruno Haible  <bruno@clisp.org>
42677
42678         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42679         * doc/glibc-functions/error.texi: Mention the module 'error'.
42680         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42681         * doc/glibc-functions/getdomainname.texi: Mention the module
42682         'getdomainname'.
42683         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42684         * doc/glibc-functions/getpagesize.texi: Mention the module
42685         'getpagesize'.
42686         * doc/glibc-functions/getusershell.texi: Mention the module
42687         'getusershell'.
42688         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42689         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42690         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42691         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42692         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42693         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42694         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42695         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42696         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42697         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42698         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42699         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42700         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42701         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42702
42703 2008-10-17  Bruno Haible  <bruno@clisp.org>
42704
42705         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42706         HP-UX and IRIX, use -0.0L.
42707         * tests/test-ceill.c (minus_zero): Likewise.
42708         * tests/test-floorl.c (minus_zero): Likewise.
42709         * tests/test-frexpl.c (minus_zero): Likewise.
42710         * tests/test-isnan.c (minus_zerol): Likewise.
42711         * tests/test-isnanl.h (minus_zero): Likewise.
42712         * tests/test-ldexpl.c (minus_zero): Likewise.
42713         * tests/test-roundl.c (minus_zero): Likewise.
42714         * tests/test-signbit.c (minus_zerol): Likewise.
42715         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42716         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42717         * tests/test-truncl.c (minus_zero): Likewise.
42718         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42719         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42720         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42721         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42722
42723 2008-10-17  Bruno Haible  <bruno@clisp.org>
42724
42725         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42726         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42727         that it gets activated only for gcc >= 3.0.
42728         * lib/dirent.in.h: Likewise.
42729         * lib/errno.in.h: Likewise.
42730         * lib/fcntl.in.h: Likewise.
42731         * lib/float.in.h: Likewise.
42732         * lib/iconv.in.h: Likewise.
42733         * lib/inttypes.in.h: Likewise.
42734         * lib/locale.in.h: Likewise.
42735         * lib/math.in.h: Likewise.
42736         * lib/netdb.in.h: Likewise.
42737         * lib/netinet_in.in.h: Likewise.
42738         * lib/search.in.h: Likewise.
42739         * lib/signal.in.h: Likewise.
42740         * lib/spawn.in.h: Likewise.
42741         * lib/stdarg.in.h: Likewise.
42742         * lib/stdint.in.h: Likewise.
42743         * lib/stdio.in.h: Likewise.
42744         * lib/stdlib.in.h: Likewise.
42745         * lib/string.in.h: Likewise.
42746         * lib/strings.in.h: Likewise.
42747         * lib/sys_file.in.h: Likewise.
42748         * lib/sys_ioctl.in.h: Likewise.
42749         * lib/sys_select.in.h: Likewise.
42750         * lib/sys_socket.in.h: Likewise.
42751         * lib/sys_stat.in.h: Likewise.
42752         * lib/sys_time.in.h: Likewise.
42753         * lib/sysexits.in.h: Likewise.
42754         * lib/time.in.h: Likewise.
42755         * lib/unistd.in.h: Likewise.
42756         * lib/wchar.in.h: Likewise.
42757         * lib/wctype.in.h: Likewise.
42758         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42759
42760 2008-10-17  Jim Meyering  <meyering@redhat.com>
42761
42762         ignore-value: don't depend on inline module
42763         * modules/ignore-value (Depends-on): Remove 'inline'.
42764         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42765         Suggestion from Bruno Haible.
42766
42767 2008-10-17  Bruno Haible  <bruno@clisp.org>
42768
42769         New implementation of condition variables for Win32.
42770         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42771         (gl_linked_waitqueue_t): New type.
42772         (gl_cond_t): Use it.
42773         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42774         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42775         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42776         (glthread_cond_init_func, glthread_cond_wait_func,
42777         glthread_cond_timedwait_func, glthread_cond_signal_func,
42778         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42779         Reimplemented on the basis of gl_linked_waitqueue_t.
42780         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42781         gl_waitqueue_t.
42782         (gl_rwlock_t): Update.
42783         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42784
42785 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42786
42787         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42788         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42789
42790 2008-10-17  Jim Meyering  <meyering@redhat.com>
42791
42792         ignore-value: new module
42793         * modules/ignore-value: New file.
42794         * lib/ignore-value.h: New file.
42795         * MODULES.html.sh (Compiler warning management): New section,
42796         just for this module.  More to come.
42797
42798 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42799
42800         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42801         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42802         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42803
42804 2008-10-16  Jim Meyering  <meyering@redhat.com>
42805
42806         openat-die.c: avoid 'no previous prototype' warning
42807         * lib/openat-die.c: Include "openat.h".
42808         Reported by Reuben Thomas <rrt@sc3d.org>.
42809
42810 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42811
42812         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42813         * lib/netdb.in.h: Fix typo.
42814         Reported by Bruno Haible  <bruno@clisp.org>
42815
42816         * lib/netdb.in.h: Include sys/socket.h for platforms without
42817         netdb.h, to get structures like hostent on MinGW.
42818         * modules/netdb (Depends-on): Add sys_socket.
42819
42820 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42821
42822         * modules/netdb, modules/netdb-tests: New file.
42823         * m4/netdb_h.m4: New file.
42824         * lib/netdb.in.h: Add, currently just an empty file pending
42825         definitions.
42826         * tests/test-netdb.c: New file.
42827         * doc/posix-headers/netdb.texi: Mention that we replace it if
42828         needed.
42829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42830         netdb.
42831
42832 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42833
42834         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42835         with code.
42836
42837 2008-10-13  Bruno Haible  <bruno@clisp.org>
42838
42839         * lib/glthread/cond.c (glthread_cond_wait_func,
42840         glthread_cond_timedwait_func): Add a comment.
42841
42842 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42843
42844         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42845         * tests/test-select.c: Likewise,
42846
42847 2008-10-13  Bruno Haible  <bruno@clisp.org>
42848
42849         * lib/glthread/cond.c (glthread_cond_wait_func,
42850         glthread_cond_timedwait_func): Fix variable name.
42851         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42852
42853 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42854
42855         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42857         struct sockaddr.sa_len.
42858         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42859
42860 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42861
42862         * build-aux/pmccabe2html: Add css and css_url parameters.
42863
42864 2008-10-12  Bruno Haible  <bruno@clisp.org>
42865
42866         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42867         calling aclx_get.
42868         Reported by Rainer Tammer <tammer@tammer.net>.
42869
42870 2008-10-12  Bruno Haible  <bruno@clisp.org>
42871
42872         Use msvcrt aware primitives for creation/termination of Win32 threads.
42873         * lib/glthread/thread.c: Include <process.h>.
42874         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42875         (wrapper_func): Update signature.
42876         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42877
42878 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42879             Bruno Haible  <bruno@clisp.org>
42880
42881         Provide a Win32 implementation of the 'cond' module.
42882         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42883         * lib/glthread/cond.c (glthread_cond_init_func,
42884         glthread_cond_wait_func, glthread_cond_timedwait_func,
42885         glthread_cond_signal_func, glthread_cond_broadcast_func,
42886         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42887         * modules/cond (Dependencies): Add gettimeofday.
42888
42889 2008-10-11  Bruno Haible  <bruno@clisp.org>
42890
42891         Make sleep work on older versions of mingw.
42892         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42893         only whether it exists.
42894         * doc/posix-functions/sleep.texi: Mention the problem with older
42895         versions of mingw.
42896
42897 2008-10-11  Bruno Haible  <bruno@clisp.org>
42898
42899         New module 'shutdown'.
42900         * modules/shutdown: New file.
42901         * lib/sys_socket.in.h (shutdown): New declaration.
42902         * lib/winsock.c (shutdown): New function.
42903         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42904         GNULIB_SHUTDOWN.
42905         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42906         * doc/posix-functions/shutdown.texi: Document the new module.
42907
42908 2008-10-11  Jim Meyering  <meyering@redhat.com>
42909
42910         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42911
42912 2008-10-11  Bruno Haible  <bruno@clisp.org>
42913
42914         New module 'fclose'.
42915         * modules/fclose: New file.
42916         * lib/stdio.in.h (fclose): New declaration.
42917         * lib/fclose.c: New file.
42918         * m4/fclose.m4: New file.
42919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42920         REPLACE_FCLOSE.
42921         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42922         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42923         REPLACE_FCLOSE.
42924         * modules/close (Depends-on): fclose.
42925         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42926
42927 2008-10-11  Bruno Haible  <bruno@clisp.org>
42928
42929         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42930         set errno and don't call _close.
42931
42932 2008-10-10  Bruno Haible  <bruno@clisp.org>
42933
42934         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42935         ACL, not afterwards. Fixes test failure on Cygwin.
42936
42937 2008-10-09  Ben Pfaff  <blp@gnu.org>
42938
42939         * build-aux/announce-gen: Fix gnulib version related part of usage
42940         message.  Die with a useful error message if no tarballs are
42941         found.
42942
42943 2008-10-10  Jim Meyering  <meyering@redhat.com>
42944
42945         bootstrap: use git's --depth=N option only if it's supported
42946         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42947         recognize the --depth option.  Reported by Pádraig Brady.
42948
42949 2008-10-09  Bruno Haible  <bruno@clisp.org>
42950
42951         New module 'ioctl'.
42952         * modules/ioctl: New file.
42953         * lib/sys_socket.in.h (ioctl): Remove declaration.
42954         * lib/winsock.c: Include <sys/ioctl.h>.
42955         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42956         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42957         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42958         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42959         * doc/posix-functions/ioctl.texi: Mention the new module.
42960
42961 2008-10-09  Bruno Haible  <bruno@clisp.org>
42962
42963         New module 'sys_ioctl'.
42964         * lib/sys_ioctl.in.h: New file.
42965         * m4/sys_ioctl_h.m4: New file.
42966         * modules/sys_ioctl: New file.
42967         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42968
42969 2008-10-09  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42972         * lib/winsock.c: Include <stdarg.h>.
42973         (rpl_ioctl): Change to second argument 'int' and then varargs.
42974
42975 2008-10-09  Bruno Haible  <bruno@clisp.org>
42976
42977         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42978         when the sys_socket module is present and the system has <winsock2.h>.
42979
42980 2008-10-09  Bruno Haible  <bruno@clisp.org>
42981
42982         * doc/posix-functions/close.texi: Mention module 'close' instead of
42983         module 'sys_socket'.
42984
42985 2008-10-09  Bruno Haible  <bruno@clisp.org>
42986
42987         * doc/glibc-headers/sys_ioctl.texi: New file.
42988         * doc/gnulib.texi: Include it.
42989
42990 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42991             Bruno Haible  <bruno@clisp.org>
42992
42993         Combine the two replacements of 'close'.
42994         * lib/sys_socket.in.h (close): Define to a reminder to include
42995         <unistd.h>.
42996         (_gl_close_fd_maybe_socket): New declaration.
42997         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42998         * lib/winsock.c (close): Remove undefinition.
42999         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43000         needed for the gnulib module 'close'.
43001         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43002         define to an error symbol or to a warning, if suitable.
43003         * lib/close.c: Include <sys/socket.h>.
43004         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43005         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43006         UNISTD_H_HAVE_WINSOCK2_H.
43007         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43009         UNISTD_H_HAVE_WINSOCK2_H.
43010         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43011         (configure.ac): Set a module indicator.
43012         (Makefile.am): Substitute GNULIB_CLOSE.
43013         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43014         * modules/poll-tests (Depends-on): Add close.
43015         * modules/select-tests (Depends-on): Likewise.
43016
43017 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43018             Bruno Haible  <bruno@clisp.org>
43019
43020         New module 'close'.
43021         * modules/close: New file.
43022         * lib/unistd.in.h (close): Move declaration out of the
43023         FCHDIR_REPLACEMENT scope.
43024         (_gl_unregister_fd): New declaration.
43025         * lib/close.c: New file.
43026         * lib/fchdir.c (rpl_close): Remove function.
43027         * m4/close.m4: New file.
43028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43029         close.
43030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43031         REPLACE_CLOSE.
43032         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43033         REPLACE_CLOSE.
43034         * modules/fchdir (Depends-on): Add close.
43035
43036 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43037             Bruno Haible  <bruno@clisp.org>
43038
43039         * lib/fcntl.in.h (open): Simplify conditionals.
43040         (_gl_register_fd): New declaration.
43041         * lib/fchdir.c (rpl_open): Remove function.
43042         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43043         also.
43044         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43045         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43046         open.
43047
43048 2008-10-09  Jim Meyering  <meyering@redhat.com>
43049
43050         GNUmakefile: use the more name-space-friendly "_version"
43051         * top/GNUmakefile (_dummy): Update.
43052         (_version): Rename from "version".
43053
43054 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43055             Bruno Haible  <bruno@clisp.org>
43056
43057         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43058         rpl_close.
43059         (_gl_register_fd): New function, extracted from rpl_open.
43060         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43061         (rpl_open, rpl_opendir): Use _gl_register_fd.
43062
43063 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43064
43065         Fix organization of 'open' replacement.
43066         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43067         (gl_FUNC_OPEN): Use it.
43068         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43069
43070 2008-10-08  Bruno Haible  <bruno@clisp.org>
43071
43072         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43073
43074 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43075
43076         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43077         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43078         listen).
43079
43080 2008-10-08  Eric Blake  <ebb9@byu.net>
43081
43082         GNUmakefile: add 'make version' target
43083         * top/GNUmakefile (_curr-ver): Split version update rules...
43084         (version): ...into a target.
43085
43086 2008-10-07  Bruno Haible  <bruno@clisp.org>
43087
43088         Use a more portable replacement expression for -0.0L.
43089         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43090         instead of -0.0L. Fix m4 quotation.
43091
43092         * tests/test-signbit.c: Include <float.h>.
43093         (minus_zero): New variable.
43094         (test_signbitl): Use minus_zero instead of -zero.
43095         * modules/signbit-tests (Depends-on): Add float.
43096
43097         * tests/test-ceill.c: Include <float.h>.
43098         (zero): Remove variable.
43099         (minus_zero): New variable.
43100         (main): Use minus_zero instead of -zero.
43101         * modules/ceill-tests (Depends-on): Add float.
43102
43103         * tests/test-floorl.c: Include <float.h>.
43104         (zero): Remove variable.
43105         (minus_zero): New variable.
43106         (main): Use minus_zero instead of -zero.
43107         * modules/floorl-tests (Depends-on): Add float.
43108
43109         * tests/test-roundl.c: Include <float.h>.
43110         (zero): Remove variable.
43111         (minus_zero): New variable.
43112         (main): Use minus_zero instead of -zero.
43113         * modules/roundl-tests (Depends-on): Add float.
43114
43115         * tests/test-truncl.c: Include <float.h>.
43116         (zero): Remove variable.
43117         (minus_zero): New variable.
43118         (main): Use minus_zero instead of -zero.
43119         * modules/truncl-tests (Depends-on): Add float.
43120
43121         * tests/test-frexpl.c (zero): Remove variable.
43122         (minus_zero): New variable.
43123         (main): Use minus_zero instead of -zero.
43124         * modules/frexpl-tests (Depends-on): Add float.
43125
43126         * tests/test-isnan.c (zerol): Remove variable.
43127         (minus_zerol): New variable.
43128         (test_long_double): Use minus_zerol instead of -zerol.
43129         * modules/isnan-tests (Depends-on): Add float.
43130
43131         * tests/test-isnanl.h (zero): Remove variable.
43132         (minus_zero): New variable.
43133         (main): Use minus_zero instead of -zero.
43134         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43135         * modules/isnanl-tests (Depends-on): Add float.
43136
43137         * tests/test-ldexpl.c (zero): Remove variable.
43138         (minus_zero): New variable.
43139         (main): Use minus_zero instead of -zero.
43140         * modules/ldexpl-tests (Depends-on): Add float.
43141
43142         * tests/test-snprintf-posix.h (zerol): Remove variable.
43143         (minus_zerol): New variable.
43144         (test_function): Use minus_zerol instead of -zerol.
43145         * modules/snprintf-posix-tests (Depends-on): Add float.
43146         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43147
43148         * tests/test-sprintf-posix.h (zerol): Remove variable.
43149         (minus_zerol): New variable.
43150         (test_function): Use minus_zerol instead of -zerol.
43151         * modules/sprintf-posix-tests (Depends-on): Add float.
43152         * modules/vsprintf-posix-tests (Depends-on): Add float.
43153
43154         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43155         (minus_zerol): New variable.
43156         (test_function): Use minus_zerol instead of -zerol.
43157         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43158
43159         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43160         (minus_zerol): New variable.
43161         (test_function): Use minus_zerol instead of -zerol.
43162         * modules/vasprintf-posix-tests (Depends-on): Add float.
43163
43164 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43165
43166         * MODULES.html.sh (Support for building documentation): Mention
43167         pmccabe2html.  Sort entries.
43168
43169         Add pmccabe2html module, from gnupdf.
43170         * build-aux/pmccabe.css: New file.
43171         * build-aux/pmccabe2html: New file.
43172         * m4/pmccabe2html.m4: New file.
43173         * modules/pmccabe2html: New file.
43174
43175 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43176
43177         flock: new module
43178         * MODULES.html.sh: Add to list of modules.
43179         * lib/flock.c: flock implementation for Windows and Unix systems
43180         which have fcntl.
43181         * doc/glibc-functions/flock.texi: Update documentation.
43182         * lib/sys_file.in.h: <sys/file.h> header file.
43183         * m4/flock.m4: M4 macros.
43184         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43185         * modules/flock: flock module.
43186         * modules/flock-tests: flock tests module.
43187         * modules/sys_file: sys/file.h module.
43188         * tests/test-flock.c: test suite for flock.
43189
43190 2008-10-06  Jim Meyering  <meyering@redhat.com>
43191
43192         bootstrap: check for LT_INIT more portably still ;-)
43193         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43194         Spotted by Bruno Haible.
43195
43196 2008-10-06  Eric Blake  <ebb9@byu.net>
43197
43198         test-signbit: avoid tripping Irix cc bug on -0.0L
43199         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43200         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43201         entire testsuite consistent and avoids an Irix 6.2 bug.
43202
43203 2008-10-05  Bruno Haible  <bruno@clisp.org>
43204             Jim Meyering  <jim@meyering.net>
43205
43206         Add an option for ignoring EPIPE during close_stdout.
43207         * lib/closeout.h: Include <stdbool.h>.
43208         (close_stdout_set_ignore_EPIPE): New declaration.
43209         * lib/closeout.c: Include <stdbool.h>.
43210         (ignore_EPIPE): New variable.
43211         (close_stdout_set_ignore_EPIPE): New function.
43212         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43213         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43214         failure.
43215         * modules/closeout (Depends-on): Add stdbool.
43216
43217 2008-10-05  Bruno Haible  <bruno@clisp.org>
43218
43219         * modules/accept: New file.
43220         * modules/bind: New file.
43221         * modules/connect: New file.
43222         * modules/getpeername: New file.
43223         * modules/getsockname: New file.
43224         * modules/getsockopt: New file.
43225         * modules/listen: New file.
43226         * modules/recv: New file.
43227         * modules/recvfrom: New file.
43228         * modules/send: New file.
43229         * modules/sendto: New file.
43230         * modules/setsockopt: New file.
43231         * modules/socket: New file.
43232         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43233         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43234         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43235         the particular module is requested. Add a link warning when the
43236         particular module is not requested.
43237         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43238         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43239         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43240         the particular module is requested.
43241         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43242         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43243         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43244         * modules/sys_socket (Depends-on): Add link-warning.
43245         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43246         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43247         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43248         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43249         GL_LINK_WARNING.
43250         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43251         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43252         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43253         * doc/posix-functions/getpeername.texi: Mention the new module
43254         'getpeername'.
43255         * doc/posix-functions/getsockname.texi: Mention the new module
43256         'getsockname'.
43257         * doc/posix-functions/getsockopt.texi: Mention the new module
43258         'getsockopt'.
43259         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43260         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43261         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43262         * doc/posix-functions/send.texi: Mention the new module 'send'.
43263         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43264         * doc/posix-functions/setsockopt.texi: Mention the new module
43265         'setsockopt'.
43266         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43267         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43268         listen, connect, accept.
43269         * modules/select-tests (Depends-on): Likewise.
43270
43271 2008-10-05  Bruno Haible  <bruno@clisp.org>
43272
43273         * lib/winsock.c (strerror): Remove unused #undef.
43274         (rpl_close): Remove unused local variable.
43275
43276         * modules/sys_socket (Depends-on); Add errno.
43277
43278 2008-10-05  Bruno Haible  <bruno@clisp.org>
43279
43280         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43281         (select): Add a link warning when the 'select' module is not used.
43282         * modules/sys_select (Depends-on): Add link-warning.
43283         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43284         Suggested by Paolo Bonzini.
43285
43286 2008-10-05  Jim Meyering  <meyering@redhat.com>
43287
43288         bootstrap: check for LT_INIT more portably
43289         * build-aux/bootstrap: Avoid using grep -E, since it's not
43290         portable enough.  Suggestion from Bruno Haible.
43291
43292 2008-10-05  Bruno Haible  <bruno@clisp.org>
43293
43294         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43295         as being fixed by gnulib.
43296
43297 2008-10-05  Bruno Haible  <bruno@clisp.org>
43298
43299         * modules/select-tests: New file, mostly copied from
43300         modules/sys_select-tests.
43301         * tests/test-select.c: New file, mostly copied from
43302         tests/test-sys_select.c.
43303         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43304         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43305         (Makefile.am): Remove test_sys_select_LDADD.
43306
43307         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43308         to an undefined symbol, for an error message.
43309         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43310         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43311         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43312         winsock-select.c here.
43313         * modules/sys_select (Files): Remove lib/winsock-select.c.
43314         (Depends-on): Remove alloca.
43315         (Makefile.am): Substitute GNULIB_SELECT.
43316         * modules/select: New file.
43317         * doc/posix-functions/select.texi: Update.
43318
43319 2008-10-05  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43322         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43323         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43324         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43325         getdtablesize.
43326         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43327         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43328
43329 2008-10-05  Bruno Haible  <bruno@clisp.org>
43330
43331         * modules/getdtablesize-tests: New file.
43332         * tests/test-getdtablesize.c: New file.
43333
43334         New module 'getdtablesize'.
43335         * lib/unistd.in.h (getdtablesize): New declaration.
43336         * lib/getdtablesize.c: New file.
43337         * m4/getdtablesize.m4: New file.
43338         * modules/getdtablesize: New file.
43339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43340         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43341         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43342         HAVE_GETDTABLESIZE.
43343         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43344
43345 2008-10-05  Bruno Haible  <bruno@clisp.org>
43346
43347         * modules/sched (Makefile.am): Fix typo.
43348         Reported by Simon Josefsson.
43349
43350 2008-10-05  Jim Meyering  <meyering@redhat.com>
43351
43352         bootstrap: check for LT_INIT, too
43353         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43354         are deprecated.  Suggestion from Ralf Wildenhues.
43355
43356 2008-10-05  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43359         overriding them by ours.
43360         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43361
43362 2008-10-05  Jim Meyering  <meyering@redhat.com>
43363
43364         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43365         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43366         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43367
43368 2008-10-04  Bruno Haible  <bruno@clisp.org>
43369
43370         * modules/dup2 (License): Change to LGPLv2+.
43371         * modules/sleep (License): Likewise.
43372         * modules/perror (License): Likewise.
43373         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43374         Blake.
43375         * modules/signal (License): Likewise.
43376         * modules/sigprocmask (License): Likewise.
43377         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43378         Meyering.
43379
43380 2008-10-04  Bruno Haible  <bruno@clisp.org>
43381
43382         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43383         Reported by Rainer Tammer <tammer@tammer.net>.
43384
43385 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43386             Bruno Haible  <bruno@clisp.org>
43387
43388         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43389         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43390         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43391
43392 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43393
43394         filevercmp: new module
43395         * lib/filevercmp.h: New function filevercmp comparing version strings.
43396         * lib/filevercmp.c: Implementation of filevercmp function.
43397         * modules/filevercmp: Module metadata.
43398         * tests/test-filevercmp.c: Unit test for new module.
43399         * modules/filevercmp-tests: Unit test metadata.
43400         * MODULES.html.sh: Add filevercmp module.
43401
43402 2008-10-03  Bruno Haible  <bruno@clisp.org>
43403
43404         * lib/c-ctype.h: Add comment.
43405         Reported by Jim Meyering.
43406
43407 2008-10-02  Bruno Haible  <bruno@clisp.org>
43408
43409         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43410
43411 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43412
43413         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43414         name of bootstrap.conf accordingly.
43415
43416 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43417
43418         * build-aux/bootstrap: Install git-merge-changelog configuration
43419         items into .gitconfig if needed.
43420
43421 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43422
43423         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43424         git repository, and initialize/update it accordingly.
43425
43426 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43427
43428         * modules/fsync-tests: New file.
43429         * tests/test-fsync.c: New file.
43430
43431         New module 'fsync'.
43432         * lib/fsync.c: New file.
43433         * m4/fsync.m4: New file.
43434         * modules/fsync: New file.
43435         * lib/unistd.in.h (fsync): New declaration.
43436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43437         GNULIB_FSYNC and HAVE_FSYNC.
43438         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43439         * MODULES.html.sh (posix_functions): Add fsync.
43440         * doc/posix-functions/fsync.texi: Mention the new module.
43441
43442 2008-10-02  Jim Meyering  <meyering@redhat.com>
43443
43444         fts.c: sync with similar code from coreutils' remove.c
43445         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43446         Guard also with "#if defined __linux__", since for now at least,
43447         this code is Linux-kernel-specific.
43448
43449 2008-10-02  Jim Meyering  <meyering@redhat.com>
43450
43451         fts: bug fixes
43452         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43453         Include <sys/vfs.h>, not <sys/statfs.h>.
43454
43455         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43456         Include <sys/vfs.h>, not <sys/statfs.h>.
43457
43458 2008-10-01  Bruno Haible  <bruno@clisp.org>
43459
43460         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43461         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43462         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43463         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43464         * doc/posix-functions/posix_spawnp.texi: Likewise.
43465         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43466         whether posix_spawn actually works.
43467         * m4/pipe.m4 (gl_PIPE): Likewise.
43468         * modules/execute (Files): Add m4/posix_spawn.m4.
43469         * modules/pipe (Files): Add m4/posix_spawn.m4.
43470         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43471
43472 2008-10-01  Jim Meyering  <meyering@redhat.com>
43473
43474         remove trailing spaces
43475         * NEWS: Likewise.
43476         * lib/poll.c (poll): Likewise.
43477         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43478         * lib/winsock.c (rpl_close): Likewise.
43479         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43480         * modules/yield: Likewise.
43481         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43482         * tests/test-sys_select.c (connect_to_socket): Likewise.
43483
43484         fts.c: adjust a new interface to be more generally useful
43485         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43486         (fts_build): Adjust caller.
43487
43488 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43489
43490         * modules/cond-tests: New file.
43491         * tests/test-cond.c: New file.
43492
43493 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43494             Bruno Haible  <bruno@clisp.org>
43495
43496         * modules/cond (Dependencies): Add errno, time.
43497         * lib/glthread/cond.h: Include <time.h>.
43498         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43499         across platforms.
43500
43501 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43502             Bruno Haible  <bruno@clisp.org>
43503
43504         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43505
43506 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43507             Bruno Haible  <bruno@clisp.org>
43508
43509         * modules/tls-tests (Depends-on): Add thread, yield.
43510         (configure.ac): Remove all checks.
43511         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43512         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43513         gl_thread_self): Remove definitions. Include glthread/thread.h and
43514         glthread/yield.h instead.
43515         (test_tls): Pass an additional NULL argument to gl_thread_join.
43516
43517 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43518             Bruno Haible  <bruno@clisp.org>
43519
43520         * modules/lock-tests (Depends-on): Add thread, yield.
43521         (configure.ac): Remove all checks.
43522         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43523         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43524         gl_thread_self): Remove definitions. Include glthread/thread.h and
43525         glthread/yield.h instead.
43526         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43527         additional NULL argument to gl_thread_join.
43528
43529 2008-09-30  Bruno Haible  <bruno@clisp.org>
43530
43531         Fix the Win32 implementation of the 'thread' module.
43532         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43533         pointer type.
43534         (gl_thread_self): Invoke gl_thread_self_func.
43535         (gl_thread_self_func): New declaration.
43536         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43537         (do_init_self_key, init_self_key): New functions.
43538         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43539         Remove some fields.
43540         (running_threads, running_lock): Remove variables.
43541         (get_current_thread_handle): New function.
43542         (gl_thread_self_func, wrapper_func, glthread_create_func,
43543         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43544         simplified.
43545
43546 2008-09-30  Bruno Haible  <bruno@clisp.org>
43547
43548         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43549         files.
43550
43551 2008-09-30  Jim Meyering  <meyering@redhat.com>
43552
43553         fts.m4: correct the test for statfs.f_type
43554         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43555         when checking for statfs.f_type.
43556
43557 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43558
43559         tests: avoid some compiler warnings
43560         * tests/test-memchr.c (main): Pass NULL indirectly.
43561         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43562
43563 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43564
43565         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43566         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43567         exactly specified dayshifts.
43568         (dayshift): New rule.
43569         (rel): Add dayshift.
43570         (relative_time_table) [tomorrow, yesterday, today, now]:
43571         Use tDAY_SHIFT in place of tDAY_UNIT.
43572         * tests/test-getdate.c: Add tests for now-disallowed countable
43573         dayshifts, e.g., "4 yesterday ago".
43574
43575 2008-09-29  Bruno Haible  <bruno@clisp.org>
43576
43577         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43578         * tests/test-posix_spawn1.in.sh: Renamed from
43579         tests/test-posix_spawn.in.sh.
43580         * tests/test-posix_spawn2.c: New file.
43581         * tests/test-posix_spawn2.in.sh: New file.
43582         * modules/posix_spawnp-tests (Files): Update.
43583         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43584
43585 2008-09-29  Bruno Haible  <bruno@clisp.org>
43586
43587         Propagate effects of putenv/setenv/unsetenv to child processes.
43588         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43589         * lib/pipe.c (create_pipe): Likewise.
43590
43591 2008-09-29  Bruno Haible  <bruno@clisp.org>
43592
43593         Enable use of shell scripts as executables in mingw.
43594         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43595         run the program as a shell script.
43596         * lib/pipe.c (create_pipe): Likewise.
43597         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43598         resulting array.
43599
43600 2008-09-29  Eric Blake  <ebb9@byu.net>
43601
43602         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43603
43604 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43605
43606         * doc/posix-functions/accept.texi: Update mingw problems.
43607         * doc/posix-functions/bind.texi: Update mingw problems.
43608         * doc/posix-functions/close.texi: Update mingw problems.
43609         * doc/posix-functions/connect.texi: Update mingw problems.
43610         * doc/posix-functions/getpeername.texi: Update mingw problems.
43611         * doc/posix-functions/getsockname.texi: Update mingw problems.
43612         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43613         * doc/posix-functions/ioctl.texi: Update mingw problems.
43614         * doc/posix-functions/listen.texi: Update mingw problems.
43615         * doc/posix-functions/recv.texi: Update mingw problems.
43616         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43617         * doc/posix-functions/select.texi: Update mingw problems.
43618         * doc/posix-functions/send.texi: Update mingw problems.
43619         * doc/posix-functions/sendto.texi: Update mingw problems.
43620         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43621         * doc/posix-functions/socket.texi: Update mingw problems.
43622
43623 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43624             Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/sys_select.in.h: Include sys/time.h.
43627         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43628         * modules/sys_select: Depend on sys_time.
43629         * tests/test-sys_select.c: Test that sys/select.h defines struct
43630         timeval fully.
43631
43632 2008-09-29  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43635         * lib/sys_select.in.h: Likewise.
43636
43637 2008-09-29  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43640
43641 2008-09-29  Bruno Haible  <bruno@clisp.org>
43642
43643         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43644         Set LIBSOCKET instead of augmenting LIBS.
43645         * modules/sockets (Link): New section.
43646         * modules/sockets-tests (test_sockets_LDADD): New variable.
43647         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43648         * modules/poll-tests (test_poll_LDADD): New variable.
43649         * NEWS: Document the change.
43650
43651 2008-09-29  Bruno Haible  <bruno@clisp.org>
43652
43653         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43654         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43655         ARPA_INET_H directly.
43656         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43657
43658 2008-09-28  Bruno Haible  <bruno@clisp.org>
43659
43660         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43661         from gl_HEADER_SYS_SOCKET.
43662         (gl_HEADER_SYS_SOCKET): Invoke it.
43663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43664
43665 2008-09-28  Bruno Haible  <bruno@clisp.org>
43666
43667         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43668         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43669         Needed on OSF/1 4.0.
43670
43671 2008-09-28  Bruno Haible  <bruno@clisp.org>
43672
43673         Override open more carefully.
43674         * lib/open.c (orig_open): New function.
43675         (rpl_open): Use orig_open instead of open.
43676         * lib/fcntl.in.h: Add special invocation convention.
43677         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43678         (gl_FUNC_OPEN): Invoke it.
43679
43680         Override freopen more carefully.
43681         * lib/freopen.c (orig_freopen): New function.
43682         (rpl_freopen): Use orig_freopen instead of freopen.
43683         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43684         (gl_FUNC_FREOPEN): Invoke it.
43685
43686         Override fopen more carefully.
43687         * lib/fopen.c (orig_fopen): New function.
43688         (rpl_fopen): Use orig_fopen instead of fopen.
43689         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43690         (gl_FUNC_FOPEN): Invoke it.
43691         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43692
43693 2008-09-28  Bruno Haible  <bruno@clisp.org>
43694
43695         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43696         SIGPIPE.
43697
43698 2008-09-28  Bruno Haible  <bruno@clisp.org>
43699
43700         * tests/test-sigaction.c (handler, main): Disable the check whether
43701         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43702         glibc systems with LinuxThreads.
43703
43704 2008-09-28  Bruno Haible  <bruno@clisp.org>
43705
43706         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43707
43708         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43709         with AIX xlc.
43710         * lib/fcntl.in.h (open): Likewise.
43711         Reported by Rainer Tammer <tammer@tammer.net>.
43712
43713 2008-09-28  Bruno Haible  <bruno@clisp.org>
43714
43715         * modules/posix_spawnp-tests: New file.
43716         * tests/test-posix_spawn.c: New file.
43717         * tests/test-posix_spawn.in.sh: New file.
43718
43719         New module 'posix_spawnp'.
43720         * modules/posix_spawnp: New file.
43721         * lib/spawnp.c: New file, from GNU libc with modifications.
43722         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43723
43724         New module 'posix_spawn'.
43725         * modules/posix_spawn: New file.
43726         * lib/spawn.c: New file, from GNU libc with modifications.
43727         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43728
43729         New module 'posix_spawnattr_destroy'.
43730         * modules/posix_spawnattr_destroy: New file.
43731         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43732         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43733         module.
43734
43735         New module 'posix_spawnattr_setsigmask'.
43736         * modules/posix_spawnattr_setsigmask: New file.
43737         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43738         modifications.
43739         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43740         new module.
43741
43742         New module 'posix_spawnattr_getsigmask'.
43743         * modules/posix_spawnattr_getsigmask: New file.
43744         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43745         modifications.
43746         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43747         new module.
43748
43749         New module 'posix_spawnattr_setsigdefault'.
43750         * modules/posix_spawnattr_setsigdefault: New file.
43751         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43752         modifications.
43753         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43754         new module.
43755
43756         New module 'posix_spawnattr_getsigdefault'.
43757         * modules/posix_spawnattr_getsigdefault: New file.
43758         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43759         modifications.
43760         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43761         new module.
43762
43763         New module 'posix_spawnattr_setschedpolicy'.
43764         * modules/posix_spawnattr_setschedpolicy: New file.
43765         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43766         modifications.
43767         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43768         new module.
43769
43770         New module 'posix_spawnattr_getschedpolicy'.
43771         * modules/posix_spawnattr_getschedpolicy: New file.
43772         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43773         modifications.
43774         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43775         new module.
43776
43777         New module 'posix_spawnattr_setschedparam'.
43778         * modules/posix_spawnattr_setschedparam: New file.
43779         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43780         modifications.
43781         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43782         new module.
43783
43784         New module 'posix_spawnattr_getschedparam'.
43785         * modules/posix_spawnattr_getschedparam: New file.
43786         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43787         modifications.
43788         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43789         new module.
43790
43791         New module 'posix_spawnattr_setpgroup'.
43792         * modules/posix_spawnattr_setpgroup: New file.
43793         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43794         modifications.
43795         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43796         module.
43797
43798         New module 'posix_spawnattr_getpgroup'.
43799         * modules/posix_spawnattr_getpgroup: New file.
43800         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43801         modifications.
43802         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43803         module.
43804
43805         New module 'posix_spawnattr_setflags'.
43806         * modules/posix_spawnattr_setflags: New file.
43807         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43808         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43809         module.
43810
43811         New module 'posix_spawnattr_getflags'.
43812         * modules/posix_spawnattr_getflags: New file.
43813         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43814         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43815         module.
43816
43817         New module 'posix_spawnattr_init'.
43818         * modules/posix_spawnattr_init: New file.
43819         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43820         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43821         module.
43822
43823         New module 'posix_spawn_file_actions_destroy'.
43824         * modules/posix_spawn_file_actions_destroy: New file.
43825         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43826         modifications.
43827         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43828         the new module.
43829
43830         New module 'posix_spawn_file_actions_addopen'.
43831         * modules/posix_spawn_file_actions_addopen: New file.
43832         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43833         modifications.
43834         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43835         the new module.
43836
43837         New module 'posix_spawn_file_actions_adddup2'.
43838         * modules/posix_spawn_file_actions_adddup2: New file.
43839         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43840         modifications.
43841         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43842         the new module.
43843
43844         New module 'posix_spawn_file_actions_addclose'.
43845         * modules/posix_spawn_file_actions_addclose: New file.
43846         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43847         modifications.
43848         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43849         the new module.
43850
43851         New module 'posix_spawn_file_actions_init'.
43852         * modules/posix_spawn_file_actions_init: New file.
43853         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43854         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43855         new module.
43856
43857         New module 'posix_spawn-internal'.
43858         * modules/posix_spawn-internal: New file.
43859         * lib/spawn_int.h: New file, from GNU libc with modifications.
43860         * lib/spawni.c: New file, from GNU libc with modifications.
43861         * m4/posix_spawn.m4: New file.
43862
43863         New module 'spawn'.
43864         * modules/spawn: New file.
43865         * lib/spawn.in.h: New file, from GNU libc with modifications.
43866         * m4/spawn_h.m4: New file.
43867         * doc/posix-headers/spawn.texi: Mention the new module.
43868
43869 2008-09-28  Bruno Haible  <bruno@clisp.org>
43870
43871         * modules/sched-tests: New file.
43872         * tests/test-sched.c: New file.
43873
43874         New module 'sched'.
43875         * modules/sched: New file.
43876         * lib/sched.in.h: New file.
43877         * m4/sched_h.m4: New file.
43878         * doc/posix-headers/sched.texi: Mention the new module.
43879
43880 2008-09-27  Eric Blake  <ebb9@byu.net>
43881
43882         Fix previous patch, and tweak references to $0.
43883         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43884         (func_version, func_gnulib_dir): Don't call this program
43885         gnulib-tool.
43886         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43887         with using $0 in function.
43888         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43889         (func_fatal_error): Reuse the name the user invoked us with.
43890
43891 2008-09-27  Bruno Haible  <bruno@clisp.org>
43892
43893         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43894         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43895         (gl_ICONV_H): Not here.
43896         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43897         instead of assigning ICONV_H directly.
43898
43899         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43901         WCHAR_H directly.
43902
43903 2008-09-27  Bruno Haible  <bruno@clisp.org>
43904
43905         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43906         * modules/arpa_inet (Depends-on): Add link-warning.
43907         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43908         * modules/unistd (Makefile.am): Likewise.
43909
43910 2008-09-26  Bruno Haible  <bruno@clisp.org>
43911
43912         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43913         variables.
43914         (func_version): Essentially copied from gnulib-tool.
43915         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43916         func_readlink): Copied from gnulib-tool.
43917
43918 2008-09-26  Bruno Haible  <bruno@clisp.org>
43919
43920         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43921         invoking git-version-gen.
43922
43923 2008-09-26  Bruno Haible  <bruno@clisp.org>
43924
43925         * posix-modules: Update to directory names changed on 2008-01-19.
43926         Remove commas in output before splitting into words. No more need to
43927         avoid 'ftruncate' since 2007-02-19.
43928
43929 2008-09-26  Bruno Haible  <bruno@clisp.org>
43930
43931         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43932
43933 2008-09-26  Bruno Haible  <bruno@clisp.org>
43934
43935         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43936         * modules/fwriteerror (Depends-on): Add errno.
43937
43938 2008-09-26  Bruno Haible  <bruno@clisp.org>
43939
43940         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43941         * tests/test-vc-list-files-cvs.sh: Likewise.
43942
43943 2008-09-26  Bruno Haible  <bruno@clisp.org>
43944
43945         * doc/posix-headers/sys_resource.texi: Reorder items.
43946
43947 2008-09-26  Jim Meyering  <meyering@redhat.com>
43948
43949         fts: tweak inode comparison function
43950         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43951         inode numbers, as documented.
43952
43953         fts: sort dirent entries on inode number before traversing
43954         This avoids a quadratic, seek-related performance penalty when
43955         operating on a directory containing many entries (measurable at 10k;
43956         3.5 hours at 2 million entries with a cold cache) on certain types
43957         of file systems, including ext3 and ext4, but not tmpfs.
43958         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43959         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43960         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43961         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43962         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43963         (fts_build): Set the stat.st_ino member from D_INO.
43964         If it is likely to be useful, sort dirent entries on inode number.
43965
43966         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43967         and the struct statfs.f_type member.
43968         * modules/fts (Depends-on): Add d-ino.
43969
43970 2008-09-26  Bruno Haible  <bruno@clisp.org>
43971
43972         * modules/sigpipe-die (Depends-on): Add sigpipe.
43973
43974         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43975         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43976         and GNULIB_STDIO_H_SIGPIPE are set.
43977         * lib/stdio-write.c: New file.
43978         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43979         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43980         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43981         REPLACE_STDIO_WRITE_FUNCS.
43982         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43983         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43984         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43985         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43986         * modules/stdio (Files): Add lib/stdio-write.c.
43987         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43988         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43989         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43990         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43991         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43992         REPLACE_FPRINTF_POSIX.
43993         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43994         REPLACE_PRINTF_POSIX.
43995         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43996         REPLACE_VFPRINTF_POSIX.
43997         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43998         REPLACE_VPRINTF_POSIX.
43999         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44000         SIGPIPE issue.
44001         * doc/posix-functions/fputc.texi: Likewise.
44002         * doc/posix-functions/fputs.texi: Likewise.
44003         * doc/posix-functions/fwrite.texi: Likewise.
44004         * doc/posix-functions/printf.texi: Likewise.
44005         * doc/posix-functions/putc.texi: Likewise.
44006         * doc/posix-functions/putchar.texi: Likewise.
44007         * doc/posix-functions/puts.texi: Likewise.
44008         * doc/posix-functions/vfprintf.texi: Likewise.
44009         * doc/posix-functions/vprintf.texi: Likewise.
44010
44011         * modules/safe-write (Depends-on): Add write.
44012
44013         * modules/sigpipe-tests: New file.
44014         * tests/test-sigpipe.c: New file.
44015         * tests/test-sigpipe.sh: New file.
44016
44017         * modules/write: New file.
44018         * lib/unistd.in.h: Include <sys/types.h>.
44019         (write): New declaration.
44020         * lib/write.c: New file.
44021         * m4/write.m4: New file.
44022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44023         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44024         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44025         GNULIB_WRITE, REPLACE_WRITE.
44026         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44027         and the SIGPIPE issue.
44028
44029         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44030         (raise): New declaration.
44031         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44032         (ext_signal): New function.
44033         (rpl_raise): New function.
44034         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44035         GNULIB_SIGNAL_H_SIGPIPE.
44036         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44037         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44038
44039         * modules/sigpipe: New file.
44040         * m4/sigpipe.m4: New file.
44041
44042 2008-09-25  Derek Price  <derek@ximbiot.com>
44043             Bruno Haible  <bruno@clisp.org>
44044
44045         * gnulib-tool (func_import): Report all license incompatibilities, not
44046         just the first one.
44047
44048 2008-09-25  Bruno Haible  <bruno@clisp.org>
44049
44050         * gnulib-tool (func_import): When computing the edits, consider not
44051         only the Makefile.ams that exist but also those that will be generated.
44052
44053 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44054
44055         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44056         fixes gnulib-tool --test warning about duplicate dependency.
44057
44058 2008-09-25  Bruno Haible  <bruno@clisp.org>
44059
44060         * gnulib-tool: Don't ask the user to perform edits in the generated
44061         Makefile.ams.
44062         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44063         apply to the Makefile.am being generated.
44064         (func_emit_tests_Makefile_am): Execute edits that apply to the
44065         Makefile.am being generated.
44066         (func_import): Setup list of Makefile.am edits before emitting the
44067         Makefile.ams, not at the end.
44068         (func_create_testdir): Update.
44069         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44070
44071 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44072
44073         * gnulib-tool (func_import): Store the --tests-base option in the
44074         comment in gnulib-cache.m4.
44075
44076 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44077
44078         * NEWS: Document increased portability that sys_select now provides.
44079
44080         * lib/sys_select.in.h: Install select wrapper.
44081         * lib/sys_socket.in.h: Use more descriptive name when there is no
44082         select wrapper.
44083         * lib/winsock-select.c: New.
44084         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44085         Require gl_HEADER_SYS_SOCKET.
44086         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44087         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44088         * tests/test-sys_select.c: Add functional tests.
44089
44090 2008-09-24  Eric Blake  <ebb9@byu.net>
44091
44092         open, fopen: close fd leak in last patch
44093         * lib/open.c (rpl_open): Close fd before returning error.
44094         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44095         * doc/posix-functions/open.texi (open): Document that Irix also
44096         has the bug.
44097         * doc/posix-functions/fopen.texi (fopen): Likewise.
44098         Reported by Paolo Bonzini.
44099
44100 2008-09-24  Bruno Haible  <bruno@clisp.org>
44101
44102         Ensure that a filename ending in a slash cannot be used to access a
44103         non-directory.
44104         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44105         to check whether it's really a directory.
44106         * lib/fopen.c: Include fcntl.h, unistd.h.
44107         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44108         and fdopen().
44109         * modules/fopen (Depends-on): Add unistd.
44110         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44111         * tests/test-fopen.c (main): Likewise.
44112         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44113         * doc/posix-functions/fopen.texi: Likewise.
44114         Reported by Eric Blake.
44115
44116 2008-09-23  Eric Blake  <ebb9@byu.net>
44117
44118         c-stack: avoid compiler optimizations when provoking overflow
44119         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44120         recursion harder to optimize, to ensure a stack overflow occurs.
44121         * tests/test-c-stack.c (recurse): Likewise.
44122         Borrowed from libsigsegv.
44123
44124         c-stack: work around Irix sigaltstack bug
44125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44126         whether sigaltstack uses wrong end of stack_t (copied in part from
44127         libsigsegv).
44128         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44129         Irix bug, without requiring an over-allocation.
44130         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44131         bug.
44132
44133         fopen: document mingw bug on directories
44134         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44135         not allowing a stream visiting a directory, even though reading
44136         from such a stream is not portable.
44137
44138 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44139
44140         * lib/poll.c: Rewrite.
44141         * modules/poll: Depend on alloca.
44142
44143 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44144
44145         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44146         instead define prototypes for a full set of wrappers.  Ensure
44147         that Cygwin does not use the compatibility code, which is only
44148         for MinGW.
44149         * lib/winsock.c: New.
44150         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44151         * modules/sys_socket: Add lib/winsock.c.
44152
44153         * modules/poll-tests: Add errno and perror.
44154         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44155
44156 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44157
44158         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44159
44160 2008-09-23  Bruno Haible  <bruno@clisp.org>
44161
44162         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44163         * doc/glibc-functions/*: Likewise.
44164
44165 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44166
44167         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44168         success.
44169
44170 2008-09-22  Eric Blake  <ebb9@byu.net>
44171             Bruno Haible  <bruno@clisp.org>
44172
44173         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44174         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44175         supply %A but mishandle pseudo-NaN.
44176         Reported by Simon Josefsson.
44177
44178 2008-09-21  Bruno Haible  <bruno@clisp.org>
44179
44180         * tests/test-lock.c (main): Tweak skip message.
44181         * tests/test-tls.c (main): Likewise.
44182
44183 2008-09-21  Bruno Haible  <bruno@clisp.org>
44184
44185         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44186         whether 'struct sigaction' has sa_sigaction here...
44187         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44188         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44189
44190 2008-09-21  Bruno Haible  <bruno@clisp.org>
44191
44192         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44193         section.
44194         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44195         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44196         the new section.
44197         (Support for obsolete systems lacking POSIX:2001): New section.
44198         (String handling <string.h>): Move strdup to the new section.
44199         Suggested by Simon Josefsson and Paolo Bonzini.
44200
44201 2008-09-21  Bruno Haible  <bruno@clisp.org>
44202
44203         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44204         exponents in %e and %g results on 'long double'. Needed for mingw's
44205         improved *printf functions.
44206         * tests/test-vasprintf-posix.c (test_function): Likewise.
44207         * tests/test-snprintf-posix.h (test_function): Likewise.
44208         * tests/test-sprintf-posix.h (test_function): Likewise.
44209         Reported by Eric Blake.
44210
44211 2008-09-21  Bruno Haible  <bruno@clisp.org>
44212
44213         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44214         * tests/test-sprintf-posix.h (test_function): Likewise.
44215
44216 2008-09-21  Bruno Haible  <bruno@clisp.org>
44217
44218         * modules/getpass (Depends-on): Add strdup-posix.
44219
44220         New module 'strdup-posix'.
44221         * modules/strdup-posix: New file.
44222         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44223         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44225         REPLACE_STRDUP.
44226         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44227         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44229         strdup-posix.
44230
44231         * modules/strdup (Depends-on): Remove malloc-posix.
44232
44233 2008-09-20  Bruno Haible  <bruno@clisp.org>
44234
44235         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44236         Wildenhues.
44237
44238 2008-09-20  Bruno Haible  <bruno@clisp.org>
44239
44240         Ensure that wint_t gets defined on IRIX 5.3.
44241         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44242         * lib/wctype.in.h (wint_t): Likewise.
44243         (__wctype_wint_t): Remove type.
44244         (isw*): Use wint_t instead of __wctype_wint_t.
44245         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44246         * modules/wchar (Files): Add m4/wint_t.m4.
44247         (Makefile.am): Substitute HAVE_WINT_T.
44248         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44249         * tests/test-wctype.c: Check that wint_t is defined.
44250         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44251         * doc/posix-headers/wctype.texi: Likewise.
44252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44253
44254 2008-09-18  Bruno Haible  <bruno@clisp.org>
44255
44256         * gnulib-tool (func_exit): Update comment.
44257
44258 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44259
44260         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44261         assumes strdup exists and does not depend on strdup to return
44262         ENOMEM on out of memory conditions.
44263
44264 2008-09-18  Bruno Haible  <bruno@clisp.org>
44265
44266         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44267         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44268         digits for the exponent.
44269
44270 2008-09-18  Jim Meyering  <meyering@redhat.com>
44271             Bruno Haible  <bruno@clisp.org>
44272
44273         * lib/vasnprintf.c (decimal_point_char): Define also if
44274         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44275
44276 2008-09-16  Bruno Haible  <bruno@clisp.org>
44277         and Eric Blake  <ebb9@byu.net>
44278
44279         vasnprintf: support Irix 5.3
44280         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44281         that mishandle long double infinity.
44282         Reported by Tom G. Christensen.
44283
44284 2008-09-16  Bruno Haible  <bruno@clisp.org>
44285
44286         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44287         Solaris 9.
44288         * doc/glibc-functions/alphasort.texi: Likewise.
44289         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44290
44291 2008-09-16  Jim Meyering  <meyering@redhat.com>
44292
44293         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44294         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44295         a umask modification leak out of a subshell.  Otherwise, the
44296         opensolaris /bin/sh would be accepted and thus cause unwarranted
44297         failures in the coreutils test suite.
44298
44299 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44300
44301         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44302         to succeed.
44303
44304 2008-09-16  Jim Meyering  <meyering@redhat.com>
44305
44306         avoid spurious test failure when library is built without ACL support
44307         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44308         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44309         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44310         * tests/test-copy-acl.sh: Likewise.
44311
44312 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44313
44314         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44315         based on character occurrence counts.
44316
44317 2008-09-15  Eric Blake  <ebb9@byu.net>
44318
44319         tests: avoid some compiler warnings
44320         * tests/test-memchr.c (main): Pass NULL indirectly.
44321         * tests/test-closein.c (main): Avoid unused variable.
44322
44323 2008-09-15  Bruno Haible  <bruno@clisp.org>
44324
44325         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44326         are missing on OpenBSD 4.0 individually.
44327         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44328
44329 2008-09-15  Bruno Haible  <bruno@clisp.org>
44330
44331         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44332         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44333         * doc/posix-functions/perror.texi: Likewise.
44334         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44335         is missing.
44336         Reported by Eric Blake.
44337
44338         * lib/errno.in.h: Use replacement values >= 2000.
44339         Reported by Eric Blake.
44340
44341 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44342
44343         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44344         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44345         limit.
44346         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44347         compareseq was aborted.
44348
44349 2008-09-14  Bruno Haible  <bruno@clisp.org>
44350
44351         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44352         yvec_edit_count.
44353         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44354         (fstrcmp_bounded): Simplify result computation accordingly.
44355
44356 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44357
44358         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44359         (fstrcmp): Define in terms of fstrcmp_bounded.
44360         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44361         lower_bound argument.
44362         Return quickly if the result is certainly < lower_bound.
44363         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44364
44365 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44366
44367         * lib/diffseq.h (EARLY_ABORT): New macro.
44368         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44369         evaluates to true.
44370
44371 2008-09-14  Bruno Haible  <bruno@clisp.org>
44372
44373         * modules/perror-tests: New file.
44374         * tests/test-perror.sh: New file.
44375         * tests/test-perror.c: New file.
44376
44377         New module 'perror'.
44378         * lib/stdio.in.h (perror): New declaration.
44379         * lib/perror.c: New file.
44380         * m4/perror.m4: New file.
44381         * modules/perror: New file.
44382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44383         * doc/posix-functions/perror.texi: Mention the perror module.
44384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44385         REPLACE_PERROR.
44386         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44387         REPLACE_PERROR.
44388
44389 2008-09-14  Bruno Haible  <bruno@clisp.org>
44390
44391         * modules/stdio (Makefile.am): Reorder to match the order in
44392         lib/stdio.in.h.
44393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44394
44395 2008-09-13  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44398
44399 2008-09-13  Bruno Haible  <bruno@clisp.org>
44400
44401         Extend strerror to cover the added errno values.
44402         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44403         (rpl_strerror): Provide error messages for the added errno values and
44404         for the WSA* values.
44405         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44406         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44407         strerror.
44408         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44409         * modules/strerror (Depends-on): Add errno.
44410         * doc/posix-functions/strerror.texi: Document the change.
44411         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44412         and EOVERFLOW.
44413
44414 2008-09-13  Bruno Haible  <bruno@clisp.org>
44415
44416         * modules/EOVERFLOW: Remove file.
44417         * m4/eoverflow.m4: Remove file.
44418         * modules/EOVERFLOW-tests: Remove file.
44419         * tests/test-EOVERFLOW.c: Remove file.
44420         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44421         * modules/ftell (Depends-on): Likewise.
44422         * modules/getdelim (Depends-on): Likewise.
44423         * modules/getugroups (Depends-on): Likewise.
44424         * modules/poll (Depends-on): Likewise.
44425         * modules/snprintf (Depends-on): Likewise.
44426         * modules/sprintf-posix (Depends-on): Likewise.
44427         * modules/vasnprintf (Depends-on): Likewise.
44428         * modules/vasprintf (Depends-on): Likewise.
44429         * modules/vfprintf-posix (Depends-on): Likewise.
44430         * modules/vsnprintf (Depends-on): Likewise.
44431         * modules/vsprintf-posix (Depends-on): Likewise.
44432         * modules/xvasprintf (Depends-on): Likewise.
44433         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44434         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44435         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44436         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44437         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44438         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44439         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44440         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44441         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44442         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44443         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44444         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44445         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44446         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44447         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44448         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44449         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44450         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44451         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44452         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44453         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44454         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44455         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44456         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44457         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44458         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44459         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44460         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44461         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44462         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44463         * MODULES.html.sh: Remove EOVERFLOW.
44464         * NEWS: Mention the change.
44465
44466 2008-09-13  Bruno Haible  <bruno@clisp.org>
44467
44468         * modules/errno-tests: New file.
44469         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44470
44471         * lib/errno.in.h: New file.
44472         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44473         * modules/errno: New file.
44474         * doc/posix-headers/errno.texi: Update documentation.
44475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44476
44477 2008-09-13  Bruno Haible  <bruno@clisp.org>
44478
44479         * tests/test-poll.c: Use #if for native Windows, rather than testing
44480         __MSVCRT__.
44481
44482 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44483             Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/glob.c: Don't include <pwd.h> on native Windows.
44486         (WINDOWS32): New macro.
44487         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44488
44489 2008-09-13  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44492         (ETIMEDOUT): Remove macro.
44493         (glthread_cond_timedwait_multithreaded): New declaration.
44494         (glthread_cond_timedwait): Use it.
44495         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44496         (glthread_cond_timedwait_multithreaded): New function.
44497
44498 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44499
44500         * modules/poll-tests: Do not check for io.h.
44501         * tests/test-poll.c: Check for __MSVCRT__ instead.
44502
44503 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44504
44505         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44506         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44507         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44508
44509 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44510
44511         * modules/poll-tests: New.
44512         * tests/test-poll.c: New.
44513
44514 2008-09-12  Eric Blake  <ebb9@byu.net>
44515
44516         frexp: test for NetBSD failure on -0.0
44517         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44518         not all, bugs from NetBSD 3.0 have been fixed.
44519         * doc/posix-functions/frexp.texi (frexp): Document bug.
44520         Reported by Thomas Klausner.
44521
44522         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44523         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44524         literal -0.0.
44525         Reported by Jonathan C. Patschke <jp@centtech.com>.
44526
44527 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44528
44529         * lib/glthread/cond.h: Use dummy implementation also if
44530         USE_WIN32_THREADS.
44531
44532 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44533
44534         * modules/fnmatch-posix (License): Change to LGPLv2+.
44535         * modules/fnmatch-gnu (License): Likewise.
44536
44537 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44538
44539         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44540
44541 2008-09-11  Jim Meyering  <meyering@redhat.com>
44542
44543         * users.txt: Add gtk-vnc.
44544
44545 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44546
44547         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44548         rotate amounts.
44549
44550         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44551         required for 16-bit and 8-bit rotates.
44552         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44553         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44554         UINT8_MAX instead of hard-coded constants.
44555         Suggested by Paul Eggert.
44556
44557 2008-09-07  Bruno Haible  <bruno@clisp.org>
44558
44559         * tests/test-striconveh.c (main): Check behaviour when converting from
44560         UTF-7.
44561
44562         Make striconveh work better with stateful encodings.
44563         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44564         that iconv does not increment the inptr when returning -1/EINVAL.
44565
44566 2008-09-07  Bruno Haible  <bruno@clisp.org>
44567
44568         * build-aux/config.rpath: Update according to libtool-2.2.6.
44569         * build-aux/config.libpath: Likewise.
44570
44571 2008-09-06  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44574         * lib/freadptr.c (freadptr): Likewise.
44575         * lib/freadseek.c (freadptrinc): Likewise.
44576         Reported by Simon Josefsson.
44577
44578 2008-09-06  Bruno Haible  <bruno@clisp.org>
44579
44580         * modules/freadptr (License): Change to LGPLv2+.
44581         * modules/freadseek (License): Likewise.
44582         Suggested by Eric Blake.
44583
44584         * modules/memchr2 (License): Change to LGPLv2+.
44585         Approved by Eric Blake.
44586
44587 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44588             Bruno Haible  <bruno@clisp.org>
44589
44590         Make gnulib-tool work with native 'sed' on AIX.
44591         * gnulib-tool (sed_noop): New variable.
44592         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44593         func_add_or_update, func_create_testdir): Use it to initialize sed
44594         script variables.
44595         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44596
44597 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44598             Bruno Haible  <bruno@clisp.org>
44599
44600         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44601         also works after #include directives.
44602
44603 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44604
44605         getdate.y: reject an out-of-range timezone value
44606         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44607         the range [-24...+24].  When specified with only one or two digits,
44608         * tests/test-getdate.c: Tests for the fix.
44609         * doc/getdate.texi: Document this change.
44610
44611 2008-09-03  Bruno Haible  <bruno@clisp.org>
44612
44613         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44614
44615 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44616
44617         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44618         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44619         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44620         Blake <ebb9@byu.net>.
44621
44622         * tests/test-bitrotate.c: Add more test vectors.
44623
44624 2008-09-02  Eric Blake  <ebb9@byu.net>
44625
44626         vasnprintf-posix: handle large precision via %.*d
44627         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44628         when handling it ourselves.
44629         * tests/test-vasnprintf-posix.c (test_function): Add test.
44630         * tests/test-snprintf-posix.h (test_function): Likewise.
44631         * tests/test-sprintf-posix.h (test_function): Likewise.
44632         * tests/test-vasprintf-posix.c (test_function): Likewise.
44633         Reported by Alain Guibert.
44634
44635 2008-09-01  Eric Blake  <ebb9@byu.net>
44636
44637         c-stack: make configure-time check more robust
44638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44639         successful sigaction call.
44640         Reported by Tom G. Christensen.
44641
44642 2008-09-01  Bruno Haible  <bruno@clisp.org>
44643
44644         New module 'findprog-lgpl'.
44645         * modules/findprog-lgpl: New file.
44646         * lib/findprog-lgpl.c: New file.
44647         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44648         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44649         to decide whether to use strdup or xstrdup, concatenated_filename or
44650         xconcatenated_filename.
44651
44652 2008-09-01  Bruno Haible  <bruno@clisp.org>
44653
44654         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44655         'xconcat-filename' (GPL).
44656         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44657         (License): Change to LGPLv2+.
44658         * modules/xconcat-filename: New file.
44659         * lib/concat-filename.h (concatenated_filename): Change specification.
44660         (xconcatenated_filename): New declaration.
44661         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44662         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44663         memory situations.
44664         * lib/xconcat-filename.c: New file.
44665         * NEWS: Mention the change.
44666         * lib/findprog.c: Include concat-filename.h, not filename.h.
44667         (find_in_path): Use xconcatenated_filename instead of
44668         concatenated_filename.
44669         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44670         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44671         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44672         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44673         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44674         instead of concatenated_filename.
44675         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44676         (execute_java_class): Use xconcatenated_filename instead of
44677         concatenated_filename.
44678         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44679         * modules/javacomp (Depends-on): Likewise.
44680         * modules/javaexec (Depends-on): Likewise.
44681
44682 2008-09-01  Bruno Haible  <bruno@clisp.org>
44683
44684         Split module 'filename' into 'filename' and 'concat-filename'.
44685         * modules/filename: Keep only lib/filename.h.
44686         (License): Change to LGPLv2+.
44687         * modules/concat-filename: New file, extracted from modules/filename.
44688         * lib/filename.h (concatenated_filename): Remove declaration.
44689         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44690         * lib/concat-filename.c: Include concat-filename.h.
44691         * NEWS: Mention the change.
44692
44693 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44694
44695         * lib/bitrotate.h (rotl8, rotr8): Add.
44696
44697         * modules/bitrotate (configure.ac): Need
44698         AC_REQUIRE([AC_C_INLINE]).
44699         (Description): Mention stdint.h.  Reported by Bruno Haible
44700         <bruno@clisp.org>.
44701
44702         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44703         Paolo Bonzini <bonzini@gnu.org>.
44704
44705 2008-08-31  Bruno Haible  <bruno@clisp.org>
44706
44707         Assume Solaris specific bi-arch conventions on Solaris systems.
44708         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44709         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44711         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44712         like acl_libdirstem.
44713         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44714         acl_libdirstem.
44715         * NEWS: Mention the change.
44716         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44717
44718 2008-08-31  Jim Meyering  <meyering@redhat.com>
44719
44720         * lib/strftime.h: Add comments describing the two added arguments.
44721
44722         remove duplicate #include directives
44723         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44724         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44725
44726 2008-08-31  Bruno Haible  <bruno@clisp.org>
44727
44728         New module 'sigpipe-die'.
44729         * modules/sigpipe-die: New file.
44730         * lib/sigpipe-die.h: New file.
44731         * lib/sigpipe-die.c: New file.
44732         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44733
44734 2008-08-31  Bruno Haible  <bruno@clisp.org>
44735
44736         Don't override previously installed signal handlers.
44737         * lib/fatal-signal.c (saved_sigactions): New variable.
44738         (uninstall_handlers): Reset the signal to the saved handler, not
44739         to SIG_DFL (except when ignored).
44740         (install_handlers): Save the previous handlers.
44741
44742 2008-08-30  Bruno Haible  <bruno@clisp.org>
44743
44744         * gnulib-tool (func_reset_sigpipe): New function.
44745         (func_get_automake_snippet, func_modules_transitive_closure,
44746         func_import): Invoke it before a join command that reads from stdin,
44747         to avoid "echo: write error: Broken pipe" error messages on stderr.
44748         Reported by Sam Steingold <sds@gnu.org>.
44749
44750 2008-08-30  Bruno Haible  <bruno@clisp.org>
44751
44752         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44753         Code copied from m4/open.m4.
44754         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44755         access and the filename ends in a slash. Code copied from lib/open.c.
44756         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44757         * tests/test-fopen.c (main): Check against bug with trailing slash.
44758
44759 2008-08-29  Bruno Haible  <bruno@clisp.org>
44760
44761         Avoid some "gcc -pedantic" warnings.
44762         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44763         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44764         * lib/dirent.in.h: Likewise.
44765         * lib/fcntl.in.h: Likewise.
44766         * lib/float.in.h: Likewise.
44767         * lib/iconv.in.h: Likewise.
44768         * lib/inttypes.in.h: Likewise.
44769         * lib/locale.in.h: Likewise.
44770         * lib/math.in.h: Likewise.
44771         * lib/netinet_in.in.h: Likewise.
44772         * lib/search.in.h: Likewise.
44773         * lib/signal.in.h: Likewise.
44774         * lib/stdarg.in.h: Likewise.
44775         * lib/stdint.in.h: Likewise.
44776         * lib/stdio.in.h: Likewise.
44777         * lib/stdlib.in.h: Likewise.
44778         * lib/string.in.h: Likewise.
44779         * lib/strings.in.h: Likewise.
44780         * lib/sys_select.in.h: Likewise.
44781         * lib/sys_socket.in.h: Likewise.
44782         * lib/sys_stat.in.h: Likewise.
44783         * lib/sys_time.in.h: Likewise.
44784         * lib/sysexits.in.h: Likewise.
44785         * lib/time.in.h: Likewise.
44786         * lib/unistd.in.h: Likewise.
44787         * lib/wchar.in.h: Likewise.
44788         * lib/wctype.in.h: Likewise.
44789         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44790         * modules/fchdir (Makefile.am): Likewise.
44791         * modules/fcntl (Makefile.am): Likewise.
44792         * modules/float (Makefile.am): Likewise.
44793         * modules/iconv_open (Makefile.am): Likewise.
44794         * modules/inttypes (Makefile.am): Likewise.
44795         * modules/locale (Makefile.am): Likewise.
44796         * modules/math (Makefile.am): Likewise.
44797         * modules/netinet_in (Makefile.am): Likewise.
44798         * modules/search (Makefile.am): Likewise.
44799         * modules/signal (Makefile.am): Likewise.
44800         * modules/stdarg (Makefile.am): Likewise.
44801         * modules/stdint (Makefile.am): Likewise.
44802         * modules/stdio (Makefile.am): Likewise.
44803         * modules/stdlib (Makefile.am): Likewise.
44804         * modules/string (Makefile.am): Likewise.
44805         * modules/strings (Makefile.am): Likewise.
44806         * modules/sys_select (Makefile.am): Likewise.
44807         * modules/sys_socket (Makefile.am): Likewise.
44808         * modules/sys_stat (Makefile.am): Likewise.
44809         * modules/sys_time (Makefile.am): Likewise.
44810         * modules/sysexits (Makefile.am): Likewise.
44811         * modules/time (Makefile.am): Likewise.
44812         * modules/unistd (Makefile.am): Likewise.
44813         * modules/wchar (Makefile.am): Likewise.
44814         * modules/wctype (Makefile.am): Likewise.
44815         Reported by Reuben Thomas <rrt@sc3d.org>.
44816
44817 2008-08-29  Bruno Haible  <bruno@clisp.org>
44818
44819         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44820         any more.
44821
44822 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44823
44824         * MODULES.html.sh (Misc): Add bitrotate.
44825
44826         * modules/bitrotate: New file.
44827
44828         * lib/bitrotate.h: New file.
44829
44830         * modules/bitrotate-tests: New file.
44831
44832         * tests/test-bitrotate.c: New file.
44833
44834         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44835         on the bitrotate module.
44836
44837         * lib/arctwo.c: Use new bitrotate module.
44838
44839 2008-08-29  Jim Meyering  <meyering@redhat.com>
44840
44841         bootstrap: merge changes from coreutils
44842         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44843         of copied files.  Remove a kludge, now that this is fixed.
44844         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44845         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44846         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44847
44848 2008-08-29  Bruno Haible  <bruno@clisp.org>
44849
44850         * MODULES.html.sh: Remove --cvs-urls option.
44851
44852 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44853
44854         maint.mk: adjust to file name change
44855         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44856
44857 2008-08-28  Jim Meyering  <meyering@redhat.com>
44858
44859         * modules/getndelim2 (License): Relicense to LGPLv2+.
44860         Approved by Richard Stallman for the version of 1995, and by
44861         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44862
44863 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44864
44865         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44866         dummy if one is not available.  Do not touch them if
44867         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44868         (getc_maybe_unlocked): New.
44869         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44870
44871 2008-08-26  Eric Blake  <ebb9@byu.net>
44872
44873         doc/INSTALL: resync from autoconf
44874         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44875         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44876         moving...
44877         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44878         * INSTALL: Regenerate.
44879         * INSTALL.ISO: New file.
44880         * INSTALL.UTF-8: Likewise.
44881
44882 2008-08-26  Jim Meyering  <meyering@redhat.com>
44883
44884         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44885         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44886         these definitions conditional, so that they may be overridden, too.
44887
44888 2008-08-26  Bruno Haible  <bruno@clisp.org>
44889
44890         Generate INSTALL file variants with prettier quotes.
44891         * doc/Makefile (INSTALL_PRELUDE): New macro.
44892         (INSTALL): Use it.
44893         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44894
44895 2008-08-26  Bruno Haible  <bruno@clisp.org>
44896
44897         Run makeinfo in an English locale.
44898         * doc/Makefile (MAKEINFO): New variable.
44899
44900 2008-08-26  Bruno Haible  <bruno@clisp.org>
44901
44902         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44903         Suggested by Eric Blake.
44904
44905 2008-08-25  Bruno Haible  <bruno@clisp.org>
44906
44907         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44908
44909 2008-08-25  Eric Blake  <ebb9@byu.net>
44910
44911         c-stack: test that stack overflow can be caught
44912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44913         that platform allows handling stack overflow; at least OS/2 EMX
44914         has sigaltstack, but crashes before transferring control to
44915         handler on stack overflow.
44916         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44917         check for HAVE_STACK_OVERFLOW_HANDLING.
44918         Reported by Elbert Pol.
44919
44920 2008-08-25  Bruno Haible  <bruno@clisp.org>
44921
44922         * doc/posix-functions/strftime.texi: Fix description of strftime
44923         module.
44924
44925 2008-08-24  Bruno Haible  <bruno@clisp.org>
44926
44927         * tests/uniwidth/test-uc_width2.c: New file.
44928         * tests/uniwidth/test-uc_width2.sh: New file.
44929         * modules/uniwidth/width-tests (Files): Add the new files.
44930         (TESTS): Add uniwidth/test-uc_width2.sh.
44931         (TESTS_ENVIRONMENT): New variable.
44932         (check_PROGRAMS): Add test-uc_width2.
44933         (test_uc_width2_SOURCES): New variable.
44934
44935         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44936         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44937         not 0x00AB.
44938         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44939
44940 2008-08-22  Eric Blake  <ebb9@byu.net>
44941
44942         test-lock, test-tls: mention why a test is skipped
44943         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44944         skipped.
44945         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44946
44947         count-one-bits: relax license
44948         * modules/count-one-bits (License): Relicense to LGPLv2+.
44949         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44950
44951 2008-08-22  Andreas Schwab  <schwab@suse.de>
44952
44953         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44954         Remove spurious space in assignment.
44955
44956 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44957
44958         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44959         Paul Eggert <eggert@CS.UCLA.EDU>.
44960
44961 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44962
44963         * modules/gettext: Add m4/threadlib.m4.
44964
44965 2008-08-19  Eric Blake  <ebb9@byu.net>
44966
44967         test-c-stack: fix compilation failure on FreeBSD 5.0
44968         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44969         headers before <sys/resource.h>.
44970         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44971         the bug.
44972         Reported by Nelson H. F. Beebe.
44973
44974         strverscmp: migrate from "strverscmp.h" to <string.h>
44975         * modules/string (Makefile.am): Add new hooks.
44976         * modules/strverscmp (Files): Remove strverscmp.h.
44977         (Depends-on): Add string.
44978         (configure.ac): Add indicator.
44979         (Include): Mention new header.
44980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44981         defaults.
44982         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44983         results.
44984         * lib/strverscmp.h: Delete.
44985         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44986         * tests/test-strverscmp.c (includes): Adjust client.
44987         * lib/check-version.c (includes): Likewise.
44988         * NEWS: Document the change.
44989
44990         strverscmp: add unit test
44991         * modules/strverscmp-tests: New file.
44992         * tests/test-strverscmp.c: Likewise.
44993
44994 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44995
44996         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44997         regarding Windows crypto stuff, from Mono.
44998
44999 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45000
45001         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45002         if present, for intel RND.  Return error on failures.
45003
45004 2008-08-18  Ben Pfaff  <blp@gnu.org>
45005
45006         gitlog-to-changelog: give better diagnostic for failed pipe-open
45007         * build-aux/gitlog-to-changelog: Improve error message: suggest
45008         that the version of Git may be too old.
45009
45010 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45011
45012         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45013         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45014
45015 2008-08-18  Bruno Haible  <bruno@clisp.org>
45016
45017         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45018         pthread_in_use().
45019
45020 2008-08-18  Bruno Haible  <bruno@clisp.org>
45021
45022         * lib/glthread/threadlib.c: Include <pthread.h>.
45023
45024 2008-08-18  Bruno Haible  <bruno@clisp.org>
45025
45026         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45027         glthread_recursive_lock_* macros.
45028         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45029         Fix syntax error.
45030
45031 2008-08-18  Bruno Haible  <bruno@clisp.org>
45032
45033         * lib/glthread/thread.c: Avoid forcing a context switch right after
45034         thread creation.
45035
45036 2008-08-17  Bruno Haible  <bruno@clisp.org>
45037
45038         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45039         * lib/glthread/thread.h: Provide Win32 specific implementation.
45040         * modules/thread (Files): Add lib/glthread/thread.c.
45041         (Depends-on): Add lock.
45042         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45043
45044 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45045
45046         New module 'yield'.
45047         * modules/yield: New file.
45048         * lib/glthread/yield.h: New file.
45049         * m4/yield.m4: New file.
45050         * MODULES.html.sh (Multithreading): Add yield.
45051
45052 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45053
45054         New module 'thread'.
45055         * modules/thread: New file.
45056         * lib/glthread/thread.h: New file.
45057         * m4/thread.m4: New file.
45058         * MODULES.html.sh (Multithreading): Add thread.
45059
45060 2008-08-17  Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/glthread/lock.h: Include <stdlib.h> always.
45063         * lib/glthread/tls.h: Likewise.
45064         * lib/glthread/cond.h: Likewise.
45065
45066 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45067
45068         New module 'cond'.
45069         * modules/cond: New file.
45070         * lib/glthread/cond.h: New file.
45071         * lib/glthread/cond.c: New file.
45072         * m4/cond.m4: New file.
45073         * MODULES.html.sh (Multithreading): Add cond.
45074
45075 2008-08-16  Eric Blake  <ebb9@byu.net>
45076
45077         c-stack: fix regression on Irix 5.3 from 2008-06-21
45078         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45079         sa_sigaction...
45080         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45081         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45082         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45083         * modules/signal (Makefile.am): Use the value.
45084         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45085         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45086         * doc/posix-headers/signal.texi (signal.h): Document this
45087         portability issue.
45088         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45089         Reported by Tom G. Christensen.
45090
45091 2008-08-17  Bruno Haible  <bruno@clisp.org>
45092
45093         New module 'threadlib'.
45094         * modules/threadlib: New file.
45095         * lib/glthread/threadlib.c: New file, extracted from
45096         lib/glthread/lock.c.
45097         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45098         functions.
45099         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45100         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45101         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45102         macros.
45103         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45104         (gl_DISABLE_THREADS): Remove macro.
45105         * modules/lock (Files): Remove build-aux/config.rpath.
45106         (Depends-on): Remove havelib. Add threadlib.
45107         (configure.ac-early): Remove section.
45108         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45109         * modules/tls (Depends-on): Remove lock. Add threadlib.
45110         (Link): New section, copied from threadlib.
45111         * MODULES.html.sh (Multithreading): Add threadlib.
45112
45113 2008-08-14  Bruno Haible  <bruno@clisp.org>
45114
45115         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45116         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45117         glthread_rwlock_unlock, glthread_rwlock_destroy,
45118         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45119         glthread_recursive_lock_destroy): Define as macros always.
45120         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45121         glthread_lock_lock.
45122         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45123         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45124         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45125         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45126         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45127         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45128         (glthread_recursive_lock_lock_func): Renamed from
45129         glthread_recursive_lock_lock.
45130         (glthread_recursive_lock_unlock_func): Renamed from
45131         glthread_recursive_lock_unlock.
45132         (glthread_recursive_lock_destroy_func): Renamed from
45133         glthread_recursive_lock_destroy.
45134
45135 2008-08-14  Bruno Haible  <bruno@clisp.org>
45136
45137         * lib/glthread/lock.h: Renamed from lib/lock.h.
45138         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45139         * lib/glthread/tls.h: Renamed from lib/tls.h.
45140         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45141         * lib/fstrcmp.c: Update includes.
45142         * lib/strsignal.c: Update includes.
45143         * modules/lock (Files, Makefile.am): Update.
45144         (Include): Change to "glthread/lock.h".
45145         * modules/tls (Files, Makefile.am): Update.
45146         (Include): Change to "glthread/tls.h".
45147         * tests/test-lock.c: Update includes.
45148         * tests/test-tls.c: Update includes.
45149         * NEWS: Mention the renamed header files.
45150
45151 2008-08-11  Jim Meyering  <meyering@redhat.com>
45152
45153         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45154
45155 2008-08-11  Eric Blake  <ebb9@byu.net>
45156
45157         test-c-stack: avoid C99-ism
45158         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45159         before statement.
45160         Reported by Alain Guibert.
45161
45162 2008-08-10  Jim Meyering  <meyering@redhat.com>
45163
45164         ensure that return value of uinttostr et al are not ignored
45165         * lib/inttostr.h (__GNUC_PREREQ): Define.
45166         (__attribute_warn_unused_result__): Define.
45167         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45168
45169 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45170
45171         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45172         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45173
45174 2008-08-07  Jim Meyering  <meyering@redhat.com>
45175
45176         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45177
45178         * modules/mkstemp (License): Relicense under LGPLv2+.
45179         * modules/tempname (License): Likewise.
45180
45181 2008-08-06  Bruno Haible  <bruno@clisp.org>
45182
45183         * lib/poll.c (poll): Further micro-optimization.
45184
45185 2008-08-06  Jim Meyering  <meyering@redhat.com>
45186
45187         inet_pton.c: use locale-independent tolower
45188         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45189         (inet_pton6): Use c_tolower rather than tolower.
45190         * modules/inet_pton (Depends-on): Add c-ctype.
45191
45192 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45193
45194         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45195         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45196
45197 2008-08-06  Jim Meyering  <meyering@redhat.com>
45198
45199         * modules/inet_pton (License): Relicense under LGPLv2+.
45200
45201 2008-08-03  Bruno Haible  <bruno@clisp.org>
45202
45203         Additional non-aborting API for lock and tls.
45204         * lib/lock.h: Include <errno.h>.
45205         (glthread_lock_init): New macro/function.
45206         (gl_lock_init): Define as wrapper around glthread_lock_init.
45207         (glthread_lock_lock): New macro/function.
45208         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45209         (glthread_lock_unlock): New macro/function.
45210         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45211         (glthread_lock_destroy): New macro/function.
45212         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45213         (glthread_rwlock_init): New macro/function.
45214         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45215         (glthread_rwlock_rdlock): New macro/function.
45216         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45217         (glthread_rwlock_wrlock): New macro/function.
45218         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45219         (glthread_rwlock_unlock): New macro/function.
45220         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45221         (glthread_rwlock_destroy): New macro/function.
45222         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45223         (glthread_recursive_lock_init): New macro/function.
45224         (gl_recursive_lock_init): Define as wrapper around
45225         glthread_recursive_lock_init.
45226         (glthread_recursive_lock_lock): New macro/function.
45227         (gl_recursive_lock_lock): Define as wrapper around
45228         glthread_recursive_lock_lock.
45229         (glthread_recursive_lock_unlock): New macro/function.
45230         (gl_recursive_lock_unlock): Define as wrapper around
45231         glthread_recursive_lock_unlock.
45232         (glthread_recursive_lock_destroy): New macro/function.
45233         (gl_recursive_lock_destroy): Define as wrapper around
45234         glthread_recursive_lock_destroy.
45235         (glthread_once): New macro/function.
45236         (gl_once): Define as wrapper around glthread_once.
45237         Update function declarations.
45238         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45239         glthread_rwlock_init. Return error code.
45240         (glthread_rwlock_rdlock_multithreaded): Renamed from
45241         glthread_rwlock_rdlock. Return error code.
45242         (glthread_rwlock_wrlock_multithreaded): Renamed from
45243         glthread_rwlock_wrlock. Return error code.
45244         (glthread_rwlock_unlock_multithreaded): Renamed from
45245         glthread_rwlock_unlock. Return error code.
45246         (glthread_rwlock_destroy_multithreaded): Renamed from
45247         glthread_rwlock_destroy. Return error code.
45248         (glthread_recursive_lock_init_multithreaded): Renamed from
45249         glthread_recursive_lock_init. Return error code.
45250         (glthread_recursive_lock_lock_multithreaded): Renamed from
45251         glthread_recursive_lock_lock. Return error code.
45252         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45253         glthread_recursive_lock_unlock. Return error code.
45254         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45255         glthread_recursive_lock_destroy. Return error code.
45256         (glthread_once_call): Make static.
45257         (glthread_once_multithreaded): Renamed from glthread_once.
45258         * lib/tls.h: Include <errno.h>.
45259         (glthread_tls_key_init): New macro/function.
45260         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45261         (glthread_tls_set): New macro/function.
45262         (gl_tls_set): Define as wrapper around glthread_tls_set.
45263         (glthread_tls_key_destroy): New macro/function.
45264         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45265         Update function declarations.
45266         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45267         glthread_tls_get.
45268         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45269
45270 2008-08-04  Eric Blake  <ebb9@byu.net>
45271
45272         gnumakefile: use space, not TAB, outside of targets
45273         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45274
45275 2008-08-02  Jim Meyering  <meyering@redhat.com>
45276
45277         getdate.y: avoid locale-dependent date parsing failure
45278         In Turkish locales, getdate would fail to recognize keywords
45279         containing a lowercase "i".  The solution is not to rely on
45280         locale-sensitive case-conversion.
45281         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45282         (lookup_word): Use c_toupper in place of toupper.
45283         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45284         Reported by Vefa Bicakci <bicave@superonline.com> in
45285         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45286         * modules/getdate (Depends-on): Add c-ctype.
45287
45288 2008-08-02  Bruno Haible  <bruno@clisp.org>
45289
45290         * gnulib-tool (func_import): When updating or creating a .gitignore
45291         file, prepend each added line with a slash, and ignore leading slashes
45292         from the existing lines.
45293         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45294
45295 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45296
45297         Portability fix for GNU make 3.79.1.
45298         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45299         versions do not understand.
45300
45301 2008-08-01  Bruno Haible  <bruno@clisp.org>
45302
45303         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45304         * tests/test-isnanf.h (zero): New variable.
45305         (main): Avoid literal -0.0f.
45306         * tests/test-isnand.h (zero): New variable.
45307         (main): Avoid literal -0.0.
45308         * tests/test-isnanl.h (zero): New variable.
45309         (main): Avoid literal -0.0L.
45310         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45311         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45312         -0.0, -0.0L.
45313         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45314         (test_signbitd): Avoid literal -0.0.
45315         (test_signbitl): Avoid literal -0.0L.
45316         * tests/test-ceilf1.c (zero): New variable.
45317         (main): Avoid literal -0.0f.
45318         * tests/test-ceill.c (zero): New variable.
45319         (main): Avoid literal -0.0L.
45320         * tests/test-floorf1.c (zero): New variable.
45321         (main): Avoid literal -0.0f.
45322         * tests/test-floorl.c (zero): New variable.
45323         (main): Avoid literal -0.0L.
45324         * tests/test-roundf1.c (zero): New variable.
45325         (main): Avoid literal -0.0f.
45326         * tests/test-round1.c (zero): New variable.
45327         (main): Avoid literal -0.0.
45328         * tests/test-roundl.c (zero): New variable.
45329         (main): Avoid literal -0.0L.
45330         * tests/test-truncf1.c (zero): New variable.
45331         (main): Avoid literal -0.0f.
45332         * tests/test-trunc1.c (zero): New variable.
45333         (main): Avoid literal -0.0.
45334         * tests/test-truncl.c (zero): New variable.
45335         (main): Avoid literal -0.0L.
45336         * tests/test-frexp.c (zero): New variable.
45337         (main): Avoid literal -0.0.
45338         * tests/test-frexpl.c (zero): New variable.
45339         (main): Avoid literal -0.0L.
45340         * tests/test-ldexpl.c (zero): New variable.
45341         (main): Avoid literal -0.0L.
45342         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45343         (zerod, zerol): New variables.
45344         (test_function): Avoid literals -0.0, -0.0L.
45345         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45346         (zerod, zerol): New variables.
45347         (test_function): Avoid literals -0.0, -0.0L.
45348         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45349         (zerod, zerol): New variables.
45350         (test_function): Avoid literals -0.0, -0.0L.
45351         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45352         (zerod, zerol): New variables.
45353         (test_function): Avoid literals -0.0, -0.0L.
45354         * tests/test-strtod.c (zero): New variable.
45355         (main): Avoid literal -0.0.
45356         Reported by Jonathan C. Patschke <jp@centtech.com>.
45357
45358 2008-07-31  Jim Meyering  <meyering@redhat.com>
45359
45360         sha256.h: correct definition of SHA224_DIGEST_SIZE
45361         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45362         Reported by Paulie Pena IV <paulie4@gmail.com>.
45363         Define as 224 / 8, rather than as a literal.
45364         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45365         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45366         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45367
45368 2008-07-31  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45371         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45372         Reported by Jonathan Patschke <jp@centtech.com>.
45373
45374 2008-07-31  Bruno Haible  <bruno@clisp.org>
45375
45376         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45377         Reported by Paolo Bonzini <bonzini@gnu.org>.
45378
45379 2008-07-30  Eric Blake  <ebb9@byu.net>
45380
45381         test-strtod: allow compilation without -lm
45382         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45383         Reported by Dennis Clarke <blastwave@gmail.com>.
45384
45385 2008-07-28  Jim Meyering  <meyering@redhat.com>
45386
45387         bootstrap: work also when there are no .po files in po/
45388         * build-aux/bootstrap (update_po_files): Complete the change
45389         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45390
45391 2008-07-27  Jim Meyering  <meyering@redhat.com>
45392
45393         * users.txt: Add zile.
45394
45395 2008-07-26  Ben Pfaff  <blp@gnu.org>
45396
45397         Add missing dependencies on new m4/exponent[fdl].m4 files.
45398         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45399         * modules/isnand-nolibm: Add m4/exponentd.m4.
45400         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45401         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45402         m4/isnan[fdl].m4, because the macros actually used moved.
45403         Reported by Jim Meyering.
45404
45405 2008-07-14  Ben Pfaff  <blp@gnu.org>
45406
45407         Add isinf module.
45408         * lib/isinf.c: New file.
45409         * lib/math.in.h: Define isinf macro if we have decided to replace
45410         it.
45411         * m4/isinf.m4: New file.
45412         * m4/math_h.m4: Initialize and substitute variables for isinf
45413         module.
45414         * modules/isinf: New file.
45415         * modules/isinf-tests: New file.
45416         * modules/math: Add substitutions for new module.
45417         * tests/test-isinf.c: New file.
45418         * doc/posix-functions/isinf.texi: Mention new module.
45419         * MODULES.html.sh: Mention new module.
45420
45421 2008-07-14  Ben Pfaff  <blp@gnu.org>
45422
45423         Factor out some macros for use by additional modules.
45424         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45425         exponentf.m4.
45426         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45427         exponentd.m4.
45428         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45429         file exponentl.m4.
45430         * m4/exponentf.m4: New file.
45431         * m4/exponentd.m4: New file.
45432         * m4/exponentl.m4: New file.
45433         * modules/isnanf: Use new file m4/exponentf.m4.
45434         * modules/isnand: Use new file m4/exponentd.m4.
45435         * modules/isnanl: Use new file m4/exponentl.m4.
45436
45437 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45438
45439         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45440         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45441         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45442         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45443
45444         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45445         readlink on platforms without PATH_MAX.
45446
45447 2008-07-21  Eric Blake  <ebb9@byu.net>
45448
45449         Warn, not fail, on stale version.
45450         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45451
45452         Don't allow installation with stale devel version number.
45453         * top/GNUmakefile (_is-install-target): New macro.
45454         (_curr-ver): Forbid installation with stale version number.
45455
45456 2008-07-20  Bruno Haible  <bruno@clisp.org>
45457
45458         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45459         TESTS_ENVIRONMENT.
45460         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45461
45462 2008-07-20  Bruno Haible  <bruno@clisp.org>
45463
45464         * lib/c-stack.h (c_stack_action): Add documentation.
45465         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45466
45467 2008-07-20  Bruno Haible  <bruno@clisp.org>
45468
45469         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45470         * modules/readlink (License): Likewise.
45471
45472 2008-07-17  Eric Blake  <ebb9@byu.net>
45473
45474         * modules/c-stack (Link): Fix typo.
45475
45476         Make c-stack use libsigsegv, when available.
45477         * modules/c-stack (Depends-on): Add libsigsegv.
45478         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45479         needed.
45480         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45481         (segv_handler, overflow_handler, c_stack_action)
45482         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45483         implementation when libsigsegv is available, but only when using
45484         the library is necessary.
45485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45486         comment, explaining why XSI check fails on Linux.
45487         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45488         * tests/test-c-stack2.sh: Tweak skip message.
45489         * NEWS: Document new link-time requirements.
45490
45491 2008-07-16  Eric Blake  <ebb9@byu.net>
45492
45493         c-stack: Expose false positives when not using libsigsegv.
45494         * modules/c-stack-tests (Files): Expand test.
45495         * tests/test-c-stack.c (main): Add means to conditionally trigger
45496         non-overflow SIGSEGV.
45497         * tests/test-c-stack2.sh: New file.
45498
45499 2008-07-14  Bruno Haible  <bruno@clisp.org>
45500
45501         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45502         Reported by Eric Blake.
45503
45504 2008-07-14  Sam Steingold  <sds@gnu.org>
45505             Bruno Haible  <bruno@clisp.org>
45506
45507         New module libsigsegv.
45508         * modules/libsigsegv: New file.
45509         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45510         modifications.
45511         * MODULES.html.sh (Signal handling): New section.
45512
45513 2008-07-14  Bruno Haible  <bruno@clisp.org>
45514
45515         * modules/unictype/ctype-* (Description): Add the word "function".
45516         Improves the resulting doc in MODULES.html.
45517
45518 2008-07-12  Ben Pfaff  <blp@gnu.org>
45519
45520         Add longlong module.
45521         * modules/longlong: New file.
45522
45523 2008-07-12  Bruno Haible  <bruno@clisp.org>
45524
45525         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45526         to empty.
45527
45528 2008-07-10  Ben Pfaff  <blp@gnu.org>
45529
45530         Add isnan module.
45531         * doc/posix-functions/isnan.texi: Mention new module.
45532         * lib/math.in.h: Define isnan macro if we have decided to replace
45533         it.
45534         * m4/isnan.m4: New file.
45535         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45536         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45537         also.
45538         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45539         redundancy.
45540         * m4/math_h.m4: Initialize and substitute variables for isnan
45541         module.
45542         * modules/isnan: New file.
45543         * modules/isnan-tests: New file.
45544         * modules/math: Add substitutions for new module.
45545         * tests/test-isnan.c: New file.
45546         * MODULES.html.sh: Mention new module.
45547
45548 2008-07-10  Ben Pfaff  <blp@gnu.org>
45549
45550         Add isnanf module.
45551         * lib/isnanf.m4: New file.
45552         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45553         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45554         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45555         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45556         * modules/isnanf: New file.
45557         * modules/isnanf-tests: New file.
45558         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45559         files.
45560         * tests/test-isnanf-nolibm.c: factored most of its contents into
45561         new file tests/test-isnanf.h.
45562         * tests/test-isnanf.h: New file.
45563         * tests/test-isnanf.c: New file.
45564         * MODULES.html.sh: Mention new module.
45565         * doc/glibc-functions/isnanf.texi: Mention new module.
45566
45567 2008-07-10  Ben Pfaff  <blp@gnu.org>
45568
45569         Add isnand module.
45570         * lib/isnand.h: New file.
45571         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45572         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45573         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45574         functionality also.
45575         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45576         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45577         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45578         * modules/isnand: New file.
45579         * modules/isnand-tests: New file.
45580         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45581         files.
45582         * tests/test-isnand-nolibm.c: factored most of its contents into
45583         new file tests/test-isnand.h.
45584         * tests/test-isnand.h: New file.
45585         * tests/test-isnand.c: New file.
45586         * MODULES.html.sh: Mention new module.
45587
45588 2008-07-10  Ben Pfaff  <blp@gnu.org>
45589
45590         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45591         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45592         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45593         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45594         * modules/isnanf-nolibm: Update references to renamed files.
45595         * modules/isnand-nolibm: Likewise.
45596         * modules/isnanf-nolibm-tests: Likewise.
45597         * modules/isnand-nolibm-tests: Likewise.
45598         * lib/frexp.c: Likewise.
45599         * lib/isfinite.c: Likewise.
45600         * lib/signbitd.c: Likewise.
45601         * lib/signbitf.c: Likewise.
45602         * lib/vasnprintf.c: Likewise.
45603         * tests/test-ceilf1.c: Likewise.
45604         * tests/test-ceilf2.c: Likewise.
45605         * tests/test-floorf1.c: Likewise.
45606         * tests/test-floorf2.c: Likewise.
45607         * tests/test-frexp.c: Likewise.
45608         * tests/test-round1.c: Likewise.
45609         * tests/test-round2.c: Likewise.
45610         * tests/test-roundf1.c: Likewise.
45611         * tests/test-strtod.c: Likewise.
45612         * tests/test-trunc1.c: Likewise.
45613         * tests/test-trunc2.c: Likewise.
45614         * tests/test-truncf1.c: Likewise.
45615         * tests/test-truncf2.c: Likewise.
45616         * NEWS: Mention the renamed header files.
45617
45618 2008-07-11  Jim Meyering  <meyering@redhat.com>
45619
45620         vc-list-files: make the last-resort awk code more portable
45621         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45622         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45623         does not support it.
45624
45625 2008-07-10  Eric Blake  <ebb9@byu.net>
45626
45627         Work with tar's bootstrap.
45628         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45629         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45630         an m4 comment.
45631
45632 2008-07-09  Jim Meyering  <meyering@redhat.com>
45633
45634         posix-shell.m4: fix typo that made this test malfunction
45635         * m4/posix-shell.m4: Remove capitalization in variable name.
45636
45637 2008-07-08  Bruno Haible  <bruno@clisp.org>
45638
45639         * m4/onceonly.m4: Update comments.
45640         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45641
45642 2008-07-04  Jim Meyering  <meyering@redhat.com>
45643
45644         * users.txt: Add vc-dwim.
45645         (bison, coreutils): Use the gitweb URL.
45646
45647 2008-07-03  Jim Meyering  <meyering@redhat.com>
45648
45649         * users.txt: Add libffcall.  From Sam Steingold.
45650
45651 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45652
45653         getdate.y: do not ignore TZ with relative day, month or year offset
45654         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45655         relative-date-handling, since otherwise, the latter would clobber the
45656         sole output (an updated Start value) of the tz-handling block.
45657         * tests/test-getdate.c: Tests for the fix
45658
45659 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45660
45661         Recognize 'foo_LIBRARIES += libgnu.a'.
45662         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45663         makefile snippet has already specified an installation location,
45664         also using '+='.
45665
45666 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45667
45668         getdate.y: factor out common actions
45669         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45670         Use them in place of open-coded actions.
45671
45672 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45673
45674         Add self-test for getdate module.
45675         * modules/getdate-tests: New file.
45676         * tests/test-getdate.c: New file.
45677
45678 2008-06-29  Bruno Haible  <bruno@clisp.org>
45679
45680         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45681         .gitignore.
45682         Reported by Sylvain Beucler <beuc@beuc.net>.
45683
45684 2008-06-29  Bruno Haible  <bruno@clisp.org>
45685
45686         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45687         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45688
45689 2008-06-29  Bruno Haible  <bruno@clisp.org>
45690
45691         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45692         EXTRA_DIST.
45693         Reported by Sylvain Beucler <beuc@beuc.net>.
45694
45695 2008-06-26  Jim Meyering  <meyering@redhat.com>
45696
45697         make several modules depend on the "open" module
45698         This provides slightly increased consistency when opening-for-write
45699         the name of a non-directory spelled with a trailing slash.
45700         * modules/chdir-safer: Likewise.
45701         * modules/chown: Likewise.
45702         * modules/clean-temp: Likewise.
45703         * modules/copy-file: Likewise.
45704         * modules/fchdir: Likewise.
45705         * modules/fcntl-safer: Likewise.
45706         * modules/pipe: Likewise.
45707         * modules/utime: Likewise.
45708         Prompted by Eric Blake and Bruno Haible.
45709
45710 2008-06-24  Andreas Schwab  <schwab@suse.de>
45711
45712         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45713         literals can be used as initializers for global variables.
45714
45715 2008-06-23  Eric Blake  <ebb9@byu.net>
45716
45717         Make gnulib-cache.m4 easier to diff.
45718         * gnulib-tool (func_import): Allow newlines when reading cached
45719         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45720
45721 2008-06-23  Bruno Haible  <bruno@clisp.org>
45722
45723         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45724         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45725         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45726         m4/signalblocking.m4.
45727         (gl_PREREQ_SIGACTION): Don't invoke it.
45728         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45729         gl_PREREQ_SIG_HANDLER_H.
45730         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45731         Don't check for sigaction here.
45732
45733 2008-06-23  Bruno Haible  <bruno@clisp.org>
45734
45735         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45736         (install_handlers): Don't set the SA_RESETHAND flag.
45737
45738 2008-06-23  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/sigaction.m4: Comment fixes.
45741         * lib/signal.in.h: Likewise.
45742
45743 2008-06-23  Eric Blake  <ebb9@byu.net>
45744
45745         Fix typo.
45746         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45747
45748         Avoid SA_ namespace.
45749         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45750         Reported by Ralf Wildenhues.
45751
45752         Avoid test failure due to SA_RESTORER.
45753         * tests/test-sigaction.c (SA_MASK): New macro.
45754         (main): Avoid failing due to extension flags being set.
45755         Reported by Jim Meyering.
45756
45757         Revert use of sig-handler.h in sigprocmask.c.
45758         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45759         it requires the existence of struct sigaction.
45760         * lib/sigprocmask.c (handler_t): Restore typedef.
45761         (rpl_signal, old_handlers): Use local type.
45762
45763 2008-06-22  Bruno Haible  <bruno@clisp.org>
45764
45765         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45766         conditionally.
45767         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45768
45769 2008-06-22  Bruno Haible  <bruno@clisp.org>
45770
45771         * doc/posix-functions/siginterrupt.texi: Move note.
45772
45773         * lib/signal.in.h (SA_RESTART): New macro.
45774         * lib/sigaction.c: Update comment.
45775
45776         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45777
45778         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45779         (gl_PREREQ_SIGPROCMASK): Invoke it.
45780         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45781
45782         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45783
45784         * lib/sigprocmask.c: Update a comment.
45785
45786 2008-06-21  Eric Blake  <ebb9@byu.net>
45787
45788         Use sigaction module rather than signal().
45789         * modules/c-stack (Depends-on): Add sigaction.
45790         * modules/fatal-signal (Depends-on): Likewise.
45791         * modules/nanosleep (Depends-on): Likewise.
45792         * modules/sigprocmask (Files): Add sig-handler.h.
45793         * modules/sigaction (Files): Likewise.
45794         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45795         Eggert.
45796         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45797         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45798         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45799         (init_fatal_signals): Likewise.
45800         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45801         (siginterrupt): Delete fallback.
45802         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45803         instead.
45804         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45805         siginterrupt.
45806
45807         New module sigaction, for mingw.
45808         * modules/sigaction: New module...
45809         * modules/sigaction-tests: ...and its test.
45810         * m4/sigaction.m4: New file.
45811         * lib/sigaction.c: Likewise.
45812         * tests/test-sigaction.c: Likewise.
45813         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45814         * modules/signal (Makefile.am): Likewise.
45815         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45816         needed.
45817         * doc/posix-headers/signal.texi (signal.h): Mention provided
45818         types.
45819         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45820         that sigaction is preferable.
45821         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45822         module.
45823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45824         sigaction.
45825
45826         Improve robustness of sigprocmask by overriding signal.
45827         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45828         is in use.
45829         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45830         (SIGKILL, SIGSTOP): Provide fallbacks.
45831         (rpl_signal): Implement.
45832         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45833         signal can be called inside handlers.
45834
45835         Fix nanosleep module on mingw.
45836         * modules/nanosleep (Depends-on): Add sys_select.
45837         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45838
45839         Fix licensing of sigprocmask.
45840         * modules/raise (License): Relicense as LGPL.
45841
45842 2008-06-21  Bruno Haible  <bruno@clisp.org>
45843
45844         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45845         result if it contains question marks.
45846         Reported by Michael Geng <linux@michaelgeng.de>.
45847
45848 2008-06-19  Bruno Haible  <bruno@clisp.org>
45849
45850         Fix CVS-ism.
45851         * doc/gnulib.texi: Include updated-stamp.texi.
45852         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45853         (updated-stamp.texi): New rule.
45854         (gnulib.info): Depend on it.
45855         * doc/.gitignore: Add updated-stamp.texi.
45856         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45857
45858 2008-06-19  Bruno Haible  <bruno@clisp.org>
45859
45860         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45861         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45862
45863 2008-06-19  Eric Blake  <ebb9@byu.net>
45864
45865         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45866         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45867         Reported by Stepan Kasal.
45868
45869 2008-06-18  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45872         Reported by Eric Blake.
45873
45874 2008-06-18  Eric Blake  <ebb9@byu.net>
45875
45876         Work around cygwin 1.5.25 strsignal bug.
45877         * tests/test-strsignal.c: Allow for const char *.
45878         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45879
45880 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45881
45882         * users.txt: Update URL to article and add author/date
45883         information.
45884
45885 2008-06-17  Bruno Haible  <bruno@clisp.org>
45886
45887         New macro gl_DISABLE_THREADS.
45888         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45889         if the user did not pass --enable-threads or --disable-threads option.
45890         (gl_DISABLE_THREADS): New macro.
45891         Reported by Eric Blake <ebb9@byu.net>.
45892
45893 2008-06-17  Bruno Haible  <bruno@clisp.org>
45894
45895         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45896         when the macro ignores it.
45897         Based on a patch by Eric Blake <ebb9@byu.net>.
45898
45899 2008-06-17  Bruno Haible  <bruno@clisp.org>
45900
45901         * modules/tls (License): Change to LGPLv2+.
45902         Reported by Eric Blake.
45903
45904 2008-06-17  Eric Blake  <ebb9@byu.net>
45905
45906         Simplify c-stack prerequisites.
45907         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45909         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45910         check.
45911         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45912         <sys/resource.h>.
45913
45914         Move c-stack test into testsuite.
45915         * modules/c-stack-tests: New file.
45916         * lib/c-stack.c [DEBUG]: Move test program...
45917         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45918         fail test if sigaltstack is lacking.
45919         * tests/test-c-stack.sh: New driver file.
45920
45921 2008-06-16  Eric Blake  <ebb9@byu.net>
45922
45923         Use raise module consistently.
45924         * modules/fatal-signal (Depends-on): Add raise.
45925         * modules/sigprocmask (Depends-on): Likewise.
45926         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45927         * lib/sigprocmask.c (sigprocmask): Likewise.
45928         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45929         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45930
45931         Fix compliance bug in sigpending.
45932         * lib/sigprocmask.c (sigpending): Return pending array via
45933         parameter, not return value.
45934
45935 2008-06-14  Eric Blake  <ebb9@byu.net>
45936
45937         Improve obstack-printf test code.
45938         * tests/test-obstack-printf.c (test_function): Fix comment, and
45939         simplify usage of obstack_* in macros.  Add a test for coverage.
45940         Reported by Bruno Haible.
45941
45942 2008-06-14  Bruno Haible  <bruno@clisp.org>
45943
45944         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45945         array size as a constant, not as a const variable.
45946         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45947         AC_USE_SYSTEM_EXTENSIONS.
45948         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45949         Test whether the obstack_printf function actually exists.
45950         * modules/obstack-printf (Depends-on): Add extensions.
45951         (Include): Remove obstack.h.
45952         * modules/obstack-printf-posix (Depends-on): Add extensions.
45953         (Include): Remove obstack.h.
45954
45955 2008-06-13  Eric Blake  <ebb9@byu.net>
45956
45957         Add obstack-printf and obstack-printf-posix modules.
45958         * modules/obstack-printf: New file.
45959         * modules/obstack-printf-posix: Likewise.
45960         * MODULES.html.sh (Misc): Mention them.
45961         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45962         Likewise.
45963         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45964         Likewise.
45965         * modules/stdio (Makefile.am): Accomodate new modules.
45966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45967         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45968         Declare.
45969         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45970         functions.
45971         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45972         (gl_REPLACE_OBSTACK_PRINTF): New macros
45973         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45974         * tests/test-obstack-printf.c: New file.
45975         * modules/obstack-printf-tests: Likewise.
45976         * modules/obstack-printf-posix-tests: Likewise.
45977
45978 2008-06-11  Bruno Haible  <bruno@clisp.org>
45979
45980         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45981         * lib/open.c: Include errno.h.
45982         (open): Fail when attempting to write to a file that has a trailing
45983         slash.
45984         * tests/test-open.c (main): Test against trailing slash bug.
45985         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45986
45987 2008-06-10  Bruno Haible  <bruno@clisp.org>
45988
45989         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45990         for $? to work inside the trap command, with various /bin/sh-s.
45991         * tests/test-vc-list-files-cvs.sh: Likewise.
45992
45993 2008-06-10  Bruno Haible  <bruno@clisp.org>
45994
45995         * lib/acl-internal.h: Don't include gettext.h here.
45996         * lib/set-mode-acl.c: Include gettext.h here.
45997         * lib/copy-acl.c: Likewise.
45998
45999 2008-06-10  Bruno Haible  <bruno@clisp.org>
46000
46001         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46002         * lib/wait-process.c (wait_subprocess): Likewise.
46003         * lib/execute.h (execute): Add termsigp argument.
46004         * lib/execute.c (execute): Likewise.
46005         * lib/csharpcomp.c (compile_csharp_using_pnet,
46006         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46007         * lib/csharpexec.c (execute_csharp_using_pnet,
46008         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46009         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46010         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46011         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46012         is_jikes_present): Update.
46013         * lib/javaexec.c (execute_java_class): Update.
46014         * lib/javaversion.c (execute_and_read_line): Update.
46015         * NEWS: Document the changes.
46016         Reported by Eric Blake.
46017
46018 2008-06-10  Eric Blake  <ebb9@byu.net>
46019
46020         Add missing include.
46021         * tests/test-strstr.c (includes): Add <signal.h>.
46022         * tests/test-strcasestr.c (includes): Likewise.
46023         * tests/test-memmem.c (includes): Likewise.
46024
46025 2008-06-10  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/wait-process.c (wait_subprocess): Add an assertion.
46028
46029 2008-06-10  Bruno Haible  <bruno@clisp.org>
46030
46031         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46032
46033 2008-06-10  Bruno Haible  <bruno@clisp.org>
46034
46035         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46036         using alarm().
46037         * tests/test-strcasestr.c (main): Likewise.
46038         * tests/test-strstr.c (main): Likewise.
46039
46040 2008-06-09  Bruno Haible  <bruno@clisp.org>
46041
46042         Work around the Solaris 10 ACE ACLs ABI change.
46043         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46044         declare if ACL_NO_TRIVIAL is present.
46045         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46046         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46047         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46048         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46049         define if ACL_NO_TRIVIAL is present.
46050         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46051         and use the current ABI.
46052         (file_has_acl): Use same #if condition as elsewhere.
46053         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46054         in use, and use the current ABI.
46055         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46056         Reported by Jim Meyering.
46057
46058 2008-06-09  Eric Blake  <ebb9@byu.net>
46059
46060         Work around environments that (stupidly) ignore SIGALRM.
46061         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46062         before using alarm().
46063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46064         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46065         Reported by Ian Beckwith <ianb@erislabs.net>.
46066
46067         Produce autobuild blurb earlier in log.
46068         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46069
46070 2008-06-09  Jim Meyering  <meyering@redhat.com>
46071         and OndÅ™ej Vašík  <ovasik@redhat.com>
46072
46073         utimens.c: correct kernel bug work-around
46074         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46075         failure, not success, and the kernel bug we're trying to work
46076         around affects not just the utimensat call, but also the fallback
46077         futimens call.
46078         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46079         not success.
46080         [HAVE_FUTIMENS]: Use the same work-around, here.
46081
46082 2008-06-09  Jim Meyering  <meyering@redhat.com>
46083
46084         add more guards around definition of ACE_-related code
46085         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46086         ALLOW and ACE_OWNER are also defined.
46087
46088 2008-06-08  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/acl-internal.h: Add me as co-author.
46091         * lib/file-has-acl.c: Likewise.
46092         * lib/set-mode-acl.c: Likewise.
46093         * lib/copy-acl.c: Likewise.
46094
46095 2008-06-08  Bruno Haible  <bruno@clisp.org>
46096
46097         Add support for AIX ACLs.
46098         * lib/acl-internal.h (acl_nontrivial): New declaration.
46099         * lib/file-has-acl.c (acl_nontrivial): New function.
46100         (file_has_acl): Add implementation using AIX 4 ACL API.
46101         * lib/set-mode-acl.c (qset_acl): Likewise.
46102         * lib/copy-acl.c (qcopy_acl): Likewise.
46103
46104 2008-06-08  Bruno Haible  <bruno@clisp.org>
46105
46106         Add support for HP-UX ACLs.
46107         * lib/acl-internal.h (acl_nontrivial): New declaration.
46108         * lib/file-has-acl.c (acl_nontrivial): New function.
46109         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46110         * lib/set-mode-acl.c (qset_acl): Likewise.
46111         * lib/copy-acl.c (qcopy_acl): Likewise.
46112
46113 2008-06-08  Bruno Haible  <bruno@clisp.org>
46114
46115         Add support for Cygwin ACLs.
46116         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46117         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46118         the chmod_or_fchmod call.
46119         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46120
46121 2008-06-08  Bruno Haible  <bruno@clisp.org>
46122
46123         Fix bug with setuid modes in Solaris 10+ code.
46124         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46125         succeeded, when the mode contains some special bits.
46126
46127 2008-06-08  Bruno Haible  <bruno@clisp.org>
46128
46129         Add support for Solaris 7..10 ACLs.
46130         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46131         declarations.
46132         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46133         functions.
46134         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46135         * lib/set-mode-acl.c (qset_acl): Likewise.
46136         * lib/copy-acl.c (qcopy_acl): Likewise.
46137
46138 2008-06-08  Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46141         declaration.
46142         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46143         (acl_access_nontrivial): Remove MacOS X case.
46144         (file_has_acl): Use acl_extended_nontrivial.
46145         * lib/copy-acl.c (qcopy_acl): Likewise.
46146
46147 2008-06-08  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46150
46151 2008-06-08  Jim Meyering  <meyering@redhat.com>
46152
46153         * modules/acl (Maintainer): Add Bruno Haible.
46154
46155 2008-06-07  Bruno Haible  <bruno@clisp.org>
46156
46157         Improve support for Tru64 ACLs.
46158         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46159         ACL on OSF/1.
46160
46161 2008-06-07  Bruno Haible  <bruno@clisp.org>
46162
46163         Add support for MacOS X ACLs.
46164         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46165         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46166         * lib/set-mode-acl.c (qset_acl): Likewise.
46167         * lib/copy-acl.c (qcopy_acl): Likewise.
46168
46169 2008-06-07  Bruno Haible  <bruno@clisp.org>
46170
46171         Fix memory leak introduced on 2008-05-22.
46172         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46173         use.
46174
46175 2008-06-07  Bruno Haible  <bruno@clisp.org>
46176
46177         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46178         to construct an empty ACL.
46179
46180 2008-06-07  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46183         precisely.
46184         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46185
46186 2008-06-07  Bruno Haible  <bruno@clisp.org>
46187
46188         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46189         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46190
46191 2008-06-07  Bruno Haible  <bruno@clisp.org>
46192
46193         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46194         regardless of POSIX.
46195         * doc/posix-functions/_longjmp.texi: Likewise.
46196         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46197         SystemV platform in this case.
46198
46199 2008-06-06  Eric Blake  <ebb9@byu.net>
46200
46201         Document abort() bugs.
46202         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46203
46204         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46205         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46206         sigsetjmp.
46207         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46208         siglongjmp, but only as a macro.
46209         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46210         is obsolete.
46211         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46212
46213         Tweak documentation to cover cygwin argz bugs.
46214         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46215         argz bug fix; no code change needed since no cygwin releases
46216         occurred between the last fix and the bug being tested.
46217         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46218         module and recently fixed cygwin bugs.
46219         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46220         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46221         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46222         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46223         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46224         Likewise.
46225         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46226         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46227         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46228         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46229         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46230         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46231         Likewise.
46232
46233         Avoid gcc warning on cygwin.
46234         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46235         !ACL_NO_TRIVIAL]: Avoid unused variable.
46236
46237 2008-06-05  Eric Blake  <ebb9@byu.net>
46238
46239         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46240         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46241         git-version-gen fails to come up with a version.
46242         Reported by Simon Josefsson.
46243
46244 2008-06-05  Jim Meyering  <meyering@redhat.com>
46245             Paul Eggert  <eggert@cs.ucla.edu>
46246
46247         utimens.c: work around a probable Linux kernel bug
46248         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46249         appears to be a kernel bug that causes utimensat to return 280
46250         instead of 0, indicating success.
46251
46252 2008-06-04  Bruno Haible  <bruno@clisp.org>
46253
46254         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46255         2008-06-01 commit.
46256
46257 2008-06-04  Bruno Haible  <bruno@clisp.org>
46258
46259         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46260         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46261         (file_has_acl): Use it. Save errno afterwards.
46262         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46263
46264 2008-06-03  Bruno Haible  <bruno@clisp.org>
46265
46266         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46267         draft code. Simplify #ifs.
46268         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46269         Put Solaris code after POSIX-draft code. Fix comments regarding
46270         Solaris 10, HP-UX. Mention Cygwin.
46271         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46272
46273 2008-06-03  Eric Blake  <ebb9@byu.net>
46274
46275         Provide fallback for older kernels.
46276         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46277         Provide runtime fallback if kernel lacks support.
46278         Reported by Mike Frysinger.
46279
46280 2008-06-02  Bruno Haible  <bruno@clisp.org>
46281
46282         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46283         it exists.
46284
46285 2008-06-02  Bruno Haible  <bruno@clisp.org>
46286
46287         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46288         * lib/copy-acl.c (qcopy_acl): Update comment.
46289
46290 2008-06-02  Bruno Haible  <bruno@clisp.org>
46291
46292         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46293         like ACL APIs.
46294
46295 2008-06-02  Bruno Haible  <bruno@clisp.org>
46296
46297         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46298         * tests/test-set-mode-acl.sh: Likewise.
46299         * tests/test-copy-acl.sh: Likewise.
46300         * tests/test-copy-file.sh: Likewise.
46301
46302 2008-06-02  Bruno Haible  <bruno@clisp.org>
46303
46304         * tests/test-file-has-acl.sh: Remove unused code.
46305
46306 2008-06-01  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46309         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46310         messages.
46311         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46312
46313 2008-06-01  Bruno Haible  <bruno@clisp.org>
46314
46315         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46316         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46317         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46318         APIs.
46319         * modules/acl-tests (configure.ac): Remove tests now contained in
46320         m4/acl.m4.
46321
46322 2008-06-02  Jim Meyering  <meyering@redhat.com>
46323
46324         announce-gen: use a better key-server host name
46325         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46326         it may be more consistently reliable.  Suggested by Werner Koch
46327         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46328
46329 2008-06-01  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46332         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46333
46334 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46335
46336         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46337
46338 2008-06-01  Bruno Haible  <bruno@clisp.org>
46339
46340         New ACL tests.
46341         * tests/test-file-has-acl.sh: New file.
46342         * tests/test-file-has-acl.c: New file.
46343         * tests/test-set-mode-acl.sh: New file.
46344         * tests/test-set-mode-acl.c: New file.
46345         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46346         * tests/test-copy-acl.c: New file.
46347         * modules/acl-tests: New file, based on modules/copy-file-tests.
46348         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46349         (Depends-on): Add acl-tests.
46350         (configure.ac): Remove checks.
46351         (Makefile.am): Don't create test-sameacls program here any more.
46352
46353 2008-06-01  Bruno Haible  <bruno@clisp.org>
46354
46355         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46356         * tests/test-sameacls.c: Include progname.h.
46357         (main): Invoke set_program_name. Portability fixes for MacOS X,
46358         Solaris, HP-UX.
46359
46360 2008-06-01  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46363         function.
46364         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46365
46366 2008-06-01  Bruno Haible  <bruno@clisp.org>
46367
46368         * modules/rpmatch (Depends-on): Add strdup.
46369
46370 2008-06-01  Bruno Haible  <bruno@clisp.org>
46371
46372         * lib/pipe.c: Include unistd-safer.h.
46373         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46374         * modules/pipe (Depends-on): Add unistd-safer.
46375
46376 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46377
46378         * modules/autobuild (configure.ac): Call AB_INIT.
46379
46380 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46381
46382         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46383         Suggested by Bruno Haible <bruno@clisp.org>.
46384
46385 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46386
46387         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46388         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46389         <bruno@clisp.org>.
46390
46391 2008-05-29  Eric Blake  <ebb9@byu.net>
46392
46393         Prefer new POSIX 200x interfaces over futimesat.
46394         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46395         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46396         when available.
46397         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46398
46399 2008-05-28  Bruno Haible  <bruno@clisp.org>
46400
46401         * modules/stpcpy (License): Change to LGPLv2+.
46402         Requested by David Lutterkort <dlutter@redhat.com>.
46403
46404 2008-05-27  Bruno Haible  <bruno@clisp.org>
46405
46406         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46407         current mingw.
46408         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46409
46410 2008-05-27  Bruno Haible  <bruno@clisp.org>
46411
46412         * modules/iconv_open (Link): New section, from module 'iconv'.
46413         * modules/striconv (Link): Likewise.
46414         * modules/striconveh (Link): Likewise.
46415         * modules/xstriconv (Link): Likewise.
46416         * modules/unicodeio (Link): Likewise.
46417         * modules/propername (Link): Likewise.
46418         Reported by Jim Meyering.
46419
46420 2008-05-26  Jim Meyering  <meyering@redhat.com>
46421
46422         sha256: do not artificially restrict buffer length to be < 2^32
46423         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46424         uint32_t to size_t.
46425         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46426         to match.
46427
46428         avoid unaligned access errors, e.g., on sparc
46429         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46430         direct access through a possibly-unaligned uint64* pointer.
46431         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46432         direct access through a possibly-unaligned uint32* pointer.
46433         Prompted by this patch from Tom "spot" Callaway:
46434         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46435
46436         sha512.c: fix typo in comment
46437         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46438
46439 2008-05-25  Bruno Haible  <bruno@clisp.org>
46440
46441         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46442         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46443         (Makefile.am): Update lib_SOURCES.
46444
46445 2008-05-25  Bruno Haible  <bruno@clisp.org>
46446
46447         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46448
46449 2008-05-25  Jim Meyering  <meyering@redhat.com>
46450
46451         useless-if-before-free: freed expr may have white-space differences
46452         * build-aux/useless-if-before-free: Recognize cases in which the
46453         freed expression differs from the tested one in embedded white
46454         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46455         $1 was used, so we can't make any regexp shy.  Improved tests now
46456         detect this.
46457
46458         useless-if-before-free: accept white space in the expression.
46459         * build-aux/useless-if-before-free: For now, any white space
46460         in the expression must be identical in the free argument.
46461
46462         useless-if-before-free: efficiency tweak
46463         * build-aux/useless-if-before-free: Make the expression-matching
46464         regexp "shy".
46465         Make the *outer* regexp shy, not the expr-matching one.
46466
46467         update code-in-comment to accept cast of free arg
46468         * build-aux/useless-if-before-free: Update regexp.
46469
46470 2008-05-25  Bruno Haible  <bruno@clisp.org>
46471
46472         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46473         * modules/copy-file-tests (Files, Makefile.am): Update.
46474         * tests/test-copy-file.c (func_test_copy): Update.
46475
46476 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46477
46478         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46479
46480 2008-05-23  Bruno Haible  <bruno@clisp.org>
46481
46482         Improve support for ACLs on OSF/1.
46483         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46484         Remove fallback for unknown flavors of ACLs.
46485
46486 2008-05-22  Bruno Haible  <bruno@clisp.org>
46487
46488         Add support for ACLs on OSF/1.
46489         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46490         replacements.
46491         (acl_free_text): New macro fallback.
46492         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46493         acl_free.
46494         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46495         acl_free_text function. Require AC_C_INLINE.
46496
46497 2008-05-22  Bruno Haible  <bruno@clisp.org>
46498
46499         Make copy_acl work on MacOS X 10.5.
46500         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46501         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46502         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46503         If MODE_INSIDE_ACL, don't assume that every system has the same text
46504         representation for ACLs as FreeBSD.
46505         * lib/copy-acl.c (copy_acl): Add support for platforms with
46506         !MODE_INSIDE_ACL.
46507         * lib/file-has-acl.c (file_has_acl): Likewise.
46508         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46509         FreeBSD, MacOS X, or IRIX, respectively.
46510
46511 2008-05-22  Bruno Haible  <bruno@clisp.org>
46512
46513         * lib/acl.h: Don't include <sys/acl.h>.
46514         (GETACLCNT): Move fallback to lib/acl-internal.h.
46515         * lib/acl-internal.h: Include <sys/acl.h> here.
46516         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46517
46518 2008-05-22  Bruno Haible  <bruno@clisp.org>
46519
46520         Split off copy_acl function to separate file.
46521         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46522         * lib/acl.c (copy_acl): Moved function to separate file.
46523         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46524         * modules/acl (Files): Add lib/copy-acl.c.
46525         (Makefiles.am): Augment lib_SOURCES.
46526
46527 2008-05-22  Bruno Haible  <bruno@clisp.org>
46528
46529         * modules/copy-file-tests: New file.
46530         * tests/test-copy-file.sh: New file.
46531         * tests/test-copy-file.c: New file.
46532         * tests/test-copy-file-sameacls.c: New file.
46533
46534 2008-05-22  Eric Blake  <ebb9@byu.net>
46535
46536         Avoid gcc warning.
46537         * tests/test-memcmp.c (main): Pass NULL indirectly.
46538
46539 2008-05-21  Bruno Haible  <bruno@clisp.org>
46540
46541         Add reference doc about ACLs.
46542         * doc/acl-resources.txt: New file.
46543         * doc/acl-cygwin.txt: New file.
46544
46545 2008-05-21  Bruno Haible  <bruno@clisp.org>
46546
46547         Avoid one more warning from gcc.
46548         * lib/vasnprintf.c (IF_LINT): Update comments.
46549         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46550
46551 2008-05-21  Jim Meyering  <meyering@redhat.com>
46552
46553         avoid a warning from gcc
46554         * lib/vasnprintf.c (IF_LINT): Define.
46555         (scale10_round_decimal_long_double):
46556         Use it to avoid a "may be used uninitialized" warning.
46557         (scale10_round_decimal_double): Likewise.
46558
46559 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46560
46561         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46562         declared.
46563
46564 2008-05-20  Bruno Haible  <bruno@clisp.org>
46565
46566         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46567         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46568
46569 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46570
46571         * modules/memcmp-tests: New file.
46572         * tests/test-memcmp.c: New file.
46573
46574 2008-05-19  Bruno Haible  <bruno@clisp.org>
46575
46576         * modules/propername (Notice, configure.ac): Put quoted "..." into
46577         --keyword option.
46578         * lib/propername.h: Update comments accordingly.
46579         Reported by Eric Blake.
46580
46581 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46582
46583         * modules/getpass-gnu (Depends-on): Add fseeko.
46584
46585 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46586
46587         * modules/base64-tests: New file.
46588
46589 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46590
46591         * lib/base64.c (base64_decode_ctx): If a decode context structure
46592         was passed in use it to ignore newlines.  If a context structure
46593         was _not_ passed in, continue to treat newlines as garbage (this
46594         is the historical behavior).  Formerly base64_decode.
46595         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46596         takes a decode context structure.
46597         * lib/base64.h (base64_decode): Macro for four-argument calls.
46598         (base64_decode_alloc): Likewise.
46599         * lib/base64.c (base64_decode_ctx): If a decode context structure
46600         was passed in use it to ignore newlines.  If a context structure
46601         was _not_ passed in, continue to treat newlines as garbage (this
46602         is the historical behavior).  Formerly base64_decode.
46603         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46604         takes a decode context structure.
46605         * lib/base64.h (base64_decode): Macro for four-argument calls.
46606         (base64_decode_alloc): Likewise.
46607
46608 2008-05-19  Jim Meyering  <meyering@redhat.com>
46609
46610         avoid a warning from gcc
46611         * lib/trim.c (IF_LINT): Define.
46612         (trim2): Use it to avoid a "may be used uninitialized" warning.
46613
46614         Fix doc typo.
46615         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46616
46617 2008-05-19  Bruno Haible  <bruno@clisp.org>
46618
46619         * doc/glibc-functions/getpass.texi: Document limits of other
46620         implementations.
46621
46622 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46623             Bruno Haible <bruno@clisp.org>
46624
46625         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46626
46627 2008-05-18  Bruno Haible  <bruno@clisp.org>
46628
46629         * modules/propername: New file, from GNU gettext.
46630         * lib/propername.h: New file, from GNU gettext.
46631         * lib/propername.c: New file, from GNU gettext.
46632         * MODULES.html.sh (Internationalization functions): Add propername.
46633
46634 2008-05-16  Jim Meyering  <meyering@redhat.com>
46635             Bruno Haible  <bruno@clisp.org>
46636
46637         Avoid some warnings from "gcc -Wshadow".
46638         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46639
46640 2008-05-15  Eric Blake  <ebb9@byu.net>
46641
46642         Extend previous patch to cygwin 1.7.0.
46643         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46644         fast implementation in cygwin >= 1.7.0.
46645         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46647
46648 2008-05-15  Bruno Haible  <bruno@clisp.org>
46649
46650         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46651         implementation in glibc >= 2.9.
46652         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46654
46655 2008-05-15  Bruno Haible  <bruno@clisp.org>
46656
46657         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46658         (Unicode string functions): Add unilbrk/*.
46659         Reported by Karl Berry.
46660
46661 2008-05-15  Eric Blake  <ebb9@byu.net>
46662
46663         Fix violation of <stdbool.h> replacement in regex.
46664         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46665         * lib/regexec.c (re_search_internal): Likewise.
46666         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46667
46668 2008-05-15  Jim Meyering  <meyering@redhat.com>
46669
46670         avoid distracting test output when git or cvs is not found
46671         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46672         * tests/test-vc-list-files-git.sh: Likewise.
46673
46674 2008-05-15  Eric Blake  <ebb9@byu.net>
46675
46676         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46677         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46678         glibc version.
46679         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46680         * doc/posix-functions/strstr.texi (strstr): Likewise.
46681         * lib/str-two-way.h (MAX): Sychronize with glibc.
46682
46683 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46684
46685         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46686         opr.ctx_type.
46687         (calc_first): Initialize constraint field.
46688         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46689         Fix grammar.
46690         (duplicate_node): Merge constraint field for all node types.
46691         (calc_eclosure_iter): Look at constraint field for all node types.
46692         * lib/regex_internal.c (create_cd_newstate): Don't look at
46693         opr.ctx_type.
46694
46695 2008-05-14  Bruno Haible  <bruno@clisp.org>
46696
46697         Help GCC to do better code generation.
46698         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46699         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46700         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46701         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46702         Declare with attribute 'malloc' if supported.
46703
46704 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46705
46706         use "echo STR|wc -c" rather than unportable "expr length STR"
46707         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46708         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46709
46710 2008-05-14  Jim Meyering  <meyering@redhat.com>
46711
46712         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46713         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46714         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46715         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46716         via Collin Lasse.
46717
46718 2008-05-14  Eric Blake  <ebb9@byu.net>
46719
46720         Avoid quadratic growth in gl_LIBSOURCES.
46721         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46722         Suggested by Bruno Haible.
46723
46724         Test xmemdup0.
46725         * modules/xmemdup0-tests: New file.
46726         * tests/test-xmemdup0.c: Likewise.
46727
46728 2008-05-13  Eric Blake  <ebb9@byu.net>
46729
46730         Split xmemdup0 into its own module.
46731         * modules/xmemdup0: New file.
46732         * lib/xmemdup0.h: Likewise.
46733         * lib/xmemdup0.c: Likewise.
46734         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46735         * lib/xalloc.h (xmemdup0): Remove.
46736         * lib/xmalloc.c (xmemdup0): Likewise.
46737
46738 2008-05-13  Eric Blake  <ebb9@byu.net>
46739             Bruno Haible  <bruno@clisp.org>
46740
46741         Reduce number of forks required during autoconf.
46742         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46743         and gl_LIBSOURCES_DIR.
46744         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46745         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46746         m4_syscmd per file.
46747         <m4_foreach_w>: Move...
46748         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46749
46750 2008-05-13  Eric Blake  <ebb9@byu.net>
46751
46752         * gnulib-tool: Fix various comment typos.
46753
46754 2008-05-12  Bruno Haible  <bruno@clisp.org>
46755
46756         Tailor the linebreaking algorithm.
46757         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46758
46759 2008-05-12  Bruno Haible  <bruno@clisp.org>
46760
46761         Update to Unicode 5.0.0.
46762         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46763         LBP_JV, LBP_JT. Redistribute values.
46764         (unilbrk_table): Change size.
46765         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46766         Unicode TR#14 rev. 22.
46767         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46768         LBP_JV, LBP_JT. Redistribute values.
46769         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46770         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46771         Update.
46772         * lib/unilbrk/lbrkprop1.h: Regenerated.
46773         * lib/unilbrk/lbrkprop2.h: Regenerated.
46774         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46775         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46776         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46777         Likewise.
46778         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46779         Likewise.
46780         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46781         result.
46782         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46783         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46784         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46785         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46786         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46787         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46788
46789 2008-05-11  Bruno Haible  <bruno@clisp.org>
46790
46791         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46792
46793 2008-05-11  Bruno Haible  <bruno@clisp.org>
46794
46795         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46796         * modules/unilbrk/gen-lbrk: New file.
46797
46798 2008-05-11  Bruno Haible  <bruno@clisp.org>
46799
46800         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46801         * m4/sha512.m4 (gl_SHA512): Likewise.
46802
46803 2008-05-11  Jim Meyering  <meyering@redhat.com>
46804
46805         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46806         * modules/crypto/sha256: New file.
46807         * modules/crypto/sha512: Likewise.
46808         * lib/sha256.c: Likewise.
46809         * lib/sha256.h: Likewise.
46810         * lib/sha512.c: Likewise.
46811         * lib/sha512.h: Likewise.
46812         * lib/u64.h: Likewise.
46813         * m4/sha256.m4: Likewise.
46814         * m4/sha512.m4: Likewise.
46815         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46816
46817 2008-05-10  Bruno Haible  <bruno@clisp.org>
46818
46819         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46820         (Input/Output <stdio.h>): Add xprintf.
46821         (Signal handling <signal.h>): Add strsignal.
46822         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46823         (Core language properties): Add func.
46824         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46825         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46826         strings.
46827         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46828         (Input/output): New section.
46829         (File system functions): Add openat-die, stat-macros.
46830         (Networking functions): Add sockets.
46831         (Unicode string functions): Add unictype/*.
46832         (Support for building libraries and executables): Add gperf.
46833         (Support for building documentation): Add agpl-3.0.
46834         (Misc): Add nocrash.
46835
46836 2008-05-10  Bruno Haible  <bruno@clisp.org>
46837
46838         * modules/unictype/gen-ctype: New file.
46839
46840 2008-05-10  Jim Meyering  <meyering@redhat.com>
46841
46842         Make chdir-safer.c more efficient on a system with no symlinks.
46843         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46844         also if ELOOP is zero.  Suggested by Bruno Haible.
46845
46846         Make chdir-safer.c slightly safer.
46847         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46848         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46849
46850         Avoid compile failure on systems without ELOOP (like mingw).
46851         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46852         Reported by Bruno Haible.
46853
46854 2008-05-10  Bruno Haible  <bruno@clisp.org>
46855
46856         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46857         (is_utf8_encoding): Use a case-insensitive comparison.
46858         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46859         streq.
46860
46861 2008-05-10  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46864         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46865         * lib/unilbrk/ulc-common.h (iconv_string_length,
46866         iconv_string_keeping_offsets): Remove declarations.
46867         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46868         Don't include <iconv.h>, streq.h, xsize.h.
46869         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46870         conversion.
46871         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46872         <iconv.h>, streq.h, xsize.h.
46873         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46874         conversion.
46875         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46876         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46877         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46878         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46879
46880 2008-05-10  Bruno Haible  <bruno@clisp.org>
46881
46882         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46883         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46884
46885         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46886         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46887
46888         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46889         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46890
46891         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46892         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46893
46894         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46895         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46896
46897         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46898         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46899
46900         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46901         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46902
46903         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46904         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46905
46906 2008-05-10  Bruno Haible  <bruno@clisp.org>
46907
46908         Split up 'linebreak' module.
46909         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46910         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46911         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46912         modifications.
46913         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46914         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46915         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46916         lib/linebreak.c.
46917         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46918         lib/linebreak.c.
46919         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46920         lib/linebreak.c.
46921         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46922         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46923         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46924         lib/linebreak.c.
46925         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46926         lib/linebreak.c.
46927         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46928         lib/linebreak.c.
46929         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46930         lib/linebreak.c.
46931         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46932         lib/linebreak.c.
46933         * modules/unilbrk/base: New file.
46934         * modules/unilbrk/tables: New file.
46935         * modules/unilbrk/u8-possible-linebreaks: New file.
46936         * modules/unilbrk/u16-possible-linebreaks: New file.
46937         * modules/unilbrk/u32-possible-linebreaks: New file.
46938         * modules/unilbrk/ulc-common: New file.
46939         * modules/unilbrk/ulc-possible-linebreaks: New file.
46940         * modules/unilbrk/u8-width-linebreaks: New file.
46941         * modules/unilbrk/u16-width-linebreaks: New file.
46942         * modules/unilbrk/u32-width-linebreaks: New file.
46943         * modules/unilbrk/ulc-width-linebreaks: New file.
46944         * lib/linebreak.h: Remove file.
46945         * lib/linebreak.c: Remove file.
46946         * m4/linebreak.m4: Remove file.
46947         * modules/linebreak: Remove file.
46948         * NEWS: Mention the changes.
46949
46950 2008-05-09  Eric Blake  <ebb9@byu.net>
46951
46952         Add xmemdup0.
46953         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46954         implementation.
46955         * lib/xmalloc.c (xmemdup0): New C implementation.
46956
46957 2008-05-08  Bruno Haible  <bruno@clisp.org>
46958
46959         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46960
46961 2008-05-07  Eric Blake  <ebb9@byu.net>
46962
46963         Support cross-compilation of <wctype.h>.
46964         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46965         AC_CACHE_CHECK.
46966
46967 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46968
46969         * build-aux/vc-list-files: Add support for bzr.
46970
46971 2008-05-03  Jim Meyering  <meyering@redhat.com>
46972
46973         avoid failed assertion with tight malloc
46974         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46975
46976 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46977
46978         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46979         are needed from arpa/inet.h.
46980         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46981         Reported by Bruno Haible.
46982
46983 2008-05-02  Jim Meyering  <meyering@redhat.com>
46984
46985         avoid compilation error on FreeBSD 6
46986         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46987
46988 2008-05-01  Jim Meyering  <meyering@redhat.com>
46989
46990         useless-if-before-free: correct --help's exit status description
46991         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46992         for one or more matches, etc.  Reported by Bruno Haible.
46993
46994         vc-list-files: make the stand-alone gnulib test work
46995         * modules/vc-list-files-tests (configure.ac):
46996         Define and AC_SUBST abs_aux_dir.
46997         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46998         $(abs_top_srcdir) to each script and having each of them
46999         duplicate the work of setting PATH, set PATH here, using
47000         the new variable, abs_aux_dir instead.
47001         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47002         * tests/test-vc-list-files-git.sh: Likewise.
47003         Reported by Bruno Haible.
47004
47005 2008-05-01  Bruno Haible  <bruno@clisp.org>
47006
47007         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47008         reallocation. Rename 'done' to 'found_delimiter'.
47009
47010 2008-05-01  Jim Meyering  <meyering@redhat.com>
47011
47012         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47013         * build-aux/vc-list-files: Use `...`, not $(...).
47014
47015 2008-04-30  Jim Meyering  <meyering@redhat.com>
47016
47017         add tests for vc-list-files
47018         * modules/vc-list-files-tests: New module.
47019         * tests/test-vc-list-files-cvs.sh: New file.
47020         * tests/test-vc-list-files-git.sh: New file.
47021
47022         avoid a warning from gcc
47023         * lib/getndelim2.c (IF_LINT): Define.
47024         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47025
47026         vc-list-files: work properly with build-aux/cvsu, too
47027         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47028         to all cvs-based clauses.
47029
47030         vc-list-files: work properly in the CVS+awk case, too
47031         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47032
47033         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47034         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47035         take more than one file argument, so .  Add quotes, just in case $dir
47036         ever contains a shell meta-character.  Prompted by Soren Hansen in
47037         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47038
47039 2008-04-29  Eric Blake  <ebb9@byu.net>
47040
47041         Optimize getndelim2 to use block operations when possible.
47042         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47043         freadseek, and memchr2.
47044         * lib/getndelim2.c (getndelim2): Use them for block reads.
47045
47046 2008-04-29  Bruno Haible  <bruno@clisp.org>
47047
47048         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47049         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47050         * modules/inet_ntop (Depends-on): Add extensions.
47051         * modules/inet_pton (Depends-on): Likewise.
47052         Reported by Simon Josefsson.
47053
47054 2008-04-29  Jim Meyering  <meyering@redhat.com>
47055
47056         When the is more than one match in a block, match all of them.
47057         * build-aux/useless-if-before-free: Iterate through each block
47058         until there are no more matches.
47059
47060         Fix broken useless-if-before-free script.
47061         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47062         the expression to match cast of argument to free-like function.
47063
47064 2008-04-29  Eric Blake  <ebb9@byu.net>
47065
47066         Use new header.
47067         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47068
47069 2008-04-29  Jim Meyering  <meyering@redhat.com>
47070
47071         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47072         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47073         by gnulib to exist and to declare e.g., inet_ntop.
47074         Don't include "inet_ntop.h", now removed.
47075
47076         * m4/arpa_inet_h.m4: Remove trailing blanks.
47077
47078 2008-04-29  Eric Blake  <ebb9@byu.net>
47079
47080         Silence valgrind on safe reads beyond potential array bounds.
47081         * lib/rawmemchr.valgrind: New file.
47082         * lib/strchrnul.valgrind: Likewise.
47083         * modules/rawmemchr (Files): Distribute new file.
47084         * modules/strchrnul (Files): Likewise.
47085         Suggested by Bruno Haible.
47086
47087 2008-04-29  Bruno Haible  <bruno@clisp.org>
47088
47089         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47090         (inet_ntop, inet_pton): Change portability warning's wording.
47091         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47092         Invoke gl_CHECK_NEXT_HEADERS.
47093         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47094         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47095         set ARPA_INET_H.
47096         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47097         * modules/arpa_inet (Description): No longer only for systems that
47098         lack it.
47099         (Depends-on): Add include_next.
47100         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47101         HAVE_ARPA_INET_H.
47102
47103 2008-04-29  Jim Meyering  <meyering@redhat.com>
47104
47105         * modules/mkdir (License): Re-license as LGPLv2+.
47106
47107 2008-04-29  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/rawmemchr (Maintainer): Set to Eric.
47110         * modules/strchrnul (Maintainer): Likewise.
47111
47112 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47113
47114         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47115         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47116
47117         * modules/arpa_inet (arpa/inet.h): Use them.
47118
47119 2008-04-28  Eric Blake  <ebb9@byu.net>
47120
47121         Test getndelim2.
47122         * modules/getndelim2-tests: New file.
47123         * tests/test-getndelim2.c: Likewise.
47124         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47125         stream.
47126         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47127
47128         * MODULES.html.sh: Document new module.
47129
47130 2008-04-20  Bruno Haible  <bruno@clisp.org>
47131
47132         * lib/c-stack.c (die): Use raise.
47133         * modules/c-stack (Depends-on): Add raise.
47134
47135 2008-04-28  Bruno Haible  <bruno@clisp.org>
47136
47137         Expect rpmatch to be declared.
47138         * lib/yesno.c (rpmatch): Remove declaration.
47139
47140         Declare rpmatch.
47141         * lib/stdlib.in.h (rpmatch): New declaration.
47142         * lib/rpmatch.c: Include <stdlib.h> first.
47143         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47144         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47146         HAVE_RPMATCH.
47147         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47148         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47149         (Include): Set to <stdlib.h>.
47150         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47151         HAVE_RPMATCH.
47152         * NEWS: Document the change.
47153
47154 2008-04-28  Bruno Haible  <bruno@clisp.org>
47155
47156         Change rpmatch to use nl_langinfo when appropriate.
47157         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47158         (N_): New macro.
47159         (localized_pattern): New function/macro.
47160         (try): Remove match, nomatch arguments. Copy the pattern into safe
47161         memory before caching it.
47162         (rpmatch): Use localized_pattern. Add translator comments.
47163         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47164         Suggested by Eric Blake.
47165         * modules/rpmatch (Depends-on): Add stdbool.
47166
47167 2008-04-28  Eric Blake  <ebb9@byu.net>
47168
47169         Add rawmemchr module, matching glibc.
47170         * modules/string (Makefile.am): New indicator.
47171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47172         * lib/string.in.h (rawmemchr): Declare when appropriate.
47173         * modules/rawmemchr: New file.
47174         * m4/rawmemchr.m4: Likewise.
47175         * lib/rawmemchr.c: Likewise.
47176         * modules/rawmemchr-tests: Likewise.
47177         * tests/test-rawmemchr.c: Likewise.
47178         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47179         module.
47180         * modules/strchrnul (Depends-on): Add rawmemchr.
47181         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47182
47183         Whitespace cleanup.
47184         * tests/test-strchrnul.c: Reindent.
47185         * lib/strchrnul.c: Likewise.
47186
47187         Optimize and test strchrnul.
47188         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47189         * modules/strchrnul-tests: New file.
47190         * tests/test-strchrnul.c: Likewise.
47191
47192         Remove intprops dependency.
47193         * modules/memchr (Depends-on): Remove intprops.
47194         * modules/memrchr (Depends-on): Likewise.
47195         * modules/memchr2 (Depends-on): Likewise.
47196         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47197         * lib/memrchr.c (__memrchr): Likewise.
47198         * lib/memrchr2.c (memchr2): Likewise.
47199         Reported by Simon Josefsson.
47200
47201 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47202
47203         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47204         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47205
47206 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47207
47208         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47209
47210         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47211
47212         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47213
47214         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47215         declarations.
47216         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47217
47218         * m4/inet_pton.m4: Don't check for header files.
47219
47220         * m4/inet_ntop.m4: Don't check for header files.
47221
47222 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47223
47224         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47225         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47226         trigger for cygwin).
47227         Reported by Bruno Haible  <bruno@clisp.org>.
47228
47229 2008-04-28  Bruno Haible  <bruno@clisp.org>
47230
47231         * doc/posix-functions/strdup.texi: Mention mingw problem.
47232
47233 2008-04-27  Bruno Haible  <bruno@clisp.org>
47234
47235         * modules/stat-time-tests (Depends-on): Add sleep.
47236         * tests/test-stat-time.c (force_unlink): New function.
47237         (cleanup): Use it.
47238         (test_mtime): Remove the ctime related tests.
47239         (test_ctime): New function, containing the ctime related tests.
47240         (main): Call test_ctime, except on native Windows platforms.
47241
47242 2008-04-27  Bruno Haible  <bruno@clisp.org>
47243
47244         * lib/rpmatch.c (rpmatch): Add some comments.
47245         Reported by James Youngman <jay@gnu.org>.
47246
47247 2008-04-27  Bruno Haible  <bruno@clisp.org>
47248
47249         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47250         quiet NaNs.
47251
47252 2008-04-27  Bruno Haible  <bruno@clisp.org>
47253
47254         Make test-yesno.sh work on mingw.
47255         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47256         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47257         (main): Set stdin to binary mode.
47258         * modules/yesno-tests (Depends-on): Add binary-io.
47259
47260 2008-04-27  Bruno Haible  <bruno@clisp.org>
47261
47262         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47263         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47264         argument that lie outside the IEEE 854 domain.
47265         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47266         (gl_ISFINITE): Use it.
47267         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47268
47269 2008-04-27  Bruno Haible  <bruno@clisp.org>
47270
47271         Allow local renaming in config.h.
47272         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47273
47274 2008-04-27  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/memchr.c (__memchr): Change type of 'i'.
47277         * lib/memchr2.c (memchr2): Likewise.
47278
47279 2008-04-26  Eric Blake  <ebb9@byu.net>
47280         and Bruno Haible  <bruno@clisp.org>
47281
47282         Optimize and test memrchr.
47283         * modules/memrchr (Depends-on): Add intprops.
47284         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47285         * modules/memrchr-tests: New file.
47286         * tests/test-memrchr.c: New file.
47287
47288 2008-04-26  Bruno Haible  <bruno@clisp.org>
47289
47290         Add tentative support for DragonFly BSD.
47291         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47292         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47293         fp.
47294         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47295         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47296         * lib/fpurge.c (fpurge): Likewise.
47297         * lib/freadable.c (freaadable): Likewise.
47298         * lib/freadahead.c (freadahead): Likewise.
47299         * lib/freading.c (freading): Likewise.
47300         * lib/freadptr.c (freadptr): Likewise.
47301         * lib/freadseek.c (freadptrinc): Likewise.
47302         * lib/fseeko.c (fseeko): Likewise.
47303         * lib/fseterr.c (fseterr): Likewise.
47304         * lib/fwritable.c (fwritable): Likewise.
47305         * lib/fwriting.c (fwriting): Likewise.
47306
47307 2008-04-26  Bruno Haible  <bruno@clisp.org>
47308
47309         * lib/stdio-impl.h: New file.
47310         * lib/fbufmode.c: Include stdio-impl.h.
47311         (fbufmode): Use fp_, remove redundant #defines.
47312         * lib/fflush.c: Include stdio-impl.h.
47313         (clear_ungetc_buffer): Remove redundant #defines.
47314         * lib/fpurge.c: Include stdio-impl.h.
47315         (fpurge): Remove redundant #defines.
47316         * lib/freadable.c: Include stdio-impl.h.
47317         (freadable): Remove redundant #defines.
47318         * lib/freadahead.c: Include stdio-impl.h.
47319         (freadahead): Remove redundant #defines.
47320         * lib/freading.c: Include stdio-impl.h.
47321         (freading): Remove redundant #defines.
47322         * lib/freadptr.c: Include stdio-impl.h.
47323         (freadptr): Remove redundant #defines.
47324         * lib/freadseek.c: Include stdio-impl.h.
47325         (freadptrinc): Remove redundant #defines.
47326         * lib/fseeko.c: Include stdio-impl.h.
47327         (rpl_fseeko): Remove redundant #defines.
47328         * lib/fseterr.c: Include stdio-impl.h.
47329         (fseterr): Remove redundant #defines.
47330         * lib/fwritable.c: Include stdio-impl.h.
47331         (fwritable: Remove redundant #defines.
47332         * lib/fwriting.c: Include stdio-impl.h.
47333         (fwriting): Remove redundant #defines.
47334         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47335         * modules/fflush (Files): Likewise.
47336         * modules/fpurge (Files): Likewise.
47337         * modules/freadable (Files): Likewise.
47338         * modules/freadahead (Files): Likewise.
47339         * modules/freading (Files): Likewise.
47340         * modules/freadptr (Files): Likewise.
47341         * modules/freadseek (Files): Likewise.
47342         * modules/fseeko (Files): Likewise.
47343         * modules/fseterr (Files): Likewise.
47344         * modules/fwritable (Files): Likewise.
47345         * modules/fwriting (Files): Likewise.
47346
47347 2008-04-26  Bruno Haible  <bruno@clisp.org>
47348
47349         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47350         restore_seek_optimization, update_fpos_cache): New functions, extracted
47351         from rpl_fflush.
47352         (rpl_fflush): Use them.
47353         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47354         (gl_REPLACE_FFLUSH): Use it.
47355
47356 2008-04-26  Bruno Haible  <bruno@clisp.org>
47357
47358         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47359         on Solaris.
47360         * tests/test-xstrtoimax.sh: Likewise.
47361         * tests/test-xstrtoumax.sh: Likewise.
47362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47363
47364 2008-04-26  Bruno Haible  <bruno@clisp.org>
47365
47366         * modules/memchr-tests: New file.
47367         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47368
47369 2008-04-26  Eric Blake  <ebb9@byu.net>
47370             Bruno Haible  <bruno@clisp.org>
47371
47372         * lib/memchr.c: Include intprops.h.
47373         (__memchr): Optimize parallel detection of matching bytes. Rename local
47374         variables. Add explanatory comments.
47375
47376 2008-04-26  Bruno Haible  <bruno@clisp.org>
47377
47378         Fix module 'memchr', broken since 2000-10-28.
47379         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47380
47381 2008-04-26  Bruno Haible  <bruno@clisp.org>
47382
47383         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47384         comments.
47385
47386 2008-04-25  Eric Blake  <ebb9@byu.net>
47387
47388         Use native fstatat on cygwin 1.7.0.
47389         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47390         first.
47391
47392 2008-04-23  Eric Blake  <ebb9@byu.net>
47393
47394         Improve memchr2 performance.
47395         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47396         NUL bytes.
47397         * modules/memchr2 (Depends-on): Use intprops.h.
47398
47399 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47400
47401         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47402         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47403         <blp@cs.stanford.edu>.
47404
47405 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47406
47407         * lib/arpa_inet.in.h: New file.
47408
47409         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47410         (Makefile.am): Sed in substitute header file.
47411
47412         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47413         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47414
47415         * modules/inet_ntop (configure.ac): Use
47416         gl_ARPA_INET_MODULE_INDICATOR.
47417
47418         * modules/inet_pton (configure.ac): Use
47419         gl_ARPA_INET_MODULE_INDICATOR.
47420
47421 2008-04-22  Jim Meyering  <meyering@redhat.com>
47422
47423         * modules/verify (License): Re-license as LGPLv2+.
47424
47425 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47426
47427         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47428         parameter to void* as per POSIX standard (MinGW uses char*).
47429
47430 2008-04-21  Bruno Haible  <bruno@clisp.org>
47431
47432         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47433         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47434         Define to replacements if REPLACE_ISWCNTRL is 1.
47435         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47436         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47437         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47438         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47439         what it fixes.
47440         * doc/posix-functions/iswalpha.texi: Likewise.
47441         * doc/posix-functions/iswblank.texi: Likewise.
47442         * doc/posix-functions/iswcntrl.texi: Likewise.
47443         * doc/posix-functions/iswdigit.texi: Likewise.
47444         * doc/posix-functions/iswgraph.texi: Likewise.
47445         * doc/posix-functions/iswlower.texi: Likewise.
47446         * doc/posix-functions/iswprint.texi: Likewise.
47447         * doc/posix-functions/iswpunct.texi: Likewise.
47448         * doc/posix-functions/iswspace.texi: Likewise.
47449         * doc/posix-functions/iswupper.texi: Likewise.
47450         * doc/posix-functions/iswxdigit.texi: Likewise.
47451         Reported by Alain Guibert.
47452
47453 2008-04-21  Bruno Haible  <bruno@clisp.org>
47454
47455         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47456         Patch by Alain Guibert.
47457
47458 2008-04-21  Bruno Haible  <bruno@clisp.org>
47459
47460         Fix test failures on mingw.
47461         * tests/test-xstrtol.c (print_no_progname): New function.
47462         (main): Install it in error_print_progname hook.
47463         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47464         * tests/test-xstrtoimax.sh: Likewise.
47465         * tests/test-xstrtoumax.sh: Likewise.
47466
47467 2008-04-21  Bruno Haible  <bruno@clisp.org>
47468
47469         Fix test failure on mingw.
47470         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47471
47472 2008-04-21  Bruno Haible  <bruno@clisp.org>
47473
47474         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47475         Actually assign a value.
47476
47477 2008-04-20  Bruno Haible  <bruno@clisp.org>
47478
47479         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47480         take 2.
47481         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47482         'canonicalize-lgpl' module is also used.
47483         * lib/canonicalize-lgpl.c: Undo last change.
47484         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47485
47486 2008-04-20  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47489         config.h. Provide _mkdir based fallback for mingw.
47490         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47491         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47492         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47493         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47494         rather than defining mkdir in config.h.
47495         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47496         (gl_SYS_STAT_H_DEFAULTS): New macro.
47497         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47498         HAVE_IO_H any more.
47499         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47500         HAVE_DECL_MKDIR and HAVE_IO_H.
47501
47502 2008-04-20  Bruno Haible  <bruno@clisp.org>
47503
47504         * lib/isapipe.c: Port to native Windows platforms.
47505
47506 2008-04-20  Bruno Haible  <bruno@clisp.org>
47507
47508         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47509
47510 2008-04-21  Eric Blake  <ebb9@byu.net>
47511
47512         Work around preprocessors that don't handle UINTMAX_MAX.
47513         * lib/memchr2.c (memchr2): Avoid embedded #if.
47514         Reported by Alain Guibert, fix suggested by Bruno Haible.
47515
47516 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47517
47518         * doc/posix-functions/strftime.texi (strftime): Explain better
47519         Windows incompatibility.  Suggested by Micah Cowan
47520         <micah@cowan.name>.
47521
47522 2008-04-20  Bruno Haible  <bruno@clisp.org>
47523
47524         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47525         unistr/u8-mblen.
47526
47527 2008-04-20  Bruno Haible  <bruno@clisp.org>
47528
47529         Fix test failure on platforms with non-GNU iconv.
47530         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47531         (U_TO_U8): Use it, rather than u16_to_u8.
47532         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47533         units at the end of the input string.
47534         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47535
47536 2008-04-20  Bruno Haible  <bruno@clisp.org>
47537
47538         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47539         when the resulting length is 0.
47540         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47541
47542 2008-04-20  Bruno Haible  <bruno@clisp.org>
47543
47544         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47545         works.
47546         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47547
47548 2008-04-20  Bruno Haible  <bruno@clisp.org>
47549
47550         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47551         * modules/tsearch-tests (configure.ac): Test for initstate function.
47552
47553 2008-04-20  Bruno Haible  <bruno@clisp.org>
47554
47555         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47556         for nlink_t if missing.
47557         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47558
47559 2008-04-19  Bruno Haible  <bruno@clisp.org>
47560
47561         Work around snprintf bug on Linux libc5.
47562         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47563         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47564         gl_SNPRINTF_SIZE1.
47565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47566         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47567         that test failed.
47568         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47569         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47570         * modules/snprintf (Files): Add m4/printf.m4.
47571         * modules/vsnprintf (Files): Likewise.
47572         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47573         * doc/posix-functions/vsnprintf.texi: Likewise.
47574
47575 2008-04-19  Bruno Haible  <bruno@clisp.org>
47576
47577         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47578         from 0.0058 to less than 10^-7.
47579
47580 2008-04-19  Bruno Haible  <bruno@clisp.org>
47581
47582         Fix rounding when a precision is given.
47583         * lib/vasnprintf.c (is_borderline): New function.
47584         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47585         9...9x.
47586         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47587         %e, %g.
47588         * tests/test-vasprintf-posix.c (test_function): Likewise.
47589         * tests/test-snprintf-posix.h (test_function): Likewise.
47590         * tests/test-sprintf-posix.h (test_function): Likewise.
47591         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47592         * tests/test-printf-posix.h (test_function): Likewise.
47593         * tests/test-printf-posix.output: Update.
47594         Reported by John Darrington <john@darrington.wattle.id.au> via
47595         Ben Pfaff <blp@cs.stanford.edu>.
47596
47597 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47598
47599         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47600         Suggested by Bruno Haible <bruno@clisp.org>.
47601
47602 2008-04-17  Bruno Haible  <bruno@clisp.org>
47603
47604         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47605         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47606         implementation.
47607         Patch by Bruce Merry <bmerry@gmail.com>.
47608
47609 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47610
47611         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47612         doesn't work under Windows.
47613
47614 2008-04-16  Bruno Haible  <bruno@clisp.org>
47615
47616         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47617         New macros.
47618         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47619         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47620         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47621         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47622         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47623         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47624         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47625         macros.
47626         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47627         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47628         Northern Sotho, Uighur.
47629
47630 2008-04-16  Bruno Haible  <bruno@clisp.org>
47631
47632         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47633         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47634         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47635         Reported by Daniel Bergström <daniel@octocode.com>.
47636
47637 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47638             Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47641         function.
47642         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47643         New functions, mostly extracted from gl_locale_name_default.
47644         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47645
47646 2008-04-16  Eric Blake  <ebb9@byu.net>
47647
47648         Adjust strtod detection to catch glibc 2.7 bug.
47649         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47650         Reported by John Gatewood Ham.
47651
47652 2008-04-16  Bruno Haible  <bruno@clisp.org>
47653
47654         Add tentative support for Linux libc5.
47655         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47656         * lib/fpurge.c (fpurge): Likewise.
47657         * lib/freadable.c (freadable): Likewise.
47658         * lib/freadahead.c (freadahead): Likewise.
47659         * lib/freading.c (freading): Likewise.
47660         * lib/freadptr.c (freadptr): Likewise.
47661         * lib/freadseek.c (freadptrinc): Likewise.
47662         * lib/fseeko.c (rpl_fseeko): Likewise.
47663         * lib/fseterr.c (fseterr): Likewise.
47664         * lib/fwritable.c (fwritable): Likewise.
47665         * lib/fwriting.c (fwriting): Likewise.
47666         Reported by Alain Guibert <alguibert+bts@free.fr>.
47667
47668 2008-04-15  Bruno Haible  <bruno@clisp.org>
47669
47670         * modules/mathl (configure.ac): Define module indicator.
47671
47672 2008-04-15  Bruno Haible  <bruno@clisp.org>
47673
47674         * lib/logl.c (logl): Remove unused variables.
47675
47676 2008-04-15  Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47679         fails.
47680
47681 2008-04-15  Bruno Haible  <bruno@clisp.org>
47682
47683         * lib/trim.c (trim2): Fix argument of isspace() macro.
47684
47685 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47686
47687         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47688         to 0.
47689         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47690
47691 2008-04-14  Bruno Haible  <bruno@clisp.org>
47692
47693         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47694         AC_LANG_PROGRAM argument.
47695         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47696         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47698         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47699         * m4/math_h.m4 (gl_MATH_H): Likewise.
47700         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47701         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47702         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47703         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47704         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47705         * m4/regex.m4 (gl_REGEX): Likewise.
47706         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47707         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47709         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47710         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47711         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47712         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47713         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47714
47715 2008-04-14  Jim Meyering  <meyering@redhat.com>
47716
47717         test-strtod: fix typos: s/abs/fabs/
47718         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47719
47720 2008-04-13  Bruno Haible  <bruno@clisp.org>
47721
47722         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47723         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47724         module is also used and while not building the reloc-wrapper.
47725
47726 2008-04-13  Bruno Haible  <bruno@clisp.org>
47727
47728         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47729
47730 2008-04-13  Bruno Haible  <bruno@clisp.org>
47731
47732         Fix AIX compilation failure introduced on 2008-04-02.
47733         * tests/test-frexp.c (exp): Undefine before redefining.
47734         * tests/test-frexpl.c (exp): Likewise.
47735
47736 2008-04-13  Bruno Haible  <bruno@clisp.org>
47737
47738         Work around a HP-UX stdio bug.
47739         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47740         * tests/test-ftello.c (main): Likewise.
47741         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47742         * doc/posix-functions/ftello.texi: Likewise.
47743
47744 2008-04-13  Bruno Haible  <bruno@clisp.org>
47745
47746         Make test-signbit pass on HP-UX/hppa.
47747         * tests/test-signbit.c (minus_zerol): New variable.
47748         (test_signbitl): Use it.
47749
47750 2008-04-13  Bruno Haible  <bruno@clisp.org>
47751
47752         Make truncl work on OSF/1 4.0.
47753         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47754         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47755         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47757         HAVE_DECL_TRUNCL.
47758         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47759         HAVE_DECL_TRUNCL.
47760         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47761
47762 2008-04-13  Bruno Haible  <bruno@clisp.org>
47763
47764         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47765
47766 2008-04-13  Bruno Haible  <bruno@clisp.org>
47767
47768         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47769         expression, so as to avoid HP-UX 11 cc compiler bug.
47770
47771 2008-04-13  Bruno Haible  <bruno@clisp.org>
47772
47773         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47774
47775 2008-04-13  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/git-merge-changelog.c: Remove empty declaration outside of
47778         functions.
47779
47780 2008-04-13  Bruno Haible  <bruno@clisp.org>
47781
47782         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47783
47784 2008-04-13  Bruno Haible  <bruno@clisp.org>
47785
47786         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47787         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47788         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47789         also if it exists but lacks definitions of the SHUT_* macros.
47790         * modules/sys_socket (Description): Update.
47791         Reported by Elbert Pol <e.pol@chello.nl>.
47792
47793 2008-04-13  Bruno Haible  <bruno@clisp.org>
47794
47795         * lib/localcharset.c (OS2): Don't redefine if already defined.
47796         Reported by Elbert Pol <e.pol@chello.nl>.
47797
47798 2008-04-13  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/binary-io.h [__EMX__]: Include <io.h>.
47801         Reported by Elbert Pol <e.pol@chello.nl>.
47802
47803 2008-04-12  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/fpucw.h: Enable the definitions also for x86_64.
47806         Needed for NetBSD/x86_64.
47807         Reported by Thomas Klausner <tk@giga.or.at>.
47808
47809 2008-04-12  Bruno Haible  <bruno@clisp.org>
47810
47811         * tests/test-strtod.c: Include isnand.h.
47812         (main): Use isnand instead of isnan.
47813         Reported by Jim Meyering.
47814
47815 2008-04-12  Bruno Haible  <bruno@clisp.org>
47816
47817         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47818         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47819
47820 2008-04-12  Jim Meyering  <meyering@redhat.com>
47821
47822         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47823
47824 2008-04-12  Bruno Haible  <bruno@clisp.org>
47825
47826         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47827         Reported by Elbert Pol <e.pol@chello.nl>.
47828
47829 2008-04-12  Eric Blake  <ebb9@byu.net>
47830
47831         Work around Solaris 10 math.h bug.
47832         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47833         (gl_MATH_H_DEFAULTS): Set up default.
47834         * modules/math (Makefile.am): Replace new indicators.
47835         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47836         * tests/test-math.c (main): Test this.
47837         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47838         * doc/posix-headers/math.texi (math.h): Mention bug.
47839         Reported by Nelson H. F. Beebe and Jim Meyering.
47840
47841 2008-04-11  Bruno Haible  <bruno@clisp.org>
47842
47843         Adapt to future versions of Apple GCC.
47844         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47845         Reported by Peter O'Gorman <peter@pogma.com>.
47846
47847 2008-04-11  Bruno Haible  <bruno@clisp.org>
47848
47849         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47850
47851 2008-04-11  Bruno Haible  <bruno@clisp.org>
47852
47853         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47854
47855         * modules/getaddrinfo-tests (Makefile.am): Define
47856         test_getaddrinfo_LDADD.
47857
47858 2008-04-11  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47861         (init): Fix syntax error.
47862         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47863         is declared.
47864
47865 2008-04-11  Bruno Haible  <bruno@clisp.org>
47866
47867         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47868         * modules/glob (Depends-on): Add stdbool.
47869
47870 2008-04-11  Bruno Haible  <bruno@clisp.org>
47871
47872         * lib/trim.c: Include <string.h>.
47873
47874 2008-04-11  Eric Blake  <ebb9@byu.net>
47875
47876         Avoid compile failure on OS/2.
47877         * lib/regex_internal.h (internal_function): Disable optimization
47878         on OS/2 (__EMX__), where it caused compiler error.
47879         Reported by Elbert Pol.
47880
47881 2008-04-11  Bruno Haible  <bruno@clisp.org>
47882
47883         Flush the standard error stream before aborting. Needed on mingw.
47884         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47885         * tests/test-array_list.c (ASSERT): Likewise.
47886         * tests/test-array_oset.c (ASSERT): Likewise.
47887         * tests/test-avltree_list.c (ASSERT): Likewise.
47888         * tests/test-avltree_oset.c (ASSERT): Likewise.
47889         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47890         * tests/test-binary-io.c (ASSERT): Likewise.
47891         * tests/test-byteswap.c (ASSERT): Likewise.
47892         * tests/test-c-ctype.c (ASSERT): Likewise.
47893         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47894         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47895         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47896         * tests/test-c-strstr.c (ASSERT): Likewise.
47897         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47898         * tests/test-canonicalize.c (ASSERT): Likewise.
47899         * tests/test-carray_list.c (ASSERT): Likewise.
47900         * tests/test-ceilf1.c (ASSERT): Likewise.
47901         * tests/test-ceilf2.c (ASSERT): Likewise.
47902         * tests/test-ceill.c (ASSERT): Likewise.
47903         * tests/test-count-one-bits.c (ASSERT): Likewise.
47904         * tests/test-fbufmode.c (ASSERT): Likewise.
47905         * tests/test-fflush2.c (ASSERT): Likewise.
47906         * tests/test-floorf1.c (ASSERT): Likewise.
47907         * tests/test-floorf2.c (ASSERT): Likewise.
47908         * tests/test-floorl.c (ASSERT): Likewise.
47909         * tests/test-fopen.c (ASSERT): Likewise.
47910         * tests/test-fpending.c (ASSERT): Likewise.
47911         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47912         * tests/test-fpurge.c (ASSERT): Likewise.
47913         * tests/test-freadable.c (ASSERT): Likewise.
47914         * tests/test-freadahead.c (ASSERT): Likewise.
47915         * tests/test-freading.c (ASSERT): Likewise.
47916         * tests/test-freadptr.c (ASSERT): Likewise.
47917         * tests/test-freadptr2.c (ASSERT): Likewise.
47918         * tests/test-freadseek.c (ASSERT): Likewise.
47919         * tests/test-freopen.c (ASSERT): Likewise.
47920         * tests/test-frexp.c (ASSERT): Likewise.
47921         * tests/test-frexpl.c (ASSERT): Likewise.
47922         * tests/test-fseek.c (ASSERT): Likewise.
47923         * tests/test-fseeko.c (ASSERT): Likewise.
47924         * tests/test-fstrcmp.c (ASSERT): Likewise.
47925         * tests/test-ftell.c (ASSERT): Likewise.
47926         * tests/test-ftello.c (ASSERT): Likewise.
47927         * tests/test-func.c (ASSERT): Likewise.
47928         * tests/test-fwritable.c (ASSERT): Likewise.
47929         * tests/test-fwriting.c (ASSERT): Likewise.
47930         * tests/test-getdelim.c (ASSERT): Likewise.
47931         * tests/test-getline.c (ASSERT): Likewise.
47932         * tests/test-i-ring.c (ASSERT): Likewise.
47933         * tests/test-iconv-utf.c (ASSERT): Likewise.
47934         * tests/test-iconv.c (ASSERT): Likewise.
47935         * tests/test-isfinite.c (ASSERT): Likewise.
47936         * tests/test-isnand.c (ASSERT): Likewise.
47937         * tests/test-isnanf.c (ASSERT): Likewise.
47938         * tests/test-isnanl.h (ASSERT): Likewise.
47939         * tests/test-ldexpl.c (ASSERT): Likewise.
47940         * tests/test-linked_list.c (ASSERT): Likewise.
47941         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47942         * tests/test-localename.c (ASSERT): Likewise.
47943         * tests/test-lseek.c (ASSERT): Likewise.
47944         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47945         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47946         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47947         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47948         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47949         * tests/test-mbschr.c (ASSERT): Likewise.
47950         * tests/test-mbscspn.c (ASSERT): Likewise.
47951         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47952         * tests/test-mbspbrk.c (ASSERT): Likewise.
47953         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47954         * tests/test-mbsrchr.c (ASSERT): Likewise.
47955         * tests/test-mbsspn.c (ASSERT): Likewise.
47956         * tests/test-mbsstr1.c (ASSERT): Likewise.
47957         * tests/test-mbsstr2.c (ASSERT): Likewise.
47958         * tests/test-mbsstr3.c (ASSERT): Likewise.
47959         * tests/test-memchr2.c (ASSERT): Likewise.
47960         * tests/test-memmem.c (ASSERT): Likewise.
47961         * tests/test-open.c (ASSERT): Likewise.
47962         * tests/test-printf-frexp.c (ASSERT): Likewise.
47963         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47964         * tests/test-printf-posix.c (ASSERT): Likewise.
47965         * tests/test-quotearg.c (ASSERT): Likewise.
47966         * tests/test-rbtree_list.c (ASSERT): Likewise.
47967         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47968         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47969         * tests/test-round1.c (ASSERT): Likewise.
47970         * tests/test-roundf1.c (ASSERT): Likewise.
47971         * tests/test-roundl.c (ASSERT): Likewise.
47972         * tests/test-signbit.c (ASSERT): Likewise.
47973         * tests/test-sleep.c (ASSERT): Likewise.
47974         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47975         * tests/test-snprintf.c (ASSERT): Likewise.
47976         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47977         * tests/test-stat-time.c (ASSERT): Likewise.
47978         * tests/test-strcasestr.c (ASSERT): Likewise.
47979         * tests/test-strerror.c (ASSERT): Likewise.
47980         * tests/test-striconv.c (ASSERT): Likewise.
47981         * tests/test-striconveh.c (ASSERT): Likewise.
47982         * tests/test-striconveha.c (ASSERT): Likewise.
47983         * tests/test-strsignal.c (ASSERT): Likewise.
47984         * tests/test-strstr.c (ASSERT): Likewise.
47985         * tests/test-strtod.c (ASSERT): Likewise.
47986         * tests/test-trunc1.c (ASSERT): Likewise.
47987         * tests/test-trunc2.c (ASSERT): Likewise.
47988         * tests/test-truncf1.c (ASSERT): Likewise.
47989         * tests/test-truncf2.c (ASSERT): Likewise.
47990         * tests/test-truncl.c (ASSERT): Likewise.
47991         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47992         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47993         * tests/test-vasnprintf.c (ASSERT): Likewise.
47994         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47995         * tests/test-vasprintf.c (ASSERT): Likewise.
47996         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47997         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47998         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47999         * tests/test-vsnprintf.c (ASSERT): Likewise.
48000         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48001         * tests/test-wcwidth.c (ASSERT): Likewise.
48002         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48003         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48004         * tests/test-xvasprintf.c (ASSERT): Likewise.
48005         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48006         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48007         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48008         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48009         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48010         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48011         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48012         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48013         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48014         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48015         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48016         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48017         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48018         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48019         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48020         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48021         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48022         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48023         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48024         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48025         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48026         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48027         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48028         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48029         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48030         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48031         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48032         * tests/unictype/test-combining.c (ASSERT): Likewise.
48033         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48034         * tests/unictype/test-digit.c (ASSERT): Likewise.
48035         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48036         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48037         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48038         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48039         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48040         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48041         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48042         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48043         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48044         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48045         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48046         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48047         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48048         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48049         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48050         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48051         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48052         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48053         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48054         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48055         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48056         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48057         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48058         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48059         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48060         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48061         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48062         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48063         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48064         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48065         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48066         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48067         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48068         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48069         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48070         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48071         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48072         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48073         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48074         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48075         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48076         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48077         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48078         Reported by Eric Blake.
48079
48080 2008-04-11  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/wchar.in.h: Tweak comment.
48083
48084 2008-04-11  Bruno Haible  <bruno@clisp.org>
48085
48086         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48087         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48088         gl_COMMON.
48089         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48090
48091 2008-04-11  Bruno Haible  <bruno@clisp.org>
48092
48093         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48094
48095 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48096
48097         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48098         of attempting to use non-existing /dev/*random.  Based on patch
48099         from Adam Strzelecki <ono@java.pl> in
48100         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48101
48102 2008-04-08  Bruno Haible  <bruno@clisp.org>
48103
48104         Add tentative support for emx+gcc.
48105         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48106         * lib/fpurge.c (fpurge): Likewise.
48107         * lib/freadable.c (freadable): Likewise.
48108         * lib/freadahead.c (freadahead): Likewise.
48109         * lib/freading.c (freading): Likewise.
48110         * lib/freadptr.c (freadptr): Likewise.
48111         * lib/freadseek.c (freadptrinc): Likewise.
48112         * lib/fseeko.c (rpl_fseeko): Likewise.
48113         * lib/fseterr.c (fseterr): Likewise.
48114         * lib/fwritable.c (fwritable): Likewise.
48115         * lib/fwriting.c (fwriting): Likewise.
48116         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48117
48118 2008-04-09  Eric Blake  <ebb9@byu.net>
48119
48120         Avoid some autoconf warnings.
48121         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48122         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48123         * m4/afs.m4 (gl_AFS): Likewise.
48124         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48125         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48126         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48127         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48128         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48129         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48130         (AC_CHECK_DECLS_ONCE): Likewise.
48131         Rename file...
48132         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48133         gnulib-tool requires autoconf 2.59 or better.
48134         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48135
48136 2008-04-08  Eric Blake  <ebb9@byu.net>
48137
48138         Use 'git describe --match' if present (added in git 1.5.5).
48139         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48140         if possible.
48141
48142 2008-04-08  Bruno Haible  <bruno@clisp.org>
48143
48144         Add tentative support for OpenServer.
48145         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48146         _ptr, _cnt.
48147         * lib/fpurge.c (fpurge): Likewise.
48148         * lib/freadable.c (freadable): Likewise.
48149         * lib/freadahead.c (freadahead): Likewise.
48150         * lib/freading.c (freading): Likewise.
48151         * lib/freadptr.c (freadptr): Likewise.
48152         * lib/freadseek.c (freadptrinc): Likewise.
48153         * lib/fseeko.c (rpl_fseeko): Likewise.
48154         * lib/fseterr.c (fseterr): Likewise.
48155         * lib/fwritable.c (fwritable): Likewise.
48156         * lib/fwriting.c (fwriting): Likewise.
48157         Reported by Roger Cornelius <rac@tenzing.org> and
48158         Brian K. White <brian@aljex.com>.
48159
48160 2008-04-06  Jim Meyering  <meyering@redhat.com>
48161
48162         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48163
48164 2008-04-06  Bruno Haible  <bruno@clisp.org>
48165
48166         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48167         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48168         * tests/test-printf-posix.sh: Likewise.
48169         * tests/test-vfprintf-posix.sh: Likewise.
48170         * tests/test-vprintf-posix.sh: Likewise.
48171         * tests/test-xprintf-posix.sh: Likewise.
48172
48173 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48174
48175         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48176         hide error from 'ls', needed on OS/2.
48177         Report by Elbert Pol <elbert.pol@gmail.com>.
48178
48179 2008-04-04  Eric Blake  <ebb9@byu.net>
48180
48181         Make test-fseeko.c failures meaningful.
48182         * tests/test-fseeko.c: Print line number on failure.
48183         * tests/test-fseek.c: Likewise.
48184         Reported by Nelson H. F. Beebe.
48185
48186         Improve strtod bug detection check.
48187         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48188         required for Solaris 10.
48189         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48190
48191 2008-04-04  Bruno Haible  <bruno@clisp.org>
48192
48193         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48194         by m4/setenv.m4.
48195
48196 2008-04-03  Eric Blake  <ebb9@byu.net>
48197
48198         Ensure sane .version contents.
48199         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48200         version string.
48201         * build-aux/git-version-gen: Improve documentation.
48202
48203         Make GNU make output nicer.
48204         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48205         MAKECMDGOALS to enforce message for all command line targets.  Set
48206         srcdir for use in maint.mk.
48207
48208         Another maintainer tweak.
48209         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48210         a target that regenerates version.
48211
48212 2008-04-03  Jim Meyering  <meyering@redhat.com>
48213
48214         vc-list-files: don't cause coreutils "make po-check" failure
48215         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48216
48217 2008-04-03  Eric Blake  <ebb9@byu.net>
48218
48219         Allow VPATH usage of vc-list-files.
48220         * build-aux/vc-list-files (scriptversion): Add timestamp.
48221         (options): Add --help, --version, -C.
48222         (CVS): Support installed cvsu.
48223
48224 2008-04-02  Bruno Haible  <bruno@clisp.org>
48225
48226         Avoid some "statement with no effect" warnings from gcc.
48227         * tests/test-wctype.c (main): Explicitly ignore unused values.
48228         Reported by Jim Meyering.
48229
48230 2008-04-02  Jim Meyering  <meyering@redhat.com>
48231
48232         Avoid some warnings from "gcc -Wshadow".
48233         * tests/test-frexp.c (exp): Define to a different identifier.
48234         * tests/test-frexpl.c (exp): Likewise.
48235
48236 2008-04-03  Jim Meyering  <meyering@redhat.com>
48237
48238         bootstrap: remove dangling *.[ch] symlinks from lib
48239         * build-aux/bootstrap [dangling symlink removal]: Move find's
48240         -depth option to precede all others, to avoid a warning.
48241         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48242
48243 2008-04-02  Bruno Haible  <bruno@clisp.org>
48244
48245         Avoid some warnings from "gcc -Wshadow".
48246         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48247         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48248         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48249         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48250         Reported by Jim Meyering.
48251
48252 2008-04-01  Bruno Haible  <bruno@clisp.org>
48253
48254         Fix test to work on IRIX 6.5 with cc.
48255         * tests/test-math.c (numeric_equal): New function.
48256         (main): Use it.
48257
48258 2008-04-01  Bruno Haible  <bruno@clisp.org>
48259
48260         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48261
48262 2008-04-01  Bruno Haible  <bruno@clisp.org>
48263
48264         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48265         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48266         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48267         (Depends-on): Remove math.
48268
48269         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48270         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48271         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48272         (Depends-on): Remove math.
48273
48274         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48275         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48276         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48277         (Depends-on): Remove math.
48278         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48279         (Depends-on): Remove math.
48280
48281         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48282         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48283         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48284         (Depends-on): Remove math.
48285         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48286         (Depends-on): Remove math.
48287
48288         * tests/test-round1.c: Include nan.h.
48289         (main): Use NaNd instead of NAN.
48290         * modules/round-tests (Files): Add tests/nan.h.
48291
48292         * tests/test-trunc1.c: Include nan.h.
48293         (main): Use NaNd instead of NAN.
48294         * modules/trunc-tests (Files): Add tests/nan.h.
48295
48296         * tests/test-roundf1.c: Include nan.h.
48297         (main): Use NaNf instead of NAN.
48298         * modules/roundf-tests (Files): Add tests/nan.h.
48299
48300         * tests/test-truncf1.c: Include nan.h.
48301         (main): Use NaNf instead of NAN.
48302         * modules/truncf-tests (Files): Add tests/nan.h.
48303
48304         * tests/test-ceilf1.c: Include nan.h.
48305         (main): Use NaNf instead of NAN.
48306         * modules/ceilf-tests (Files): Add tests/nan.h.
48307
48308         * tests/test-floorf1.c: Include nan.h.
48309         (main): Use NaNf instead of NAN.
48310         * modules/floorf-tests (Files): Add tests/nan.h.
48311
48312         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48313         (main): Use NaNf instead of NAN.
48314         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48315
48316         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48317         (main): Use NaNd instead of NAN.
48318         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48319
48320         * tests/test-frexp.c: Include nan.h.
48321         (main): Use NaNd instead of NAN.
48322         * modules/frexp-tests (Files): Add tests/nan.h.
48323
48324         * lib/isnan.c: Don't include <math.h>.
48325         (FUNC): Don't use NAN macro.
48326         * modules/isnand-nolibm (Depends-on): Remove math.
48327         * modules/isnanf-nolibm (Depends-on): Remove math.
48328         * modules/isnanl (Depends-on): Remove math.
48329         * modules/isnanl-nolibm (Depends-on): Remove math.
48330
48331         * tests/nan.h: New file.
48332
48333 2008-04-01  Eric Blake  <ebb9@byu.net>
48334
48335         Fix typos.
48336         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48337         values to be the right type.
48338
48339         For now, cater to gnulib strtod inaccuracies.
48340         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48341         fractional results.  While not as nice from a QoI perspective, it
48342         is a quicker patch than correctly implementing decimal to binary
48343         rounding.
48344
48345 2008-03-31  Eric Blake  <ebb9@byu.net>
48346
48347         Guarantee a definition of NAN.
48348         * lib/math.in.h (NAN): Define if missing.
48349         * tests/test-math.c (main): Test it.
48350         * doc/posix-headers/math.texi (math.h): Document this.
48351         * lib/isnan.c (rpl_isnand): Use it.
48352         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48353         * tests/test-floorf1.c (NaN): Likewise.
48354         * tests/test-frexp.c (NaN): Likewise.
48355         * tests/test-isnand.c (NaN): Likewise.
48356         * tests/test-isnanf.c (NaN): Likewise.
48357         * tests/test-round1.c (NaN): Likewise.
48358         * tests/test-roundf1.c (NaN): Likewise.
48359         * tests/test-snprintf-posix.h (NaN): Likewise.
48360         * tests/test-sprintf-posix.h (NaN): Likewise.
48361         * tests/test-trunc1.c (NaN): Likewise.
48362         * tests/test-truncf1.c (NaN): Likewise.
48363         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48364         * tests/test-vasprintf-posix.c (NaN): Likewise.
48365         * modules/isnand-nolibm (Depends-on): Add math.
48366         * modules/isnanf-nolibm (Depends-on): Likewise.
48367         * modules/isnanl (Depends-on): Likewise.
48368         * modules/isnanl-nolibm (Depends-on): Likewise.
48369         * modules/snprintf-posix-tests (Depends-on): Likewise.
48370         * modules/sprintf-posix-tests (Depends-on): Likewise.
48371         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48372         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48373         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48374         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48375
48376 2008-03-31  Bruno Haible  <bruno@clisp.org>
48377
48378         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48379         * doc/posix-functions/strtod.texi: Likewise.
48380
48381 2008-03-31  Bruno Haible  <bruno@clisp.org>
48382
48383         * tests/test-strtod.c (main): Don't use C99 syntax.
48384
48385 2008-03-31  Bruno Haible  <bruno@clisp.org>
48386
48387         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48388         Reported by Eric Blake.
48389
48390 2008-03-31  Jim Meyering  <meyering@redhat.com>
48391
48392         Don't compare actual signbit return values.
48393         * tests/test-strtod.c (main): Rather, compare only their
48394         zero/non-zero nature.
48395
48396 2008-03-31  Eric Blake  <ebb9@byu.net>
48397
48398         More strtod documentation.
48399         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48400         failures as distinct bugs.
48401
48402 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48403
48404         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48405         Problem reported by Erik Benada in
48406         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48407
48408 2008-03-30  Bruno Haible  <bruno@clisp.org>
48409
48410         * tests/test-strtod.c: Add comments about which assertion fails on which
48411         platform.
48412         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48413
48414 2008-03-30  Eric Blake  <ebb9@byu.net>
48415
48416         Test signbit behavior on zeros.
48417         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48418         (test_signbitd, test_signbitl): Likewise.
48419
48420         More strtod touchups.
48421         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48422         sign of negative underflow, for now.  Use .5, not .1.
48423         * doc/posix-functions/strtod.texi (strtod): Mention these
48424         limitations.
48425         Reported by Jim Meyering.
48426
48427 2008-03-30  Bruno Haible  <bruno@clisp.org>
48428
48429         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48430         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48431
48432 2008-03-30  Bruno Haible  <bruno@clisp.org>
48433
48434         Avoid failure when attempting to return empty iconv results on some
48435         platforms.
48436         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48437         allocation, don't report ENOMEM when the resulting string is empty.
48438
48439 2008-03-30  Bruno Haible  <bruno@clisp.org>
48440
48441         Fix buffer overrun.
48442         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48443         Don't consider the width for tmp_length. Check count against tmp_length
48444         before doing the padding. Ensure enough allocation during padding.
48445
48446 2008-03-30  Eric Blake  <ebb9@byu.net>
48447
48448         strtod touchups.
48449         * lib/strtod.c (strtod): Avoid compiler warnings.
48450         Reported by Jim Meyering.
48451
48452 2008-03-30  Bruno Haible  <bruno@clisp.org>
48453
48454         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48455         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48456         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48457         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48458         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48459         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48460         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48461         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48462
48463         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48464         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48465         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48466         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48467         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48468         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48469         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48470         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48471
48472         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48473         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48474         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48475         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48476         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48477         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48478         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48479         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48480
48481         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48482         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48483
48484         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48485         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48486
48487         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48488         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48489
48490         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48492         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48493
48494         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48496         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48497
48498         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48500         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48501
48502         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48503         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48504         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48505
48506         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48507         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48508         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48509         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48510         (Depends-on): Add EOVERFLOW.
48511         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48512         (Depends-on): Add EOVERFLOW.
48513         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48514         (Depends-on): Add EOVERFLOW.
48515         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48516         (Depends-on): Add EOVERFLOW.
48517         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48518         (Depends-on): Add EOVERFLOW.
48519         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48520         (Depends-on): Add EOVERFLOW.
48521         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48522         (Depends-on): Add EOVERFLOW.
48523         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48524         (Depends-on): Add EOVERFLOW.
48525
48526         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48528         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48529
48530         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48531         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48532         * modules/snprintf (Depends-on): Add EOVERFLOW.
48533
48534         * lib/poll.c (EOVERFLOW): Remove fallback.
48535         * modules/poll (Depends-on): Add EOVERFLOW.
48536
48537         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48538         * modules/getugroups (Depends-on): Add EOVERFLOW.
48539
48540         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48541         * modules/getdelim (Depends-on): Add EOVERFLOW.
48542
48543         * lib/ftell.c (EOVERFLOW): Remove fallback.
48544         * modules/ftell (Depends-on): Add EOVERFLOW.
48545
48546         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48548         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48549
48550         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48551
48552         * modules/EOVERFLOW-tests: New file.
48553         * tests/test-EOVERFLOW.c: New file.
48554
48555         * modules/EOVERFLOW: New file.
48556         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48557
48558 2008-03-30  Bruno Haible  <bruno@clisp.org>
48559
48560         Fix bug introduced on 2007-06-10.
48561         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48562         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48563
48564 2008-03-30  Bruno Haible  <bruno@clisp.org>
48565
48566         Improve freadseek's efficiency after ungetc.
48567         * lib/freadseek.c: Include freadahead.h.
48568         (freadptrinc): New function, extracted from freadseek.
48569         (freadseek): Use it in a loop. Use freadahead to determine the number
48570         of loop iterations.
48571         * modules/freadseek (Depends-on): Add freadahead.
48572         (configure.ac): Require AC_C_INLINE.
48573
48574 2008-03-30  Bruno Haible  <bruno@clisp.org>
48575
48576         * lib/freadseek.c (freadseek): Don't ignore the return value of
48577         freadptr.
48578
48579 2008-03-29  Eric Blake  <ebb9@byu.net>
48580
48581         Add hex float support.
48582         * modules/strtod (Depends-on): Add c-ctype.
48583         (Link): Mention POW_LIB.
48584         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48585         whitespace between 'e' and exponent.
48586         * tests/test-strtod.c (main): Enable hex float tests.
48587         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48588         now provides.
48589
48590         Document various strtod bugs, with some fixes.
48591         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48592         "-0x", "inf", "nan", and hex constants.
48593         * doc/posix-functions/atof.texi (atof): Likewise.
48594         * modules/stdlib (Makefile.am): Support strtod.
48595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48596         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48597         detect additional strtod bugs.
48598         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48599         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48600         bool where appropriate.  Parse 'inf' and 'nan'.
48601         * tests/test-strtod.c: New file.
48602         * modules/strtod (Depends-on): Add stdbool, stdlib.
48603         (configure.ac): Turn on module indicator.
48604         * modules/strtod-tests: New module.
48605
48606 2008-03-29  Eric Blake  <ebb9@byu.net>
48607
48608         Fix ftell on mingw.
48609         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48610         * modules/ftell-tests (Depends-on): Add binary-io.
48611         * modules/ftello-tests (Depends-on): Likewise.
48612         * tests/test-ftell.c (main): Enhance test to cover behavior after
48613         ungetc.  Enforce binary mode.
48614         * tests/test-ftello.c (main): Likewise.
48615
48616         Pass test-freadseek on cygwin.
48617         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48618         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48619         ungetc buffer.
48620
48621         * tests/test-fflush2.c (main): Fix typo.
48622
48623 2008-03-29  Bruno Haible  <bruno@clisp.org>
48624
48625         * tests/test-fflush2.c (main): Temporarily disable the contents of
48626         this test.
48627         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48628         Reported by Eric Blake.
48629
48630 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48631
48632         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48633         (GC_SHA224_DIGEST_SIZE): Add.
48634
48635         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48636         (gc_hash_digest_length): Likewise.
48637         (gc_hash_buffer): Likewise.
48638
48639 2008-03-25  Bruno Haible  <bruno@clisp.org>
48640
48641         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48642         detail which gettext release to use.
48643         Reported by Simon Josefsson.
48644
48645 2008-03-26  Jim Meyering  <meyering@redhat.com>
48646
48647         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48648         * modules/gnumakefile (clean-GNUmakefile): Also, use
48649         test ... && ... || : syntax rather than if-then ... fi.
48650
48651         gnumakefile: Don't double-quote-expand $(VPATH) value.
48652         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48653
48654 2008-03-24  Eric Blake  <ebb9@byu.net>
48655
48656         Alter GNUmakefile to install into top directory.
48657         * modules/maintainer-makefile: Split, and add dependency...
48658         * modules/gnumakefile: to this new module.
48659         * build-aux/GNUmakefile: Move...
48660         * top/GNUmakefile: ...here.
48661         * build-aux/maint.mk: Move...
48662         * top/maint.mk: ...here.
48663         * MODULES.html.sh (Support for maintaining...): Document new
48664         module.
48665
48666 2008-03-23  Bruno Haible  <bruno@clisp.org>
48667
48668         * gnulib-tool: New options --vc-files, --no-vc-files.
48669         (func_usage): Document them.
48670         (vc_files): New variable.
48671         (func_import): Consider vc_files.
48672         (func_create_testdir): Set vc_files to empty.
48673         Suggested by Jim Meyering and Karl Berry.
48674
48675 2008-03-23  Bruno Haible  <bruno@clisp.org>
48676
48677         Fix regex compilation error on HP-UX 11.
48678         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48679         * modules/regex (Files): Add m4/mbstate_t.m4.
48680         Reported by Ton Voon <ton.voon@altinity.com>.
48681
48682 2008-03-23  Bruno Haible  <bruno@clisp.org>
48683
48684         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48685
48686 2008-03-23  Eric Blake  <ebb9@byu.net>
48687             Bruno Haible  <bruno@clisp.org>
48688
48689         Install files from top/ in the destination directory.
48690         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48691         augmentation also for the files from top/.
48692         (func_import, func_create_testdir): Rewrite file names:
48693         top/filename -> filename.
48694
48695 2008-03-23  Bruno Haible  <bruno@clisp.org>
48696
48697         Tweak "gnulib --version" output.
48698         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48699
48700 2008-03-23  Bruno Haible  <bruno@clisp.org>
48701
48702         Tweak "gnulib --version" output.
48703         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48704         rather than contents of ChangeLog, when possible.
48705
48706 2008-03-21  Eric Blake  <ebb9@byu.net>
48707
48708         More --version tweaks.
48709         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48710         date of last ChangeLog entry.
48711
48712 2008-03-21  Jim Meyering  <meyering@redhat.com>
48713
48714         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48715
48716 2008-03-20  Eric Blake  <ebb9@byu.net>
48717
48718         VPATH fix.
48719         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48720
48721 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48722
48723         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48724         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48725
48726 2008-03-20  Eric Blake  <ebb9@byu.net>
48727
48728         Sync GNUmakefile with coreutils.
48729         * build-aux/GNUmakefile (have-Makefile): Rename...
48730         (_have-Makefile): ...to this, for namespace consideration.
48731         (GNUmakefile.cfg): Include, if present.
48732         (_autoreconf): Define a default.
48733         (_is-dist-target): New rule for rebuilds to pick up intra-release
48734         version.
48735         (maint-cfg.mk): Rename...
48736         (cfg.mk): ...to this.
48737
48738 2008-03-18  Jim Meyering  <meyering@redhat.com>
48739
48740         New script and module: mktempd
48741         * MODULES.html.sh (maint+release support): Add mktempd.
48742         * build-aux/mktempd: New file.
48743         * modules/mktempd: New file.
48744
48745 2008-03-15  Jim Meyering  <meyering@redhat.com>
48746
48747         Undo last change.
48748         * lib/sha1.c, lib/md5.c: 63 != ~63.
48749         Reported by Andreas Schwab.
48750
48751         sha1.c, md5.c: Hoist a redundant expression.
48752         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48753         "ctx->buflen" only once, before calling *_process_block.
48754         * lib/md5.c (md5_process_bytes): Likewise.
48755
48756 2008-03-14  Eric Blake  <ebb9@byu.net>
48757
48758         Bump copyright year in files generated by gnulib-tool.
48759         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48760         gnulib-tool, rather than hard-coding it.
48761
48762         Fix 'gnulib-tool --version' output to work with git.
48763         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48764         (startup): ...here.
48765         (func_version): Use it to invoke git-version-gen, rather than
48766         relying on CVS keyword expansion.  Modernize wording.
48767         (cvsdatestamp, last_checkin_date, version): Kill unused
48768         variables.
48769
48770 2008-03-12  Jim Meyering  <meyering@redhat.com>
48771
48772         Recognize optional cast of the argument to free.
48773         * build-aux/useless-if-before-free: Update regexps.
48774
48775         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48776
48777 2008-03-11  Bruno Haible  <bruno@clisp.org>
48778
48779         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48780         by a single package.
48781         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48782         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48783         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48784         Reported by Sam Steingold <sds@gnu.org>.
48785
48786 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48787
48788         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48789         repositories.
48790
48791 2008-03-11  Bruno Haible  <bruno@clisp.org>
48792
48793         Avoid conflicts between local macro definitions.
48794         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48795         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48796
48797 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48798             Bruno Haible  <bruno@clisp.org>
48799
48800         Make va_copy work with some version of xlc on AIX 5.1.
48801         * lib/stdarg.in.h: New file.
48802         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48803         On AIX, use a <stdarg.h> file substitute.
48804         * modules/stdarg (Files): Add lib/stdarg.in.h.
48805         (Depends-on): Add include_next.
48806         (Makefile.am): Build a stdarg.h substitute if requested.
48807         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48808
48809 2008-03-10  Bruno Haible  <bruno@clisp.org>
48810
48811         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48813         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48814
48815 2008-03-10  Bruno Haible  <bruno@clisp.org>
48816
48817         * modules/stdlib (Depends-on): Add include_next, remove
48818         absolute-header.
48819
48820 2008-03-09  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/freadahead.h (freadahead): Document more precisely.
48823         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48824         the sum of both buffer sizes.
48825         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48826         * NEWS: Document the change.
48827
48828 2008-03-09  Bruno Haible  <bruno@clisp.org>
48829
48830         Extend freadptr to return also the buffer size.
48831         * lib/freadptr.h (freadptr): Add sizep argument.
48832         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48833         (freadptr): Add sizep argument. Determine buffer size like freadahead
48834         does.
48835         * tests/test-freadptr.c: Don't include freadahead.h.
48836         (main): Adapt for new calling convention of freadptr.
48837         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48838         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48839         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48840         tests/test-freadptr2.sh.
48841         (Depends): Remove freadahead.
48842         (TESTS): Add test-freadptr2.sh.
48843         (check_PROGRAMS): Add test-freadptr2.
48844
48845 2008-03-09  Bruno Haible  <bruno@clisp.org>
48846
48847         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48848         Report and solution by Simon Josefsson.
48849
48850 2008-03-06  Bruno Haible  <bruno@clisp.org>
48851
48852         Make fflush after ungetc work on BSD platforms.
48853         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48854         * tests/test-fflush2.c: New file.
48855         * tests/test-fflush2.sh: New file.
48856         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48857         tests/test-fflush2.c.
48858         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48859         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48860
48861 2008-03-06  Eric Blake  <ebb9@byu.net>
48862
48863         Likewise for ftello.
48864         * modules/ftello (Dependencies): Add extensions.
48865         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48866
48867 2008-03-06  Bruno Haible  <bruno@clisp.org>
48868
48869         * modules/fseeko (Dependencies): Add extensions.
48870         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48871         Needed on glibc systems.
48872
48873 2008-03-06  Bruno Haible  <bruno@clisp.org>
48874
48875         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48876         email address.
48877         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48878
48879 2008-03-06  Bruno Haible  <bruno@clisp.org>
48880
48881         * users.txt: Add libgnupdf.
48882
48883 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48884
48885         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48886         (Header File Substitutes, Function Substitutes,
48887         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48888         (Build robot for gnulib): Fix typo.
48889
48890 2008-03-06  Bruno Haible  <bruno@clisp.org>
48891
48892         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48893         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48894
48895 2008-03-06  Bruno Haible  <bruno@clisp.org>
48896
48897         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48898         * doc/gnulib.texi: Include it.
48899
48900 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48901
48902         * modules/func (License): Change license to unlimited; there was
48903         no LGPL parts in the module anyway.
48904
48905 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48906
48907         * modules/__func__: Renamed to modules/func.
48908         * modules/__func__-tests: Renamed to modules/func-tests.
48909         * tests/test-__func__.c: Renamed to tests/test-func.c.
48910         * m4/__func__.m4: Renamed to m4/func.m4.
48911         * doc/gnulib.texi (__func__): Section renamed to func.
48912         Suggested by Eric Blake <ebb9@byu.net>.
48913
48914 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48915
48916         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48917         about __func__.  Make example self-contained.  Suggested by Eric
48918         Blake <ebb9@byu.net>.
48919
48920         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48921         Suggested by Eric Blake <ebb9@byu.net>.
48922
48923 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48924
48925         * modules/__func__: New file.
48926         * modules/__func__-tests: New file.
48927         * tests/test-__func__.c: New file.
48928         * m4/__func__.m4: New file.
48929         * doc/gnulib.texi (__func__): Document __func__ module.
48930
48931 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48932
48933         * modules/byteswap (License): Re-license as LGPLv2+.
48934
48935 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48936
48937         * doc/Makefile: Add pdf target.
48938
48939 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48940
48941         * modules/inline (License): Use 'unlimited', since there are only
48942         *.m4 files in this module.
48943
48944 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48945             Bruno Haible  <bruno@clisp.org>
48946
48947         Add support for HP C 7.1 on OpenVMS 8.3.
48948         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48949
48950 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48951
48952         Update VMS specifics.
48953         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48954
48955 2008-03-02  Jim Meyering  <meyering@redhat.com>
48956
48957         Remove the last dependency on the "free" module.
48958         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48959         Reported by Bob Proulx.
48960
48961         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48962
48963         Remove useless "if" tests before free.  Deprecate "free" module.
48964         * doc/posix-functions/free.texi: Mention that this
48965         module is no longer useful.
48966         * modules/free (Notice): Say this module is obsolete.
48967         * modules/readutmp (Depends-on): Remove free.
48968         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48969         * lib/putenv.c (putenv): Likewise.
48970         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48971         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48972         * tests/test-c-strcasestr.c (main): Likewise.
48973         * tests/test-c-strstr.c (main): Likewise.
48974         * tests/test-mbscasestr1.c (main): Likewise.
48975         * tests/test-mbscasestr2.c (main): Likewise.
48976         * tests/test-mbsstr1.c (main): Likewise.
48977         * tests/test-mbsstr2.c (main): Likewise.
48978         * tests/test-memmem.c (main): Likewise.
48979         * tests/test-strcasestr.c (main): Likewise.
48980         * tests/test-striconv.c (main): Likewise.
48981         * tests/test-striconveh.c (main): Likewise.
48982         * tests/test-striconveha.c (main): Likewise.
48983         * tests/test-strstr.c (main): Likewise.
48984
48985         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48986
48987         bootstrap: sync from coreutils again
48988         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48989
48990 2008-03-01  Jim Meyering  <meyering@redhat.com>
48991
48992         bootstrap: sync from coreutils
48993         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48994         also when the target doesn't exist.
48995
48996 2008-03-01  Eric Blake  <ebb9@byu.net>
48997
48998         Fix bugs in last patch.
48999         * lib/memchr2.c (memchr2): Fix typo.
49000         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49001         extension.
49002         Reported by Bruce Korb.
49003
49004         New module 'memchr2'.
49005         * modules/memchr2: New file.
49006         * modules/memchr2-tests: Likewise.
49007         * lib/memchr2.h: Likewise.
49008         * lib/memchr2.c: Likewise, based on memchr.c.
49009         * tests/test-memchr2.c: New test.
49010         * MODULES.html.sh (String handling): Add memchr2.
49011
49012 2008-02-29  Bruno Haible  <bruno@clisp.org>
49013
49014         * modules/freadseek-tests: New file.
49015         * tests/test-freadseek.sh: New file.
49016         * tests/test-freadseek.c: New file.
49017
49018         New module 'freadseek'.
49019         * modules/freadseek: New file.
49020         * lib/freadseek.h: New file.
49021         * lib/freadseek.c: New file.
49022         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49023
49024 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49025
49026         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49027         wydawca.
49028
49029         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49030         program_invocation_name and program_invocation_short_name are
49031         present.
49032
49033 2008-02-28  Bruno Haible  <bruno@clisp.org>
49034
49035         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49036         * tests/test-freadptr.sh: Also test non-seekable stdin.
49037
49038 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49039
49040         * build-aux/bootstrap (source_base, m4_base)
49041         (doc_base, tests_base): New variables.
49042         (gnulib_tool_options): Do not hardcode base directories, use
49043         the above variables instead.
49044
49045 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49046
49047         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49048
49049 2008-02-28  Bruno Haible  <bruno@clisp.org>
49050
49051         * modules/freadptr-tests: New file.
49052         * tests/test-freadptr.sh: New file.
49053         * tests/test-freadptr.c: New file.
49054
49055         New module 'freadptr'.
49056         * modules/freadptr: New file.
49057         * lib/freadptr.h: New file.
49058         * lib/freadptr.c: New file.
49059         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49060
49061 2008-02-26  Karl Berry  <karl@freefriends.org>
49062
49063         Sync from Libtool:
49064         * libltdl/argz.c (argz_add, argz_count): New functions.
49065         * libltdl/argz.in.h: Declare them.
49066         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49067
49068 2008-02-22  Bruno Haible  <bruno@clisp.org>
49069
49070         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49071         is a pointer type.  Needed for HP-UX 10.
49072         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49073         * doc/posix-functions/gmtime_r.texi: Likewise.
49074         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49075
49076 2008-02-24  Bruno Haible  <bruno@clisp.org>
49077
49078         * modules/environ-tests: New file.
49079         * tests/test-environ.c: New file.
49080
49081         New module 'environ'.
49082         * modules/environ: New file.
49083         * lib/unistd.in.h (environ): New declaration.
49084         * m4/environ.m4: New file.
49085         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49086         after use.
49087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49088         HAVE_DECL_ENVIRON.
49089         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49090         HAVE_DECL_ENVIRON.
49091         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49092         wrong claim that 'environ' is missing on some systems.
49093         * modules/execute (Depends-on): Add environ.
49094         * lib/execute.c (environ): Remove fallback declaration.
49095         * modules/pipe (Depends-on): Add environ.
49096         * lib/pipe.c (environ): Remove fallback declaration.
49097         * modules/setenv (Depends-on): Add environ.
49098         * lib/setenv.c (environ): Remove fallback declaration.
49099         * modules/unsetenv (Depends-on): Add environ.
49100         * lib/unsetenv.c (environ): Remove fallback declaration.
49101         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49102         m4/environ.m4.
49103         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49104         (gl_PREREQ_UNSETENV): Likewise.
49105
49106 2008-02-24  Bruno Haible  <bruno@clisp.org>
49107
49108         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49109
49110 2008-02-20  Bob Proulx  <bob@proulx.com>
49111
49112         Enable use of older two part flavor 'git describe'.
49113         * build-aux/git-version-gen: If using the older two part flavor of
49114         git version then recreate the third part now present in the
49115         newer three part flavor of git describe.
49116
49117 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49118
49119         * lib/fts.c (fts_build): Typo correction to comment.
49120
49121 2008-02-17  Bruno Haible  <bruno@clisp.org>
49122
49123         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49124         generating no-op conflicts.
49125
49126 2008-02-17  Bruno Haible  <bruno@clisp.org>
49127
49128         Speed up by 10%.
49129         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49130         result_entries, rather than an index-based loop.
49131
49132 2008-02-17  Bruno Haible  <bruno@clisp.org>
49133
49134         Speed up by 25%.
49135         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49136         'hashcode_cached'.
49137         (entry_create): New function.
49138         (entry_hashcode): Use the cached hashcode if possible.
49139         (read_changelog_file, try_split_merged_entry): Use entry_create.
49140
49141 2008-02-17  Bruno Haible  <bruno@clisp.org>
49142
49143         Speed up from O(n^2) to O(n) for long ChangeLog files.
49144         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49145         (read_changelog_file): Change implementation of entries_reversed list
49146         to rbtreehash.
49147         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49148
49149 2008-02-17  Bruno Haible  <bruno@clisp.org>
49150
49151         New option --split-merged-entry.
49152         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49153         (find_paragraph_end, try_split_merged_entry): New functions.
49154         (long_options): Add option --split-merged-entry.
49155         (usage): Document option --split-merged-entry.
49156         (main): Implement option --split-merged-entry.
49157         Reported by Eric Blake.
49158
49159 2008-02-17  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/git-merge-changelog.c: Include c-strstr.h.
49162         (main): Support the "git pull --rebase" situation.
49163         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49164         Reported by Eric Blake.
49165
49166 2008-02-16  Eric Blake  <ebb9@byu.net>
49167
49168         Avoid doubling \ in common case of "c-maybe" quoting style.
49169         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49170         eliding outer quotes.
49171         * lib/quotearg.h: Document this.
49172         * tests/test-quotearg.c (result_strings, inputs, results_g)
49173         (flag_results, locale_results): Test it by adding a new string to
49174         each test group.
49175         (compare_strings): Test new string.
49176
49177 2008-02-13  Eric Blake  <ebb9@byu.net>
49178
49179         Avoid trigraph quoting in default output.
49180         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49181         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49182         unless explicitly requested.
49183         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49184
49185 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49186
49187         Don't rely on signed integer overflowing to negative value.
49188         * lib/getugroups.c (getugroups): Include <limits.h>.
49189         Instead, compare against INT_MAX, and increment only if the test passes.
49190
49191 2008-02-13  Jim Meyering  <meyering@redhat.com>
49192         and Eric Blake  <ebb9@byu.net>
49193
49194         Avoid shadowing warning and compile errors on Linux.
49195         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49196         forwarding macros on Linux.
49197         (dcgettext): Define a stub, for Linux.
49198         (results_g, main): Avoid warnings.
49199
49200 2008-02-12  Eric Blake  <ebb9@byu.net>
49201
49202         Silence warning in last patch.
49203         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49204
49205         Quotearg part 4: add tests, fix c-maybe colon quoting.
49206         * lib/quotearg.h: Improve documentation.
49207         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49208         escapes when adding outer quotes.  When quoting trigraphs, use
49209         valid C notation.  When quoting NUL, omit extra characters if next
49210         character is not digit.  Alter prototype.
49211         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49212         callers.
49213         * modules/quotearg-tests: New module.
49214         * tests/test-quotearg.c: New test.
49215
49216 2008-02-07  Eric Blake  <ebb9@byu.net>
49217
49218         Quotearg part 3: add flag to control outer quote elision.
49219         * lib/quotearg.h (c_maybe_quoting_style): New style.
49220         (enum quoting_flags): Better documentation of flags.
49221         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49222         c-maybe style.
49223         (quotearg_buffer_restyled): Handle new flag to elide outer
49224         quotes.
49225
49226         Quotearg part 2: add flag that can control NUL elision.
49227         * lib/quotearg.h (set_quoting_flags): New prototype.
49228         * lib/quotearg.c (struct quoting_options): Add flag field.
49229         (set_quoting_flags): New function.
49230         (quotearg_buffer_restyled): Add flags parameter.
49231         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49232         (quotearg_n_options): Set the flag, since length cannot be
49233         returned.
49234         (quoting_options_from_style): Default flags correctly.
49235
49236         Quotearg part 1: more wrappers, restore quotearg_char state.
49237         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49238         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49239         (quotearg_colon_mem): New wrappers.
49240         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49241         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49242         functions.
49243         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49244         (quotearg_colon_mem): New functions.
49245
49246 2008-02-11  Bruno Haible  <bruno@clisp.org>
49247
49248         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49249         library in the current directory: it does not work with parallel make.
49250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49251
49252 2008-02-11  Bruno Haible  <bruno@clisp.org>
49253
49254         * .gitattributes: New file.
49255
49256 2008-02-11  Jim Meyering  <meyering@redhat.com>
49257
49258         useless-if-before-free: Fix reversed exit values.
49259         * build-aux/useless-if-before-free: Use correct values
49260         for EXIT_MATCH and EXIT_NO_MATCH.
49261
49262         * build-aux/useless-if-before-free: Close stdout carefully.
49263
49264 2008-02-10  Bruno Haible  <bruno@clisp.org>
49265
49266         New module 'git-merge-changelog'.
49267         * modules/git-merge-changelog: New file.
49268         * lib/git-merge-changelog.c: New file.
49269
49270 2008-02-10  Jim Meyering  <meyering@redhat.com>
49271
49272         useless-if-before-free: New option: --list (-l).
49273
49274         useless-if-before-free: Don't exit immediately upon open failure.
49275         * build-aux/useless-if-before-free: Exit 2 for errors.
49276         Upon failure to open a file, don't exit immediately.
49277         Rather, just warn and continue with any remaining files.
49278
49279 2008-02-10  Bruno Haible  <bruno@clisp.org>
49280
49281         New abstract list operation 'node_set_value'.
49282         * lib/gl_list.h (gl_list_node_set_value): New function.
49283         (struct gl_list_implementation): New field node_set_value.
49284         * lib/gl_list.c (gl_list_node_set_value): New function.
49285         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49286         (gl_array_list_implementation): Update.
49287         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49288         (gl_carray_list_implementation): Update.
49289         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49290         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49291         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49292         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49293         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49294         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49295         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49296         Update.
49297         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49298         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49299         (gl_sublist_list_implementation): Update.
49300
49301 2008-02-10  Bruno Haible  <bruno@clisp.org>
49302
49303         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49304         Needed when ELEMENT is #defined to 'some_type *'.
49305
49306 2008-02-10  Jim Meyering  <meyering@redhat.com>
49307
49308         New script and module: useless-if-before-free
49309         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49310         * build-aux/useless-if-before-free: New file.
49311         * modules/useless-if-before-free: New file.
49312
49313         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49314
49315         xstrtol_error: Fix typo.
49316         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49317         s/exit_failure/exit_status/.
49318
49319 2008-02-09  Jim Meyering  <meyering@redhat.com>
49320
49321         New script and module: gitlog-to-changelog
49322         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49323         * modules/gitlog-to-changelog: New file.
49324         * build-aux/gitlog-to-changelog: New file.
49325
49326 2008-02-08  Jim Meyering  <meyering@redhat.com>
49327
49328         Avoid two "parameter unused" warnings.
49329         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49330         Mark "st" as used.
49331
49332         Use "git COMMAND", not "git-COMMAND".
49333         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49334         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49335         * build-aux/git-version-gen: Use "git status", not "git-status".
49336
49337 2008-02-07  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49340         Avoids a crash on Windows Vista.
49341         Reported by Adam Strzelecki <ono@java.pl> via
49342         Simon Josefsson <simon@josefsson.org>.
49343
49344 2008-02-06  Bruno Haible  <bruno@clisp.org>
49345
49346         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49347         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49348         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49350         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49351         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49352         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49353         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49354         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49355         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49356         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49360         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49361         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49362         left-adjust flag.
49363         * tests/test-snprintf-posix.h (test_function): Likewise.
49364         * tests/test-sprintf-posix.h (test_function): Likewise.
49365         * tests/test-vasprintf-posix.c (test_function): Likewise.
49366         * doc/posix-functions/fprintf.texi: Update.
49367         * doc/posix-functions/printf.texi: Update.
49368         * doc/posix-functions/snprintf.texi: Update.
49369         * doc/posix-functions/sprintf.texi: Update.
49370         * doc/posix-functions/vfprintf.texi: Update.
49371         * doc/posix-functions/vprintf.texi: Update.
49372         * doc/posix-functions/vsnprintf.texi: Update.
49373         * doc/posix-functions/vsprintf.texi: Update.
49374         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49375
49376 2008-02-06  Bruno Haible  <bruno@clisp.org>
49377
49378         Fix bug introduced on 2008-01-26.
49379         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49380
49381 2008-02-06  Bruno Haible  <bruno@clisp.org>
49382
49383         Fix bug introduced on 2007-06-10.
49384         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49385         !NEED_PRINTF_FLAG_ZERO.
49386
49387 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49388
49389         getloadavg: use libperfstat on AIX5
49390         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49391
49392 2008-02-03  Bruno Haible  <bruno@clisp.org>
49393
49394         * lib/diffseq.h: Add comments about required #includes.
49395         Reported by Michael Biggs <gnulib@doubleplum.net>.
49396
49397 2008-02-01  Bruno Haible  <bruno@clisp.org>
49398
49399         * users.txt: Add gnuit.
49400
49401 2008-01-31  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/md4.c (set_uint32): Mark as inline.
49404         * lib/md5.c (set_uint32): Likewise.
49405         * lib/sha1.c (set_uint32): Likewise.
49406         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49407         * m4/md5.m4 (gl_MD5): Likewise.
49408         * m4/sha1.m4 (gl_SHA1): Likewise.
49409
49410 2008-01-31  Jim Meyering  <meyering@redhat.com>
49411
49412         Use "sizeof VAR", rather than a literal "4".
49413         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49414         * lib/md4.c (md4_read_ctx): Likewise.
49415         * lib/sha1.c (sha1_read_ctx): Likewise.
49416
49417 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49418
49419         * tests/test-sha1.c: New file, based on test-md5.c.
49420
49421         * modules/crypto/sha1-tests: New file.
49422
49423 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49424
49425         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49426
49427 2008-01-31  Jim Meyering  <meyering@redhat.com>
49428
49429         Prefer "sizeof v" over the equivalent "4".
49430         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49431         * lib/md5.c (set_uint32): Likewise.
49432         * lib/sha1.c (set_uint32): Likewise.
49433
49434 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49435
49436         * lib/sha1.c (set_uint32): Mark function as static.
49437
49438 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49439
49440         md2: clarify comments to say that alignment is not required.
49441         * lib/md2.h: Remove warning about alignment in comment.
49442         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49443         never been required.
49444
49445 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49446
49447         md4: adapt alignment constraint fix from sha1.
49448         * lib/md4.c (set_uint32): New function, from sha1.c
49449         (md4_read_ctx): Use it.
49450         (md4_finish_ctx): Doc fix.
49451         * lib/md4.h: Doc fix.
49452
49453 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49454
49455         md5: adapt alignment constraint fix from sha1.
49456         * lib/md5.c (set_uint32): New function, from sha1.c
49457         (md5_read_ctx): Use it.
49458         (md5_finish_ctx): Doc fix.
49459         * lib/md5.h: Doc fix.
49460
49461 2008-01-30  Peter Palfrader  <weasel@debian.org>
49462
49463         sha1: remove the result buffer alignment constraint
49464         * lib/sha1.c (set_uint32): New function.
49465         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49466         constraint.
49467         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49468         * lib/sha1.h: Likewise.
49469
49470 2008-01-30  Andreas Schwab  <schwab@suse.de>
49471             Bruno Haible  <bruno@clisp.org>
49472
49473         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49474         correct definition of LDBL_MIN_EXP.
49475
49476 2008-01-30  Karl Berry  <karl@gnu.org>
49477
49478         * config/srclist-update: try to preserve x bit on updates.
49479         * config/srclistvars.sh: update for karl.
49480
49481 2008-01-29  Jim Meyering  <meyering@redhat.com>
49482
49483         vasnprintf.c: Avoid warning about unused label
49484         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49485         "overflow" label definition and associated code with the
49486         same cpp condition that guards the sole use of that label.
49487
49488 2008-01-26  Bruno Haible  <bruno@clisp.org>
49489
49490         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49491         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49492         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49493         * lib/isnanl-nolibm.h (isnanl): Likewise.
49494         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49495
49496 2008-01-26  Bruno Haible  <bruno@clisp.org>
49497
49498         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49499         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49500
49501 2008-01-26  Bruno Haible  <bruno@clisp.org>
49502
49503         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49504         GCC >= 4.0 built-in.
49505         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49506
49507 2008-01-26  Bruno Haible  <bruno@clisp.org>
49508
49509         Rename isnan, applicable to 'double' only, to isnand.
49510         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49511         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49512         (configure.ac): Update.
49513         (Include): Replace "isnan.h" with "isnand.h".
49514         * m4/isnand.m4: Renamed from m4/isnan.m4.
49515         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49516         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49517         instead of isnan.c.
49518         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49519         instead of HAVE_ISNAN_IN_LIBC.
49520         (isnand): Renamed from isnan.
49521         * lib/isnand.c: New file.
49522         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49523         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49524         (Makefile.am): Update.
49525         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49526         Include isnand.h instead of isnan.h.
49527         (main): Test isnand instead of isnan.
49528         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49529         isnan-nolibm.
49530         * modules/frexp (Depends-on): Likewise.
49531         * modules/frexp-tests (Depends-on): Likewise.
49532         * modules/frexp-nolibm (Depends-on): Likewise.
49533         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49534         * modules/isfinite (Depends-on): Likewise.
49535         * modules/round-tests (Depends-on): Likewise.
49536         * modules/signbit (Depends-on): Likewise.
49537         * modules/signbit-tests (Depends-on): Likewise.
49538         * modules/snprintf-posix (Depends-on): Likewise.
49539         * modules/sprintf-posix (Depends-on): Likewise.
49540         * modules/trunc-tests (Depends-on): Likewise.
49541         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49542         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49543         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49544         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49545         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49546         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49547         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49548         * modules/vasnprintf-posix (Depends-on): Likewise.
49549         * modules/vasprintf-posix (Depends-on): Likewise.
49550         * modules/vfprintf-posix (Depends-on): Likewise.
49551         * modules/vsnprintf-posix (Depends-on): Likewise.
49552         * modules/vsprintf-posix (Depends-on): Likewise.
49553         * lib/frexp.c: Include isnand.h instead of isnan.h.
49554         (ISNAN): Set to isnand instead of isnan.
49555         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49556         (gl_isfinited): Use isnand instead of isnan.
49557         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49558         (gl_signbitd): Use isnand instead of isnan.
49559         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49560         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49561         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49562         (main): Use isnand instead of isnan.
49563         * tests/test-round1.c: Include isnand.h.
49564         (main): Use isnand instead of isnan.
49565         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49566         (ISNAN): Set to isnand instead of isnan.
49567         * tests/test-trunc1.c: Include isnand.h.
49568         (main): Use isnand instead of isnan.
49569         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49570         (equal): Use isnand instead of isnan.
49571         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49572         isnand-nolibm.
49573         * NEWS: Mention the change.
49574
49575 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49576             Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49579         the GCC builtins for signbits are present and set
49580         REPLACE_SIGNBIT_USING_GCC if so.
49581         * lib/math.in.h (signbit): Define using GCC builtins if
49582         REPLACE_SIGNBIT_USING_GCC is set.
49583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49584         REPLACE_SIGNBIT_USING_GCC.
49585         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49586
49587 2008-01-25  Jim Meyering  <meyering@redhat.com>
49588
49589         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49590         * lib/poll.c: Include <config.h>, not "config.h".
49591         * tests/test-getaddrinfo.c: Likewise.
49592
49593 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49594
49595         * modules/sockets-tests: New file.
49596
49597 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49598
49599         * modules/sockets: New module, can be used to call WSA_Startup and
49600         WSA_Cleanup when needed.
49601
49602         * lib/sockets.h, lib/sockets.c: New files.
49603
49604         * m4/sockets.m4: New file.
49605
49606         * tests/test-sockets.c: New file.
49607
49608 2008-01-19  Bruno Haible  <bruno@clisp.org>
49609
49610         * doc/posix-headers: Renamed from doc/headers.
49611         * doc/posix-functions: Renamed from doc/functions.
49612         * doc/gnulib.texi: Update.
49613
49614 2008-01-19  Bruno Haible  <bruno@clisp.org>
49615
49616         * doc/glibc-functions/strcasestr.texi: Include contents of
49617         doc/functions/strcasestr.texi, fixing the list of platforms.
49618         * doc/functions/strcasestr.texi: Remove file.
49619
49620 2008-01-19  Bruno Haible  <bruno@clisp.org>
49621
49622         * doc/glibc-functions/memmem.texi: Include contents of
49623         doc/functions/memmem.texi.
49624         * doc/functions/memmem.texi: Remove file.
49625
49626 2008-01-18  Bruno Haible  <bruno@clisp.org>
49627
49628         * doc/glibc-functions/*.texi: New files.
49629         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49630         to use the new files.
49631
49632 2008-01-17  Bruno Haible  <bruno@clisp.org>
49633
49634         * tests/test-gethostname.c (main): Fix printf statement.
49635
49636 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49637
49638         * modules/gethostname-tests: New file.
49639
49640         * tests/test-gethostname.c: New file.
49641
49642 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49643
49644         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49645         used by the UNAME case.  Reported by Bruno Haible
49646         <bruno@clisp.org>.
49647
49648 2008-01-17  Eric Blake  <ebb9@byu.net>
49649
49650         Convert c-strcasestr to be more efficient.
49651         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49652         (Depends-on): Add c-strcase, remove malloca, strnlen.
49653         * tests/test-c-strcasestr.c (main): Enhance test.
49654         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49655
49656 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49657
49658         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49659         Use it in creating po/Makevars.
49660
49661 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49662
49663         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49664         Applications that requires it should initialize libgcrypt
49665         manually.
49666
49667 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49668
49669         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49670
49671 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49672
49673         Fix problem with getdate on mingw32 reported by Simon Josefsson
49674         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49675         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49676         tzname", when deciding whether to declare tzname.
49677         * lib/strftime.c (tzname): Likewise.
49678
49679 2008-01-15  Bruno Haible  <bruno@clisp.org>
49680
49681         Work around a MacOS X 10.5 bug in frexpl().
49682         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49683         * doc/functions/frexpl.texi: Document the bug.
49684         Reported by Elias Pipping <pipping@gentoo.org>.
49685
49686 2008-01-14  Eric Blake  <ebb9@byu.net>
49687
49688         Touch up previous patch.
49689         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49690         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49691
49692         Convert strcasestr module to use Two-Way algorithm.
49693         * modules/strcasestr-simple: New module, based on the old
49694         strcasestr, but with Two-Way rather than KMP.
49695         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49696         * lib/string.in.h (rpl_strcasestr): Declare.
49697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49698         performance.
49699         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49700         * modules/string (Makefile.am): Support strcasestr.
49701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49702         * modules/strcasestr-tests (Depends-on): Check for alarm.
49703         * tests/test-strcasestr.c: Augment test.
49704         * lib/str-two-way.h: Clean up stray macro.
49705         * NEWS: Document new module.
49706         * MODULES.html.sh (string handling): Likewise.
49707         * doc/functions/strcasestr.texi: New file.
49708         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49709         here, since it is not a POSIX function.
49710
49711 2008-01-14  Colin Watson  <cjwatson@debian.org>
49712             Bruno Haible  <bruno@clisp.org>
49713
49714         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49715         works fine; if not, set REPLACE_STRSIGNAL.
49716         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49718         REPLACE_STRSIGNAL.
49719         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49720         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49721         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49722
49723 2008-01-14  Bruno Haible  <bruno@clisp.org>
49724
49725         * modules/strsignal (Include): Change to <string.h>.
49726
49727 2008-01-14  Colin Watson  <cjwatson@debian.org>
49728
49729         * modules/argp (Notice): Add a notice recommending to change
49730         XGETTEXT_OPTIONS.
49731         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49732
49733 2008-01-13  Colin Watson  <cjwatson@debian.org>
49734
49735         * modules/strsignal-tests: New file.
49736         * tests/test-strsignal.c: New file.
49737
49738         * lib/strsignal.c: New file, from glibc with modifications.
49739         * lib/siglist.h: New file, from glibc with modifications.
49740         * lib/string.in.h (strsignal): New declaration.
49741         * m4/strsignal.m4: New file.
49742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49743         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49744         * modules/strsignal: New file.
49745         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49746         HAVE_DECL_STRSIGNAL.
49747
49748 2008-01-13  Bruno Haible  <bruno@clisp.org>
49749
49750         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49751         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49752         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49753         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49754
49755 2008-01-13  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49758         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49759         * lib/argp.h (__attribute__): Likewise.
49760         * lib/c-stack.c (__attribute__): Likewise.
49761         * lib/error.h (__attribute__): Likewise.
49762         * lib/fts.c (__attribute__): Likewise.
49763         * lib/openat.h (__attribute__): Likewise.
49764         * lib/stdio.in.h (__attribute__): Likewise.
49765         * lib/string.in.h (__attribute__): Likewise.
49766         * lib/utimens.c (__attribute__): Likewise.
49767         * lib/vasnprintf.h (__attribute__): Likewise.
49768         * lib/xalloc.h (__attribute__): Likewise.
49769         * lib/xprintf.h (__attribute__): Likewise.
49770         * lib/xstrtol.h (__attribute__): Likewise.
49771         * lib/xvasprintf.h (__attribute__): Likewise.
49772
49773 2008-01-12  Bruno Haible  <bruno@clisp.org>
49774
49775         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49776         * doc/glibc-headers/a.out.texi: New file.
49777         * doc/glibc-headers/aliases.texi: New file.
49778         * doc/glibc-headers/alloca.texi: New file.
49779         * doc/glibc-headers/ar.texi: New file.
49780         * doc/glibc-headers/argp.texi: New file.
49781         * doc/glibc-headers/argz.texi: New file.
49782         * doc/glibc-headers/byteswap.texi: New file.
49783         * doc/glibc-headers/crypt.texi: New file.
49784         * doc/glibc-headers/endian.texi: New file.
49785         * doc/glibc-headers/envz.texi: New file.
49786         * doc/glibc-headers/err.texi: New file.
49787         * doc/glibc-headers/error.texi: New file.
49788         * doc/glibc-headers/execinfo.texi: New file.
49789         * doc/glibc-headers/fpu_control.texi: New file.
49790         * doc/glibc-headers/fstab.texi: New file.
49791         * doc/glibc-headers/fts.texi: New file.
49792         * doc/glibc-headers/getopt.texi: New file.
49793         * doc/glibc-headers/ieee754.texi: New file.
49794         * doc/glibc-headers/ifaddrs.texi: New file.
49795         * doc/glibc-headers/libintl.texi: New file.
49796         * doc/glibc-headers/mcheck.texi: New file.
49797         * doc/glibc-headers/mntent.texi: New file.
49798         * doc/glibc-headers/obstack.texi: New file.
49799         * doc/glibc-headers/paths.texi: New file.
49800         * doc/glibc-headers/printf.texi: New file.
49801         * doc/glibc-headers/pty.texi: New file.
49802         * doc/glibc-headers/resolv.texi: New file.
49803         * doc/glibc-headers/shadow.texi: New file.
49804         * doc/glibc-headers/sysexits.texi: New file.
49805         * doc/glibc-headers/ttyent.texi: New file.
49806
49807 2008-01-12  Jim Meyering  <meyering@redhat.com>
49808
49809         announce-gen: emit Gnulib's git-based version string.
49810         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49811         New option --gnulib-version=V, where V is expected to be
49812         the output of running git describe in the gnulib directory.
49813         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49814         not useful, and plan to stop publishing an xdelta file with each
49815         coreutils release.
49816
49817         * build-aux/announce-gen: Also check for lzma-compressed files.
49818
49819 2008-01-11  Bruno Haible  <bruno@clisp.org>
49820
49821         * tests/test-memmem.c (main): Increase maximum allowed time.
49822         * tests/test-strstr.c (main): Likewise.
49823
49824 2008-01-11  Bruno Haible  <bruno@clisp.org>
49825
49826         * doc/functions/memmem.texi: Add more precisions about platforms.
49827         * doc/functions/strstr.texi: Likewise.
49828
49829 2008-01-10  Eric Blake  <ebb9@byu.net>
49830
49831         * m4/strstr.m4: Delete cruft from copy-n-paste.
49832         Reported by Bruno Haible.
49833
49834 2008-01-10  Bruno Haible  <bruno@clisp.org>
49835
49836         Make c-strstr rely on strstr.
49837         * lib/c-strstr.c: Don't include str-kmp.h.
49838         (c_strstr): Define in terms of strstr.
49839         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49840         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49841
49842 2008-01-10  Bruno Haible  <bruno@clisp.org>
49843
49844         * doc/gnulib.texi (String Functions in C Locale): New section.
49845         * doc/c-ctype.texi: New file.
49846         * doc/c-strcase.texi: New file.
49847         * doc/c-strcaseeq.texi: New file.
49848         * doc/c-strcasestr.texi: New file.
49849         * doc/c-strstr.texi: New file.
49850         * doc/c-strtod.texi: New file.
49851         * doc/c-strtold.texi: New file.
49852
49853 2008-01-10  Eric Blake  <ebb9@byu.net>
49854
49855         * lib/relocatable.h: Fix a comment.
49856
49857 2008-01-10  Eric Blake  <ebb9@byu.net>
49858
49859         Share two-way algorithm.
49860         * lib/str-two-way.h: New file, merged from...
49861         * lib/memmem.c: ...here...
49862         * lib/strstr.c: ...and here.
49863         * modules/memmem (Files): Use it.
49864         * modules/strstr (Files): Likewise.
49865
49866         Avoid quadratic strstr implementations.
49867         * lib/strstr.c: New file.
49868         * m4/strstr.m4: Likewise.
49869         * modules/strstr: Likewise.
49870         * modules/strstr-tests: Likewise.
49871         * tests/test-strstr.c: Likewise.
49872         * lib/string.in.h (rpl_strstr): Declare.
49873         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49875         * modules/string (Makefile.am): Likewise.
49876         * MODULES.html.sh (string handling): Mention new module.
49877         * doc/functions/strstr.texi (strstr): Document the bug.
49878
49879 2008-01-10  Bruno Haible  <bruno@clisp.org>
49880
49881         * lib/relocatable.h (relocate): State whether result is freshly
49882         allocated or not.
49883         * lib/relocatable.c (relocate): Return a freshly allocated string
49884         instead of a pointer to a privately held string.
49885         Reported by Sylvain Beucler <beuc@gnu.org>.
49886
49887 2008-01-10  Colin Watson  <cjwatson@debian.org>
49888
49889         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49890         s/S_ISNLK/S_ISLNK/.
49891
49892 2008-01-09  Bruno Haible  <bruno@clisp.org>
49893
49894         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49895         and other files.
49896         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49897         if it's only a guess.
49898         * modules/memmem: Simplify by depending on memmem-simple.
49899
49900 2008-01-09  Bruno Haible  <bruno@clisp.org>
49901
49902         Work around OpenBSD 4.0 tdelete() bug.
49903         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49904         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49905         macros and don't redefine the enum values.
49906         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49907         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49908         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49909
49910 2008-01-09  Bruno Haible  <bruno@clisp.org>
49911
49912         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49913         (main): Don't perform the tests if setlocale did not install a UTF-8
49914         locale. Needed on OpenBSD 4.0.
49915         * modules/wcwidth-tests (Depends-on): Add localcharset.
49916
49917 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49918
49919         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49920         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49921         * NEWS: announce this.
49922         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49923
49924 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49925         and Eric Blake  <ebb9@byu.net>
49926
49927         Add memmem-simple module.
49928         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49929         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49930         * modules/memmem-simple: New file.
49931         * modules/memmem (Description): Tweak.
49932         * MODULES.html.sh (string handling): Mention new module.
49933         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49934         addressed by memmem-simple.
49935         * NEWS: Document the difference.
49936
49937 2008-01-09  Eric Blake  <ebb9@byu.net>
49938
49939         Give gcc some memmem optimization hints.
49940         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49941         (strcasestr): Declare as pure.
49942         * modules/memmem (Maintainer): Claim my implementation.
49943
49944 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49945
49946         Support AIX 6.1 and higher.
49947         * build-aux/config.libpath: Likewise.
49948         * build-aux/config.rpath: Likewise.
49949
49950 2008-01-08  Jim Meyering  <meyering@redhat.com>
49951             Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49954         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49955         Reported by Peter Fales in
49956         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49957
49958 2008-01-08  Bruno Haible  <bruno@clisp.org>
49959
49960         * modules/unictype/category-of (Depends-on): Add
49961         unictype/category-none.
49962         * modules/unictype/category-and-tests (Depends-on): Add
49963         unictype/category-{L,N,Lu,Nd}.
49964         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49965         * modules/unictype/category-or-tests (Depends-on): Add
49966         unictype/category-{L,N}.
49967         * modules/unictype/category-name-tests (Depends-on): Add
49968         unictype/category-{Z,Nl}.
49969         Reported by Simon Josefsson.
49970
49971 2008-01-08  Bruno Haible  <bruno@clisp.org>
49972
49973         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49974         convention better.
49975         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49976         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49977         Reported by Peter Miller <millerp@canb.auug.org.au>.
49978
49979 2008-01-08  Eric Blake  <ebb9@byu.net>
49980
49981         Rewrite memmem to guarantee linear complexity without malloc.
49982         * lib/memmem.c (memmem): Use Two-Way rather than
49983         Knuth-Morris-Pratt, to allow O(1) space usage.
49984         (critical_factorization, two_way_short_needle)
49985         (two_way_long_needle): New functions.
49986         (knuth_morris_pratt): Delete.
49987         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49988         Add stdint.
49989         * tests/test-memmem.c (main): Add tests for periodic needle and
49990         sublinear performance.
49991         * doc/functions/memmem.texi (memmem): Document other deficiencies
49992         in cygwin and older glibc.
49993
49994 2008-01-08  Bruno Haible  <bruno@clisp.org>
49995
49996         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49997         augmentation.
49998
49999 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50000
50001         Add a configure time option: --disable-acl.
50002         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50003         AC_ARG_ENABLE(acl).
50004
50005 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50006
50007         * tests/test-localename.c: Don't include obsolete "setenv.h".
50008
50009         * modules/localename-tests (Depends-on): Need unsetenv.
50010
50011 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50012
50013         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50014
50015 2008-01-06  Colin Watson  <cjwatson@debian.org>
50016
50017         * users.txt: Add man-db.
50018
50019 2008-01-07  Bruno Haible  <bruno@clisp.org>
50020
50021         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50022         previous section name.
50023
50024 2008-01-07  Bruno Haible  <bruno@clisp.org>
50025
50026         * lib/progname.c (set_program_name): Don't strip off a leading
50027         "lt-" prefix outside a .libs directory.
50028         Suggested by Paul Eggert.
50029
50030 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50031             Bruno Haible  <bruno@clisp.org>
50032
50033         Improve memory cleanup in 'relocatable' module.
50034         * lib/relocatable.h (compute_curr_prefix): Change return type to
50035         'char *'.
50036         * lib/relocatable.c (compute_curr_prefix): Change return type to
50037         'char *'. Free curr_installdir after use.
50038         (relocate): Free curr_prefix_better after use.
50039         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50040
50041 2008-01-01  Bruno Haible  <bruno@clisp.org>
50042
50043         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50044         failure on older glibc systems.
50045         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50046
50047 2008-01-05  Eric Blake  <ebb9@byu.net>
50048
50049         Avoid quadratic system memmem.
50050         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50051         Reported by Ralf Wildenhues.
50052
50053         Fix memmem test for mingw.
50054         * modules/memmem-tests (configure.ac): Check for alarm.
50055         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50056         it.
50057         * doc/functions/memmem.texi: New file.
50058         * doc/gnulib.texi (Function Substitutes): Add memmem.
50059         Reported by Bruno Haible.
50060
50061 2008-01-04  Bruno Haible  <bruno@clisp.org>
50062
50063         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50064         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50065         gl_HEADER_STRING_H_DEFAULTS.
50066
50067 2008-01-04  Eric Blake  <ebb9@byu.net>
50068
50069         Shorten duration of memmem test.
50070         * tests/test-memmem.c (main): Use alarm to declare failure if test
50071         is taking too long.
50072         Reported by Ralf Wildenhues.
50073
50074 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50075
50076         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50077         string, needed by strerror.
50078
50079 2008-01-03  Colin Watson  <cjwatson@debian.org>
50080             Bruno Haible  <bruno@clisp.org>
50081
50082         * doc/gnulib-tool.texi (Localization): New section.
50083
50084 2008-01-02  Bruno Haible  <bruno@clisp.org>
50085
50086         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50087         variables to 'unsigned char *' type.
50088         Reported by Paul Eggert.
50089
50090 2008-01-02  Jim Meyering  <jim@meyering.net>
50091
50092         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50093
50094 2007-12-31  Jim Meyering  <jim@meyering.net>
50095
50096         Avoid use of private FTS type name.
50097         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50098
50099 2007-12-30  Karl Berry  <karl@gnu.org>
50100
50101         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50102         work around defect in Texinfo and/or the standalone Info browser.
50103
50104 2007-12-30  Bruno Haible  <bruno@clisp.org>
50105
50106         Unify 5 copies of the KMP code.
50107         * lib/str-kmp.h: New file.
50108         * lib/c-strcasestr.c: Include str-kmp.h.
50109         (knuth_morris_pratt): Remove function.
50110         (c_strcasestr): Update.
50111         * lib/c-strstr.c: Include str-kmp.h.
50112         (knuth_morris_pratt): Remove function.
50113         (c_strcasestr): Update.
50114         * lib/mbscasestr.c: Include str-kmp.h.
50115         (knuth_morris_pratt_unibyte): Remove function.
50116         * lib/mbsstr.c: Include str-kmp.h.
50117         (knuth_morris_pratt_unibyte): Remove function.
50118         * lib/strcasestr.c: Include str-kmp.h.
50119         (knuth_morris_pratt): Remove function.
50120         (strcasestr): Update.
50121         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50122         * modules/c-strstr (Files): Likewise.
50123         * modules/mbscasestr (Files): Likewise.
50124         * modules/mbsstr (Files): Likewise.
50125         * modules/strcasestr (Files): Likewise.
50126         Suggested by Paul Eggert.
50127
50128 2007-12-30  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50131         defined.
50132
50133 2007-12-30  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/xmalloca.h: Include xalloc.h.
50136         (xnmalloca): New macro.
50137
50138 2007-12-30  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/malloca.h (nmalloca): New macro.
50141         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50142         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50143         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50144         knuth_morris_pratt_multibyte): Likewise.
50145         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50146         knuth_morris_pratt_multibyte): Likewise.
50147         * lib/memmem.c (knuth_morris_pratt): Likewise.
50148         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50149
50150 2007-12-25  Bruno Haible  <bruno@clisp.org>
50151
50152         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50153         * lib/glob.c: Don't include openat.h.
50154         (link_exists2_p): Add back the code that deals with the
50155         !GLOB_ALTDIRFUNC case.
50156         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50157         let it do the filename concatenation.
50158         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50159         * modules/glob (Depends-on): Remove openat.
50160
50161 2007-12-31  Bruno Haible  <bruno@clisp.org>
50162
50163         * modules/dirfd (License): Change to LGPLv2+.
50164         Approved by Jim Meyering.
50165
50166 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50167
50168         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50169         when multiplying M by sizeof (size_t).
50170
50171 2007-12-10  Martin Lambers  <marlam@marlam.de>
50172
50173         Override getpagesize on mingw.
50174         * lib/getpagesize.c: New file.
50175         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50176         * modules/getpagesize (Files): Add lib/getpagesize.c.
50177         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50179         REPLACE_GETPAGESIZE.
50180         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50181
50182 2007-12-25  Bruno Haible  <bruno@clisp.org>
50183
50184         * modules/localcharset (Notice): New field.
50185         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50186         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50187
50188 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50189             Bruno Haible  <bruno@clisp.org>
50190
50191         Avoid using the syntax symbol() in formatted documentation.
50192         * MODULES.html.sh (func_module): When replacing symbol() with a
50193         hyperlink, remove the parentheses. Show an error if some remain.
50194         Recognize and render the '...' syntax.
50195         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50196         Rework. Add paragraph about GCC's inlining.
50197         * doc/alloca.texi: Likewise.
50198         * doc/error.texi: Remove parentheses from symbol reference.
50199         * doc/gnulib-intro.texi: Likewise.
50200         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50201         * modules/fnmatch (Description): Reword to say "the ... function".
50202         * modules/full-read (Description): Likewise.
50203         * modules/full-write (Description): Likewise.
50204         * modules/safe-read (Description): Likewise.
50205         * modules/safe-write (Description): Likewise.
50206         * modules/strchrnul (Description): Likewise.
50207         * modules/trim (Description): Likewise.
50208         * modules/error (Description): Remove parentheses from symbol
50209         references.
50210         * modules/verror (Description): Likewise.
50211         Reported by Karl Berry.
50212
50213 2007-12-25  Bruno Haible  <bruno@clisp.org>
50214
50215         Fixup after 2007-10-16 commit.
50216         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50217
50218 2007-12-24  Bruno Haible  <bruno@clisp.org>
50219
50220         Make --enable-relocatable work with DESTDIR.
50221         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50222         to compute installdir from destprog.
50223         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50224         also set the RELOC_DESTDIR variable.
50225         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50226
50227 2007-12-24  Bruno Haible  <bruno@clisp.org>
50228
50229         Fix link error due to xalloc_die().
50230         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50231         of xreadlink.
50232         * lib/relocwrapper.c: Update comments.
50233         * build-aux/install-reloc: Remove xreadlink.c from file list.
50234         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50235         xreadlink.c.
50236         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50237
50238 2007-12-24  Bruno Haible  <bruno@clisp.org>
50239
50240         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50241         * lib/setenv.h: Remove file.
50242         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50243         lib/setenv.h.
50244         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50245         (Depends-on): Add stdlib.
50246         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50247         gl_FUNC_UNSETENV.
50248         (Include): Replace setenv.h with <stdlib.h>.
50249         * modules/unsetenv: New file.
50250         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50251         * lib/unsetenv.c: Include <stdlib.h> first.
50252         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50253         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50254         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50255         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50256         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50257         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50259         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50260         * doc/functions/unsetenv.texi: Update.
50261         * modules/xsetenv (Depends-on): Add unsetenv.
50262         * modules/getdate (Depends-on): Likewise.
50263         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50264         * lib/xsetenv.c: Don't include setenv.h.
50265         * lib/getdate.y: Likewise.
50266         * lib/relocwrapper.c: Likewise.
50267         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50268         (Depends-on): Add stdlib.
50269         * NEWS: Mention the changes.
50270         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50271
50272 2007-12-23  Bruno Haible  <bruno@clisp.org>
50273
50274         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50275         indentation.
50276
50277 2007-12-23  Bruno Haible  <bruno@clisp.org>
50278
50279         * lib/c-strcasestr.c: Add more comments.
50280         * lib/c-strstr.c: Likewise.
50281         * lib/mbscasestr.c: Likewise.
50282         * lib/mbsstr.c: Likewise.
50283         * lib/strcasestr.c: Likewise.
50284         * lib/memmem.c: Likewise.
50285
50286 2007-12-23  Bruno Haible  <bruno@clisp.org>
50287
50288         * tests/test-memmem.c: Include <string.h> first.
50289
50290 2007-12-22  Bruno Haible  <bruno@clisp.org>
50291
50292         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50293         the contents of $testsbase.
50294         Reported by Ralf Wildenhues.
50295
50296 2007-12-22  Bruno Haible  <bruno@clisp.org>
50297
50298         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50299         two variables local_ldadd_before, local_ldadd_last.
50300
50301 2007-12-20  Eric Blake  <ebb9@byu.net>
50302
50303         Work around circular library issue when cross-compiling.
50304         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50305         that progname.o does not need to pull in rpl_memcmp.
50306
50307 2007-12-19  Eric Blake  <ebb9@byu.net>
50308
50309         Fix memmem to avoid O(n^2) worst-case complexity.
50310         * lib/memmem.c (knuth_morris_pratt): New function.
50311         (memmem): Use it if first few naive iterations fail.
50312         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50313         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50314         * modules/memchr (License): Likewise.
50315         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50316         malloca.
50317         * tests/test-memmem.c: Rewrite, borrowing ideas from
50318         test-mbsstr1.c; the old version wouldn't even compile!
50319         * modules/memmem-tests: New file.
50320         * lib/string.in.h (rpl_memmem): Add declaration.
50321         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50323         REPLACE_MEMMEM.
50324
50325 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50326
50327         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50328         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50329         before any system include files, and undef after them all.  This
50330         should fix a problem on VMS reported by John E. Malmberg in
50331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50332
50333 2007-12-17  Eric Blake  <ebb9@byu.net>
50334
50335         Revert addition of verify, for BSD/OS.
50336         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50337         can't handle large files, for the sake of obsolete platforms.
50338         * modules/fseeko (Depends-on): Remove verify.
50339         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50340         * doc/functions/ftello.texi (ftello): Likewise.
50341         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50342         Reported by Larry Jones.
50343
50344 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50345
50346         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50347         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50348
50349 2007-12-17  Jim Meyering  <meyering@redhat.com>
50350
50351         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50352         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50353         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50354         * modules/getcwd (Depends-on): Add openat.
50355         Reported by Petr Salinger.
50356
50357 2007-12-17  Bruno Haible  <bruno@clisp.org>
50358
50359         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50360         avoid a segmentation fault of the configure test on x86_64 systems.
50361
50362 2007-12-15  Jim Meyering  <meyering@redhat.com>
50363
50364         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50365
50366 2007-12-13  Eric Blake  <ebb9@byu.net>
50367
50368         Another fseek test.
50369         * tests/test-fseek.c (main): Also test ungetc handling.
50370         * tests/test-fseeko.c (main): Likewise.
50371         * modules/fseeko (Depends-on): Add verify.
50372         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50373         large.
50374         Reported by Larry Jones.
50375
50376         Fix fseeko on mingw.
50377         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50378         seek.
50379
50380         Beef up fseek tests.
50381         * tests/test-fseek.c (main): Also test eof handling.
50382         * tests/test-fseeko.c (main): Likewise.
50383         Reported by Larry Jones.
50384
50385 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50386
50387         Fix fseeko on BSD-based platforms.
50388         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50389         successful seek.
50390
50391 2007-12-12  Eric Blake  <ebb9@byu.net>
50392
50393         Allow circular dependency of separate libtests.a
50394         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50395         when use_libtests.
50396
50397 2007-12-11  Eric Blake  <ebb9@byu.net>
50398
50399         Fix bug with -0.0L in previous patch.
50400         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50401         * tests/test-isnan.c (main): Also test on zeroes.
50402         * tests/test-isnanf.c (main): Likewise.
50403         * tests/test-isnanl.h (main): Likewise.
50404
50405         Detect pseudo-denormals on x86 even when cross-compiling.
50406         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50407         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50408         invalid bit patterns that happen to satisfy ==.
50409
50410         Avoid link failures with separate libtests.a.
50411         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50412         last, to satisfy circular dependencies.
50413
50414 2007-12-11  Eric Blake  <ebb9@byu.net>
50415         and Bruno Haible  <bruno@clisp.org>
50416
50417         Fix OpenBSD 4.0 <float.h> handling of long double.
50418         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50419         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50420         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50421
50422 2007-12-11  Jim Meyering  <meyering@redhat.com>
50423
50424         * users.txt: Add libvirt.
50425
50426         Support versions of autoconf prior to 2.59c.
50427         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50428         if it is not already defined.
50429
50430 2007-12-09  Bruno Haible  <bruno@clisp.org>
50431
50432         Let 'gnulib-tool --import' collect sources needed for the tests in
50433         tests/ rather than in lib/.
50434         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50435         argument. If true, add rules to generate libtests.a, and put libtests.a
50436         into $(LDADD). Consider source files in subdirectories and set
50437         uses_subdirs.
50438         (func_emit_initmacro_start, func_emit_initmacro_end,
50439         func_emit_initmacro_done): Pass all arguments explicitly.
50440         (func_import): Determine two module lists main_modules,
50441         testsrelated_modules. Determine use_libtests. Determine two variables
50442         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50443         instead of just sed_transform_lib_file. Determine two variables
50444         main_files and testsrelated_files. Compute 'files' as the union of
50445         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50446         func_add_or_update. In the generated gnulib-comp.m4, collect the
50447         object files for tests/ in different variables than those for lib/.
50448         Substitute LIBTESTS_LIBDEPS.
50449         (func_create_testdir): Combine the uses_subdirs results from
50450         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50451
50452 2007-12-09  Bruno Haible  <bruno@clisp.org>
50453
50454         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50455         the build-aux directory.
50456
50457 2007-12-09  Bruno Haible  <bruno@clisp.org>
50458
50459         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50460         introduced on 2006-09-09.
50461
50462 2007-12-07  Jim Meyering  <meyering@redhat.com>
50463
50464         Let these macros work also with autoconf-2.59.
50465         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50466         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50467         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50468
50469 2007-12-06  Jim Meyering  <meyering@redhat.com>
50470
50471         Avoid a configure-time syntax error in gl_FUNC_ACL.
50472         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50473         function in each branch, before testing the cache variable.
50474
50475 2007-12-04  Eric Blake  <ebb9@byu.net>
50476
50477         Make scripts executable.
50478         * build-aux/config.guess: Add execute permissions.
50479         * build-aux/config.sub: Likewise.
50480         * build-aux/gendocs.sh: Likewise.
50481
50482         Fix frexp on mingw.
50483         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50484         cross-compiling.
50485         * doc/functions/frexp.texi (frexp): Document the bug.
50486
50487         Make cygwin fseeko check more reliable.
50488         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50489         version numbers, rather than unrelated feature check.
50490         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50491         * doc/functions/ftello.texi (ftello): Likewise.
50492         Reported by Bruno Haible.
50493
50494         * m4/strerror.m4: Bump version number.
50495
50496 2007-12-03  Bruno Haible  <bruno@clisp.org>
50497
50498         * doc/functions/mprotect.texi: Mention the mingw problem.
50499
50500 2007-12-03  Eric Blake  <ebb9@byu.net>
50501
50502         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50503         REPLACE_STRERROR is initialized before this macro.
50504
50505 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50506
50507         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50508         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50509         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50510         put -lsec in even for programs other than 'ls'.  This fixes a problem
50511         for gettext reported by Bruno Haible in
50512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50513         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50514         Add support for Solaris 10.  This isn't efficient, but should get the
50515         job done for now.
50516
50517 2007-12-03  James Youngman  <jay@gnu.org>
50518
50519         * doc/regexprops-generic.texi: change "an close-group" to "a
50520         close-group" and "illegal" to "not allowed".
50521
50522 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50523
50524         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50525         pr_byname.h. Needed for the rare case when the maintainer has done
50526         "make maintainer-clean" in the source directory and then attempts a
50527         build outside the source directory.
50528         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50529         scripts_byname.h.
50530
50531 2007-12-02  Martin Lambers <marlam@marlam.de>
50532             Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/getpagesize.h: Remove file.
50535         * lib/unistd.in.h: Include declaration of getpagesize here.
50536         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50537         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50538         HAVE_SYS_PARAM_H.
50539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50540         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50541         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50542         (Depends-on): Add unistd.
50543         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50544         (Include): Use <unistd.h> instead of getpagesize.h.
50545         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50546         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50547         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50548         gl_GETPAGESIZE invocation, already handled by module dependency.
50549         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50550
50551 2007-12-02  Bruno Haible  <bruno@clisp.org>
50552
50553         * modules/strings-tests: New file.
50554         * tests/test-strings.c: New file.
50555
50556         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50557         * lib/strings.in.h: New file.
50558         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50559         * m4/strings_h.m4: New file.
50560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50561         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50562         * modules/strings: New file.
50563         * modules/string (Makefile.am): Update.
50564         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50565         Reported by Karl Berry.
50566
50567 2007-12-01  Eric Blake  <ebb9@byu.net>
50568
50569         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50570         accomodate fix in cygwin 1.5.25.
50571
50572 2007-12-01  Jim Meyering  <meyering@redhat.com>
50573
50574         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50575         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50576         that would inhibit utf8-optimization of a regexp containing line-
50577         or buffer-anchors, e.g., `^', `$'.
50578
50579 2007-11-30  Bruno Haible  <bruno@clisp.org>
50580
50581         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50582         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50583         glthread_recursive_lock_init.
50584         * lib/lock.c (glthread_recursive_lock_init)
50585         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50586         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50587
50588 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50589
50590         New function qset_acl, like set_acl but with syscall semantics.
50591         * lib/acl.h (qset_acl): New decl.
50592         * lib/acl.c (qset_acl): New function.
50593         (set_acl): Use new function.  Use more-consistent diagnostics.
50594
50595 2007-11-28  Jim Meyering  <meyering@redhat.com>
50596
50597         * modules/physmem (License): Change from GPL to LGPLv2+.
50598
50599 2007-11-26  Bruno Haible  <bruno@clisp.org>
50600
50601         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50602         'long double' type has excess precision.
50603         Reported by Jim Meyering in
50604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50605
50606 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50607
50608         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50609         Sync from <http://gnu.org/licenses>.
50610         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50611         with license text from same location.
50612         * doc/maintain.texi, doc/standards.texi:  Sync from
50613         <http://savannah.gnu.org/projects/gnustandards>.
50614
50615 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50616         and Jim Meyering  <meyering@redhat.com>
50617
50618         Adjust getdate' grammar to accept a slightly more regular language.
50619         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50620         Before, the former was rejected.
50621         * lib/getdate.y (digits_to_date_time): New function, factored
50622         out of ...
50623         (number): ...here.  Just call digits_to_date_time.
50624         (hybrid): New non-terminal to handle an <unsigned number,
50625         signed relative offset> sequence consistently.
50626
50627 2007-11-18  Jim Meyering  <meyering@redhat.com>
50628
50629         Pull my changes from coreutils:
50630         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50631         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50632         use of $gnulib_tool_option_extras, so that it's separated from the
50633         preceding argument.
50634
50635         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50636         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50637         parent destination directories before copying a file into place.
50638
50639 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50640
50641         bootstrap: work also with 4-argument variant of AC_INIT
50642         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50643
50644 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         Port test-getaddrinfo to Solaris.
50647         Problem reported by Bruno Haible in
50648         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50649         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50650         explanation of setting 'hints'.
50651         Don't reject an implementation merely because it returns EAI_SERVICE.
50652         (EAI_SERVICE): Define to 0 if not defined.
50653
50654 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50655
50656         The license of gnu-make and posix-shell is now "GPLed build tool".
50657         * modules/gnu-make (License): Likewise.
50658         * modules/posix-shell (License): Likewise.
50659
50660         New module posix-shell, for determining a POSIX shell
50661         or perhaps something that is close enough to a POSIX shell.
50662         * m4/posix-shell.m4: New file.
50663         * modules/posix-shell: New file.
50664
50665         * MODULES.html.sh: Mention new module.
50666
50667         New module gnu-make, for determining whether we're using GNU Make.
50668         * m4/gnu-make.m4: New file.
50669         * modules/gnu-make: New file.
50670         * MODULES.html.sh: Mention new module.
50671
50672 2007-11-14  Jim Meyering  <meyering@redhat.com>
50673
50674         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50675         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50676         use this macro to create a function _definition_.
50677         Remove useless "#undef ARGMATCH_DIE".
50678
50679 2007-11-14  Bruno Haible  <bruno@clisp.org>
50680
50681         * lib/config.charset: Update for OpenBSD 4.1.
50682         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50683
50684 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50685
50686         Document 64-bit #if problems in stdint.texi.
50687         * doc/headers/stdint.texi (stdint.h): Mention problems with
50688         64-bit-#if, and how to work around them.
50689
50690         Don't insist on 'long long int' support in the preprocessor.  It
50691         breaks too many things.  For example, PRIdMAX still uses a 'long
50692         long int' format with the latest Sun compiler, even though
50693         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50694         preprocessor problem.  This causes the latest coreutils to dump
50695         core on Solaris 10 sparc with the Sun C compiler.
50696         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50697         the troublesome expressions at configure-time, not at #if-time.
50698         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50699         preprocessor.
50700         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50701         compile-time C checks, done at 'configure'-time.
50702         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50703         * modules/inttypes (Makefile): Substitute the new symbols that
50704         gl_INTTYPES_H now generates.
50705         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50706
50707 2007-11-12  Bruno Haible  <bruno@clisp.org>
50708
50709         Tests for Unicode character classification functions.
50710
50711         * modules/unictype/bidicategory-byname-tests: New file.
50712         * modules/unictype/bidicategory-name-tests: New file.
50713         * modules/unictype/bidicategory-of-tests: New file.
50714         * modules/unictype/bidicategory-test-tests: New file.
50715         * modules/unictype/block-list-tests: New file.
50716         * modules/unictype/block-of-tests: New file.
50717         * modules/unictype/block-test-tests: New file.
50718         * modules/unictype/category-C-tests: New file.
50719         * modules/unictype/category-Cc-tests: New file.
50720         * modules/unictype/category-Cf-tests: New file.
50721         * modules/unictype/category-Cn-tests: New file.
50722         * modules/unictype/category-Co-tests: New file.
50723         * modules/unictype/category-Cs-tests: New file.
50724         * modules/unictype/category-L-tests: New file.
50725         * modules/unictype/category-Ll-tests: New file.
50726         * modules/unictype/category-Lm-tests: New file.
50727         * modules/unictype/category-Lo-tests: New file.
50728         * modules/unictype/category-Lt-tests: New file.
50729         * modules/unictype/category-Lu-tests: New file.
50730         * modules/unictype/category-M-tests: New file.
50731         * modules/unictype/category-Mc-tests: New file.
50732         * modules/unictype/category-Me-tests: New file.
50733         * modules/unictype/category-Mn-tests: New file.
50734         * modules/unictype/category-N-tests: New file.
50735         * modules/unictype/category-Nd-tests: New file.
50736         * modules/unictype/category-Nl-tests: New file.
50737         * modules/unictype/category-No-tests: New file.
50738         * modules/unictype/category-P-tests: New file.
50739         * modules/unictype/category-Pc-tests: New file.
50740         * modules/unictype/category-Pd-tests: New file.
50741         * modules/unictype/category-Pe-tests: New file.
50742         * modules/unictype/category-Pf-tests: New file.
50743         * modules/unictype/category-Pi-tests: New file.
50744         * modules/unictype/category-Po-tests: New file.
50745         * modules/unictype/category-Ps-tests: New file.
50746         * modules/unictype/category-S-tests: New file.
50747         * modules/unictype/category-Sc-tests: New file.
50748         * modules/unictype/category-Sk-tests: New file.
50749         * modules/unictype/category-Sm-tests: New file.
50750         * modules/unictype/category-So-tests: New file.
50751         * modules/unictype/category-Z-tests: New file.
50752         * modules/unictype/category-Zl-tests: New file.
50753         * modules/unictype/category-Zp-tests: New file.
50754         * modules/unictype/category-Zs-tests: New file.
50755         * modules/unictype/category-and-not-tests: New file.
50756         * modules/unictype/category-and-tests: New file.
50757         * modules/unictype/category-byname-tests: New file.
50758         * modules/unictype/category-name-tests: New file.
50759         * modules/unictype/category-none-tests: New file.
50760         * modules/unictype/category-of-tests: New file.
50761         * modules/unictype/category-or-tests: New file.
50762         * modules/unictype/category-test-withtable-tests: New file.
50763         * modules/unictype/combining-class-tests: New file.
50764         * modules/unictype/ctype-alnum-tests: New file.
50765         * modules/unictype/ctype-alpha-tests: New file.
50766         * modules/unictype/ctype-blank-tests: New file.
50767         * modules/unictype/ctype-cntrl-tests: New file.
50768         * modules/unictype/ctype-digit-tests: New file.
50769         * modules/unictype/ctype-graph-tests: New file.
50770         * modules/unictype/ctype-lower-tests: New file.
50771         * modules/unictype/ctype-print-tests: New file.
50772         * modules/unictype/ctype-punct-tests: New file.
50773         * modules/unictype/ctype-space-tests: New file.
50774         * modules/unictype/ctype-upper-tests: New file.
50775         * modules/unictype/ctype-xdigit-tests: New file.
50776         * modules/unictype/decimal-digit-tests: New file.
50777         * modules/unictype/digit-tests: New file.
50778         * modules/unictype/mirror-tests: New file.
50779         * modules/unictype/numeric-tests: New file.
50780         * modules/unictype/property-alphabetic-tests: New file.
50781         * modules/unictype/property-ascii-hex-digit-tests: New file.
50782         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50783         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50784         * modules/unictype/property-bidi-block-separator-tests: New file.
50785         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50786         * modules/unictype/property-bidi-common-separator-tests: New file.
50787         * modules/unictype/property-bidi-control-tests: New file.
50788         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50789         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50790         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50791         * modules/unictype/property-bidi-european-digit-tests: New file.
50792         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50793         * modules/unictype/property-bidi-left-to-right-tests: New file.
50794         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50795         * modules/unictype/property-bidi-other-neutral-tests: New file.
50796         * modules/unictype/property-bidi-pdf-tests: New file.
50797         * modules/unictype/property-bidi-segment-separator-tests: New file.
50798         * modules/unictype/property-bidi-whitespace-tests: New file.
50799         * modules/unictype/property-byname-tests: New file.
50800         * modules/unictype/property-combining-tests: New file.
50801         * modules/unictype/property-composite-tests: New file.
50802         * modules/unictype/property-currency-symbol-tests: New file.
50803         * modules/unictype/property-dash-tests: New file.
50804         * modules/unictype/property-decimal-digit-tests: New file.
50805         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50806         * modules/unictype/property-deprecated-tests: New file.
50807         * modules/unictype/property-diacritic-tests: New file.
50808         * modules/unictype/property-extender-tests: New file.
50809         * modules/unictype/property-format-control-tests: New file.
50810         * modules/unictype/property-grapheme-base-tests: New file.
50811         * modules/unictype/property-grapheme-extend-tests: New file.
50812         * modules/unictype/property-grapheme-link-tests: New file.
50813         * modules/unictype/property-hex-digit-tests: New file.
50814         * modules/unictype/property-hyphen-tests: New file.
50815         * modules/unictype/property-id-continue-tests: New file.
50816         * modules/unictype/property-id-start-tests: New file.
50817         * modules/unictype/property-ideographic-tests: New file.
50818         * modules/unictype/property-ids-binary-operator-tests: New file.
50819         * modules/unictype/property-ids-trinary-operator-tests: New file.
50820         * modules/unictype/property-ignorable-control-tests: New file.
50821         * modules/unictype/property-iso-control-tests: New file.
50822         * modules/unictype/property-join-control-tests: New file.
50823         * modules/unictype/property-left-of-pair-tests: New file.
50824         * modules/unictype/property-line-separator-tests: New file.
50825         * modules/unictype/property-logical-order-exception-tests: New file.
50826         * modules/unictype/property-lowercase-tests: New file.
50827         * modules/unictype/property-math-tests: New file.
50828         * modules/unictype/property-non-break-tests: New file.
50829         * modules/unictype/property-not-a-character-tests: New file.
50830         * modules/unictype/property-numeric-tests: New file.
50831         * modules/unictype/property-other-alphabetic-tests: New file.
50832         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50833         * modules/unictype/property-other-grapheme-extend-tests: New file.
50834         * modules/unictype/property-other-id-continue-tests: New file.
50835         * modules/unictype/property-other-id-start-tests: New file.
50836         * modules/unictype/property-other-lowercase-tests: New file.
50837         * modules/unictype/property-other-math-tests: New file.
50838         * modules/unictype/property-other-uppercase-tests: New file.
50839         * modules/unictype/property-paired-punctuation-tests: New file.
50840         * modules/unictype/property-paragraph-separator-tests: New file.
50841         * modules/unictype/property-pattern-syntax-tests: New file.
50842         * modules/unictype/property-pattern-white-space-tests: New file.
50843         * modules/unictype/property-private-use-tests: New file.
50844         * modules/unictype/property-punctuation-tests: New file.
50845         * modules/unictype/property-quotation-mark-tests: New file.
50846         * modules/unictype/property-radical-tests: New file.
50847         * modules/unictype/property-sentence-terminal-tests: New file.
50848         * modules/unictype/property-soft-dotted-tests: New file.
50849         * modules/unictype/property-space-tests: New file.
50850         * modules/unictype/property-terminal-punctuation-tests: New file.
50851         * modules/unictype/property-test-tests: New file.
50852         * modules/unictype/property-titlecase-tests: New file.
50853         * modules/unictype/property-unassigned-code-value-tests: New file.
50854         * modules/unictype/property-unified-ideograph-tests: New file.
50855         * modules/unictype/property-uppercase-tests: New file.
50856         * modules/unictype/property-variation-selector-tests: New file.
50857         * modules/unictype/property-white-space-tests: New file.
50858         * modules/unictype/property-xid-continue-tests: New file.
50859         * modules/unictype/property-xid-start-tests: New file.
50860         * modules/unictype/property-zero-width-tests: New file.
50861         * modules/unictype/scripts-tests: New file.
50862         * modules/unictype/syntax-c-ident-tests: New file.
50863         * modules/unictype/syntax-c-whitespace-tests: New file.
50864         * modules/unictype/syntax-java-ident-tests: New file.
50865         * modules/unictype/syntax-java-whitespace-tests: New file.
50866         * tests/unictype/test-bidi_byname.c: New file.
50867         * tests/unictype/test-bidi_name.c: New file.
50868         * tests/unictype/test-bidi_of.c: New file.
50869         * tests/unictype/test-bidi_test.c: New file.
50870         * tests/unictype/test-block_list.c: New file.
50871         * tests/unictype/test-block_of.c: New file.
50872         * tests/unictype/test-block_test.c: New file.
50873         * tests/unictype/test-categ_and.c: New file.
50874         * tests/unictype/test-categ_and_not.c: New file.
50875         * tests/unictype/test-categ_byname.c: New file.
50876         * tests/unictype/test-categ_name.c: New file.
50877         * tests/unictype/test-categ_none.c: New file.
50878         * tests/unictype/test-categ_of.c: New file.
50879         * tests/unictype/test-categ_or.c: New file.
50880         * tests/unictype/test-categ_test_withtable.c: New file.
50881         * tests/unictype/test-combining.c: New file.
50882         * tests/unictype/test-decdigit.c: New file.
50883         * tests/unictype/test-digit.c: New file.
50884         * tests/unictype/test-mirror.c: New file.
50885         * tests/unictype/test-numeric.c: New file.
50886         * tests/unictype/test-pr_byname.c: New file.
50887         * tests/unictype/test-pr_test.c: New file.
50888         * tests/unictype/test-predicate-part1.h: New file.
50889         * tests/unictype/test-predicate-part2.h: New file.
50890         * tests/unictype/test-scripts.c: New file.
50891         * tests/unictype/test-sy_c_ident.c: New file.
50892         * tests/unictype/test-sy_java_ident.c: New file.
50893
50894         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50895         for Unicode 5.0.0.
50896         * tests/unictype/test-categ_Cc.c: Likewise.
50897         * tests/unictype/test-categ_Cf.c: Likewise.
50898         * tests/unictype/test-categ_Cn.c: Likewise.
50899         * tests/unictype/test-categ_Co.c: Likewise.
50900         * tests/unictype/test-categ_Cs.c: Likewise.
50901         * tests/unictype/test-categ_L.c: Likewise.
50902         * tests/unictype/test-categ_Ll.c: Likewise.
50903         * tests/unictype/test-categ_Lm.c: Likewise.
50904         * tests/unictype/test-categ_Lo.c: Likewise.
50905         * tests/unictype/test-categ_Lt.c: Likewise.
50906         * tests/unictype/test-categ_Lu.c: Likewise.
50907         * tests/unictype/test-categ_M.c: Likewise.
50908         * tests/unictype/test-categ_Mc.c: Likewise.
50909         * tests/unictype/test-categ_Me.c: Likewise.
50910         * tests/unictype/test-categ_Mn.c: Likewise.
50911         * tests/unictype/test-categ_N.c: Likewise.
50912         * tests/unictype/test-categ_Nd.c: Likewise.
50913         * tests/unictype/test-categ_Nl.c: Likewise.
50914         * tests/unictype/test-categ_No.c: Likewise.
50915         * tests/unictype/test-categ_P.c: Likewise.
50916         * tests/unictype/test-categ_Pc.c: Likewise.
50917         * tests/unictype/test-categ_Pd.c: Likewise.
50918         * tests/unictype/test-categ_Pe.c: Likewise.
50919         * tests/unictype/test-categ_Pf.c: Likewise.
50920         * tests/unictype/test-categ_Pi.c: Likewise.
50921         * tests/unictype/test-categ_Po.c: Likewise.
50922         * tests/unictype/test-categ_Ps.c: Likewise.
50923         * tests/unictype/test-categ_S.c: Likewise.
50924         * tests/unictype/test-categ_Sc.c: Likewise.
50925         * tests/unictype/test-categ_Sk.c: Likewise.
50926         * tests/unictype/test-categ_Sm.c: Likewise.
50927         * tests/unictype/test-categ_So.c: Likewise.
50928         * tests/unictype/test-categ_Z.c: Likewise.
50929         * tests/unictype/test-categ_Zl.c: Likewise.
50930         * tests/unictype/test-categ_Zp.c: Likewise.
50931         * tests/unictype/test-categ_Zs.c: Likewise.
50932         * tests/unictype/test-ctype_alnum.c: Likewise.
50933         * tests/unictype/test-ctype_alpha.c: Likewise.
50934         * tests/unictype/test-ctype_blank.c: Likewise.
50935         * tests/unictype/test-ctype_cntrl.c: Likewise.
50936         * tests/unictype/test-ctype_digit.c: Likewise.
50937         * tests/unictype/test-ctype_graph.c: Likewise.
50938         * tests/unictype/test-ctype_lower.c: Likewise.
50939         * tests/unictype/test-ctype_print.c: Likewise.
50940         * tests/unictype/test-ctype_punct.c: Likewise.
50941         * tests/unictype/test-ctype_space.c: Likewise.
50942         * tests/unictype/test-ctype_upper.c: Likewise.
50943         * tests/unictype/test-ctype_xdigit.c: Likewise.
50944         * tests/unictype/test-decdigit.h: Likewise.
50945         * tests/unictype/test-digit.h: Likewise.
50946         * tests/unictype/test-numeric.h: Likewise.
50947         * tests/unictype/test-pr_alphabetic.c: Likewise.
50948         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50949         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50950         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50951         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50952         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50953         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50954         * tests/unictype/test-pr_bidi_control.c: Likewise.
50955         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50956         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50957         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50958         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50959         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50960         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50961         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50962         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50963         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50964         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50965         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50966         * tests/unictype/test-pr_combining.c: Likewise.
50967         * tests/unictype/test-pr_composite.c: Likewise.
50968         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50969         * tests/unictype/test-pr_dash.c: Likewise.
50970         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50971         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50972         * tests/unictype/test-pr_deprecated.c: Likewise.
50973         * tests/unictype/test-pr_diacritic.c: Likewise.
50974         * tests/unictype/test-pr_extender.c: Likewise.
50975         * tests/unictype/test-pr_format_control.c: Likewise.
50976         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50977         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50978         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50979         * tests/unictype/test-pr_hex_digit.c: Likewise.
50980         * tests/unictype/test-pr_hyphen.c: Likewise.
50981         * tests/unictype/test-pr_id_continue.c: Likewise.
50982         * tests/unictype/test-pr_id_start.c: Likewise.
50983         * tests/unictype/test-pr_ideographic.c: Likewise.
50984         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50985         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50986         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50987         * tests/unictype/test-pr_iso_control.c: Likewise.
50988         * tests/unictype/test-pr_join_control.c: Likewise.
50989         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50990         * tests/unictype/test-pr_line_separator.c: Likewise.
50991         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50992         * tests/unictype/test-pr_lowercase.c: Likewise.
50993         * tests/unictype/test-pr_math.c: Likewise.
50994         * tests/unictype/test-pr_non_break.c: Likewise.
50995         * tests/unictype/test-pr_not_a_character.c: Likewise.
50996         * tests/unictype/test-pr_numeric.c: Likewise.
50997         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50998         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50999         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51000         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51001         * tests/unictype/test-pr_other_id_start.c: Likewise.
51002         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51003         * tests/unictype/test-pr_other_math.c: Likewise.
51004         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51005         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51006         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51007         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51008         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51009         * tests/unictype/test-pr_private_use.c: Likewise.
51010         * tests/unictype/test-pr_punctuation.c: Likewise.
51011         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51012         * tests/unictype/test-pr_radical.c: Likewise.
51013         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51014         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51015         * tests/unictype/test-pr_space.c: Likewise.
51016         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51017         * tests/unictype/test-pr_titlecase.c: Likewise.
51018         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51019         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51020         * tests/unictype/test-pr_uppercase.c: Likewise.
51021         * tests/unictype/test-pr_variation_selector.c: Likewise.
51022         * tests/unictype/test-pr_white_space.c: Likewise.
51023         * tests/unictype/test-pr_xid_continue.c: Likewise.
51024         * tests/unictype/test-pr_xid_start.c: Likewise.
51025         * tests/unictype/test-pr_zero_width.c: Likewise.
51026         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51027         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51028
51029 2007-11-12  Bruno Haible  <bruno@clisp.org>
51030
51031         Unicode character classification functions.
51032         * lib/unictype.h: New file.
51033         * modules/unictype/base: New file.
51034         * modules/unictype/category-L: New file.
51035         * modules/unictype/category-Lu: New file.
51036         * modules/unictype/category-Ll: New file.
51037         * modules/unictype/category-Lt: New file.
51038         * modules/unictype/category-Lm: New file.
51039         * modules/unictype/category-Lo: New file.
51040         * modules/unictype/category-M: New file.
51041         * modules/unictype/category-Mn: New file.
51042         * modules/unictype/category-Mc: New file.
51043         * modules/unictype/category-Me: New file.
51044         * modules/unictype/category-N: New file.
51045         * modules/unictype/category-Nd: New file.
51046         * modules/unictype/category-Nl: New file.
51047         * modules/unictype/category-No: New file.
51048         * modules/unictype/category-P: New file.
51049         * modules/unictype/category-Pc: New file.
51050         * modules/unictype/category-Pd: New file.
51051         * modules/unictype/category-Ps: New file.
51052         * modules/unictype/category-Pe: New file.
51053         * modules/unictype/category-Pi: New file.
51054         * modules/unictype/category-Pf: New file.
51055         * modules/unictype/category-Po: New file.
51056         * modules/unictype/category-S: New file.
51057         * modules/unictype/category-Sm: New file.
51058         * modules/unictype/category-Sc: New file.
51059         * modules/unictype/category-Sk: New file.
51060         * modules/unictype/category-So: New file.
51061         * modules/unictype/category-Z: New file.
51062         * modules/unictype/category-Zs: New file.
51063         * modules/unictype/category-Zl: New file.
51064         * modules/unictype/category-Zp: New file.
51065         * modules/unictype/category-C: New file.
51066         * modules/unictype/category-Cc: New file.
51067         * modules/unictype/category-Cf: New file.
51068         * modules/unictype/category-Cs: New file.
51069         * modules/unictype/category-Co: New file.
51070         * modules/unictype/category-Cn: New file.
51071         * modules/unictype/category-or: New file.
51072         * modules/unictype/category-of: New file.
51073         * modules/unictype/category-test: New file.
51074         * modules/unictype/category-test-withtable: New file.
51075         * modules/unictype/category-byname: New file.
51076         * modules/unictype/category-none: New file.
51077         * modules/unictype/category-and: New file.
51078         * modules/unictype/category-and-not: New file.
51079         * modules/unictype/category-name: New file.
51080         * modules/unictype/combining-class: New file.
51081         * modules/unictype/category-all: New file.
51082         * modules/unictype/bidicategory-all: New file.
51083         * modules/unictype/bidicategory-byname: New file.
51084         * modules/unictype/bidicategory-name: New file.
51085         * modules/unictype/bidicategory-of: New file.
51086         * modules/unictype/bidicategory-test: New file.
51087         * modules/unictype/decimal-digit: New file.
51088         * modules/unictype/digit: New file.
51089         * modules/unictype/numeric: New file.
51090         * modules/unictype/mirror: New file.
51091         * modules/unictype/property-white-space: New file.
51092         * modules/unictype/property-alphabetic: New file.
51093         * modules/unictype/property-other-alphabetic: New file.
51094         * modules/unictype/property-not-a-character: New file.
51095         * modules/unictype/property-default-ignorable-code-point: New file.
51096         * modules/unictype/property-other-default-ignorable-code-point: New
51097         file.
51098         * modules/unictype/property-deprecated: New file.
51099         * modules/unictype/property-logical-order-exception: New file.
51100         * modules/unictype/property-variation-selector: New file.
51101         * modules/unictype/property-private-use: New file.
51102         * modules/unictype/property-unassigned-code-value: New file.
51103         * modules/unictype/property-uppercase: New file.
51104         * modules/unictype/property-other-uppercase: New file.
51105         * modules/unictype/property-lowercase: New file.
51106         * modules/unictype/property-other-lowercase: New file.
51107         * modules/unictype/property-titlecase: New file.
51108         * modules/unictype/property-soft-dotted: New file.
51109         * modules/unictype/property-id-start: New file.
51110         * modules/unictype/property-other-id-start: New file.
51111         * modules/unictype/property-id-continue: New file.
51112         * modules/unictype/property-other-id-continue: New file.
51113         * modules/unictype/property-xid-start: New file.
51114         * modules/unictype/property-xid-continue: New file.
51115         * modules/unictype/property-pattern-white-space: New file.
51116         * modules/unictype/property-pattern-syntax: New file.
51117         * modules/unictype/property-join-control: New file.
51118         * modules/unictype/property-grapheme-base: New file.
51119         * modules/unictype/property-grapheme-extend: New file.
51120         * modules/unictype/property-other-grapheme-extend: New file.
51121         * modules/unictype/property-grapheme-link: New file.
51122         * modules/unictype/property-bidi-control: New file.
51123         * modules/unictype/property-bidi-left-to-right: New file.
51124         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51125         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51126         * modules/unictype/property-bidi-european-digit: New file.
51127         * modules/unictype/property-bidi-eur-num-separator: New file.
51128         * modules/unictype/property-bidi-eur-num-terminator: New file.
51129         * modules/unictype/property-bidi-arabic-digit: New file.
51130         * modules/unictype/property-bidi-common-separator: New file.
51131         * modules/unictype/property-bidi-block-separator: New file.
51132         * modules/unictype/property-bidi-segment-separator: New file.
51133         * modules/unictype/property-bidi-whitespace: New file.
51134         * modules/unictype/property-bidi-non-spacing-mark: New file.
51135         * modules/unictype/property-bidi-boundary-neutral: New file.
51136         * modules/unictype/property-bidi-pdf: New file.
51137         * modules/unictype/property-bidi-embedding-or-override: New file.
51138         * modules/unictype/property-bidi-other-neutral: New file.
51139         * modules/unictype/property-hex-digit: New file.
51140         * modules/unictype/property-ascii-hex-digit: New file.
51141         * modules/unictype/property-ideographic: New file.
51142         * modules/unictype/property-unified-ideograph: New file.
51143         * modules/unictype/property-radical: New file.
51144         * modules/unictype/property-ids-binary-operator: New file.
51145         * modules/unictype/property-ids-trinary-operator: New file.
51146         * modules/unictype/property-zero-width: New file.
51147         * modules/unictype/property-space: New file.
51148         * modules/unictype/property-non-break: New file.
51149         * modules/unictype/property-iso-control: New file.
51150         * modules/unictype/property-format-control: New file.
51151         * modules/unictype/property-dash: New file.
51152         * modules/unictype/property-hyphen: New file.
51153         * modules/unictype/property-punctuation: New file.
51154         * modules/unictype/property-line-separator: New file.
51155         * modules/unictype/property-paragraph-separator: New file.
51156         * modules/unictype/property-quotation-mark: New file.
51157         * modules/unictype/property-sentence-terminal: New file.
51158         * modules/unictype/property-terminal-punctuation: New file.
51159         * modules/unictype/property-currency-symbol: New file.
51160         * modules/unictype/property-math: New file.
51161         * modules/unictype/property-other-math: New file.
51162         * modules/unictype/property-paired-punctuation: New file.
51163         * modules/unictype/property-left-of-pair: New file.
51164         * modules/unictype/property-combining: New file.
51165         * modules/unictype/property-composite: New file.
51166         * modules/unictype/property-decimal-digit: New file.
51167         * modules/unictype/property-numeric: New file.
51168         * modules/unictype/property-diacritic: New file.
51169         * modules/unictype/property-extender: New file.
51170         * modules/unictype/property-ignorable-control: New file.
51171         * modules/unictype/property-test: New file.
51172         * modules/unictype/property-byname: New file.
51173         * modules/unictype/property-all: New file.
51174         * modules/unictype/scripts: New file.
51175         * modules/unictype/scripts-all: New file.
51176         * modules/unictype/block-of: New file.
51177         * modules/unictype/block-test: New file.
51178         * modules/unictype/block-list: New file.
51179         * modules/unictype/block-all: New file.
51180         * modules/unictype/syntax-c-whitespace: New file.
51181         * modules/unictype/syntax-java-whitespace: New file.
51182         * modules/unictype/syntax-c-ident: New file.
51183         * modules/unictype/syntax-java-ident: New file.
51184         * modules/unictype/ctype-alnum: New file.
51185         * modules/unictype/ctype-alpha: New file.
51186         * modules/unictype/ctype-cntrl: New file.
51187         * modules/unictype/ctype-digit: New file.
51188         * modules/unictype/ctype-graph: New file.
51189         * modules/unictype/ctype-lower: New file.
51190         * modules/unictype/ctype-print: New file.
51191         * modules/unictype/ctype-punct: New file.
51192         * modules/unictype/ctype-space: New file.
51193         * modules/unictype/ctype-upper: New file.
51194         * modules/unictype/ctype-xdigit: New file.
51195         * modules/unictype/ctype-blank: New file.
51196         * lib/unictype/bidi_byname.c: New file.
51197         * lib/unictype/bidi_name.c: New file.
51198         * lib/unictype/bidi_of.c: New file.
51199         * lib/unictype/bidi_test.c: New file.
51200         * lib/unictype/bitmap.h: New file.
51201         * lib/unictype/block_test.c: New file.
51202         * lib/unictype/blocks.c: New file.
51203         * lib/unictype/categ_C.c: New file.
51204         * lib/unictype/categ_Cc.c: New file.
51205         * lib/unictype/categ_Cf.c: New file.
51206         * lib/unictype/categ_Cn.c: New file.
51207         * lib/unictype/categ_Co.c: New file.
51208         * lib/unictype/categ_Cs.c: New file.
51209         * lib/unictype/categ_L.c: New file.
51210         * lib/unictype/categ_Ll.c: New file.
51211         * lib/unictype/categ_Lm.c: New file.
51212         * lib/unictype/categ_Lo.c: New file.
51213         * lib/unictype/categ_Lt.c: New file.
51214         * lib/unictype/categ_Lu.c: New file.
51215         * lib/unictype/categ_M.c: New file.
51216         * lib/unictype/categ_Mc.c: New file.
51217         * lib/unictype/categ_Me.c: New file.
51218         * lib/unictype/categ_Mn.c: New file.
51219         * lib/unictype/categ_N.c: New file.
51220         * lib/unictype/categ_Nd.c: New file.
51221         * lib/unictype/categ_Nl.c: New file.
51222         * lib/unictype/categ_No.c: New file.
51223         * lib/unictype/categ_P.c: New file.
51224         * lib/unictype/categ_Pc.c: New file.
51225         * lib/unictype/categ_Pd.c: New file.
51226         * lib/unictype/categ_Pe.c: New file.
51227         * lib/unictype/categ_Pf.c: New file.
51228         * lib/unictype/categ_Pi.c: New file.
51229         * lib/unictype/categ_Po.c: New file.
51230         * lib/unictype/categ_Ps.c: New file.
51231         * lib/unictype/categ_S.c: New file.
51232         * lib/unictype/categ_Sc.c: New file.
51233         * lib/unictype/categ_Sk.c: New file.
51234         * lib/unictype/categ_Sm.c: New file.
51235         * lib/unictype/categ_So.c: New file.
51236         * lib/unictype/categ_Z.c: New file.
51237         * lib/unictype/categ_Zl.c: New file.
51238         * lib/unictype/categ_Zp.c: New file.
51239         * lib/unictype/categ_Zs.c: New file.
51240         * lib/unictype/categ_and.c: New file.
51241         * lib/unictype/categ_and_not.c: New file.
51242         * lib/unictype/categ_byname.c: New file.
51243         * lib/unictype/categ_name.c: New file.
51244         * lib/unictype/categ_none.c: New file.
51245         * lib/unictype/categ_of.c: New file.
51246         * lib/unictype/categ_or.c: New file.
51247         * lib/unictype/categ_test.c: New file.
51248         * lib/unictype/combining.c: New file.
51249         * lib/unictype/ctype_alnum.c: New file.
51250         * lib/unictype/ctype_alpha.c: New file.
51251         * lib/unictype/ctype_blank.c: New file.
51252         * lib/unictype/ctype_cntrl.c: New file.
51253         * lib/unictype/ctype_digit.c: New file.
51254         * lib/unictype/ctype_graph.c: New file.
51255         * lib/unictype/ctype_lower.c: New file.
51256         * lib/unictype/ctype_print.c: New file.
51257         * lib/unictype/ctype_punct.c: New file.
51258         * lib/unictype/ctype_space.c: New file.
51259         * lib/unictype/ctype_upper.c: New file.
51260         * lib/unictype/ctype_xdigit.c: New file.
51261         * lib/unictype/decdigit.c: New file.
51262         * lib/unictype/digit.c: New file.
51263         * lib/unictype/identsyntaxmap.h: New file.
51264         * lib/unictype/mirror.c: New file.
51265         * lib/unictype/numeric.c: New file.
51266         * lib/unictype/pr_alphabetic.c: New file.
51267         * lib/unictype/pr_ascii_hex_digit.c: New file.
51268         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51269         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51270         * lib/unictype/pr_bidi_block_separator.c: New file.
51271         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51272         * lib/unictype/pr_bidi_common_separator.c: New file.
51273         * lib/unictype/pr_bidi_control.c: New file.
51274         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51275         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51276         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51277         * lib/unictype/pr_bidi_european_digit.c: New file.
51278         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51279         * lib/unictype/pr_bidi_left_to_right.c: New file.
51280         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51281         * lib/unictype/pr_bidi_other_neutral.c: New file.
51282         * lib/unictype/pr_bidi_pdf.c: New file.
51283         * lib/unictype/pr_bidi_segment_separator.c: New file.
51284         * lib/unictype/pr_bidi_whitespace.c: New file.
51285         * lib/unictype/pr_byname.c: New file.
51286         * lib/unictype/pr_byname.gperf: New file.
51287         * lib/unictype/pr_combining.c: New file.
51288         * lib/unictype/pr_composite.c: New file.
51289         * lib/unictype/pr_currency_symbol.c: New file.
51290         * lib/unictype/pr_dash.c: New file.
51291         * lib/unictype/pr_decimal_digit.c: New file.
51292         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51293         * lib/unictype/pr_deprecated.c: New file.
51294         * lib/unictype/pr_diacritic.c: New file.
51295         * lib/unictype/pr_extender.c: New file.
51296         * lib/unictype/pr_format_control.c: New file.
51297         * lib/unictype/pr_grapheme_base.c: New file.
51298         * lib/unictype/pr_grapheme_extend.c: New file.
51299         * lib/unictype/pr_grapheme_link.c: New file.
51300         * lib/unictype/pr_hex_digit.c: New file.
51301         * lib/unictype/pr_hyphen.c: New file.
51302         * lib/unictype/pr_id_continue.c: New file.
51303         * lib/unictype/pr_id_start.c: New file.
51304         * lib/unictype/pr_ideographic.c: New file.
51305         * lib/unictype/pr_ids_binary_operator.c: New file.
51306         * lib/unictype/pr_ids_trinary_operator.c: New file.
51307         * lib/unictype/pr_ignorable_control.c: New file.
51308         * lib/unictype/pr_iso_control.c: New file.
51309         * lib/unictype/pr_join_control.c: New file.
51310         * lib/unictype/pr_left_of_pair.c: New file.
51311         * lib/unictype/pr_line_separator.c: New file.
51312         * lib/unictype/pr_logical_order_exception.c: New file.
51313         * lib/unictype/pr_lowercase.c: New file.
51314         * lib/unictype/pr_math.c: New file.
51315         * lib/unictype/pr_non_break.c: New file.
51316         * lib/unictype/pr_not_a_character.c: New file.
51317         * lib/unictype/pr_numeric.c: New file.
51318         * lib/unictype/pr_other_alphabetic.c: New file.
51319         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51320         * lib/unictype/pr_other_grapheme_extend.c: New file.
51321         * lib/unictype/pr_other_id_continue.c: New file.
51322         * lib/unictype/pr_other_id_start.c: New file.
51323         * lib/unictype/pr_other_lowercase.c: New file.
51324         * lib/unictype/pr_other_math.c: New file.
51325         * lib/unictype/pr_other_uppercase.c: New file.
51326         * lib/unictype/pr_paired_punctuation.c: New file.
51327         * lib/unictype/pr_paragraph_separator.c: New file.
51328         * lib/unictype/pr_pattern_syntax.c: New file.
51329         * lib/unictype/pr_pattern_white_space.c: New file.
51330         * lib/unictype/pr_private_use.c: New file.
51331         * lib/unictype/pr_punctuation.c: New file.
51332         * lib/unictype/pr_quotation_mark.c: New file.
51333         * lib/unictype/pr_radical.c: New file.
51334         * lib/unictype/pr_sentence_terminal.c: New file.
51335         * lib/unictype/pr_soft_dotted.c: New file.
51336         * lib/unictype/pr_space.c: New file.
51337         * lib/unictype/pr_terminal_punctuation.c: New file.
51338         * lib/unictype/pr_test.c: New file.
51339         * lib/unictype/pr_titlecase.c: New file.
51340         * lib/unictype/pr_unassigned_code_value.c: New file.
51341         * lib/unictype/pr_unified_ideograph.c: New file.
51342         * lib/unictype/pr_uppercase.c: New file.
51343         * lib/unictype/pr_variation_selector.c: New file.
51344         * lib/unictype/pr_white_space.c: New file.
51345         * lib/unictype/pr_xid_continue.c: New file.
51346         * lib/unictype/pr_xid_start.c: New file.
51347         * lib/unictype/pr_zero_width.c: New file.
51348         * lib/unictype/scripts.c: New file.
51349         * lib/unictype/sy_c_ident.c: New file.
51350         * lib/unictype/sy_c_whitespace.c: New file.
51351         * lib/unictype/sy_java_ident.c: New file.
51352         * lib/unictype/sy_java_whitespace.c: New file.
51353
51354         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51355         Unicode 5.0.0.
51356         * lib/unictype/blocks.h: Likewise.
51357         * lib/unictype/categ_C.h: Likewise.
51358         * lib/unictype/categ_Cc.h: Likewise.
51359         * lib/unictype/categ_Cf.h: Likewise.
51360         * lib/unictype/categ_Cn.h: Likewise.
51361         * lib/unictype/categ_Co.h: Likewise.
51362         * lib/unictype/categ_Cs.h: Likewise.
51363         * lib/unictype/categ_L.h: Likewise.
51364         * lib/unictype/categ_Ll.h: Likewise.
51365         * lib/unictype/categ_Lm.h: Likewise.
51366         * lib/unictype/categ_Lo.h: Likewise.
51367         * lib/unictype/categ_Lt.h: Likewise.
51368         * lib/unictype/categ_Lu.h: Likewise.
51369         * lib/unictype/categ_M.h: Likewise.
51370         * lib/unictype/categ_Mc.h: Likewise.
51371         * lib/unictype/categ_Me.h: Likewise.
51372         * lib/unictype/categ_Mn.h: Likewise.
51373         * lib/unictype/categ_N.h: Likewise.
51374         * lib/unictype/categ_Nd.h: Likewise.
51375         * lib/unictype/categ_Nl.h: Likewise.
51376         * lib/unictype/categ_No.h: Likewise.
51377         * lib/unictype/categ_P.h: Likewise.
51378         * lib/unictype/categ_Pc.h: Likewise.
51379         * lib/unictype/categ_Pd.h: Likewise.
51380         * lib/unictype/categ_Pe.h: Likewise.
51381         * lib/unictype/categ_Pf.h: Likewise.
51382         * lib/unictype/categ_Pi.h: Likewise.
51383         * lib/unictype/categ_Po.h: Likewise.
51384         * lib/unictype/categ_Ps.h: Likewise.
51385         * lib/unictype/categ_S.h: Likewise.
51386         * lib/unictype/categ_Sc.h: Likewise.
51387         * lib/unictype/categ_Sk.h: Likewise.
51388         * lib/unictype/categ_Sm.h: Likewise.
51389         * lib/unictype/categ_So.h: Likewise.
51390         * lib/unictype/categ_Z.h: Likewise.
51391         * lib/unictype/categ_Zl.h: Likewise.
51392         * lib/unictype/categ_Zp.h: Likewise.
51393         * lib/unictype/categ_Zs.h: Likewise.
51394         * lib/unictype/categ_of.h: Likewise.
51395         * lib/unictype/combining.h: Likewise.
51396         * lib/unictype/ctype_alnum.h: Likewise.
51397         * lib/unictype/ctype_alpha.h: Likewise.
51398         * lib/unictype/ctype_blank.h: Likewise.
51399         * lib/unictype/ctype_cntrl.h: Likewise.
51400         * lib/unictype/ctype_digit.h: Likewise.
51401         * lib/unictype/ctype_graph.h: Likewise.
51402         * lib/unictype/ctype_lower.h: Likewise.
51403         * lib/unictype/ctype_print.h: Likewise.
51404         * lib/unictype/ctype_punct.h: Likewise.
51405         * lib/unictype/ctype_space.h: Likewise.
51406         * lib/unictype/ctype_upper.h: Likewise.
51407         * lib/unictype/ctype_xdigit.h: Likewise.
51408         * lib/unictype/decdigit.h: Likewise.
51409         * lib/unictype/digit.h: Likewise.
51410         * lib/unictype/mirror.h: Likewise.
51411         * lib/unictype/numeric.h: Likewise.
51412         * lib/unictype/pr_alphabetic.h: Likewise.
51413         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51414         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51415         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51416         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51417         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51418         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51419         * lib/unictype/pr_bidi_control.h: Likewise.
51420         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51421         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51422         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51423         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51424         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51425         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51426         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51427         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51428         * lib/unictype/pr_bidi_pdf.h: Likewise.
51429         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51430         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51431         * lib/unictype/pr_combining.h: Likewise.
51432         * lib/unictype/pr_composite.h: Likewise.
51433         * lib/unictype/pr_currency_symbol.h: Likewise.
51434         * lib/unictype/pr_dash.h: Likewise.
51435         * lib/unictype/pr_decimal_digit.h: Likewise.
51436         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51437         * lib/unictype/pr_deprecated.h: Likewise.
51438         * lib/unictype/pr_diacritic.h: Likewise.
51439         * lib/unictype/pr_extender.h: Likewise.
51440         * lib/unictype/pr_format_control.h: Likewise.
51441         * lib/unictype/pr_grapheme_base.h: Likewise.
51442         * lib/unictype/pr_grapheme_extend.h: Likewise.
51443         * lib/unictype/pr_grapheme_link.h: Likewise.
51444         * lib/unictype/pr_hex_digit.h: Likewise.
51445         * lib/unictype/pr_hyphen.h: Likewise.
51446         * lib/unictype/pr_id_continue.h: Likewise.
51447         * lib/unictype/pr_id_start.h: Likewise.
51448         * lib/unictype/pr_ideographic.h: Likewise.
51449         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51450         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51451         * lib/unictype/pr_ignorable_control.h: Likewise.
51452         * lib/unictype/pr_iso_control.h: Likewise.
51453         * lib/unictype/pr_join_control.h: Likewise.
51454         * lib/unictype/pr_left_of_pair.h: Likewise.
51455         * lib/unictype/pr_line_separator.h: Likewise.
51456         * lib/unictype/pr_logical_order_exception.h: Likewise.
51457         * lib/unictype/pr_lowercase.h: Likewise.
51458         * lib/unictype/pr_math.h: Likewise.
51459         * lib/unictype/pr_non_break.h: Likewise.
51460         * lib/unictype/pr_not_a_character.h: Likewise.
51461         * lib/unictype/pr_numeric.h: Likewise.
51462         * lib/unictype/pr_other_alphabetic.h: Likewise.
51463         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51464         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51465         * lib/unictype/pr_other_id_continue.h: Likewise.
51466         * lib/unictype/pr_other_id_start.h: Likewise.
51467         * lib/unictype/pr_other_lowercase.h: Likewise.
51468         * lib/unictype/pr_other_math.h: Likewise.
51469         * lib/unictype/pr_other_uppercase.h: Likewise.
51470         * lib/unictype/pr_paired_punctuation.h: Likewise.
51471         * lib/unictype/pr_paragraph_separator.h: Likewise.
51472         * lib/unictype/pr_pattern_syntax.h: Likewise.
51473         * lib/unictype/pr_pattern_white_space.h: Likewise.
51474         * lib/unictype/pr_private_use.h: Likewise.
51475         * lib/unictype/pr_punctuation.h: Likewise.
51476         * lib/unictype/pr_quotation_mark.h: Likewise.
51477         * lib/unictype/pr_radical.h: Likewise.
51478         * lib/unictype/pr_sentence_terminal.h: Likewise.
51479         * lib/unictype/pr_soft_dotted.h: Likewise.
51480         * lib/unictype/pr_space.h: Likewise.
51481         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51482         * lib/unictype/pr_titlecase.h: Likewise.
51483         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51484         * lib/unictype/pr_unified_ideograph.h: Likewise.
51485         * lib/unictype/pr_uppercase.h: Likewise.
51486         * lib/unictype/pr_variation_selector.h: Likewise.
51487         * lib/unictype/pr_white_space.h: Likewise.
51488         * lib/unictype/pr_xid_continue.h: Likewise.
51489         * lib/unictype/pr_xid_start.h: Likewise.
51490         * lib/unictype/pr_zero_width.h: Likewise.
51491         * lib/unictype/scripts.h: Likewise.
51492         * lib/unictype/scripts_byname.gperf: Likewise.
51493         * lib/unictype/sy_c_ident.h: Likewise.
51494         * lib/unictype/sy_c_whitespace.h: Likewise.
51495         * lib/unictype/sy_java_ident.h: Likewise.
51496         * lib/unictype/sy_java_whitespace.h: Likewise.
51497
51498         * lib/unictype/Makefile: New file.
51499         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51500         glibc.
51501         * lib/unictype/3level.h: New file, copied from glibc.
51502         * lib/unictype/3levelbit.h: New file.
51503
51504 2007-11-11  Bruno Haible  <bruno@clisp.org>
51505
51506         * modules/gperf: New file.
51507         * modules/iconv_open (Depends-on): Add it.
51508         (Makefile.am): Remove the GPERF definition.
51509
51510 2007-11-11  Bruno Haible  <bruno@clisp.org>
51511
51512         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51513         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51514
51515 2007-11-11  Bruno Haible  <bruno@clisp.org>
51516
51517         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51518         (usage): Remove function.
51519
51520 2007-11-11  Bruno Haible  <bruno@clisp.org>
51521
51522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51523         gl_FUNC_CEILF_LIBS.
51524         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51525         gl_FUNC_CEIL_LIBS.
51526         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51527         gl_FUNC_CEILL_LIBS.
51528         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51529         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51530         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51531
51532 2007-11-11  Bruno Haible  <bruno@clisp.org>
51533
51534         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51535         roundf were declared but do not exist on functions.
51536         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51537         roundl were declared but do not exist on functions.
51538         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51539         HAVE_FLOORL_AND_CEILL, respectively.
51540         Needed for Sun C on Solaris 10.
51541
51542 2007-11-11  Bruno Haible  <bruno@clisp.org>
51543
51544         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51545         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51546         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51547         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51548         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51549         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51550         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51551         HAVE_DECL_ROUNDF.
51552         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51553         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51555         of HAVE_DECL_ROUND*.
51556         * modules/math (Makefile.am): Update.
51557
51558 2007-11-10  Bruno Haible  <bruno@clisp.org>
51559
51560         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51561         ptrdiff_t as m4/intl.m4.
51562
51563 2007-11-10  Jim Meyering  <meyering@redhat.com>
51564
51565         Avoid link failure for the argmatch test.
51566         * tests/test-argmatch.c (usage): Define function to avoid a link
51567         failure: argmatch_die requires a usage function.
51568
51569 2007-11-09  Bruno Haible  <bruno@clisp.org>
51570
51571         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51572         * doc/functions/vsnprintf.texi: Likewise.
51573         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51574         with a size argument < 2.
51575
51576 2007-11-09  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51579         buffer. Fixes an inefficiency introduced on 2007-11-03.
51580
51581 2007-11-09  Bruno Haible  <bruno@clisp.org>
51582
51583         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51584         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51585
51586 2007-11-08  Jim Meyering  <meyering@redhat.com>
51587
51588         Change cache variable name prefix "jm_" to "gl_" everywhere.
51589         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51590         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51591         * m4/uptime.m4: s/gl_/jm_/
51592
51593 2007-11-07  Bruno Haible  <bruno@clisp.org>
51594
51595         Update to GNU gettext 0.17.
51596         * m4/intl.m4: Update to GNU gettext 0.17.
51597         * m4/po.m4: Likewise.
51598         * modules/gettext (Files): Remove m4/ulonglong.m4.
51599         (configure.ac): Require gettext infrastructure from version 0.17.
51600
51601 2007-11-06  Bruno Haible  <bruno@clisp.org>
51602
51603         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51604         symbolic values are not defined in a public header.
51605         * lib/freadable.c (freadable) [QNX]: Likewise.
51606         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51607         * lib/freading.c (freading) [QNX]: Likewise.
51608         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51609         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51610         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51611         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51612         Reported by Alain Magloire.
51613
51614         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51615
51616 2007-11-05  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51619         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51620         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51621         Reported by Eric Blake.
51622
51623 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51624             Bruno Haible  <bruno@clisp.org>
51625
51626         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51627         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51628         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51629         (malloc): Undefine also before including <stdlib.h>.
51630         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51631         Needed on OSF/1 4.0.
51632
51633 2007-11-05  Jim Meyering  <meyering@redhat.com>
51634
51635         git-version-gen: sync from coreutils.
51636         * build-aux/git-version-gen: Add comments.
51637         Change the first '-' to '.' in the snapshot version string,
51638         e.g., 6.9-377-08144 -> 6.9.377-08144
51639         Remove first parameter.
51640         Don't declare a version "-dirty" merely because a time
51641         stamp has changed.
51642
51643 2007-11-04  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/lock.h: Protect all macro definitions containing an 'if'
51646         statement through a "do { ... } while (0)".
51647         * lib/tls.h: Likewise.
51648
51649 2007-11-04  Bruno Haible  <bruno@clisp.org>
51650
51651         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51652
51653 2007-11-04  Bruno Haible  <bruno@clisp.org>
51654
51655         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51656         * modules/fprintf-posix (Depends-on): Add nocrash.
51657         * modules/snprintf-posix (Depends-on): Likewise.
51658         * modules/sprintf-posix (Depends-on): Likewise.
51659         * modules/vasnprintf-posix (Depends-on): Likewise.
51660         * modules/vasprintf-posix (Depends-on): Likewise.
51661         * modules/vfprintf-posix (Depends-on): Likewise.
51662         * modules/vsnprintf-posix (Depends-on): Likewise.
51663         * modules/vsprintf-posix (Depends-on): Likewise.
51664         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51665         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51666         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51667         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51668         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51669         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51670         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51671
51672 2007-11-04  Bruno Haible  <bruno@clisp.org>
51673
51674         * modules/nocrash: New file.
51675         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51676         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51677
51678 2007-11-04  Bruno Haible  <bruno@clisp.org>
51679
51680         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51681         precision handling.
51682         * tests/test-vasprintf-posix.c (test_function): Likewise.
51683         * tests/test-snprintf-posix.h (test_function): Likewise.
51684         * tests/test-sprintf-posix.h (test_function): Likewise.
51685
51686         Fix *printf behaviour for large precisions on mingw and BeOS.
51687         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51688         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51690         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51692         gl_PRINTF_PRECISION and test its result. Invoke
51693         gl_PREREQ_VASNPRINTF_PRECISION.
51694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51698         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51701         * doc/functions/fprintf.texi: Update.
51702         * doc/functions/printf.texi: Update.
51703         * doc/functions/snprintf.texi: Update.
51704         * doc/functions/sprintf.texi: Update.
51705         * doc/functions/vfprintf.texi: Update.
51706         * doc/functions/vprintf.texi: Update.
51707         * doc/functions/vsnprintf.texi: Update.
51708         * doc/functions/vsprintf.texi: Update.
51709
51710 2007-11-04  Bruno Haible  <bruno@clisp.org>
51711
51712         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51713
51714 2007-11-04  Bruno Haible  <bruno@clisp.org>
51715
51716         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51717         Reported by Sylvain Beucler <beuc@gnu.org>.
51718
51719 2007-11-03  Bruno Haible  <bruno@clisp.org>
51720
51721         * tests/test-fprintf-posix2.sh: New file.
51722         * tests/test-fprintf-posix2.c: New file.
51723         * modules/fprintf-posix-tests (Files): Add them.
51724         (TESTS): Add test-fprintf-posix2.sh.
51725         (configure.ac): Check for getrlimit and setrlimit.
51726         (check_PROGRAMS): Add test-fprintf-posix2.
51727
51728         * tests/test-printf-posix2.sh: New file.
51729         * tests/test-printf-posix2.c: New file.
51730         * modules/printf-posix-tests (Files): Add them.
51731         (TESTS): Add test-printf-posix2.sh.
51732         (configure.ac): Check for getrlimit and setrlimit.
51733         (check_PROGRAMS): Add test-printf-posix2.
51734
51735         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51736         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51737         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51738         (decode_double): New function, copied from decode_long_double.
51739         (scale10_round_decimal_decoded): New function, extracted from
51740         scale10_round_decimal_long_double.
51741         (scale10_round_decimal_long_double): Use it.
51742         (scale10_round_decimal_double): New function.
51743         (floorlog10): New function.
51744         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51746         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51748         gl_PRINTF_ENOMEM and test its result. Invoke
51749         gl_PREREQ_VASNPRINTF_ENOMEM.
51750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51757         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51758         * modules/snprintf-posix (Depends-on): Likewise.
51759         * modules/sprintf-posix (Depends-on): Likewise.
51760         * modules/vasnprintf-posix (Depends-on): Likewise.
51761         * modules/vasprintf-posix (Depends-on): Likewise.
51762         * modules/vfprintf-posix (Depends-on): Likewise.
51763         * modules/vsnprintf-posix (Depends-on): Likewise.
51764         * modules/vsprintf-posix (Depends-on): Likewise.
51765         * doc/functions/fprintf.texi: Update.
51766         * doc/functions/printf.texi: Update.
51767         * doc/functions/snprintf.texi: Update.
51768         * doc/functions/sprintf.texi: Update.
51769         * doc/functions/vfprintf.texi: Update.
51770         * doc/functions/vprintf.texi: Update.
51771         * doc/functions/vsnprintf.texi: Update.
51772         * doc/functions/vsprintf.texi: Update.
51773
51774 2007-11-03  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/frexp-nolibm-tests: New file.
51777
51778         * modules/frexp-nolibm: New file.
51779         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51780
51781 2007-11-03  Bruno Haible  <bruno@clisp.org>
51782
51783         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51784         value is C99 compliant.
51785         Needed for OSF/1 5.1.
51786
51787 2007-11-03  Bruno Haible  <bruno@clisp.org>
51788
51789         Fix out-of-memory handling of vasnprintf.
51790         * lib/printf-parse.c: Include <errno.h>.
51791         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51792         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51793         is already set.
51794
51795 2007-11-02  Eric Blake  <ebb9@byu.net>
51796
51797         Fix tests on cygwin.
51798         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51799
51800 2007-11-01  Bruno Haible  <bruno@clisp.org>
51801
51802         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51803         warning.
51804         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51805         needed for POSIX compatibility.
51806
51807 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51808
51809         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51810         for compatibility with GNU.
51811
51812 2007-11-01  Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51815         (putenv): Renamed from rpl_putenv. Change argument type from
51816         'const char *' to 'char *'.
51817         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51818         of defining putenv in config.h, just set REPLACE_PUTENV.
51819         * modules/putenv (Depends-on): Add stdlib.
51820         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51821         (Include): Use <stdlib.h>.
51822         * lib/stdlib.in.h (putenv): New declaration.
51823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51824         REPLACE_PUTENV.
51825         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51826         REPLACE_PUTENV.
51827         Needed for MacOS X 10.5.0.
51828         Reported by Peter O'Gorman <peter@pogma.com>.
51829
51830 2007-11-01  Jim Meyering  <meyering@redhat.com>
51831
51832         Treat an empty date string exactly like "0".
51833         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51834         if the remaining date string (to be parsed) is empty, use "0".
51835         Reported by Mischa Molhoek and discussed in this thread:
51836         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51837
51838 2007-10-31  Bruno Haible  <bruno@clisp.org>
51839
51840         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51841         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51842         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51843         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51844         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51845         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51846
51847 2007-10-31  Bruno Haible  <bruno@clisp.org>
51848
51849         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51850         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51851         (AC_TYPE_LONG_LONG_INT): Use it.
51852         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51853         it as well.
51854         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51855         to m4/longlong.m4.
51856         * modules/stdint (Files): Remove m4/ulonglong.m4.
51857         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51858         m4/ulonglong.m4.
51859         * modules/strtoumax (Files): Likewise.
51860
51861 2007-10-30  Bruno Haible  <bruno@clisp.org>
51862
51863         * modules/xvasprintf-posix: New file.
51864         Suggested by Eric Blake.
51865
51866 2007-10-30  Bruno Haible  <bruno@clisp.org>
51867
51868         * modules/xprintf-posix-tests: New file.
51869         * tests/test-xprintf-posix.sh: New file.
51870         * tests/test-xprintf-posix.c: New file.
51871         * tests/test-xfprintf-posix.c: New file.
51872
51873         * modules/xprintf-posix: New file.
51874
51875 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51876
51877         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51878         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51879         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51880
51881 2007-10-29  Bruno Haible  <bruno@clisp.org>
51882
51883         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51884         contain the special marker '_cv_'.
51885         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51886         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51887         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51888         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51889         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51890         Reported by Ralf Wildenhues.
51891
51892 2007-10-29  Bruno Haible  <bruno@clisp.org>
51893
51894         * gnulib-tool (func_import): When --lgpl is not specified, set
51895         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51896         GPLv3.
51897         Reported by Simon Josefsson.
51898
51899 2007-10-28  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51902         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51903         HAVE_DECL_ISFINITE.
51904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51905         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51906         HAVE_DECL_ISFINITE.
51907
51908 2007-10-28  Bruno Haible  <bruno@clisp.org>
51909
51910         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51911         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51912
51913 2007-10-28  Bruno Haible  <bruno@clisp.org>
51914
51915         Fix link errors with Sun C 5.0 on Solaris 10.
51916         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51917         function is declared but not present in the compiler's libm.
51918         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51919         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51920         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51921         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51922         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51923         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51924         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51926         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51927         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51928         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51929         HAVE_DECL_FLOORL.
51930
51931 2007-10-28  Bruno Haible  <bruno@clisp.org>
51932
51933         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51934         gl_FUNC_FLOORL. Cache the result.
51935         (gl_FUNC_FLOORL): Use it.
51936         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51937         gl_FUNC_CEILL. Cache the result.
51938         (gl_FUNC_CEILL): Use it.
51939
51940         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51941         gl_FUNC_FLOOR. Cache the result.
51942         (gl_FUNC_FLOOR): Use it.
51943         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51944         gl_FUNC_CEIL. Cache the result.
51945         (gl_FUNC_CEIL): Use it.
51946
51947         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51948         gl_FUNC_FLOORF. Cache the result.
51949         (gl_FUNC_FLOORF): Use it.
51950         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51951         gl_FUNC_CEILF. Cache the result.
51952         (gl_FUNC_CEILF): Use it.
51953
51954 2007-10-28  Bruno Haible  <bruno@clisp.org>
51955
51956         * gnulib-tool: Allow specifying the LGPL version number through
51957         --lgpl=2 or --lgpl=3.
51958         (func_usage): Document --lgpl with argument.
51959         Handle --lgpl=... arguments.
51960         (func_import): Recognize also gl_LGPL calls with an argument. When
51961         --lgpl=2 is used and the module's license is just LGPL, report an
51962         error. Set sed_transform_lib_file according to the lgpl variable. In
51963         the generated files, use --lgpl or gl_LGPL invocations with argument,
51964         if necessary.
51965         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51966         an LGPv2+ license.
51967         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51968         gl_LGPL macro.
51969
51970 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51971             Bruno Haible  <bruno@clisp.org>
51972
51973         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51974         (u16_uctomb_aux): Likewise.
51975         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51976         !HAVE_INLINE.
51977         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51978
51979 2007-10-28  Bruno Haible  <bruno@clisp.org>
51980
51981         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51982         Invoke AM_GETTEXT_OPTION if it exists.
51983         * modules/vasprintf: Likewise.
51984         * modules/verror: Likewise.
51985         * modules/xprintf: Likewise.
51986         * modules/xvasprintf: Likewise.
51987
51988 2007-10-27  Ben Pfaff  <blp@gnu.org>
51989
51990         * lib/math.in.h: Define isfinite macro and prototypes for
51991         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51992         implementations.
51993         * m4/math_h.m4: New substitutions for isfinite module.
51994         * lib/isfinite.c: New file.
51995         * m4/isfinite.m4: New file.
51996         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51997         * modules/isfinite: New file.
51998         * modules/isfinite-tests: New file.
51999         * tests/tests-isfinite.c: New file.
52000         * doc/functions/isfinite.texi: Mention isfinite module.
52001         * MODULES.html.sh: Mention new module.
52002
52003 2007-10-27  Ben Pfaff  <blp@gnu.org>
52004
52005         Ralf Wildenhues reported that Tru64 4.0D declares the round
52006         functions but does not have definitions.
52007         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52008         cannot be found in any library, set the output variable to
52009         "missing" instead of "".
52010         * m4/round.m4: Also use our substitute if we cannot find round in
52011         any library, even if it is declared.
52012         * m4/roundf.m4: Likewise for roundf.
52013         * m4/roundl.m4: Likewise for roundl.
52014         * lib/math.in.h: Undefine roundf, round, roundl before defining
52015         their replacements, to allow for hypothetical systems where these
52016         may be defined as macros but not available in libraries.
52017
52018 2007-10-27  Bruno Haible  <bruno@clisp.org>
52019
52020         * doc/gnulib.texi: Invoke @firstparagraphindent.
52021         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52022         changes in gnulib.
52023         (Source changes): New section.
52024
52025 2007-10-26  Bruno Haible  <bruno@clisp.org>
52026
52027         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52028         borrowed from autoconf.
52029
52030 2007-10-26  Bruno Haible  <bruno@clisp.org>
52031
52032         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52033         strerror returned the empty string. Needed on HP-UX 11.00.
52034
52035 2007-10-24  Micah Cowan  <micah@cowan.name>
52036
52037         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52038         * build-aux/bootstrap: Remove support for now-unnecessary option,
52039         --cvs-user, and envvars CVS_USER, CVS_RSH.
52040
52041 2007-10-24  Jim Meyering  <meyering@redhat.com>
52042
52043         Avoid diagnostics from sha1sum when there is no cached checksum.
52044         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52045         if the po.s1 file hasn't been created yet.
52046
52047         * build-aux/bootstrap: Sync from coreutils:
52048         2007-10-24  Jim Meyering  <meyering@redhat.com>
52049         Get gnulib from the git repository, not from an obsolete cvs one.
52050         * build-aux/bootstrap: Suggestion from Micah Cowan.
52051         2007-10-04  Jim Meyering  <jim@meyering.net>
52052         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52053         (update_po_files): Work also when there are no .po files in po/.
52054
52055 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52056
52057         * README: Append ".git" to git and cg examples.
52058         Problem reported by Benoit Sigoure.
52059
52060 2007-10-23  Micah Cowan  <micah@cowan.name>
52061
52062         * users.txt: Add wget.
52063
52064 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52065
52066         Fix linking of some unistdio tests on FreeBSD.
52067         * modules/unistdio/u16-vsnprintf-tests
52068         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52069         * modules/unistdio/u16-vsprintf-tests
52070         (test_u16_vsnprintf1_LDADD): Likewise.
52071         * modules/unistdio/u32-vsnprintf-tests
52072         (test_u32_vsnprintf1_LDADD): Likewise.
52073         * modules/unistdio/u32-vsprintf-tests
52074         (test_u32_vsprintf1_LDADD): Likewise.
52075         * modules/unistdio/u8-vsnprintf-tests
52076         (test_u8_vsnprintf1_LDADD): Likewise.
52077         * modules/unistdio/u8-vsprintf-tests
52078         (test_u8_vsprintf1_LDADD): Likewise.
52079         * modules/unistdio/ulc-vsnprintf-tests
52080         (test_ulc_vsnprintf1_LDADD): Likewise.
52081         * modules/unistdio/ulc-vsprintf-tests
52082         (test_ulc_vsprintf1_LDADD): Likewise.
52083
52084         Fix linking of some uniconv tests on FreeBSD.
52085         * modules/uniconv/u16-conv-from-enc-tests
52086         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52087         * modules/uniconv/u16-conv-to-enc-tests
52088         (test_u16_conv_to_enc_LDADD): Likewise.
52089         * modules/uniconv/u16-strconv-from-enc-tests
52090         (test_u16_strconv_from_enc_LDADD): Likewise.
52091         * modules/uniconv/u16-strconv-to-enc-tests
52092         (test_u16_strconv_to_enc_LDADD): Likewise.
52093         * modules/uniconv/u32-conv-from-enc-tests
52094         (test_u32_conv_from_enc_LDADD): Likewise.
52095         * modules/uniconv/u32-conv-to-enc-tests
52096         (test_u32_conv_to_enc_LDADD): Likewise.
52097         * modules/uniconv/u32-strconv-from-enc-tests
52098         (test_u32_strconv_from_enc_LDADD): Likewise.
52099         * modules/uniconv/u32-strconv-to-enc-tests
52100         (test_u32_strconv_to_enc_LDADD): Likewise.
52101         * modules/uniconv/u8-conv-from-enc-tests
52102         (test_u8_conv_from_enc_LDADD): Likewise.
52103         * modules/uniconv/u8-conv-to-enc-tests
52104         (test_u8_conv_to_enc_LDADD): Likewise.
52105         * modules/uniconv/u8-strconv-from-enc-tests
52106         (test_u8_strconv_from_enc_LDADD): Likewise.
52107         * modules/uniconv/u8-strconv-to-enc-tests
52108         (test_u8_strconv_to_enc_LDADD): Likewise.
52109
52110 2007-10-22  Bruno Haible  <bruno@clisp.org>
52111
52112         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52113         size.
52114
52115 2007-10-22  Eric Blake  <ebb9@byu.net>
52116
52117         Tweak x*printf documentation.
52118         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52119         variable name and comments.
52120         Suggested by Bruno Haible.
52121
52122 2007-10-22  Bruno Haible  <bruno@clisp.org>
52123
52124         * lib/acl.c (copy_acl): Fix file name in comment.
52125
52126 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52127
52128         Fix Tru64 problem with stdbool.h.
52129         * lib/stdbool.in.h (false, true):
52130         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52131         Don't declare as an enum in this situation; it runs afoul of Tru64.
52132         Problem reported by Steven M. Schweda in
52133         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52134
52135 2007-10-22  Eric Blake  <ebb9@byu.net>
52136
52137         Also wrap vf?printf.
52138         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52139         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52140         (xvprintf, xvfprintf): New functions.
52141
52142 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52143
52144         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52145         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52146
52147         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52148         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52149
52150 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52151
52152         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52153         by Bruno Haible.
52154
52155 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52156
52157         * lib/getloadavg.c
52158         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52159         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52160
52161         * tests/test-i-ring.c: Work for C89.
52162
52163 2007-10-22  Bruno Haible  <bruno@clisp.org>
52164
52165         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52166         -1u, in preprocessor expression, so that we don't test for the bug
52167         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52169
52170 2007-10-22  Eric Blake  <ebb9@byu.net>
52171
52172         * tests/test-yesno.sh: Silence stderr during test.
52173
52174 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52175
52176         * modules/crypto/gc-camellia: New file.
52177
52178         * m4/gc-camellia.m4: New file.
52179
52180         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52181
52182         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52183
52184 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52185
52186         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52187         --help to stdout.  Reported by sms@antinode.org (Steven
52188         M. Schweda).
52189
52190 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52191
52192         * users.txt: Fix link to libksba.
52193
52194 2007-10-21  Ben Pfaff  <blp@gnu.org>
52195
52196         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52197         round.c roundf implementation that depends on floorf and ceilf to
52198         be tested unconditionally.
52199
52200 2007-10-21  Ben Pfaff  <blp@gnu.org>
52201
52202         * m4/check-libm-func.m4: Removed.
52203         * m4/check-math-lib.m4: New file.
52204         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52205         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52206         definition and lack of AC_LIBOBJ([roundf]).
52207         * m4/roundl.m4: Ditto, and similarly for roundl.
52208         * modules/round: Reference new m4 file.
52209         * modules/roundf: Ditto.
52210         * modules/roundl: Ditto.
52211         * tests/test-round2.c (main): Use ROUND instead of round.
52212         Bug report from Bruno Haible.
52213
52214 2007-10-21  Bruno Haible  <bruno@clisp.org>
52215
52216         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52217         context.
52218
52219 2007-10-21  Bruno Haible  <bruno@clisp.org>
52220
52221         * tests/test-wcwidth.c (main): Allow negative result for some control
52222         characters.
52223
52224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52225         Needed on OSF/1 5.1.
52226
52227 2007-10-21  Bruno Haible  <bruno@clisp.org>
52228
52229         * tests/test-floorf1.c: Include isnanf.h.
52230         (main): Use isnanf() instead of isnan().
52231         * tests/test-ceilf1.c: Include isnanf.h.
52232         (main): Use isnanf() instead of isnan().
52233         * tests/test-truncf1.c: Include isnanf.h.
52234         (main): Use isnanf() instead of isnan().
52235         * tests/test-roundf1.c: Include isnanf.h.
52236         (main): Use isnanf() instead of isnan().
52237
52238 2007-10-21  Eric Blake  <ebb9@byu.net>
52239
52240         * users.txt: Update URL for m4.
52241
52242 2007-10-21  Bruno Haible  <bruno@clisp.org>
52243
52244         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52245
52246 2007-10-21  Bruno Haible  <bruno@clisp.org>
52247
52248         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52249         Git's management files if the CVS files are not present.
52250
52251 2007-10-20  Bruno Haible  <bruno@clisp.org>
52252
52253         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52254         gcc-3.4.x.
52255
52256 2007-10-20  Ben Pfaff  <blp@gnu.org>
52257
52258         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52259         implementations.
52260         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52261         * lib/round.c: New file.
52262         * lib/roundf.c: New file.
52263         * lib/roundl.c: New file.
52264         * m4/round.m4: New file.
52265         * m4/roundf.m4: New file.
52266         * m4/roundl.m4: New file.
52267         * m4/check-libm-func-m4: New file.
52268         * modules/math: Replace round, roundf, roundl related @VARS@ in
52269         math.in.h.
52270         * modules/round: New file.
52271         * modules/round-tests: New file.
52272         * modules/roundf: New file.
52273         * modules/roundf-tests: New file.
52274         * modules/roundl: New file.
52275         * modules/roundl-tests: New file.
52276         * tests/test-round1.c: New file.
52277         * tests/test-round2.c: New file.
52278         * tests/test-roundf1.c: New file.
52279         * tests/test-roundf2.c: New file.
52280         * tests/test-roundl.c: New file.
52281         * doc/functions/round.texi: Mention round module.
52282         * doc/functions/roundf.texi: Mention roundf module.
52283         * doc/functions/roundl.texi: Mention roundl module.
52284         * MODULES.html.sh: Mention new modules.
52285         Thanks to Bruno Haible for suggestions.
52286
52287 2007-10-20  Jim Meyering  <meyering@redhat.com>
52288
52289         * lib/xprintf.c: Include <config.h> unconditionally.
52290
52291         Change xprintf's license to GPL.
52292         * modules/xprintf (License): s/LGPL/GPL/, since this module
52293         depends on modules (exit and exitfail) which are GPL.
52294         Suggestion from Bruno Haible.
52295
52296         xprintf fixes.
52297         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52298         Use a clearer diagnostic.
52299         Patch from Bruno Haible.
52300
52301 2007-10-20  Bruno Haible  <bruno@clisp.org>
52302
52303         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52304         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52305         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52306
52307 2007-10-20  Bruno Haible  <bruno@clisp.org>
52308
52309         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52310         precision in the comparison result > x - 1 or similar.
52311         * tests/test-ceilf2.c (correct_result_p): Likewise.
52312         * tests/test-truncf2.c (correct_result_p): Likewise.
52313         * tests/test-trunc2.c (correct_result_p): Likewise.
52314         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52315
52316 2007-10-20  Bruno Haible  <bruno@clisp.org>
52317
52318         * modules/ceil: New file.
52319         * m4/ceil.m4: New file.
52320         * doc/functions/ceil.texi: Mention the 'ceil' module.
52321
52322 2007-10-20  Bruno Haible  <bruno@clisp.org>
52323
52324         * modules/floor: New file.
52325         * m4/floor.m4: New file.
52326         * doc/functions/floor.texi: Mention the 'floor' module.
52327
52328 2007-10-20  Bruno Haible  <bruno@clisp.org>
52329
52330         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52331         of %a.
52332         * modules/floorf-tests (Depends-on): Likewise.
52333         * modules/truncf-tests (Depends-on): Likewise.
52334         * modules/trunc-tests (Depends-on): Likewise.
52335         Reported by Ben Pfaff.
52336
52337 2007-10-19  Jim Meyering  <meyering@redhat.com>
52338
52339         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52340         Don't bother testing specific errno values.  Just test ferror.
52341
52342         New module: xprintf
52343         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52344
52345 2007-10-19  Bruno Haible  <bruno@clisp.org>
52346
52347         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52348         syntax.
52349         * modules/javaexec (Makefile.am): Likewise.
52350         * modules/relocatable-prog (Makefile.am): Likewise.
52351         Suggested by Jim Meyering.
52352
52353 2007-10-18  Bruno Haible  <bruno@clisp.org>
52354
52355         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52356         Reported by Jim Meyering.
52357
52358 2007-10-18  Eric Blake  <ebb9@byu.net>
52359
52360         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52361
52362 2007-10-18  Bruno Haible  <bruno@clisp.org>
52363
52364         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52365         the format string into writable memory. Needed in Fortify conditions.
52366
52367 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52368             Bruno Haible  <bruno@clisp.org>
52369
52370         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52371         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52372         * modules/trim (Depends-on): Add mbchar.
52373         (configure.ac): Add gl_FUNC_MBRTOWC.
52374         (Makefile.am): Augment lib_SOURCES.
52375
52376 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52377
52378         Modify glob.c to use fstatat and dirfd, to simplify it.
52379         Suggested by Eric Blake.
52380         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52381         Don't include <stdbool.h>; not used.
52382         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52383         (link_exists_p): Simplify implementation, since we can now assume
52384         dirfd and fstatat.
52385         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52386
52387 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52388
52389         * gnulib-tool (func_get_dependencies): Fix sed script to
52390         match only tests.
52391
52392 2007-10-17  Bruno Haible  <bruno@clisp.org>
52393
52394         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52395         allow locale names without encoding suffix.
52396         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52397         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52398
52399 2007-10-16  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52402         * lib/getgroups.c (getgroups): Likewise.
52403         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52404
52405 2007-10-16  Bruno Haible  <bruno@clisp.org>
52406
52407         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52408         * modules/malloc-posix (License): Likewise.
52409         * modules/realloc-posix (License): Likewise.
52410         * modules/calloc-posix (License): Likewise.
52411         * modules/intprops (License): Change from GPL to LGPL, with
52412         Paul Eggert's approval.
52413
52414 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52415
52416         Merge glibc changes into lib/glob.c.
52417
52418         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52419         2007-10-15 04:59:03 UTC.  Here are the changes:
52420
52421         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52422
52423         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52424
52425         * lib/glob.c: Add some branch prediction throughout.
52426
52427         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52428
52429         [BZ #5103]
52430         * lib/glob.c (glob): Recognize patterns starting \/.
52431
52432         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52433
52434         [BZ #3996]
52435         * lib/glob.c (attribute_hidden): Define if not defined.
52436         (glob): Unescape dirname, filename or username when needed and not
52437         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52438         is NULL.  Handle unescaped [ in pattern without closing ].
52439         Don't pass GLOB_CHECK down to recursive glob for directories.
52440         (__glob_pattern_type): New function.
52441         (__glob_pattern_p): Implement using __glob_pattern_type.
52442         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52443         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52444         Remove unreachable code.
52445
52446         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52447
52448         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52449         explain why there are no leaks.
52450
52451         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52452
52453         [BZ #3253]
52454         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52455         time, rather allocate increasingly bigger arrays of pointers, if
52456         possible with alloca, if too large with malloc.
52457
52458 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52459
52460         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52461         Problem reported by H.Merijn Brand in
52462         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52463         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52464         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52465
52466 2007-10-15  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52469         with explicit rpl_ prefix.
52470         * lib/fopen.c (fopen): Likewise.
52471         * lib/freopen.c (freopen): Likewise.
52472         * lib/iconv.c (iconv): Likewise.
52473         * lib/iconv_close.c (iconv_close): Likewise.
52474
52475 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52476
52477         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52478
52479 2007-10-15  Bruno Haible  <bruno@clisp.org>
52480
52481         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52482         <stddef.h> instead of <stdlib.h> since we only need NULL.
52483         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52484
52485 2007-10-15  Bruno Haible  <bruno@clisp.org>
52486
52487         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52488         Replace paragraph talking about LIBOBJS.
52489         Reported by Colin Watson <cjwatson@debian.org>.
52490
52491 2007-10-15  Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52494         <stdlib.h> before using NULL.
52495
52496 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52497
52498         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52499         Reported by Albert Chin <china@thewrittenword.com>.
52500
52501 2007-10-14  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/iconv_open-utf-tests: New file.
52504         * tests/test-iconv-utf.c: New file.
52505
52506         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52507         * modules/iconv_open-utf: New file.
52508         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52509         (iconv, iconv_close): New declarations.
52510         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52511         be defined.
52512         (iconv_open): Add special handling of conversion between UTF-8 and
52513         UTF-{16,32}{BE,LE}.
52514         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52515         * lib/iconv_close.c: New file.
52516         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52517         gl_FUNC_ICONV_OPEN.
52518         (gl_FUNC_ICONV_OPEN): Use it.
52519         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52520         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52521         and REPLACE_ICONV_UTF.
52522         * modules/iconv_open (Depends-on): Add c-strcase.
52523         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52524         ICONV_CONST.
52525         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52526
52527 2007-10-13  Albert Chin  <china@thewrittenword.com>
52528             Bruno Haible  <bruno@clisp.org>
52529
52530         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52531         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52532
52533 2007-10-13  Bruno Haible  <bruno@clisp.org>
52534
52535         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52536         defined, use the ISO C99 inline semantics.
52537         * lib/argp.h (ARGP_EI): Likewise.
52538
52539 2007-10-13  Bruno Haible  <bruno@clisp.org>
52540
52541         Handle 'inline' change in gcc 4.3.0.
52542         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52543         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52544         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52545         argp_fmtstream_point): Disable 'extern' declaration if the function
52546         definition is going to be provided inline.
52547         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52548         semantics, not the ISO C99 inline semantics.
52549         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52550         'extern' declaration if the function definition is going to be provided
52551         inline.
52552         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52553         the GNU C inline semantics, not the ISO C99 inline semantics. With
52554         GCC 4.2, avoid a warning.
52555
52556 2007-10-13  Bruno Haible  <bruno@clisp.org>
52557
52558         * lib/freading.h (freading): Enable the use of __freading for
52559         glibc >= 2.7.
52560         * lib/freading.c (freading): Likewise.
52561
52562 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52565         "warning: C99 inline functions are not supported; using GNU89".
52566
52567 2007-10-12  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52570         of 2.
52571         * tests/test-ceilf2.c: New file.
52572         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52573
52574         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52575         * modules/ceilf-tests: Update.
52576
52577 2007-10-12  Bruno Haible  <bruno@clisp.org>
52578
52579         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52580         of 2.
52581         * tests/test-floorf2.c: New file.
52582         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52583
52584         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52585         * modules/floorf-tests: Update.
52586
52587 2007-10-12  Bruno Haible  <bruno@clisp.org>
52588
52589         * tests/test-trunc2.c: New file.
52590         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52591
52592         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52593         * modules/trunc-tests: Update.
52594
52595 2007-10-12  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52598         of 2.
52599         * tests/test-truncf2.c: New file.
52600         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52601
52602         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52603         * modules/truncf-tests: Update.
52604
52605 2007-10-11  Eric Blake  <ebb9@byu.net>
52606
52607         Don't claim strerror is broken on Interix.
52608         * doc/functions/strerror.texi (strerror): Known broken systems are
52609         now Solaris 8, and not Interix.
52610         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52611         Interix on cross-compile.
52612         Reported by Martin Koeppe in
52613         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52614
52615 2007-10-11  Bruno Haible  <bruno@clisp.org>
52616
52617         * modules/i-ring-tests: New file.
52618         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52619         instead of assert.
52620
52621 2007-10-11  Bruno Haible  <bruno@clisp.org>
52622
52623         * modules/filenamecat-tests: New file.
52624         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52625         * lib/filenamecat.c: Remove test code.
52626
52627 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52628
52629         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52630
52631         * lib/strerror.c: Include <string.h> always, to test interface,
52632         and to remove the need for the dummy.
52633         Include intprops.h to compute width instead of doing it ourselves
52634         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52635         (strerror): Define it to return NULL if there's no system strerror.
52636         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52637         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52638         ancient pre-strerror Unix systems well any more.  Saying "unknown
52639         system error" is enough.
52640         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52641         simpler strerror.c implementation.
52642         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52643         Simplify the tests to reflect the simpler strerror implementation.
52644         * modules/strerror (Depends-on): Add intprops.
52645
52646 2007-10-09  Eric Blake  <ebb9@byu.net>
52647
52648         Silence test-fpending.
52649         * modules/fpending-tests (Files): Add wrapper script.
52650         * tests/test-fpending.sh: New file.
52651
52652 2007-10-09  Bruno Haible  <bruno@clisp.org>
52653
52654         * MODULES.html.sh (func_module): Don't create a hyperlink for
52655         function names like 'printf_frexp'.
52656         (Misc): Add crc, memxor.
52657         (Characteristics of floating types): New section.
52658         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52659         isnanf-nolibm, signbit, trunc, truncf, truncl.
52660         (Enhancements for ISO C 99 functions): New subsection Input/output.
52661         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52662         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52663         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52664         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52665         (Enhancements for POSIX:2001 functions): Add chdir-long.
52666         (File system functions): Add areadlink, chdir-safer, read-file.
52667         Remove cycle-check.
52668         (File system as inode set): New section.
52669         (Date and time): Add gethrxtime.
52670         (Multithreading): Add openmp.
52671         (Internationalization functions): Add localename.
52672         (Unicode string functions): Add unistr/u*-mbsnlen.
52673         (Support for maintaining and releasing projects): Add git-version-gen.
52674         (Lone files): Remove directories.
52675
52676 2007-10-08  Ben Pfaff  <blp@gnu.org>
52677
52678         * lib/xmalloca.h: Fix typo in comment.
52679
52680 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52681
52682         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52683         when avoiding problems with integer overflow.  Use a portable test
52684         instead.
52685
52686 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52687
52688         * modules/dummy (License): Change to LGPLv2+.
52689         * modules/float (License): Likewise
52690         * modules/realloc (License): Likewise
52691         * modules/stdlib (License): Likewise
52692
52693 2007-10-07  Bruno Haible  <bruno@clisp.org>
52694
52695         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52696         * floor.c (TWO_MANT_DIG): Likewise.
52697         * ceil.c (TWO_MANT_DIG): Likewise.
52698         Reported by Ben Pfaff.
52699
52700 2007-10-07  Bruno Haible  <bruno@clisp.org>
52701
52702         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52703         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52704         * lib/frexp.c (FUNC): Likewise.
52705         * lib/printf-frexp.h (printf_frexp): Likewise.
52706         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52707         * lib/printf-frexp.c (FUNC): Likewise.
52708         Suggested by Jim Meyering.
52709
52710 2007-10-07  Jim Meyering  <meyering@redhat.com>
52711
52712         Make xnanosleep's integer overflow test more robust.
52713         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52714         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52715
52716 2007-10-07  Bruno Haible  <bruno@clisp.org>
52717
52718         * NEWS: Mention the license change.
52719
52720         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52721         abbreviations in the modules files.
52722
52723         Change copyright notice from GPLv2+ to GPLv3+.
52724         * README: Change copyright notice.
52725         * MODULES.html.sh: Likewise.
52726         * build-aux/bootstrap.conf: Likewise.
52727         * build-aux/config.libpath: Likewise.
52728         * build-aux/csharpcomp.sh.in: Likewise.
52729         * build-aux/csharpexec.sh.in: Likewise.
52730         * build-aux/install-reloc: Likewise.
52731         * build-aux/javacomp.sh.in: Likewise.
52732         * build-aux/javaexec.sh.in: Likewise.
52733         * build-aux/ldd.sh.in: Likewise.
52734         * build-aux/reloc-ldflags: Likewise.
52735         * build-aux/relocatable.sh.in: Likewise.
52736         * build-aux/x-to-1.in: Likewise.
52737         * check-module: Likewise.
52738         * config/srclistvars.sh: Likewise.
52739         * gnulib-tool: Likewise.
52740         * lib/acl-internal.h: Likewise.
52741         * lib/acl.c: Likewise.
52742         * lib/acl.h: Likewise.
52743         * lib/acl_entries.c: Likewise.
52744         * lib/areadlink-with-size.c: Likewise.
52745         * lib/areadlink.c: Likewise.
52746         * lib/areadlink.h: Likewise.
52747         * lib/argmatch.c: Likewise.
52748         * lib/argmatch.h: Likewise.
52749         * lib/argp-ba.c: Likewise.
52750         * lib/argp-eexst.c: Likewise.
52751         * lib/argp-fmtstream.c: Likewise.
52752         * lib/argp-fmtstream.h: Likewise.
52753         * lib/argp-fs-xinl.c: Likewise.
52754         * lib/argp-help.c: Likewise.
52755         * lib/argp-namefrob.h: Likewise.
52756         * lib/argp-parse.c: Likewise.
52757         * lib/argp-pin.c: Likewise.
52758         * lib/argp-pv.c: Likewise.
52759         * lib/argp-pvh.c: Likewise.
52760         * lib/argp-xinl.c: Likewise.
52761         * lib/argp.h: Likewise.
52762         * lib/at-func.c: Likewise.
52763         * lib/atanl.c: Likewise.
52764         * lib/backupfile.c: Likewise.
52765         * lib/backupfile.h: Likewise.
52766         * lib/basename.c: Likewise.
52767         * lib/binary-io.h: Likewise.
52768         * lib/byteswap.in.h: Likewise.
52769         * lib/c-stack.c: Likewise.
52770         * lib/c-stack.h: Likewise.
52771         * lib/c-strcasestr.c: Likewise.
52772         * lib/c-strcasestr.h: Likewise.
52773         * lib/c-strstr.c: Likewise.
52774         * lib/c-strstr.h: Likewise.
52775         * lib/c-strtod.c: Likewise.
52776         * lib/calloc.c: Likewise.
52777         * lib/canon-host.c: Likewise.
52778         * lib/canon-host.h: Likewise.
52779         * lib/canonicalize-lgpl.c: Likewise.
52780         * lib/canonicalize.c: Likewise.
52781         * lib/canonicalize.h: Likewise.
52782         * lib/ceil.c: Likewise.
52783         * lib/ceilf.c: Likewise.
52784         * lib/ceill.c: Likewise.
52785         * lib/chdir-long.c: Likewise.
52786         * lib/chdir-long.h: Likewise.
52787         * lib/chdir-safer.c: Likewise.
52788         * lib/chdir-safer.h: Likewise.
52789         * lib/chown.c: Likewise.
52790         * lib/classpath.c: Likewise.
52791         * lib/classpath.h: Likewise.
52792         * lib/clean-temp.c: Likewise.
52793         * lib/clean-temp.h: Likewise.
52794         * lib/cloexec.c: Likewise.
52795         * lib/close-stream.c: Likewise.
52796         * lib/closein.c: Likewise.
52797         * lib/closein.h: Likewise.
52798         * lib/closeout.c: Likewise.
52799         * lib/closeout.h: Likewise.
52800         * lib/concat-filename.c: Likewise.
52801         * lib/copy-file.c: Likewise.
52802         * lib/copy-file.h: Likewise.
52803         * lib/count-one-bits.h: Likewise.
52804         * lib/crc.c: Likewise.
52805         * lib/crc.h: Likewise.
52806         * lib/creat-safer.c: Likewise.
52807         * lib/csharpcomp.c: Likewise.
52808         * lib/csharpcomp.h: Likewise.
52809         * lib/csharpexec.c: Likewise.
52810         * lib/csharpexec.h: Likewise.
52811         * lib/cycle-check.c: Likewise.
52812         * lib/cycle-check.h: Likewise.
52813         * lib/diacrit.c: Likewise.
52814         * lib/diacrit.h: Likewise.
52815         * lib/diffseq.h: Likewise.
52816         * lib/dirchownmod.c: Likewise.
52817         * lib/dirent.in.h: Likewise.
52818         * lib/dirfd.c: Likewise.
52819         * lib/dirfd.h: Likewise.
52820         * lib/dirname.c: Likewise.
52821         * lib/dirname.h: Likewise.
52822         * lib/dummy.c: Likewise.
52823         * lib/dup-safer.c: Likewise.
52824         * lib/dup2.c: Likewise.
52825         * lib/eealloc.h: Likewise.
52826         * lib/error.c: Likewise.
52827         * lib/error.h: Likewise.
52828         * lib/euidaccess.c: Likewise.
52829         * lib/exclude.c: Likewise.
52830         * lib/exclude.h: Likewise.
52831         * lib/execute.c: Likewise.
52832         * lib/execute.h: Likewise.
52833         * lib/exitfail.c: Likewise.
52834         * lib/exitfail.h: Likewise.
52835         * lib/expl.c: Likewise.
52836         * lib/fatal-signal.c: Likewise.
52837         * lib/fatal-signal.h: Likewise.
52838         * lib/fbufmode.c: Likewise.
52839         * lib/fbufmode.h: Likewise.
52840         * lib/fchdir.c: Likewise.
52841         * lib/fchmodat.c: Likewise.
52842         * lib/fchownat.c: Likewise.
52843         * lib/fcntl--.h: Likewise.
52844         * lib/fcntl-safer.h: Likewise.
52845         * lib/fcntl.in.h: Likewise.
52846         * lib/fd-safer.c: Likewise.
52847         * lib/fflush.c: Likewise.
52848         * lib/file-has-acl.c: Likewise.
52849         * lib/file-set.c: Likewise.
52850         * lib/file-type.c: Likewise.
52851         * lib/file-type.h: Likewise.
52852         * lib/fileblocks.c: Likewise.
52853         * lib/filemode.c: Likewise.
52854         * lib/filemode.h: Likewise.
52855         * lib/filename.h: Likewise.
52856         * lib/filenamecat.c: Likewise.
52857         * lib/filenamecat.h: Likewise.
52858         * lib/findprog.c: Likewise.
52859         * lib/findprog.h: Likewise.
52860         * lib/float.in.h: Likewise.
52861         * lib/floor.c: Likewise.
52862         * lib/floorf.c: Likewise.
52863         * lib/floorl.c: Likewise.
52864         * lib/fopen-safer.c: Likewise.
52865         * lib/fopen.c: Likewise.
52866         * lib/fpending.c: Likewise.
52867         * lib/fpending.h: Likewise.
52868         * lib/fprintf.c: Likewise.
52869         * lib/fprintftime.h: Likewise.
52870         * lib/fpucw.h: Likewise.
52871         * lib/fpurge.c: Likewise.
52872         * lib/fpurge.h: Likewise.
52873         * lib/freadable.c: Likewise.
52874         * lib/freadable.h: Likewise.
52875         * lib/freadahead.c: Likewise.
52876         * lib/freadahead.h: Likewise.
52877         * lib/freading.c: Likewise.
52878         * lib/freading.h: Likewise.
52879         * lib/free.c: Likewise.
52880         * lib/freopen.c: Likewise.
52881         * lib/frexp.c: Likewise.
52882         * lib/frexpl.c: Likewise.
52883         * lib/fseek.c: Likewise.
52884         * lib/fseterr.c: Likewise.
52885         * lib/fseterr.h: Likewise.
52886         * lib/fstatat.c: Likewise.
52887         * lib/fstrcmp.c: Likewise.
52888         * lib/fstrcmp.h: Likewise.
52889         * lib/fsusage.c: Likewise.
52890         * lib/fsusage.h: Likewise.
52891         * lib/ftell.c: Likewise.
52892         * lib/ftello.c: Likewise.
52893         * lib/fts-cycle.c: Likewise.
52894         * lib/fts.c: Likewise.
52895         * lib/fts_.h: Likewise.
52896         * lib/full-read.c: Likewise.
52897         * lib/full-read.h: Likewise.
52898         * lib/full-write.c: Likewise.
52899         * lib/full-write.h: Likewise.
52900         * lib/fwritable.c: Likewise.
52901         * lib/fwritable.h: Likewise.
52902         * lib/fwriteerror.c: Likewise.
52903         * lib/fwriteerror.h: Likewise.
52904         * lib/fwriting.c: Likewise.
52905         * lib/fwriting.h: Likewise.
52906         * lib/gcd.c: Likewise.
52907         * lib/gcd.h: Likewise.
52908         * lib/getcwd.c: Likewise.
52909         * lib/getdate.h: Likewise.
52910         * lib/getdate.y: Likewise.
52911         * lib/getdomainname.c: Likewise.
52912         * lib/getdomainname.h: Likewise.
52913         * lib/getgroups.c: Likewise.
52914         * lib/gethostname.c: Likewise.
52915         * lib/gethrxtime.c: Likewise.
52916         * lib/gethrxtime.h: Likewise.
52917         * lib/getloadavg.c: Likewise.
52918         * lib/getndelim2.c: Likewise.
52919         * lib/getndelim2.h: Likewise.
52920         * lib/getnline.c: Likewise.
52921         * lib/getnline.h: Likewise.
52922         * lib/getopt.c: Likewise.
52923         * lib/getopt.in.h: Likewise.
52924         * lib/getopt1.c: Likewise.
52925         * lib/getopt_int.h: Likewise.
52926         * lib/getpagesize.h: Likewise.
52927         * lib/getsubopt.c: Likewise.
52928         * lib/gettime.c: Likewise.
52929         * lib/getugroups.c: Likewise.
52930         * lib/getugroups.h: Likewise.
52931         * lib/getusershell.c: Likewise.
52932         * lib/gl_anyavltree_list1.h: Likewise.
52933         * lib/gl_anyavltree_list2.h: Likewise.
52934         * lib/gl_anyhash_list1.h: Likewise.
52935         * lib/gl_anyhash_list2.h: Likewise.
52936         * lib/gl_anylinked_list1.h: Likewise.
52937         * lib/gl_anylinked_list2.h: Likewise.
52938         * lib/gl_anyrbtree_list1.h: Likewise.
52939         * lib/gl_anyrbtree_list2.h: Likewise.
52940         * lib/gl_anytree_list1.h: Likewise.
52941         * lib/gl_anytree_list2.h: Likewise.
52942         * lib/gl_anytree_oset.h: Likewise.
52943         * lib/gl_anytreehash_list1.h: Likewise.
52944         * lib/gl_anytreehash_list2.h: Likewise.
52945         * lib/gl_array_list.c: Likewise.
52946         * lib/gl_array_list.h: Likewise.
52947         * lib/gl_array_oset.c: Likewise.
52948         * lib/gl_array_oset.h: Likewise.
52949         * lib/gl_avltree_list.c: Likewise.
52950         * lib/gl_avltree_list.h: Likewise.
52951         * lib/gl_avltree_oset.c: Likewise.
52952         * lib/gl_avltree_oset.h: Likewise.
52953         * lib/gl_avltreehash_list.c: Likewise.
52954         * lib/gl_avltreehash_list.h: Likewise.
52955         * lib/gl_carray_list.c: Likewise.
52956         * lib/gl_carray_list.h: Likewise.
52957         * lib/gl_linked_list.c: Likewise.
52958         * lib/gl_linked_list.h: Likewise.
52959         * lib/gl_linkedhash_list.c: Likewise.
52960         * lib/gl_linkedhash_list.h: Likewise.
52961         * lib/gl_list.c: Likewise.
52962         * lib/gl_list.h: Likewise.
52963         * lib/gl_oset.c: Likewise.
52964         * lib/gl_oset.h: Likewise.
52965         * lib/gl_rbtree_list.c: Likewise.
52966         * lib/gl_rbtree_list.h: Likewise.
52967         * lib/gl_rbtree_oset.c: Likewise.
52968         * lib/gl_rbtree_oset.h: Likewise.
52969         * lib/gl_rbtreehash_list.c: Likewise.
52970         * lib/gl_rbtreehash_list.h: Likewise.
52971         * lib/gl_sublist.c: Likewise.
52972         * lib/gl_sublist.h: Likewise.
52973         * lib/group-member.c: Likewise.
52974         * lib/group-member.h: Likewise.
52975         * lib/hard-locale.c: Likewise.
52976         * lib/hard-locale.h: Likewise.
52977         * lib/hash-pjw.c: Likewise.
52978         * lib/hash-pjw.h: Likewise.
52979         * lib/hash-triple.c: Likewise.
52980         * lib/hash.c: Likewise.
52981         * lib/hash.h: Likewise.
52982         * lib/human.c: Likewise.
52983         * lib/human.h: Likewise.
52984         * lib/i-ring.c: Likewise.
52985         * lib/i-ring.h: Likewise.
52986         * lib/idcache.c: Likewise.
52987         * lib/imaxabs.c: Likewise.
52988         * lib/imaxdiv.c: Likewise.
52989         * lib/inet_pton.c: Likewise.
52990         * lib/inet_pton.h: Likewise.
52991         * lib/intprops.h: Likewise.
52992         * lib/inttostr.c: Likewise.
52993         * lib/inttostr.h: Likewise.
52994         * lib/inttypes.in.h: Likewise.
52995         * lib/isapipe.c: Likewise.
52996         * lib/isdir.c: Likewise.
52997         * lib/isnan.c: Likewise.
52998         * lib/isnan.h: Likewise.
52999         * lib/isnanf.c: Likewise.
53000         * lib/isnanf.h: Likewise.
53001         * lib/isnanl-nolibm.h: Likewise.
53002         * lib/isnanl.c: Likewise.
53003         * lib/isnanl.h: Likewise.
53004         * lib/javacomp.c: Likewise.
53005         * lib/javacomp.h: Likewise.
53006         * lib/javaexec.c: Likewise.
53007         * lib/javaexec.h: Likewise.
53008         * lib/javaversion.c: Likewise.
53009         * lib/javaversion.h: Likewise.
53010         * lib/javaversion.java: Likewise.
53011         * lib/lbrkprop.h: Likewise.
53012         * lib/lchmod.h: Likewise.
53013         * lib/lchown.c: Likewise.
53014         * lib/ldexpl.c: Likewise.
53015         * lib/linebreak.c: Likewise.
53016         * lib/linebreak.h: Likewise.
53017         * lib/linebuffer.c: Likewise.
53018         * lib/linebuffer.h: Likewise.
53019         * lib/locale.in.h: Likewise.
53020         * lib/logl.c: Likewise.
53021         * lib/long-options.c: Likewise.
53022         * lib/long-options.h: Likewise.
53023         * lib/lstat.c: Likewise.
53024         * lib/lstat.h: Likewise.
53025         * lib/math.in.h: Likewise.
53026         * lib/mbchar.c: Likewise.
53027         * lib/mbchar.h: Likewise.
53028         * lib/mbfile.h: Likewise.
53029         * lib/mbiter.h: Likewise.
53030         * lib/mbscasecmp.c: Likewise.
53031         * lib/mbscasestr.c: Likewise.
53032         * lib/mbschr.c: Likewise.
53033         * lib/mbscspn.c: Likewise.
53034         * lib/mbslen.c: Likewise.
53035         * lib/mbsncasecmp.c: Likewise.
53036         * lib/mbsnlen.c: Likewise.
53037         * lib/mbspbrk.c: Likewise.
53038         * lib/mbspcasecmp.c: Likewise.
53039         * lib/mbsrchr.c: Likewise.
53040         * lib/mbssep.c: Likewise.
53041         * lib/mbsspn.c: Likewise.
53042         * lib/mbsstr.c: Likewise.
53043         * lib/mbstok_r.c: Likewise.
53044         * lib/mbswidth.c: Likewise.
53045         * lib/mbswidth.h: Likewise.
53046         * lib/mbuiter.h: Likewise.
53047         * lib/memcasecmp.c: Likewise.
53048         * lib/memcasecmp.h: Likewise.
53049         * lib/memchr.c: Likewise.
53050         * lib/memcmp.c: Likewise.
53051         * lib/memcoll.c: Likewise.
53052         * lib/memcoll.h: Likewise.
53053         * lib/memcpy.c: Likewise.
53054         * lib/memrchr.c: Likewise.
53055         * lib/mkancesdirs.c: Likewise.
53056         * lib/mkdir-p.c: Likewise.
53057         * lib/mkdir-p.h: Likewise.
53058         * lib/mkdir.c: Likewise.
53059         * lib/mkdirat.c: Likewise.
53060         * lib/mkdtemp.c: Likewise.
53061         * lib/mkstemp-safer.c: Likewise.
53062         * lib/mkstemp.c: Likewise.
53063         * lib/modechange.c: Likewise.
53064         * lib/modechange.h: Likewise.
53065         * lib/mountlist.c: Likewise.
53066         * lib/mountlist.h: Likewise.
53067         * lib/mpsort.c: Likewise.
53068         * lib/nanosleep.c: Likewise.
53069         * lib/obstack.c: Likewise.
53070         * lib/obstack.h: Likewise.
53071         * lib/open-safer.c: Likewise.
53072         * lib/open.c: Likewise.
53073         * lib/openat-die.c: Likewise.
53074         * lib/openat-priv.h: Likewise.
53075         * lib/openat-proc.c: Likewise.
53076         * lib/openat.c: Likewise.
53077         * lib/openat.h: Likewise.
53078         * lib/pagealign_alloc.c: Likewise.
53079         * lib/pagealign_alloc.h: Likewise.
53080         * lib/physmem.c: Likewise.
53081         * lib/physmem.h: Likewise.
53082         * lib/pipe-safer.c: Likewise.
53083         * lib/pipe.c: Likewise.
53084         * lib/pipe.h: Likewise.
53085         * lib/posixtm.c: Likewise.
53086         * lib/posixtm.h: Likewise.
53087         * lib/posixver.c: Likewise.
53088         * lib/printf-frexp.c: Likewise.
53089         * lib/printf-frexp.h: Likewise.
53090         * lib/printf-frexpl.c: Likewise.
53091         * lib/printf-frexpl.h: Likewise.
53092         * lib/printf.c: Likewise.
53093         * lib/progname.c: Likewise.
53094         * lib/progname.h: Likewise.
53095         * lib/progreloc.c: Likewise.
53096         * lib/putenv.c: Likewise.
53097         * lib/quote.c: Likewise.
53098         * lib/quote.h: Likewise.
53099         * lib/quotearg.c: Likewise.
53100         * lib/quotearg.h: Likewise.
53101         * lib/raise.c: Likewise.
53102         * lib/readline.c: Likewise.
53103         * lib/readline.h: Likewise.
53104         * lib/readlink.c: Likewise.
53105         * lib/readtokens.c: Likewise.
53106         * lib/readtokens.h: Likewise.
53107         * lib/readtokens0.c: Likewise.
53108         * lib/readtokens0.h: Likewise.
53109         * lib/readutmp.c: Likewise.
53110         * lib/readutmp.h: Likewise.
53111         * lib/realloc.c: Likewise.
53112         * lib/relocwrapper.c: Likewise.
53113         * lib/rename-dest-slash.c: Likewise.
53114         * lib/rename.c: Likewise.
53115         * lib/rmdir.c: Likewise.
53116         * lib/rpmatch.c: Likewise.
53117         * lib/safe-read.c: Likewise.
53118         * lib/safe-read.h: Likewise.
53119         * lib/safe-write.c: Likewise.
53120         * lib/safe-write.h: Likewise.
53121         * lib/same-inode.h: Likewise.
53122         * lib/same.c: Likewise.
53123         * lib/same.h: Likewise.
53124         * lib/save-cwd.c: Likewise.
53125         * lib/save-cwd.h: Likewise.
53126         * lib/savedir.c: Likewise.
53127         * lib/savedir.h: Likewise.
53128         * lib/savewd.c: Likewise.
53129         * lib/savewd.h: Likewise.
53130         * lib/search.in.h: Likewise.
53131         * lib/setenv.c: Likewise.
53132         * lib/setenv.h: Likewise.
53133         * lib/settime.c: Likewise.
53134         * lib/sh-quote.c: Likewise.
53135         * lib/sh-quote.h: Likewise.
53136         * lib/sig2str.c: Likewise.
53137         * lib/sig2str.h: Likewise.
53138         * lib/signal.in.h: Likewise.
53139         * lib/signbitd.c: Likewise.
53140         * lib/signbitf.c: Likewise.
53141         * lib/signbitl.c: Likewise.
53142         * lib/sigprocmask.c: Likewise.
53143         * lib/sincosl.c: Likewise.
53144         * lib/sleep.c: Likewise.
53145         * lib/sprintf.c: Likewise.
53146         * lib/sqrtl.c: Likewise.
53147         * lib/stat-time.h: Likewise.
53148         * lib/stdio--.h: Likewise.
53149         * lib/stdio-safer.h: Likewise.
53150         * lib/stdlib--.h: Likewise.
53151         * lib/stdlib-safer.h: Likewise.
53152         * lib/stdlib.in.h: Likewise.
53153         * lib/stpcpy.c: Likewise.
53154         * lib/stpncpy.c: Likewise.
53155         * lib/strchrnul.c: Likewise.
53156         * lib/strcspn.c: Likewise.
53157         * lib/strerror.c: Likewise.
53158         * lib/strftime.c: Likewise.
53159         * lib/strftime.h: Likewise.
53160         * lib/striconveh.c: Likewise.
53161         * lib/striconveh.h: Likewise.
53162         * lib/striconveha.c: Likewise.
53163         * lib/striconveha.h: Likewise.
53164         * lib/stripslash.c: Likewise.
53165         * lib/strnlen1.c: Likewise.
53166         * lib/strnlen1.h: Likewise.
53167         * lib/strtod.c: Likewise.
53168         * lib/strtoimax.c: Likewise.
53169         * lib/strtok_r.c: Likewise.
53170         * lib/strtol.c: Likewise.
53171         * lib/strtoll.c: Likewise.
53172         * lib/strtoul.c: Likewise.
53173         * lib/strtoull.c: Likewise.
53174         * lib/sysexits.in.h: Likewise.
53175         * lib/tempname.c: Likewise.
53176         * lib/tempname.h: Likewise.
53177         * lib/timespec.h: Likewise.
53178         * lib/tls.c: Likewise.
53179         * lib/tls.h: Likewise.
53180         * lib/tmpdir.c: Likewise.
53181         * lib/tmpdir.h: Likewise.
53182         * lib/tmpfile-safer.c: Likewise.
53183         * lib/tmpfile.c: Likewise.
53184         * lib/trigl.c: Likewise.
53185         * lib/trigl.h: Likewise.
53186         * lib/trim.c: Likewise.
53187         * lib/trim.h: Likewise.
53188         * lib/trunc.c: Likewise.
53189         * lib/truncf.c: Likewise.
53190         * lib/truncl.c: Likewise.
53191         * lib/tsearch.c: Likewise.
53192         * lib/unicodeio.c: Likewise.
53193         * lib/unicodeio.h: Likewise.
53194         * lib/unistd--.h: Likewise.
53195         * lib/unistd-safer.h: Likewise.
53196         * lib/unistdio/ulc-fprintf.c: Likewise.
53197         * lib/unistdio/ulc-vfprintf.c: Likewise.
53198         * lib/unlinkdir.c: Likewise.
53199         * lib/unlinkdir.h: Likewise.
53200         * lib/unlocked-io.h: Likewise.
53201         * lib/unsetenv.c: Likewise.
53202         * lib/userspec.c: Likewise.
53203         * lib/utime.c: Likewise.
53204         * lib/utimecmp.c: Likewise.
53205         * lib/utimecmp.h: Likewise.
53206         * lib/utimens.c: Likewise.
53207         * lib/verify.h: Likewise.
53208         * lib/verror.c: Likewise.
53209         * lib/verror.h: Likewise.
53210         * lib/version-etc-fsf.c: Likewise.
53211         * lib/version-etc.c: Likewise.
53212         * lib/version-etc.h: Likewise.
53213         * lib/vfprintf.c: Likewise.
53214         * lib/vprintf.c: Likewise.
53215         * lib/vsprintf.c: Likewise.
53216         * lib/w32spawn.h: Likewise.
53217         * lib/wait-process.c: Likewise.
53218         * lib/wait-process.h: Likewise.
53219         * lib/wcwidth.c: Likewise.
53220         * lib/write-any-file.c: Likewise.
53221         * lib/xalloc-die.c: Likewise.
53222         * lib/xalloc.h: Likewise.
53223         * lib/xasprintf.c: Likewise.
53224         * lib/xgetcwd.c: Likewise.
53225         * lib/xgetcwd.h: Likewise.
53226         * lib/xgetdomainname.c: Likewise.
53227         * lib/xgetdomainname.h: Likewise.
53228         * lib/xgethostname.c: Likewise.
53229         * lib/xmalloc.c: Likewise.
53230         * lib/xmalloca.c: Likewise.
53231         * lib/xmalloca.h: Likewise.
53232         * lib/xmemcoll.c: Likewise.
53233         * lib/xnanosleep.c: Likewise.
53234         * lib/xreadlink.c: Likewise.
53235         * lib/xreadlink.h: Likewise.
53236         * lib/xsetenv.c: Likewise.
53237         * lib/xsetenv.h: Likewise.
53238         * lib/xstriconv.c: Likewise.
53239         * lib/xstriconv.h: Likewise.
53240         * lib/xstrndup.c: Likewise.
53241         * lib/xstrndup.h: Likewise.
53242         * lib/xstrtod.c: Likewise.
53243         * lib/xstrtod.h: Likewise.
53244         * lib/xstrtol-error.c: Likewise.
53245         * lib/xstrtol.c: Likewise.
53246         * lib/xstrtol.h: Likewise.
53247         * lib/xtime.h: Likewise.
53248         * lib/xvasprintf.c: Likewise.
53249         * lib/xvasprintf.h: Likewise.
53250         * lib/yesno.c: Likewise.
53251         * lib/yesno.h: Likewise.
53252         * posix-modules: Likewise.
53253         * tests/test-alloca-opt.c: Likewise.
53254         * tests/test-arcfour.c: Likewise.
53255         * tests/test-arctwo.c: Likewise.
53256         * tests/test-argmatch.c: Likewise.
53257         * tests/test-argp-2.sh: Likewise.
53258         * tests/test-argp.c: Likewise.
53259         * tests/test-arpa_inet.c: Likewise.
53260         * tests/test-array_list.c: Likewise.
53261         * tests/test-array_oset.c: Likewise.
53262         * tests/test-atexit.c: Likewise.
53263         * tests/test-avltree_list.c: Likewise.
53264         * tests/test-avltree_oset.c: Likewise.
53265         * tests/test-avltreehash_list.c: Likewise.
53266         * tests/test-base64.c: Likewise.
53267         * tests/test-binary-io.c: Likewise.
53268         * tests/test-byteswap.c: Likewise.
53269         * tests/test-c-ctype.c: Likewise.
53270         * tests/test-c-strcasecmp.c: Likewise.
53271         * tests/test-c-strcasestr.c: Likewise.
53272         * tests/test-c-strncasecmp.c: Likewise.
53273         * tests/test-c-strstr.c: Likewise.
53274         * tests/test-canonicalize-lgpl.c: Likewise.
53275         * tests/test-canonicalize.c: Likewise.
53276         * tests/test-carray_list.c: Likewise.
53277         * tests/test-ceilf.c: Likewise.
53278         * tests/test-ceill.c: Likewise.
53279         * tests/test-count-one-bits.c: Likewise.
53280         * tests/test-crc.c: Likewise.
53281         * tests/test-dirname.c: Likewise.
53282         * tests/test-fbufmode.c: Likewise.
53283         * tests/test-fcntl.c: Likewise.
53284         * tests/test-fflush.c: Likewise.
53285         * tests/test-floorf.c: Likewise.
53286         * tests/test-floorl.c: Likewise.
53287         * tests/test-fopen.c: Likewise.
53288         * tests/test-fprintf-posix.c: Likewise.
53289         * tests/test-fprintf-posix.h: Likewise.
53290         * tests/test-fpurge.c: Likewise.
53291         * tests/test-freadable.c: Likewise.
53292         * tests/test-freadahead.c: Likewise.
53293         * tests/test-freading.c: Likewise.
53294         * tests/test-freopen.c: Likewise.
53295         * tests/test-frexp.c: Likewise.
53296         * tests/test-frexpl.c: Likewise.
53297         * tests/test-fseek.c: Likewise.
53298         * tests/test-fseeko.c: Likewise.
53299         * tests/test-fseterr.c: Likewise.
53300         * tests/test-fstrcmp.c: Likewise.
53301         * tests/test-ftell.c: Likewise.
53302         * tests/test-ftello.c: Likewise.
53303         * tests/test-fwritable.c: Likewise.
53304         * tests/test-fwriting.c: Likewise.
53305         * tests/test-getaddrinfo.c: Likewise.
53306         * tests/test-getpass.c: Likewise.
53307         * tests/test-gettimeofday.c: Likewise.
53308         * tests/test-hmac-md5.c: Likewise.
53309         * tests/test-hmac-sha1.c: Likewise.
53310         * tests/test-iconv.c: Likewise.
53311         * tests/test-iconvme.c: Likewise.
53312         * tests/test-inttypes.c: Likewise.
53313         * tests/test-isnan.c: Likewise.
53314         * tests/test-isnanf.c: Likewise.
53315         * tests/test-isnanl-nolibm.c: Likewise.
53316         * tests/test-isnanl.c: Likewise.
53317         * tests/test-isnanl.h: Likewise.
53318         * tests/test-ldexpl.c: Likewise.
53319         * tests/test-linked_list.c: Likewise.
53320         * tests/test-linkedhash_list.c: Likewise.
53321         * tests/test-locale.c: Likewise.
53322         * tests/test-localename.c: Likewise.
53323         * tests/test-lock.c: Likewise.
53324         * tests/test-lseek.c: Likewise.
53325         * tests/test-malloca.c: Likewise.
53326         * tests/test-math.c: Likewise.
53327         * tests/test-mbscasecmp.c: Likewise.
53328         * tests/test-mbscasestr1.c: Likewise.
53329         * tests/test-mbscasestr2.c: Likewise.
53330         * tests/test-mbscasestr3.c: Likewise.
53331         * tests/test-mbscasestr4.c: Likewise.
53332         * tests/test-mbschr.c: Likewise.
53333         * tests/test-mbscspn.c: Likewise.
53334         * tests/test-mbsncasecmp.c: Likewise.
53335         * tests/test-mbspbrk.c: Likewise.
53336         * tests/test-mbspcasecmp.c: Likewise.
53337         * tests/test-mbsrchr.c: Likewise.
53338         * tests/test-mbsspn.c: Likewise.
53339         * tests/test-mbsstr1.c: Likewise.
53340         * tests/test-mbsstr2.c: Likewise.
53341         * tests/test-mbsstr3.c: Likewise.
53342         * tests/test-md5.c: Likewise.
53343         * tests/test-memmem.c: Likewise.
53344         * tests/test-netinet_in.c: Likewise.
53345         * tests/test-open.c: Likewise.
53346         * tests/test-printf-frexp.c: Likewise.
53347         * tests/test-printf-frexpl.c: Likewise.
53348         * tests/test-printf-posix.c: Likewise.
53349         * tests/test-printf-posix.h: Likewise.
53350         * tests/test-rbtree_list.c: Likewise.
53351         * tests/test-rbtree_oset.c: Likewise.
53352         * tests/test-rbtreehash_list.c: Likewise.
53353         * tests/test-read-file.c: Likewise.
53354         * tests/test-rijndael.c: Likewise.
53355         * tests/test-search.c: Likewise.
53356         * tests/test-signbit.c: Likewise.
53357         * tests/test-sleep.c: Likewise.
53358         * tests/test-snprintf-posix.c: Likewise.
53359         * tests/test-snprintf-posix.h: Likewise.
53360         * tests/test-snprintf.c: Likewise.
53361         * tests/test-sprintf-posix.c: Likewise.
53362         * tests/test-sprintf-posix.h: Likewise.
53363         * tests/test-stat-time.c: Likewise.
53364         * tests/test-stdbool.c: Likewise.
53365         * tests/test-stdint.c: Likewise.
53366         * tests/test-stdio.c: Likewise.
53367         * tests/test-stdlib.c: Likewise.
53368         * tests/test-stpncpy.c: Likewise.
53369         * tests/test-strcasestr.c: Likewise.
53370         * tests/test-striconv.c: Likewise.
53371         * tests/test-striconveh.c: Likewise.
53372         * tests/test-striconveha.c: Likewise.
53373         * tests/test-string.c: Likewise.
53374         * tests/test-sys_select.c: Likewise.
53375         * tests/test-sys_socket.c: Likewise.
53376         * tests/test-sys_stat.c: Likewise.
53377         * tests/test-sys_time.c: Likewise.
53378         * tests/test-sysexits.c: Likewise.
53379         * tests/test-time.c: Likewise.
53380         * tests/test-tls.c: Likewise.
53381         * tests/test-trunc.c: Likewise.
53382         * tests/test-truncf.c: Likewise.
53383         * tests/test-truncl.c: Likewise.
53384         * tests/test-unistd.c: Likewise.
53385         * tests/test-vasnprintf-posix.c: Likewise.
53386         * tests/test-vasnprintf-posix2.c: Likewise.
53387         * tests/test-vasnprintf.c: Likewise.
53388         * tests/test-vasprintf-posix.c: Likewise.
53389         * tests/test-vasprintf.c: Likewise.
53390         * tests/test-verify.c: Likewise.
53391         * tests/test-vfprintf-posix.c: Likewise.
53392         * tests/test-vprintf-posix.c: Likewise.
53393         * tests/test-vsnprintf-posix.c: Likewise.
53394         * tests/test-vsnprintf.c: Likewise.
53395         * tests/test-vsprintf-posix.c: Likewise.
53396         * tests/test-wchar.c: Likewise.
53397         * tests/test-wctype.c: Likewise.
53398         * tests/test-wcwidth.c: Likewise.
53399         * tests/test-xstrtol.c: Likewise.
53400         * tests/test-xvasprintf.c: Likewise.
53401         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53402         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53403         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53404         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53405         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53406         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53407         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53408         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53409         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53410         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53411         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53412         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53413         * tests/uniname/test-uninames.c: Likewise.
53414         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53415         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53416         * tests/unistdio/test-u16-printf1.h: Likewise.
53417         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53418         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53419         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53420         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53421         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53422         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53423         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53424         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53425         * tests/unistdio/test-u32-printf1.h: Likewise.
53426         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53427         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53428         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53429         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53430         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53431         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53432         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53433         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53434         * tests/unistdio/test-u8-printf1.h: Likewise.
53435         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53436         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53437         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53438         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53439         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53440         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53441         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53442         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53443         * tests/unistdio/test-ulc-printf1.h: Likewise.
53444         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53445         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53446         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53447         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53448         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53449         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53450         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53451         * tests/uniwidth/test-u16-width.c: Likewise.
53452         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53453         * tests/uniwidth/test-u32-width.c: Likewise.
53454         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53455         * tests/uniwidth/test-u8-width.c: Likewise.
53456         * tests/uniwidth/test-uc_width.c: Likewise.
53457         * config/srclist-update: Likewise.
53458         (fixlicense): Update to GPLv3+.
53459
53460         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53461         * tests/test-tsearch.c: Change copyright notice.
53462
53463         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53464         * lib/c-strcaseeq.h: Change copyright notice.
53465         * lib/streq.h: Likewise.
53466         * lib/uniconv.h: Likewise.
53467         * lib/uniconv/u-conv-from-enc.h: Likewise.
53468         * lib/uniconv/u-conv-to-enc.h: Likewise.
53469         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53470         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53471         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53472         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53473         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53474         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53475         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53476         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53477         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53478         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53479         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53480         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53481         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53482         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53483         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53484         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53485         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53486         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53487         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53488         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53489         * lib/uniname.h: Likewise.
53490         * lib/uniname/uniname.c: Likewise.
53491         * lib/unistdio.h: Likewise.
53492         * lib/unistdio/u-asnprintf.h: Likewise.
53493         * lib/unistdio/u-asprintf.h: Likewise.
53494         * lib/unistdio/u-printf-args.c: Likewise.
53495         * lib/unistdio/u-printf-args.h: Likewise.
53496         * lib/unistdio/u-printf-parse.h: Likewise.
53497         * lib/unistdio/u-snprintf.h: Likewise.
53498         * lib/unistdio/u-sprintf.h: Likewise.
53499         * lib/unistdio/u-vasprintf.h: Likewise.
53500         * lib/unistdio/u-vsnprintf.h: Likewise.
53501         * lib/unistdio/u-vsprintf.h: Likewise.
53502         * lib/unistdio/u16-asnprintf.c: Likewise.
53503         * lib/unistdio/u16-asprintf.c: Likewise.
53504         * lib/unistdio/u16-printf-parse.c: Likewise.
53505         * lib/unistdio/u16-snprintf.c: Likewise.
53506         * lib/unistdio/u16-sprintf.c: Likewise.
53507         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53508         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53509         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53510         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53511         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53512         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53513         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53514         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53515         * lib/unistdio/u16-vasnprintf.c: Likewise.
53516         * lib/unistdio/u16-vasprintf.c: Likewise.
53517         * lib/unistdio/u16-vsnprintf.c: Likewise.
53518         * lib/unistdio/u16-vsprintf.c: Likewise.
53519         * lib/unistdio/u32-asnprintf.c: Likewise.
53520         * lib/unistdio/u32-asprintf.c: Likewise.
53521         * lib/unistdio/u32-printf-parse.c: Likewise.
53522         * lib/unistdio/u32-snprintf.c: Likewise.
53523         * lib/unistdio/u32-sprintf.c: Likewise.
53524         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53525         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53526         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53527         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53528         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53529         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53530         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53531         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53532         * lib/unistdio/u32-vasnprintf.c: Likewise.
53533         * lib/unistdio/u32-vasprintf.c: Likewise.
53534         * lib/unistdio/u32-vsnprintf.c: Likewise.
53535         * lib/unistdio/u32-vsprintf.c: Likewise.
53536         * lib/unistdio/u8-asnprintf.c: Likewise.
53537         * lib/unistdio/u8-asprintf.c: Likewise.
53538         * lib/unistdio/u8-printf-parse.c: Likewise.
53539         * lib/unistdio/u8-snprintf.c: Likewise.
53540         * lib/unistdio/u8-sprintf.c: Likewise.
53541         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53542         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53543         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53544         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53545         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53546         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53547         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53548         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53549         * lib/unistdio/u8-vasnprintf.c: Likewise.
53550         * lib/unistdio/u8-vasprintf.c: Likewise.
53551         * lib/unistdio/u8-vsnprintf.c: Likewise.
53552         * lib/unistdio/u8-vsprintf.c: Likewise.
53553         * lib/unistdio/ulc-asnprintf.c: Likewise.
53554         * lib/unistdio/ulc-asprintf.c: Likewise.
53555         * lib/unistdio/ulc-printf-parse.c: Likewise.
53556         * lib/unistdio/ulc-snprintf.c: Likewise.
53557         * lib/unistdio/ulc-sprintf.c: Likewise.
53558         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53559         * lib/unistdio/ulc-vasprintf.c: Likewise.
53560         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53561         * lib/unistdio/ulc-vsprintf.c: Likewise.
53562         * lib/unistr.h: Likewise.
53563         * lib/unistr/u-cpy-alloc.h: Likewise.
53564         * lib/unistr/u-cpy.h: Likewise.
53565         * lib/unistr/u-endswith.h: Likewise.
53566         * lib/unistr/u-move.h: Likewise.
53567         * lib/unistr/u-set.h: Likewise.
53568         * lib/unistr/u-startswith.h: Likewise.
53569         * lib/unistr/u-stpcpy.h: Likewise.
53570         * lib/unistr/u-stpncpy.h: Likewise.
53571         * lib/unistr/u-strcat.h: Likewise.
53572         * lib/unistr/u-strcpy.h: Likewise.
53573         * lib/unistr/u-strcspn.h: Likewise.
53574         * lib/unistr/u-strdup.h: Likewise.
53575         * lib/unistr/u-strlen.h: Likewise.
53576         * lib/unistr/u-strncat.h: Likewise.
53577         * lib/unistr/u-strncpy.h: Likewise.
53578         * lib/unistr/u-strnlen.h: Likewise.
53579         * lib/unistr/u-strpbrk.h: Likewise.
53580         * lib/unistr/u-strspn.h: Likewise.
53581         * lib/unistr/u-strstr.h: Likewise.
53582         * lib/unistr/u-strtok.h: Likewise.
53583         * lib/unistr/u16-check.c: Likewise.
53584         * lib/unistr/u16-chr.c: Likewise.
53585         * lib/unistr/u16-cmp.c: Likewise.
53586         * lib/unistr/u16-cpy-alloc.c: Likewise.
53587         * lib/unistr/u16-cpy.c: Likewise.
53588         * lib/unistr/u16-endswith.c: Likewise.
53589         * lib/unistr/u16-mblen.c: Likewise.
53590         * lib/unistr/u16-mbsnlen.c: Likewise.
53591         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53592         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53593         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53594         * lib/unistr/u16-mbtouc.c: Likewise.
53595         * lib/unistr/u16-mbtoucr.c: Likewise.
53596         * lib/unistr/u16-move.c: Likewise.
53597         * lib/unistr/u16-next.c: Likewise.
53598         * lib/unistr/u16-prev.c: Likewise.
53599         * lib/unistr/u16-set.c: Likewise.
53600         * lib/unistr/u16-startswith.c: Likewise.
53601         * lib/unistr/u16-stpcpy.c: Likewise.
53602         * lib/unistr/u16-stpncpy.c: Likewise.
53603         * lib/unistr/u16-strcat.c: Likewise.
53604         * lib/unistr/u16-strchr.c: Likewise.
53605         * lib/unistr/u16-strcmp.c: Likewise.
53606         * lib/unistr/u16-strcpy.c: Likewise.
53607         * lib/unistr/u16-strcspn.c: Likewise.
53608         * lib/unistr/u16-strdup.c: Likewise.
53609         * lib/unistr/u16-strlen.c: Likewise.
53610         * lib/unistr/u16-strmblen.c: Likewise.
53611         * lib/unistr/u16-strmbtouc.c: Likewise.
53612         * lib/unistr/u16-strncat.c: Likewise.
53613         * lib/unistr/u16-strncmp.c: Likewise.
53614         * lib/unistr/u16-strncpy.c: Likewise.
53615         * lib/unistr/u16-strnlen.c: Likewise.
53616         * lib/unistr/u16-strpbrk.c: Likewise.
53617         * lib/unistr/u16-strrchr.c: Likewise.
53618         * lib/unistr/u16-strspn.c: Likewise.
53619         * lib/unistr/u16-strstr.c: Likewise.
53620         * lib/unistr/u16-strtok.c: Likewise.
53621         * lib/unistr/u16-to-u32.c: Likewise.
53622         * lib/unistr/u16-to-u8.c: Likewise.
53623         * lib/unistr/u16-uctomb-aux.c: Likewise.
53624         * lib/unistr/u16-uctomb.c: Likewise.
53625         * lib/unistr/u32-check.c: Likewise.
53626         * lib/unistr/u32-chr.c: Likewise.
53627         * lib/unistr/u32-cmp.c: Likewise.
53628         * lib/unistr/u32-cpy-alloc.c: Likewise.
53629         * lib/unistr/u32-cpy.c: Likewise.
53630         * lib/unistr/u32-endswith.c: Likewise.
53631         * lib/unistr/u32-mblen.c: Likewise.
53632         * lib/unistr/u32-mbsnlen.c: Likewise.
53633         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53634         * lib/unistr/u32-mbtouc.c: Likewise.
53635         * lib/unistr/u32-mbtoucr.c: Likewise.
53636         * lib/unistr/u32-move.c: Likewise.
53637         * lib/unistr/u32-next.c: Likewise.
53638         * lib/unistr/u32-prev.c: Likewise.
53639         * lib/unistr/u32-set.c: Likewise.
53640         * lib/unistr/u32-startswith.c: Likewise.
53641         * lib/unistr/u32-stpcpy.c: Likewise.
53642         * lib/unistr/u32-stpncpy.c: Likewise.
53643         * lib/unistr/u32-strcat.c: Likewise.
53644         * lib/unistr/u32-strchr.c: Likewise.
53645         * lib/unistr/u32-strcmp.c: Likewise.
53646         * lib/unistr/u32-strcpy.c: Likewise.
53647         * lib/unistr/u32-strcspn.c: Likewise.
53648         * lib/unistr/u32-strdup.c: Likewise.
53649         * lib/unistr/u32-strlen.c: Likewise.
53650         * lib/unistr/u32-strmblen.c: Likewise.
53651         * lib/unistr/u32-strmbtouc.c: Likewise.
53652         * lib/unistr/u32-strncat.c: Likewise.
53653         * lib/unistr/u32-strncmp.c: Likewise.
53654         * lib/unistr/u32-strncpy.c: Likewise.
53655         * lib/unistr/u32-strnlen.c: Likewise.
53656         * lib/unistr/u32-strpbrk.c: Likewise.
53657         * lib/unistr/u32-strrchr.c: Likewise.
53658         * lib/unistr/u32-strspn.c: Likewise.
53659         * lib/unistr/u32-strstr.c: Likewise.
53660         * lib/unistr/u32-strtok.c: Likewise.
53661         * lib/unistr/u32-to-u16.c: Likewise.
53662         * lib/unistr/u32-to-u8.c: Likewise.
53663         * lib/unistr/u32-uctomb.c: Likewise.
53664         * lib/unistr/u8-check.c: Likewise.
53665         * lib/unistr/u8-chr.c: Likewise.
53666         * lib/unistr/u8-cmp.c: Likewise.
53667         * lib/unistr/u8-cpy-alloc.c: Likewise.
53668         * lib/unistr/u8-cpy.c: Likewise.
53669         * lib/unistr/u8-endswith.c: Likewise.
53670         * lib/unistr/u8-mblen.c: Likewise.
53671         * lib/unistr/u8-mbsnlen.c: Likewise.
53672         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53673         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53674         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53675         * lib/unistr/u8-mbtouc.c: Likewise.
53676         * lib/unistr/u8-mbtoucr.c: Likewise.
53677         * lib/unistr/u8-move.c: Likewise.
53678         * lib/unistr/u8-next.c: Likewise.
53679         * lib/unistr/u8-prev.c: Likewise.
53680         * lib/unistr/u8-set.c: Likewise.
53681         * lib/unistr/u8-startswith.c: Likewise.
53682         * lib/unistr/u8-stpcpy.c: Likewise.
53683         * lib/unistr/u8-stpncpy.c: Likewise.
53684         * lib/unistr/u8-strcat.c: Likewise.
53685         * lib/unistr/u8-strchr.c: Likewise.
53686         * lib/unistr/u8-strcmp.c: Likewise.
53687         * lib/unistr/u8-strcpy.c: Likewise.
53688         * lib/unistr/u8-strcspn.c: Likewise.
53689         * lib/unistr/u8-strdup.c: Likewise.
53690         * lib/unistr/u8-strlen.c: Likewise.
53691         * lib/unistr/u8-strmblen.c: Likewise.
53692         * lib/unistr/u8-strmbtouc.c: Likewise.
53693         * lib/unistr/u8-strncat.c: Likewise.
53694         * lib/unistr/u8-strncmp.c: Likewise.
53695         * lib/unistr/u8-strncpy.c: Likewise.
53696         * lib/unistr/u8-strnlen.c: Likewise.
53697         * lib/unistr/u8-strpbrk.c: Likewise.
53698         * lib/unistr/u8-strrchr.c: Likewise.
53699         * lib/unistr/u8-strspn.c: Likewise.
53700         * lib/unistr/u8-strstr.c: Likewise.
53701         * lib/unistr/u8-strtok.c: Likewise.
53702         * lib/unistr/u8-to-u16.c: Likewise.
53703         * lib/unistr/u8-to-u32.c: Likewise.
53704         * lib/unistr/u8-uctomb-aux.c: Likewise.
53705         * lib/unistr/u8-uctomb.c: Likewise.
53706         * lib/unitypes.h: Likewise.
53707         * lib/uniwidth.h: Likewise.
53708         * lib/uniwidth/cjk.h: Likewise.
53709         * lib/uniwidth/u16-strwidth.c: Likewise.
53710         * lib/uniwidth/u16-width.c: Likewise.
53711         * lib/uniwidth/u32-strwidth.c: Likewise.
53712         * lib/uniwidth/u32-width.c: Likewise.
53713         * lib/uniwidth/u8-strwidth.c: Likewise.
53714         * lib/uniwidth/u8-width.c: Likewise.
53715         * lib/uniwidth/width.c: Likewise.
53716
53717 2007-10-07  Bruno Haible  <bruno@clisp.org>
53718
53719         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53720         The file is still under LGPL (see modules/inttypes).
53721
53722 2007-10-06  Bruno Haible  <bruno@clisp.org>
53723
53724         * modules/trunc (Dependencies): Add 'extensions'.
53725         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53726         Reported by Ben Pfaff <blp@gnu.org>.
53727
53728 2007-10-06  Bruno Haible  <bruno@clisp.org>
53729
53730         * modules/freopen-tests: New file.
53731         * tests/test-freopen.c: New file.
53732
53733         * modules/fopen-tests: New file.
53734         * tests/test-fopen.c: New file.
53735
53736         * modules/fopen: New file.
53737         * lib/fopen.c: New file.
53738         * m4/fopen.m4: New file.
53739         * modules/freopen: New file.
53740         * lib/freopen.c: New file.
53741         * m4/freopen.m4: New file.
53742         * lib/stdio.in.h (fopen, freopen): New declarations.
53743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53744         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53745         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53746         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53747         * doc/functions/fopen.texi: Mention the 'fopen' module.
53748         * doc/functions/freopen.texi: Mention the 'freopen' module.
53749
53750 2007-10-06  Bruno Haible  <bruno@clisp.org>
53751
53752         * modules/open-tests: New file.
53753         * tests/test-open.c: New file.
53754
53755         * modules/open: New file.
53756         * lib/open.c: New file.
53757         * m4/open.m4: New file.
53758         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53759         lib/open.c does.
53760         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53761         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53762         macros.
53763         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53764         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53765         REPLACE_OPEN.
53766         * doc/functions/open.texi: Mention the 'open' module.
53767
53768 2007-10-04  Bruno Haible  <bruno@clisp.org>
53769
53770         * modules/ceill-tests: New file.
53771         * tests/test-ceill.c: New file.
53772
53773         * modules/ceill: New file.
53774         * lib/ceill.c: Replace entire file.
53775         * m4/ceill.m4: New file.
53776         * lib/math.in.h (ceill): Replace declaration.
53777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53778         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53779         * doc/functions/ceill.texi: Mention the 'ceill' module.
53780         * modules/mathl (Files): Remove lib/ceill.c.
53781         (Depends-on): Add ceill.
53782
53783 2007-10-04  Bruno Haible  <bruno@clisp.org>
53784
53785         * modules/ceilf-tests: New file.
53786         * tests/test-ceilf.c: New file.
53787
53788         * modules/ceilf: New file.
53789         * lib/ceil.c: New file.
53790         * lib/ceilf.c: New file.
53791         * m4/ceilf.m4: New file.
53792         * lib/math.in.h (ceilf): New declaration.
53793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53794         HAVE_DECL_CEILF.
53795         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53796         HAVE_DECL_CEILF.
53797         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53798
53799 2007-10-04  Bruno Haible  <bruno@clisp.org>
53800
53801         * modules/floorl-tests: New file.
53802         * tests/test-floorl.c: New file.
53803
53804         * modules/floorl: New file.
53805         * lib/floorl.c: Replace entire file.
53806         * m4/floorl.m4: New file.
53807         * lib/math.in.h (floorl): Replace declaration.
53808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53809         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53810         * doc/functions/floorl.texi: Mention the 'floorl' module.
53811         * modules/mathl (Files): Remove lib/floorl.c.
53812         (Depends-on): Add floorl.
53813
53814 2007-10-04  Bruno Haible  <bruno@clisp.org>
53815
53816         * modules/floorf-tests: New file.
53817         * tests/test-floorf.c: New file.
53818
53819         * modules/floorf: New file.
53820         * lib/floor.c: New file.
53821         * lib/floorf.c: New file.
53822         * m4/floorf.m4: New file.
53823         * lib/math.in.h (floorf): New declaration.
53824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53825         HAVE_DECL_FLOORF.
53826         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53827         HAVE_DECL_FLOORF.
53828         * doc/functions/floorf.texi: Mention the 'floorf' module.
53829
53830 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53831             Bruno Haible  <bruno@clisp.org>
53832
53833         Advertise for the Git server instead of the CVS server.
53834         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53835         repository instead of the CVS one.
53836         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53837         about all VCS systems generically.
53838         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53839
53840 2007-10-04  Bruno Haible  <bruno@clisp.org>
53841
53842         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53843         means.
53844         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53845
53846 2007-10-04  Bruno Haible  <bruno@clisp.org>
53847
53848         * modules/truncl-tests: New file.
53849         * tests/test-truncl.c: New file.
53850
53851         * modules/truncl: New file.
53852         * lib/truncl.c: New file.
53853         * m4/truncl.m4: New file.
53854         * lib/math.in.h (truncl): New declaration.
53855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53856         HAVE_DECL_TRUNCL.
53857         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53858         HAVE_DECL_TRUNCL.
53859         * doc/functions/truncl.texi: Mention the 'truncl' module.
53860
53861 2007-10-04  Bruno Haible  <bruno@clisp.org>
53862
53863         * modules/truncf-tests: New file.
53864         * tests/test-truncf.c: New file.
53865
53866         * modules/truncf: New file.
53867         * lib/trunc.c: Make paramerizable through USE_* macros.
53868         * lib/truncf.c: New file.
53869         * m4/truncf.m4: New file.
53870         * lib/math.in.h (truncf): New declaration.
53871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53872         HAVE_DECL_TRUNCF.
53873         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53874         HAVE_DECL_TRUNCF.
53875         * doc/functions/truncf.texi: Mention the 'truncf' module.
53876
53877 2007-10-03  Bruno Haible  <bruno@clisp.org>
53878
53879         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53880         augmentation also for tests modules.
53881         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53882         * modules/atexit-tests (Makefile.am): Likewise.
53883         * modules/binary-io-tests (Makefile.am): Likewise.
53884         * modules/c-strcase-tests (Makefile.am): Likewise.
53885         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53886         * modules/canonicalize-tests (Makefile.am): Likewise.
53887         * modules/closein-tests (Makefile.am): Likewise.
53888         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53889         * modules/freadahead-tests (Makefile.am): Likewise.
53890         * modules/fseek-tests (Makefile.am): Likewise.
53891         * modules/fseeko-tests (Makefile.am): Likewise.
53892         * modules/ftell-tests (Makefile.am): Likewise.
53893         * modules/ftello-tests (Makefile.am): Likewise.
53894         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53895         * modules/isnanl-tests (Makefile.am): Likewise.
53896         * modules/lseek-tests (Makefile.am): Likewise.
53897         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53898         * modules/mbscasestr-tests (Makefile.am): Likewise.
53899         * modules/mbschr-tests (Makefile.am): Likewise.
53900         * modules/mbscspn-tests (Makefile.am): Likewise.
53901         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53902         * modules/mbspbrk-tests (Makefile.am): Likewise.
53903         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53904         * modules/mbsrchr-tests (Makefile.am): Likewise.
53905         * modules/mbsspn-tests (Makefile.am): Likewise.
53906         * modules/mbsstr-tests (Makefile.am): Likewise.
53907         * modules/printf-posix-tests (Makefile.am): Likewise.
53908         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53909         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53910         * modules/tsearch-tests (Makefile.am): Likewise.
53911         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53912         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53913         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53914         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53915         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53916         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53917         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53918         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53919         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53920         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53921         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53922         * modules/xstrtol-tests (Makefile.am): Likewise.
53923         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53924         * modules/yesno-tests (Makefile.am): Likewise.
53925
53926 2007-10-03  Bruno Haible  <bruno@clisp.org>
53927
53928         * modules/trunc-tests: New file.
53929         * tests/test-trunc.c: New file.
53930
53931         * modules/trunc: New file.
53932         * lib/trunc.c: New file.
53933         * m4/trunc.m4: New file.
53934         * lib/math.in.h (trunc): New declaration.
53935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53936         HAVE_DECL_TRUNC.
53937         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53938         HAVE_DECL_TRUNC.
53939         * doc/functions/trunc.texi: Mention the 'trunc' module.
53940
53941 2007-10-03  Bruno Haible  <bruno@clisp.org>
53942
53943         * tests/test-fpending.c: New file, mostly copied
53944         from coreutils/lib/t-fpending.c.
53945         * modules/fpending-tests: New file.
53946
53947 2007-10-03  Bruno Haible  <bruno@clisp.org>
53948
53949         Port the stdio extensions to QNX (untested).
53950         * lib/fseterr.c (fseterr): Add support for QNX.
53951         * lib/fbufmode.c (fbufmode): Likewise.
53952         * lib/freadable.c (freadable): Likewise.
53953         * lib/fwritable.c (fwritable): Likewise.
53954         * lib/freading.c (freading): Likewise.
53955         * lib/fwriting.c (fwriting): Likewise.
53956         * lib/freadahead.c (freadahed): Likewise.
53957         * lib/fpurge.c (fpurge): Likewise.
53958         * lib/fseeko.c (rpl_fseeko): Likewise.
53959
53960 2007-10-03  Bruno Haible  <bruno@clisp.org>
53961             Jim Meyering  <jim@meyering.net>
53962             Eric Blake  <ebb9@byu.net>
53963
53964         * doc/relocatable.texi: Use @command instead of @program.
53965
53966 2007-10-02  Jim Meyering  <jim@meyering.net>
53967
53968         Perform one more "_.h" -> ".in.h" substitution.
53969         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53970         instead of unistd_.h here, too.
53971
53972 2007-10-01  Bruno Haible  <bruno@clisp.org>
53973
53974         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53975         Needed for the alloca-opt module.
53976
53977 2007-09-30  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53980         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53981         alloca_.h.
53982         * lib/argz.in.h: Renamed from lib/argz_.h.
53983         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53984         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53985         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53986         byteswap_.h.
53987         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53988         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53989         dirent_.h.
53990         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53991         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53992         fcntl_.h.
53993         * lib/float.in.h: Renamed from lib/float_.h.
53994         * modules/float (Files, Makefile.am): Use float.in.h instead of
53995         float_.h.
53996         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53997         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53998         fnmatch_.h.
53999         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54000         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54001         getopt_.h.
54002         * lib/glob.in.h: Renamed from lib/glob_.h.
54003         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54004         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54005         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54006         iconv_.h.
54007         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54008         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54009         inttypes_.h.
54010         * lib/locale.in.h: Renamed from lib/locale_.h.
54011         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54012         locale_.h.
54013         * lib/math.in.h: Renamed from lib/math_.h.
54014         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54015         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54016         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54017         of netinet_in_.h. Add dependency.
54018         * lib/poll.in.h: Renamed from lib/poll_.h.
54019         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54020         * lib/search.in.h: Renamed from lib/search_.h.
54021         * modules/search (Files, Makefile.am): Use search.in.h instead of
54022         search_.h.
54023         * lib/signal.in.h: Renamed from lib/signal_.h.
54024         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54025         _signal.h.
54026         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54027         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54028         stdbool_.h.
54029         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54030         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54031         stdint_.h.
54032         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54033         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54034         stdio_.h.
54035         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54036         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54037         stdlib_.h.
54038         * lib/string.in.h: Renamed from lib/string_.h.
54039         * modules/string (Files, Makefile.am): Use string.in.h instead of
54040         string_.h.
54041         * doc/gnulib-tool.texi (Initial import): Update.
54042         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54043         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54044         of sys_select_.h. Add dependency.
54045         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54046         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54047         of sys_socket_.h.
54048         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54049         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54050         sys_stat_.h.
54051         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54052         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54053         sys_time_.h.
54054         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54055         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54056         sysexits_.h.
54057         * lib/time.in.h: Renamed from lib/time_.h.
54058         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54059         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54060         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54061         unistd_.h.
54062         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54063         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54064         wchar_.h.
54065         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54066         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54067         wctype_.h.
54068         * build-aux/bootstrap (slurp): Update.
54069         * lib/.cppi-disable: Update.
54070
54071 2007-09-30  Bruno Haible  <bruno@clisp.org>
54072
54073         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54074         Needed on BeOS.
54075
54076 2007-09-30  Bruno Haible  <bruno@clisp.org>
54077
54078         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54079
54080 2007-09-29  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54083
54084 2007-09-29  Bruno Haible  <bruno@clisp.org>
54085
54086         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54087         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54088         * build-aux/install-reloc: Compile also areadlink.c.
54089         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54090
54091 2007-09-29  Bruno Haible  <bruno@clisp.org>
54092
54093         * gnulib-tool (func_emit_initmacro_done): Indentation.
54094
54095 2007-09-29  Bruno Haible  <bruno@clisp.org>
54096
54097         * README: Add CVS checkout update instructions.
54098         Info from Bob Proulx <bob@proulx.com>.
54099
54100 2007-09-28  Eric Blake  <ebb9@byu.net>
54101
54102         Provide move-if-change.
54103         * build-aux/move-if-change: New file, based on best practice
54104         rather than any canonical upstream location.
54105
54106 2007-09-28  Jim Meyering  <jim@meyering.net>
54107
54108         Fix canonicalize loop-detection corner case.
54109         Do not attempt to stat the symlink values stored via seen_triple.
54110         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54111         on linux-2.6.18, (but not 2.6.22).
54112         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54113         triple_compare.  The former compares dev,ino,filename, while the latter
54114         would actually stat dirname(filename) when dev and ino were equal.
54115         * lib/hash-triple.c: Install <string.h>.
54116         (STREQ): Define.
54117         (triple_compare_ino_str): New function.
54118         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54119
54120 2007-09-28  Eric Blake  <ebb9@byu.net>
54121
54122         Enforce that AC_REPLACE_FUNCS files exist.
54123         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54124         override check for typos.
54125
54126         Fix test-closein on Solaris 10.
54127         * tests/test-closein.c (main): Don't assume stdin can be inherited
54128         closed on all systems.
54129         * tests/test-closein.sh: Likewise.
54130         Reported by Piotr Tarnowski.
54131
54132 2007-09-28  Jim Meyering  <jim@meyering.net>
54133
54134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54135
54136 2007-09-27  Jim Meyering  <jim@meyering.net>
54137
54138         canonicalize: Avoid a false-positive cycle failure.
54139         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54140         Sort.  Remove cycle-check.
54141         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54142         not cycle-check.h.
54143         (seen_triple): New function.
54144         (canonicalize_filename_mode): Use it instead of cycle-check.
54145         * tests/test-canonicalize.c: Add a test for this bug.
54146         * tests/test-canonicalize.sh: Set up and run the test.
54147
54148         New module, file-set, from coreutils.
54149         * modules/file-set: Define it.
54150         * lib/file-set.c, lib/file-set.h: Implement.
54151
54152         New module, hash-triple, from coreutils.
54153         * modules/hash-triple: Define it.
54154         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54155
54156 2007-09-25  Eric Blake  <ebb9@byu.net>
54157
54158         Fix strerror on Interix.
54159         * lib/string_.h (strerror): Declare replacement.
54160         * doc/functions/strerror.texi (strerror): Document the Interix
54161         shortcoming.
54162         * modules/string (Makefile.am): Support new hooks.
54163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54164         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54165         gl_FUNC_STRERROR_SEPARATE.
54166         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54167         * lib/strerror.c (rpl_strerror): Provide replacement.
54168         * modules/strerror (Depends-on): Add string.
54169         (configure.ac): Detect use of module.
54170         * tests/test-strerror.c: New file.
54171         * modules/strerror-tests: New test module.
54172         * modules/argp (Depends-on): Add strerror.
54173         * modules/error (Depends-on): Likewise.
54174         Reported by Martin Koeppe.
54175
54176 2007-09-24  Bruno Haible  <bruno@clisp.org>
54177
54178         * README: Update git instructions.
54179
54180 2007-09-24  Eric Blake  <ebb9@byu.net>
54181
54182         Revert fpending breakage from 2007-09-08.
54183         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54184         __fpending.c.
54185
54186 2007-09-24  Jim Meyering  <jim@meyering.net>
54187
54188         filenamecat.c: Add a test.
54189         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54190         showing how the function works when DIR is the empty string.
54191
54192 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54193
54194         * tests/test-canonicalize.sh: Turn on executable bit.
54195
54196 2007-09-19  Eric Blake  <ebb9@byu.net>
54197
54198         * README: Update CVS instructions.
54199
54200 2007-09-18  Bruno Haible  <bruno@clisp.org>
54201
54202         * modules/areadlink: New file.
54203         * lib/areadlink.h (areadlink): New declaration.
54204         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54205
54206 2007-09-17  Jim Meyering  <jim@meyering.net>
54207
54208         * lib/savewd.c (ESTALE) [!defined]: Define.
54209         Reported to be required on Interix by Martin Koeppe.
54210
54211 2007-09-17  Bruno Haible  <bruno@clisp.org>
54212
54213         * gnulib-tool (func_version): Use $version.
54214
54215 2007-09-16  Bruno Haible  <bruno@clisp.org>
54216
54217         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54218         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54219         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54220         Reported by Greg Schafer <gschafer@zip.com.au>.
54221
54222 2007-09-15  Bruno Haible  <bruno@clisp.org>
54223
54224         * gnulib-tool (sed): Try a little harder to make bash understand the
54225         alias.
54226         Reported by Bruce Korb <bruce.korb@gmail.com>.
54227
54228 2007-09-13  Eric Blake  <ebb9@byu.net>
54229
54230         * ChangeLog: Remove conflict markers.
54231
54232 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54233
54234         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54235         Reported by Bruno Haible <bruno@clisp.org>.
54236
54237 2007-09-12  Bruno Haible  <bruno@clisp.org>
54238
54239         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54240         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54241         is not defined.
54242
54243 2007-09-12  Eric Blake  <ebb9@byu.net>
54244
54245         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54246         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54247         Autoconf definition.
54248         * modules/euidaccess (Depends-on): Add extensions, for
54249         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54250         * modules/fnmatch (Depends-on): Likewise.
54251         * modules/getaddrinfo (Depends-on): Likewise.
54252         * modules/getdelim (Depends-on): Likewise.
54253         * modules/getline (Depends-on): Likewise.
54254         * modules/getsubopt (Depends-on): Likewise.
54255         * modules/gettext (Depends-on): Likewise.
54256         * modules/group-member (Depends-on): Likewise.
54257         * modules/mbchar (Depends-on): Likewise.
54258         * modules/memmem (Depends-on): Likewise.
54259         * modules/mempcpy (Depends-on): Likewise.
54260         * modules/memrchr (Depends-on): Likewise.
54261         * modules/pagealign_alloc (Depends-on): Likewise.
54262         * modules/readutmp (Depends-on): Likewise.
54263         * modules/stpcpy (Depends-on): Likewise.
54264         * modules/stpncpy (Depends-on): Likewise.
54265         * modules/strchrnul (Depends-on): Likewise.
54266         * modules/strndup (Depends-on): Likewise.
54267         * modules/strsep (Depends-on): Likewise.
54268         * modules/strverscmp (Depends-on): Likewise.
54269         * modules/vasprintf (Depends-on): Likewise.
54270         * modules/wcwidth (Depends-on): Likewise.
54271         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54272         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54273         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54274         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54275         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54276         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54277         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54278         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54279         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54280         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54281         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54282         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54283         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54284         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54285         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54286         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54287         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54288         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54289         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54290         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54292         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54293         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54294         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54295         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54297         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54298         so that lock.m4 can be used in gettext without extensions module.
54299
54300 2007-09-11  Bruno Haible  <bruno@clisp.org>
54301
54302         * m4/isc-posix.m4: Remove file.
54303         Suggested by Eric Blake.
54304
54305 2007-09-11  Eric Blake  <ebb9@byu.net>
54306
54307         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54308
54309 2007-09-10  Bruno Haible  <bruno@clisp.org>
54310
54311         * posix-modules: Fix typo in error message.
54312         Reported by Matt <mkraai@beckman.com>.
54313
54314 2007-09-09  Bruno Haible  <bruno@clisp.org>
54315
54316         * doc/functions/getdelim.texi: Update list of platforms lacking the
54317         function.
54318         * doc/functions/getline.texi: Likewise.
54319
54320 2007-09-09  Jim Meyering  <jim@meyering.net>
54321
54322         * lib/hash.c (hash_initialize): Detect calloc failure.
54323         Reported by Bruno Haible.
54324
54325 2007-09-09  Bruno Haible  <bruno@clisp.org>
54326
54327         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54328         malloc or realloc fails.
54329
54330 2007-09-09  Bruno Haible  <bruno@clisp.org>
54331
54332         * modules/getcwd (Depends-on): Add malloc-posix.
54333         * modules/glob (Depends-on): Likewise.
54334         * modules/putenv (Depends-on): Likewise.
54335         * modules/strdup (Depends-on): Likewise.
54336         * modules/getdelim (Depends-on): Add realloc-posix.
54337         * modules/read-file (Depends-on): Likewise.
54338
54339 2007-09-09  Bruno Haible  <bruno@clisp.org>
54340
54341         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54342         (gl_FUNC_MALLOC_POSIX): Require it.
54343         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54344         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54345         * modules/realloc (Files): Add m4/malloc.m4.
54346         * modules/calloc (Files): Likewise.
54347
54348 2007-09-09  Bruno Haible  <bruno@clisp.org>
54349
54350         * modules/malloc-posix: New file.
54351         * modules/malloc (Depends-on): Add malloc-posix.
54352         * lib/malloc.c: Include errno.h.
54353         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54354         and a POSIX-compatible malloc into a single function. Set ENOMEM
54355         when returning NULL.
54356         * m4/malloc.m4: New file.
54357         * doc/functions/malloc.texi: Mention the malloc-posix module.
54358         * lib/stdlib_.h (malloc): New declaration.
54359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54360         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54361         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54362         and HAVE_MALLOC_POSIX.
54363
54364 2007-09-09  Bruno Haible  <bruno@clisp.org>
54365
54366         * modules/realloc-posix: New file.
54367         * modules/realloc (Depends-on): Add realloc-posix.
54368         * lib/realloc.c: Include errno.h.
54369         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54370         and a POSIX-compatible realloc into a single function. Set ENOMEM
54371         when returning NULL.
54372         * m4/realloc.m4: New file.
54373         * doc/functions/realloc.texi: Mention the realloc-posix module.
54374         * lib/stdlib_.h (realloc): New declaration.
54375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54376         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54377         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54378         and HAVE_REALLOC_POSIX.
54379
54380 2007-09-09  Bruno Haible  <bruno@clisp.org>
54381
54382         * modules/calloc-posix: New file.
54383         * modules/calloc (Depends-on): Add calloc-posix.
54384         * lib/calloc.c: Include errno.h.
54385         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54386         and a POSIX-compatible calloc into a single function. Set ENOMEM
54387         when returning NULL.
54388         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54389         * doc/functions/calloc.texi: Mention the calloc-posix module.
54390         * lib/stdlib_.h (calloc): New declaration.
54391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54392         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54393         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54394         and HAVE_CALLOC_POSIX.
54395
54396 2007-09-09  Bruno Haible  <bruno@clisp.org>
54397
54398         Allow for modules to show an arbitrary notice.
54399         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54400         * gnulib-tool: New option --extract-notice.
54401         (func_usage): Document it.
54402         (sed_extract_prog): Update.
54403         (func_get_notice): New function.
54404         (func_modules_notice): New function.
54405         (func_import, func_create_testdir): Invoke it.
54406         Suggested by Jim Meyering.
54407
54408 2007-09-09  Bruno Haible  <bruno@clisp.org>
54409
54410         * gnulib-tool: New options --verbose, --quiet.
54411         (func_usage): Document them.
54412         (verbose): New variable.
54413         (func_execute_command): New function.
54414         (func_import): Don't show the module list and the file list if
54415         $verbose < 0.
54416         (func_create_testdir): Likewise. Use func_execute_command.
54417         (func_create_megatestdir): Use func_execute_command.
54418
54419 2007-09-08  Bruno Haible  <bruno@clisp.org>
54420
54421         * gnulib-tool (func_import): Prefer rsync over wget when available,
54422         for fetching the PO files.
54423
54424 2007-09-08  Bruno Haible  <bruno@clisp.org>
54425
54426         * posix-modules: New file. Portions copied from gnulib-tool.
54427         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54428
54429 2007-09-08  Jim Meyering  <jim@meyering.net>
54430
54431         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54432         * lib/fpending.h: Rename from __fpending.h.
54433         * lib/fpending.c: Rename from __fpending.c.
54434         Include "fpending.h", not "__fpending.h".
54435         * lib/__fpending.h, lib/__fpending.c: Remove files.
54436         * modules/fpending (Files): Reflect new file names.
54437         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54438
54439 2007-09-08  Bruno Haible  <bruno@clisp.org>
54440
54441         * m4/inttypes-h.m4: Remove stub file.
54442
54443 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54444
54445         * doc/headers/stdint.texi: Discuss #include_next issue.
54446
54447 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54450
54451 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54452
54453         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54454         in variable name.
54455
54456 2007-09-03  Jim Meyering  <jim@meyering.net>
54457
54458         New module: git-version-gen.
54459         * modules/git-version-gen: New file.
54460
54461         Import changes from coreutils for bootstrap script.
54462
54463         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54464
54465         bootstrap: uses rsync to download the .po files
54466         * build-aux/bootstrap (po_download_command_format): New global.
54467         (download_po_files): Use rsync.
54468         (update_po_files): Don't remove .po files after download,
54469         so future rsync runs can take advantage of the copies.
54470
54471         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54472
54473         Solve the unnecessary-.po-file-regeneration problem once and for all.
54474         * build-aux/bootstrap (download_po_files): New function, renamed from
54475         get_translations.  Now, downloads, but doesn't update LINGUAS.
54476         (update_po_files): New function.
54477
54478         bootstrap: Ignore more.
54479         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54480         uniwidth to e.g., lib/.gitignore.
54481         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54482
54483         * build-aux/bootstrap: New setting: vc_ignore.
54484         (insert_sorted_if_absent): Create $file if absent.
54485         Adapt to new, possibly empty, list: $vc_ignore.
54486
54487         bootstrap: generate more ignorable names
54488         * build-aux/bootstrap (slurp): When generating ignorable names,
54489         also map .sin to .sed, .gperf to .c, and .y to .c.
54490
54491 2007-09-03  Jim Meyering  <jim@meyering.net>
54492
54493         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54494         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54495
54496 2007-09-02  Bruno Haible  <bruno@clisp.org>
54497
54498         Fix mis-recognition of 'mcs' on QNX 6.
54499         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54500         output contains the string "Mono".
54501         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54502         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54503
54504 2007-09-01  Bruno Haible  <bruno@clisp.org>
54505
54506         Fix collision between uniwidth/* and linebreak modules.
54507         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54508         u32_width): Remove declarations.
54509         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54510         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54511         streq3, streq2, streq1, streq0): Remove functions.
54512         (STREQ): Remove macro.
54513         (is_cjk_encoding): Remove function.
54514         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54515         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54516         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54517         * NEWS: Document the change.
54518
54519 2007-09-01  Bruno Haible  <bruno@clisp.org>
54520
54521         * lib/streq.h: Add double-inclusion guard.
54522
54523 2007-09-01  Karl Berry  <karl@gnu.org>
54524
54525         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54526
54527 2007-08-28  Jim Meyering  <jim@meyering.net>
54528
54529         Rename mreadlink_with_size to areadlink_with_size.
54530         * NEWS: Document the change.
54531         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54532         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54533         * lib/mreadlink.h: Rename this to...
54534         * lib/areadlink.h: ...this.
54535         * modules/mreadlink-with-size: Rename this to...
54536         * modules/areadlink-with-size: ...this.
54537         * lib/canonicalize.c: Reflect the renaming.
54538         * modules/canonicalize: Likewise.
54539
54540 2007-08-26  Bruno Haible  <bruno@clisp.org>
54541
54542         * gnulib-tool (func_import): When deciding which files to remove,
54543         consider also dangling symbolic links.
54544         Reported by Eric Blake.
54545
54546 2007-08-26  Bruno Haible  <bruno@clisp.org>
54547
54548         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54549
54550 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54551
54552         * lib/readline.c: Don't include getline.h, the prototype is now
54553         found in stdio.h.
54554
54555 2007-08-23  Jim Meyering  <jim@meyering.net>
54556
54557         Getdelim touchup.
54558         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54559         around the funlockfile call, since funlockfile never sets errno.
54560         Don't set errno upon failed realloc.
54561
54562 2007-08-22  Eric Blake  <ebb9@byu.net>
54563
54564         Getline touchups.
54565         * lib/getdelim.c (getdelim): Revert regression that required *n to
54566         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54567         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54568         getdelim, rather than whether implementation is missing.
54569         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54570         * lib/stdio_.h (getline): Also declare if replacement is
54571         required.
54572         * doc/functions/getdelim.texi: New file.
54573         * doc/functions/getline.texi: Likewise.
54574         * doc/gnulib.texi (Function Substitutes): Add new files.
54575         Reported by Bruno Haible.
54576
54577 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54578
54579         * users.txt: Add Guile.
54580
54581 2007-08-22  Eric Blake  <ebb9@byu.net>
54582
54583         * tests/test-getdelim.c (main): Use remove, not unlink.
54584         * tests/test-getline.c (main): Likewise.
54585
54586         Move getline and getdelim into stdio.h, per POSIX 200x.
54587         * modules/getline (Files): Remove getline.h.
54588         (Depends-on): Add stdio.
54589         (configure.ac): Add module indicator.
54590         * modules/getdelim (Files): Remove getdelim.h.
54591         (Depends-on): Add stdio.
54592         (configure.ac): Add module indicator.
54593         * modules/stdio (Makefile.am): Work with new indicators.
54594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54595         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54596         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54597         * lib/getdelim.h: Delete.
54598         * lib/getline.h: Delete.
54599         * lib/stdio_.h (getdelim, getline): Declare.
54600         * modules/getdelim-tests: New module.
54601         * modules/getline-tests: Likewise.
54602         * tests/test-getdelim.c: New file.
54603         * tests/test-getline.c: Likewise.
54604         * NEWS: Document the change.
54605         * lib/getline.c: Update choice of header.
54606         * lib/csharpcomp.c: Likewise.
54607         * lib/getpass.c: Likewise.
54608         * lib/javacomp.c: Likewise.
54609         * lib/javaversion.c: Likewise.
54610         * lib/yesno.c: Likewise.
54611         * lib/getdelim.c: Likewise.
54612         (getdelim): Set errno on failure, and avoid memory leak.
54613
54614 2007-08-19  Bruno Haible  <bruno@clisp.org>
54615
54616         * modules/closein (Depends-on): Add freadahead.
54617         * lib/closein.c: Include freadahead.h.
54618         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54619         is zero.
54620
54621 2007-08-19  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/freadahead-tests: New file.
54624         * tests/test-freadahead.sh: New file.
54625         * tests/test-freadahead.c: New file.
54626
54627         * modules/freadahead: New file.
54628         * lib/freadahead.h: New file.
54629         * lib/freadahead.c: New file.
54630         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54631         fbufmode, fpurge, freadable, fwritable.
54632
54633 2007-08-19  Eric Blake  <ebb9@byu.net>
54634
54635         Test yesno in combination with closein.
54636         * lib/yesno.c (yesno): Document use of stdin.
54637         * modules/yesno-tests (Files): New module.
54638         * tests/test-yesno.c (main): New file.
54639         * tests/test-yesno.sh: Likewise.
54640
54641 2007-08-19  Bruno Haible  <bruno@clisp.org>
54642
54643         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54644         * lib/fseeko.c (rpl_fseeko): Likewise.
54645         * lib/fseterr.c (fseterr): Likewise.
54646
54647 2007-08-19  Bruno Haible  <bruno@clisp.org>
54648
54649         * tests/test-lseek.c (main): Disable a test for BeOS.
54650         * doc/functions/lseek.texi: Document the BeOS bug.
54651
54652 2007-08-19  Bruno Haible  <bruno@clisp.org>
54653             Eric Blake  <ebb9@byu.net>
54654
54655         * lib/lseek.c: Include <sys/stat.h>.
54656         (rpl_lseek): Add workaround code also for Unix platforms.
54657         Needed for BeOS.
54658         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54659         * doc/functions/lseek.texi: Document BeOS definiency.
54660
54661 2007-08-18  Bruno Haible  <bruno@clisp.org>
54662
54663         * modules/fstrcmp-tests: New file.
54664         * tests/test-fstrcmp.c: New file.
54665
54666 2007-08-18  Bruno Haible  <bruno@clisp.org>
54667
54668         * modules/fstrcmp: New file, from GNU gettext with modifications.
54669         * lib/fstrcmp.h: New file, from GNU gettext.
54670         * lib/fstrcmp.c: New file, from GNU gettext.
54671         * MODULES.html.sh (String handling): Add fstrcmp.
54672
54673 2007-08-18  Bruno Haible  <bruno@clisp.org>
54674
54675         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54676         'bool'.
54677         (diag, compareseq): Remove const from the ctxt argument.
54678         (USE_HEURISTIC): Undefine at the end.
54679
54680 2007-08-18  Jim Meyering  <jim@meyering.net>
54681
54682         New file: lib/idcache.h
54683         * NEWS: Mention the addition.
54684         * modules/idcache (Files): Add lib/idcache.h
54685         * lib/idcache.c: Include "idcache.h".
54686         Don't include <sys/types.h>.
54687         Add a FIXME comment.
54688         Move file-scoped "static" declarations to the top.
54689         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54690
54691 2007-08-17  Bruno Haible  <bruno@clisp.org>
54692         and Paul Eggert  <eggert@cs.ucla.edu>
54693
54694         * MODULES.html.sh: Add diffseq.
54695         * modules/diffseq: New file.
54696         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54697         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54698
54699 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         Import changes from coreutils for bootstrap script.
54702
54703         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * build-aux/bootstrap (slurp): Work even in environments where
54706         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54707         current code does not slurp files whose names start with ".", and
54708         this looks like it might be a troublesome area.
54709
54710         2007-07-11  Jim Meyering  <jim@meyering.net>
54711
54712         If there's a GPL vN copyright comment, require that N == 3.
54713
54714         2007-07-08  Jim Meyering  <jim@meyering.net>
54715
54716         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54717         * build-aux/bootstrap (mam_template): Move definition out of loop.
54718
54719         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54720
54721         * build-aux/bootstrap (symlink_to_dir): Rename function from
54722         symlink_to_gnulib.  Add a directory parameter.  Update all
54723         callers.
54724         (cp_mark_as_generated): Also check for -- and link to -- files in
54725         gl/.
54726
54727         2007-07-08  Jim Meyering  <jim@meyering.net>
54728
54729         Adapt to deeper hierarchy in gnulib.
54730         * build-aux/bootstrap (symlink_to_dir): If the destination
54731         directory doesn't exist, create it. This is required at least for
54732         "lib/uniwidth/cjk.h".
54733
54734         2007-05-15  Jim Meyering  <jim@meyering.net>
54735
54736         * build-aux/bootstrap: Now that generated Makefile.am files
54737         are no longer under version control, they must be created at
54738         bootstrap time.
54739
54740 2007-08-14  Ben Pfaff  <blp@gnu.org>
54741
54742         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54743
54744 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54745
54746         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54747         given the changes below.
54748         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54749         even on hosts that have padding bits beyond the supported 64.
54750
54751 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54752
54753         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54754         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54755         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54756         depends on it.
54757         (xstrtol_error): Remove.
54758         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54759         but with a different signature.
54760         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54761         * lib/xstrtol-error.c: Include exitfail.h.
54762         (xstrtol_fatal): New function, with a different signature from the
54763         old xstrtol_error, so that the caller need not worry about passing
54764         in an exit status, or about storage management of the option argument.
54765         (xstrtol_error): Now a static function.  Redo signature to
54766         implement xstrtol_fatal.  Output the correct number of hyphens in
54767         front of the option so that the caller need not worry about
54768         storage management.
54769         (N_): New macro.
54770         (_): Remove; not used now.
54771         * modules/xstrtol: Depend on getopt.
54772         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54773         of old STRTOL_FATAL_ERROR macro.
54774         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54775         of test program.
54776         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54777         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54778
54779 2007-08-08  Eric Blake  <ebb9@byu.net>
54780
54781         * lib/xstrtol-error.c: Add missing include.
54782
54783         Move xstrtol messages into gnulib domain, when --pobase is used.
54784         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54785         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54786         * modules/xstrtol (Files): Distribute new file.
54787         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54788         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54789         * tests/test-xstrtol.c: ...into new file.
54790         * tests/test-xstrtoul.c: Also test xstrtoul.
54791         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54792         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54793         * tests/test-xstrtol.sh: Drive the tests.
54794         * tests/test-xstrtoimax.sh: Likewise.
54795         * tests/test-xstrtoumax.sh: Likewise.
54796         * modules/xstrtol-tests: New module.
54797         * modules/xstrtoimax-tests: Likewise.
54798         * modules/xstrtoumax-tests: Likewise.
54799
54800 2007-08-08  Jim Meyering  <jim@meyering.net>
54801
54802         New function: mfile_name_concat.
54803         * lib/filenamecat.c (mfile_name_concat): New function, just like
54804         file_name_concat, but return NULL upon failure rather than exiting
54805         with a diagnostic.
54806         * lib/filenamecat.h: Declare it.
54807
54808 2007-08-07  Bruno Haible  <bruno@clisp.org>
54809
54810         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54811         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54812         warning from gcc.
54813         Reported by Eric Blake.
54814
54815 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54816
54817         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54818         * modules/crypto/arcfour (License): Likewise.
54819         * modules/crypto/des-tests (License): Likewise.
54820         * modules/crypto/gc-arctwo-tests (License): Likewise.
54821         * modules/crypto/gc-des-tests (License): Likewise.
54822         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54823         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54824         * modules/crypto/gc-md2-tests (License): Likewise.
54825         * modules/crypto/gc-md4-tests (License): Likewise.
54826         * modules/crypto/gc-md5-tests (License): Likewise.
54827         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54828         * modules/crypto/gc-rijndael-tests (License): Likewise.
54829         * modules/crypto/gc-sha1-tests (License): Likewise.
54830         * modules/crypto/gc-tests (License): Likewise.
54831         * modules/crypto/hmac-md5 (License): Likewise.
54832         * modules/crypto/hmac-sha1 (License): Likewise.
54833         * modules/crypto/md2-tests (License): Likewise.
54834         * modules/crypto/md4-tests (License): Likewise.
54835         * modules/crypto/md5 (License): Likewise.
54836         * modules/crypto/rijndael (License): Likewise.
54837         * modules/crypto/sha1 (License): Likewise.
54838         * modules/memxor (License): Likewise.
54839
54840 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54841         and Bruno Haible  <bruno@clisp.org>
54842
54843         * NEWS: Describe interface changes to human, xstrtol.
54844         * lib/human.h: Include <xstrtol.h>.
54845         (human_options): Return enum strtol_error, not int.  Remove
54846         bool arg; take int * instead.
54847         * lib/human.c: Don't include "gettext.h".
54848         (_): Remove; no longer used.
54849         Don't include <xstrtol.h>, since human.h does it.
54850         (human_options): Adjust to abovementioned interface changes.
54851         Do not report error to stderr; that's now the caller's
54852         responsibility.
54853         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54854         interface change.
54855         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54856         Str, Argument_type_string.  All uses changed.  Put " argument"
54857         in diagnostics to make them clearer.  Change wording of suffix
54858         message for clarity.
54859         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54860         Argument_type_string.
54861         (STRTOL_FATAL_WARN): Remove; no longer used.
54862         * modules/human (Depends-on): Remove gettext-h.
54863
54864 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54865
54866         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54867
54868 2007-07-31  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54871         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54872         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54873
54874 2007-07-31  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54877         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54878
54879 2007-07-30  Bruno Haible  <bruno@clisp.org>
54880
54881         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54882         * modules/c-ctype (License): Likewise.
54883         * modules/c-strcase (License): Likewise.
54884         * modules/check-version (License): Likewise.
54885         * modules/iconv (License): Likewise.
54886         * modules/iconv_open (License): Likewise.
54887         * modules/read-file (License): Likewise.
54888         * modules/striconv (License): Likewise.
54889         * modules/strverscmp (License): Likewise.
54890         * modules/vasprintf (License): Likewise.
54891         * modules/crypto/des (License): Likewise.
54892         * modules/crypto/gc (License): Likewise.
54893         * modules/crypto/gc-arcfour (License): Likewise.
54894         * modules/crypto/gc-arctwo (License): Likewise.
54895         * modules/crypto/gc-des (License): Likewise.
54896         * modules/crypto/gc-hmac-md5 (License): Likewise.
54897         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54898         * modules/crypto/gc-md2 (License): Likewise.
54899         * modules/crypto/gc-md4 (License): Likewise.
54900         * modules/crypto/gc-md5 (License): Likewise.
54901         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54902         * modules/crypto/gc-random (License): Likewise.
54903         * modules/crypto/gc-rijndael (License): Likewise.
54904         * modules/crypto/gc-sha1 (License): Likewise.
54905         * modules/crypto/md2 (License): Likewise.
54906         * modules/crypto/md4 (License): Likewise.
54907
54908 2007-07-30  Jim Meyering  <jim@meyering.net>
54909
54910         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54911         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54912         it has valid stat data.  This bug would cause du not to count the
54913         sizes of inaccessible directories.
54914         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54915         in <http://bugzilla.redhat.com/250077>.
54916
54917 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54918             Bruno Haible  <bruno@clisp.org>
54919
54920         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54921         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54922         #include_next, gives a diagnostic about it, but reports no error in
54923         the exit code.
54924         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54925
54926 2007-07-24  Ben Pfaff  <blp@gnu.org>
54927
54928         Improve name: "count-one-bits" is better than "popcount".
54929         * MODULES.html.sh: Update name.
54930         * lib/popcount.h: Renamed lib/count-one-bits.h.
54931         (popcount): Renamed count_one_bits.
54932         (popcountl): Renamed count_one_bits_l.
54933         (popcountll): Renamed count_one_bits_ll.
54934         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54935         * modules/popcount: Renamed module/count-one-bits.
54936         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54937         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54938
54939 2007-07-23  Ben Pfaff  <blp@gnu.org>
54940
54941         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54942         better code generation, and add U to large constants to avoid
54943         warnings, in non-GCC case.
54944         Suggested by Bruno Haible.
54945
54946 2007-07-23  Ben Pfaff  <blp@gnu.org>
54947
54948         * lib/popcount.h: Use verify_true instead of if...abort.
54949         * modules/popcount: Depend on verify module.
54950         Suggested by Jim Meyering.
54951
54952 2007-07-23  Bruno Haible  <bruno@clisp.org>
54953
54954         * gnulib-tool (func_import): Create a .cvsignore file also when the
54955         directory is not yet in CVS but the toplevel directory is. When
54956         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54957         Reported by Karl Berry.
54958
54959 2007-07-22  Ben Pfaff  <blp@gnu.org>
54960
54961         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54962         case.
54963         Suggested by Eric Blake.
54964
54965 2007-07-22  Ben Pfaff  <blp@gnu.org>
54966
54967         New module: popcount.
54968         * MODULES.html.sh: Add popcount.
54969         * modules/popcount: New file.
54970         * modules/popcount-tests: New file.
54971         * tests/test-popcount.c: New file.
54972         * lib/popcount.h: New file.
54973         * m4/popcount.m4: New file.
54974
54975 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * build-aux/announce-gen: Update to GPLv3.
54978
54979         * build-aux/config.guess: Update from config.
54980
54981 2007-07-21  Bruno Haible  <bruno@clisp.org>
54982
54983         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54984         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54985
54986 2007-07-20  Jim Meyering  <jim@meyering.net>
54987
54988         * check-module: Diagnose a self-dependency.
54989
54990 2007-07-19  Bruno Haible  <bruno@clisp.org>
54991
54992         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54993         empty.
54994         Reported by Eric Blake.
54995
54996 2007-07-18  Bruno Haible  <bruno@clisp.org>
54997
54998         * gnulib-tool: New options --po-base, --po-domain.
54999         (func_usage): Document them.
55000         (pobase, po_domain): New variables.
55001         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55002         DEFAULT_TEXT_DOMAIN.
55003         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55004         (func_import): Consider pobase and po_domain. Create a po/ directory.
55005         (func_create_testdir): Set pobase and po_domain to empty.
55006         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55007         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55008
55009 2007-07-18  Bruno Haible  <bruno@clisp.org>
55010
55011         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55012         EXTRA_DIST augmentation for files in build-aux/.
55013
55014 2007-07-16  Bruno Haible  <bruno@clisp.org>
55015
55016         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55017         * modules/getdelim (License): Likewise.
55018
55019 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55020
55021         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55022         * modules/d-type (License): Likewise.
55023         * modules/extensions (License): Likewise.
55024         * modules/fnmatch (License): Likewise.
55025         * modules/fseeko (License): Likewise.
55026         * modules/getaddrinfo (License): Likewise.
55027         * modules/getline (License): Likewise.
55028         * modules/getlogin_r (License): Likewise.
55029         * modules/getpass (License): Likewise.
55030         * modules/gettimeofday (License): Likewise.
55031         * modules/glob (License): Likewise.
55032         * modules/inet_ntop (License): Likewise.
55033         * modules/malloc (License): Likewise.
55034         * modules/malloca (License): Likewise.
55035         * modules/memmem (License): Likewise.
55036         * modules/mempcpy (License): Likewise.
55037         * modules/memset (License): Likewise.
55038         * modules/minmax (License): Likewise.
55039         * modules/mktime (License): Likewise.
55040         * modules/netinet_in (License): Likewise.
55041         * modules/pathmax (License): Likewise.
55042         * modules/poll (License): Likewise.
55043         * modules/regex (License): Likewise.
55044         * modules/snprintf (License): Likewise.
55045         * modules/stdbool (License): Likewise.
55046         * modules/stdint (License): Likewise.
55047         * modules/stdio (License): Likewise.
55048         * modules/strcase (License): Likewise.
55049         * modules/strcasestr (License): Likewise.
55050         * modules/strdup (License): Likewise.
55051         * modules/string (License): Likewise.
55052         * modules/strndup (License): Likewise.
55053         * modules/strnlen (License): Likewise.
55054         * modules/strpbrk (License): Likewise.
55055         * modules/strptime (License): Likewise.
55056         * modules/strsep (License): Likewise.
55057         * modules/sys_select (License): Likewise.
55058         * modules/sys_socket (License): Likewise.
55059         * modules/sys_stat (License): Likewise.
55060         * modules/sys_time (License): Likewise.
55061         * modules/time (License): Likewise.
55062         * modules/time_r (License): Likewise.
55063         * modules/timegm (License): Likewise.
55064         * modules/unistd (License): Likewise.
55065         * modules/vsnprintf (License): Likewise.
55066         * modules/wctype (License): Likewise.
55067
55068 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55069
55070         * modules/argz (License): LGPLv2+.
55071
55072 2007-07-15  Karl Berry  <karl@gnu.org>
55073
55074         * doc/gnulib.texi: revise node structure per new fdl.texi.
55075
55076 2007-07-14  Bruno Haible  <bruno@clisp.org>
55077
55078         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55079         the output file.
55080         * lib/uniname/uninames.h: Regenerated.
55081
55082 2007-07-14  Karl Berry  <karl@gnu.org>
55083
55084         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55085         omitting sectioning and index commands.
55086
55087 2007-07-13  Bruno Haible  <bruno@clisp.org>
55088
55089         New gnulib-tool option --more-symlinks.
55090         * gnulib-tool (func_usage): Document --more-symlinks.
55091         (do_copyrights): New variable.
55092         Recognize option --more-symlinks.
55093         (func_import): Don't add a copyright notice transform to
55094         sed_transform_lib_file if do_copyrights is empty.
55095
55096 2007-07-13  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/vasnprintf.c (decimal_point_char): Define also if
55099         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55100         && !NEED_PRINTF_DIRECTIVE_A.
55101         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55102         Gary V. Vaughan <gary@gnu.org>.
55103
55104 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * lib/inttypes_.h: Undo previous change, since it was fixed
55107         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55108
55109 2007-07-13  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55112         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55113
55114 2007-07-13  Jim Meyering  <jim@meyering.net>
55115
55116         df: Don't fail for Tru64's "file-on-file mount".
55117         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55118         so we fall through and use statfs instead.  Details here:
55119         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55120         Reported by Albert Chin.
55121
55122 2007-07-13  Bruno Haible  <bruno@clisp.org>
55123
55124         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55125         * modules/configmake (License): Likewise.
55126         * modules/gettext (License): Likewise.
55127         * modules/gettext-h (License): Likewise.
55128         * modules/include_next (License): Likewise.
55129         * modules/link-warning (License): Likewise.
55130         * modules/localcharset (License): Likewise.
55131         * modules/localename (License): Likewise.
55132         * modules/lock (License): Likewise.
55133         * modules/relocatable-lib-lgpl (License): Likewise.
55134         * modules/size_max (License): Likewise.
55135         * modules/vasnprintf (License): Likewise.
55136         * modules/wchar (License): Likewise.
55137         * modules/xsize (License): Likewise.
55138
55139 2007-07-13  Bruno Haible  <bruno@clisp.org>
55140
55141         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55142         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55143
55144 2007-07-12  Bruno Haible  <bruno@clisp.org>
55145
55146         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55147         in the modules files.
55148
55149 2007-07-11  Karl Berry  <karl@gnu.org>
55150
55151         * MODULES.html.sh (func_module): use
55152          sed -e '\|^'"${includefile}"'$|d'
55153          instead of /.../d, to avoid errors on $includefile's containing /.
55154
55155 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55156
55157         * gnulib-tool (func_import): Avoid duplication of --avoid
55158         statements
55159         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55160         names to `_' in variable names.
55161
55162 2007-07-10  Eric Blake  <ebb9@byu.net>
55163
55164         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55165         * NEWS: Document this change.
55166
55167 2007-07-08  Bruno Haible  <bruno@clisp.org>
55168
55169         Update to Unicode 5.0.
55170         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55171         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55172         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55173         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55174         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55175         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55176         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55177         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55178         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55179         U+10A3F, U+1D242..U+1D244.
55180         (nonspacing_table_ind): Update.
55181         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55182         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55183
55184 2007-07-08  Bruno Haible  <bruno@clisp.org>
55185
55186         Update to Unicode 5.0.
55187         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55188         code transform. Extend the name index field of unicode_name_to_code and
55189         unicode_code_to_name from 16 to 24 bits.
55190         * lib/uniname/uniname.c (unicode_character_name,
55191         unicode_name_character): Add the range 0x12xxx to the code transform.
55192         * lib/uniname/uninames.h: Regenerated.
55193         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55194
55195 2007-07-07  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/wcwidth-tests: New file.
55198         * tests/test-wcwidth.c: New file.
55199
55200         Work around MacOS X wcwidth() bug.
55201         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55202         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55203         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55204         original wcwidth in non-UTF-8 locales.
55205         * modules/wcwidth (Depends-on): Add localcharset, streq,
55206         uniwidth/width.
55207         * doc/functions/wcwidth.texi: Update.
55208
55209 2007-07-07  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55212         (wcwidth): New declaration.
55213         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55214         macros.
55215         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55216         here. Prepare for creating <wchar.h> unconditionally.
55217         * modules/wchar (Depends-on): Add link-warning.
55218         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55219         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55220         * lib/wcwidth.h: Remove file.
55221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55222         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55223         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55224         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55225         (Include): Replace wcwidth.h with <wchar.h>.
55226         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55227         * lib/mbchar.h: Don't include wcwidth.h.
55228         * lib/mbswidth.c: Likewise.
55229         * NEWS: Mention the change.
55230
55231 2007-07-07  Bruno Haible  <bruno@clisp.org>
55232
55233         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55234         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55235         definition with an external declaration.
55236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55237         defined as a function. Remove AC_C_INLINE requirement.
55238         * modules/wcwidth (Files): Add lib/wcwidth.c.
55239         (Makefile.am): Remove redundant statement.
55240
55241 2007-07-07  Bruno Haible  <bruno@clisp.org>
55242
55243         * MODULES.html.sh (Unicode string functions): Add the new modules.
55244
55245         * tests/uniwidth/test-u32-strwidth.c: New file.
55246         * modules/uniwidth/u32-strwidth-tests: New file.
55247
55248         * lib/uniwidth/u32-strwidth.c: New file.
55249         * modules/uniwidth/u32-strwidth: New file.
55250
55251         * tests/uniwidth/test-u16-strwidth.c: New file.
55252         * modules/uniwidth/u16-strwidth-tests: New file.
55253
55254         * lib/uniwidth/u16-strwidth.c: New file.
55255         * modules/uniwidth/u16-strwidth: New file.
55256
55257         * tests/uniwidth/test-u8-strwidth.c: New file.
55258         * modules/uniwidth/u8-strwidth-tests: New file.
55259
55260         * lib/uniwidth/u8-strwidth.c: New file.
55261         * modules/uniwidth/u8-strwidth: New file.
55262
55263         * tests/uniwidth/test-u32-width.c: New file.
55264         * modules/uniwidth/u32-width-tests: New file.
55265
55266         * lib/uniwidth/u32-width.c: New file.
55267         * modules/uniwidth/u32-width: New file.
55268
55269         * tests/uniwidth/test-u16-width.c: New file.
55270         * modules/uniwidth/u16-width-tests: New file.
55271
55272         * lib/uniwidth/u16-width.c: New file.
55273         * modules/uniwidth/u16-width: New file.
55274
55275         * tests/uniwidth/test-u8-width.c: New file.
55276         * modules/uniwidth/u8-width-tests: New file.
55277
55278         * lib/uniwidth/u8-width.c: New file.
55279         * modules/uniwidth/u8-width: New file.
55280
55281         * tests/uniwidth/test-uc_width.c: New file.
55282         * modules/uniwidth/width-tests: New file.
55283
55284         * lib/uniwidth/width.c: New file, from GNU libiconv.
55285         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55286         * modules/uniwidth/width: New file.
55287
55288         * lib/uniwidth.h: New file, from GNU libiconv.
55289         * modules/uniwidth/base: New file.
55290
55291 2007-07-07  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/uniname.h: New file, from GNU gettext.
55294         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55295         * lib/uniname/uninames.h: New file, from GNU gettext.
55296         * lib/uniname/uniname.c: New file, from GNU gettext.
55297         * tests/uniname/test-uninames.sh: New file.
55298         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55299         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55300         * modules/uniname/base: New file.
55301         * modules/uniname/uniname: New file.
55302         * modules/uniname/uniname-tests: New file.
55303         * MODULES.html.sh (Unicode string functions): Add the new modules.
55304
55305 2007-07-06  Bruno Haible  <bruno@clisp.org>
55306
55307         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55308
55309 2007-07-06  Bruno Haible  <bruno@clisp.org>
55310
55311         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55312         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55313         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55314         include <sys/time.h>.
55315         Reported by Eric Blake.
55316
55317 2007-07-06  Eric Blake  <ebb9@byu.net>
55318
55319         Fix testing canonicalize on cygwin.
55320         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55321         Revert patch from 2007-06-19.
55322         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55323         canonicalize module is also in use.
55324         * tests/test-canonicalize.c: New file.
55325         * tests/test-canonicalize.sh: Likewise.
55326         * modules/canonicalize-tests: Likewise.
55327
55328 2007-07-06  Jim Meyering  <jim@meyering.net>
55329
55330         * lib/getugroups.c (getugroups): Detect getgrent failure.
55331         Adjust comment to reflect reality: this function may return -1.
55332
55333 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55334
55335         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55336         the new TP address.
55337         (usage): Fix typo
55338         (gnulib_mk): New variable.
55339
55340 2007-07-05  Jim Meyering  <jim@meyering.net>
55341
55342         Don't let endgrent clobber errno, no matter how improbable.
55343         * lib/getugroups.c (getugroups): Save and restore errno around
55344         endgrent call.
55345
55346         Close the group DB even when failing with 2^31 or more members.
55347         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55348
55349 2007-07-04  Jim Meyering  <jim@meyering.net>
55350
55351         * lib/getugroups.h: New file.
55352         * lib/getugroups.c: Include "getugroups.h".
55353         Remove uses of "register" keyword.
55354         Move local variable, "cp", down into scope where used.
55355         Give "username" parameter the "const" attribute.
55356         * modules/getugroups (Files): Add lib/getugroups.h
55357
55358 2007-07-04  Karl Berry  <karl@gnu.org>
55359
55360         * MODULES.html.sh (func_all_modules): Complete rename of
55361         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55362
55363 2007-07-02  Bruno Haible  <bruno@clisp.org>
55364
55365         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55366         mode, when inttypes.h comes from gnulib.
55367         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55368
55369 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55370
55371         * NEWS: Mention lgpl module name change.
55372
55373         * modules/lgpl-2.1: Renamed from lgpl.
55374
55375         * NEWS: Mention gpl module name change.
55376
55377         * modules/gpl-3.0: New file, based on gpl-2.0.
55378
55379         * modules/gpl-2.0: Renamed from gpl.
55380
55381         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55382         doc/gpl-2.0.texi.
55383
55384 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55387         #define __STDC_LIMIT_MACROS temporarily while including
55388         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55389         Problem reported by Joel E. Denny in
55390         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55391
55392 2007-07-01  Bruno Haible  <bruno@clisp.org>
55393
55394         * lib/unistdio.h: New file.
55395         * lib/unistdio/u-asnprintf.h: New file.
55396         * lib/unistdio/u-asprintf.h: New file.
55397         * lib/unistdio/u-printf-args.c: New file.
55398         * lib/unistdio/u-printf-args.h: New file.
55399         * lib/unistdio/u-printf-parse.h: New file.
55400         * lib/unistdio/u-snprintf.h: New file.
55401         * lib/unistdio/u-sprintf.h: New file.
55402         * lib/unistdio/u-vasprintf.h: New file.
55403         * lib/unistdio/u-vsnprintf.h: New file.
55404         * lib/unistdio/u-vsprintf.h: New file.
55405         * lib/unistdio/ulc-asnprintf.c: New file.
55406         * lib/unistdio/ulc-asprintf.c: New file.
55407         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55408         * lib/unistdio/ulc-printf-parse.c: New file.
55409         * lib/unistdio/ulc-snprintf.c: New file.
55410         * lib/unistdio/ulc-sprintf.c: New file.
55411         * lib/unistdio/ulc-vasnprintf.c: New file.
55412         * lib/unistdio/ulc-vasprintf.c: New file.
55413         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55414         * lib/unistdio/ulc-vsnprintf.c: New file.
55415         * lib/unistdio/ulc-vsprintf.c: New file.
55416         * lib/unistdio/u8-asnprintf.c: New file.
55417         * lib/unistdio/u8-asprintf.c: New file.
55418         * lib/unistdio/u8-printf-parse.c: New file.
55419         * lib/unistdio/u8-snprintf.c: New file.
55420         * lib/unistdio/u8-sprintf.c: New file.
55421         * lib/unistdio/u8-vasnprintf.c: New file.
55422         * lib/unistdio/u8-vasprintf.c: New file.
55423         * lib/unistdio/u8-vsnprintf.c: New file.
55424         * lib/unistdio/u8-vsprintf.c: New file.
55425         * lib/unistdio/u8-u8-asnprintf.c: New file.
55426         * lib/unistdio/u8-u8-asprintf.c: New file.
55427         * lib/unistdio/u8-u8-snprintf.c: New file.
55428         * lib/unistdio/u8-u8-sprintf.c: New file.
55429         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55430         * lib/unistdio/u8-u8-vasprintf.c: New file.
55431         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55432         * lib/unistdio/u8-u8-vsprintf.c: New file.
55433         * lib/unistdio/u16-asnprintf.c: New file.
55434         * lib/unistdio/u16-asprintf.c: New file.
55435         * lib/unistdio/u16-printf-parse.c: New file.
55436         * lib/unistdio/u16-snprintf.c: New file.
55437         * lib/unistdio/u16-sprintf.c: New file.
55438         * lib/unistdio/u16-vasnprintf.c: New file.
55439         * lib/unistdio/u16-vasprintf.c: New file.
55440         * lib/unistdio/u16-vsnprintf.c: New file.
55441         * lib/unistdio/u16-vsprintf.c: New file.
55442         * lib/unistdio/u16-u16-asnprintf.c: New file.
55443         * lib/unistdio/u16-u16-asprintf.c: New file.
55444         * lib/unistdio/u16-u16-snprintf.c: New file.
55445         * lib/unistdio/u16-u16-sprintf.c: New file.
55446         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55447         * lib/unistdio/u16-u16-vasprintf.c: New file.
55448         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55449         * lib/unistdio/u16-u16-vsprintf.c: New file.
55450         * lib/unistdio/u32-asnprintf.c: New file.
55451         * lib/unistdio/u32-asprintf.c: New file.
55452         * lib/unistdio/u32-printf-parse.c: New file.
55453         * lib/unistdio/u32-snprintf.c: New file.
55454         * lib/unistdio/u32-sprintf.c: New file.
55455         * lib/unistdio/u32-vasnprintf.c: New file.
55456         * lib/unistdio/u32-vasprintf.c: New file.
55457         * lib/unistdio/u32-vsnprintf.c: New file.
55458         * lib/unistdio/u32-vsprintf.c: New file.
55459         * lib/unistdio/u32-u32-asnprintf.c: New file.
55460         * lib/unistdio/u32-u32-asprintf.c: New file.
55461         * lib/unistdio/u32-u32-snprintf.c: New file.
55462         * lib/unistdio/u32-u32-sprintf.c: New file.
55463         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55464         * lib/unistdio/u32-u32-vasprintf.c: New file.
55465         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55466         * lib/unistdio/u32-u32-vsprintf.c: New file.
55467         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55468         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55469         * tests/unistdio/test-ulc-printf1.h: New file.
55470         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55471         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55472         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55473         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55474         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55475         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55476         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55477         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55478         * tests/unistdio/test-u8-asnprintf1.c: New file.
55479         * tests/unistdio/test-u8-asnprintf1.h: New file.
55480         * tests/unistdio/test-u8-printf1.h: New file.
55481         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55482         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55483         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55484         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55485         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55486         * tests/unistdio/test-u8-vasprintf1.c: New file.
55487         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55488         * tests/unistdio/test-u8-vsprintf1.c: New file.
55489         * tests/unistdio/test-u16-asnprintf1.c: New file.
55490         * tests/unistdio/test-u16-asnprintf1.h: New file.
55491         * tests/unistdio/test-u16-printf1.h: New file.
55492         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55493         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55494         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55495         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55496         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55497         * tests/unistdio/test-u16-vasprintf1.c: New file.
55498         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55499         * tests/unistdio/test-u16-vsprintf1.c: New file.
55500         * tests/unistdio/test-u32-asnprintf1.c: New file.
55501         * tests/unistdio/test-u32-asnprintf1.h: New file.
55502         * tests/unistdio/test-u32-printf1.h: New file.
55503         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55504         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55505         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55506         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55507         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55508         * tests/unistdio/test-u32-vasprintf1.c: New file.
55509         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55510         * tests/unistdio/test-u32-vsprintf1.c: New file.
55511         * modules/unistdio/base: New file.
55512         * modules/unistdio/u-printf-args: New file.
55513         * modules/unistdio/ulc-asnprintf: New file.
55514         * modules/unistdio/ulc-asprintf: New file.
55515         * modules/unistdio/ulc-fprintf: New file.
55516         * modules/unistdio/ulc-printf-parse: New file.
55517         * modules/unistdio/ulc-snprintf: New file.
55518         * modules/unistdio/ulc-sprintf: New file.
55519         * modules/unistdio/ulc-vasnprintf: New file.
55520         * modules/unistdio/ulc-vasprintf: New file.
55521         * modules/unistdio/ulc-vfprintf: New file.
55522         * modules/unistdio/ulc-vsnprintf: New file.
55523         * modules/unistdio/ulc-vsprintf: New file.
55524         * modules/unistdio/u8-asnprintf: New file.
55525         * modules/unistdio/u8-asprintf: New file.
55526         * modules/unistdio/u8-printf-parse: New file.
55527         * modules/unistdio/u8-snprintf: New file.
55528         * modules/unistdio/u8-sprintf: New file.
55529         * modules/unistdio/u8-vasnprintf: New file.
55530         * modules/unistdio/u8-vasprintf: New file.
55531         * modules/unistdio/u8-vsnprintf: New file.
55532         * modules/unistdio/u8-vsprintf: New file.
55533         * modules/unistdio/u8-u8-asnprintf: New file.
55534         * modules/unistdio/u8-u8-asprintf: New file.
55535         * modules/unistdio/u8-u8-snprintf: New file.
55536         * modules/unistdio/u8-u8-sprintf: New file.
55537         * modules/unistdio/u8-u8-vasnprintf: New file.
55538         * modules/unistdio/u8-u8-vasprintf: New file.
55539         * modules/unistdio/u8-u8-vsnprintf: New file.
55540         * modules/unistdio/u8-u8-vsprintf: New file.
55541         * modules/unistdio/u16-asnprintf: New file.
55542         * modules/unistdio/u16-asprintf: New file.
55543         * modules/unistdio/u16-printf-parse: New file.
55544         * modules/unistdio/u16-snprintf: New file.
55545         * modules/unistdio/u16-sprintf: New file.
55546         * modules/unistdio/u16-vasnprintf: New file.
55547         * modules/unistdio/u16-vasprintf: New file.
55548         * modules/unistdio/u16-vsnprintf: New file.
55549         * modules/unistdio/u16-vsprintf: New file.
55550         * modules/unistdio/u16-u16-asnprintf: New file.
55551         * modules/unistdio/u16-u16-asprintf: New file.
55552         * modules/unistdio/u16-u16-snprintf: New file.
55553         * modules/unistdio/u16-u16-sprintf: New file.
55554         * modules/unistdio/u16-u16-vasnprintf: New file.
55555         * modules/unistdio/u16-u16-vasprintf: New file.
55556         * modules/unistdio/u16-u16-vsnprintf: New file.
55557         * modules/unistdio/u16-u16-vsprintf: New file.
55558         * modules/unistdio/u32-asnprintf: New file.
55559         * modules/unistdio/u32-asprintf: New file.
55560         * modules/unistdio/u32-printf-parse: New file.
55561         * modules/unistdio/u32-snprintf: New file.
55562         * modules/unistdio/u32-sprintf: New file.
55563         * modules/unistdio/u32-vasnprintf: New file.
55564         * modules/unistdio/u32-vasprintf: New file.
55565         * modules/unistdio/u32-vsnprintf: New file.
55566         * modules/unistdio/u32-vsprintf: New file.
55567         * modules/unistdio/u32-u32-asnprintf: New file.
55568         * modules/unistdio/u32-u32-asprintf: New file.
55569         * modules/unistdio/u32-u32-snprintf: New file.
55570         * modules/unistdio/u32-u32-sprintf: New file.
55571         * modules/unistdio/u32-u32-vasnprintf: New file.
55572         * modules/unistdio/u32-u32-vasprintf: New file.
55573         * modules/unistdio/u32-u32-vsnprintf: New file.
55574         * modules/unistdio/u32-u32-vsprintf: New file.
55575         * modules/unistdio/ulc-asnprintf-tests: New file.
55576         * modules/unistdio/ulc-vasnprintf-tests: New file.
55577         * modules/unistdio/ulc-vasprintf-tests: New file.
55578         * modules/unistdio/ulc-vsnprintf-tests: New file.
55579         * modules/unistdio/ulc-vsprintf-tests: New file.
55580         * modules/unistdio/u8-asnprintf-tests: New file.
55581         * modules/unistdio/u8-vasnprintf-tests: New file.
55582         * modules/unistdio/u8-vasprintf-tests: New file.
55583         * modules/unistdio/u8-vsnprintf-tests: New file.
55584         * modules/unistdio/u8-vsprintf-tests: New file.
55585         * modules/unistdio/u16-asnprintf-tests: New file.
55586         * modules/unistdio/u16-vasnprintf-tests: New file.
55587         * modules/unistdio/u16-vasprintf-tests: New file.
55588         * modules/unistdio/u16-vsnprintf-tests: New file.
55589         * modules/unistdio/u16-vsprintf-tests: New file.
55590         * modules/unistdio/u32-asnprintf-tests: New file.
55591         * modules/unistdio/u32-vasnprintf-tests: New file.
55592         * modules/unistdio/u32-vasprintf-tests: New file.
55593         * modules/unistdio/u32-vsnprintf-tests: New file.
55594         * modules/unistdio/u32-vsprintf-tests: New file.
55595         * MODULES.html.sh (Unicode string functions): Add the new modules.
55596
55597 2007-07-01  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/sprintf.c (sprintf): Limit the available length estimation,
55600         to avoid address wraparound.
55601         * lib/vsprintf.c (vsprintf): Likewise.
55602         * modules/sprintf-posix (Dependencies): Add stdint.
55603         * modules/vsprintf-posix (Dependencies): Likewise.
55604
55605 2007-07-01  Bruno Haible  <bruno@clisp.org>
55606
55607         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55608         Windows PATH as well. Conservative double-quoting. Comments.
55609
55610 2007-07-01  Bruno Haible  <bruno@clisp.org>
55611             Eric Blake  <ebb9@byu.net>
55612             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55613
55614         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55615         empty components in $PATH, denoting '.'.
55616
55617 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55618
55619         * gnulib-tool: Fix indentation.
55620         (func_create_megatestdir): Likewise.
55621         Report by Bruno Haible.
55622
55623 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55624
55625         Sync from Automake.
55626         * build-aux/gnupload: Fix shell portability issues with for loops.
55627         Report by Karl Berry.
55628
55629 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55630
55631         * build-aux/maint.mk (POURL): Use translationproject.org.
55632
55633 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55634             Bruno Haible  <bruno@clisp.org>
55635
55636         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55637         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55638         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55639         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55640         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55641
55642 2007-06-27  Bruno Haible  <bruno@clisp.org>
55643
55644         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55645         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55646
55647 2007-06-26  Karl Berry  <karl@gnu.org>
55648
55649         * MODULES.html.sh: remove xreadlink-with-size.
55650
55651 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55654         method that I hope also handles the double-include problem noted
55655         by Bruno Haible in
55656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55657
55658 2007-06-23  Bruno Haible  <bruno@clisp.org>
55659
55660         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55661         Don't let the 'mostlyclean' target fail if the last subdirectory could
55662         not be removed.
55663         Reported by Karl Berry.
55664
55665 2007-06-23  Bruno Haible  <bruno@clisp.org>
55666
55667         * gnulib-tool (echo): Add a speedier workaround for ksh.
55668         * tests/test-echo.sh: Likewise.
55669
55670 2007-06-23  Bruno Haible  <bruno@clisp.org>
55671
55672         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55673         * tests/test-echo.sh: Likewise.
55674
55675 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55676
55677         * gnulib-tool (IFS): Initialize early, so we don't set it to
55678         empty later.
55679         (self_abspathname): Rewrite algorithm to set it, reindent.
55680         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55681         (func_create_megatestdir): Merge some sed scripts.
55682
55683 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55684
55685         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55686         exposed by Sun Studio 11 cc on Solaris 8.
55687
55688 2007-06-22  Bruno Haible  <bruno@clisp.org>
55689
55690         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55691         backslashes.
55692         * tests/test-echo.sh: New file.
55693
55694 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55695
55696         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55697         simplify `sed_replace_build_aux' scripts, they are portable but
55698         echoing them with `echo' is not.
55699         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55700
55701 2007-06-21  Karl Berry  <karl@gnu.org>
55702
55703         * config/srclist.txt: guess we can't handle the licenses via
55704         srclist at the moment.
55705
55706 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * MODULES.html.sh: Add include_next.
55709         * modules/include_next: New file.
55710
55711 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55712
55713         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55714         INCLUDE_NEXT.
55715         (gl_CHECK_NEXT_HEADERS): New macro.
55716         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55717         the obsolescent gl_ABSOLUTE_HEADER.
55718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55719         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55720         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55721         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55722         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55723         * m4/math_h.m4 (gl_MATH_H): Likewise.
55724         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55725         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55726         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55727         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55728         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55729         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55730         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55733         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55734         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55735         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55736         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55737         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55738         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55739         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55740         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55741         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55742         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55743         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55744         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55745         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55746         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55747         * lib/float_.h: Likewise.
55748         * lib/inttypes_.h: Likewise.
55749         * lib/math_.h: Likewise.
55750         * lib/search_.h: Likewise.
55751         * lib/signal_.h: Likewise.
55752         * lib/stdint_.h: Likewise.
55753         * lib/stdio_.h: Likewise.
55754         * lib/stdlib_.h: Likewise.
55755         * lib/string_.h: Likewise.
55756         * lib/sys_stat_.h: Likewise.
55757         * lib/sys_time_.h: Likewise.
55758         * lib/time_.h: Likewise.
55759         * lib/unistd_.h: Likewise.
55760         * lib/wchar_.h: Likewise.
55761         * lib/wctype_.h: Likewise.
55762         * lib/dirent_.h: Likewise.
55763         * lib/iconv_.h: Likewise.
55764         * lib/locale_.h: Likewise.
55765         * lib/netinet_in_.h: Likewise.
55766         * lib/sys_select_.h: Likewise.
55767         * lib/sys_socket_.h: Likewise.
55768         * lib/sysexits_.h: Likewise.
55769         * modules/fcntl (Depends-on): Depend on include_next, not
55770         absolute_header.
55771         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55772         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55773         * modules/fchdir: Likewise.
55774         * modules/float: Likewise.
55775         * modules/iconv_open: Likewise.
55776         * modules/inttypes: Likewise.
55777         * modules/locale: Likewise.
55778         * modules/math: Likewise.
55779         * modules/netinet_in: Likewise.
55780         * modules/search: Likewise.
55781         * modules/signal: Likewise.
55782         * modules/stdint: Likewise.
55783         * modules/stdio: Likewise.
55784         * modules/stdlib: Likewise.
55785         * modules/string: Likewise.
55786         * modules/sys_select: Likewise.
55787         * modules/sys_socket: Likewise.
55788         * modules/sys_stat: Likewise.
55789         * modules/sys_time: Likewise.
55790         * modules/sysexits: Likewise.
55791         * modules/time: Likewise.
55792         * modules/unistd: Likewise.
55793         * modules/wchar: Likewise.
55794         * modules/wctype: Likewise.
55795         * modules/sys_stat: Change maintainer to "all".
55796         * modules/unistd: Likewise.
55797
55798 2007-06-20  Karl Berry  <karl@gnu.org>
55799
55800         * config/srclist.txt: track www changes in license files.
55801
55802 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55803
55804         * build-aux/bootstrap: Remove stray dot.
55805         Make sure build_aux settings are honored when linking
55806         gnulib_extra_files.
55807
55808 2007-06-19  Eric Blake  <ebb9@byu.net>
55809
55810         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55811         Allow compilation on cygwin.
55812
55813 2007-06-19  Jim Meyering  <jim@meyering.net>
55814
55815         xreadlink-with-size: Remove module.  No longer used.
55816         Ex-callers now use xreadlink or mreadlink-with-size.
55817         * modules/xreadlink-with-size: Remove module.
55818         * lib/xreadlink-with-size.c: Remove file.
55819         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55820         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55821         just before the function definition *is* accurate.
55822
55823         Eliminate one way canonicalize_filename_mode could exit.
55824         * lib/canonicalize.c (canonicalize_filename_mode):
55825         Use mreadlink_with_size, not xreadlink_with_size.
55826
55827 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55828
55829         Detect porting problems to FreeBSD/arm, which has time_t wider than
55830         long int.  Original problem reported for GNU diff by Xin Li in
55831         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55832         * modules/getdate (Depends-on): Add intprops, verify.
55833         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55834         is an integer type no wider than long int.
55835
55836 2007-06-18  Jim Meyering  <jim@meyering.net>
55837
55838         New module: mreadlink-with-size.
55839         * MODULES.html.sh: Add mreadlink-with-size.
55840         * modules/mreadlink-with-size: New module
55841         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55842         not xreadlink-with-size.
55843         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55844
55845 2007-06-16  Bruno Haible  <bruno@clisp.org>
55846
55847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55848         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55849         Reported by Gary V. Vaughan <gary@gnu.org>.
55850
55851 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55852
55853         Revamp lchown so that it lives in unistd.h where it belongs.
55854         * lib/lchown.h: Remove.
55855         * lib/dirchownmod.c: Don't include lib/lchown.h.
55856         * lib/fchownat.c: Likewise.
55857         * lib/openat.c: Likewise.
55858         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55859         does not follow symlinks.
55860         (EOPNOTSUPP): Define if not defined.
55861         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55862         is defined to 0.
55863         (lchown): New decl.
55864         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55865         Do not check for lchown decl.
55866         Set REPLACE_LCHOWN.
55867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55868         REPLACE_LCHOWN.
55869         * modules/chown: Make it clear it follows symlinks.
55870         * modules/lchown: Make it clear it doesn't follow symlinks.
55871         (Files): Remove lib/lchown.h
55872         (Depends-on): Add unistd.
55873         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55874         (Include): Include <unistd.h>, not "lchown.h".
55875         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55876         REPLACE_LCHOWN.
55877
55878 2007-06-15  Jim Meyering  <jim@meyering.net>
55879
55880         Change license (GPL to LGPL) of fsusage and dependents.
55881         * modules/fsusage (License): Change to LGPL.
55882         * modules/full-read (License): Likewise.
55883         * modules/full-write (License): Likewise.
55884         * modules/safe-read (License): Likewise.
55885         * modules/safe-write (License): Likewise.
55886
55887 2007-06-14  Ben Pfaff  <blp@gnu.org>
55888
55889         Missing part of allocsa -> malloca transition.
55890         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55891         gl_MALLOCA.
55892
55893 2007-06-12  Bruno Haible  <bruno@clisp.org>
55894
55895         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55896         to ia64, x86_64, i386.
55897         Reported by Eric Blake.
55898
55899 2007-06-12  Bruno Haible  <bruno@clisp.org>
55900
55901         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55902         cross-compiling to x86_64.
55903
55904 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55905
55906         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55907         glitch reported by Ralf Wildenhues in
55908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55909
55910         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55911         Vin Shelton.
55912
55913 2007-06-11  Bruno Haible  <bruno@clisp.org>
55914
55915         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55916         replacement string.
55917         Reported by Eric Blake.
55918
55919 2007-06-10  Bruno Haible  <bruno@clisp.org>
55920
55921         Prepare vasnprintf code for use with Unicode strings.
55922         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55923         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55924         TYPE_U32_STRING.
55925         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55926         a_u32_string variants.
55927         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55928         * lib/printf-args.c: Don't include config.h and the specification
55929         header if PRINTF_FETCHARGS is already defined.
55930         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55931         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55932         TYPE_U16_STRING, TYPE_U32_STRING.
55933         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55934         u16_directive, u16_directives, u32_directive, u32_directives): New
55935         types.
55936         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55937         New declarations.
55938         * lib/printf-parse.c: Don't include config.h and the specification
55939         header if PRINTF_PARSE is already defined. Eliminate the set of
55940         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55941         them now. Include c-ctype.h.
55942         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55943         directive and CHAR_T_ONLY_ASCII.
55944         * lib/vasnprintf.c: Don't include config.h and the specification header
55945         if VASNPRINTF is already defined.
55946         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55947         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55948         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55949         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55950         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55951         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55952         code accordingly.
55953         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55954         pad_ourselves also in this case, with the 'c' and 's' directives, and
55955         with a different notion of "width".
55956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55957
55958 2007-06-10  Bruno Haible  <bruno@clisp.org>
55959
55960         * modules/unistr/u32-mbsnlen: New file.
55961         * lib/unistr/u32-mbsnlen.c: New file.
55962
55963         * modules/unistr/u16-mbsnlen: New file.
55964         * lib/unistr/u16-mbsnlen.c: New file.
55965
55966         * modules/unistr/u8-mbsnlen: New file.
55967         * lib/unistr/u8-mbsnlen.c: New file.
55968
55969         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55970         declarations.
55971
55972 2007-06-10  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/string_.h (mbsnlen): New declaration.
55975         * lib/mbsnlen.c: New file.
55976         * m4/mbsnlen.m4: New file.
55977         * modules/mbsnlen: New file.
55978         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55979         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55980         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55981
55982 2007-06-10  Bruno Haible  <bruno@clisp.org>
55983
55984         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55985
55986 2007-06-10  Bruno Haible  <bruno@clisp.org>
55987
55988         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55989         * lib/mbuiter.h: Likewise.
55990
55991 2007-06-10  Bruno Haible  <bruno@clisp.org>
55992
55993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55994         declaration.
55995
55996 2007-06-10  Karl Berry  <karl@gnu.org>
55997
55998         * config/srclist.txt: remove gettext entries, Bruno prefers
55999         to update individually.
56000
56001 2007-06-10  Bruno Haible  <bruno@clisp.org>
56002
56003         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56004         'maxlen'. Ensure only length + width bytes are allocated, not
56005         length + 1 + width.
56006
56007 2007-06-09  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56010         (CHAR_T): Remove macro.
56011         (VASNPRINTF): Update.
56012
56013 2007-06-09  Bruno Haible  <bruno@clisp.org>
56014
56015         * MODULES.html.sh (Unicode string functions): Add the new modules.
56016
56017         * modules/uniconv/u32-conv-to-enc: New file.
56018         * lib/uniconv/u32-conv-to-enc.c: New file.
56019         * modules/uniconv/u32-conv-to-enc-tests: New file.
56020         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56021
56022         * modules/uniconv/u16-conv-to-enc: New file.
56023         * lib/uniconv/u16-conv-to-enc.c: New file.
56024         * lib/uniconv/u-conv-to-enc.h: New file.
56025         * modules/uniconv/u16-conv-to-enc-tests: New file.
56026         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56027
56028         * modules/uniconv/u8-conv-to-enc: New file.
56029         * lib/uniconv/u8-conv-to-enc.c: New file.
56030         * modules/uniconv/u8-conv-to-enc-tests: New file.
56031         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56032
56033         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56034         u32_conv_to_encoding): New declarations.
56035
56036 2007-06-09  Bruno Haible  <bruno@clisp.org>
56037
56038         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56039
56040 2007-06-09  Bruno Haible  <bruno@clisp.org>
56041
56042         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56043         * modules/malloca: Renamed from modules/allocsa, updated.
56044         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56045         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56046         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56047         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56048         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56049         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56050         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56051         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56052         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56053         * modules/c-strcasestr (Depends-on): Update.
56054         * lib/c-strcasestr.c: Update.
56055         * modules/c-strstr (Depends-on): Update.
56056         * lib/c-strstr.c: Update.
56057         * modules/canonicalize-lgpl (Depends-on): Update.
56058         * lib/canonicalize-lgpl.c: Update.
56059         * modules/clean-temp (Depends-on): Update.
56060         * lib/clean-temp.c: Update.
56061         * modules/csharpcomp (Depends-on): Update.
56062         * lib/csharpcomp.c: Update.
56063         * modules/csharpexec (Depends-on): Update.
56064         * lib/csharpexec.c: Update.
56065         * modules/javacomp (Depends-on): Update.
56066         * lib/javacomp.c: Update.
56067         * modules/javaexec (Depends-on): Update.
56068         * lib/javaexec.c: Update.
56069         * modules/mbscasestr (Depends-on): Update.
56070         * lib/mbscasestr.c: Update.
56071         * modules/mbsstr (Depends-on): Update.
56072         * lib/mbsstr.c: Update.
56073         * modules/setenv (Depends-on): Update.
56074         * lib/setenv.c: Update.
56075         * modules/strcasestr (Depends-on): Update.
56076         * lib/strcasestr.c: Update.
56077         * modules/striconveha (Depends-on): Update.
56078         * lib/striconveha.c: Update.
56079         * modules/relocatable-prog-wrapper (Files): Update.
56080         * lib/relocwrapper.c: Update.
56081         * build-aux/install-reloc: Update.
56082         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56083
56084 2007-06-08  Bruno Haible  <bruno@clisp.org>
56085
56086         Port to uClibc.
56087         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56088         * lib/fpurge.c (fpurge): Likewise.
56089         * lib/freading.c (freading): Likewise.
56090         * lib/fseeko.c (rpl_fseeko): Likewise.
56091         * lib/fseterr.c (fseterr): Likewise.
56092         * lib/fwriting.c (fwriting): Likewise.
56093         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56094
56095 2007-06-08  Bruno Haible  <bruno@clisp.org>
56096
56097         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56098         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56099         * modules/gettext (Files): Add m4/intlmacosx.m4.
56100
56101 2007-06-07  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/localename-tests: New file.
56104         * tests/test-localename.c: New file.
56105
56106         New module 'localename'.
56107         * lib/localename.h: New file.
56108         * lib/localename.c: New file, from GNU gettext.
56109         * m4/localename.m4: New file.
56110         * modules/localename: New file.
56111
56112 2007-06-07  Bruno Haible  <bruno@clisp.org>
56113
56114         Work around the lack of <wchar.h> on some builds of uClibc.
56115         * doc/headers/wchar.texi: Update.
56116         * lib/wchar_.h: Include <wchar.h> only if it exists.
56117         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56118         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56119         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56120         doesn't exist.
56121         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56122         * modules/mbfile (Depends-on): Add wchar.
56123         * modules/mbiter (Depends-on): Likewise.
56124         * modules/mbuiter (Depends-on): Likewise.
56125         Reported by Simon Josefsson.
56126
56127 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         Work around problem reported by Steven M. Schweda in
56130         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56131         Tru64 5.1B with the Compaq compiler environment installed declares
56132         an 'isblank' function but does not define it in the C library.
56133         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56134         * lib/regex_internal.h (isblank): Likewise.
56135         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56136         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56137
56138 2007-06-05  Bruno Haible  <bruno@clisp.org>
56139
56140         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56141         ia64.
56142         * modules/printf-safe: New file.
56143         * modules/fprintf-posix (Depends-on): Add printf-safe.
56144         * modules/printf-posix (Depends-on): Likewise.
56145         * modules/snprintf-posix (Depends-on): Likewise.
56146         * modules/sprintf-posix (Depends-on): Likewise.
56147         * modules/vasnprintf-posix (Depends-on): Likewise.
56148         * modules/vasprintf-posix (Depends-on): Likewise.
56149         * modules/vfprintf-posix (Depends-on): Likewise.
56150         * modules/vprintf-posix (Depends-on): Likewise.
56151         * modules/vsnprintf-posix (Depends-on): Likewise.
56152         * modules/vsprintf-posix (Depends-on): Likewise.
56153         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56154         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56155         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56156         "no" on i386, x86_64, ia64.
56157         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56158         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56159         on i386, x86_64, ia64.
56160         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56161         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56162         on i386, x86_64, ia64.
56163         * tests/test-vasnprintf-posix.c: Include float.h.
56164         (LDBL80_WORDS): New macro.
56165         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56166         on i386, x86_64, ia64.
56167         * tests/test-vasprintf-posix.c: Include float.h.
56168         (LDBL80_WORDS): New macro.
56169         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56170         on i386, x86_64, ia64.
56171         * tests/test-snprintf-posix.c: Include float.h.
56172         * tests/test-sprintf-posix.c: Likewise.
56173         * tests/test-vsnprintf-posix.c: Likewise.
56174         * tests/test-vsprintf-posix.c: Likewise.
56175
56176 2007-06-05  Bruno Haible  <bruno@clisp.org>
56177
56178         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56179         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56180         non-IEEE numbers on i386, x86_64, ia64.
56181         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56182         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56183         * tests/test-isnanl.h: Include float.h.
56184         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56185
56186 2007-06-05  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56189         also the %a / %A. Handle the %a / %A code before this extra handling.
56190
56191 2007-06-05  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56194         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56195
56196 2007-06-05  Bruno Haible  <bruno@clisp.org>
56197
56198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56199         typo in variable name.
56200
56201 2007-06-05  Eric Blake  <ebb9@byu.net>
56202
56203         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56204         Reported by Simon Josefsson.
56205
56206 2007-06-04  Bruno Haible  <bruno@clisp.org>
56207
56208         Avoid test failures on some PowerPC platforms.
56209         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56210         Define differently for PowerPC.
56211         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56212         Reported by Gary V. Vaughan <gary@gnu.org>.
56213
56214 2007-06-02  Bruno Haible  <bruno@clisp.org>
56215
56216         Fix test-stdint failure on FreeBSD/ia64.
56217         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56218         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56219         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56220         * doc/headers/stdint.texi: Update.
56221
56222 2007-06-01  Bruno Haible  <bruno@clisp.org>
56223
56224         * tests/test-binary-io.c (main): Pass a third argument to open().
56225         Reported by Gary V. Vaughan <gary@gnu.org>.
56226
56227 2007-06-01  Bruno Haible  <bruno@clisp.org>
56228
56229         * doc/functions/frexpl.texi: Update for mingw.
56230
56231 2007-06-01  Bruno Haible  <bruno@clisp.org>
56232
56233         * tests/test-lseek.c (main): Disable test of errno for invalid third
56234         argument.
56235         * doc/functions/lseek.texi: Update.
56236         Reported by Gary V. Vaughan <gary@gnu.org>.
56237
56238 2007-05-28  Bruno Haible  <bruno@clisp.org>
56239
56240         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56241
56242 2007-05-31  Eric Blake  <ebb9@byu.net>
56243
56244         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56245         cross compiling.
56246
56247 2007-05-30  Eric Blake  <ebb9@byu.net>
56248         and Bruno Haible  <bruno@clisp.org>
56249
56250         Work around mingw test failures exposed by m4-1.4.9b.
56251         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56252         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56253         moment.
56254
56255 2007-05-30  Bruno Haible  <bruno@clisp.org>
56256
56257         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56258         assuming that they are closed. Needed on HP-UX 11.
56259
56260 2007-05-29  Bruno Haible  <bruno@clisp.org>
56261
56262         Fix a problem with #include_next.
56263         * lib/dirent_.h: Split the double-inclusion guard.
56264         * lib/fcntl_.h: Likewise.
56265         * lib/float_.h: Likewise.
56266         * lib/iconv_.h: Likewise.
56267         * lib/inttypes_.h: Likewise.
56268         * lib/locale_.h: Likewise.
56269         * lib/math_.h: Likewise.
56270         * lib/netinet_in_.h: Likewise.
56271         * lib/search_.h: Likewise.
56272         * lib/signal_.h: Likewise.
56273         * lib/stdint_.h: Likewise.
56274         * lib/stdio_.h: Likewise.
56275         * lib/stdlib_.h: Likewise.
56276         * lib/string_.h: Likewise.
56277         * lib/sys_select_.h: Likewise.
56278         * lib/sys_socket_.h: Likewise.
56279         * lib/sys_stat_.h: Likewise.
56280         * lib/sys_time_.h: Likewise.
56281         * lib/sysexits_.h: Likewise.
56282         * lib/time_.h: Likewise.
56283         * lib/unistd_.h: Likewise.
56284         * lib/wchar_.h: Likewise.
56285         * lib/wctype_.h: Likewise.
56286
56287 2007-05-29  Bruno Haible  <bruno@clisp.org>
56288
56289         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56290         for the moment.
56291
56292 2007-05-29  Bruno Haible  <bruno@clisp.org>
56293
56294         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56295         invocation.
56296         Reported by Eric Blake.
56297
56298 2007-05-29  Bruno Haible  <bruno@clisp.org>
56299
56300         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56301         compiling case.
56302
56303 2007-05-29  Eric Blake  <ebb9@byu.net>
56304             Bruno Haible  <bruno@clisp.org>
56305
56306         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56307         cross compiles.
56308
56309 2007-05-28  Eric Blake  <ebb9@byu.net>
56310
56311         * modules/closein-tests (test_closein_LDADD): Support test on
56312         cygwin with libtool.
56313
56314 2007-05-28  Bruno Haible  <bruno@clisp.org>
56315
56316         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56317         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56318         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56319         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56320         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56321         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56322         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56323         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56324         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56325
56326 2007-05-28  Eric Blake  <ebb9@byu.net>
56327
56328         Unconditionally include <config.h> in unit tests.
56329         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56330         * tests/test-allocsa.c, tests/test-arcfour.c,
56331         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56332         tests/test-array_list.c, tests/test-array_oset.c,
56333         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56334         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56335         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56336         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56337         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56338         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56339         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56340         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56341         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56342         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56343         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56344         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56345         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56346         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56347         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56348         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56349         test-md5.c, test-memmem.c, test-printf-posix.c,
56350         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56351         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56352         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56353         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56354         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56355         test-vasnprintf-posix2.c, test-vasnprintf.c,
56356         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56357         test-vfprintf-posix.c, test-vprintf-posix.c,
56358         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56359         test-xvasprintf.c: Likewise.
56360
56361 2007-05-28  Bruno Haible  <bruno@clisp.org>
56362
56363         * gnulib-tool (func_import): Remember the --with-tests command-line
56364         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56365         Reported by Eric Blake.
56366
56367 2007-05-28  Bruno Haible  <bruno@clisp.org>
56368
56369         * modules/ftell-tests: New file.
56370         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56371         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56372
56373         * lib/ftell.c: New file.
56374         * modules/ftell: New file.
56375         * m4/ftell.m4: New file.
56376         * doc/functions/ftell.texi: Update.
56377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56378         REPLACE_FTELL.
56379         * lib/stdio_.h (rpl_ftell): New declaration.
56380         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56381         REPLACE_FTELL.
56382
56383 2007-05-28  Eric Blake  <ebb9@byu.net>
56384
56385         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56386
56387 2007-05-28  Bruno Haible  <bruno@clisp.org>
56388
56389         * modules/fseek-tests: New file.
56390         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56391         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56392
56393         * lib/fseek.c: New file.
56394         * modules/fseek: New file.
56395         * m4/fseek.m4: New file.
56396         * doc/functions/fseek.texi: Update.
56397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56398         REPLACE_FSEEK.
56399         * lib/stdio_.h (rpl_fseek): New declaration.
56400         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56401         REPLACE_FSEEK.
56402
56403 2007-05-28  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/stdio_.h (fflush): More comments.
56406
56407 2007-05-28  Bruno Haible  <bruno@clisp.org>
56408
56409         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56410         runtime test.
56411
56412 2007-05-28  Eric Blake  <ebb9@byu.net>
56413
56414         Improve lseek module.
56415         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56416         * lib/unistd_.h (lseek): Scale back link warning message.
56417         * tests/test-lseek.c: Beef up test.
56418         * tests/test-lseek.sh: Exercise more facets of lseek.
56419         Reported by Bruno Haible.
56420
56421 2007-05-28  Bruno Haible  <bruno@clisp.org>
56422
56423         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56424         to define.
56425
56426 2007-05-27  Bruno Haible  <bruno@clisp.org>
56427
56428         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56429
56430 2007-05-27  Bruno Haible  <bruno@clisp.org>
56431
56432         * modules/openmp: New file.
56433         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56434         Noah Misch.
56435
56436 2007-05-26  Bruno Haible  <bruno@clisp.org>
56437
56438         * modules/chdir-long (Depends-on): Add fchdir.
56439         * modules/chdir-safer (Depends-on): Likewise.
56440         * modules/fts (Depends-on): Likewise.
56441         * modules/fts-lgpl (Depends-on): Likewise.
56442         * modules/openat (Depends-on): Likewise.
56443         * modules/savewd (Depends-on): Likewise.
56444
56445 2007-05-24  Eric Blake  <ebb9@byu.net>
56446
56447         Fix lseek on mingw.
56448         * modules/lseek: New module.
56449         * m4/lseek.m4: New file.
56450         * lib/lseek.c: New file.
56451         * modules/lseek-tests: New file.
56452         * tests/test-lseek.c: New file.
56453         * tests/test-lseek.sh: New file.
56454         * MODULES.html.sh: Document lseek module.
56455         * modules/fflush (Depends-on): Add lseek, fseeko.
56456         * modules/fseeko (Depends-on): Likewise.
56457         * modules/ftello (Depends-on): Likewise.
56458         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56459         broken.
56460         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56461         broken.
56462         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56463         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56464         * lib/ftello.c (rpl_ftello): Likewise.
56465         * tests/test-fseeko.c (main): Test this.
56466         * tests/test-fseeko.sh: Likewise.
56467         * tests/test-ftello.c (main): Likewise.
56468         * tests/test-ftello.sh: Likewise.
56469         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56470         implies replacing fseek.
56471         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56472         HAVE_FTELLO.
56473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56474         * modules/unistd (Makefile.am): Likewise.
56475         * lib/unistd_.h (lseek): Declare a replacement.
56476         * doc/functions/lseek.texi (lseek): Document this fix.
56477         * doc/functions/fseek.texi (fseek): Likewise.
56478         * doc/functions/ftell.texi (ftell): Likewise.
56479
56480 2007-05-24  Bruno Haible  <bruno@clisp.org>
56481
56482         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56483         in the printed representation of a NaN.
56484         * tests/test-vasprintf-posix.c (test_function): Likewise.
56485         * tests/test-snprintf-posix.h (test_function): Likewise.
56486         * tests/test-sprintf-posix.h (test_function): Likewise.
56487         Reported by Eric Blake.
56488
56489 2007-05-23  Eric Blake  <ebb9@byu.net>
56490
56491         Fix fseeko/ftello on cygwin 1.5.24.
56492         * doc/functions/fseeko.texi (fseeko): Document the fix.
56493         * doc/functions/ftello.texi (ftello): Document the fix.
56494         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56495         * doc/functions/stdout.text (stdout): New file.
56496         * doc/functions/stderr.text (stderr): New file.
56497         * doc/gnulib.texi (Function Substitutes): Use new files.
56498         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56499         prior to 1.7.0.
56500         * tests/test-ftello.c (main): Likewise for ftello.
56501         * tests/test-fseeko.sh: New file.
56502         * tests/test-ftello.sh: New file.
56503         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56504         with seekable stdin.
56505         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56507         (gl_REPLACE_FSEEKO): New macro.
56508         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56509         * modules/fseeko (Files): Distribute fseeko.c.
56510         * modules/ftello (Files): Distribute ftello.c.
56511         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56512         mode.
56513         * lib/ftello.c (rpl_ftello): New file.
56514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56515         fseeko, ftello.
56516         (gl_STDIN_LARGE_OFFSET): New macro.
56517         * modules/stdio (Makefile.am): Perform the replacement.
56518         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56519
56520 2007-05-23  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56523         GNULIB_POSIXCHECK is defined.
56524
56525 2007-05-21  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56528         Check also the output for NaN arguments. When cross-compiling, guess
56529         no on IRIX.
56530         * lib/vasnprintf.c: Update comments.
56531         * tests/test-vasnprintf-posix.c (strisnan): New function.
56532         (test_function): Use it.
56533         * tests/test-vasprintf-posix.c (strisnan): New function.
56534         (test_function): Use it.
56535         * tests/test-snprintf-posix.h (strisnan): New function.
56536         (test_function): Use it.
56537         * tests/test-sprintf-posix.h (strisnan): New function.
56538         (test_function): Use it.
56539         Reported by Eric Blake.
56540
56541 2007-05-20  Bruno Haible  <bruno@clisp.org>
56542
56543         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56544         numbers that fails on BeOS.
56545         * doc/functions/frexpl.texi: Update.
56546
56547 2007-05-20  Jim Meyering  <jim@meyering.net>
56548
56549         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56550         forced upon us by glibc-2.6.
56551
56552 2007-05-20  Bruno Haible  <bruno@clisp.org>
56553
56554         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56555         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56556         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56557         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56558         NEED_PRINTF_INFINITE.
56559         (is_infinitel): New function.
56560         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56562         gl_PREREQ_VASNPRINTF_INFINITE.
56563         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56565         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56566         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56567         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56568         gl_PREREQ_VASNPRINTF_INFINITE.
56569         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56570         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56575         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56576         * doc/functions/fprintf.texi: Update.
56577         * doc/functions/printf.texi: Update.
56578         * doc/functions/snprintf.texi: Update.
56579         * doc/functions/sprintf.texi: Update.
56580         * doc/functions/vfprintf.texi: Update.
56581         * doc/functions/vprintf.texi: Update.
56582         * doc/functions/vsnprintf.texi: Update.
56583         * doc/functions/vsprintf.texi: Update.
56584
56585 2007-05-20  Bruno Haible  <bruno@clisp.org>
56586
56587         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56588         was not found in libc.
56589         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56590
56591 2007-05-20  Bruno Haible  <bruno@clisp.org>
56592
56593         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56594         printed as "-nan" instead of "nan".
56595         * tests/test-vasprintf-posix.c (test_function): Likewise.
56596         * tests/test-snprintf-posix.h (test_function): Likewise.
56597         * tests/test-sprintf-posix.h (test_function): Likewise.
56598         Needed for HP-UX 11.
56599
56600 2007-05-20  Jim Meyering  <jim@meyering.net>
56601
56602         Fix buggy test for the fchownat-deref bug.
56603         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56604         symlink required for the run-test.  Without it, this test would
56605         always declare that fchownat doesn't work, and client code would
56606         unnecessarily use the replacement function with fixed libc.
56607         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56608         Reported by Greg Schafer.
56609
56610 2007-05-19  Bruno Haible  <bruno@clisp.org>
56611
56612         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56613         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56614         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56615         Needed for IRIX 6.5 and Solaris 2.5.1.
56616
56617 2007-05-19  Bruno Haible  <bruno@clisp.org>
56618
56619         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56620         (test_function): Skip tests involving -0.0 on platforms where
56621         -0.0 = 0.0.
56622         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56623         (test_function): Skip tests involving -0.0 on platforms where
56624         -0.0 = 0.0.
56625         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56626         (test_function): Skip tests involving -0.0 on platforms where
56627         -0.0 = 0.0.
56628         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56629         (test_function): Skip tests involving -0.0 on platforms where
56630         -0.0 = 0.0.
56631         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56632         tests.
56633         * tests/test-printf-posix.h (test_function): Likewise.
56634         * tests/test-printf-posix.output: Remove all -0.0 related results.
56635         Needed for IRIX 6.5.
56636
56637 2007-05-19  Bruno Haible  <bruno@clisp.org>
56638
56639         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56640         printed as "nan0x7fffffff" instead of "nan".
56641         * tests/test-vasprintf-posix.c (test_function): Likewise.
56642         * tests/test-snprintf-posix.h (test_function): Likewise.
56643         * tests/test-sprintf-posix.h (test_function): Likewise.
56644         * tests/test-fprintf-posix.h (NaN): Remove macro.
56645         (test_function): Remove all NaN related tests.
56646         * tests/test-printf-posix.h (NaN): Remove macro.
56647         (test_function): Remove all NaN related tests.
56648         * tests/test-printf-posix.output: Remove all NaN related results.
56649         Needed for IRIX 6.5.
56650
56651 2007-05-19  Bruno Haible  <bruno@clisp.org>
56652
56653         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56654         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56655
56656 2007-05-19  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/float_.h: New file.
56659         * m4/float_h.m4: New file.
56660         * modules/float: New file.
56661         * modules/isnanl (Dependencies): Add float.
56662         * modules/isnanl-nolibm (Dependencies): Likewise.
56663         * modules/mathl (Dependencies): Likewise.
56664         * modules/printf-frexpl (Dependencies): Likewise.
56665         * modules/signbit (Dependencies): Likewise.
56666         * modules/vasnprintf (Dependencies): Likewise.
56667         * doc/headers/float.texi: Update.
56668
56669 2007-05-19  Jim Meyering  <jim@meyering.net>
56670
56671         * lib/utimens.c (gl_futimens): Rename from futimens,
56672         now that glibc-2.6 declares futimens.
56673         * lib/utimens.h: Likewise.
56674
56675 2007-05-19  Bruno Haible  <bruno@clisp.org>
56676
56677         Avoid test failures on mingw.
56678         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56679         * tests/test-printf-posix.sh: Likewise.
56680         * tests/test-vfprintf-posix.sh: Likewise.
56681         * tests/test-vprintf-posix.sh: Likewise.
56682
56683 2007-05-19  Bruno Haible  <bruno@clisp.org>
56684
56685         Fix *printf result for NaN, Inf, -0.0 on mingw.
56686         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56687         * lib/vasnprintf.c: Include math.h and isnan.h.
56688         (is_infinite_or_zero): New function.
56689         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56690         values in the %f, %F, %e, %E, %g, %G directives.
56691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56692         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56693         gl_PRINTF_INFINITE and test its result. Invoke
56694         gl_PREREQ_VASNPRINTF_INFINITE.
56695         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56697         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56698         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56699         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56701         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56702         * doc/functions/fprintf.texi: Update.
56703         * doc/functions/printf.texi: Update.
56704         * doc/functions/snprintf.texi: Update.
56705         * doc/functions/sprintf.texi: Update.
56706         * doc/functions/vfprintf.texi: Update.
56707         * doc/functions/vprintf.texi: Update.
56708         * doc/functions/vsnprintf.texi: Update.
56709         * doc/functions/vsprintf.texi: Update.
56710
56711 2007-05-19  Bruno Haible  <bruno@clisp.org>
56712
56713         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56714         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56715         Instead of multiplying with 10^k, set extra_zeroes to k.
56716         (scale10_round_long_double): Remove function.
56717
56718 2007-05-18  Bruno Haible  <bruno@clisp.org>
56719
56720         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56721         introduced on 2007-05-06.
56722
56723 2007-05-18  Bruno Haible  <bruno@clisp.org>
56724
56725         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56726         %g directives.
56727         * tests/test-vasprintf-posix.c (test_function): Likewise.
56728         * tests/test-snprintf-posix.h (test_function): Likewise.
56729         * tests/test-sprintf-posix.h (test_function): Likewise.
56730
56731 2007-05-18  Bruno Haible  <bruno@clisp.org>
56732
56733         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56734         (strmatch): New function.
56735         (test_function): Test the %f directive on numbers of various exponents.
56736         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56737         (strmatch): New function.
56738         (test_function): Test the %f directive on numbers of various exponents.
56739         * tests/test-snprintf-posix.h (strmatch): New function.
56740         (test_function): Test the %f directive on numbers of various exponents.
56741         * tests/test-sprintf-posix.h (strmatch): New function.
56742         (test_function): Test the %f directive on numbers of various exponents.
56743         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56744         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56745         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56746         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56747
56748 2007-05-18  Bruno Haible  <bruno@clisp.org>
56749
56750         Add support for 'long double' number output.
56751         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56752         * lib/vasnprintf.c: Include math.h and float+.h.
56753         (mp_limb_t): New type.
56754         (GMP_LIMB_BITS): New macro.
56755         (mp_twolimb_t): New type.
56756         (GMP_TWOLIMB_BITS): New macro.
56757         (mpn_t): New type.
56758         (multiply, divide, convert_to_decimal, decode_long_double,
56759         scale10_round_long_double, scale10_round_decimal_long_double,
56760         floorlog10l): New functions.
56761         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56762         for the %f, %F, %e, %E, %g, %G directives.
56763         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56765         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56766         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56767         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56769         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56771         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56772         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56773         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56774         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56775         * modules/snprintf-posix (Depends-on): Likewise.
56776         * modules/sprintf-posix (Depends-on): Likewise.
56777         * modules/vasnprintf-posix (Depends-on): Likewise.
56778         * modules/vasprintf-posix (Depends-on): Likewise.
56779         * modules/vfprintf-posix (Depends-on): Likewise.
56780         * modules/vsnprintf-posix (Depends-on): Likewise.
56781         * modules/vsprintf-posix (Depends-on): Likewise.
56782         * modules/vasnprintf (Files): Add lib/float+.h.
56783         * doc/functions/fprintf.texi: Update.
56784         * doc/functions/printf.texi: Update.
56785         * doc/functions/snprintf.texi: Update.
56786         * doc/functions/sprintf.texi: Update.
56787         * doc/functions/vfprintf.texi: Update.
56788         * doc/functions/vprintf.texi: Update.
56789         * doc/functions/vsnprintf.texi: Update.
56790         * doc/functions/vsprintf.texi: Update.
56791
56792 2007-05-18  Bruno Haible  <bruno@clisp.org>
56793
56794         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56795
56796 2007-05-18  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56799         for printing 64-bit integers. Needed for mingw.
56800
56801 2007-05-18  Bruno Haible  <bruno@clisp.org>
56802
56803         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56804         gl_FUNC_FREXPL_WORKS.
56805         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56806
56807 2007-05-18  Bruno Haible  <bruno@clisp.org>
56808
56809         * modules/frexpl-nolibm-tests: New file.
56810
56811         * modules/frexpl-nolibm: New file.
56812         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56813
56814 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56815
56816         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56817         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56818         GCC 4.2, which otherwise issues a lot of warnings.
56819         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56820         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56821         Likewise.
56822         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56823         * modules/iconv_open (iconv.h): Likewise.
56824         * modules/locale (locale.h): Likewise.
56825         * modules/netinet_in (netinet/in.h): Likewise.
56826         * modules/sys_select (sys_select.h): Likewise.
56827         * modules/sys_socket (sys/socket.h): Likewise.
56828         * modules/sys_stat (sys/stat.h): Likewise.
56829         * modules/sysexits (sysexits.h): Likewise.
56830         * modules/unistd (unistd.h): Likewise.
56831
56832 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56833
56834         * modules/closein-tests (Makefile.am): Distribute
56835         `test-closein.sh'.
56836
56837 2007-05-17  Bruno Haible  <bruno@clisp.org>
56838
56839         * tests/test-printf-posix.output: Renamed from
56840         tests/test-fprintf-posix.out.
56841         * modules/fprintf-posix-tests: Update.
56842         * modules/printf-posix-tests: Update.
56843         * modules/vfprintf-posix-tests: Update.
56844         * modules/vprintf-posix-tests: Update.
56845         * tests/test-fprintf-posix.sh: Update.
56846         * tests/test-printf-posix.sh: Update.
56847         * tests/test-vfprintf-posix.sh: Update.
56848         * tests/test-vprintf-posix.sh: Update.
56849         Reported by Ralf Wildenhues.
56850
56851 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56852
56853         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56854         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56855         GCC 4.2, which otherwise issues a lot of warnings.
56856         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56857         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56858         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56859         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56860         it should no longer be needed.
56861         * lib/string_.h: Likewise.
56862         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56863         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56864         * modules/inttypes (inttypes.h): Likewise.
56865         * modules/math (math.h): Likewise.
56866         * modules/search (search.h): Likewise.
56867         * modules/signal (signal.h): Likewise.
56868         * modules/stdint (stdint.h): Likewise.
56869         * modules/stdio (stdio.h): Likewise.
56870         * modules/stdlib (stdlib.h): Likewise.
56871         * modules/string (string.h): Likewise.
56872         * modules/sys_time (sys/time.h): Likewise.
56873         * modules/time (time.h): Likewise.
56874         * modules/wchar (wchar.h): Likewise.
56875         * modules/wctype (wtype.h): Likewise.
56876
56877 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56878
56879         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56880
56881 2007-05-13  Bruno Haible  <bruno@clisp.org>
56882
56883         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56884         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56885         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56886         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56887         (gl_PREREQ_STRTOK_R): Don't require it here.
56888
56889 2007-05-13  Bruno Haible  <bruno@clisp.org>
56890
56891         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56892         when used in C++ mode.
56893
56894 2007-05-12  Bruno Haible  <bruno@clisp.org>
56895
56896         * lib/linebuffer.h: Tweak doc.
56897         * lib/linebuffer.c: Likewise.
56898
56899 2007-05-12  James Youngman  <jay@gnu.org>
56900
56901         * lib/linebuffer.c (readlinebuffer_delim): New function,
56902         like readlinebuffer, but use a caller-specified delimiter.
56903         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56904         as the delimiter.
56905         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56906
56907 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56908
56909         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56910         * modules/openat (Files): Remove openat-die.c.
56911         (Depends-on): Add openat-die.
56912         * modules/openat-die: New module.
56913
56914 2007-05-06  Bruno Haible  <bruno@clisp.org>
56915
56916         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56917         Update with info about Cygwin.
56918         * doc/functions/fprintf.texi: Update.
56919         * doc/functions/printf.texi: Update.
56920         * doc/functions/snprintf.texi: Update.
56921         * doc/functions/sprintf.texi: Update.
56922         * doc/functions/vfprintf.texi: Update.
56923         * doc/functions/vprintf.texi: Update.
56924         * doc/functions/vsnprintf.texi: Update.
56925         * doc/functions/vsprintf.texi: Update.
56926         Reported by Eric Blake.
56927
56928 2007-05-06  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56931         padding ourselves for the floating-point directives.
56932         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56934         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56935         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56936         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56937         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56938         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56941         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56943         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56944         * tests/test-snprintf-posix.h (test_function): Also check the width
56945         and some flags in the %f directive.
56946         * tests/test-sprintf-posix.h (test_function): Likewise.
56947         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56948         * tests/test-vasprintf-posix.c (test_function): Likewise.
56949         * doc/functions/fprintf.texi: Update.
56950         * doc/functions/printf.texi: Update.
56951         * doc/functions/snprintf.texi: Update.
56952         * doc/functions/sprintf.texi: Update.
56953         * doc/functions/vfprintf.texi: Update.
56954         * doc/functions/vprintf.texi: Update.
56955         * doc/functions/vsnprintf.texi: Update.
56956         * doc/functions/vsprintf.texi: Update.
56957
56958 2007-05-06  Bruno Haible  <bruno@clisp.org>
56959
56960         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56961         pass the ' flag character to sprintf or snprintf.
56962         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56965         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56966         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56969         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56972         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56973         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56974         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56975         flag.
56976         * tests/test-sprintf-posix.h (test_function): Likewise.
56977         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56978         * tests/test-vasprintf-posix.c (test_function): Likewise.
56979         * doc/functions/fprintf.texi: Update.
56980         * doc/functions/printf.texi: Update.
56981         * doc/functions/snprintf.texi: Update.
56982         * doc/functions/sprintf.texi: Update.
56983         * doc/functions/vfprintf.texi: Update.
56984         * doc/functions/vprintf.texi: Update.
56985         * doc/functions/vsnprintf.texi: Update.
56986         * doc/functions/vsprintf.texi: Update.
56987
56988 2007-05-01  Bruno Haible  <bruno@clisp.org>
56989
56990         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56991
56992 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56993
56994         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56995         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56996
56997 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56998
56999         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57000         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57002
57003 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57004
57005         * lib/argp-help.c (struct hol_entry): New member `ord'.
57006         (HOL_ENTRY_PTRCMP): Use ord for comparison
57007         (hol_sort): Initialize ord.
57008
57009 2007-05-01  Bruno Haible  <bruno@clisp.org>
57010
57011         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57012         Reported by Eric Blake.
57013         * doc/gnulib.texi (Function Substitutes): Update.
57014
57015 2007-05-01  Bruno Haible  <bruno@clisp.org>
57016
57017         * doc/functions.texi: Remove file, now redundant through
57018         doc/functions/*.texi.
57019
57020 2007-05-01  Bruno Haible  <bruno@clisp.org>
57021
57022         * modules/argp (Depends-on): Add sleep.
57023
57024 2007-05-01  Bruno Haible  <bruno@clisp.org>
57025
57026         * modules/sleep-tests: New file.
57027         * tests/test-sleep.c: New file.
57028
57029         * modules/sleep: New file.
57030         * lib/sleep.c: New file.
57031         * m4/sleep.m4: New file.
57032         * lib/unistd_.h (sleep): New declaration.
57033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57034         HAVE_SLEEP.
57035         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57036         * doc/functions/sleep.texi: Document the sleep module.
57037
57038 2007-05-01  Bruno Haible  <bruno@clisp.org>
57039
57040         * lib/sigprocmask.h: Remove file.
57041         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57042         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57043         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57044         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57045         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57046         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57047         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57048         HAVE_SIGSET_T as a shell variable.
57049         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57050         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57051         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57052         (Depends-on): Add signal. Remove verify.
57053         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57054         (Include): Mention <signal.h> instead of sigprocmask.h.
57055         * NEWS: Mention the change.
57056         * lib/fatal-signal.c: Don't include sigprocmask.h.
57057
57058 2007-05-01  Bruno Haible  <bruno@clisp.org>
57059
57060         * modules/signal: New file.
57061         * lib/signal_.h: New file.
57062         * m4/signal_h.m4: New file.
57063
57064 2007-05-01  Bruno Haible  <bruno@clisp.org>
57065
57066         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57067         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57068         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57069         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57070
57071 2007-05-01  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57074         configure time.
57075         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57076         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57077         * modules/sys_stat (Makefile.am): Substitute their values into
57078         sys/stat.h.
57079
57080 2007-05-01  Bruno Haible  <bruno@clisp.org>
57081
57082         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57083         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57084         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57085
57086 2007-05-01  Bruno Haible  <bruno@clisp.org>
57087
57088         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57089         'assert' module here.
57090
57091 2007-05-01  Bruno Haible  <bruno@clisp.org>
57092
57093         * doc/functions/*.texi: New files.
57094         * doc/functions/google-ranking.txt: New file.
57095         * doc/gnulib.texi (Function Substitutes): New chapter.
57096         (ctime, inet_ntoa): Remove sections.
57097         * doc/ctime.texi: Remove file.
57098         * doc/inet_ntoa.texi: Remove file.
57099         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57100         dependencies.
57101         (%.info): New rule, specifying a --reference-limit.
57102
57103 2007-05-01  Bruno Haible  <bruno@clisp.org>
57104
57105         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57106
57107 2007-05-01  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57110         the portability of 'mkdir' to mingw systems.
57111
57112 2007-05-01  Bruno Haible  <bruno@clisp.org>
57113
57114         * doc/headers/google-ranking.txt: New file.
57115
57116 2007-04-30  Eric Blake  <ebb9@byu.net>
57117
57118         Prefer fseeko to fseek.
57119         * modules/getpass (Depends-on): Add fseeko.
57120         * lib/getpass.c (getpass): Use fseeko, not fseek.
57121
57122 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57123
57124         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57125         assumes the sorting is stable, while most qsort implementations
57126         are not.  Use argument addresses to ensure they never compare as
57127         equal.
57128
57129         * tests/test-argp-2.sh (usage-indent test): Fix output
57130         (func_compare): Restore diff options
57131         * tests/test-argp.c: Restore #include "progname.h"
57132
57133 2007-04-29  Bruno Haible  <bruno@clisp.org>
57134
57135         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57137         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57139         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57140         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57141         (TESTS, check_PROGRAMS): Add test-snprintf.
57142         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57143         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57144         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57145         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57146         assertions that fail on HP-UX, OSF/1, or IRIX.
57147         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57148
57149 2007-04-29  Bruno Haible  <bruno@clisp.org>
57150
57151         * MODULES.html.sh (posix_functions): Remove 'contents'.
57152
57153 2007-04-29  Karl Berry  <karl@gnu.org>
57154
57155         * config/srclist.txt (gendocs_template_min): new entry.
57156
57157 2007-04-29  Bruno Haible  <bruno@clisp.org>
57158
57159         Work around fpurge bug on BSD systems.
57160         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57161         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57162         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57163         fpurge to rpl_fpurge if the system already has this function.
57164         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57165         the case where the system already has this function. Correct invariants
57166         on BSD systems.
57167         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57168         BSD systems.
57169
57170 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57171
57172         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57173         proposed by Sven Verdoolaege.
57174
57175         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57176         options.
57177         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57178         (usage and help tests): Update
57179
57180 2007-04-29  Bruno Haible  <bruno@clisp.org>
57181
57182         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57183         Print more information in case of failure. Disable a test on BeOS.
57184
57185 2007-04-29  Bruno Haible  <bruno@clisp.org>
57186
57187         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57188         This helps debugging on systems on which no gdb is available.
57189
57190 2007-04-29  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/freading.h: Improve comments.
57193         * lib/fwriting.h: Likewise.
57194         * tests/test-freading.c (main): Don't check freading immediately after
57195         repositioning. Needed for glibc.
57196
57197 2007-04-29  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/freading.c (freading): Trivial simplification.
57200
57201 2007-04-28  Bruno Haible  <bruno@clisp.org>
57202
57203         * tests/test-fwriting.c (main): Also test the interaction between
57204         fflush and fwriting.
57205         * modules/fwriting-tests (Depends-on): Add fflush.
57206
57207         * tests/test-freading.c (main): Also test the interaction between
57208         fflush and freading.
57209         * modules/freading-tests (Depends-on): Add fflush.
57210
57211 2007-04-28  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57214         fseeko and ftello.
57215         Suggested by Eric Blake.
57216
57217 2007-04-28  Jim Meyering  <jim@meyering.net>
57218
57219         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57220         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57221         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57222
57223 2007-04-27  Eric Blake  <ebb9@byu.net>
57224
57225         * doc/headers/assert.texi (assert.h): Document assert module use.
57226
57227 2007-04-27  Bruno Haible  <bruno@clisp.org>
57228
57229         * doc/headers/*.texi: New files.
57230         * doc/gnulib.texi (Header File Substitutes): New chapter.
57231         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57232         dependencies.
57233         (standards.info ,standards.html, standards.dvi): Update dependencies.
57234         (mostlyclean, clean): New targets.
57235
57236 2007-04-27  Bruno Haible  <bruno@clisp.org>
57237
57238         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57239         * modules/sysexits (Files, Makefile.am): Update.
57240
57241         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57242         * modules/sys_socket (Files, Makefile.am): Update.
57243
57244         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57245         * modules/sys_stat (Files, Makefile.am): Update.
57246
57247 2007-04-27  Eric Blake  <ebb9@byu.net>
57248
57249         * lib/freading.h: Improve comments.
57250         * lib/fwriting.h: Likewise.
57251         * lib/fflush.c: Likewise.
57252
57253         Fix closein for mingw.
57254         * modules/closein-tests: Add tests for closein.
57255         * tests/test-closein.c: New file.
57256         * tests/test-closein.sh: Likewise.
57257         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57258         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57259
57260 2007-04-27  Bruno Haible  <bruno@clisp.org>
57261
57262         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57263         version is < 6.
57264         * lib/math_.h [__DECC]: Likewise.
57265         * lib/stdio_.h [__DECC]: Likewise.
57266         * lib/stdlib_.h [__DECC]: Likewise.
57267         * lib/string_.h [__DECC]: Likewise.
57268         * lib/time_.h [__DECC]: Likewise.
57269         * lib/wchar_.h [__DECC]: Likewise.
57270         * lib/wctype_.h [__DECC]: Likewise.
57271
57272 2007-04-27  Bruno Haible  <bruno@clisp.org>
57273
57274         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57275
57276 2007-04-27  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/fflush.c: Add comments.
57279         * modules/fpurge-tests (Depends-on): Add fflush.
57280         * modules/freadable-tests (Depends-on): Likewise.
57281         * modules/fwritable-tests (Depends-on): Likewise.
57282
57283 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57284
57285         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57286         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57287         Report by Bruno Haible <bruno@clisp.org>.
57288
57289 2007-04-26  Eric Blake  <ebb9@byu.net>
57290
57291         Fix fflush on mingw.
57292         * modules/fflush (Depends-on): Add freading.
57293         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57294         but unread data.
57295
57296 2007-04-26  Eric Blake  <ebb9@byu.net>
57297         and Bruno Haible  <bruno@clisp.org>
57298
57299         Implement freading and fwriting.
57300         * lib/freading.c: New file.
57301         * lib/freading.h: Likewise.
57302         * m4/freading.m4: Likewise.
57303         * modules/freading: Likewise.
57304         * modules/freading-tests: Likewise.
57305         * tests/test-freading.c: Likewise.
57306         * lib/fwriting.c: New file.
57307         * lib/fwriting.h: Likewise.
57308         * m4/fwriting.m4: Likewise.
57309         * modules/fwriting: Likewise.
57310         * modules/fwriting-tests: Likewise.
57311         * tests/test-fwriting.c: Likewise.
57312         * MODULES.html.sh (File stream based Input/Output): Mention them.
57313
57314 2007-04-26  Bruno Haible  <bruno@clisp.org>
57315
57316         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57317         'long' when we assume it.
57318         Suggested by Eric Blake.
57319
57320 2007-04-26  Bruno Haible  <bruno@clisp.org>
57321
57322         Ensure fseeko, ftello are declared on glibc systems.
57323         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57324         * modules/fseeko (configure.ac-early): Likewise.
57325         * modules/ftello (configure.ac-early): Likewise.
57326         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57327         AC_FUNC_FSEEKO for this.
57328         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57329         (gl_CHECK_FSEEKO): Remove macro.
57330
57331 2007-04-26  Bruno Haible  <bruno@clisp.org>
57332
57333         * tests/test-fflush.c (main): Also check the ftell result after
57334         fflush and fseek/fseeko.
57335         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57336         file descriptor position cache in the stream.
57337         * lib/fseeko.c (rpl_fseeko): Likewise.
57338
57339 2007-04-26  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/fflush-tests (Depends-on): Add fseeko.
57342
57343 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57344             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57345
57346         * lib/argz_.h: ensure error_t definition is obtained in same
57347         mechanism system argz.h would have.
57348         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57349         argz facilities are known bad.  Err on the side of caution if
57350         cross-compiling.
57351
57352 2007-04-25  Eric Blake  <ebb9@byu.net>
57353
57354         * lib/fpurge.c (includes): Use stdlib.h for free.
57355         * tests/test-fflush.c (main): Also test fflush-fseeko.
57356
57357 2007-04-25  Bruno Haible  <bruno@clisp.org>
57358
57359         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57360         * lib/fseeko.c: New file.
57361         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57362         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57363         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57364         gl_FUNC_FSEEKO.
57365         (gl_FUNC_FSEEKO): Invoke it.
57366         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57367         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57368         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57369
57370 2007-04-25  Bruno Haible  <bruno@clisp.org>
57371
57372         * modules/fflush (Depends-on): Add ftello.
57373
57374 2007-04-25  Bruno Haible  <bruno@clisp.org>
57375
57376         * modules/ftello-tests: New file.
57377         * tests/test-ftello.c: New file.
57378
57379         * modules/ftello: New file.
57380         * m4/ftello.m4: New file.
57381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57382         HAVE_FTELLO.
57383         * lib/stdio_.h (ftello): New declaration.
57384         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57385         HAVE_FTELLO.
57386
57387 2007-04-25  Bruno Haible  <bruno@clisp.org>
57388
57389         * modules/fseeko-tests: New file.
57390         * tests/test-fseeko.c: New file.
57391
57392         * modules/fseeko: New file.
57393         * m4/fseeko.m4: New file.
57394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57395         HAVE_FSEEKO.
57396         * lib/stdio_.h (fseeko): New declaration.
57397         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57398         HAVE_FSEEKO.
57399
57400 2007-04-25  Bruno Haible  <bruno@clisp.org>
57401
57402         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57403
57404 2007-04-25  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57407         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57408         * tests/test-unistd.c: Likewise.
57409         * tests/test-fcntl.c: Likewise.
57410
57411 2007-04-23  Eric Blake  <ebb9@byu.net>
57412
57413         * lib/fflush.c: Fix missing include.
57414         Reported by Bruno Haible.
57415
57416 2007-04-23  Bruno Haible  <bruno@clisp.org>
57417
57418         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57419         Reported by Eric Blake.
57420
57421 2007-04-23  Bruno Haible  <bruno@clisp.org>
57422
57423         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57424
57425 2007-04-23  Bruno Haible  <bruno@clisp.org>
57426
57427         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57428
57429 2007-04-23  Bruno Haible  <bruno@clisp.org>
57430
57431         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57432         Needed on HP-UX 11.
57433
57434 2007-04-16  Eric Blake  <ebb9@byu.net>
57435
57436         Make fflush rely on fpurge.
57437         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57438         open coding all variants.
57439         * modules/fflush (Depends-on): Add fpurge and unistd.
57440         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57441         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57442
57443         Fix --with-tests compilation on cygwin.
57444         * modules/argmatch-tests (Makefile.am): List gnulib library first
57445         in LDADD.
57446         * modules/argp-tests (Makefile.am): Likewise.
57447         * modules/array-list-tests (Makefile.am): Likewise.
57448         * modules/array-oset-tests (Makefile.am): Likewise.
57449         * modules/avltree-list-tests (Makefile.am): Likewise.
57450         * modules/avltree-oset-tests (Makefile.am): Likewise.
57451         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57452         * modules/carray-list-tests (Makefile.am): Likewise.
57453         * modules/dirname-tests (Makefile.am): Likewise.
57454         * modules/frexp-tests (Makefile.am): Likewise.
57455         * modules/isnanl-tests (Makefile.am): Likewise.
57456         * modules/linked-list-tests (Makefile.am): Likewise.
57457         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57458         * modules/lock-tests (Makefile.am): Likewise.
57459         * modules/rbtree-list-tests (Makefile.am): Likewise.
57460         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57461         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57462         * modules/tls-tests (Makefile.am): Likewise.
57463         * modules/tsearch-tests (Makefile.am): Likewise.
57464         * modules/xvasprintf-tests (Makefile.am): Likewise.
57465
57466         Fix fpurge for cygwin.
57467         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57468         value.
57469         * modules/fpurge-tests (Depends-on): Clean up trash.
57470
57471 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57472
57473         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57474
57475         * m4/autobuild.m4: Re-indent.
57476
57477 2007-04-13  Bruno Haible  <bruno@clisp.org>
57478
57479         * modules/fpurge-tests: New file.
57480         * tests/test-fpurge.c: New file.
57481
57482         * modules/fpurge: New file.
57483         * lib/fpurge.h: New file.
57484         * lib/fpurge.c: New file.
57485         * m4/fpurge.m4: New file.
57486
57487 2007-04-13  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/fbufmode-tests: New file.
57490         * tests/test-fbufmode.c: New file.
57491
57492         * modules/fbufmode: New file.
57493         * lib/fbufmode.h: New file.
57494         * lib/fbufmode.c: New file.
57495         * m4/fbufmode.m4: New file.
57496
57497 2007-04-13  Bruno Haible  <bruno@clisp.org>
57498
57499         * modules/fwritable-tests: New file.
57500         * tests/test-fwritable.c: New file.
57501
57502         * modules/fwritable: New file.
57503         * lib/fwritable.h: New file.
57504         * lib/fwritable.c: New file.
57505         * m4/fwritable.m4: New file.
57506
57507 2007-04-13  Bruno Haible  <bruno@clisp.org>
57508
57509         * modules/freadable-tests: New file.
57510         * tests/test-freadable.c: New file.
57511
57512         * modules/freadable: New file.
57513         * lib/freadable.h: New file.
57514         * lib/freadable.c: New file.
57515         * m4/freadable.m4: New file.
57516
57517 2007-04-13  Bruno Haible  <bruno@clisp.org>
57518
57519         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57520         MOSTLYCLEANFILES.
57521
57522 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57525         gzip bootstrap.conf to avoid dragging in i18n machinery.
57526         (gnulib_tool_option): Use it.
57527
57528 2007-04-13  Bruno Haible  <bruno@clisp.org>
57529
57530         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57531         %F directives.
57532         * tests/test-vasprintf-posix.c (test_function): Likewise.
57533         * tests/test-snprintf-posix.h (test_function): Likewise.
57534         * tests/test-sprintf-posix.h (test_function): Likewise.
57535         * tests/test-fprintf-posix.h (test_function): Likewise.
57536         * tests/test-printf-posix.h (test_function): Likewise.
57537         * tests/test-fprintf-posix.out: Likewise.
57538
57539 2007-04-13  Bruno Haible  <bruno@clisp.org>
57540
57541         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57542         * modules/tls-tests (configure.ac): Likewise.
57543         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57544
57545 2007-04-13  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/tls.c (glthread_tls_get): Fix return type.
57548         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57549
57550 2007-04-12  Eric Blake  <ebb9@byu.net>
57551
57552         * modules/gettime (Depends-on): Remove gettime.
57553         Reported by Dmitry V. Levin.
57554
57555 2007-04-12  Bruno Haible  <bruno@clisp.org>
57556
57557         * modules/fflush (Include): Mention <stdio.h>.
57558         * modules/strtoimax (Include): Mention <inttypes.h>.
57559         * modules/strtoumax (Include): Likewise.
57560
57561 2007-04-12  Eric Blake  <ebb9@byu.net>
57562
57563         * .cvsignore: New file.
57564         * .gitignore: Likewise.
57565
57566 2007-04-12  Bruno Haible  <bruno@clisp.org>
57567
57568         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57569         not before, since $(LDADD) often contains libgnu.a.
57570         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57571         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57572         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57573         Needed on Cygwin.
57574
57575 2007-04-12  Eric Blake  <ebb9@byu.net>
57576
57577         Work around glibc's failure to flush stdin on fclose.
57578         * lib/closein.c (close_stdin): Flush stdin before closing.
57579
57580         Work around glibc's failure to reset seekable stdin on exit.
57581         * modules/closein: New module.
57582         * lib/closein.c: New file.
57583         * lib/closein.h: Likewise.
57584         * m4/closein.m4: Likewise.
57585         * MODULES.html.sh (File stream based Input/Output): Document it.
57586
57587 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57588
57589         * gnulib-tool: Rename generated 'autobuild' script to
57590         'do-autobuild' in --create-megatestdir output.
57591
57592         * doc/gnulib.texi (Build robot for gnulib): Fix.
57593
57594 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57595
57596         * modules/sysexits (Depends-on): Add absolute-header.
57597
57598 2007-04-12  Eric Blake  <ebb9@byu.net>
57599
57600         No need to preserve errno on success.
57601         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57602         Reported by Bruno Haible.
57603
57604 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57605
57606         * MODULES.html.sh (Support for maintaining and releasing
57607         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57608
57609 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57610
57611         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57612
57613 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57614
57615         * modules/autobuild: New module.
57616
57617         * m4/autobuild.m4: New file.
57618
57619 2007-04-11  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57622         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57625         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57626         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57627         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57628         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57629         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57630         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57632         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57633         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57634         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57635         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57636         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57637         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57638         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57639         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57640         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57643         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57647         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57648         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57649         Reported by Eric Blake.
57650
57651 2007-04-11  Bruno Haible  <bruno@clisp.org>
57652
57653         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57654
57655 2007-04-10  Bruno Haible  <bruno@clisp.org>
57656
57657         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57658         for NaN and Infinity. Needed on FreeBSD 6.1.
57659         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57660         regarding results for "%010a" of Infinity and NaN.
57661         * tests/test-vasprintf-posix.c (test_function): Likewise.
57662         * tests/test-snprintf-posix.h (test_function): Likewise.
57663         * tests/test-sprintf-posix.h (test_function): Likewise.
57664         * tests/test-fprintf-posix.h (test_function): Likewise.
57665         * tests/test-printf-posix.h (test_function): Likewise.
57666         * tests/test-fprintf-posix.out: Likewise.
57667
57668 2007-04-10  Bruno Haible  <bruno@clisp.org>
57669
57670         * modules/locale-tests: New file.
57671         * tests/test-locale.c: New file.
57672
57673         * modules/locale: New file.
57674         * lib/locale_.h: New file.
57675         * m4/locale_h.m4: New file.
57676
57677 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57678             Bruno Haible  <bruno@clisp.org>
57679
57680         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57681         be determined, test for availability of the copysignf, copysign,
57682         copysignl functions.
57683         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57684         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57685         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57686
57687 2007-04-09  Eric Blake  <ebb9@byu.net>
57688
57689         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57690         * modules/stdio (Makefile.am): Support fflush.
57691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57692         * modules/fflush: New file.
57693         * lib/fflush.c: Likewise.
57694         * m4/fflush.m4: Likewise.
57695         * modules/fflush-tests: New test.
57696         * tests/test-fflush.c: Likewise.
57697         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57698
57699 2007-04-06  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57702         (VASNPRINTF): Use signbit for faster determination whether to print a
57703         minus sign.
57704         * modules/vasnprintf (Files): Remove lib/float+.h.
57705         * modules/fprintf-posix (Depends-on): Add signbit.
57706         * modules/snprintf-posix (Depends-on): Likewise.
57707         * modules/sprintf-posix (Depends-on): Likewise.
57708         * modules/vasnprintf-posix (Depends-on): Likewise.
57709         * modules/vasprintf-posix (Depends-on): Likewise.
57710         * modules/vfprintf-posix (Depends-on): Likewise.
57711         * modules/vsnprintf-posix (Depends-on): Likewise.
57712         * modules/vsprintf-posix (Depends-on): Likewise.
57713
57714 2007-04-06  Bruno Haible  <bruno@clisp.org>
57715
57716         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57717         * tests/test-frexpl.c (main): Likewise.
57718         * tests/test-ldexpl.c (main): Likewise.
57719         * modules/frexp-tests (Depends-on): Add signbit.
57720         * modules/frexpl-tests (Depdends-on): Likewise.
57721         * modules/ldexpl-tests (Depdends-on): Likewise.
57722
57723 2007-04-06  Bruno Haible  <bruno@clisp.org>
57724
57725         * modules/signbit-tests: New file.
57726         * tests/test-signbit.c: New file.
57727
57728         * modules/signbit: New file.
57729         * lib/signbitf.c: New file.
57730         * lib/signbitd.c: New file.
57731         * lib/signbitl.c: New file.
57732         * m4/signbit.m4: New file.
57733         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57734         (signbit): New macro.
57735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57736         REPLACE_SIGNBIT.
57737         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57738         REPLACE_FREXPL into math.h.
57739
57740 2007-04-06  Bruno Haible  <bruno@clisp.org>
57741
57742         * modules/isnanf-nolibm-tests: New file.
57743         * tests/test-isnanf.c: New file.
57744
57745         * modules/isnanf-nolibm: New file.
57746         * lib/isnanf.h: New file.
57747         * lib/isnanf.c: New file.
57748         * lib/isnan.c: Consider the USE_FLOAT macro.
57749         * m4/isnanf.m4: New file.
57750
57751 2007-04-06  Bruno Haible  <bruno@clisp.org>
57752
57753         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57754         (Link): New section.
57755
57756         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57757
57758 2007-04-06  Bruno Haible  <bruno@clisp.org>
57759
57760         Assume the 'long double' type.
57761         * m4/longdouble.m4: Remove file.
57762         * config/srclist.txt: Don't mention longdouble.m4.
57763         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57764         * lib/float+.h: Likewise.
57765         * lib/frexp.c: Likewise.
57766         * lib/printf-args.h: Likewise.
57767         * lib/printf-args.c: Likewise.
57768         * lib/printf-frexp.c: Likewise.
57769         * lib/printf-parse.c: Likewise.
57770         * lib/vasnprintf.c: Likewise.
57771         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57772         * m4/intl.m4: Likewise.
57773         * m4/isnanl.m4: Likewise.
57774         * m4/printf.m4: Likewise.
57775         * m4/printf-frexpl.m4: Likewise.
57776         * m4/vasnprintf.m4: Likewise.
57777         * modules/allocsa (Files): Remove m4/longdouble.m4.
57778         * modules/gettext (Files): Likewise.
57779         * modules/relocatable-prog-wrapper (Files): Likewise.
57780         * modules/vasnprintf (Files): Likewise.
57781         * modules/isnanl (Files): Likewise.
57782         (Include): Simplify.
57783         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57784         (Include): Simplify.
57785         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57786         (Include): Simplify.
57787         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57788         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57789         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57790         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57791         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57792         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57793         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57794         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57795         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57796         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57797         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57798         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57799         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57800         * tests/test-isnanl.c: Likewise.
57801         * tests/test-snprintf-posix.h: Likewise.
57802         * tests/test-sprintf-posix.h: Likewise.
57803         * tests/test-vasnprintf-posix.c: Likewise.
57804         * tests/test-vasnprintf-posix2.c: Likewise.
57805         * tests/test-vasprintf-posix.c: Likewise.
57806
57807 2007-04-06  Bruno Haible  <bruno@clisp.org>
57808
57809         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57810         * lib/math_.h [__DECC]: Include the overridden include file through
57811         #include_next, outside the double-inclusion guard.
57812         * lib/stdio_.h [__DECC]: Likewise.
57813         * lib/stdlib_.h [__DECC]: Likewise.
57814         * lib/string_.h [__DECC]: Likewise.
57815         * lib/time_.h [__DECC]: Likewise.
57816         * lib/wchar_.h [__DECC]: Likewise.
57817         * lib/wctype_.h [__DECC]: Likewise.
57818         * lib/inttypes_.h [__DECC]: Likewise.
57819         Reported by Albert Chin <china@thewrittenword.com> in
57820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57821
57822 2007-04-04  Eric Blake  <ebb9@byu.net>
57823
57824         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57825         1.5.x.
57826
57827 2007-04-04  Bruno Haible  <bruno@clisp.org>
57828
57829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57830         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57831
57832 2007-04-04  Bruno Haible  <bruno@clisp.org>
57833
57834         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57835         results for "%010a" of Infinity and NaN.
57836         * tests/test-vasprintf-posix.c (test_function): Likewise.
57837         * tests/test-snprintf-posix.h (test_function): Likewise.
57838         * tests/test-sprintf-posix.h (test_function): Likewise.
57839         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57840         * tests/test-printf-posix.h (test_function): Likewise.
57841         * tests/test-fprintf-posix.out: Update.
57842         Needed for FreeBSD 6.1.
57843
57844 2007-04-04  Bruno Haible  <bruno@clisp.org>
57845
57846         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57847         directly used by the gnulib modules nor by gnulib-tool.
57848
57849 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57850
57851         * DEPENDENCIES: Give overall description of version dependency
57852         desirability.  Use more-typical names for apps.
57853         Add shell, coreutils, diffutils, grep, tar, gzip.
57854
57855 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57856
57857         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57858
57859 2007-04-04  Karl Berry  <karl@gnu.org>
57860
57861         * MODULES.html.sh (func_module): missing '.
57862
57863 2007-04-03  Bruno Haible  <bruno@clisp.org>
57864
57865         * modules/argmatch-tests (Makefile.am): New variable
57866         test_argmatch_LDADD.
57867         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57868         * modules/array-list-tests (Makefile.am): New variable
57869         test_array_list_LDADD.
57870         * modules/array-oset-tests (Makefile.am): New variable
57871         test_array_oset_LDADD.
57872         * modules/avltree-list-tests (Makefile.am): New variable
57873         test_avltree_list_LDADD.
57874         * modules/avltree-oset-tests (Makefile.am): New variable
57875         test_avltree_oset_LDADD.
57876         * modules/avltreehash-list-tests (Makefile.am): New variable
57877         test_avltreehash_list_LDADD.
57878         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57879         test_canonicalize_lgpl_LDADD.
57880         * modules/carray-list-tests (Makefile.am): New variable
57881         test_carray_list_LDADD.
57882         * modules/dirname-tests (Makefile.am): New variable
57883         test_dirname_LDADD.
57884         * modules/linked-list-tests (Makefile.am): New variable
57885         test_linked_list_LDADD.
57886         * modules/linkedhash-list-tests (Makefile.am): New variable
57887         test_linkedhash_list_LDADD.
57888         * modules/rbtree-list-tests (Makefile.am): New variable
57889         test_rbtree_list_LDADD.
57890         * modules/rbtree-oset-tests (Makefile.am): New variable
57891         test_rbtree_oset_LDADD.
57892         * modules/rbtreehash-list-tests (Makefile.am): New variable
57893         test_rbtreehash_list_LDADD.
57894         * modules/xvasprintf-tests (Makefile.am): New variable
57895         test_xvasprintf_LDADD.
57896         Reported by Eric Blake.
57897
57898 2007-04-03  Eric Blake  <ebb9@byu.net>
57899
57900         * DEPENDENCIES: Weaken m4 requirements.
57901
57902 2007-04-03  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57905         * modules/isnanl-tests (configure.ac): Likewise.
57906
57907 2007-04-03  Ben Pfaff  <blp@gnu.org>
57908
57909         * modules/iconv_open: Add $(srcdir)/ to source directory
57910         references in Makefile fragments that call gperf, to fix VPATH
57911         builds.
57912
57913 2007-04-03  Bruno Haible  <bruno@clisp.org>
57914
57915         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57916         * lib/ldexpl.c: Undo last change.
57917
57918 2007-04-03  Bruno Haible  <bruno@clisp.org>
57919
57920         * modules/printf-frexpl (Depends-on): Undo last change.
57921         (Files): Add m4/ldexpl.m4.
57922
57923 2007-04-03  Bruno Haible  <bruno@clisp.org>
57924
57925         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57926         * modules/isnanl (Link): New section.
57927
57928         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57929         * modules/frexp (Link): New section.
57930
57931         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57932         * modules/frexpl (Link): New section.
57933
57934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57935         * modules/ldexpl (Link): New section.
57936
57937 2007-04-03  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/TEMPLATE-EXTENDED: New file.
57940         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57941
57942 2007-04-03  Bruno Haible  <bruno@clisp.org>
57943
57944         * DEPENDENCIES: New file.
57945         Suggested by Simon Josefsson.
57946
57947 2007-04-03  Bruno Haible  <bruno@clisp.org>
57948
57949         * doc/gnulib.texi: Escape @.
57950
57951 2007-04-03  James Youngman  <jay@gnu.org>
57952         and Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57955         birthtime on all systems that have birthtime, not just those which
57956         use st_birthtimensec rather than st_birthtim.  Putting zero in
57957         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57958         that the birth time is not available for files on an NFS mount.
57959
57960 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57961
57962         * modules/memxor: Move back from crypto/, suggested by Bruno.
57963         * modules/crypto/hmac-sha1: Fix memxor dependency.
57964
57965         * modules/crypto/gc: Moved from ../.
57966
57967 2007-04-02  Eric Blake  <ebb9@byu.net>
57968
57969         * lib/ldexpl.c (includes): Avoid libm.
57970
57971         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57972
57973 2007-04-02  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57976         on IRIX.
57977
57978 2007-04-02  Bruno Haible  <bruno@clisp.org>
57979
57980         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57981         x86 or x86_64 platforms running MacOS X.
57982         Reported by Ryan Schmidt <@ryandesign.com>.
57983
57984 2007-04-02  Bruno Haible  <bruno@clisp.org>
57985
57986         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57987         i386.
57988
57989 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57990
57991         * modules/crypto/arcfour: Moved from ../.
57992         * modules/crypto/arcfour-tests: Moved from ../.
57993         * modules/crypto/arctwo: Moved from ../.
57994         * modules/crypto/arctwo-tests: Moved from ../.
57995         * modules/crypto/des: Moved from ../.
57996         * modules/crypto/des-tests: Moved from ../.
57997         * modules/crypto/gc-arcfour: Moved from ../.
57998         * modules/crypto/gc-arcfour-tests: Moved from ../.
57999         * modules/crypto/gc-arctwo: Moved from ../.
58000         * modules/crypto/gc-arctwo-tests: Moved from ../.
58001         * modules/crypto/gc-des: Moved from ../.
58002         * modules/crypto/gc-des-tests: Moved from ../.
58003         * modules/crypto/gc-hmac-md5: Moved from ../.
58004         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58005         * modules/crypto/gc-hmac-sha1: Moved from ../.
58006         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58007         * modules/crypto/gc-md2: Moved from ../.
58008         * modules/crypto/gc-md2-tests: Moved from ../.
58009         * modules/crypto/gc-md4: Moved from ../.
58010         * modules/crypto/gc-md4-tests: Moved from ../.
58011         * modules/crypto/gc-md5: Moved from ../.
58012         * modules/crypto/gc-md5-tests: Moved from ../.
58013         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58014         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58015         * modules/crypto/gc-random: Moved from ../.
58016         * modules/crypto/gc-rijndael: Moved from ../.
58017         * modules/crypto/gc-rijndael-tests: Moved from ../.
58018         * modules/crypto/gc-sha1: Moved from ../.
58019         * modules/crypto/gc-sha1-tests: Moved from ../.
58020         * modules/crypto/gc-tests: Moved from ../.
58021         * modules/crypto/hmac-md5: Moved from ../.
58022         * modules/crypto/hmac-md5-tests: Moved from ../.
58023         * modules/crypto/hmac-sha1: Moved from ../.
58024         * modules/crypto/hmac-sha1-tests: Moved from ../.
58025         * modules/crypto/md2: Moved from ../.
58026         * modules/crypto/md2-tests: Moved from ../.
58027         * modules/crypto/md4: Moved from ../.
58028         * modules/crypto/md4-tests: Moved from ../.
58029         * modules/crypto/md5: Moved from ../.
58030         * modules/crypto/md5-tests: Moved from ../.
58031         * modules/crypto/memxor: Moved from ../.
58032         * modules/crypto/rijndael: Moved from ../.
58033         * modules/crypto/rijndael-tests: Moved from ../.
58034         * modules/crypto/sha1: Moved from ../.
58035
58036 2007-03-30  James Youngman  <jay@gnu.org>
58037
58038         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58039         rename() to change the ctime of a file (because ctime is unaffected
58040         by rename on jfs2 on AIX 5.1).
58041         (main): Start by doing cleanup, in case a previous run failed leaving
58042         test files behind.
58043
58044 2007-03-31  Bruno Haible  <bruno@clisp.org>
58045
58046         Support old proprietary implementations of iconv.
58047         * modules/iconv_open: New file.
58048         * lib/iconv_.h: New file.
58049         * m4/iconv_h.m4: New file.
58050         * lib/iconv_open.c: New file.
58051         * lib/iconv_open-aix.gperf: New file.
58052         * lib/iconv_open-hpux.gperf: New file.
58053         * lib/iconv_open-irix.gperf: New file.
58054         * lib/iconv_open-osf.gperf: New file.
58055         * m4/iconv_open.m4: New file.
58056         * modules/linebreak (Depends-on): Add iconv_open.
58057         * modules/striconv (Depends-on): Likewise.
58058         * modules/striconveh (Depends-on): Likewise.
58059         * modules/unicodeio (Depends-on): Likewise.
58060         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58061         (iconv_t)(-1).
58062         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58063         conversion if cd is (iconv_t)(-1).
58064         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58065         is not possible.
58066
58067 2007-03-31  Bruno Haible  <bruno@clisp.org>
58068
58069         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58070         work on Solaris either. Protect also second use of "autodetect_jp".
58071
58072 2007-03-31  Bruno Haible  <bruno@clisp.org>
58073
58074         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58075         the function is not present.
58076
58077 2007-03-31  Bruno Haible  <bruno@clisp.org>
58078
58079         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58080         the function is not present.
58081
58082 2007-03-31  Bruno Haible  <bruno@clisp.org>
58083
58084         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58085         a bug in HP-UX iconv_open().
58086
58087 2007-03-31  Bruno Haible  <bruno@clisp.org>
58088
58089         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58090         (Mathematics <math.h>): New section, add fpieee.
58091         (Input/output <stdio.h>): Add fseterr.
58092         (Mathematics <math.h>): New section, add printf-frexp.
58093         (Container data structures): Add sublist.
58094         (Core language properties): Add fpucw, inline.
58095         (Functions for greatest-width integer types <inttypes.h>): Add
58096         imaxabs, imaxdiv, inttypes.
58097         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58098         isnanl-nolibm, ldexp.
58099         (Mathematics <math.h>): New section, add printf-frexpl.
58100         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58101         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58102         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58103         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58104         (Unicode string functions): Add unistr/u*-mbtoucr.
58105         (Java): Add javacomp-script, javaexec-script.
58106         (C#): Add csharpcomp-script, csharpexec-script.
58107         (Support for building libraries and executables): Add havelib,
58108         relocatable-*.
58109         (Support for maintaining and releasing projects): Renamed from
58110         'Support for maintaining and release projects'. Add announce-gen.
58111
58112 2007-03-31  Bruno Haible  <bruno@clisp.org>
58113
58114         * README: Talk primarily about git.
58115         (git and CVS): Renamed from CVS.
58116         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58117         gnulib is available through git.
58118         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58119
58120 2007-03-30  Bruno Haible  <bruno@clisp.org>
58121
58122         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58123         * lib/poll_.h: Likewise.
58124         * lib/stat_.h: Likewise.
58125         * lib/sys_time_.h: Likewise.
58126         * lib/sysexit_.h: Likewise.
58127         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58128         * lib/stdbool_.h: Likewise.
58129         * lib/byteswap_.h: Add double-inclusion guard.
58130
58131 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58132
58133         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58134
58135 2007-03-30  Karl Berry  <karl@gnu.org>
58136
58137         * config/srclist-update: double space after USA in the license
58138         substitution, since that's how it's usually (?) written.
58139
58140 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58141
58142         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58143         reported by Bruno Haible.
58144
58145 2007-03-29  Bruno Haible  <bruno@clisp.org>
58146
58147         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58148         a bug in AIX iconv().
58149
58150 2007-03-29  Bruno Haible  <bruno@clisp.org>
58151
58152         * modules/ldexpl-tests: New file.
58153         * tests/test-ldexpl.c: New file.
58154
58155 2007-03-29  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/ldexpl.c: Include fpucw.h.
58158         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58159         multiplication.
58160         * modules/ldexpl (Depends-on): Add fpucw.
58161
58162 2007-03-29  Bruno Haible  <bruno@clisp.org>
58163
58164         * modules/ldexpl: New file.
58165         * m4/ldexpl.m4: New file.
58166         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58167         set.
58168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58169         REPLACE_LDEXPL.
58170         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58171         REPLACE_LDEXPL.
58172         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58173         gl_FUNC_LDEXPL_WORKS.
58174         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58175         * modules/mathl (Files): Remove lib/ldexpl.c.
58176         (Depends-on): Add ldexpl.
58177
58178 2007-03-29  Bruno Haible  <bruno@clisp.org>
58179
58180         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58181
58182 2007-03-29  Bruno Haible  <bruno@clisp.org>
58183
58184         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58185         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58186         and possibly also HP-UX.
58187         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58188         work on AIX, IRIX, HP-UX, OSF/1.
58189         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58190         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58191         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58192         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58193         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58194         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58195
58196 2007-03-29  Bruno Haible  <bruno@clisp.org>
58197
58198         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58199
58200 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58201
58202         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58203         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58204
58205 2007-03-29  Eric Blake  <ebb9@byu.net>
58206
58207         * lib/acl-internal.h: Remove redundant include.
58208         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58209         Cygwin when a file is locked.
58210
58211 2007-03-29  Bruno Haible  <bruno@clisp.org>
58212
58213         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58214         file.
58215         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58216
58217 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58218
58219         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58220         try to remove a parent directory if the child couldn't be removed
58221         (except for the first rmdir, which could fail because the child
58222         doesn't exist).  Problem reported by Jeff Blaine in
58223         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58224
58225 2007-03-28  Bruno Haible  <bruno@clisp.org>
58226
58227         * lib/striconveh.c (utf8conv_carefully): New function.
58228         (mem_cd_iconveh_internal): Invoke it.
58229
58230 2007-03-28  Bruno Haible  <bruno@clisp.org>
58231
58232         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58233         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58234         input.
58235         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58236         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58237         unistr/u8-uctomb.
58238
58239 2007-03-28  Bruno Haible  <bruno@clisp.org>
58240
58241         * modules/unistr/u8-mbtoucr: New file.
58242         * lib/unistr/u8-mbtoucr.c: New file.
58243         * modules/unistr/u16-mbtoucr: New file.
58244         * lib/unistr/u16-mbtoucr.c: New file.
58245         * modules/unistr/u16-mbtoucr: New file.
58246         * lib/unistr/u16-mbtoucr.c: New file.
58247         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58248
58249 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58250             Bruno Haible  <bruno@clisp.org>
58251
58252         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58253         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58254         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58255
58256         * m4/stdio_h.m4: Add stubs for vasprintf too.
58257
58258         * modules/stdio: Support vasprintf in sed command.
58259
58260         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58261         vasprintf.h.  Add stdio module indicator.
58262
58263         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58264         vasprintf.h.
58265
58266         * lib/vasprintf.h: File removed.
58267
58268         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58269         * lib/vasprintf.c: Ditto.
58270         * lib/xvasprintf.c: Ditto.
58271         * tests/test-vasprintf-posix.c: Ditto.
58272         * tests/test-vasprintf.c: Ditto.
58273
58274 2007-03-27  Bruno Haible  <bruno@clisp.org>
58275
58276         Make vasnprintf multithread-safe.
58277         * lib/vasnprintf.c (decimal_point_char): New function.
58278         (VASNPRINTF): Use it.
58279         Suggested by Simon Josefsson.
58280
58281 2007-03-27  Eric Blake  <ebb9@byu.net>
58282
58283         Support sub-second birthtime on cygwin.
58284         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58285         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58286         (get_stat_birthtime): Also work with st_birthtim.
58287
58288 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58289
58290         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58291         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58292         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58293         (get_stat_birthtime_ns): Simplify compile-time tests.
58294         (get_stat_birthtime): Change the API to look like
58295         get_stat_mtime etc., except return a negative tv_nsec on error.
58296         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58297         Don't check for "spare" fields.
58298         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58299         or for struct stat.st_birthtime, as these tests aren't used.
58300         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58301
58302 2007-03-27  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/stat-time.h: Include <sys/stat.h>.
58305
58306 2007-03-27  James Youngman  <jay@gnu.org>
58307
58308         * lib/stat-time.h (get_stat_birthtime): New function for
58309           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58310         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58311           and its variants.
58312         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58313         * modules/stat-time-test: New file.
58314         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58315
58316 2007-03-26  Bruno Haible  <bruno@clisp.org>
58317
58318         Better support of signalling NaNs.
58319         * lib/atanl.c: Include isnanl.h.
58320         (atanl): Perform test for NaN at the beginning of the function and
58321         through a call to isnanl.
58322         * lib/cosl.c: Include isnanl.h.
58323         (cosl): Perform test for NaN at the beginning of the function and
58324         through a call to isnanl.
58325         * lib/ldexpl.c: Include isnanl.h.
58326         (ldexpl): Perform test for NaN through a call to isnanl.
58327         * lib/logl.c: Include isnanl.h.
58328         (logl): Perform test for NaN at the beginning of the function and
58329         through a call to isnanl.
58330         * lib/sinl.c: Include isnanl.h.
58331         (sinl): Perform test for NaN at the beginning of the function and
58332         through a call to isnanl.
58333         * lib/sqrtl.c: Include isnanl.h.
58334         (sqrtl): Perform test for NaN at the beginning of the function and
58335         through a call to isnanl.
58336         * lib/tanl.c: Include isnanl.h.
58337         (tanl): Perform test for NaN at the beginning of the function and
58338         through a call to isnanl.
58339         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58340         * modules/mathl (Depends-on): Add isnanl.
58341
58342 2007-03-26  Eric Blake  <ebb9@byu.net>
58343
58344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58345         regression in logic sense of previous patch.
58346
58347 2007-03-26  Bruno Haible  <bruno@clisp.org>
58348
58349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58350         unportable shell command "if ! ...".
58351         Reported by Ralf Wildenhues.
58352
58353 2007-03-25  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58356         <sysexits.h> file, and only add EX_CONFIG.
58357         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58358         absolute file name and whether it is sufficient. Substitute also
58359         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58360         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58361         ABSOLUTE_SYSEXITS_H into sysexits.h.
58362
58363 2007-03-25  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58366         hints is NULL.
58367
58368 2007-03-25  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58371         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58372
58373 2007-03-25  Bruno Haible  <bruno@clisp.org>
58374
58375         * lib/vasnprintf.c: Include langinfo.h.
58376         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58377         multithread-safe.
58378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58379         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58387         Reported by Simon Josefsson.
58388
58389 2007-03-25  Bruno Haible  <bruno@clisp.org>
58390
58391         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58392         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58393         * modules/vasnprintf (Depends-on): Add stdint.
58394
58395 2007-03-25  Bruno Haible  <bruno@clisp.org>
58396
58397         * modules/fpieee: New file.
58398         * m4/fpieee.m4: New file.
58399         * modules/isnan-nolibm (Depends-on): Add fpieee.
58400         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58401         * modules/isnanl (Depends-on): Add fpieee.
58402
58403 2007-03-25  Bruno Haible  <bruno@clisp.org>
58404
58405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58406
58407 2007-03-25  Bruno Haible  <bruno@clisp.org>
58408
58409         Avoid test failures on IRIX 6.5.
58410         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58411         (main): Use it.
58412         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58413         macros.
58414         (main): Use them.
58415
58416 2007-03-25  Bruno Haible  <bruno@clisp.org>
58417
58418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58419         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58420         exists but doesn't work.
58421         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58422         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58424         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58425         math.h.
58426
58427 2007-03-25  Bruno Haible  <bruno@clisp.org>
58428
58429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58430         returns inf. Needed on IRIX 6.5.
58431
58432 2007-03-25  Bruno Haible  <bruno@clisp.org>
58433
58434         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58435         (main): Use isnanl instead of x != x idiom.
58436         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58437
58438         * tests/test-frexp.c: Include isnan.h.
58439         (main): Use isnan instead of x != x idiom.
58440         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58441
58442 2007-03-25  Bruno Haible  <bruno@clisp.org>
58443
58444         * tests/test-frexp.c (NaN): New function/macro.
58445         (main): Use it instead of 0.0 / 0.0.
58446         * tests/test-isnan.c (NaN): New function/macro.
58447         (main): Use it instead of 0.0 / 0.0.
58448         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58449         (test_function): Use it instead of 0.0 / 0.0.
58450         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58451         (test_function): Use it instead of 0.0 / 0.0.
58452         * tests/test-snprintf-posix.h (NaN): New function/macro.
58453         (test_function): Use it instead of 0.0 / 0.0.
58454         * tests/test-sprintf-posix.h (NaN): New function/macro.
58455         (test_function): Use it instead of 0.0 / 0.0.
58456         * tests/test-fprintf-posix.h (NaN): New function/macro.
58457         (test_function): Use it instead of 0.0 / 0.0.
58458         * tests/test-printf-posix.h (NaN): New function/macro.
58459         (test_function): Use it instead of 0.0 / 0.0.
58460
58461         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58462
58463 2007-03-25  Bruno Haible  <bruno@clisp.org>
58464
58465         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58466
58467 2007-03-25  Bruno Haible  <bruno@clisp.org>
58468
58469         * lib/regexec.c (merge_state_with_log): Make static.
58470
58471 2007-03-25  Bruno Haible  <bruno@clisp.org>
58472
58473         * lib/trigl.c (kernel_rem_pio2): Make static.
58474
58475 2007-03-25  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/sincosl.c (sincosl_table): Make static.
58478
58479 2007-03-25  Bruno Haible  <bruno@clisp.org>
58480
58481         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58482         if the compiler does not support C99.
58483
58484 2007-03-25  Bruno Haible  <bruno@clisp.org>
58485
58486         * modules/time (Makefile.am): Ensure all rule action lines start with a
58487         tab.
58488
58489 2007-03-24  Bruno Haible  <bruno@clisp.org>
58490
58491         * modules/tsearch-tests: New file.
58492         * tests/test-tsearch.sh: New file.
58493         * tests/test-tsearch.c: New file, mostly copied from glibc.
58494
58495         * modules/search-tests: New file.
58496         * tests/test-search.c: New file.
58497
58498         * modules/search: New file.
58499         * lib/search_.h: New file, incorporating lib/tsearch.h.
58500         * m4/search_h.m4: New file.
58501         * lib/tsearch.h: Remove file.
58502         * lib/tsearch.c: Include search.h instead of tsearch.h.
58503         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58504         HAVE_TSEARCH.
58505         * modules/tsearch (Files): Remove lib/tsearch.h.
58506         (Depends-on): Add search.
58507         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58508         (Include): Change tsearch.h into search.h.
58509
58510 2007-03-24  Bruno Haible  <bruno@clisp.org>
58511
58512         * modules/fpucw: New file.
58513         * lib/fpucw.h: New file.
58514         * lib/frexp.c: Include fpucw.h.
58515         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58516         (FUNC): Use them.
58517         * lib/printf-frexp.c: Include fpucw.h.
58518         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58519         (FUNC): Use them.
58520         * lib/vasnprintf.c: Include fpucw.h.
58521         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58522         'long double' calculations.
58523         * tests/test-frexpl.c: Include fpucw.h.
58524         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58525         * tests/test-printf-frexpl.c: Include fpucw.h.
58526         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58527         * modules/frexpl (Depends-on): Add fpucw.
58528         * modules/printf-frexpl (Depends-on): Likewise.
58529         * modules/fprintf-posix (Depends-on): Likewise.
58530         * modules/snprintf-posix (Depends-on): Likewise.
58531         * modules/sprintf-posix (Depends-on): Likewise.
58532         * modules/vasnprintf-posix (Depends-on): Likewise.
58533         * modules/vasprintf-posix (Depends-on): Likewise.
58534         * modules/vfprintf-posix (Depends-on): Likewise.
58535         * modules/vsnprintf-posix (Depends-on): Likewise.
58536         * modules/vsprintf-posix (Depends-on): Likewise.
58537         * modules/frexpl-tests (Depends-on): Likewise.
58538         * modules/printf-frexpl-tests (Depends-on): Likewise.
58539
58540 2007-03-24  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/float+.h: New file.
58543         * lib/isnan.c: Include float+.h.
58544         (SIZE): New macro.
58545         (FUNC): Compare only SIZE bytes of the value.
58546         * lib/vasnprintf.c: Include float+.h.
58547         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58548         SIZEOF_LDBL or SIZEOF_DBL bytes.
58549         * modules/isnan-nolibm (Files): Add lib/float+.h.
58550         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58551         * modules/isnanl (Files): Add lib/float+.h.
58552         * modules/vasnprintf (Files): Add lib/float+.h.
58553
58554 2007-03-24  Bruno Haible  <bruno@clisp.org>
58555
58556         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58557         include isnanl-nolibm.h.
58558
58559 2007-03-24  Bruno Haible  <bruno@clisp.org>
58560
58561         * tests/test-read-file.c (main): Don't produce spurious output for
58562         expected situations. Make the test fail if it encountered unexpected
58563         results.
58564
58565 2007-03-24  Bruno Haible  <bruno@clisp.org>
58566
58567         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58568         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58569
58570 2007-03-24  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58573
58574 2007-03-24  Bruno Haible  <bruno@clisp.org>
58575
58576         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58577         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58578
58579         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58580         * modules/utf8-ucs4: Turn into a symbolic link to module
58581         unistr/u8-mbtouc.
58582
58583         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58584         utf8-ucs4-unsafe.
58585         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58586         unistr/u8-mbtouc-unsafe.
58587
58588         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58589         * modules/utf16-ucs4: Turn into a symbolic link to module
58590         unistr/u16-mbtouc.
58591
58592         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58593         utf16-ucs4-unsafe.
58594         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58595         unistr/u16-mbtouc-unsafe.
58596
58597         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58598         * modules/ucs4-utf8: Turn into a symbolic link to module
58599         unistr/u8-ubtomb.
58600
58601         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58602         * modules/ucs4-utf16: Turn into a symbolic link to module
58603         unistr/u16-ubtomb.
58604
58605 2007-03-24  Bruno Haible  <bruno@clisp.org>
58606
58607         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58608         Enable the function only if HAVE_INLINE.
58609         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58610         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58611         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58612         Enable the function only if HAVE_INLINE.
58613         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58614         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58615         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58616         Enable the function only if HAVE_INLINE.
58617         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58618         Enable the function only if HAVE_INLINE.
58619         * modules/utf8-ucs4: Update.
58620         * modules/utf8-ucs4-unsafe: Update.
58621         * modules/utf16-ucs4: Update.
58622         * modules/utf16-ucs4-unsafe: Update.
58623         * modules/ucs4-utf8: Update.
58624         * modules/ucs4-utf16: Update.
58625
58626 2007-03-24  Bruno Haible  <bruno@clisp.org>
58627
58628         * lib/utf8-ucs4.h: Remove file.
58629         * lib/utf8-ucs4-unsafe.h: Remove file.
58630         * lib/utf16-ucs4.h: Remove file.
58631         * lib/utf16-ucs4-unsafe.h: Remove file.
58632         * lib/ucs4-utf8.h: Remove file.
58633         * lib/ucs4-utf16.h: Remove file.
58634         * lib/unistr.h: Include their previous contents.
58635         * m4/utf-ucs4.m4: Remove file.
58636         * m4/ucs4-utf.m4: Remove file.
58637         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58638         (Depends-on): Add unistr/base.
58639         (configure.ac): Remove gl_UTF_UCS4.
58640         (Makefile.am): Update.
58641         (Include): Change to unistr.h.
58642         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58643         (Depends-on): Add unistr/base.
58644         (configure.ac): Remove gl_UTF_UCS4.
58645         (Makefile.am): Update.
58646         (Include): Change to unistr.h.
58647         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58648         (Depends-on): Add unistr/base.
58649         (configure.ac): Remove gl_UTF_UCS4.
58650         (Makefile.am): Update.
58651         (Include): Change to unistr.h.
58652         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58653         (Depends-on): Add unistr/base.
58654         (configure.ac): Remove gl_UTF_UCS4.
58655         (Makefile.am): Update.
58656         (Include): Change to unistr.h.
58657         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58658         (Depends-on): Add unistr/base.
58659         (configure.ac): Remove gl_UCS4_UTF.
58660         (Makefile.am): Update.
58661         (Include): Change to unistr.h.
58662         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58663         (Depends-on): Add unistr/base.
58664         (configure.ac): Remove gl_UCS4_UTF.
58665         (Makefile.am): Update.
58666         (Include): Change to unistr.h.
58667         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58668         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58669         utf8-ucs4-unsafe.h.
58670         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58671         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58672         utf16-ucs4-unsafe.h.
58673         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58674         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58675         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58676         * lib/unistr/u8-strchr.c: Likewise.
58677         * lib/unistr/u8-strrchr.c: Likewise.
58678         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58679         * lib/unistr/u16-strchr.c: Likewise.
58680         * lib/unistr/u16-strrchr.c: Likewise.
58681         * lib/striconveh.c: Update.
58682         * lib/linebreak.c: Update.
58683
58684 2007-03-24  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58687         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58688
58689 2007-03-22  Bruno Haible  <bruno@clisp.org>
58690
58691         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58692
58693 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * MODULES.html.sh (File system functions): New module write-any-file.
58696         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58697         * m4/write-any-file.m4: New files.
58698
58699 2007-03-23  Eric Blake  <ebb9@byu.net>
58700
58701         * gnulib-tool: Rearrange space-tab sequences, since some editors
58702         like to eat them.
58703
58704 2007-03-23  Eric Blake  <ebb9@byu.net>
58705
58706         * lib/version-etc.c (version_etc_va): Update license wording to
58707         be more concise.  Recommended by Richard Stallman.
58708
58709 2007-03-22  Bruno Haible  <bruno@clisp.org>
58710
58711         * lib/poll.c (MSG_PEEK): New fallback definition.
58712
58713 2007-03-22  Bruno Haible  <bruno@clisp.org>
58714
58715         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58716         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58717         (main): Update.
58718         Fixes a compilation error on BeOS.
58719
58720 2007-03-22  Bruno Haible  <bruno@clisp.org>
58721
58722         * modules/frexpl-tests: New file.
58723         * tests/test-frexpl.c: New file.
58724
58725         * modules/frexpl: New file.
58726         * m4/frexpl.m4: New file.
58727         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58728         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58730         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58731         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58732         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58733
58734 2007-03-22  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/frexpl.c: Share code with lib/frexp.c.
58737         * modules/mathl (Files): Add lib/frexp.c.
58738         (Depends-on): Add isnanl-nolibm.
58739
58740 2007-03-22  Bruno Haible  <bruno@clisp.org>
58741
58742         * modules/printf-frexp (Files): Add m4/frexp.m4.
58743         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58744         only if the found frexp function actually works.
58745
58746 2007-03-22  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/frexp.c: Remove older implementation that uses divisions.
58749
58750 2007-03-21  Bruno Haible  <bruno@clisp.org>
58751
58752         * modules/frexp-tests: New file.
58753         * tests/test-frexp.c: New file.
58754
58755         * modules/frexp: New file.
58756         * lib/frexp.c: New file.
58757         * m4/frexp.m4: New file.
58758         * lib/math_.h (frexp): New declaration.
58759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58760         REPLACE_FREXP.
58761         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58762
58763 2007-03-21  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/isnanl-tests: New file.
58766         * tests/test-isnanl.c: New file.
58767
58768         * modules/isnanl: New file.
58769         * lib/isnanl.h: New file.
58770         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58771         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58772         gl_FUNC_ISNANL_WORKS.
58773         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58774         New macros.
58775
58776 2007-03-21  Bruno Haible  <bruno@clisp.org>
58777
58778         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58779         lib/isnanl.h.
58780         (Include): Update.
58781         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58782         * lib/vasnprintf.c: Update.
58783         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58784         tests/test-isnanl.h, remove tests/test-isnanl.c.
58785         (Makefile.am): Update.
58786         * tests/test-isnanl-nolibm.c: New file.
58787         * tests/test-isnanl.h: New file.
58788         * tests/test-isnanl.c: Remove file.
58789
58790 2007-03-21  Jim Meyering  <jim@meyering.net>
58791
58792         When trying to open ".", treat ESTALE like EACCES.
58793         * lib/savewd.c (savewd_save): Resort to forking not just upon
58794         failure with EACCES, but also when errno is ESTALE.
58795
58796 2007-03-20  Bruno Haible  <bruno@clisp.org>
58797
58798         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58799         Needed on AIX 5.1. Reported by Matthew Woehlke.
58800
58801 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         Suggestions by Bruno Haible:
58804         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58805         our own.
58806         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58807         * modules/acl (Depends-on): Add gettext.
58808
58809 2007-03-19  Bruno Haible  <bruno@clisp.org>
58810
58811         * modules/iconvme: Remove file.
58812         * lib/iconvme.h: Remove file.
58813         * lib/iconvme.c: Remove file.
58814         * m4/iconvme.m4: Remove file.
58815
58816 2007-03-19  Bruno Haible  <bruno@clisp.org>
58817
58818         * doc/relocatable-maint.texi: Break long shell script line.
58819         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58820
58821 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58822
58823         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58824         handle file_has_acl.
58825         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58826         * lib/acl.c: Move header inclusions and related macro defns into
58827         lib/acl-internal.h.
58828         (S_ISLNK): Remove defn, since that's now done for us.
58829         (file_has_acl): Move to lib/file-has-acl.c.
58830         Call acl_trivial if available.  This is the crucial part of the fix.
58831         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58832         shared within the library.  Rewrite a bit, partly to make it compatible
58833         with the GNU coding style.
58834         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58835         Remove unnecessary double-quotes.
58836         Don't test for acl_to_text; the build will catch that.
58837         Replace acl_entries if it doesn't exist and it is needed.
58838         Check for -lsec and acl_trivial (as used on Solaris 10).
58839         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58840         lib/file-has-acl.c.
58841         (Depends-on): Add sys_stat, for S_ISLNK.
58842
58843 2007-03-19  Ben Pfaff  <blp@gnu.org>
58844
58845         * doc/gnulib.texi: Fix typos.
58846         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58847
58848 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58849
58850         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58851         If size is zero here, buf must be zero.
58852
58853 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58854
58855         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58856         <bruno@clisp.org>.
58857
58858 2007-03-18  Bruno Haible  <bruno@clisp.org>
58859
58860         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58861         Suggested by Eric Blake.
58862
58863 2007-03-18  Ben Pfaff  <blp@gnu.org>
58864
58865         * doc/relocatable.texi: Recommend using as prefix a directory
58866         that does not exist and will never be created.  Based on
58867         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58868         and others.
58869
58870 2007-03-17  Bruno Haible  <bruno@clisp.org>
58871
58872         * lib/fchownat.c: Include lchown.h.
58873
58874 2007-03-17  Bruno Haible  <bruno@clisp.org>
58875
58876         Fix endless loop when the given allocated size was > INT_MAX.
58877         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58878         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58879         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58880         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58881         * lib/sprintf.c (sprintf): Likewise.
58882
58883 2007-03-17  Bruno Haible  <bruno@clisp.org>
58884
58885         * tests/test-argp-2.sh (func_compare): Output a context diff.
58886
58887 2007-03-17  Bruno Haible  <bruno@clisp.org>
58888
58889         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58890         locale's decimal-point character.
58891
58892 2007-03-17  Bruno Haible  <bruno@clisp.org>
58893
58894         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58895         before comparing it. Needed because on some platforms (e.g. x86) a
58896         'long double' occupies less bytes than sizeof (long double).
58897
58898 2007-03-17  Bruno Haible  <bruno@clisp.org>
58899
58900         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58901         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58902         * tests/test-getaddrinfo.c (simple): Likewise.
58903         * tests/test-read-file.c (main): Likewise.
58904
58905 2007-03-17  Bruno Haible  <bruno@clisp.org>
58906
58907         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58908
58909 2007-03-17  Bruno Haible  <bruno@clisp.org>
58910
58911         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58912         unused variable.
58913
58914 2007-03-17  Bruno Haible  <bruno@clisp.org>
58915
58916         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58917         * tests/test-c-strncasecmp.c: Likewise.
58918
58919 2007-03-17  Bruno Haible  <bruno@clisp.org>
58920
58921         * modules/stdlib (Depends-on): Add unistd.
58922         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58923         Needed for MacOS X 10.3.
58924
58925 2007-03-17  Bruno Haible  <bruno@clisp.org>
58926
58927         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58928
58929 2007-03-17  Bruno Haible  <bruno@clisp.org>
58930
58931         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58932
58933 2007-03-17  Bruno Haible  <bruno@clisp.org>
58934
58935         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58936         to reflect files copied from gnulib (with or without modifications).
58937         Suggested by Jim Meyering.
58938
58939 2007-03-17  Eric Blake  <ebb9@byu.net>
58940
58941         * NEWS: Document stdlib change from 2007-02-18.
58942
58943 2007-03-17  Jim Meyering  <jim@meyering.net>
58944
58945         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58946         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58947         someone uses a name containing shell meta-characters.
58948         Reported by Alfred M. Szmidt.
58949
58950         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58951
58952 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58953
58954         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58955         and copy gettext configuration files only if configure.ac contains
58956         a use of AM_GNU_GETTEXT_VERSION.
58957
58958 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58959
58960         * build-aux/bootstrap (gnulib_name): New variable.
58961         (gnulib_tool_options): Use it.
58962
58963 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58964
58965         * tests/test-des.c: Use new namespace.
58966
58967 2007-03-15  Bruno Haible  <bruno@clisp.org>
58968
58969         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58970         Reported by James Youngman <jay@gnu.org>.
58971
58972 2007-03-15  Bruno Haible  <bruno@clisp.org>
58973
58974         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58975         declared prototype. Needed with cc on OSF/1 5.1.
58976
58977 2007-03-15  Bruno Haible  <bruno@clisp.org>
58978
58979         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58980         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58981         (struct gl_list_implementation): Add dispose_fn argument to the
58982         'create_empty', 'create' methods.
58983         (struct gl_list_impl_base): Add field 'dispose_fn'.
58984         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58985         argument.
58986         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58987         dispose_fn argument.
58988         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58989         dispose_fn on the dropped values.
58990         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58991         dispose_fn argument.
58992         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58993         dropped values.
58994         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58995         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58996         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58997         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58998         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58999         argument.
59000         (gl_tree_list_free): Call dispose_fn on the dropped values.
59001         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59002         the dropped values.
59003         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59004         Add dispose_fn argument.
59005         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59006         Call dispose_fn on the dropped values.
59007         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59008         Add dispose_fn argument.
59009         (gl_sublist_create): Initialize the 'dispose_fn' field.
59010         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59011         * tests/test-array_list.c (main): Update.
59012         * tests/test-carray_list.c (main): Update.
59013         * tests/test-avltree_list.c (main): Update.
59014         * tests/test-rbtree_list.c (main): Update.
59015         * tests/test-avltreehash_list.c (main): Update.
59016         * tests/test-rbtreehash_list.c (main): Update.
59017         * tests/test-linked_list.c (main): Update.
59018         * tests/test-linkedhash_list.c (main): Update.
59019         * tests/test-array_oset.c (main): Update.
59020
59021 2007-03-15  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59024         (gl_oset_create_empty): Add dispose_fn argument.
59025         (struct gl_oset_implementation): Add dispose_fn argument to
59026         'create_empty' method.
59027         (struct gl_oset_impl_base): Add dispose_fn field.
59028         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59029         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59030         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59031         values.
59032         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59033         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59034         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59035         dropped value.
59036         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59037         dropped value.
59038         * tests/test-array_oset.c (main): Update.
59039         * tests/test-avltree_oset.c (main): Update.
59040         * tests/test-rbtree_oset.c (main): Update.
59041         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59042
59043 2007-03-13  Bruno Haible  <bruno@clisp.org>
59044
59045         * tests/test-stdbool.c (i): Update after last patch.
59046
59047 2007-03-12  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59050         the iswprint macro. Needed on Solaris 2.5.1.
59051
59052 2007-03-12  Bruno Haible  <bruno@clisp.org>
59053
59054         * tests/test-printf-frexp.c (main): Declare x as volatile.
59055
59056 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59057
59058         * doc/gnulib.texi (Build robot for gnulib): New section.
59059
59060 2007-03-12  Jim Meyering  <jim@meyering.net>
59061
59062         * build-aux/bootstrap: New file.
59063         * build-aux/bootstrap.conf: New file, from coreutils.
59064
59065 2007-03-11  Bruno Haible  <bruno@clisp.org>
59066
59067         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59068
59069 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59070
59071         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59072         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59073         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59074
59075 2007-03-11  Bruno Haible  <bruno@clisp.org>
59076
59077         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59078         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59079
59080 2007-03-11  Bruno Haible  <bruno@clisp.org>
59081
59082         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59083         formula. Needed for SunPRO C 5.0.
59084
59085 2007-03-11  Bruno Haible  <bruno@clisp.org>
59086
59087         * modules/long-options (Depends-on): Add getopt.
59088
59089 2007-03-11  Bruno Haible  <bruno@clisp.org>
59090
59091         * modules/modechange (Depends-on): Add stdbool.
59092
59093 2007-03-11  Bruno Haible  <bruno@clisp.org>
59094
59095         * modules/i-ring (Depends-on): Add stdbool.
59096
59097 2007-03-11  Bruno Haible  <bruno@clisp.org>
59098
59099         * modules/gc-des (Depends-on): Add stdbool.
59100
59101 2007-03-11  Bruno Haible  <bruno@clisp.org>
59102
59103         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59104
59105 2007-03-11  Bruno Haible  <bruno@clisp.org>
59106
59107         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59108
59109 2007-03-11  Bruno Haible  <bruno@clisp.org>
59110
59111         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59112
59113 2007-03-11  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/vasnprintf.c (sprintf): Undefine.
59116
59117 2007-03-11  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59120         initializers in SunPRO C and Compaq C compilers.
59121
59122 2007-03-11  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59125         decrementing code ANSI C compliant.
59126
59127 2007-03-11  Bruno Haible  <bruno@clisp.org>
59128
59129         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59130         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59131
59132 2007-03-11  Bruno Haible  <bruno@clisp.org>
59133
59134         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59135         <stdbool.h> substitute doesn't pass.
59136
59137 2007-03-11  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59140
59141 2007-03-11  Bruno Haible  <bruno@clisp.org>
59142
59143         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59144         script, for submission to autobuild.josefsson.org.
59145
59146 2007-03-10  Bruno Haible  <bruno@clisp.org>
59147
59148         * modules/canonicalize-lgpl-tests: New file.
59149         * tests/test-canonicalize-lgpl.sh: New file.
59150         * tests/test-canonicalize-lgpl.c: New file.
59151
59152         * modules/c-strcase-tests: New file.
59153         * tests/test-c-strcase.sh: New file.
59154         * tests/test-c-strcasecmp.c: New file.
59155         * tests/test-c-strncasecmp.c: New file.
59156
59157         * modules/atexit-tests: New file.
59158         * tests/test-atexit.sh: New file.
59159         * tests/test-atexit.c: New file.
59160
59161 2007-03-10  Bruno Haible  <bruno@clisp.org>
59162
59163         * tests/test-binary-io.sh: Use temporary filenames that are not so
59164         likely to clash with those of other tests (in a parallel make).
59165         * tests/test-binary-io.c: Likewise.
59166
59167 2007-03-10  Bruno Haible  <bruno@clisp.org>
59168
59169         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59170         fallback; use #error instead.
59171         Suggested by Simon Josefsson.
59172
59173 2007-03-10  Bruno Haible  <bruno@clisp.org>
59174
59175         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59176         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59177         first and the last.
59178
59179 2007-03-10  Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59182
59183 2007-03-10  Bruno Haible  <bruno@clisp.org>
59184
59185         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59186         "make distcheck".
59187         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59188         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59189         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59190
59191 2007-03-10  Bruno Haible  <bruno@clisp.org>
59192
59193         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59194         variable.
59195         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59196         variable.
59197
59198 2007-03-09  Eric Blake  <ebb9@byu.net>
59199         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59200
59201         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59202         types are not being provided by gnulib.
59203         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59204         types are supported.
59205
59206 2007-03-10  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/stdio_.h (__attribute__): New macro.
59209         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59210         vsprintf): Specify __attribute__ __format__ for GCC.
59211         Suggested by Eric Blake.
59212
59213 2007-03-09  Bruno Haible  <bruno@clisp.org>
59214
59215         * modules/printf-posix-tests: New file.
59216         * tests/test-printf-posix.sh: New file.
59217         * tests/test-printf-posix.c: New file.
59218
59219         * modules/printf-posix: New file.
59220         * lib/printf.c: New file.
59221         * m4/printf-posix-rpl.m4: New file.
59222         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59223         REPLACE_PRINTF.
59224         * lib/stdio_.h (printf): New declaration.
59225         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59226         ____strfmon____): New macros.
59227         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59228         REPLACE_PRINTF.
59229
59230 2007-03-09  Bruno Haible  <bruno@clisp.org>
59231
59232         * tests/test-vasnprintf-posix2.sh: New file.
59233         * tests/test-vasnprintf-posix2.c: New file.
59234         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59235         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59236         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59237
59238         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59239         a locale dependent decimal point, rather than always '.'.
59240
59241 2007-03-09  Eric Blake  <ebb9@byu.net>
59242
59243         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59244         spite of platforms like Tandem/NSK that define it to -1.
59245
59246 2007-03-08  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/vprintf-posix-tests: New file.
59249         * tests/test-vprintf-posix.sh: New file.
59250         * tests/test-vprintf-posix.c: New file.
59251         * tests/test-printf-posix.h: New file.
59252
59253         * modules/vprintf-posix: New file.
59254         * lib/vprintf.c: New file.
59255         * m4/vprintf-posix.m4: New file.
59256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59257         REPLACE_VPRINTF.
59258         * lib/stdio_.h (vprintf): New declaration.
59259         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59260         REPLACE_VPRINTF.
59261
59262 2007-03-08  Bruno Haible  <bruno@clisp.org>
59263
59264         * modules/fprintf-posix-tests: New file.
59265         * tests/test-fprintf-posix.sh: New file.
59266         * tests/test-fprintf-posix.c: New file.
59267
59268         * modules/fprintf-posix: New file.
59269         * lib/fprintf.c: New file.
59270         * m4/fprintf-posix.m4: New file.
59271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59272         REPLACE_FPRINTF.
59273         * lib/stdio_.h (fprintf): New declaration.
59274         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59275         REPLACE_FPRINTF.
59276
59277 2007-03-08  Bruno Haible  <bruno@clisp.org>
59278
59279         * modules/vfprintf-posix-tests: New file.
59280         * tests/test-vfprintf-posix.sh: New file.
59281         * tests/test-vfprintf-posix.c: New file.
59282         * tests/test-fprintf-posix.h: New file.
59283         * tests/test-fprintf-posix.out: New file.
59284
59285         * modules/vfprintf-posix: New file.
59286         * lib/vfprintf.c: New file.
59287         * m4/vfprintf-posix.m4: New file.
59288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59289         REPLACE_VFPRINTF.
59290         * lib/stdio_.h (vfprintf): New declaration.
59291         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59292         REPLACE_VFPRINTF.
59293
59294 2007-03-08  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59297
59298 2007-03-08  Bruno Haible  <bruno@clisp.org>
59299
59300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59301         instead of 'expr' invocations.
59302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59307         Suggested by Paul Eggert.
59308
59309 2007-03-08  Bruno Haible  <bruno@clisp.org>
59310
59311         * modules/fseterr-tests: New file.
59312         * tests/test-fseterr.c: New file.
59313
59314         * modules/fseterr: New file.
59315         * lib/fseterr.h: New file.
59316         * lib/fseterr.c: New file.
59317
59318 2007-03-08  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59321         * lib/getopt_.h: Likewise.
59322         * lib/mbswidth.h: Likewise.
59323         * lib/setenv.h: Likewise.
59324         * lib/vasnprintf.h: Likewise.
59325         * lib/vasprintf.h: Likewise.
59326         * lib/verror.h: Likewise.
59327         * lib/xsetenv.h: Likewise.
59328         * lib/xvasprintf.h: Likewise.
59329
59330 2007-03-08  Jim Meyering  <jim@meyering.net>
59331
59332         * users.txt: Add parted.
59333
59334         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59335
59336 2007-03-07  Bruno Haible  <bruno@clisp.org>
59337
59338         * m4/printf.m4: Make the shell script snippets copy&pastable.
59339
59340 2007-03-02  Bruno Haible  <bruno@clisp.org>
59341
59342         * lib/netinet_in_.h: New file.
59343         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59344         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59345         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59346         (Depends-on): Add absolute-header.
59347         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59348         into netinet/in.h.
59349
59350 2007-03-03  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/sys_select_.h: New file.
59353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59354         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59355         * modules/sys_select (Files): Add lib/sys_select_.h.
59356         (Depends-on): Add absolute-header.
59357         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59358         into sys/select.h.
59359
59360 2007-03-02  Bruno Haible  <bruno@clisp.org>
59361
59362         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59363         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59364         values.
59365         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59366         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59367         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59368         * modules/sys_socket (Depends-on): Add absolute-header.
59369         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59370         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59371         (Include): Remove requirement of inclusion of <sys/types.h>.
59372
59373 2007-03-02  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/byteswap_.h (bswap_32): Fix formula.
59376
59377 2007-03-06  Bruno Haible  <bruno@clisp.org>
59378
59379         * modules/sprintf-posix-tests: New file.
59380         * tests/test-sprintf-posix.c: New file.
59381
59382         * modules/sprintf-posix: New file.
59383         * lib/sprintf.c: New file.
59384         * m4/sprintf-posix.m4: New file.
59385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59386         REPLACE_SPRINTF.
59387         * lib/stdio_.h (sprintf): New declaration.
59388         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59389         REPLACE_SPRINTF.
59390
59391 2007-03-06  Bruno Haible  <bruno@clisp.org>
59392
59393         * modules/vsprintf-posix-tests: New file.
59394         * tests/test-vsprintf-posix.c: New file.
59395         * tests/test-sprintf-posix.h: New file.
59396
59397         * modules/vsprintf-posix: New file.
59398         * lib/vsprintf.c: New file.
59399         * m4/vsprintf-posix.m4: New file.
59400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59401         REPLACE_VSPRINTF.
59402         * lib/stdio_.h (vsprintf): New declaration.
59403         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59404         REPLACE_VSPRINTF.
59405
59406 2007-03-06  Bruno Haible  <bruno@clisp.org>
59407
59408         * modules/vsnprintf (Depend-on): Remove minmax.
59409
59410 2007-03-06  Bruno Haible  <bruno@clisp.org>
59411
59412         * modules/snprintf-posix-tests: New file.
59413         * tests/test-snprintf-posix.c: New file.
59414
59415         * modules/snprintf-posix: New file.
59416         * m4/snprintf-posix.m4: New file.
59417         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59418         gl_FUNC_SNPRINTF.
59419         (gl_FUNC_SNPRINTF): Invoke it.
59420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59421         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59422         is set.
59423         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59424
59425 2007-03-06  Bruno Haible  <bruno@clisp.org>
59426
59427         * modules/vsnprintf-posix-tests: New file.
59428         * tests/test-vsnprintf-posix.c: New file.
59429         * tests/test-snprintf-posix.h: New file.
59430
59431         * modules/vsnprintf-posix: New file.
59432         * m4/vsnprintf-posix.m4: New file.
59433         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59434         gl_FUNC_VSNPRINTF.
59435         (gl_FUNC_VSNPRINTF): Invoke it.
59436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59437         * lib/stdio_.h (vsnprintf): Define as a replacement if
59438         REPLACE_VSNPRINTF is set.
59439         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59440
59441 2007-03-06  Bruno Haible  <bruno@clisp.org>
59442
59443         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59445
59446 2007-03-06  Bruno Haible  <bruno@clisp.org>
59447
59448         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59449         (asinl): Declare also if HAVE_DECL_ASINL is set.
59450         (atanl): Declare also if HAVE_DECL_ATANL is set.
59451         (ceill): Declare also if HAVE_DECL_CEILL is set.
59452         (cosl): Declare also if HAVE_DECL_COSL is set.
59453         (expl): Declare also if HAVE_DECL_EXPL is set.
59454         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59455         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59456         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59457         (logl): Declare also if HAVE_DECL_LOGL is set.
59458         (sinl): Declare also if HAVE_DECL_SINL is set.
59459         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59460         (tanl): Declare also if HAVE_DECL_TANL is set.
59461         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59463         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59464         declaration of frexpl, ldexpl.
59465         * modules/printf-frexpl (Depends-on): Add math.
59466         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59467
59468 2007-03-05  Bruno Haible  <bruno@clisp.org>
59469
59470         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59471         frexpl and ldexpl are declared.
59472         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59473
59474 2007-03-05  Bruno Haible  <bruno@clisp.org>
59475
59476         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59477         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59478
59479 2007-03-05  Bruno Haible  <bruno@clisp.org>
59480
59481         * lib/stdio_.h: Include <stddef.h>.
59482
59483 2007-03-05  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59486
59487 2007-03-05  Bruno Haible  <bruno@clisp.org>
59488
59489         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59490         NetBSD 4, from Ralf Wildenhues.
59491
59492 2007-03-04  Bruno Haible  <bruno@clisp.org>
59493
59494         * lib/vasprintf.h: Update #if logic for the case when the functions
59495         exist but are overridden.
59496
59497 2007-03-04  Bruno Haible  <bruno@clisp.org>
59498
59499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59500         implementations: glibc-2.4 and MacOS X 10.3.
59501         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59502         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59503         * tests/test-vasprintf-posix.c (test_function): Likewise.
59504
59505 2007-03-04  Bruno Haible  <bruno@clisp.org>
59506
59507         * modules/vasprintf-posix-tests: New file.
59508         * tests/test-vasprintf-posix.c: New file.
59509
59510         * modules/vasprintf-posix: New file.
59511         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59512         defined.
59513         * m4/vasprintf-posix.m4: New file.
59514         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59515         gl_FUNC_VASPRINTF.
59516         (gl_FUNC_VASPRINTF): Invoke it.
59517         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59518         here.
59519         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59520
59521 2007-03-04  Bruno Haible  <bruno@clisp.org>
59522
59523         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59524         REPLACE_GETTIMEOFDAY.
59525         * modules/sys_time (Makefile.am): Likewise.
59526         * m4/sys_time_h.m4: Likewise.
59527         * m4/gettimeofday.m4: Likewise.
59528
59529 2007-03-04  Bruno Haible  <bruno@clisp.org>
59530
59531         * modules/vasnprintf-posix-tests: New file.
59532         * tests/test-vasnprintf-posix.c: New file.
59533
59534         * modules/vasnprintf-posix: New file.
59535         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59536         printf-frexpl.h.
59537         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59538         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59539         REPLACE_VASNPRINTF is defined.
59540         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59541         gl_FUNC_VASNPRINTF.
59542         (gl_FUNC_VASNPRINTF): Invoke it.
59543         * m4/vasnprintf-posix.m4: New file.
59544         * m4/printf.m4: New file.
59545
59546 2007-03-04  Bruno Haible  <bruno@clisp.org>
59547
59548         Compile progreloc.c only if --enable-relocatable is specified.
59549         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59550         if --enable-relocatable was specified.
59551         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59552         lib_SOURCES.
59553
59554 2007-03-04  Jim Meyering  <jim@meyering.net>
59555
59556         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59557         Use it consistently, rather than enumerating errno constants.
59558
59559 2007-03-04  Bruno Haible  <bruno@clisp.org>
59560
59561         * modules/xvasprintf-tests: New file.
59562         * tests/test-xvasprintf.c: New file.
59563
59564         * modules/vasprintf-tests: New file.
59565         * tests/test-vasprintf.c: New file.
59566
59567         * modules/vasnprintf-tests: New file.
59568         * tests/test-vasnprintf.c: New file.
59569
59570         * modules/vsnprintf-tests: New file.
59571         * tests/test-vsnprintf.c: New file.
59572
59573         * modules/snprintf-tests: New file.
59574         * tests/test-snprintf.c: New file.
59575
59576 2007-03-04  Bruno Haible  <bruno@clisp.org>
59577
59578         Compile relocatable.c only if --enable-relocatable is specified.
59579         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59580         gl_RELOCATABLE_LIBRARY.
59581         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59582         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59583         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59584         gl_RELOCATABLE_LIBRARY.
59585         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59586         (Makefile.am): Remove lib_SOURCES.
59587         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59588         gl_RELOCATABLE_LIBRARY.
59589         (Makefile.am): Remove lib_SOURCES.
59590         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59591         always.
59592         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59593         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59594
59595 2007-03-04  Bruno Haible  <bruno@clisp.org>
59596
59597         * modules/argmatch-tests: New file.
59598         * tests/test-argmatch.c: New file.
59599
59600         * tests/test-allocsa.c (main): Halve the number of loop runs.
59601
59602         * modules/alloca-opt-tests: New file.
59603         * tests/test-alloca-opt.c: New file.
59604
59605 2007-03-04  Jim Meyering  <jim@meyering.net>
59606
59607         Work around difference between Linux ACLs and Solaris 10 ZFS.
59608         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59609         for EINVAL.
59610
59611 2007-03-03  Bruno Haible  <bruno@clisp.org>
59612
59613         * modules/relocatable-prog (Depends-on): Add back progreloc's
59614         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59615
59616 2007-03-03  Bruno Haible  <bruno@clisp.org>
59617
59618         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59619         * modules/relocatable-lib: New file.
59620
59621 2007-03-03  Bruno Haible  <bruno@clisp.org>
59622
59623         * modules/relocatable-prog: Renamed from modules/relocatable.
59624         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59625
59626 2007-03-03  Bruno Haible  <bruno@clisp.org>
59627
59628         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59629         m4/relocatable-lib.m4.
59630         (Depends-on): Remove 'relocatable'.
59631         (configure.ac): Add gl_RELOCATABLE_NOP.
59632
59633 2007-03-03  Bruno Haible  <bruno@clisp.org>
59634
59635         * modules/relocatable-prog-wrapper: New file.
59636         * modules/relocatable (Depends-on): Add it. Remove all other
59637         dependencies except progname.
59638         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59639
59640         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59641         (gl_FUNC_STRERROR): Nop.
59642         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59643
59644         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59645         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59646
59647         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59648         (gl_FUNC_READLINK): Update.
59649
59650         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59651
59652 2007-03-03  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59655         * modules/xreadlink (Depends-on): Add unistd.
59656         * modules/xreadlink-with-size (Depends-on): Likewise.
59657
59658 2007-03-03  Bruno Haible  <bruno@clisp.org>
59659
59660         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59661         extracted from gt_FUNC_SETENV.
59662         (gt_FUNC_SETENV): Remove macro.
59663         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59664         remove gt_FUNC_SETENV.
59665
59666 2007-03-03  Bruno Haible  <bruno@clisp.org>
59667
59668         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59669         ENABLE_RELOCATABLE here.
59670         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59671
59672 2007-03-03  Bruno Haible  <bruno@clisp.org>
59673
59674         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59675         * tests/test-rbtreehash_list.c: Include progname.h.
59676         (main): Call set_program_name.
59677
59678         * modules/rbtree-oset-tests (Depends-on): Add progname.
59679         * tests/test-rbtree_oset.c: Include progname.h.
59680         (main): Call set_program_name.
59681
59682         * modules/rbtree-list-tests (Depends-on): Add progname.
59683         * tests/test-rbtree_list.c: Include progname.h.
59684         (main): Call set_program_name.
59685
59686         * modules/linked-list-tests (Depends-on): Add progname.
59687         * tests/test-linked_list.c: Include progname.h.
59688         (main): Call set_program_name.
59689
59690 2007-03-03  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59693         All uses of __restrict changed to _Restrict_.
59694         * lib/glob_.h (__restrict): Remove macro.
59695
59696 2007-03-02  Bruno Haible  <bruno@clisp.org>
59697
59698         * modules/gettext (configure.ac): Require gettext infrastructure
59699         from version 0.16.1.
59700
59701 2007-03-02  Bruno Haible  <bruno@clisp.org>
59702
59703         * modules/linkedhash-list-tests (Depends-on): Add progname.
59704         * tests/test-linkedhash_list.c: Include progname.h.
59705         (main): Call set_program_name.
59706
59707         * modules/carray-list-tests (Depends-on): Add progname.
59708         * tests/test-carray_list.c: Include progname.h.
59709         (main): Call set_program_name.
59710
59711         * modules/avltreehash-list-tests (Depends-on): Add progname.
59712         * tests/test-avltreehash_list.c: Include progname.h.
59713         (main): Call set_program_name.
59714
59715         * modules/avltree-oset-tests (Depends-on): Add progname.
59716         * tests/test-avltree_oset.c: Include progname.h.
59717         (main): Call set_program_name.
59718
59719         * modules/avltree-list-tests (Depends-on): Add progname.
59720         * tests/test-avltree_list.c: Include progname.h.
59721         (main): Call set_program_name.
59722
59723         * modules/array-oset-tests (Depends-on): Add progname.
59724         * tests/test-array_oset.c: Include progname.h.
59725         (main): Call set_program_name.
59726
59727         * modules/array-list-tests (Depends-on): Add progname.
59728         * tests/test-array_list.c: Include progname.h.
59729         (main): Call set_program_name.
59730
59731         * modules/argp-tests (Depends-on): Add progname.
59732         * tests/test-argp.c: Include argp.h first. Include progname.h.
59733         (main): Call set_program_name.
59734
59735 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59736
59737         * doc/gnulib-tool.texi (Initial import): Reword description of
59738         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59739         limited effect even if defined after the first system include.
59740
59741 2007-03-01  Bruno Haible  <bruno@clisp.org>
59742
59743         * build-aux/config.libpath: Update to libtool-1.5.22.
59744         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59745
59746 2007-03-01  Bruno Haible  <bruno@clisp.org>
59747
59748         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59749         foo_CFLAGS.
59750         Reported by Ralf Wildenhues.
59751
59752 2007-03-01  Bruno Haible  <bruno@clisp.org>
59753
59754         * build-aux/install-reloc: Remove object files left over by some
59755         compilers.
59756         Reported by Ralf Wildenhues.
59757
59758 2007-03-01  Bruno Haible  <bruno@clisp.org>
59759
59760         * build-aux/install-reloc: Break long lines.
59761
59762 2007-03-01  Bruno Haible  <bruno@clisp.org>
59763
59764         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59765         Reported by Ralf Wildenhues.
59766
59767 2007-03-01  Bruno Haible  <bruno@clisp.org>
59768
59769         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59770         include ordering constraints.
59771
59772 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59773
59774         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59776         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59777         as another example.
59778         * lib/time_.h: Fix misspelling.
59779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59780         Require gl_HEADER_TIME_H_DEFAULTS.
59781         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59782         * m4/time_r.m4 (gl_TIME_R): Likewise.
59783         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59784
59785 2007-03-01  Bruno Haible  <bruno@clisp.org>
59786
59787         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59788         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59789
59790 2007-03-01  Jim Meyering  <jim@meyering.net>
59791
59792         * modules/xreadlink (Maintainer): Add my name.
59793         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59794
59795 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59796             Bruno Haible  <bruno@clisp.org>
59797
59798         * build-aux/install-reloc: Compile also c-ctype.c.
59799         * build-aux/relocatable.sh.in: New file.
59800         * doc/relocatable.texi: New file.
59801         * doc/relocatable-maint.texi: New file.
59802         * doc/gnulib.texi: Include relocatable-maint.texi.
59803         * lib/progreloc.c: Include unistd.h unconditionally.
59804         * lib/relocwrapper.c: Include unistd.h unconditionally.
59805         Include c-ctype.h.
59806         (add_dotbin): Use c_tolower.
59807         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59808         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59809         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59810         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59811         to m4/relocatable-lib.m4.
59812         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59813         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59814         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59815         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59816         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59817         * modules/relocatable: New file.
59818         * modules/relocatable-lib: New file.
59819         * modules/relocatable-script: New file.
59820
59821 2007-02-28  Bruno Haible  <bruno@clisp.org>
59822
59823         Import --enable-relocatable infrastructure.
59824         * build-aux/config.libpath: New file, from GNU gettext.
59825         * build-aux/install-reloc: New file, from GNU gettext.
59826         * build-aux/reloc-ldflags: New file, from GNU gettext.
59827         * lib/relocatable.h: New file, from GNU gettext.
59828         * lib/relocatable.c: New file, from GNU gettext.
59829         * lib/relocwrapper.c: New file, from GNU gettext.
59830         * m4/relocatable.m4: New file, from GNU gettext.
59831
59832 2007-02-28  Bruno Haible  <bruno@clisp.org>
59833
59834         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59835
59836         * modules/xreadlink: New file, from GNU gettext with modifications.
59837         * lib/xreadlink.c: New file, from GNU gettext.
59838         * lib/xreadlink.h: Add comments.
59839         (xreadlink): New declaration.
59840
59841         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59842         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59843         lib/xreadlink-with-size.c.
59844         (configure.ac): Remove gl_XREADLINK invocation.
59845         (Makefile.am): Augment lib_SOURCES.
59846         * m4/xreadlink.m4: Remove file.
59847         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59848         (xreadlink_with_size): Renamed from xreadink.
59849         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59850         * modules/canonicalize (Depends-on): Replace xreadlink with
59851         xreadlink-with-size.
59852         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59853
59854 2007-02-25  Jim Meyering  <jim@meyering.net>
59855
59856         * build-aux/announce-gen: When complaining about excess arguments,
59857         list them.
59858
59859 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59860
59861         * README: Document signed integer overflow situation more
59862         accurately.
59863
59864 2007-02-25  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59867         'a' or 'A' conversion.
59868
59869 2007-02-25  Bruno Haible  <bruno@clisp.org>
59870
59871         * modules/filename: Renamed from modules/pathname.
59872         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59873         lib/concatpath.c with lib/concat-filename.c.
59874         (Makefile.am): Update.
59875         (Include): Replace pathname.h with filename.h.
59876         * lib/filename.h: Renamed from lib/pathname.h.
59877         (concatenated_filename): Renamed from concatenated_pathname.
59878         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59879         (concatenated_filename): Renamed from concatenated_pathname.
59880         * lib/findprog.c: Include filename.h instead of pathname.h.
59881         (find_in_path): Update.
59882         * lib/javacomp.c: Include filename.h instead of pathname.h.
59883         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59884         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59885         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59886         is_oldgcj_14_13_usable, is_javac_usable): Update.
59887         * lib/javaexec.c: Include filename.h instead of pathname.h.
59888         (execute_java_class): Update.
59889         * modules/findprog: Update.
59890         * modules/javacomp: Update.
59891         * modules/javaexec: Update.
59892         * MODULES.html.sh (File system functions): Add 'filename', remove
59893         'pathname'.
59894
59895 2007-02-25  Bruno Haible  <bruno@clisp.org>
59896
59897         * modules/printf-frexpl-tests: New file.
59898         * tests/test-printf-frexpl.c: New file.
59899
59900         * modules/printf-frexpl: New file.
59901         * lib/printf-frexpl.h: New file.
59902         * lib/printf-frexpl.c: New file.
59903         * m4/printf-frexpl.m4: New file.
59904
59905 2007-02-25  Bruno Haible  <bruno@clisp.org>
59906
59907         * modules/printf-frexp-tests: New file.
59908         * tests/test-printf-frexp.c: New file.
59909
59910         * modules/printf-frexp: New file.
59911         * lib/printf-frexp.h: New file.
59912         * lib/printf-frexp.c: New file.
59913         * m4/printf-frexp.m4: New file.
59914
59915 2007-02-25  Bruno Haible  <bruno@clisp.org>
59916
59917         Assume automake >= 1.10 for the tests.
59918         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59919         * modules/arctwo-tests: Likewise.
59920         * modules/argp-tests: Likewise.
59921         * modules/avltree-list-tests: Likewise.
59922         * modules/avltree-oset-tests: Likewise.
59923         * modules/avltreehash-list-tests: Likewise.
59924         * modules/carray-list-tests: Likewise.
59925         * modules/crc-tests: Likewise.
59926         * modules/des-tests: Likewise.
59927         * modules/gc-arcfour-tests: Likewise.
59928         * modules/gc-arctwo-tests: Likewise.
59929         * modules/gc-des-tests: Likewise.
59930         * modules/gc-hmac-md5-tests: Likewise.
59931         * modules/gc-hmac-sha1-tests: Likewise.
59932         * modules/gc-md2-tests: Likewise.
59933         * modules/gc-md4-tests: Likewise.
59934         * modules/gc-md5-tests: Likewise.
59935         * modules/gc-pbkdf2-sha1-tests: Likewise.
59936         * modules/gc-rijndael-tests: Likewise.
59937         * modules/gc-sha1-tests: Likewise.
59938         * modules/gc-tests: Likewise.
59939         * modules/getaddrinfo-tests: Likewise.
59940         * modules/hmac-md5-tests: Likewise.
59941         * modules/hmac-sha1-tests: Likewise.
59942         * modules/linked-list-tests: Likewise.
59943         * modules/linkedhash-list-tests: Likewise.
59944         * modules/lock-tests: Likewise.
59945         * modules/md2-tests: Likewise.
59946         * modules/md4-tests: Likewise.
59947         * modules/md5-tests: Likewise.
59948         * modules/rbtree-list-tests: Likewise.
59949         * modules/rbtree-oset-tests: Likewise.
59950         * modules/rbtreehash-list-tests: Likewise.
59951         * modules/read-file-tests: Likewise.
59952         * modules/rijndael-tests: Likewise.
59953         * modules/stdint-tests: Likewise.
59954         * modules/tls-tests: Likewise.
59955
59956 2007-02-24  Bruno Haible  <bruno@clisp.org>
59957
59958         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59959         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59960         function; instead check whether isnan with a double argument links.
59961         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59962         function; instead check whether isnan with a 'long double' argument
59963         links.
59964         Reported by Eric Blake <ebb9@byu.net>.
59965
59966 2007-02-24  Bruno Haible  <bruno@clisp.org>
59967
59968         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59969         defined.
59970         * lib/isnanl.c: Remove all code. Just include isnan.c.
59971         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59972
59973 2007-02-25  Jim Meyering  <jim@meyering.net>
59974
59975         Avoid conflicting types for 'unsetenv' on FreeBSD.
59976         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59977         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59978         in stdlib.h.
59979
59980 2007-02-24  Bruno Haible  <bruno@clisp.org>
59981
59982         * modules/isnanl-nolibm-tests: New file.
59983         * tests/test-isnanl.c: New file.
59984
59985         * modules/isnanl-nolibm: New file.
59986         * lib/isnanl.h: New file.
59987         * lib/isnanl.c: New file.
59988         * m4/isnanl.m4: New file.
59989
59990 2007-02-24  Bruno Haible  <bruno@clisp.org>
59991
59992         * modules/isnan-nolibm-tests: New file.
59993         * tests/test-isnan.c: New file.
59994
59995         * modules/isnan-nolibm: New file.
59996         * lib/isnan.h: New file.
59997         * lib/isnan.c: New file.
59998         * m4/isnan.m4: New file.
59999
60000 2007-02-24  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60003         assume that an exponent fits in 20 bits.
60004
60005 2007-02-24  Jim Meyering  <jim@meyering.net>
60006
60007         * m4/regex.m4: Update the description of the configure-time option,
60008         --without-included-regex, to state accurately what the defaults are,
60009         and perhaps to give people an idea why using this option is risky.
60010
60011 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60014         loops on small arguments.  This attempts to avoid the problem
60015         Bruno Haible reported for AIX 4.3.2 in
60016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60017
60018 2007-02-23  Bruno Haible  <bruno@clisp.org>
60019
60020         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60021         Needed for help2man.
60022
60023 2007-02-23  Karl Berry  <karl@gnu.org>
60024
60025         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60026         exists, foo.h should be cvs-ignored, not committed.
60027
60028 2007-02-23  Eric Blake  <ebb9@byu.net>
60029
60030         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60031         * lib/stat-time.h (includes): Likewise.
60032         * lib/utimecmp.c (includes): Likewise.
60033         * lib/utimens.h (includes): Likewise.
60034         * lib/getdate.y (includes): Also include "timespec.h" for use
60035         internal to the module.
60036         * modules/utimens (Depends-on): Revert yesterday's patch.
60037         * modules/nanosleep (Depends-on): Add missing dependency.
60038
60039 2007-02-22  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/glob.c: Don't include getlogin_r.h.
60042
60043 2007-02-22  Jim Meyering  <jim@meyering.net>
60044
60045         * modules/utimens (Depends-on): Add timespec, required for
60046         utimens.h's inclusion of timespec.h.
60047
60048 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60049
60050         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60051         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60052         Schwab in
60053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60054         I'll try to think of a better way to fix the Solaris problem.
60055
60056         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60057         like glibc; on Solaris 10, it fails with errno == EINVAL.
60058         POSIX says the behavior is unspecified if the first argument is NULL,
60059         so play it safe and never pass NULL to the system getcwd.
60060
60061 2007-02-21  Jim Meyering  <jim@meyering.net>
60062
60063         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60064         of gettimeofday.  It would conflict with the one now always
60065         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60066         an IRIX 6.5 build failure.
60067
60068 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60069
60070         Minor fixups to port to Solaris 10 with Sun C 5.8.
60071         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60072         * modules/getcwd (Depends-on): Add dirfd.
60073         * lib/putenv.c (putenv): #undef it.
60074         (rpl_putenv): New decl.
60075         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60076
60077 2007-02-20  Bruno Haible  <bruno@clisp.org>
60078
60079         * modules/stdio-tests: New file.
60080         * tests/test-stdio.c: New file.
60081
60082         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60083         (Depends-on): Add stdio.
60084         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60085         (Include): Use <stdio.h> instead of vsnprintf.h.
60086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60087         HAVE_DECL_VSNPRINTF.
60088         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60089
60090         * modules/snprintf (Files): Remove lib/snprintf.h.
60091         (Depends-on): Add stdio.
60092         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60093         (Include): Use <stdio.h> instead of snprintf.h.
60094         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60095         HAVE_DECL_SNPRINTF.
60096         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60097         * lib/getaddrinfo.c: Likewise.
60098
60099         * modules/stdio: New file.
60100         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60101         * lib/snprintf.h: Remove file.
60102         * lib/vsnprintf.h: Remove file.
60103         * lib/.cppi-disable: Remove snprintf.h.
60104         * m4/stdio_h.m4: New file.
60105         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60106
60107 2007-02-20  Jim Meyering  <jim@meyering.net>
60108
60109         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60110         used by e.g., mingw.  From Bruno Haible.
60111
60112 2007-02-19  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60115         warnings.
60116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60117
60118 2007-02-19  Bruno Haible  <bruno@clisp.org>
60119
60120         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60121         from mingw users.
60122
60123 2007-02-19  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60126         warnings.
60127         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60128
60129 2007-02-19  Jim Meyering  <jim@meyering.net>
60130
60131         Don't use FD after a successful "fdopendir (fd)".
60132         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60133         Reset it by calling dirfd on the just-obtained DIR*.
60134
60135         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60136         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60137
60138 2007-02-18  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/readlink.c: Include <unistd.h>.
60141         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60142         HAVE_READLINK.
60143         * modules/readlink (Depends-on): Add unistd.
60144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60145         (Include): Add <unistd.h>.
60146
60147         * lib/getlogin_r.h: Remove file.
60148         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60149         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60150         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60151         HAVE_DECL_GETLOGIN_R.
60152         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60153         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60154         (Include): Use <unistd.h> instead of getlogin_r.h.
60155
60156         * lib/getcwd.h: Remove file.
60157         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60158         * lib/xgetcwd.c: Likewise.
60159         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60160         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60161         * modules/getcwd (Files): Remove lib/getcwd.h.
60162         (Depends-on): Add unistd.
60163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60164         (Include): Use <unistd.h> instad of getcwd.h.
60165
60166         * lib/ftruncate.c: Include <unistd.h> first.
60167         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60168         Set HAVE_FTRUNCATE.
60169         * modules/ftruncate (Depends-on): Add unistd.
60170         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60171
60172         * lib/fchdir.c: Include <unistd.h> first.
60173         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60175         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60176         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60177         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60178
60179         * lib/dup2.c: Include <unistd.h> first.
60180         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60181         HAVE_DUP2.
60182         * modules/dup2 (Depends-on): Add unistd.
60183         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60184
60185         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60186         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60187         REPLACE_CHOWN. Don't define chown as a macro here.
60188         * modules/chown (Depends-on): Add unistd.
60189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60190
60191         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60192         Add definition for GL_LINK_WARNING.
60193         (chown, dup2): New declarations.
60194         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60195         link warning.
60196         (ftruncate): New declaration.
60197         (getcwd): New declaration, taken from old getcwd.h.
60198         (getlogin_r): New declaration, taken from old getlogin_r.h.
60199         (readlink): New declaration.
60200         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60201         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60202         (gl_PREREQ_UNISTD): Remove macro.
60203         (gl_UNISTD_MODULE_INDICATOR): New macro.
60204         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60205         many new variables. Don't set UNISTD_H.
60206         * modules/unistd (Description): Change.
60207         (Depends-on): Add link-warning.
60208         (configure.ac): Update.
60209         (Makefile.am): Create unistd.h always. Substitute many new variables
60210         into it.
60211
60212 2007-02-18  Bruno Haible  <bruno@clisp.org>
60213
60214         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60215         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60216         HAVE_GETSUBOPT.
60217         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60218         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60219         * lib/getsubopt.h: Remove file.
60220         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60221         (Depends-on): Add stdlib.
60222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60223         (Includes): Use <stdlib.h> instead of getsubopt.h.
60224         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60225         Set HAVE_GETSUBOPT.
60226         * lib/getsubopt.c: Don't include getsubopt.h.
60227
60228 2007-02-18  Bruno Haible  <bruno@clisp.org>
60229
60230         * modules/fchdir (Depends-on): Add dup2.
60231
60232 2007-02-18  Bruno Haible  <bruno@clisp.org>
60233
60234         * lib/stdlib_.h: Handle glibc's special invocation convention
60235         specially.
60236
60237 2007-02-18  Bruno Haible  <bruno@clisp.org>
60238
60239         * modules/stdlib-tests: New file.
60240         * tests/test-stdlib.c: New file.
60241
60242         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60243         (Depends-on): Add stdlib.
60244         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60245         (Includes): Use <stdlib.h> instead of mkstemp.h.
60246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60247         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60248         * lib/mkstemp.c: Don't include mkstemp.h.
60249         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60250         * lib/stdlib--.h: Don't include mkstemp.h.
60251
60252         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60253         (Depends-on): Add stdlib.
60254         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60255         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60256         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60257         HAVE_MKDTEMP.
60258         * lib/mkdtemp.c: Don't include mkdtemp.h.
60259         * lib/clean-temp.c: Don't include mkdtemp.h.
60260
60261         * modules/exit (Files): Remove lib/exit.h.
60262         (Depends-on): Add stdlib.
60263         (Makefile.am): Remove lib_SOURCES.
60264         (Include): Use <stdlib.h> instead of exit.h.
60265         * lib/argmatch.c: Don't include exit.h.
60266         * lib/execute.c: Likewise.
60267         * lib/pagealign_alloc.c: Likewise.
60268         * lib/pipe.c: Likewise.
60269         * lib/wait-process.c: Likewise.
60270         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60271         * lib/exitfail.c: Likewise.
60272         * lib/savewd.c: Likewise.
60273         * lib/xsetenv.c: Likewise.
60274
60275         * modules/stdlib: New file.
60276         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60277         and extra comments about mkstemp().
60278         * lib/exit.h: Remove file.
60279         * lib/mkdtemp.h: Remove file.
60280         * lib/mkstemp.h: Remove file.
60281         * m4/stdlib_h.m4: New file.
60282         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60283
60284 2007-02-18  Bruno Haible  <bruno@clisp.org>
60285
60286         * modules/math-tests: New file.
60287         * tests/test-math.c: New file.
60288
60289         * modules/math: New file.
60290         * modules/mathl (Files): Remove lib/mathl.h.
60291         (Depends-on): Add math.
60292         (Makefile.am): Don't mention mathl.h.
60293         (Include): Use <math.h> instead of mathl.h.
60294         * lib/math_.h: New file.
60295         * lib/mathl.h: Remove file.
60296         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60297         mathl.h.
60298         * lib/asinl.c: Likewise.
60299         * lib/atanl.c: Likewise.
60300         * lib/ceill.c: Likewise.
60301         * lib/cosl.c: Likewise.
60302         * lib/expl.c: Likewise.
60303         * lib/floorl.c: Likewise.
60304         * lib/frexpl.c: Likewise.
60305         * lib/ldexpl.c: Likewise.
60306         * lib/logl.c: Likewise.
60307         * lib/sincosl.c: Likewise.
60308         * lib/sinl.c: Likewise.
60309         * lib/sqrtl.c: Likewise.
60310         * lib/tanl.c: Likewise.
60311         * lib/trigl.c: Likewise.
60312         * m4/math_h.m4: New file.
60313         * MODULES.html.sh (Mathematics): Add math.
60314
60315 2007-02-17  Bruno Haible  <bruno@clisp.org>
60316
60317         * modules/wctype-tests: New file.
60318         * tests/test-wctype.c: New file.
60319
60320         * modules/wchar-tests: New file.
60321         * tests/test-wchar.c: New file.
60322
60323         * modules/unistd-tests: New file.
60324         * tests/test-unistd.c: New file.
60325
60326         * modules/time-tests: New file.
60327         * tests/test-time.c: New file.
60328
60329         * modules/sysexits-tests: New file.
60330         * tests/test-sysexits.c: New file.
60331
60332         * modules/sys_time-tests: New file.
60333         * tests/test-sys_time.c: New file.
60334
60335         * modules/sys_stat-tests: New file.
60336         * tests/test-sys_stat.c: New file.
60337
60338         * modules/sys_socket-tests: New file.
60339         * tests/test-sys_socket.c: New file.
60340
60341         * modules/sys_select-tests: New file.
60342         * tests/test-sys_select.c: New file.
60343
60344         * modules/string-tests: New file.
60345         * tests/test-string.c: New file.
60346
60347         * modules/stdbool-tests: New file.
60348         * tests/test-stdbool.c: New file.
60349
60350         * modules/netinet_in-tests: New file.
60351         * tests/test-netinet_in.c: New file.
60352
60353         * modules/inttypes-tests: New file.
60354         * tests/test-inttypes.c: New file.
60355
60356         * modules/fcntl-tests: New file.
60357         * tests/test-fcntl.c: New file.
60358
60359         * modules/byteswap-tests: New file.
60360         * tests/test-byteswap.c: New file.
60361
60362         * modules/arpa_inet-tests: New file.
60363         * tests/test-arpa_inet.c: New file.
60364
60365 2007-02-17  Bruno Haible  <bruno@clisp.org>
60366
60367         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60368         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60369         if the corresponding module is not enabled. Emit link warnings if
60370         the function is used nevertheless.
60371         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60372         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60373         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60374         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60375         * modules/inttypes (Depends-on): Add link-warning.
60376         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60377         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60378         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60379         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60380         * modules/imaxdiv (configure.ac): Likewise.
60381         * modules/strtoimax (configure.ac): Likewise.
60382         * modules/strtoumax (configure.ac): Likewise.
60383
60384 2007-02-17  Bruno Haible  <bruno@clisp.org>
60385
60386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60387         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60388         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60389         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60390
60391 2007-02-17  Bruno Haible  <bruno@clisp.org>
60392
60393         * modules/link-warning: New file.
60394         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60395         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60396         * modules/string (Depends-on): Add link-warning.
60397         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60398         string.h.
60399         * MODULES.html.sh (Support for building libraries and executables): Add
60400         link-warning.
60401
60402 2007-02-17  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60405         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60406         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60407         long lines.
60408
60409 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60410             Bruno Haible  <bruno@clisp.org>
60411
60412         * modules/tmpfile: New file.
60413         * lib/tmpfile.c: New file.
60414         * m4/tmpfile.m4: New file.
60415         * MODULES.html.sh (func_all_modules): New section "Input/output".
60416
60417 2007-02-15  Bruno Haible  <bruno@clisp.org>
60418
60419         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60420         (supports_delete_on_close): New function.
60421         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60422
60423 2007-02-14  Bruno Haible  <bruno@clisp.org>
60424
60425         * modules/mbspcasecmp-tests: New file.
60426         * tests/test-mbspcasecmp.sh: New file.
60427         * tests/test-mbspcasecmp.c: New file.
60428
60429         New module mbspcasecmp.
60430         * modules/mbspcasecmp: New file.
60431         * lib/mbspcasecmp.c: New file.
60432         * lib/string_.h (strncasecmp): Change warning message.
60433         (mbspcasecmp): New declaration.
60434         * m4/mbspcasecmp.m4: New file.
60435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60436         GNULIB_MBSPCASECMP.
60437         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60438         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60439
60440 2007-02-14  Bruno Haible  <bruno@clisp.org>
60441
60442         * modules/mbsncasecmp-tests: New file.
60443         * tests/test-mbsncasecmp.sh: New file.
60444         * tests/test-mbsncasecmp.c: New file.
60445
60446         New module mbsncasecmp.
60447         * modules/mbsncasecmp: New file.
60448         * lib/mbsncasecmp.c: New file.
60449         * lib/string_.h (mbsncasecmp): New declaration.
60450         * m4/mbsncasecmp.m4: New file.
60451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60452         GNULIB_MBSNCASECMP.
60453         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60454         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60455
60456 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60457
60458         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60459         Verify that it doesn't overlap with our flags.
60460         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60461         do not have the desired effect in multibyte locales; instead, use
60462         mbscasecmp.
60463         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60464         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60465         we don't require GNU fnmatch ourselves (if our users require it, they
60466         should do so explicitly).
60467
60468         Fix regex code so it doesn't rely on strcasecmp.
60469         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60470         Otherwise, include gnulib's langinfo.h.
60471         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60472         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60473         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60474         * modules/regex (FILES): Remove m4/codeset.m4.
60475         (Depends-on): Add localcharset.  Remove strcase.
60476
60477 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60478
60479         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60480         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60481
60482 2007-02-13  Bruno Haible  <bruno@clisp.org>
60483
60484         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60486
60487 2007-02-12  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60490         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60491         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60492         time warning rather than a link error.
60493
60494 2007-02-12  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60497         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60499
60500 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60503         args, not 2.
60504
60505 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60506
60507         New module 'time', so that apps can include <time.h> as per
60508         POSIX and GNU instead of separate include files like time_r.h
60509         and timegm.h.  This implementation tries out a simpler approach
60510         for replacing decls in standard include files (as compared to
60511         the string module), somewhat as an experiment.
60512
60513         * config/srclist.txt: Comment out mktime.c for now.
60514         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60515         since it doesn't apply any more.  Use generic wording instead.
60516         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60517         'time'.
60518         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60519         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60520         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60521         Don't include <sys/types.h>; no longer needed since we assume C89.
60522         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60523         * lib/strftime.c: Likewise.
60524         * lib/time_r.c: Likewise.
60525         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60526         * lib/nanosleep.c: Include <time.h> first, to check interface.
60527         * lib/strptime.c: Likewise.
60528         * lib/time_r.c: Likewise.
60529         * lib/timegm.c: Likewise.
60530         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60531         needed.
60532         * lib/timegm.c: Don't include timegm.h; no longer needed.
60533         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60534         time.h now handles any problems in that area.
60535         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60536         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60537         that time.h defines struct timespec.
60538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60539         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60540         handles that.
60541         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60542         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60543         needed.  Set REPLACE_LOCALTIME.
60544         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60545         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60546         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60547         nanosleep; time_h.m4 now does that.  Don't require
60548         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60549         module handles this now.
60550         * modules/getdate (Depends-on): Remove timespec.  Add time.
60551         * modules/nanosleep (Depends-on): Likewise.
60552         * modules/stat-time (Depends-on): Likewise.
60553         * modules/nanosleep (Include): Include time.h, not timespec.h.
60554         * modules/strptime (Files): Remove lib/strptime.h.
60555         (Depends-on): Add extensions, time.
60556         (Include): Include time.h, not strptime.h.
60557         * modules/time_r (Files): Remove lib/time_r.h.
60558         (Depends-on): Add time.
60559         (Include): Include time.h, not time_r.h.
60560         * modules/timegm: Likewise.
60561         * modules/timespec (Description): Now does timespec-related decls
60562         of our own, instead of struct timespec itself.
60563         (Depends-on): Add time; remove extensions.
60564         (Maintainer): Add self.
60565         * modules/utimecmp (Depends-on): Add time; remove timespec.
60566         * modules/utimens (Depends-on): Likewise.
60567         * modules/xnanosleep (Depends-on): Likewise.
60568
60569 2007-02-11  Bruno Haible  <bruno@clisp.org>
60570
60571         * lib/c-strstr.c: Include allocsa.h.
60572         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60573         * lib/c-strcasestr.c: Include allocsa.h.
60574         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60575         * lib/strcasestr.c: Include allocsa.h.
60576         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60577         * lib/mbsstr.c: Include allocsa.h.
60578         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60579         allocsa/freesa instead of malloc/free.
60580         * lib/mbscasestr.c: Include allocsa.h.
60581         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60582         allocsa/freesa instead of malloc/free.
60583         * modules/c-strstr (Depends-on): Add allocsa.
60584         * modules/c-strcasestr (Depends-on): Likewise.
60585         * modules/strcasestr (Depends-on): Likewise.
60586         * modules/mbsstr (Depends-on): Likewise.
60587         * modules/mbscasestr (Depends-on): Likewise.
60588
60589 2007-02-11  Bruno Haible  <bruno@clisp.org>
60590
60591         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60592
60593         * modules/mbsspn-tests: New file.
60594         * tests/test-mbsspn.sh: New file.
60595         * tests/test-mbsspn.c: New file.
60596
60597 2007-02-11  Bruno Haible  <bruno@clisp.org>
60598
60599         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60600
60601         * modules/mbspbrk-tests: New file.
60602         * tests/test-mbspbrk.sh: New file.
60603         * tests/test-mbspbrk.c: New file.
60604
60605 2007-02-11  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60608         unneeded cast.
60609
60610         * modules/mbscspn-tests: New file.
60611         * tests/test-mbscspn.sh: New file.
60612         * tests/test-mbscspn.c: New file.
60613
60614 2007-02-11  Bruno Haible  <bruno@clisp.org>
60615
60616         * modules/mbscasecmp-tests: New file.
60617         * tests/test-mbscasecmp.sh: New file.
60618         * tests/test-mbscasecmp.c: New file.
60619
60620 2007-02-11  Bruno Haible  <bruno@clisp.org>
60621
60622         Ensure O(n) worst-case complexity of mbscasestr.
60623         * lib/mbscasestr.c: Include stdbool.h.
60624         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60625         functions.
60626         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60627         the bookkeeping indicates that it's worth it.
60628         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60629
60630         * modules/mbscasestr-tests: New file.
60631         * tests/test-mbscasestr1.c: New file.
60632         * tests/test-mbscasestr2.sh: New file.
60633         * tests/test-mbscasestr2.c: New file.
60634         * tests/test-mbscasestr3.sh: New file.
60635         * tests/test-mbscasestr3.c: New file.
60636         * tests/test-mbscasestr4.sh: New file.
60637         * tests/test-mbscasestr4.c: New file.
60638         * m4/locale-tr.m4: New file.
60639
60640 2007-02-11  Bruno Haible  <bruno@clisp.org>
60641
60642         Ensure O(n) worst-case complexity of mbsstr.
60643         * lib/mbsstr.c: Include stdbool.h.
60644         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60645         functions.
60646         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60647         bookkeeping indicates that it's worth it.
60648         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60649
60650         * modules/mbsstr-tests: New file.
60651         * tests/test-mbsstr1.c: New file.
60652         * tests/test-mbsstr2.sh: New file.
60653         * tests/test-mbsstr2.c: New file.
60654         * tests/test-mbsstr3.sh: New file.
60655         * tests/test-mbsstr3.c: New file.
60656         * m4/locale-fr.m4: New file.
60657
60658 2007-02-11  Bruno Haible  <bruno@clisp.org>
60659
60660         * lib/mbsrchr.c (mbsrchr): Fix bug.
60661
60662         * modules/mbsrchr-tests: New file.
60663         * tests/test-mbsrchr.sh: New file.
60664         * tests/test-mbsrchr.c: New file.
60665
60666 2007-02-11  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/mbschr.c (mbschr): Fix bug.
60669
60670         * modules/mbschr-tests: New file.
60671         * tests/test-mbschr.sh: New file.
60672         * tests/test-mbschr.c: New file.
60673         * m4/locale-zh.m4: New file.
60674
60675 2007-02-11  Bruno Haible  <bruno@clisp.org>
60676
60677         Support for copying multibyte string iterators.
60678         * lib/mbiter.h: Include <string.h>.
60679         (mbiter_multi_copy): New function.
60680         (mbi_copy): New macro.
60681         * lib/mbuiter.h: Include <string.h>.
60682         (mbuiter_multi_copy): New function.
60683         (mbui_copy): New macro.
60684
60685 2007-02-11  Bruno Haible  <bruno@clisp.org>
60686
60687         New module mbslen.
60688         * modules/mbslen: New file.
60689         * lib/mbslen.c: New file.
60690         * lib/string_.h (mbslen): New declaration.
60691         * m4/mbslen.m4: New file.
60692         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60693         GNULIB_MBSLEN.
60694         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60695         * MODULES.html.sh (Internationalization functions): Add mbslen.
60696
60697 2007-02-11  Bruno Haible  <bruno@clisp.org>
60698
60699         Ensure O(n) worst-case complexity of strcasestr substitute.
60700         * lib/strcasestr.c: Include stdbool.h.
60701         (knuth_morris_pratt): New function.
60702         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60703         bookkeeping indicates that it's worth it.
60704         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60705
60706         * modules/strcasestr-tests: New file.
60707         * tests/test-strcasestr.c: New file.
60708
60709 2007-02-11  Bruno Haible  <bruno@clisp.org>
60710
60711         Ensure O(n) worst-case complexity of c_strcasestr.
60712         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60713         (knuth_morris_pratt): New function.
60714         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60715         the bookkeeping indicates that it's worth it.
60716         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60717
60718         * modules/c-strcasestr-tests: New file.
60719         * tests/test-c-strcasestr.c: New file.
60720
60721 2007-02-11  Bruno Haible  <bruno@clisp.org>
60722
60723         Ensure O(n) worst-case complexity of c_strstr.
60724         * lib/c-strstr.c: Include stdbool.h, string.h.
60725         (knuth_morris_pratt): New function.
60726         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60727         bookkeeping indicates that it's worth it.
60728         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60729
60730         * lib/c-strstr.c: Complete rewrite for maintainability.
60731
60732         * modules/c-strstr-tests: New file.
60733         * tests/test-c-strstr.c: New file.
60734
60735 2007-02-11  Bruno Haible  <bruno@clisp.org>
60736
60737         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60738         5.2.1 and earlier, whereby \055 was treated just like the range
60739         delimiter '-'.
60740         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60741
60742 2007-02-08  Bruno Haible  <bruno@clisp.org>
60743
60744         * modules/regex (Depends-on): Add stdbool.
60745         Reported by Dalibor Topic <robilad@kaffe.org>.
60746
60747 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60748
60749         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60750         Prefer returning from main to exiting from it.
60751         Remove unnecessary parens after sizeof.
60752
60753 2007-02-05  Bruno Haible  <bruno@clisp.org>
60754
60755         New module mbssep.
60756         * modules/mbssep: New file.
60757         * lib/mbssep.c: New file.
60758         * lib/string_.h (strsep): Add a conditional link warning.
60759         (mbssep): New declaration.
60760         * m4/mbssep.m4: New file.
60761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60762         GNULIB_MBSSEP.
60763         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60764         * MODULES.html.sh (Internationalization functions): Add mbssep.
60765
60766 2007-02-05  Bruno Haible  <bruno@clisp.org>
60767
60768         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60769         Optimize search in case of 1 delimiter.
60770
60771 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60772
60773         * lib/acl.h: Include sys/types.h before sys/acl.h.
60774
60775 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60776
60777         Merge upstream fix for glibc bugzilla #3957:
60778
60779         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60780
60781         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60782         bit for RE_HAT_LISTS_NOT_NEWLINE.
60783         (build_charclass_op): Remove bogus comment.
60784
60785 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60786
60787         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60788
60789 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60790
60791         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60792         * lib/memmem.c [!defined _LIBC]: Include config.h.
60793
60794 2007-02-04  Bruno Haible  <bruno@clisp.org>
60795
60796         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60797         warning message.
60798
60799 2007-02-04  Bruno Haible  <bruno@clisp.org>
60800
60801         New module mbstok_r.
60802         * modules/mbstok_r: New file.
60803         * lib/mbstok_r.c: New file.
60804         * lib/string_.h (strtok_r): Change argument names to match the
60805         comments. Add a conditional link warning.
60806         (mbstok_r): New declaration.
60807         * m4/mbstok_r.m4: New file.
60808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60809         GNULIB_MBSTOK_R.
60810         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60811         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60812
60813 2007-02-04  Bruno Haible  <bruno@clisp.org>
60814
60815         New module mbsspn.
60816         * modules/mbsspn: New file.
60817         * lib/mbsspn.c: New file.
60818         * lib/string_.h (strspn): Add a conditional link warning.
60819         (mbsspn): New declaration.
60820         * m4/mbsspn.m4: New file.
60821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60822         GNULIB_MBSSPN.
60823         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60824         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60825
60826 2007-02-04  Bruno Haible  <bruno@clisp.org>
60827
60828         New module mbspbrk.
60829         * modules/mbspbrk: New file.
60830         * lib/mbspbrk.c: New file.
60831         * lib/string_.h (strpbrk): Add a conditional link warning.
60832         (mbspbrk): New declaration.
60833         * m4/mbspbrk.m4: New file.
60834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60835         GNULIB_MBSPBRK.
60836         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60837         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60838
60839 2007-02-04  Bruno Haible  <bruno@clisp.org>
60840
60841         New module mbscspn.
60842         * modules/mbscspn: New file.
60843         * lib/mbscspn.c: New file.
60844         * lib/string_.h (strcspn): Add a conditional link warning.
60845         (mbscspn): New declaration.
60846         * m4/mbscspn.m4: New file.
60847         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60848         GNULIB_MBSCSPN.
60849         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60850         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60851
60852 2007-02-04  Bruno Haible  <bruno@clisp.org>
60853
60854         New module mbscasestr, reduced goal of strcasestr.
60855         * modules/mbscasestr: New file.
60856         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60857         (mbscasestr): Renamed from strcasestr.
60858         * lib/strcasestr.c: Don't include mbuiter.h.
60859         (strcasestr): Remove support for multibyte locales.
60860         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60861         Change the conditional link warning.
60862         (mbscasestr): New declaration.
60863         * m4/mbscasestr.m4: New file.
60864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60865         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60866         REPLACE_STRCASESTR.
60867         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60869         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60870         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60871         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60872         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60873         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60874         (Depends-on): Remove mbuiter.
60875         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60876
60877 2007-02-04  Bruno Haible  <bruno@clisp.org>
60878
60879         Simplify handling of strncasecmp.
60880         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60881         the conditional link warning.
60882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60883         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60884         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60885         * modules/strcase (configure.ac): Don't invoke
60886         gl_STRING_MODULE_INDICATOR.
60887         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60888
60889 2007-02-04  Bruno Haible  <bruno@clisp.org>
60890
60891         New module mbscasecmp, reduced goal of strcasecmp.
60892         * modules/mbscasecmp: New file.
60893         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60894         (mbscasecmp): Renamed from strcasecmp.
60895         * lib/strcasecmp.c: Don't include mbuiter.h.
60896         (strcasecmp): Remove support for multibyte locales.
60897         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60898         Change the conditional link warning.
60899         (mbscasecmp): New declaration.
60900         * m4/mbscasecmp.m4: New file.
60901         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60902         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60903         REPLACE_STRCASECMP.
60904         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60906         GNULIB_MBSCASECMP.
60907         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60908         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60909         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60910         (Depends-on): Remove mbuiter.
60911         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60912
60913 2007-02-04  Bruno Haible  <bruno@clisp.org>
60914
60915         New module mbsstr. Remove module strstr.
60916         * modules/mbsstr: New file.
60917         * modules/strstr: Remove file.
60918         * lib/mbsstr.c: Renamed from lib/strstr.c.
60919         (mbsstr): Renamed from strstr.
60920         * lib/string_.h (strstr): Remove declaration. Change the conditional
60921         link warning.
60922         (mbsstr): New declaration.
60923         * m4/mbsstr.m4: New file.
60924         * m4/strstr.m4: Remove file.
60925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60926         REPLACE_STRSTR.
60927         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60928         Don't initialize GNULIB_STRSTR.
60929         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60930         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60931         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60932         (Support for systems lacking ANSI C 89): Remove strstr.
60933
60934 2007-02-04  Bruno Haible  <bruno@clisp.org>
60935
60936         New module mbsrchr.
60937         * modules/mbsrchr: New file.
60938         * lib/mbsrchr.c: New file.
60939         * lib/string_.h (strrchr): Add a conditional link warning.
60940         (mbsrchr): New declaration.
60941         * m4/mbsrchr.m4: New file.
60942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60943         GNULIB_MBSRCHR.
60944         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60945         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60946
60947 2007-02-04  Bruno Haible  <bruno@clisp.org>
60948
60949         New module mbschr.
60950         * modules/mbschr: New file.
60951         * lib/mbschr.c: New file.
60952         * lib/string_.h (strchr): Add a conditional link warning.
60953         (mbschr): New declaration.
60954         * m4/mbschr.m4: New file.
60955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60956         GNULIB_MBSCHR.
60957         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60958         * MODULES.html.sh (Internationalization functions): Add mbschr.
60959
60960 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60961
60962         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60963
60964         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60965
60966 2007-02-04  Bruno Haible  <bruno@clisp.org>
60967
60968         New module description section 'configure.ac-early'.
60969         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60970         (func_get_autoconf_early_snippet): New function.
60971         (func_import, func_create_testdir): Use it. Remove special cases for
60972         modules 'extensions' and 'lock'.
60973         * modules/extensions (configure.ac-early): Require
60974         gl_USE_SYSTEM_EXTENSIONS.
60975         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60976
60977 2007-02-04  Bruno Haible  <bruno@clisp.org>
60978
60979         Make use of gcj-4.3's -fsource and -ftarget option.
60980         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60981         and if so try the options -fsource and -ftarget.
60982         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60983         source_version, ftarget_option, target_version arguments.
60984         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60985         (is_envjavac_oldgcj_14_14_usable): Renamed from
60986         is_envjavac_gcj_14_14_usable.
60987         (is_envjavac_oldgcj_14_13_usable): Renamed from
60988         is_envjavac_gcj_14_13_usable.
60989         (is_gcj_present): Update.
60990         (is_gcj_43, is_gcj43_usable): New functions.
60991         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60992         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60993         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60994         try the options -fsource and -ftarget.
60995
60996 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60999         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61000         larger value.
61001
61002 2007-02-03  Jim Meyering  <jim@meyering.net>
61003
61004         Give tools a better chance to allocate space for very large buffers.
61005         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61006
61007         Make pwd and readlink work also when run with an unreadable parent dir
61008         on systems with openat support.
61009         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61010         provided getcwd function, even when we have openat support.
61011         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61012
61013 2007-02-02  Bruno Haible  <bruno@clisp.org>
61014
61015         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61016         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61017         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61018         portability problems if one of these functions is only used on specific
61019         platforms.
61020         Reported by Paul Eggert.
61021
61022 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61023
61024         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61025         is causing more trouble than it's curing.
61026         * lib/regex_internal.h (__mempcpy): Remove.
61027         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61028         (and make the code a tad smaller to boot).
61029         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61030
61031 2007-02-02  Jim Meyering  <jim@meyering.net>
61032
61033         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61034         section, not in the Makefile.am: one.
61035
61036 2007-02-02  Eric Blake  <ebb9@byu.net>
61037
61038         * lib/strchrnul.c: Always include config.h first.
61039
61040         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61041         gnulib strstr is not necessary here.
61042
61043 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61044
61045         * m4/socklen.m4: Fix typo.
61046
61047 2007-02-02  Eric Blake  <ebb9@byu.net>
61048
61049         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61050         * modules/netinet_in (Makefile.am): Likewise.
61051
61052 2007-02-01  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/string_.h (GL_LINK_WARNING): New macro.
61055         (strcasecmp, strstr, strcasestr): If provided by the system,
61056         conditionally define as a macro that leads to a warning instead of to
61057         an error.
61058         (strncasecmp): Conditionally define as a macro that leads to a warning.
61059
61060 2007-02-01  Karl Berry  <karl@gnu.org>
61061
61062         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61063
61064 2007-02-01  Bruno Haible  <bruno@clisp.org>
61065
61066         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61067         renamings.
61068
61069 2007-02-01  Eric Blake  <ebb9@byu.net>
61070
61071         * modules/regex (Depends-on): Revert dependence on mempcpy.
61072         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61073         module's definition of mempcpy.
61074         Reported by Paul Eggert.
61075
61076 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61079         the symbol XYZ before redefining it.  This fixes a problem with
61080         programs that don't use XYZ, when compiled on systems that define
61081         XYZ to something else.
61082
61083 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61084
61085         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61086         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61087         writeable to group or other and (2) is intended to have a special
61088         mode bit that is set or cleared.  In such a case, the directory
61089         should be neither group- nor other-writeable until the special
61090         mode bits are right.
61091
61092 2007-01-31  Eric Blake  <ebb9@byu.net>
61093
61094         * modules/mountlist (Depends-on): Add strstr.
61095
61096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61097         bug.
61098         * modules/string (Makefile.am): Remove redundant replacement.
61099         * modules/regex (Depends-on): Add mempcpy.
61100
61101 2007-01-31  Bruno Haible  <bruno@clisp.org>
61102
61103         New module description field 'Link'.
61104         * gnulib-tool (func_usage): Document --extract-link-directive.
61105         (sed_extract_prog): Recognize 'Link' directive.
61106         (func_get_link_directive): New function.
61107         (func_import): Show summary of link directives.
61108         Handle --extract-link-directive option.
61109         * modules/acl (Link): New section.
61110         * modules/clock-time (Link): New section.
61111         * modules/euidaccess (Link): New section.
61112         * modules/gettext (Link): New section.
61113         * modules/iconv (Link): New section.
61114         * modules/lock (Link): New section.
61115         * modules/nanosleep (Link): New section.
61116         * modules/readline (Link): New section.
61117
61118 2007-01-27  Bruno Haible  <bruno@clisp.org>
61119
61120         Enforce the use of gnulib modules for unportable <string.h> functions.
61121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61122         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61123         (gl_HEADER_STRING_H_BODY): Require it.
61124         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61125         the symbol XYZ to one that gives a link error.
61126         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61127         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61128         * modules/mempcpy (configure.ac): Likewise.
61129         * modules/memrchr (configure.ac): Likewise.
61130         * modules/stpcpy (configure.ac): Likewise.
61131         * modules/stpncpy (configure.ac): Likewise.
61132         * modules/strcase (configure.ac): Likewise.
61133         * modules/strcasestr (configure.ac): Likewise.
61134         * modules/strchrnul (configure.ac): Likewise.
61135         * modules/strdup (configure.ac): Likewise.
61136         * modules/strndup (configure.ac): Likewise.
61137         * modules/strnlen (configure.ac): Likewise.
61138         * modules/strpbrk (configure.ac): Likewise.
61139         * modules/strsep (configure.ac): Likewise.
61140         * modules/strstr (configure.ac): Likewise.
61141         * modules/strtok_r (configure.ac): Likewise.
61142
61143 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61144
61145         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61146
61147 2007-01-30  Jim Meyering  <jim@meyering.net>
61148
61149         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61150
61151 2007-01-29  Bruno Haible  <bruno@clisp.org>
61152
61153         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61154         * lib/execute.c: Likewise.
61155         * lib/pipe.c: Likewise.
61156         * lib/printf-args.h: Likewise.
61157         * lib/printf-args.c: Likewise.
61158         * lib/printf-parse.c: Likewise.
61159         * lib/vasnprintf.c: Likewise.
61160
61161 2007-01-29  Eric Blake  <ebb9@byu.net>
61162
61163         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61164         declaration.
61165
61166 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61167
61168         * lib/strptime.h (strptime): Use 'restrict' for args where
61169         POSIX requires this.
61170         * lib/strptime.c (strptime): Likewise.
61171         Change license notice from LGPL to GPL, since gnulib-tool will
61172         change this as needed.
61173         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61174         defined.
61175         Include "strptime.h" first, to check interface.
61176         Do not #undef _LIBC and _NL_CURRENT.
61177         Do not include <stdlib.h>; no longer needed.
61178         Include "time_r.h" and declare ptime_locale_status
61179         only if _LIBC is not defined.
61180         (__P): Remove unused macro.
61181         (match_string): Bring back glibc version, but use it only if _LIBC
61182         is defined.
61183         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61184         Remove unnecessary assertion and abort() call.
61185         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61186         * m4/strptime.m4: Fix serial number comment.
61187         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61188         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61189         (Depends-on): Add time_r.
61190
61191 2007-01-29  Bruno Haible  <bruno@clisp.org>
61192
61193         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61194         strptime.
61195         * modules/strptime (Depends-on): Add stdbool.
61196         * lib/strptime.h: Include <time.h> always. Add comments.
61197
61198 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61199
61200         * modules/strptime: New file.
61201         * lib/strptime.h: New file.
61202         * lib/strptime.c: New file.
61203         * m4/strptime.m4: New file.
61204
61205 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         * MODULES.html.sh: New module mpsort.
61208         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61209
61210         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61211         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61213         All uses changed.
61214         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61215         All uses changed.
61216         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61217         to _Restrict_.
61218         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61219         the parameter matches the prototype.
61220
61221 2007-01-28  Jim Meyering  <jim@meyering.net>
61222
61223         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61224         sys/time.h here, reverting that part of the previous patch:
61225         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61226
61227 2007-01-28  Bruno Haible  <bruno@clisp.org>
61228
61229         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61230         value of $(SYS_TIME_H).
61231         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61232         remove it conditionally, too. [added by Jim Meyering]
61233         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61234         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61235         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61236         GETTIMEOFDAY_REPLACEMENT to 1.
61237
61238 2007-01-28  Bruno Haible  <bruno@clisp.org>
61239
61240         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61241         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61243         Set UNISTD_H instead of UNISTD_H2.
61244         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61245
61246 2007-01-28  Bruno Haible  <bruno@clisp.org>
61247
61248         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61249         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61250
61251 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61252
61253         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61254         (func_create_testdir): Ensure C locale for `grep' and `tr'
61255         character ranges.
61256         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61257         ACLOCAL_AMFLAGS parsing state machine.
61258
61259 2007-01-27  Bruno Haible  <bruno@clisp.org>
61260
61261         * modules/unistr/base: Update.
61262
61263 2007-01-27  Bruno Haible  <bruno@clisp.org>
61264
61265         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61266         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61267         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61268         modules/unistr/u32-mbtouc.
61269         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61270         * lib/unistr.h: Update.
61271         * lib/linebreak.c: Update.
61272         * modules/unistr/u32-mbtouc: Renamed from
61273         modules/unistr/u32-mbtouc-safe.
61274         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61275         * lib/unistr.h: Update.
61276         * lib/unistr/u32-to-u8.c: Update.
61277         * lib/unistr/u32-to-u16.c: Update.
61278
61279 2007-01-27  Bruno Haible  <bruno@clisp.org>
61280
61281         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61282         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61283         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61284         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61285         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61286         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61287         modules/unistr/u16-mbtouc.
61288         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61289         * lib/unistr.h: Update.
61290         * lib/linebreak.c: Update.
61291         * modules/linebreak: Update.
61292         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61293         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61294         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61295         * modules/unistr/u16-mbtouc: Renamed from
61296         modules/unistr/u16-mbtouc-safe.
61297         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61298         * lib/unistr.h: Update.
61299         * lib/unistr/u16-to-u8.c: Update.
61300         * modules/unistr/u16-to-u8: Update.
61301         * lib/unistr/u16-to-u32.c: Update.
61302         * modules/unistr/u16-to-u32: Update.
61303
61304 2007-01-27  Bruno Haible  <bruno@clisp.org>
61305
61306         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61307         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61308         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61309         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61310         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61311         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61312         modules/unistr/u8-mbtouc.
61313         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61314         * lib/unistr.h: Update.
61315         * lib/striconveh.c: Update.
61316         * modules/striconveh: Update.
61317         * lib/linebreak.c: Update.
61318         * modules/linebreak: Update.
61319         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61320         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61321         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61322         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61323         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61324         * lib/unistr.h: Update.
61325         * lib/striconveh.c: Update.
61326         * modules/striconveh: Update.
61327         * lib/unistr/u8-to-u16.c: Update.
61328         * modules/unistr/u8-to-u16: Update.
61329         * lib/unistr/u8-to-u32.c: Update.
61330         * modules/unistr/u8-to-u32: Update.
61331
61332 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61333
61334         Sync from Libtool.
61335         * lib/argz.c: Do not include strings.h nor memory.h, include
61336         string.h unconditionally.  Patch by Simon Josefsson.
61337
61338 2007-01-27  Bruno Haible  <bruno@clisp.org>
61339
61340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61341         from gl_HEADER_STRING_H_BODY.
61342         (gl_HEADER_STRING_H_BODY): Require it.
61343         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61344         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61345         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61346         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61347         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61348         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61349         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61350         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61351         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61353         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61354         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61355         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61356         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61357         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61358
61359 2007-01-27  Bruno Haible  <bruno@clisp.org>
61360
61361         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61362         check_PROGRAMS into noinst_PROGRAMS.
61363         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61364         check_PROGRAMS in this case.
61365         (func_import): Set for_test to false.
61366         (func_create_testdir): Set for_test to true.
61367
61368 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61369             Bruno Haible  <bruno@clisp.org>
61370
61371         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61372         (Depends-on): Add string.
61373         (Includes): Use <string.h> instead of strcasestr.h.
61374         * modules/string (Makefile.am): Also substitute the value of
61375         REPLACE_STRCASESTR.
61376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61377         assume strcasestr is declared in <string.h> not <strings.h>. Also
61378         set REPLACE_STRCASESTR.
61379         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61380         REPLACE_STRCASESTR.
61381         * lib/strcasestr.h: Remove file.
61382         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61383         * lib/string_.h (strcasestr): New declaration.
61384
61385 2007-01-27  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/string_.h: Use 'extern'.
61388
61389 2007-01-27  Jim Meyering  <jim@meyering.net>
61390
61391         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61392         of set-but-not-used local, "q".
61393
61394         * lib/mempcpy.c: Include <config.h> before <string.h>.
61395         This fixes a compilation error on HP-UX, due to the system's
61396         "restrict"-using mempcpy prototype.
61397
61398 2007-01-26  Bruno Haible  <bruno@clisp.org>
61399
61400         Small optimization.
61401         * lib/javacomp.c: Include c-strstr.h.
61402          (is_envjavac_gcj): Use c_strstr instead of strstr.
61403         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61404
61405 2007-01-26  Bruno Haible  <bruno@clisp.org>
61406
61407         * MODULES.html.sh (Unicode string functions): Add the new modules.
61408
61409         * modules/uniconv/u32-strconv-to-locale: New file.
61410         * lib/uniconv/u32-strconv-to-locale.c: New file.
61411
61412         * modules/uniconv/u16-strconv-to-locale: New file.
61413         * lib/uniconv/u16-strconv-to-locale.c: New file.
61414
61415         * modules/uniconv/u8-strconv-to-locale: New file.
61416         * lib/uniconv/u8-strconv-to-locale.c: New file.
61417
61418         * modules/uniconv/u32-strconv-from-locale: New file.
61419         * lib/uniconv/u32-strconv-from-locale.c: New file.
61420
61421         * modules/uniconv/u16-strconv-from-locale: New file.
61422         * lib/uniconv/u16-strconv-from-locale.c: New file.
61423
61424         * modules/uniconv/u8-strconv-from-locale: New file.
61425         * lib/uniconv/u8-strconv-from-locale.c: New file.
61426
61427         * modules/uniconv/u32-strconv-to-enc: New file.
61428         * lib/uniconv/u32-strconv-to-enc.c: New file.
61429         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61430         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61431
61432         * modules/uniconv/u16-strconv-to-enc: New file.
61433         * lib/uniconv/u16-strconv-to-enc.c: New file.
61434         * lib/uniconv/u-strconv-to-enc.h: New file.
61435         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61436         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61437
61438         * modules/uniconv/u8-strconv-to-enc: New file.
61439         * lib/uniconv/u8-strconv-to-enc.c: New file.
61440         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61441         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61442
61443         * modules/uniconv/u32-strconv-from-enc: New file.
61444         * lib/uniconv/u32-strconv-from-enc.c: New file.
61445         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61446         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61447
61448         * modules/uniconv/u16-strconv-from-enc: New file.
61449         * lib/uniconv/u16-strconv-from-enc.c: New file.
61450         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61451         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61452
61453         * modules/uniconv/u8-strconv-from-enc: New file.
61454         * lib/uniconv/u8-strconv-from-enc.c: New file.
61455         * lib/uniconv/u-strconv-from-enc.h: New file.
61456         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61457         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61458
61459         * modules/uniconv/u32-conv-from-enc: New file.
61460         * lib/uniconv/u32-conv-from-enc.c: New file.
61461         * modules/uniconv/u32-conv-from-enc-tests: New file.
61462         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61463
61464         * modules/uniconv/u16-conv-from-enc: New file.
61465         * lib/uniconv/u16-conv-from-enc.c: New file.
61466         * lib/uniconv/u-conv-from-enc.h: New file.
61467         * modules/uniconv/u16-conv-from-enc-tests: New file.
61468         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61469
61470         * modules/uniconv/u8-conv-from-enc: New file.
61471         * lib/uniconv/u8-conv-from-enc.c: New file.
61472         * modules/uniconv/u8-conv-from-enc-tests: New file.
61473         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61474
61475         * modules/uniconv/base: New file.
61476         * lib/uniconv.h: New file.
61477
61478 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61479
61480         * doc/gnulib-tool.texi (Initial import): Update to match current
61481         behavior with strdup module.
61482         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61483         * lib/memmem.h: Remove; all uses removed.  This is now done
61484         by <string.h>.
61485         * lib/mempcpy.h: Likewise.
61486         * lib/memrchr.h: Likewise.
61487         * lib/stpcpy.h: Likewise.
61488         * lib/stpncpy.h: Likewise.
61489         * lib/strcase.h: Likewise.
61490         * lib/strchrnul.h: Likewise.
61491         * lib/strdup.h: Likewise.
61492         * lib/strndup.h: Likewise.
61493         * lib/strnlen.h: Likewise.
61494         * lib/strpbrk.h: Likewise.
61495         * lib/strsep.h: Likewise.
61496         * lib/strstr.h: Likewise.
61497         * lib/strtok_r.h: Likewise.
61498         * lib/string_.h: New file.
61499         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61500         Rely on <string.h> instead.
61501         * lib/canon-host.c: Likewise.
61502         * lib/chdir-long.c: Likewise.
61503         * lib/concatpath.c: Likewise.
61504         * lib/exclude.c: Likewise.
61505         * lib/fchdir.c: Likewise.
61506         * lib/getaddrinfo.c: Likewise.
61507         * lib/getcwd.c: Likewise.
61508         * lib/getsubopt.c: Likewise.
61509         * lib/glob.c: Likewise.
61510         * lib/hard-locale.c: Likewise.
61511         * lib/iconvme.c: Likewise.
61512         * lib/javacomp.c: Likewise.
61513         * lib/mempcpy.c: Likewise.
61514         * lib/memrchr.c: Likewise.
61515         * lib/regex_internal.h: Likewise.
61516         * lib/stpncpy.c: Likewise.
61517         * lib/strcasecmp.c: Likewise.
61518         * lib/strchrnul.c: Likewise.
61519         * lib/strdup.c: Likewise.
61520         * lib/striconv.c: Likewise.
61521         * lib/striconveh.c: Likewise.
61522         * lib/striconveha.c: Likewise.
61523         * lib/strncasecmp.c: Likewise.
61524         * lib/strndup.c: Likewise.
61525         * lib/strnlen.c: Likewise.
61526         * lib/strsep.c: Likewise.
61527         * lib/strstr.c: Likewise.
61528         * lib/strtok_r.c: Likewise.
61529         * lib/userspec.c: Likewise.
61530         * lib/w32spawn.h: Likewise.
61531         * lib/xstrndup.c: Likewise.
61532         * lib/mountlist.c (strstr): Remove decl.
61533         * m4/string_h.m4: New file.
61534         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61535         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61536         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61537         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61538         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61539         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61540         Set REPLACE_STRCASECMP if necessary.
61541         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61542         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61543         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61544         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61545         HAVE_DECL_STRDUP if necessary.
61546         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61547         since gl_FUNC_STRNDUP does that now.
61548         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61549         Check for decl here...
61550         (gl_PREREQ_STRNLEN): ... not here.
61551         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61552         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61553         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61554         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61555         necessary.
61556         * modules/string: New file.
61557         * modules/memmem (Files): Remove special-purpose include file.
61558         (Depends-on): Add string.
61559         (Include): Include <string.h>, not the removed file.
61560         * modules/mempcpy: Likewise.
61561         * modules/memrchr: Likewise.
61562         * modules/stpcpy: Likewise.
61563         * modules/stpncpy: Likewise.
61564         * modules/strcase: Likewise.
61565         * modules/strchrnul: Likewise.
61566         * modules/strdup: Likewise.
61567         * modules/strndup: Likewise.
61568         * modules/strnlen: Likewise.
61569         * modules/strpbrk: Likewise.
61570         * modules/strsep: Likewise.
61571         * modules/strstr: Likewise.
61572         * modules/strtok_r: Likewise.
61573         * tests/test-dirname.c: Don't include "strdup.h", since
61574         <string.h> now suffices.
61575         * tests/test-memmem.c: Don't include "memmem.h", since
61576         <string.h> now suffices.
61577
61578 2007-01-25  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61581         *resultp is 0.
61582
61583         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61584         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61585         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61586         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61587
61588         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61589         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61590         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61591         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61592         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61593         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61594
61595 2007-01-24  Bruno Haible  <bruno@clisp.org>
61596
61597         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61598         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61599         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61600         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61601         gl_FUNC_FTS_CORE.
61602         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61603         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61604         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61605         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61606         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61607         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61608         gl_FUNC_FCHOWNAT.
61609         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61610         gl_FUNC_STRFTIME.
61611         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61612         Reported by Ralf Wildenhues.
61613
61614 2007-01-24  Bruno Haible  <bruno@clisp.org>
61615
61616         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61617         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61618         gl_GETADDRINFO.
61619         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61620         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61621         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61622
61623 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61626         Don't use 'exit'; just return from 'main'.
61627         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61628
61629         * lib/fnmatch_.h: Readjust white space and comments to match
61630         glibc, to avoid spurious diffs.
61631
61632 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61633
61634         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61635         2004-12-01 change by Jakub Jelinek, since this code won't compile
61636         if !LIBC.  Problem reported by Bob Proulx.
61637
61638 2007-01-23  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/striconveh.c: Include c-strcaseeq.h.
61641         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61642         * modules/striconveh (Depends-on): Add c-strcaseeq.
61643
61644 2007-01-23  Bruno Haible  <bruno@clisp.org>
61645
61646         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61647
61648         * modules/c-strcaseeq: New file.
61649         * lib/c-strcaseeq.h: New file.
61650
61651         * modules/streq: New file.
61652         * lib/streq.h: New file.
61653
61654 2007-01-23  Bruno Haible  <bruno@clisp.org>
61655
61656         * modules/striconveha-tests: New file.
61657         * tests/test-striconveha.c: New file.
61658
61659         * lib/striconveha.h: Include <stdbool.h>.
61660         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61661         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61662         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61663         (mem_iconveha): New function.
61664         (str_iconveha_notranslit): Renamed from str_iconveha.
61665         (str_iconveha): New function.
61666         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61667         c-strcase.
61668
61669 2007-01-23  Bruno Haible  <bruno@clisp.org>
61670
61671         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61672         encodings without forgiving before trying any encoding with handler.
61673         (str_iconveha): Try all encodings without forgiving before trying any
61674         encoding with handler.
61675
61676 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         Import the following changes from libc.
61679
61680         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61681
61682         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61683
61684         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61685
61686         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61687         normal_bracket label.
61688
61689         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61690
61691         [BZ #361]
61692         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61693         to normal_bracket after fetching the next character.
61694
61695 2007-01-22  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61698         argument.
61699         * lib/striconveh.c (iconv_carefully_1): New function.
61700         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61701         argument.
61702         (str_cd_iconveh): Update.
61703         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61704         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61705         * tests/test-striconveh.c (MAGIC): New macro.
61706         (new_offsets): New function.
61707         (main): Test call with and without offsets.
61708
61709 2007-01-22  Bruno Haible  <bruno@clisp.org>
61710
61711         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61712         * modules/sys_select (Makefile.am): Likewise.
61713         * modules/sys_socket (Makefile.am): Likewise.
61714         * modules/sys_time (Makefile.am): Likewise.
61715
61716 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * modules/gettimeofday (License): Change from GPL to LGPL, since
61719         gettimeofday is a library function.
61720
61721 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61722
61723         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61724
61725 2007-01-21  Bruno Haible  <bruno@clisp.org>
61726
61727         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61728
61729 2007-01-21  Bruno Haible  <bruno@clisp.org>
61730
61731         * modules/striconveha: New file.
61732         * lib/striconveha.h: New file.
61733         * lib/striconveha.c: New file.
61734         * MODULES.html.sh (Internationalization functions): Add striconveha.
61735         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61736         string.
61737         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61738
61739 2007-01-21  Bruno Haible  <bruno@clisp.org>
61740
61741         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61742         * lib/striconveh.c (str_iconveh): Likewise.
61743
61744 2007-01-21  Bruno Haible  <bruno@clisp.org>
61745
61746         * lib/striconveh.h (mem_iconveh): New declaration.
61747         * lib/striconveh.c (mem_iconveh): New function.
61748         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61749
61750 2007-01-21  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61753
61754         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61755         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61756         original result buffer.
61757         (str_cd_iconveh): Update.
61758         * tests/test-striconveh.c (main): Update.
61759
61760         * lib/striconv.h (mem_cd_iconv): Change specification.
61761         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61762         result buffer.
61763         (str_cd_iconv): Update.
61764         * tests/test-striconv.c (main): Update.
61765
61766 2007-01-21  Bruno Haible  <bruno@clisp.org>
61767
61768         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61769
61770 2007-01-20  Jim Meyering  <jim@meyering.net>
61771
61772         * lib/userspec.c (parse_with_separator): If a user or group string
61773         starts with "+", skip the corresponding name-to-ID look-up, since
61774         such a look-up must fail: user and group names may not include "+".
61775
61776 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61779         since we now assume the sys_time module.
61780         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61781         check for sys/time.h; no longer needed.
61782         * modules/poll (Depends-on): Depend on sys_time.
61783
61784 2007-01-18  Bruno Haible  <bruno@clisp.org>
61785
61786         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61787         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61788
61789         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61790         gettimeofday.
61791
61792         * tests/test-gettimeofday.c: Include <time.h>.
61793         (dummy): Remove variable.
61794
61795         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61796         gl_HEADER_SYS_TIME_H.
61797         (gl_HEADER_SYS_TIME_H): New macro.
61798
61799         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61800         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61802         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61803         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61804         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61805         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61806         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61807         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61808         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61809         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61810
61811         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61812         last change; it caused a compilation error when cross-compiling to
61813         Cygwin.
61814
61815 2007-01-18  Jim Meyering  <jim@meyering.net>
61816
61817         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61818         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61819         than the race-prone "test -d sys || mkdir sys".
61820         (configure.ac): Use AC_PROG_MKDIR_P.
61821         * modules/sys_select: Likewise.
61822         * modules/sys_socket: Likewise.
61823         * modules/sys_time: Likewise.
61824
61825 2007-01-18  Eric Blake  <ebb9@byu.net>
61826
61827         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61828         replace gettimeofday.
61829         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61830         name, to avoid infinite recursion.
61831
61832 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61833
61834         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61835         module sys_time.
61836         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61837         assume timespec.h defines struct timeval.
61838         * lib/settime.c: Likewise.
61839         * lib/utimens.c: Likewise.
61840         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61841         since we now assume the gettimeofday module.
61842         * lib/tempname.c (__gen_tempname): Likewise.
61843         * lib/gettimeofday.h: Remove.
61844         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61845         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61846         Include <time.h>, for 'time()'.
61847         (localtime_buffer_addr): Also use this workaround if
61848         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61849         to simplify the uses.  All uses changed.
61850         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61851         that #undef is inside {}, and 'const' follows type name consistently.
61852         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61853         (gettimeofday): Do not use the maximum possible value for
61854         tv->tv_usec, since that might break usages other than ls.c.
61855         Instead, we'll leave ls.c alone.  This undoes today's patch
61856         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61857         we've never observed the problem but might as well keep the
61858         canary.
61859         * lib/nanosleep.c: Include timespec.h first, for interface check.
61860         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61861         now assume the sys_time module.
61862         * lib/tempname.c: Likewise.
61863         * lib/timespec.h: Likewise.
61864         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61865         needed.
61866         * lib/strftime.c: Likewise.
61867         * lib/timespec.h: Likewise.
61868         * lib/posixtm.c: Include posixtm.h first, for interface check.
61869         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61870         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61871         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61872         * lib/sys_time_.h: New file.
61873         * lib/timespec.h (struct timespec): Use long int, not long.
61874         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61875         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61876         Remove obsolescent call to AC_HEADER_TIME.
61877         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61879         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61880         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61881         Likewise.
61882         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61883         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61885         into the sys_time module.  Check for gettimeofday just once.
61886         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61887         for gettimeofday signature to just check the signature.  Merely
61888         compile it, since linking doesn't test signature.  Improve test for
61889         whether gettimeofday.o is actually needed.
61890         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61891         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61892         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61893         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61894         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61895         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61896         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61897         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61898         than worrying about sys/time.h.
61899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61900         Don't bother worrying about TIME_WITH_SYS_TIME.
61901         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61902         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61903         * m4/sys_time_h.m4: New file.
61904         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61905         Don't include sys/time.h.  Return from main rather than exiting.
61906         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61907         all uses changed.
61908         * modules/gethrxtime (Depends-on): Add sys_time.
61909         * modules/gettime (Depends-on): Likewise.
61910         * modules/gettimeofday (Depends-on): Likewise.
61911         * modules/nanosleep (Depends-on): Likewise.
61912         * modules/settime (Depends-on): Likewise.
61913         * modules/tempname (Depends-on): Likewise.
61914         * modules/utimens (Depends-on): Likewise.
61915         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61916         (Include): Change back to <sys/time.h>.
61917         (Maintainer): Add self.
61918         * modules/sys_time: New file.
61919         * modules/tempname (Depends-on): Add gettimeofday.
61920         * tests/test-gettimeofday.c: Include <sys/time.h>
61921         rather than gettimeofday.h.
61922
61923 2007-01-17  Bruno Haible  <bruno@clisp.org>
61924
61925         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61926         the license default to GPL.
61927         (func_create_testdir): Don't complain if a module is LGPL and its
61928         tests module depends on GPLed modules.
61929
61930 2007-01-17  Bruno Haible  <bruno@clisp.org>
61931
61932         * lib/gettimeofday.c (gettimeofday): Add code for the case
61933         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61934         maximum possible value for tv->tv_usec, rather than the minimum one.
61935
61936 2005-10-08  Martin Lambers  <marlam@marlam.de>
61937 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61938 2007-01-16  Bruno Haible  <bruno@clisp.org>
61939
61940         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61941         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61942         gl_FUNC_GETTIMEOFDAY.
61943         (Include): Add gettimeofday.h.
61944         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61945         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61946         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61947         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61948         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61949         * lib/gettimeofday.h: New file.
61950         * lib/gettimeofday.c: Include <sys/timeb.h>.
61951         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61952         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61953         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61954         fall back on time().
61955
61956         * tests/test-gettimeofday.c: New file.
61957         * modules/gettimeofday-tests: New file.
61958
61959 2007-01-16  Eric Blake  <ebb9@byu.net>
61960
61961         * modules/fnmatch (Depends-on): Depend on wchar.
61962         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61963         * m4/fnmatch.m4: Likewise.
61964         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61965         * m4/mbchar.m4: Likewise.
61966         * modules/mbswidth (Depends-on): Depend on wchar.
61967         * lib/mbswidth.c: Assume <wchar.h>.
61968         * m4/mbswidth.m4: Likewise.
61969         * modules/quotearg (Depends-on): Depend on wchar.
61970         * lib/quotearg.c: Assume <wchar.h>.
61971         * m4/quotearg.m4: Likewise.
61972         * modules/regex (Depends-on): Depend on wchar.
61973         * lib/regex_internal.h: Assume <wchar.h>.
61974         * m4/regex.m4: Likewise.
61975         * modules/stdint (Depends-on): Depend on wchar.
61976         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61977         * m4/stdint.m4: Likewise.
61978         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61979         * modules/strftime (Depends-on): Depend on wchar.
61980         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61981         * modules/strtol (Depends-on): Depend on wchar.
61982         * lib/strtol.c: Assume <wchar.h>.
61983         * modules/wcwidth (Depends-on): Depend on wchar.
61984         * lib/wcwidth.h: Assume <wchar.h>.
61985         * m4/wcwidth.m4: Likewise.
61986
61987 2007-01-16  Bruno Haible  <bruno@clisp.org>
61988
61989         * modules/csharpexec-script: New, created from...
61990         * modules/csharpexec: ... this.
61991
61992 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61993
61994         * modules/javaexec-script: New, created from...
61995         * modules/javaexec: ... this.
61996
61997 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61998
61999         * modules/poll (Dependencies): Add sys_select.
62000
62001 2007-01-15  Jim Meyering  <jim@meyering.net>
62002
62003         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62004         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62005         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62006         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62007
62008 2007-01-15  Bruno Haible  <bruno@clisp.org>
62009
62010         * modules/striconveh: New file.
62011         * lib/striconveh.h: New file.
62012         * lib/striconveh.c: New file.
62013         * MODULES.html.sh (Internationalization functions): Add striconveh.
62014
62015         * modules/striconveh-tests: New file.
62016         * tests/test-striconveh.c: New file.
62017
62018 2007-01-15  Bruno Haible  <bruno@clisp.org>
62019
62020         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62021         not from GNU libiconv or GNU libc.
62022
62023 2007-01-15  Bruno Haible  <bruno@clisp.org>
62024
62025         * doc/gnulib-intro.texi (Copyright): Explain the different license
62026         terms for module descriptions, autoconf macros, tests, documentation.
62027
62028 2007-01-14  Bruno Haible  <bruno@clisp.org>
62029
62030         * modules/striconv-tests: New file.
62031         * tests/test-striconv.c: New file.
62032
62033 2007-01-14  Bruno Haible  <bruno@clisp.org>
62034
62035         * modules/iconv-tests: New file.
62036         * tests/test-iconv.c: New file.
62037
62038 2007-01-14  Bruno Haible  <bruno@clisp.org>
62039
62040         * gnulib-tool (func_get_license): For test modules, use the license of
62041         the main module.
62042
62043 2007-01-14  Bruno Haible  <bruno@clisp.org>
62044
62045         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62046         if iconv is found to exist.
62047
62048 2007-01-14  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/c-ctype-tests: New file.
62051         * tests/test-c-ctype.c: New file.
62052
62053 2007-01-14  Bruno Haible  <bruno@clisp.org>
62054
62055         * modules/binary-io-tests: New file.
62056         * tests/test-binary-io.sh: New file.
62057         * tests/test-binary-io.c: New file.
62058
62059 2007-01-14  Bruno Haible  <bruno@clisp.org>
62060
62061         * modules/array-oset-tests: New file.
62062         * tests/test-array_oset.c: New file.
62063
62064 2007-01-14  Bruno Haible  <bruno@clisp.org>
62065
62066         * modules/array-list-tests: New file.
62067         * tests/test-array_list.c: New file.
62068
62069 2007-01-14  Bruno Haible  <bruno@clisp.org>
62070
62071         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62072         and make.
62073         Reported by Simon Josefsson in
62074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62075
62076 2007-01-14  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/allocsa-tests: New file.
62079         * tests/test-allocsa.c: New file.
62080
62081 2007-01-14  Bruno Haible  <bruno@clisp.org>
62082
62083         * modules/fchdir (Depends-on): Add absolute-header.
62084         * modules/unistd (Depends-on): Likewise.
62085
62086 2006-12-30  Bruno Haible  <bruno@clisp.org>
62087
62088         * modules/fchdir: New file.
62089         * modules/unistd (Files): Add lib/unistd_.h.
62090         (Makefile.am): Generate unistd.h from unistd_.h.
62091         * lib/fchdir.c: New file.
62092         * lib/dirent_.h: New file.
62093         * lib/unistd_.h: New file.
62094         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62095         * m4/fchdir.m4: New file.
62096         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62097         (gl_HEADER_UNISTD): Invoke it.
62098         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62099         function.
62100         * lib/backupfile.c (opendir, closedir): Undefine.
62101         * lib/chown.c (open, close): Undefine.
62102         * lib/clean-temp.c (open, close): Undefine.
62103         * lib/copy-file.c (open, close): Undefine.
62104         * lib/execute.c (open, close): Undefine.
62105         * lib/fsusage.c (open, close): Undefine.
62106         * lib/gc-gnulib.c (open, close): Undefine.
62107         * lib/getcwd.c (opendir, closedir): Undefine.
62108         * lib/glob.c (opendir, closedir): Undefine.
62109         * lib/javacomp.c (open, close): Undefine.
62110         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62111         * lib/openat-proc.c (open, close): Undefine.
62112         * lib/pagealign_alloc.c (open, close): Undefine.
62113         * lib/pipe.c (open, close): Undefine.
62114         * lib/progreloc.c (open, close): Undefine.
62115         * lib/savedir.c (opendir, closedir): Undefine.
62116         * lib/utime.c (open, close): Undefine.
62117         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62118
62119 2007-01-10  Bruno Haible  <bruno@clisp.org>
62120
62121         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62122
62123 2007-01-12  Eric Blake  <ebb9@byu.net>
62124
62125         Provide a robust <wchar.h>.  Further simplifications are now
62126         possible in other modules, but not included here.
62127         * modules/wchar: New module.
62128         * m4/wchar.m4: New file.
62129         * lib/wchar_.h: Likewise.
62130         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62131         of the new module.
62132         * MODULES.html.sh (Extended multibyte and wide character utilities):
62133         New section.
62134
62135 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62136
62137         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62138         to a reasonable default for memory allocation.
62139         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62140         file system that reports garbage st_size values for symlinks.
62141         Problem reported by Liyang Hu.
62142
62143 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62144
62145         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62146         Emacs .#* auto-save files).
62147
62148 2007-01-11  Bruno Haible  <bruno@clisp.org>
62149
62150         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62151         directory.
62152
62153 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62154
62155         Use @...@ consistently in lib/wctype_.h.
62156         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62157         on it being set to 1 or 0.
62158         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62159         go back to AC_SUBSTing it.
62160         * modules/wctype (Makefile.am): Undo previous change.
62161
62162 2007-01-10  Eric Blake  <ebb9@byu.net>
62163
62164         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62165         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62166         * modules/wctype (Makefile.am): Likewise.
62167         Reported by Chris McGuire.
62168
62169 2007-01-10  Jim Meyering  <jim@meyering.net>
62170
62171         fts.c: a small readability/maintainability improvement
62172         * lib/fts.c (fts_read): Make this code slightly more readable and
62173         maintainable by hoisting the "sp->fts_cur = p" assignments to
62174         immediately follow the statements that set P.  Derived from
62175         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62176
62177 2007-01-10  Eric Blake  <ebb9@byu.net>
62178
62179         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62180         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62181         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62182         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62183         Reported by Chris McGuire.
62184
62185 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62186
62187         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62188         in sed script.
62189
62190 2007-01-09  Bruno Haible  <bruno@clisp.org>
62191
62192         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62193         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62194         variables.
62195         (func_module): Use them.
62196
62197 2007-01-09  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/unistr/base: New file.
62200         * lib/unistr.h: New file.
62201
62202         * modules/unistr/u8-to-u16: New file.
62203         * lib/unistr/u8-to-u16.c: New file.
62204
62205         * modules/unistr/u8-to-u32: New file.
62206         * lib/unistr/u8-to-u32.c: New file.
62207
62208         * modules/unistr/u16-to-u8: New file.
62209         * lib/unistr/u16-to-u8.c: New file.
62210
62211         * modules/unistr/u16-to-u32: New file.
62212         * lib/unistr/u16-to-u32.c: New file.
62213
62214         * modules/unistr/u32-to-u8: New file.
62215         * lib/unistr/u32-to-u8.c: New file.
62216
62217         * modules/unistr/u32-to-u16: New file.
62218         * lib/unistr/u32-to-u16.c: New file.
62219
62220         * modules/unistr/u8-check: New file.
62221         * modules/unistr/u16-check: New file.
62222         * modules/unistr/u32-check: New file.
62223         * lib/unistr/u8-check.c: New file.
62224         * lib/unistr/u16-check.c: New file.
62225         * lib/unistr/u32-check.c: New file.
62226
62227         * modules/unistr/u8-chr: New file.
62228         * modules/unistr/u16-chr: New file.
62229         * modules/unistr/u32-chr: New file.
62230         * lib/unistr/u8-chr.c: New file.
62231         * lib/unistr/u16-chr.c: New file.
62232         * lib/unistr/u32-chr.c: New file.
62233
62234         * modules/unistr/u8-cmp: New file.
62235         * modules/unistr/u16-cmp: New file.
62236         * modules/unistr/u32-cmp: New file.
62237         * lib/unistr/u8-cmp.c: New file.
62238         * lib/unistr/u16-cmp.c: New file.
62239         * lib/unistr/u32-cmp.c: New file.
62240
62241         * modules/unistr/u8-cpy: New file.
62242         * modules/unistr/u16-cpy: New file.
62243         * modules/unistr/u32-cpy: New file.
62244         * lib/unistr/u8-cpy.c: New file.
62245         * lib/unistr/u16-cpy.c: New file.
62246         * lib/unistr/u32-cpy.c: New file.
62247         * lib/unistr/u-cpy.h: New file.
62248
62249         * modules/unistr/u8-cpy-alloc: New file.
62250         * modules/unistr/u16-cpy-alloc: New file.
62251         * modules/unistr/u32-cpy-alloc: New file.
62252         * lib/unistr/u8-cpy-alloc.c: New file.
62253         * lib/unistr/u16-cpy-alloc.c: New file.
62254         * lib/unistr/u32-cpy-alloc.c: New file.
62255         * lib/unistr/u-cpy-alloc.h: New file.
62256
62257         * modules/unistr/u8-endswith: New file.
62258         * modules/unistr/u16-endswith: New file.
62259         * modules/unistr/u32-endswith: New file.
62260         * lib/unistr/u8-endswith.c: New file.
62261         * lib/unistr/u16-endswith.c: New file.
62262         * lib/unistr/u32-endswith.c: New file.
62263         * lib/unistr/u-endswith.h: New file.
62264
62265         * modules/unistr/u8-mblen: New file.
62266         * modules/unistr/u16-mblen: New file.
62267         * modules/unistr/u32-mblen: New file.
62268         * lib/unistr/u8-mblen.c: New file.
62269         * lib/unistr/u16-mblen.c: New file.
62270         * lib/unistr/u32-mblen.c: New file.
62271
62272         * modules/unistr/u8-mbtouc: New file.
62273         * modules/unistr/u16-mbtouc: New file.
62274         * modules/unistr/u32-mbtouc: New file.
62275         * lib/unistr/u8-mbtouc.c: New file.
62276         * lib/unistr/u16-mbtouc.c: New file.
62277         * lib/unistr/u32-mbtouc.c: New file.
62278
62279         * modules/unistr/u8-mbtouc-safe: New file.
62280         * modules/unistr/u16-mbtouc-safe: New file.
62281         * modules/unistr/u32-mbtouc-safe: New file.
62282         * lib/unistr/u8-mbtouc-safe.c: New file.
62283         * lib/unistr/u16-mbtouc-safe.c: New file.
62284         * lib/unistr/u32-mbtouc-safe.c: New file.
62285
62286         * modules/unistr/u8-move: New file.
62287         * modules/unistr/u16-move: New file.
62288         * modules/unistr/u32-move: New file.
62289         * lib/unistr/u8-move.c: New file.
62290         * lib/unistr/u16-move.c: New file.
62291         * lib/unistr/u32-move.c: New file.
62292         * lib/unistr/u-move.h: New file.
62293
62294         * modules/unistr/u8-next: New file.
62295         * modules/unistr/u16-next: New file.
62296         * modules/unistr/u32-next: New file.
62297         * lib/unistr/u8-next.c: New file.
62298         * lib/unistr/u16-next.c: New file.
62299         * lib/unistr/u32-next.c: New file.
62300
62301         * modules/unistr/u8-prev: New file.
62302         * modules/unistr/u16-prev: New file.
62303         * modules/unistr/u32-prev: New file.
62304         * lib/unistr/u8-prev.c: New file.
62305         * lib/unistr/u16-prev.c: New file.
62306         * lib/unistr/u32-prev.c: New file.
62307
62308         * modules/unistr/u8-set: New file.
62309         * modules/unistr/u16-set: New file.
62310         * modules/unistr/u32-set: New file.
62311         * lib/unistr/u8-set.c: New file.
62312         * lib/unistr/u16-set.c: New file.
62313         * lib/unistr/u32-set.c: New file.
62314         * lib/unistr/u-set.h: New file.
62315
62316         * modules/unistr/u8-startswith: New file.
62317         * modules/unistr/u16-startswith: New file.
62318         * modules/unistr/u32-startswith: New file.
62319         * lib/unistr/u8-startswith.c: New file.
62320         * lib/unistr/u16-startswith.c: New file.
62321         * lib/unistr/u32-startswith.c: New file.
62322         * lib/unistr/u-startswith.h: New file.
62323
62324         * modules/unistr/u8-stpcpy: New file.
62325         * modules/unistr/u16-stpcpy: New file.
62326         * modules/unistr/u32-stpcpy: New file.
62327         * lib/unistr/u8-stpcpy.c: New file.
62328         * lib/unistr/u16-stpcpy.c: New file.
62329         * lib/unistr/u32-stpcpy.c: New file.
62330         * lib/unistr/u-stpcpy.h: New file.
62331
62332         * modules/unistr/u8-stpncpy: New file.
62333         * modules/unistr/u16-stpncpy: New file.
62334         * modules/unistr/u32-stpncpy: New file.
62335         * lib/unistr/u8-stpncpy.c: New file.
62336         * lib/unistr/u16-stpncpy.c: New file.
62337         * lib/unistr/u32-stpncpy.c: New file.
62338         * lib/unistr/u-stpncpy.h: New file.
62339
62340         * modules/unistr/u8-strcat: New file.
62341         * modules/unistr/u16-strcat: New file.
62342         * modules/unistr/u32-strcat: New file.
62343         * lib/unistr/u8-strcat.c: New file.
62344         * lib/unistr/u16-strcat.c: New file.
62345         * lib/unistr/u32-strcat.c: New file.
62346         * lib/unistr/u-strcat.h: New file.
62347
62348         * modules/unistr/u8-strchr: New file.
62349         * modules/unistr/u16-strchr: New file.
62350         * modules/unistr/u32-strchr: New file.
62351         * lib/unistr/u8-strchr.c: New file.
62352         * lib/unistr/u16-strchr.c: New file.
62353         * lib/unistr/u32-strchr.c: New file.
62354
62355         * modules/unistr/u8-strcmp: New file.
62356         * modules/unistr/u16-strcmp: New file.
62357         * modules/unistr/u32-strcmp: New file.
62358         * lib/unistr/u8-strcmp.c: New file.
62359         * lib/unistr/u16-strcmp.c: New file.
62360         * lib/unistr/u32-strcmp.c: New file.
62361
62362         * modules/unistr/u8-strcpy: New file.
62363         * modules/unistr/u16-strcpy: New file.
62364         * modules/unistr/u32-strcpy: New file.
62365         * lib/unistr/u8-strcpy.c: New file.
62366         * lib/unistr/u16-strcpy.c: New file.
62367         * lib/unistr/u32-strcpy.c: New file.
62368         * lib/unistr/u-strcpy.h: New file.
62369
62370         * modules/unistr/u8-strcspn: New file.
62371         * modules/unistr/u16-strcspn: New file.
62372         * modules/unistr/u32-strcspn: New file.
62373         * lib/unistr/u8-strcspn.c: New file.
62374         * lib/unistr/u16-strcspn.c: New file.
62375         * lib/unistr/u32-strcspn.c: New file.
62376         * lib/unistr/u-strcspn.h: New file.
62377
62378         * modules/unistr/u8-strdup: New file.
62379         * modules/unistr/u16-strdup: New file.
62380         * modules/unistr/u32-strdup: New file.
62381         * lib/unistr/u8-strdup.c: New file.
62382         * lib/unistr/u16-strdup.c: New file.
62383         * lib/unistr/u32-strdup.c: New file.
62384         * lib/unistr/u-strdup.h: New file.
62385
62386         * modules/unistr/u8-strlen: New file.
62387         * modules/unistr/u16-strlen: New file.
62388         * modules/unistr/u32-strlen: New file.
62389         * lib/unistr/u8-strlen.c: New file.
62390         * lib/unistr/u16-strlen.c: New file.
62391         * lib/unistr/u32-strlen.c: New file.
62392         * lib/unistr/u-strlen.h: New file.
62393
62394         * modules/unistr/u8-strmblen: New file.
62395         * modules/unistr/u16-strmblen: New file.
62396         * modules/unistr/u32-strmblen: New file.
62397         * lib/unistr/u8-strmblen.c: New file.
62398         * lib/unistr/u16-strmblen.c: New file.
62399         * lib/unistr/u32-strmblen.c: New file.
62400
62401         * modules/unistr/u8-strmbtouc: New file.
62402         * modules/unistr/u16-strmbtouc: New file.
62403         * modules/unistr/u32-strmbtouc: New file.
62404         * lib/unistr/u8-strmbtouc.c: New file.
62405         * lib/unistr/u16-strmbtouc.c: New file.
62406         * lib/unistr/u32-strmbtouc.c: New file.
62407
62408         * modules/unistr/u8-strncat: New file.
62409         * modules/unistr/u16-strncat: New file.
62410         * modules/unistr/u32-strncat: New file.
62411         * lib/unistr/u8-strncat.c: New file.
62412         * lib/unistr/u16-strncat.c: New file.
62413         * lib/unistr/u32-strncat.c: New file.
62414         * lib/unistr/u-strncat.h: New file.
62415
62416         * modules/unistr/u8-strncmp: New file.
62417         * modules/unistr/u16-strncmp: New file.
62418         * modules/unistr/u32-strncmp: New file.
62419         * lib/unistr/u8-strncmp.c: New file.
62420         * lib/unistr/u16-strncmp.c: New file.
62421         * lib/unistr/u32-strncmp.c: New file.
62422
62423         * modules/unistr/u8-strncpy: New file.
62424         * modules/unistr/u16-strncpy: New file.
62425         * modules/unistr/u32-strncpy: New file.
62426         * lib/unistr/u8-strncpy.c: New file.
62427         * lib/unistr/u16-strncpy.c: New file.
62428         * lib/unistr/u32-strncpy.c: New file.
62429         * lib/unistr/u-strncpy.h: New file.
62430
62431         * modules/unistr/u8-strnlen: New file.
62432         * modules/unistr/u16-strnlen: New file.
62433         * modules/unistr/u32-strnlen: New file.
62434         * lib/unistr/u8-strnlen.c: New file.
62435         * lib/unistr/u16-strnlen.c: New file.
62436         * lib/unistr/u32-strnlen.c: New file.
62437         * lib/unistr/u-strnlen.h: New file.
62438
62439         * modules/unistr/u8-strpbrk: New file.
62440         * modules/unistr/u16-strpbrk: New file.
62441         * modules/unistr/u32-strpbrk: New file.
62442         * lib/unistr/u8-strpbrk.c: New file.
62443         * lib/unistr/u16-strpbrk.c: New file.
62444         * lib/unistr/u32-strpbrk.c: New file.
62445         * lib/unistr/u-strpbrk.h: New file.
62446
62447         * modules/unistr/u8-strrchr: New file.
62448         * modules/unistr/u16-strrchr: New file.
62449         * modules/unistr/u32-strrchr: New file.
62450         * lib/unistr/u8-strrchr.c: New file.
62451         * lib/unistr/u16-strrchr.c: New file.
62452         * lib/unistr/u32-strrchr.c: New file.
62453
62454         * modules/unistr/u8-strspn: New file.
62455         * modules/unistr/u16-strspn: New file.
62456         * modules/unistr/u32-strspn: New file.
62457         * lib/unistr/u8-strspn.c: New file.
62458         * lib/unistr/u16-strspn.c: New file.
62459         * lib/unistr/u32-strspn.c: New file.
62460         * lib/unistr/u-strspn.h: New file.
62461
62462         * modules/unistr/u8-strstr: New file.
62463         * modules/unistr/u16-strstr: New file.
62464         * modules/unistr/u32-strstr: New file.
62465         * lib/unistr/u8-strstr.c: New file.
62466         * lib/unistr/u16-strstr.c: New file.
62467         * lib/unistr/u32-strstr.c: New file.
62468         * lib/unistr/u-strstr.h: New file.
62469
62470         * modules/unistr/u8-strtok: New file.
62471         * modules/unistr/u16-strtok: New file.
62472         * modules/unistr/u32-strtok: New file.
62473         * lib/unistr/u8-strtok.c: New file.
62474         * lib/unistr/u16-strtok.c: New file.
62475         * lib/unistr/u32-strtok.c: New file.
62476         * lib/unistr/u-strtok.h: New file.
62477
62478         * modules/unistr/u8-uctomb: New file.
62479         * modules/unistr/u16-uctomb: New file.
62480         * modules/unistr/u32-uctomb: New file.
62481         * lib/unistr/u8-uctomb.c: New file.
62482         * lib/unistr/u16-uctomb.c: New file.
62483         * lib/unistr/u32-uctomb.c: New file.
62484
62485         * MODULES.html.sh (Unicode string functions): Add the new modules.
62486
62487 2007-01-08  Bruno Haible  <bruno@clisp.org>
62488
62489         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62490         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62491         subdirectories.
62492
62493 2007-01-08  Karl Berry  <karl@gnu.org>
62494
62495         * doc/error.texi: mention that main() fns must set program_name
62496         when progname is used.
62497
62498 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62501         WCTYPE_H is empty, for the benefit of builds from non-distclean
62502         directories.  Problem reported by Eric Blake in
62503         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62504
62505 2007-01-08  Bruno Haible  <bruno@clisp.org>
62506
62507         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62508         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62509         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62510         PROVIDE_CANONICALIZE_FILENAME_MODE.
62511         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62512
62513 2007-01-08  Bruno Haible  <bruno@clisp.org>
62514
62515         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62516         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62517         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62518         * lib/fts.c: Likewise.
62519         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62520
62521 2006-12-25  Bruno Haible  <bruno@clisp.org>
62522
62523         * modules/utf8-ucs4-safe: New file.
62524         * lib/utf8-ucs4-safe.h: New file.
62525         * lib/unistr/utf8-ucs4-safe.c: New file.
62526
62527         * modules/utf16-ucs4-safe: New file.
62528         * lib/utf16-ucs4-safe.h: New file.
62529         * lib/unistr/utf16-ucs4-safe.c: New file.
62530
62531         * MODULES.html.sh (Unicode string functions): Add the new modules.
62532
62533 2007-01-08  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62536         (Depends-on): Add unitypes.
62537         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62538         (u8_mbtouc_aux): Move out to separate file.
62539         (u8_mbtouc): Use ucs4_t, uint8_t types.
62540         * lib/unistr/utf8-ucs4.c: New file.
62541
62542         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62543         (Depends-on): Add unitypes.
62544         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62545         (u16_mbtouc_aux): Move out to separate file.
62546         (u16_mbtouc): Use ucs4_t, uint16_t types.
62547         * lib/unistr/utf16-ucs4.c: New file.
62548
62549         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62550         (Depends-on): Add unitypes.
62551         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62552         (u8_uctomb_aux): Move out to separate file.
62553         (u8_uctomb): Use ucs4_t, uint8_t types.
62554         * lib/unistr/ucs4-utf8.c: New file.
62555
62556         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62557         (Depends-on): Add unitypes.
62558         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62559         (u16_uctomb_aux): Move out to separate file.
62560         (u16_uctomb): Use ucs4_t, uint16_t types.
62561         * lib/unistr/ucs4-utf16.c: New file.
62562
62563 2006-12-25  Bruno Haible  <bruno@clisp.org>
62564
62565         * modules/unitypes: New file.
62566         * lib/unitypes.h: New file.
62567         * MODULES.html.sh (func_all_modules): New section "Unicode string
62568         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62569         this section. Add unitypes.
62570
62571 2007-01-08  Bruno Haible  <bruno@clisp.org>
62572
62573         Avoid variable names that conflict with those from libtool.
62574         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62575         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62576         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62577         library_names_spec to acl_library_names_spec, hardcode_* to
62578         acl_hardcode_*.
62579         Reported by Ralf Wildenhues.
62580
62581 2007-01-08  Bruno Haible  <bruno@clisp.org>
62582
62583         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62584         definition.
62585         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62586         definition.
62587         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62588         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62589         definition.
62590         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62591         definition.
62592         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62593         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62594         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62595         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62596         definition.
62597         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62598         definition.
62599         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62600         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62601         GC_USE_<algorithm>.
62602         * lib/gc-libgcrypt.c: Likewise.
62603         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62604         * modules/gc-arctwo (configure.ac): Likewise.
62605         * modules/gc-des (configure.ac): Likewise.
62606         * modules/gc-hmac-md5 (configure.ac): Likewise.
62607         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62608         * modules/gc-md2 (configure.ac): Likewise.
62609         * modules/gc-md4 (configure.ac): Likewise.
62610         * modules/gc-md5 (configure.ac): Likewise.
62611         * modules/gc-random (configure.ac): Likewise.
62612         * modules/gc-rijndael (configure.ac): Likewise.
62613         * modules/gc-sha1 (configure.ac): Likewise.
62614
62615 2007-01-08  Bruno Haible  <bruno@clisp.org>
62616
62617         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62618         macro definition.
62619         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62620         definition.
62621         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62622         definition.
62623         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62624         * modules/fcntl-safer (configure.ac): Likewise.
62625         * modules/fopen-safer (configure.ac): Likewise.
62626         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62627         GNULIB_FWRITEERROR macro definition.
62628
62629 2007-01-08  Bruno Haible  <bruno@clisp.org>
62630
62631         * m4/gnulib-common.m4: New file.
62632         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62633         (func_get_filelist): Add m4/gnulib-common.m4.
62634
62635 2007-01-08  Bruno Haible  <bruno@clisp.org>
62636
62637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62638         command.
62639
62640 2007-01-08  Jim Meyering  <jim@meyering.net>
62641
62642         Use a more robust test for a "can't happen" condition.
62643         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62644         narrowed the st_size value.  Presuming the "can't happen" condition
62645         is true, that narrowing could conceivably convert an invalid st_size
62646         value into a valid one.  Instead, use a change based on Matthew
62647         Woehlke's original patch.
62648
62649         Slight readability improvement: use an assert-like macro
62650         in place of literal "abort ()" uses.
62651         * lib/fts.c (fts_assert): Define.
62652         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62653         Use this macro instead of a bare 'abort'.
62654
62655 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62658         simply work around them.
62659         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62660         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62661         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62662         declaring.
62663         Don't bother to define as macros, since the standard doesn't require it.
62664         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62665         longer worry about IRIX 5.3.
62666         (HAVE_WCTYPE_CTMP_BUG): Remove.
62667
62668 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62669
62670         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62671         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62672         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62673         Problems reported by Georg Schwarz for IRIX 5.3.
62674
62675         * gnulib-tool (autoconf_minversion): Take the maximum version number
62676         found, not the minimum.  Problem reported by James Youngman.
62677
62678 2007-01-03  Karl Berry  <karl@gnu.org>
62679
62680         * doc/error.texi: new file, explaining interaction with progname.
62681         * doc/gnulib.texi: include it.  Update copyright.
62682
62683 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62684
62685         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62686         AC_CANONICAL_HOST, to improve autobuild outputs.
62687
62688 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62689             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62690
62691         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62692         sockets, server sockets, and other file descriptors.  Count errors
62693         to compute the return value.  Reorder the code a bit to be easier
62694         to follow.  Don't set event bits that were not requested (except
62695         POLLERR and POLLHUP).
62696
62697 2007-01-01  Bruno Haible  <bruno@clisp.org>
62698
62699         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62700
62701 2007-01-03  Jim Meyering  <jim@meyering.net>
62702
62703         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62704
62705 2007-01-02  Bruno Haible  <bruno@clisp.org>
62706
62707         * modules/settime (Include): Require timespec.h.
62708         * modules/nanosleep (Include): Likewise.
62709
62710 2007-01-01  Bruno Haible  <bruno@clisp.org>
62711
62712         * gnulib-tool (func_emit_copyright_notice): Bump year.
62713         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62714
62715 2007-01-01  Bruno Haible  <bruno@clisp.org>
62716
62717         Improve support for OpenBSD.
62718         * build-aux/config.rpath (libname_spec): Export.
62719         (library_names_spec): New variable. Export.
62720         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62721         library_names_spec from the config.rpath output. Locate shared library
62722         through the name pattern in library_names_spec.
62723
62724 2007-01-01  Eric Blake  <ebb9@byu.net>
62725
62726         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62727
62728 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62729
62730         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62731         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62732         assume the C locale, and avoid an "eval" that could cause trouble.
62733         Problem with SORT reported by Bob Proulx.
62734
62735         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62736         Define.  Trivial patch from Henning Nielsen Lund, originally
62737         sent to bug-grep@gnu.org today.
62738
62739 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62742         struct stat.  Problem reported by Henning Nielsen Lund.
62743         * lib/acl.c: Include acl.h first, to check interface.  Don't
62744         bother to include sys/types.h and sys/stat.h again.
62745
62746 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62747
62748         Import the following change from libc; problem reported by
62749         Sven Verdoolaege.
62750
62751         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62752
62753         [BZ #1373]
62754         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62755
62756 2006-12-28  Jim Meyering  <jim@meyering.net>
62757
62758         * build-aux/announce-gen: Do not assume that the package
62759         builds any of tar.gz, tar.bz2, and .xdelta files.
62760         Suggestion from Simon Josefsson.
62761
62762 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62763
62764         * modules/announce-gen: New file.
62765
62766 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62767
62768         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62769         handles its gotchas now.
62770         * lib/mbswidth.c: Likewise.
62771         * lib/wcwidth.h: Likewise.
62772         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62773         and iswcntrl; the wctype module does this stuff now.
62774         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62776         * modules/mbchar (Depends-on): Add wctype.
62777         * modules/mbswidth (Depends-on): Likewise.
62778         * modules/wcwidth (Depends-on): Likewise.
62779
62780 2006-12-27  Eric Blake  <ebb9@byu.net>
62781
62782         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62783         module uses more than what <wctype.h> is required to provide.
62784
62785 2006-12-26  Eric Blake  <ebb9@byu.net>
62786
62787         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62788
62789 2006-12-26  Eric Blake  <ebb9@byu.net>
62790
62791         * modules/absolute-header: New module.
62792         * modules/fcntl (Depends-on): Depend on it.
62793         * modules/inttypes (Depends-on): Likewise.
62794         * modules/stdint (Depends-on): Likewise.
62795         * modules/sys_stat (Depends-on): Likewise.
62796         * modules/wctype (Depends-on): Likewise.
62797         * MODULES.html.sh (Support for building libraries and
62798         executables): Document it.
62799
62800 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * gnulib-tool (SED): Remove, undoing previous change.
62803         The problem was that it broke coreutils on Solaris, because
62804         "sed --posix" leaked into a makefile.
62805         (sed): New alias, if 'alias' and GNU sed.
62806
62807 2006-12-24  Jim Meyering  <jim@meyering.net>
62808
62809         Work around an fchownat bug in glibc-2.4:
62810         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62811         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62812         in spite of the -P option.
62813         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62814         New macros.
62815         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62816         * modules/openat (Files): Add lib/fchownat.c.
62817         * lib/openat.c (fchownat): Don't define here.  Move to...
62818         * lib/fchownat.c: ...this new file.
62819
62820 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62821
62822         Fix bug reported by Bruno Haible in
62823         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62824         where quotearg.c didn't compile on Mac OS X 10.2 because it
62825         lacks <wchar.h> and wint_t.
62826         * lib/wctype_.h (__wctype_wint_t): New type.
62827         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62828         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62829         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62830         Arg is now of type __wctype_wint_t, not wint_t.
62831         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62832         substitute HAVE_WINT_T.
62833         * modules/wctype (Files): Add m4/wint_t.m4.
62834         (wctype.h): Substitute HAVE_WINT_T.
62835
62836 2006-12-23  Bruno Haible  <bruno@clisp.org>
62837
62838         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62839
62840 2006-12-23  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62843         S_ISLNK.
62844         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62845         mingw.
62846
62847 2006-12-22  Bruno Haible  <bruno@clisp.org>
62848
62849         * lib/copy-file.c: Include acl.h.
62850         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62851         Close the file descriptors only after being done with copy_acl.
62852         * modules/copy-file (Depends-on): Add acl.
62853
62854 2006-12-22  Bruno Haible  <bruno@clisp.org>
62855
62856         * gnulib-tool (SED): New variable.
62857         Use $SED instead of sed everywhere.
62858
62859 2006-12-22  Bruno Haible  <bruno@clisp.org>
62860
62861         * modules/no-c++: New file.
62862         * m4/no-c++.m4: New file.
62863         * MODULES.html.sh (Support for building libraries and executables):
62864         Add no-c++.
62865
62866 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62867
62868         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62869         Include <limits.h>, and use its INT_MAX to rewrite the
62870         j loop so that it does not overflow 'int'.  Problem reported by
62871         Ralf Wildenhues in
62872         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62873         Play it safe by shifting left by 1 rather than multiplying by 2,
62874         as GCC is less likely to optimize this away when the value
62875         is signed (when it assumes overflow leads to undefined behavior).
62876         Also, don't assume time_t uses two's complement.
62877
62878 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62879
62880         * MODULES.html.sh: New module wctype.
62881         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62882         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62883         <wctype.h>, since the new wctype module should fix this.
62884         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62885         the wctype module should arrange for it.
62886         * lib/regex_internal.h: Likewise.
62887         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62888         since the wctype module should handle this now.
62889         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62890         * modules/fnmatch (Depends-on): Add wctype.
62891         * modules/quotearg (Depends-on): Likewise.
62892         * modules/regex (Depends-on): Likewise.
62893
62894 2006-12-19  Bruno Haible  <bruno@clisp.org>
62895
62896         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62897         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62898
62899 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62900
62901         * modules/savewd (Depends-on): Fix dependency on fcntl.
62902
62903 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62904
62905         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62906         conforms to C99, rather than relying on the user's environment
62907         setting of STDINT_H.
62908
62909 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62910         and Eric Blake  <ebb9@byu.net>
62911
62912         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62913         This is more consistent with the other defines here.
62914         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62915         Port to z/OS.  Problem reported by Paul Gilmartin.
62916         Change local vars to use gl_ prefix rather than ac_.
62917         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62918         with other defines.
62919         * modules/double-slash-root: New module.
62920         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62921         (Depends-on): Add double-slash-root.
62922         * MODULES.html.sh (File system functions): Mention new module.
62923
62924 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62925
62926         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62927         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62928         This is for the benefit of gzip, which doesn't do i18n.
62929
62930 2006-12-12  Jim Meyering  <jim@meyering.net>
62931
62932         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62933         Reported by Andreas Schwab <schwab@suse.de>.
62934
62935 2006-12-12  Bruno Haible  <bruno@clisp.org>
62936
62937         Merge these changes.
62938         2006-09-05  Bruno Haible  <bruno@clisp.org>
62939         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62940         iconv_alloc succeeded.
62941         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62942         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62943         test for " && dest " at the end - dest is always != NULL there. Call
62944         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62945         with 2xNULL arguments, also to flush the state storage. Handle the
62946         IRIX iconv behaviour. Realloc the final result, to throw away unused
62947         memory.
62948
62949 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62950
62951         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62952         and fchmodat unconditionally, since glibc 2.4 has them.
62953         Problem reported by Arkadiusz Miskiewicz.
62954
62955 2006-12-10  Bruno Haible  <bruno@clisp.org>
62956
62957         * gnulib-tool (func_import): Show the include files only for those
62958         modules that are copied and specified.
62959         Reported by Karl Berry.
62960
62961 2006-12-08  Jim Meyering  <jim@meyering.net>
62962
62963         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62964         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62965
62966         * build-aux/announce-gen: Add two new options, both optional:
62967         --bootstrap-tools=TOOL_LIST
62968               a comma-separated list of tools, e.g.,
62969               autoconf,automake,bison,gnulib
62970         --gnulib-snapshot-date=DATE
62971               if gnulib is in the bootstrap tool list,
62972               then report this as the snapshot date.
62973               If not specified, use the current date/time.
62974               If you specify a date here, be sure it's UTC.
62975
62976 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62977
62978         * tests/test-argp-2.sh: Fix test to match actual output.
62979         (func_compare): Fix sed script to be portable.
62980
62981 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62982
62983         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62984         workaround for this case.  It is not autoconfigured now; offhand
62985         it's hard to see how to autoconfigure it.
62986
62987 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62988
62989         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62990         a directory that is about to be chowned.  Such a directory's
62991         initial file permissions should permit the owner only and this
62992         should not be changed until after the chown, since the group and
62993         other bits would be incorrect if they granted permission before
62994         the chown.
62995
62996         Fix porting problem for iswctype reported by Georg Schwarz in:
62997         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62998         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62999         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63000         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63001         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63002
63003 2006-12-03  Jim Meyering  <jim@meyering.net>
63004
63005         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63006         p->fts_statp may not yet be defined.
63007         (fts_read): Instead, set it in the caller, once p->fts_statp is
63008         sure to be defined, and corresponds to a top-level directory.
63009         This bug made du -x fail.  Here's the coreutils test case:
63010         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63011         Reported by Mike Frysinger.
63012
63013 2006-12-01  Jim Meyering  <jim@meyering.net>
63014
63015         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63016         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63017         Reported by Simon Josefsson.
63018
63019 2006-11-30  Jim Meyering  <jim@meyering.net>
63020
63021         * m4/warning.m4: Use the all-permissive copyright notice
63022         recommended by RMS (rather than LGPL).
63023         * m4/vararrays.m4: Likewise.
63024         * m4/flexmember.m4: Likewise.
63025
63026 2006-11-29  Bruno Haible  <bruno@clisp.org>
63027
63028         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63029         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63030         using +=.
63031         Reported by Simon Josefsson <simon@josefsson.org>.
63032
63033 2006-11-28  James Youngman <jay@gnu.org>
63034
63035         * README: Advise users that they might find the bug-gnulib@gnu.org
63036         and autotools-announce@gnu.org mailing lists useful.
63037
63038 2006-11-28  Bruno Haible  <bruno@clisp.org>
63039
63040         * m4/ptrdiff_max.m4: Remove file.
63041
63042 2006-11-21  Bruno Haible  <bruno@clisp.org>
63043
63044         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63045         _AC_COMPUTE_INT.
63046         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63047         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63048         _AC_COMPUTE_INT.
63049         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63050         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63051         _AC_COMPUTE_INT.
63052         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63053
63054 2006-11-28  Jim Meyering  <jim@meyering.net>
63055
63056         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63057         warning from "gcc -Wshadow" about shadowing the builtin.
63058
63059 2006-11-27  Bruno Haible  <bruno@clisp.org>
63060
63061         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63062         _AC_COMPUTE_INT.
63063         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63064
63065 2006-11-27  Bruno Haible  <bruno@clisp.org>
63066             Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63069
63070 2006-11-26  Bruno Haible  <bruno@clisp.org>
63071
63072         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63073         noinst_LTLIBRARIES.
63074
63075 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63076             Bruno Haible  <bruno@clisp.org>
63077
63078         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63079         if compiling with "gcc -ansi".
63080
63081 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63082
63083         Fix some incompatibilities with gcc -ansi -pedantic.
63084         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63085         if compiling pedantically with GCC, unless it's C99 or later.
63086         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63087         it mishandles gcc -ansi -pedantic as well.
63088         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63089         if gcc -pedantic.
63090         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63091         initializers for struct if -pedantic, unless it's C99 or later.
63092
63093 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63094
63095         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63096         Don't close an fd more than once. Identical atimes indicate
63097         success, not failure.
63098
63099 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63100
63101         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63102
63103 2006-11-23  Jim Meyering  <jim@meyering.net>
63104
63105         * build-aux/announce-gen: New file.  From coreutils.
63106
63107 2006-11-22  Jim Meyering  <jim@meyering.net>
63108
63109         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63110         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63111         (fts_read): Use a temporary to narrow the overused st_size member
63112         before using it in a switch statement.  Reported by Matthew Woehlke.
63113
63114         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63115         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63116
63117 2006-11-20  Bruno Haible  <bruno@clisp.org>
63118
63119         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63120         changequote instead of pairs of brackets.
63121         Reported by Andreas Schwab <schwab@suse.de>.
63122
63123 2006-11-21  Jim Meyering  <jim@meyering.net>
63124
63125         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63126         so as to remain compatible with older compilers.
63127         Patch from Michael Deutschmann.
63128
63129 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63130
63131         * MODULES.html.sh (File system functions): Add openat.
63132
63133         * lib/openat.h (rpl_fstatat): New macro, if
63134         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63135         (fstatat): Define to rpl_fstatat under the same conditions,
63136         unless COMPILING_FSTATAT.
63137         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63138         seems to have the bug.
63139         * lib/fstatat.c: New file.
63140         * modules/openat (Files): Add it.
63141
63142 2006-11-20  Bruno Haible  <bruno@clisp.org>
63143
63144         * Makefile: New file.
63145
63146 2006-11-20  Jim Meyering  <jim@meyering.net>
63147
63148         The beginnings of syntax-related checks for gnulib.
63149         * lib/Makefile: New file.
63150         * lib/t-idcache: New script.  Ensure that the two halves of
63151         idcache.c stay in sync.
63152
63153         * lib/idcache.c: Adjust comments in user- and group- portions to
63154         be more accurate, and to be consistent with one another.
63155
63156 2006-11-20  Jim Meyering  <jim@meyering.net>
63157
63158         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63159         continue using the flexible array member (thus, this module performs
63160         half as many malloc calls), with the addition that...
63161         (getgroup, getuser): Consistently record a non-match via an empty
63162         "name" string, and map an empty string match to a NULL return value.
63163         * modules/idcache (Depends-on): Re-add flexmember.
63164
63165         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63166         (getuidbyname, getgroup, getgidbyname): Likewise.
63167
63168         Use cleaner syntax: NULL rather than 0.
63169         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63170
63171 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63174         It mishandled the case where the group was missing.
63175         Problem reported by Greg Schafer.
63176         * modules/idcache: Likewise.
63177
63178 2006-11-18  Jim Meyering  <jim@meyering.net>
63179
63180         * check-module (%exempt_header): Add exception for some
63181         conditionally-included headers.
63182
63183         * modules/i-ring (Depends-on): Add verify.
63184         (License): Change to LGPL.
63185
63186 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63187
63188         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63189         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63190         and inttostr.h.  Use snprintf rather than uinttostr, so that
63191         LGPLed code doesn't depend on GPLed.
63192
63193 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * modules/inline (License): Change from GPL to LGPL.
63196
63197 2006-11-17  Jim Meyering  <jim@meyering.net>
63198
63199         * modules/d-type (License): Switch to LGPL.
63200
63201 2006-11-15  Bruno Haible  <bruno@clisp.org>
63202
63203         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63204
63205 2006-11-15  Eric Blake  <ebb9@byu.net>
63206
63207         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63208         the module dependency.
63209
63210 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63211             Bruno Haible  <bruno@clisp.org>
63212
63213         * gnulib-tool (func_create_testdir): Add license consistency check.
63214
63215 2006-11-15  Eric Blake  <ebb9@byu.net>
63216
63217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63218         random "(cached)" in configure output.
63219
63220 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63221
63222         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63223         test for conforming inttypes.h is both announced and cached.
63224
63225         * MODULES.html.sh (seen_modules, seen_files): New variables.
63226         (func_module): Rewrite to use a few less gnulib-tool and sed
63227         invocations.  Avoid a couple of quadratic algorithms for ...
63228         (missed_modules, missed_files): ... these, with ...
63229         (func_append, func_tmpdir): ... these new functions, from
63230         gnulib-tool.  Analogously, install traps for cleanup.
63231
63232         * tests/test-gc.c (main): Remove unused variables.
63233         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63234
63235 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63236
63237         * modules/inttostr (License): Change to LGPL.
63238
63239 2006-11-14  Eric Blake  <ebb9@byu.net>
63240
63241         * modules/tempname (License): Change to LGPL.
63242
63243 2006-11-14  Eric Blake  <ebb9@byu.net>
63244
63245         * doc/functions.texi (Function Portability): *printf functions on
63246         Cygwin now understand all POSIX size specifiers.
63247
63248 2006-11-14  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/c-ctype (License): Change to LGPL.
63251
63252 2006-11-12  Bruno Haible  <bruno@clisp.org>
63253
63254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63255         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63256         for GNOME libraries, for which the include files are installed in
63257         subdirectories of $prefix/include.
63258
63259 2006-11-12  Bruno Haible  <bruno@clisp.org>
63260
63261         * m4/lib-link.m4: Require at least autoconf-2.54.
63262         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63263         name to underscores for the --with option.
63264
63265 2006-11-13  Bruno Haible  <bruno@clisp.org>
63266
63267         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63268         the tests directory.
63269         Reported by Ralf Wildenhues.
63270
63271 2006-11-13  Bruno Haible  <bruno@clisp.org>
63272
63273         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63274         (func_emit_initmacro_end): Undo the override here.
63275         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63276         Works around the famous automake error in coreutils.
63277
63278 2006-11-13  Eric Blake  <ebb9@byu.net>
63279
63280         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63281         element, not its node.
63282
63283 2006-11-12  Bruno Haible  <bruno@clisp.org>
63284
63285         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63286         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63287
63288 2006-11-12  Bruno Haible  <bruno@clisp.org>
63289
63290         * gnulib-tool: New option --local-symlink.
63291         (func_usage): Document it.
63292         (lsymbolic): New variable.
63293         (func_import, func_create_testdir): If --symlink was not specified,
63294         test whether --local-symlink was specified and the file comes from
63295         the local_gnulib_dir.
63296
63297 2006-11-12  Bruno Haible  <bruno@clisp.org>
63298
63299         * gnulib-tool (func_ln): New function.
63300         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63301
63302 2006-11-12  Bruno Haible  <bruno@clisp.org>
63303
63304         Finish support for source files in subdirectories.
63305         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63306         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63307         AUTOMAKE_OPTIONS.
63308         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63309
63310 2006-11-12  Bruno Haible  <bruno@clisp.org>
63311
63312         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63313         EXTRA_lib_SOURCES augmentation.
63314         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63315
63316 2006-11-12  Jim Meyering  <jim@meyering.net>
63317
63318         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63319         file descriptors.  This also averts a failure on systems with
63320         native openat support when a traversed directory lacks "x" access.
63321         * lib/fts_.h: Include "i-ring.h"
63322         (struct FTS) [fts_fd_ring]: New member.
63323         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63324         (FCHDIR): Add parentheses.
63325         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63326         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63327         When descending, rather than simply closing the previous
63328         fts_cwd_fd value, push that file descriptor onto the ring.
63329         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63330         (fts_open): Initialize the new fd_ring member.
63331         (fts_close): Clear the ring.
63332         (fts_safe_changedir): When possible, use our new fd_ring to skip
63333         the diropen and fstat and dev/ino comparison that would normally
63334         accompany a virtual `chdir ("..")'.
63335
63336         * modules/fts (Depends-on): Add i-ring.
63337         * modules/i-ring: New module.
63338         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63339         * m4/i-ring.m4: New file.
63340
63341 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63342
63343         * gnulib-tool (func_create_testdir): Fix replacement of
63344         `build-aux' in configure.ac.  Run autotools in gltests
63345         subdirectory.
63346         (func_create_testdir, func_create_megatestdir, test): There is
63347         no need for '--force' in most autotool invocations in a new
63348         tree.  Actually fail the whole test if any of the tools, or the
63349         configure or make stages fail.
63350
63351         Sync from Automake.
63352         * build-aux/gnupload: Revert last change.  Add pointer to upload
63353         instructions of the GNU Maintenance Instructions.
63354         Suggestion by Karl Berry.
63355
63356 2006-11-10  Jim Meyering  <jim@meyering.net>
63357
63358         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63359
63360 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63363         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63364         (bind_textdomain_codeset) [! ENABLE_NLS]:
63365         Evaluate all the arguments.  That way, callers get compatible behavior
63366         if the arguments have side effects.  Also, it avoids some GCC
63367         diagnostics in some cases; Joel E. Denny reported problems when Bison
63368         was configured with --enable-gcc-warnigs.
63369
63370 2006-11-10  Jim Meyering  <jim@meyering.net>
63371
63372         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63373         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63374         account.
63375
63376 2006-11-10  Jim Meyering  <jim@meyering.net>
63377
63378         * modules/inline: New file/module.
63379         * modules/xalloc (Files): Remove m4/inline.m4.
63380         (Depends-on): Add inline, instead.
63381         * modules/oset: Likewise.
63382         * modules/list: Likewise.
63383
63384 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63385
63386         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63387         Problem reported by Matthew Woehlke.
63388
63389 2006-11-09  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/tempname.c (gen_tempname): Remove variant that invokes
63392         __gen_tempname.
63393         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63394         __gen_tempname.
63395
63396 2006-11-08  Bruno Haible  <bruno@clisp.org>
63397
63398         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63399         to 'yes' instead of 'cross-compiling'.
63400
63401 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63402
63403         * lib/quotearg.h (quotearg_free): New decl.
63404         * lib/quotearg.c (quotearg_free): New function.
63405         (slot0, nslots, slotvec0, slotvec):
63406         Now file-scope so that quotearg_free can get at them.
63407
63408 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63409
63410         Sync from Automake.
63411         * build-aux/gnupload: Add missing 'gnu' to example URL.
63412         Report by Karl Berry.
63413
63414 2006-11-08  Bruno Haible  <bruno@clisp.org>
63415
63416         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63417         Suggested by Paul Eggert.
63418
63419 2006-11-08  Jim Meyering  <jim@meyering.net>
63420
63421         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63422         It's already included if !_LIBC.
63423         (fts_safe_changedir): Add a comment.
63424
63425 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63426
63427         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63428         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63429         Matthew Woehlke.
63430
63431         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63432         definitions up, to avoid colliding with change below.
63433         (static_inline) [HAVE_INLINE]: New macro.
63434         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63435         Provide extern decls when !HAVE_INLINE.  Do not define unless
63436         static_inline is defined, either by us or by xmalloc.c.  Use
63437         static_inline rather than static inline.
63438         (XCALLOC): Optimize sizeof(T) = 1 case.
63439         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63440
63441 2006-11-07  Bruno Haible  <bruno@clisp.org>
63442
63443         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63444         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63445         AC_C_INLINE.
63446         * modules/xalloc (Files): Add m4/inline.m4.
63447
63448 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63449
63450         * README: Fix typo.
63451         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63452         (Miscellanous Notes): ...from this.
63453
63454 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63457         Mention that offsetof should be used instead of sizeof.
63458         From Bruno Haible.
63459
63460 2006-11-07  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63463
63464 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63465
63466         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63467         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63468         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63469         (gl_tree_add_before, gl_tree_add_after):
63470         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63471         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63472         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63473         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63474         (gl_linked_add_after, gl_linked_add_at): Likewise.
63475         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63476         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63477         (gl_tree_add_before, gl_tree_add_after): Likewise.
63478         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63479         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63480         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63481
63482 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63483
63484         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63485
63486 2006-11-06  Bruno Haible  <bruno@clisp.org>
63487
63488         * m4/inline.m4: New file.
63489         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63490         * modules/list (Files): Add m4/inline.m4.
63491         * modules/oset (Files): Likewise.
63492
63493 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63494
63495         * lib/idcache.c: Include <stddef.h>, for offsetof.
63496         (struct userid.name): Change from char * to a flexible array member.
63497         All uses changed.
63498         * modules/idcache (Depends-on): Add flexmember.
63499
63500         * MODULES.html.sh (Core language properties): New module flexmember.
63501         * modules/flexmember, m4/flexmember.m4: New files.
63502
63503         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63504         inline functions that are identical with the old xnmalloc_inline,
63505         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63506         that we can avoid some unnecessary integer multiplications and
63507         divisions in the common case where the element size is known at
63508         compile time.
63509         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63510         needed.
63511         (xnboundedmalloc): Remove.
63512         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63513         arguments, for consistency with rest of this header.
63514         (xcharalloc): Rewrite using XNMALLOC.
63515         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63516         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63517         versions have been moved to lib/xalloc.h and renamed to be the
63518         non-*_inline versions.
63519         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63520         and xnrealloc functions, since those functions are now inline and
63521         now call us.
63522         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63523         renaming described above.
63524         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63525         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63526         captures the dependency in AC_C_INLINE.
63527
63528         New module canonicalize-lgpl, proposed by Charles Wilson in
63529         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63530         with a few small changes afterwards.
63531         * MODULES.html.sh (File system functions): New module
63532         canonicalize-lgpl.
63533         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63534         and canonicalize_file_name.
63535         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63536         * modules/canonicalize-lgpl: New files.
63537
63538 2006-11-05  Bruno Haible  <bruno@clisp.org>
63539
63540         * gnulib-tool (func_import, func_create_testdir): Create directories
63541         also for files in subdirectories of lib/.
63542
63543 2006-11-05  Bruno Haible  <bruno@clisp.org>
63544
63545         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63546         ANSI C compliant.
63547
63548 2006-11-03  Bruno Haible  <bruno@clisp.org>
63549
63550         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63551         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63552         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63553         (xnboundedmalloc): New inline function.
63554         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63555         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63556         xmalloc.
63557         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63558         xmalloc.
63559         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63560         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63561         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63562         xmalloc.
63563         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63564         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63565         xmalloc.
63566         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63567         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63568         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63569         xmalloc.
63570         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63571         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63572         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63573         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63574         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63575         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63576         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63577
63578 2006-11-03  Bruno Haible  <bruno@clisp.org>
63579
63580         * lib/c-ctype.h [C++]: Define functions without name mangling.
63581         * lib/fwriteerror.h [C++]: Likewise.
63582         * lib/gcd.h [C++]: Likewise.
63583         * lib/linebreak.h [C++]: Likewise.
63584
63585 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63588         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63589         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63590         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63591         Check for functions and headers just once.
63592         Check for declaration of canonicalize_file_name.
63593         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63594
63595 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63596
63597         * gnulib-tool (func_import): Fix typo in actioncmd.
63598
63599 2006-11-02  Bruno Haible  <bruno@clisp.org>
63600
63601         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63602         newline sequence in the Makefile.am snippet as a space, like "make"
63603         does.
63604         Reported by Roger Persson <perrog@gmail.com>.
63605
63606 2006-11-01  Bruno Haible  <bruno@clisp.org>
63607
63608         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63609         already declared in <string.h>.
63610         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63611
63612 2006-11-01  Bruno Haible  <bruno@clisp.org>
63613
63614         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63615         * lib/strcase.h: Include <string.h>.
63616         (strcasecmp): Define to rpl_strcasecmp here.
63617
63618 2006-11-01  Bruno Haible  <bruno@clisp.org>
63619
63620         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63621
63622 2006-11-01  Eric Blake  <ebb9@byu.net>
63623
63624         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63625
63626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63627
63628 2006-10-29  Bruno Haible  <bruno@clisp.org>
63629
63630         Make it compile in C++ mode.
63631         * lib/full-write.c (full_rw): Add a cast.
63632
63633 2006-11-01  Bruno Haible  <bruno@clisp.org>
63634
63635         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63636         be POSIX compliant.
63637         Reported by Roger Persson <perrog@gmail.com>.
63638
63639 2006-11-01  Eric Blake  <ebb9@byu.net>
63640
63641         * lib/getopt_.h: Fix comments.
63642
63643 2006-10-31  Eric Blake  <ebb9@byu.net>
63644
63645         * modules/tmpdir (Depends-on): Add sys_stat.
63646         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63647         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63648         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63649         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63650         tempname.
63651
63652 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         Avoid some C++ diagnostics reported by Bruno Haible.
63655         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63656         xmalloc.
63657         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63658         (struct slotvec): Move to top level.
63659         (quotearg_n_options): Rewrite to avoid xmalloc.
63660         * lib/xalloc.h (xcharalloc): New function.
63661         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63662         [defined __cplusplus]: Add function template that provides result
63663         type propagation.  This part of the change is from Bruno Haible.
63664
63665 2006-10-29  Bruno Haible  <bruno@clisp.org>
63666
63667         Make it compile in C++ mode.
63668         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63669         * lib/strnlen1.c (strnlen1): Cast memchr result.
63670         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63671         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63672         (create_temp_dir): Rename local variable 'template'.
63673         (compile_csharp_using_sscli): Add cast.
63674         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63675         * lib/findprog.c (find_in_path): Likewise.
63676         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63677         * lib/wait-process.c (register_slave_subprocess): Likewise.
63678
63679 2006-10-22  Bruno Haible  <bruno@clisp.org>
63680
63681         * modules/tsearch: New file.
63682         * lib/tsearch.h: New file.
63683         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63684         * m4/tsearch.m4: New file.
63685         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63686
63687 2006-10-29  Eric Blake  <ebb9@byu.net>
63688
63689         * lib/arcfour.c: Assume config.h.
63690         * lib/arctwo.c: Likewise.
63691         * lib/base64.c: Likewise.
63692         * lib/check-version.c: Likewise.
63693         * lib/crc.c: Likewise.
63694         * lib/des.c: Likewise.
63695         * lib/gc-gnulib.c: Likewise.
63696         * lib/gc-libgcrypt.c: Likewise.
63697         * lib/gc-pbkdf2-sha1.c: Likewise.
63698         * lib/getaddrinfo.c: Likewise.
63699         * lib/getdelim.c: Likewise.
63700         * lib/getline.c: Likewise.
63701         * lib/hmac-md5.c: Likewise.
63702         * lib/hmac-sha1.c: Likewise.
63703         * lib/iconvme.c: Likewise.
63704         * lib/md2.c: Likewise.
63705         * lib/md4.c: Likewise.
63706         * lib/memxor.c: Likewise.
63707         * lib/read-file.c: Likewise.
63708         * lib/readline.c: Likewise.
63709         * lib/rijndael-alg-fst.c: Likewise.
63710         * lib/rijndael-api-fst.c: Likewise.
63711         * lib/xgetdomainname.c: Likewise.
63712
63713 2006-10-28  Eric Blake  <ebb9@byu.net>
63714
63715         * lib/xstrndup.c: Assume config.h.
63716
63717 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63718
63719         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63720         stat-macros.h is now for our own macros, whereas stat_h is for
63721         macros in the <sys/stat.h> name space.
63722         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63723         (STAT_MACROS_H): Remove.
63724         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63725         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63726         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63727         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63728         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63729         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63730         Move these macros to ...
63731         * lib/stat_.h: here.  Don't include stat-macros.h.
63732         * lib/canonicalize.c: Don't include stat-macros.h.
63733         * lib/chown.c: Likewise.
63734         * lib/euidaccess.c: Likewise.
63735         * lib/file-type.c: Likewise.
63736         * lib/filemode.c: Likewise.
63737         * lib/glob.c: Likewise.
63738         * lib/isapipe.c: Likewise.
63739         * lib/lchown.c: Likewise.
63740         * lib/lstat.c: Likewise.
63741         * lib/mkdir-p.c: Likewise.
63742         * lib/rmdir.c: Likewise.
63743         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63744         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63745         unless mkdir isn't declared, to speed up 'configure'.
63746         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63747         would define all the S_* symbols.
63748         * modules/canonicalize (Depends-on):
63749         Depend on sys_stat, not stat-macros.
63750         * modules/chown: Likewise.
63751         * modules/euidaccess: Likewise.
63752         * modules/filemode: Likewise.
63753         * modules/file-type: Likewise.
63754         * modules/glob: Likewise.
63755         * modules/isapipe: Likewise.
63756         * modules/lchown: Likewise.
63757         * modules/lstat: Likewise.
63758         * modules/mkancesdirs: Likewise.
63759         * modules/rmdir: Likewise.
63760         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63761         * modules/modechange: Likewise.
63762         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63763         (configure.ac): Remove gl_STAT_MACROS.
63764         * modules/sys_stat (Depends-on): Remove stat-macros.
63765
63766 2006-10-27  Bruno Haible  <bruno@clisp.org>
63767
63768         * m4/signed.m4: Remove file.
63769         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63770         invocation.
63771         * modules/vasnprintf (Files): Remove m4/signed.m4.
63772
63773 2006-10-27  Bruno Haible  <bruno@clisp.org>
63774
63775         Update to GNU gettext 0.16.
63776         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63777         m4/inttypes-h.m4, m4/signed.m4.
63778         * m4/gettext.m4: Update to GNU gettext 0.16.
63779         * m4/intl.m4: New file, from GNU gettext.
63780         * m4/intldir.m4: New file, from GNU gettext.
63781         * config/srclist.txt: Update
63782
63783 2006-10-27  Eric Blake  <ebb9@byu.net>
63784
63785         * MODULES.html.sh: Document tempname.
63786         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63787         dependencies.
63788         (Files): Move lib/tempname.c...
63789         * modules/tempname: ...to this new module.
63790         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63791         (gl_PREREQ_TEMPNAME): Move...
63792         * m4/tempname.m4: ...to this new file.
63793         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63794         * modules/sys_stat (Depends-on): Add stat-macros.
63795         * lib/stat_.h (includes): Pick up stat macros.
63796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63797         if stat macros are broken.
63798         * lib/tempname.c (includes): No need to include "stat-macros.h".
63799         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63800         (direxists, __path_search) [!_LIBC]: Don't compile these in
63801         gnulib; the tmpdir module covers that.
63802         * lib/tempname.h: New file.
63803
63804 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63805
63806         * COPYING: Explain how gnulib-tool converts licence headers.
63807         Almost all wording by Eric Blake.
63808
63809 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63810
63811         * lib/mbchar.h (is_basic_table): Make read-only.
63812         * lib/mbchar.c (is_basic_table): Likewise.
63813         Reported by John Darrington.
63814
63815 2006-10-25  Bruno Haible  <bruno@clisp.org>
63816
63817         * lib/progname.h (set_program_name): Undefine before defining.
63818
63819 2006-10-25  Bruno Haible  <bruno@clisp.org>
63820
63821         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63822         false for non-gcc C++ compilers.
63823         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63824
63825 2006-10-24  Bruno Haible  <bruno@clisp.org>
63826
63827         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63828         iconv implementations like Irix iconv.
63829
63830 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63831
63832         * modules/vararrays: New file.
63833         * m4/vararrays.m4: New file, taken from diffutils.
63834         * MODULES.html.sh: New module vararrays.
63835
63836 2006-10-24  Karl Berry  <karl@gnu.org>
63837
63838         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63839         Don't call GNU Unix.
63840
63841 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63842
63843         * users.txt: Add Libtool.
63844
63845         Sync from Libtool:
63846
63847         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63848
63849         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63850         to gnulib's policy of including config.h unconditionally.
63851
63852 2006-10-24  Bruno Haible  <bruno@clisp.org>
63853
63854         * modules/wcwidth (Files): Add m4/wint_t.m4.
63855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63856         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63857
63858 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63859
63860         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63861         to pacify GCC with some -W flags enabled.  Problem reported by
63862         Bruno Haible.
63863
63864 2006-10-24  Jim Meyering  <jim@meyering.net>
63865
63866         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63867         Reported by Karl Berry.
63868
63869 2006-10-23  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63872
63873 2006-10-24  Bruno Haible  <bruno@clisp.org>
63874
63875         * lib/gl_list.h: Use C comment style, not C++ comment style.
63876
63877 2006-10-23  Eric Blake  <ebb9@byu.net>
63878
63879         * lib/getaddrinfo.c (includes): Add missing include.
63880
63881 2006-10-23  Bruno Haible  <bruno@clisp.org>
63882             Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         Ability to rename obstack_free.
63885         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63886         obstack_free.
63887         (obstack_free): Invoke the __obstack_free macro.
63888         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63889
63890 2006-10-23  Bruno Haible  <bruno@clisp.org>
63891             Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63894         __argc, __argv from the declaration. (They are defined as macros on
63895         mingw.)
63896
63897 2006-10-22  Bruno Haible  <bruno@clisp.org>
63898
63899         * doc/gnulib-intro.texi: New file.
63900         * doc/gnulib.texi: Include it.
63901
63902 2006-10-21  Bruno Haible  <bruno@clisp.org>
63903
63904         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63905         "Introduction", "Miscellanous Notes", "Particular Modules".
63906
63907 2006-10-21  Bruno Haible  <bruno@clisp.org>
63908
63909         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63910         Change mostlyclean-local rule to avoid sh syntax error from bash
63911         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63912
63913 2006-10-23  Jim Meyering  <jim@meyering.net>
63914
63915         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63916         in place of snprintf.
63917
63918         * modules/inttostr (Files): Add lib/uinttostr.c.
63919         * lib/uinttostr.c (inttostr): New file/function.
63920         * lib/inttostr.h (uinttostr): Declare.
63921         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63922         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63923         Add uinttostr.
63924         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63925
63926 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63927
63928         * lib/canonicalize.c (ELOOP): Define if not already defined.
63929         Problem reported by Bruno Haible in
63930         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63931
63932 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63935         Problem reported by Perry Smith and Ville Laurikari.
63936
63937         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63938         uses.
63939
63940 2006-10-19  Bruno Haible  <bruno@clisp.org>
63941
63942         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63943         for mingw.
63944
63945 2006-10-19  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63948         Needed for mingw.
63949
63950 2006-10-19  Bruno Haible  <bruno@clisp.org>
63951
63952         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63953
63954 2006-10-19  Bruno Haible  <bruno@clisp.org>
63955
63956         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63957         it.
63958
63959 2006-10-19  Bruno Haible  <bruno@clisp.org>
63960
63961         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63962         invocation.
63963
63964 2006-10-19  Bruno Haible  <bruno@clisp.org>
63965
63966         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63967         mountlist by default.
63968
63969 2006-10-16  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/c-strstr.c: Include c-strstr.h.
63972
63973 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63974
63975         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63976         in a slash.
63977
63978 2006-10-18  Bruno Haible  <bruno@clisp.org>
63979
63980         * lib/lock.h [C++]: Wrap definitions in extern "C".
63981
63982 2006-10-18  Bruno Haible  <bruno@clisp.org>
63983
63984         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63985         gl_LIBOBJS list.
63986
63987 2006-10-18  Bruno Haible  <bruno@clisp.org>
63988
63989         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63990
63991 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63992
63993         * lib/xstrtol.h: Include gettext.h.
63994         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63995         Problem reported by Eric Blake.
63996         * modules/xstrtol (Depends-on): Add gettext-h.
63997
63998 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63999
64000         * lib/strftime.c (advance): New macro.
64001         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64002         incomplete type, so you can't add 0 to it.  Problem and patch
64003         reported by Eelco Dolstra for dietlibc.
64004
64005 2006-10-18  Jim Meyering  <jim@meyering.net>
64006
64007         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64008         type for a local, and rename it: s/up/user_proc/.
64009
64010 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64011
64012         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64013         READ_UTMP_USER_PROCESS.
64014         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64015
64016 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64019         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64020
64021 2006-10-17  Eric Blake  <ebb9@byu.net>
64022
64023         * lib/sigprocmask.c (sigprocmask): Fix typo.
64024
64025         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64026
64027         * modules/clean-temp (Makefile.am): Don't add to make output...
64028         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64029         config.h.
64030
64031 2006-10-17  Bruno Haible  <bruno@clisp.org>
64032
64033         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64034         differently if DEFAULT_TEXT_DOMAIN is set.
64035
64036 2006-10-16  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/clean-temp.c: Include fwriteerror.h.
64039
64040 2006-10-16  Bruno Haible  <bruno@clisp.org>
64041
64042         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64043
64044 2006-10-16  Bruno Haible  <bruno@clisp.org>
64045
64046         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64047         * lib/sigprocmask.h: Include <sys/types.h>.
64048         (sigset_t): Use the system's definition if present.
64049
64050 2006-10-17  Eric Blake  <ebb9@byu.net>
64051
64052         * lib/xvasprintf.c (includes): Assume config.h.
64053         * lib/xasprintf.c (includes): Likewise.
64054
64055 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64058         at least as wide as intmax_t.
64059
64060 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64061
64062         (Imported from Automake.)
64063         * build-aux/gnupload: Update to version 1.1 of directive file.
64064
64065 2006-10-16  Eric Blake  <ebb9@byu.net>
64066
64067         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64068         match Automake 1.10a.
64069
64070 2006-10-14  Bruno Haible  <bruno@clisp.org>
64071
64072         * modules/sigprocmask: New file.
64073         * lib/sigprocmask.h: New file.
64074         * lib/sigprocmask.c: New file.
64075         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64076         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64077         request sigprocmask.o.
64078         (gl_PREREQ_SIGPROCMASK): New macro.
64079         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64080         (Depends-on): Add sigprocmask.
64081         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64082         gt_SIGNALBLOCKING. Test for 'raise' only once.
64083         * lib/fatal-signal.c: Include sigprocmask.h.
64084         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64085         unblock_fatal_signals): Define always.
64086         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64087         sigprocmask.
64088
64089 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64090
64091         Sync from Automake.
64092         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64093         which incorrectly sets the mode of an existing destination
64094         directory.  In some cases the unpatched install-sh could do the
64095         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64096         system.  We hope this is rare in practice, but it's clearly worth
64097         fixing.  Problem reported by Alex Unleashed in
64098         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64099         Also, don't bother to check for -m bugs unless we're using -m;
64100         suggested by Stepan Kasal.
64101
64102 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64103
64104         Sync from Automake.
64105         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64106         `-c' flag, so they appear at the same position as in %FASTDEP%
64107         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64108         which ignores unknown options only after the first non-option.
64109         Bug report against M4 by Nelson H. F. Beebe.
64110
64111 2006-10-13  Jim Meyering  <jim@meyering.net>
64112
64113         Fix a bug in yesterday's change.
64114         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64115         p->fts_statp->st_dev would be used uninitialized.
64116         Ensures that we always call fts_stat on the very first entry.
64117         Miklos Szeredi reported that find -xdev stopped working.
64118
64119 2006-10-12  Bruno Haible  <bruno@clisp.org>
64120
64121         * gnulib-tool (func_get_automake_snippet): Append an automatically
64122         computed EXTRA_DIST augmentation.
64123         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64124         * modules/alloca-opt (Makefile.am): Likewise.
64125         * modules/allocsa (Makefile.am): Likewise.
64126         * modules/arcfour (Makefile.am): Likewise.
64127         * modules/arctwo (Makefile.am): Likewise.
64128         * modules/argmatch (Makefile.am): Likewise.
64129         * modules/argz (Makefile.am): Likewise.
64130         * modules/atexit (Makefile.am): Likewise.
64131         * modules/backupfile (Makefile.am): Likewise.
64132         * modules/byteswap (Makefile.am): Likewise.
64133         * modules/c-strtod (Makefile.am): Likewise.
64134         * modules/c-strtold (Makefile.am): Likewise.
64135         * modules/calloc (Makefile.am): Likewise.
64136         * modules/canon-host (Makefile.am): Likewise.
64137         * modules/canonicalize (Makefile.am): Likewise.
64138         * modules/chdir-long (Makefile.am): Likewise.
64139         * modules/chdir-safer (Makefile.am): Likewise.
64140         * modules/check-version (Makefile.am): Likewise.
64141         * modules/chown (Makefile.am): Likewise.
64142         * modules/cloexec (Makefile.am): Likewise.
64143         * modules/close-stream (Makefile.am): Likewise.
64144         * modules/closeout (Makefile.am): Likewise.
64145         * modules/crc (Makefile.am): Likewise.
64146         * modules/csharpexec (Makefile.am): Likewise.
64147         * modules/cycle-check (Makefile.am): Likewise.
64148         * modules/des (Makefile.am): Likewise.
64149         * modules/dev-ino (Makefile.am): Likewise.
64150         * modules/dirfd (Makefile.am): Likewise.
64151         * modules/dirname (Makefile.am): Likewise.
64152         * modules/dup2 (Makefile.am): Likewise.
64153         * modules/eealloc (Makefile.am): Likewise.
64154         * modules/error (Makefile.am): Likewise.
64155         * modules/euidaccess (Makefile.am): Likewise.
64156         * modules/exclude (Makefile.am): Likewise.
64157         * modules/exitfail (Makefile.am): Likewise.
64158         * modules/fcntl-safer (Makefile.am): Likewise.
64159         * modules/fcntl (Makefile.am): Likewise.
64160         * modules/file-type (Makefile.am): Likewise.
64161         * modules/fileblocks (Makefile.am): Likewise.
64162         * modules/filemode (Makefile.am): Likewise.
64163         * modules/filenamecat (Makefile.am): Likewise.
64164         * modules/fnmatch (Makefile.am): Likewise.
64165         * modules/fopen-safer (Makefile.am): Likewise.
64166         * modules/fpending (Makefile.am): Likewise.
64167         * modules/fprintftime (Makefile.am): Likewise.
64168         * modules/free (Makefile.am): Likewise.
64169         * modules/fsusage (Makefile.am): Likewise.
64170         * modules/ftruncate (Makefile.am): Likewise.
64171         * modules/fts (Makefile.am): Likewise.
64172         * modules/gc-arcfour (Makefile.am): Likewise.
64173         * modules/gc-des (Makefile.am): Likewise.
64174         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64175         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64176         * modules/gc-md4 (Makefile.am): Likewise.
64177         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64178         * modules/gc-sha1 (Makefile.am): Likewise.
64179         * modules/gc (Makefile.am): Likewise.
64180         * modules/getaddrinfo (Makefile.am): Likewise.
64181         * modules/getcwd (Makefile.am): Likewise.
64182         * modules/getdelim (Makefile.am): Likewise.
64183         * modules/getdomainname (Makefile.am): Likewise.
64184         * modules/getgroups (Makefile.am): Likewise.
64185         * modules/gethostname (Makefile.am): Likewise.
64186         * modules/gethrxtime (Makefile.am): Likewise.
64187         * modules/getline (Makefile.am): Likewise.
64188         * modules/getloadavg (Makefile.am): Likewise.
64189         * modules/getlogin_r (Makefile.am): Likewise.
64190         * modules/getndelim2 (Makefile.am): Likewise.
64191         * modules/getopt (Makefile.am): Likewise.
64192         * modules/getpagesize (Makefile.am): Likewise.
64193         * modules/getpass-gnu (Makefile.am): Likewise.
64194         * modules/getpass (Makefile.am): Likewise.
64195         * modules/getsubopt (Makefile.am): Likewise.
64196         * modules/gettime (Makefile.am): Likewise.
64197         * modules/gettimeofday (Makefile.am): Likewise.
64198         * modules/getugroups (Makefile.am): Likewise.
64199         * modules/getusershell (Makefile.am): Likewise.
64200         * modules/glob (Makefile.am): Likewise.
64201         * modules/group-member (Makefile.am): Likewise.
64202         * modules/hard-locale (Makefile.am): Likewise.
64203         * modules/hash (Makefile.am): Likewise.
64204         * modules/hmac-md5 (Makefile.am): Likewise.
64205         * modules/hmac-sha1 (Makefile.am): Likewise.
64206         * modules/human (Makefile.am): Likewise.
64207         * modules/idcache (Makefile.am): Likewise.
64208         * modules/imaxabs (Makefile.am): Likewise.
64209         * modules/imaxdiv (Makefile.am): Likewise.
64210         * modules/inet_ntop (Makefile.am): Likewise.
64211         * modules/inet_pton (Makefile.am): Likewise.
64212         * modules/intprops (Makefile.am): Likewise.
64213         * modules/inttostr (Makefile.am): Likewise.
64214         * modules/inttypes (Makefile.am): Likewise.
64215         * modules/isapipe (Makefile.am): Likewise.
64216         * modules/javaversion (Makefile.am): Likewise.
64217         * modules/lchmod (Makefile.am): Likewise.
64218         * modules/lchown (Makefile.am): Likewise.
64219         * modules/localcharset (Makefile.am): Likewise.
64220         * modules/long-options (Makefile.am): Likewise.
64221         * modules/lstat (Makefile.am): Likewise.
64222         * modules/malloc (Makefile.am): Likewise.
64223         * modules/mathl (Makefile.am): Likewise.
64224         * modules/mbchar (Makefile.am): Likewise.
64225         * modules/md2 (Makefile.am): Likewise.
64226         * modules/md4 (Makefile.am): Likewise.
64227         * modules/md5 (Makefile.am): Likewise.
64228         * modules/memcasecmp (Makefile.am): Likewise.
64229         * modules/memchr (Makefile.am): Likewise.
64230         * modules/memcmp (Makefile.am): Likewise.
64231         * modules/memcoll (Makefile.am): Likewise.
64232         * modules/memcpy (Makefile.am): Likewise.
64233         * modules/memmem (Makefile.am): Likewise.
64234         * modules/memmove (Makefile.am): Likewise.
64235         * modules/mempcpy (Makefile.am): Likewise.
64236         * modules/memrchr (Makefile.am): Likewise.
64237         * modules/memset (Makefile.am): Likewise.
64238         * modules/memxor (Makefile.am): Likewise.
64239         * modules/mkancesdirs (Makefile.am): Likewise.
64240         * modules/mkdir-p (Makefile.am): Likewise.
64241         * modules/mkdir (Makefile.am): Likewise.
64242         * modules/mkdtemp (Makefile.am): Likewise.
64243         * modules/mkstemp (Makefile.am): Likewise.
64244         * modules/mktime (Makefile.am): Likewise.
64245         * modules/modechange (Makefile.am): Likewise.
64246         * modules/mountlist (Makefile.am): Likewise.
64247         * modules/nanosleep (Makefile.am): Likewise.
64248         * modules/obstack (Makefile.am): Likewise.
64249         * modules/openat (Makefile.am): Likewise.
64250         * modules/pagealign_alloc (Makefile.am): Likewise.
64251         * modules/pathmax (Makefile.am): Likewise.
64252         * modules/physmem (Makefile.am): Likewise.
64253         * modules/poll (Makefile.am): Likewise.
64254         * modules/posixtm (Makefile.am): Likewise.
64255         * modules/posixver (Makefile.am): Likewise.
64256         * modules/putenv (Makefile.am): Likewise.
64257         * modules/quote (Makefile.am): Likewise.
64258         * modules/quotearg (Makefile.am): Likewise.
64259         * modules/raise (Makefile.am): Likewise.
64260         * modules/read-file (Makefile.am): Likewise.
64261         * modules/readline (Makefile.am): Likewise.
64262         * modules/readlink (Makefile.am): Likewise.
64263         * modules/readtokens (Makefile.am): Likewise.
64264         * modules/readutmp (Makefile.am): Likewise.
64265         * modules/realloc (Makefile.am): Likewise.
64266         * modules/regex (Makefile.am): Likewise.
64267         * modules/rename-dest-slash (Makefile.am): Likewise.
64268         * modules/rename (Makefile.am): Likewise.
64269         * modules/rijndael (Makefile.am): Likewise.
64270         * modules/rmdir (Makefile.am): Likewise.
64271         * modules/rpmatch (Makefile.am): Likewise.
64272         * modules/safe-read (Makefile.am): Likewise.
64273         * modules/safe-write (Makefile.am): Likewise.
64274         * modules/same-inode (Makefile.am): Likewise.
64275         * modules/same (Makefile.am): Likewise.
64276         * modules/save-cwd (Makefile.am): Likewise.
64277         * modules/savedir (Makefile.am): Likewise.
64278         * modules/setenv (Makefile.am): Likewise.
64279         * modules/settime (Makefile.am): Likewise.
64280         * modules/sha1 (Makefile.am): Likewise.
64281         * modules/sig2str (Makefile.am): Likewise.
64282         * modules/snprintf (Makefile.am): Likewise.
64283         * modules/stat-macros (Makefile.am): Likewise.
64284         * modules/stat-time (Makefile.am): Likewise.
64285         * modules/stdbool (Makefile.am): Likewise.
64286         * modules/stdint (Makefile.am): Likewise.
64287         * modules/stdlib-safer (Makefile.am): Likewise.
64288         * modules/stpcpy (Makefile.am): Likewise.
64289         * modules/stpncpy (Makefile.am): Likewise.
64290         * modules/strcase (Makefile.am): Likewise.
64291         * modules/strcasestr (Makefile.am): Likewise.
64292         * modules/strchrnul (Makefile.am): Likewise.
64293         * modules/strcspn (Makefile.am): Likewise.
64294         * modules/strdup (Makefile.am): Likewise.
64295         * modules/strerror (Makefile.am): Likewise.
64296         * modules/strftime (Makefile.am): Likewise.
64297         * modules/strndup (Makefile.am): Likewise.
64298         * modules/strnlen (Makefile.am): Likewise.
64299         * modules/strpbrk (Makefile.am): Likewise.
64300         * modules/strsep (Makefile.am): Likewise.
64301         * modules/strstr (Makefile.am): Likewise.
64302         * modules/strtod (Makefile.am): Likewise.
64303         * modules/strtoimax (Makefile.am): Likewise.
64304         * modules/strtok_r (Makefile.am): Likewise.
64305         * modules/strtol (Makefile.am): Likewise.
64306         * modules/strtoll (Makefile.am): Likewise.
64307         * modules/strtoul (Makefile.am): Likewise.
64308         * modules/strtoull (Makefile.am): Likewise.
64309         * modules/strtoumax (Makefile.am): Likewise.
64310         * modules/strverscmp (Makefile.am): Likewise.
64311         * modules/sys_socket (Makefile.am): Likewise.
64312         * modules/sys_stat (Makefile.am): Likewise.
64313         * modules/sysexits (Makefile.am): Likewise.
64314         * modules/time_r (Makefile.am): Likewise.
64315         * modules/timegm (Makefile.am): Likewise.
64316         * modules/timespec (Makefile.am): Likewise.
64317         * modules/tmpfile-safer (Makefile.am): Likewise.
64318         * modules/trim (Makefile.am): Likewise.
64319         * modules/unistd-safer (Makefile.am): Likewise.
64320         * modules/unlinkdir (Makefile.am): Likewise.
64321         * modules/unlocked-io (Makefile.am): Likewise.
64322         * modules/userspec (Makefile.am): Likewise.
64323         * modules/utime (Makefile.am): Likewise.
64324         * modules/utimecmp (Makefile.am): Likewise.
64325         * modules/utimens (Makefile.am): Likewise.
64326         * modules/vasnprintf (Makefile.am): Likewise.
64327         * modules/vasprintf (Makefile.am): Likewise.
64328         * modules/vsnprintf (Makefile.am): Likewise.
64329         * modules/xalloc (Makefile.am): Likewise.
64330         * modules/xgetcwd (Makefile.am): Likewise.
64331         * modules/xnanosleep (Makefile.am): Likewise.
64332         * modules/xreadlink (Makefile.am): Likewise.
64333         * modules/xstrtod (Makefile.am): Likewise.
64334         * modules/xstrtol (Makefile.am): Likewise.
64335         * modules/xstrtold (Makefile.am): Likewise.
64336         * modules/yesno (Makefile.am): Likewise.
64337         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64338
64339 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         * modules/error (Makefile.am): Distribute files through
64342         EXTRA_DIST, not lib_SOURCES.
64343
64344 2006-10-12  Eric Blake  <ebb9@byu.net>
64345
64346         * modules/error (Makefile.am): Distribute files in /lib.
64347         * modules/obstack (Makefile.am): Likewise.
64348
64349 2006-10-12  Bruno Haible  <bruno@clisp.org>
64350
64351         * modules/acl (Makefile.am): Distribute all files in lib/ through
64352         EXTRA_DIST.
64353         * modules/arcfour (Makefile.am): Likewise.
64354         * modules/arctwo (Makefile.am): Likewise.
64355         * modules/argmatch (Makefile.am): Likewise.
64356         * modules/argz (Makefile.am): Likewise.
64357         * modules/atexit (Makefile.am): Likewise.
64358         * modules/backupfile (Makefile.am): Likewise.
64359         * modules/c-strtod (Makefile.am): Likewise.
64360         * modules/c-strtold (Makefile.am): Likewise.
64361         * modules/calloc (Makefile.am): Likewise.
64362         * modules/canon-host (Makefile.am): Likewise.
64363         * modules/canonicalize (Makefile.am): Likewise.
64364         * modules/chdir-long (Makefile.am): Likewise.
64365         * modules/chdir-safer (Makefile.am): Likewise.
64366         * modules/check-version (Makefile.am): Likewise.
64367         * modules/chown (Makefile.am): Likewise.
64368         * modules/cloexec (Makefile.am): Likewise.
64369         * modules/close-stream (Makefile.am): Likewise.
64370         * modules/closeout (Makefile.am): Likewise.
64371         * modules/crc (Makefile.am): Likewise.
64372         * modules/cycle-check (Makefile.am): Likewise.
64373         * modules/des (Makefile.am): Likewise.
64374         * modules/dirfd (Makefile.am): Likewise.
64375         * modules/dirname (Makefile.am): Likewise.
64376         * modules/dup2 (Makefile.am): Likewise.
64377         * modules/euidaccess (Makefile.am): Likewise.
64378         * modules/exclude (Makefile.am): Likewise.
64379         * modules/exitfail (Makefile.am): Likewise.
64380         * modules/fcntl-safer (Makefile.am): Likewise.
64381         * modules/file-type (Makefile.am): Likewise.
64382         * modules/fileblocks (Makefile.am): Likewise.
64383         * modules/filemode (Makefile.am): Likewise.
64384         * modules/filenamecat (Makefile.am): Likewise.
64385         * modules/fnmatch (Makefile.am): Likewise.
64386         * modules/fopen-safer (Makefile.am): Likewise.
64387         * modules/fpending (Makefile.am): Likewise.
64388         * modules/fprintftime (Makefile.am): Likewise.
64389         * modules/free (Makefile.am): Likewise.
64390         * modules/fsusage (Makefile.am): Likewise.
64391         * modules/ftruncate (Makefile.am): Likewise.
64392         * modules/fts (Makefile.am): Likewise.
64393         * modules/gc (Makefile.am): Likewise.
64394         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64395         * modules/getaddrinfo (Makefile.am): Likewise.
64396         * modules/getcwd (Makefile.am): Likewise.
64397         * modules/getdelim (Makefile.am): Likewise.
64398         * modules/getdomainname (Makefile.am): Likewise.
64399         * modules/getgroups (Makefile.am): Likewise.
64400         * modules/gethostname (Makefile.am): Likewise.
64401         * modules/gethrxtime (Makefile.am): Likewise.
64402         * modules/getline (Makefile.am): Likewise.
64403         * modules/getloadavg (Makefile.am): Likewise.
64404         * modules/getlogin_r (Makefile.am): Likewise.
64405         * modules/getopt (Makefile.am): Likewise.
64406         * modules/getpass (Makefile.am): Likewise.
64407         * modules/getpass-gnu (Makefile.am): Likewise.
64408         * modules/getsubopt (Makefile.am): Likewise.
64409         * modules/gettime (Makefile.am): Likewise.
64410         * modules/gettimeofday (Makefile.am): Likewise.
64411         * modules/getugroups (Makefile.am): Likewise.
64412         * modules/getusershell (Makefile.am): Likewise.
64413         * modules/glob (Makefile.am): Likewise.
64414         * modules/group-member (Makefile.am): Likewise.
64415         * modules/hard-locale (Makefile.am): Likewise.
64416         * modules/hash (Makefile.am): Likewise.
64417         * modules/hmac-md5 (Makefile.am): Likewise.
64418         * modules/hmac-sha1 (Makefile.am): Likewise.
64419         * modules/human (Makefile.am): Likewise.
64420         * modules/idcache (Makefile.am): Likewise.
64421         * modules/imaxabs (Makefile.am): Likewise.
64422         * modules/imaxdiv (Makefile.am): Likewise.
64423         * modules/inet_ntop (Makefile.am): Likewise.
64424         * modules/inet_pton (Makefile.am): Likewise.
64425         * modules/inttostr (Makefile.am): Likewise.
64426         * modules/isapipe (Makefile.am): Likewise.
64427         * modules/lchown (Makefile.am): Likewise.
64428         * modules/long-options (Makefile.am): Likewise.
64429         * modules/lstat (Makefile.am): Likewise.
64430         * modules/malloc (Makefile.am): Likewise.
64431         * modules/mathl (Makefile.am): Likewise.
64432         * modules/mbchar (Makefile.am): Likewise.
64433         * modules/md2 (Makefile.am): Likewise.
64434         * modules/md4 (Makefile.am): Likewise.
64435         * modules/md5 (Makefile.am): Likewise.
64436         * modules/memcasecmp (Makefile.am): Likewise.
64437         * modules/memchr (Makefile.am): Likewise.
64438         * modules/memcmp (Makefile.am): Likewise.
64439         * modules/memcoll (Makefile.am): Likewise.
64440         * modules/memcpy (Makefile.am): Likewise.
64441         * modules/memmem (Makefile.am): Likewise.
64442         * modules/memmove (Makefile.am): Likewise.
64443         * modules/mempcpy (Makefile.am): Likewise.
64444         * modules/memrchr (Makefile.am): Likewise.
64445         * modules/memset (Makefile.am): Likewise.
64446         * modules/memxor (Makefile.am): Likewise.
64447         * modules/mkancesdirs (Makefile.am): Likewise.
64448         * modules/mkdir (Makefile.am): Likewise.
64449         * modules/mkdir-p (Makefile.am): Likewise.
64450         * modules/mkdtemp (Makefile.am): Likewise.
64451         * modules/mkstemp (Makefile.am): Likewise.
64452         * modules/mktime (Makefile.am): Likewise.
64453         * modules/modechange (Makefile.am): Likewise.
64454         * modules/mountlist (Makefile.am): Likewise.
64455         * modules/nanosleep (Makefile.am): Likewise.
64456         * modules/openat (Makefile.am): Likewise.
64457         * modules/pagealign_alloc (Makefile.am): Likewise.
64458         * modules/physmem (Makefile.am): Likewise.
64459         * modules/poll (Makefile.am): Likewise.
64460         * modules/posixtm (Makefile.am): Likewise.
64461         * modules/posixver (Makefile.am): Likewise.
64462         * modules/putenv (Makefile.am): Likewise.
64463         * modules/quote (Makefile.am): Likewise.
64464         * modules/quotearg (Makefile.am): Likewise.
64465         * modules/raise (Makefile.am): Likewise.
64466         * modules/read-file (Makefile.am): Likewise.
64467         * modules/readline (Makefile.am): Likewise.
64468         * modules/readlink (Makefile.am): Likewise.
64469         * modules/readtokens (Makefile.am): Likewise.
64470         * modules/readutmp (Makefile.am): Likewise.
64471         * modules/realloc (Makefile.am): Likewise.
64472         * modules/regex (Makefile.am): Likewise.
64473         * modules/rename (Makefile.am): Likewise.
64474         * modules/rename-dest-slash (Makefile.am): Likewise.
64475         * modules/rijndael (Makefile.am): Likewise.
64476         * modules/rmdir (Makefile.am): Likewise.
64477         * modules/rpmatch (Makefile.am): Likewise.
64478         * modules/safe-read (Makefile.am): Likewise.
64479         * modules/safe-write (Makefile.am): Likewise.
64480         * modules/same (Makefile.am): Likewise.
64481         * modules/save-cwd (Makefile.am): Likewise.
64482         * modules/savedir (Makefile.am): Likewise.
64483         * modules/setenv (Makefile.am): Likewise.
64484         * modules/settime (Makefile.am): Likewise.
64485         * modules/sha1 (Makefile.am): Likewise.
64486         * modules/sig2str (Makefile.am): Likewise.
64487         * modules/snprintf (Makefile.am): Likewise.
64488         * modules/stdlib-safer (Makefile.am): Likewise.
64489         * modules/stpcpy (Makefile.am): Likewise.
64490         * modules/stpncpy (Makefile.am): Likewise.
64491         * modules/strcase (Makefile.am): Likewise.
64492         * modules/strcasestr (Makefile.am): Likewise.
64493         * modules/strchrnul (Makefile.am): Likewise.
64494         * modules/strcspn (Makefile.am): Likewise.
64495         * modules/strdup (Makefile.am): Likewise.
64496         * modules/strerror (Makefile.am): Likewise.
64497         * modules/strftime (Makefile.am): Likewise.
64498         * modules/strndup (Makefile.am): Likewise.
64499         * modules/strnlen (Makefile.am): Likewise.
64500         * modules/strpbrk (Makefile.am): Likewise.
64501         * modules/strsep (Makefile.am): Likewise.
64502         * modules/strstr (Makefile.am): Likewise.
64503         * modules/strtod (Makefile.am): Likewise.
64504         * modules/strtoimax (Makefile.am): Likewise.
64505         * modules/strtok_r (Makefile.am): Likewise.
64506         * modules/strtol (Makefile.am): Likewise.
64507         * modules/strtoll (Makefile.am): Likewise.
64508         * modules/strtoul (Makefile.am): Likewise.
64509         * modules/strtoull (Makefile.am): Likewise.
64510         * modules/strtoumax (Makefile.am): Likewise.
64511         * modules/strverscmp (Makefile.am): Likewise.
64512         * modules/time_r (Makefile.am): Likewise.
64513         * modules/timegm (Makefile.am): Likewise.
64514         * modules/tmpfile-safer (Makefile.am): Likewise.
64515         * modules/unistd-safer (Makefile.am): Likewise.
64516         * modules/unlinkdir (Makefile.am): Likewise.
64517         * modules/userspec (Makefile.am): Likewise.
64518         * modules/utime (Makefile.am): Likewise.
64519         * modules/utimecmp (Makefile.am): Likewise.
64520         * modules/utimens (Makefile.am): Likewise.
64521         * modules/vasnprintf (Makefile.am): Likewise.
64522         * modules/vasprintf (Makefile.am): Likewise.
64523         * modules/vsnprintf (Makefile.am): Likewise.
64524         * modules/xalloc (Makefile.am): Likewise.
64525         * modules/xgetcwd (Makefile.am): Likewise.
64526         * modules/xnanosleep (Makefile.am): Likewise.
64527         * modules/xreadlink (Makefile.am): Likewise.
64528         * modules/xstrtod (Makefile.am): Likewise.
64529         * modules/xstrtol (Makefile.am): Likewise.
64530         * modules/xstrtold (Makefile.am): Likewise.
64531         * modules/yesno (Makefile.am): Likewise.
64532
64533 2006-10-12  Jim Meyering  <jim@meyering.net>
64534
64535         * m4/getloadavg.m4: Revert the change below.
64536
64537         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64538         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64539         fail with a symlink, which is what coreutils' ./bootstrap now
64540         creates by default.
64541
64542 2006-10-12  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64545         mingw.
64546         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64547         MSVC and mingw explicitly.
64548
64549 2006-10-11  Simon Josefsson  <jas@extundo.com>
64550             Bruno Haible  <bruno@clisp.org>
64551
64552         Add support for multiple gnulib-tool invocations in the scope of a
64553         single configure.ac file.
64554         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64555         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64556         with the same contents as the _LIBADD variable.
64557         (func_emit_initmacro_start, func_emit_initmacro_end,
64558         func_emit_initmacro_done): New functions.
64559         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64560         gl_LIBOBJS and gl_LTLIBOBJS.
64561
64562 2006-10-11  Bruno Haible  <bruno@clisp.org>
64563
64564         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64565         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64566         autoreconf. Instead, invoke autopoint explicitly but move back the
64567         *.m4 files from gnulib.
64568
64569 2006-10-11  Bruno Haible  <bruno@clisp.org>
64570
64571         * gnulib-tool (func_usage): Make module names after --create-testdir
64572         optional.
64573         (func_create_testdir): If no module was specified, use nearly all
64574         modules.
64575
64576 2006-10-12  Jim Meyering  <jim@meyering.net>
64577
64578         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64579         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64580         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64581         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64582         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64583         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64584         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64585         (fts_set_stat_required): New function.
64586         (fts_open): Defer the calls to fts_stat, if possible or requested.
64587         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64588         into fts_stat itself.
64589         (fts_read): Perform any required (deferred) fts_stat call.
64590         (fts_build): Likewise, for the directory we're about to open and read.
64591         In the readdir loop, carefully decide whether each entry will require
64592         an eventual call to fts_stat, using dirent.d_type info if available.
64593         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64594         a command line argument into this function.  Update all callers.
64595         Map a return value of FTS_DOT to FTS_D for a command line argument.
64596         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64597         Thanks to Miklos Szeredi for his tenacity and for the initial
64598         bug report about "find" failing on a FUSE-based file system.
64599
64600         * lib/fts.c (fts_open): Use consistent indentation.
64601
64602 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64603
64604         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64605         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64606         reported by Jim Meyering.  All uses of cache variables renamed
64607         to match Autoconf's.
64608         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64609         the other one.
64610
64611         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64612         Fix misspelling in diagnostic.
64613
64614 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64617         defined.  Problem reported by Matthew Woehlke.
64618
64619         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64620         Add support for Tandem NonStop R series.
64621         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64622         Use new macro.
64623
64624         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64625         (has_trailing_slash): Omit size arg; all callers changed.
64626         Omit 'inline', since it doesn't help performance and we'd
64627         need to configure it.
64628         Don't count //, ///, etc. as having a trailing slash.
64629         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64630         (rpl_rename_dest_slash): On failure, use rename's errno rather
64631         than (in some cases) an incorrect or junk errno.
64632         Simplify code by removing need to compute length; this does
64633         cause it to make two passes instead of one over the file name,
64634         but it's worth it.
64635
64636         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64637         change, since Autoconf's version may no longer be appropriate now
64638         that we are using CVS Autoconf's version.  Add support for Tandem.
64639
64640 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64641             Bruno Haible  <bruno@clisp.org>
64642
64643         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64644         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64645         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64646         gl_AC_TYPE_LONG_LONG.
64647
64648         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64649         instead of HAVE_LONG_LONG.
64650         * lib/printf-args.c (printf_fetchargs): Likewise.
64651         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64652         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64653         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64654         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64655         gl_AC_TYPE_LONG_LONG.
64656
64657 2006-10-11  Bruno Haible  <bruno@clisp.org>
64658
64659         * m4/longlong.m4: Add comments.
64660         * m4/ulonglong.m4: Likewise.
64661
64662 2006-10-10  Bruno Haible  <bruno@clisp.org>
64663
64664         Make it possible to #define stpcpy, strdup to aliases.
64665         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64666         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64667
64668 2006-10-10  Bruno Haible  <bruno@clisp.org>
64669
64670         Make it possible to #define gcd to an alias.
64671         * lib/gcd.c: Include config.h.
64672
64673 2006-10-10  Bruno Haible  <bruno@clisp.org>
64674
64675         Make it possible to #define c_isascii to an alias.
64676         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64677         defined. Undefine the macros before defining them, to avoid gcc
64678         warnings.
64679         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64680         define NO_C_CTYPE_MACROS early.
64681
64682 2006-10-10  Bruno Haible  <bruno@clisp.org>
64683
64684         Make it possible to #define set_program_name to an alias.
64685         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64686         ENABLE_RELOCATABLE early.
64687
64688 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64691         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64692         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64693         More generally, don't assume that 64-bit signed int is available
64694         if unsigned int is, and vice versa.
64695         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64696         unsigned symbols, not on their signed counterparts.
64697         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64698         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64699         (UINT64_C, UINTMAX_C):
64700         Likewise.
64701         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64702         unsigned counterparts.
64703         (Have_long_long, Unsigned): New macros.
64704         (Int): Renamed from INT.
64705         (strtoimax): Use the new macros.
64706         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64707         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64708         * modules/inttypes (inttypes.h): Substitute
64709         HAVE_UNSIGNED_LONG_LONG_INT.
64710         * modules/stdint (stdint.h): Likewise.
64711         (Files): Add m4/ulonglong.m4.
64712
64713 2006-10-10  Bruno Haible  <bruno@clisp.org>
64714
64715         Fix a gcc -Wshadow warning.
64716         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64717         to 'bucket'.
64718         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64719         gl_linked_indexof_from_to): Likewise.
64720         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64721         Likewise.
64722         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64723         Likewise.
64724         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64725         Reported by Eric Blake.
64726
64727 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64728
64729         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64730         for NetBSD.  Problem reported by Bruno Haible.
64731
64732 2006-10-09  Jim Meyering  <jim@meyering.net>
64733
64734         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64735         Patch from Bruno Haible.
64736
64737 2006-10-09  Jim Meyering  <jim@meyering.net>
64738
64739         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64740         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64741         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64742
64743 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64744
64745         Don't include <config.h> twice; this doesn't work in some cases,
64746         e.g., when config.h has "#define intmax_t long long int" and
64747         we include <config.h>, <inttypes.h>, <config.h> in that order.
64748         Problem reported by Matthew Woehlke in:
64749         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64750         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64751         * lib/fts-cycle.c: Don't include config.h.
64752         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64753         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64754         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64755         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64756         inttypes.h.
64757         * lib/xstrtoumax.c: Likewise.
64758         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64759         __strtol and the like, so that this module is more like its siblings.
64760         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64761         Remove; no longer needed now that we assume gnulib inttypes.h.
64762
64763 2006-10-08  Bruno Haible  <bruno@clisp.org>
64764
64765         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64766         option.
64767
64768 2006-10-07  Jim Meyering  <jim@meyering.net>
64769
64770         * modules/inttypes (inttypes.h): Revert what seems to have been
64771         an inadvertent part of today's change: use "|", not "/" in the
64772         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64773
64774 2006-10-07  Bruno Haible  <bruno@clisp.org>
64775
64776         * modules/sublist: New file.
64777
64778 2006-10-07  Bruno Haible  <bruno@clisp.org>
64779
64780         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64781         * modules/argz (argz.h): Likewise.
64782         * modules/arpa_inet (arpa/inet.h): Likewise.
64783         * modules/byteswap (byteswap.h): Likewise.
64784         * modules/configmake (configmake.h): Likewise.
64785         * modules/fcntl (fcntl.h): Likewise.
64786         * modules/fnmatch (fnmatch.h): Likewise.
64787         * modules/getopt (getopt.h): Likewise.
64788         * modules/glob (glob.h): Likewise.
64789         * modules/inttypes (inttypes.h): Likewise.
64790         * modules/netinet_in (netinet/in.h): Likewise.
64791         * modules/poll (poll.h): Likewise.
64792         * modules/stdbool (stdbool.h): Likewise.
64793         * modules/stdint (stdint.h): Likewise.
64794         * modules/sys_select (sys/select.h): Likewise.
64795         * modules/sys_socket (sys/socket.h): Likewise.
64796         * modules/sys_stat (sys/stat.h): Likewise.
64797         * modules/sysexits (sysexits.h): Likewise.
64798         * modules/unistd (unistd.h): Likewise.
64799         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64800         Add a "DO NOT EDIT" comment to the generated file.
64801         (func_import): Likewise for gnulib-comp.m4.
64802
64803 2006-10-07  Bruno Haible  <bruno@clisp.org>
64804
64805         * lib/gl_sublist.h: New file.
64806         * lib/gl_sublist.c: New file.
64807
64808 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64811         name (relative to the original working directory) and the file
64812         name component (relative to the temporary working directory).  All
64813         callers changed.
64814         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64815         * lib/mkdir-p.c (make_dir_parents): Likewise.
64816         * lib/mkdir-p.h (make_dir_parents): Likewise.
64817
64818 2006-10-06  Eric Blake  <ebb9@byu.net>
64819
64820         Define several macros for use by the clean-temp module.
64821         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64822         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64823         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64824
64825         * lib/clean-temp.h (close_stream_temp): New declaration.
64826         * lib/clean-temp.c (includes): Pull in headers according to what
64827         other modules are in use.
64828         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64829
64830 2006-10-06  Bruno Haible  <bruno@clisp.org>
64831
64832         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64833         instead of fopen, fwriteerror.
64834
64835 2006-10-06  Bruno Haible  <bruno@clisp.org>
64836
64837         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64838         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64839         int.
64840         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64841         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64842         Return an error indicator.
64843         Suggested by Eric Blake.
64844
64845 2006-10-06  Bruno Haible  <bruno@clisp.org>
64846
64847         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64848         Reported by Eric Blake.
64849
64850 2006-10-06  Bruno Haible  <bruno@clisp.org>
64851
64852         * modules/closeout (Description): Mention stderr too.
64853
64854 2006-10-06  Bruno Haible  <bruno@clisp.org>
64855         and Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         * lib/closeout.c (close_stdout): Also close stderr.
64858         * lib/closeout.h: Update comment.
64859
64860 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64863         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64864         * lib/dirchownmod.c: Include lchown.h.
64865         * lib/lchown.c: Don't include files that lchown.h now includes.
64866         Don't declare chown, since lchown.h now does that.
64867         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64868         (lchown): Define to rpl_chown if lchown is declared but
64869         does not exist.  Declare using a prototype if lchown is not
64870         declared.  Add a copyright notice.
64871         * lib/mkstemp.h: Include <unistd.h>.
64872         * lib/openat.c: Include lchown.h.
64873
64874         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64875         we now test for that separately.
64876         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64877         rather than O_NOFOLLOW, when testing whether it's possible to
64878         avoid a race condition reliably.
64879         * lib/savewd.c (savewd_chdir): Likewise.
64880
64881         Remove macros that are no longer needed now that stdint.h is
64882         reliable.
64883         * lib/fsusage.c (UINTMAX_MAX): Remove.
64884         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64885         * lib/utimecmp.c (SIZE_MAX): Remove.
64886
64887         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64888
64889         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64890         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64891         O_NOATIME works.
64892
64893 2006-10-05  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/gl_list.h (gl_sortedlist_search_from_to,
64896         gl_sortedlist_indexof_from_to): New declarations.
64897         (gl_list_implementation): New fields sortedlist_search_from_to,
64898         sortedlist_indexof_from_to.
64899         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64900         inline functions.
64901         * lib/gl_list.c (gl_sortedlist_search_from_to,
64902         gl_sortedlist_indexof_from_to): New functions.
64903         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64904         function.
64905         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64906         (gl_array_sortedlist_search_from_to): New function.
64907         (gl_array_list_implementation): Update.
64908         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64909         function.
64910         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64911         (gl_carray_sortedlist_search_from_to): New function.
64912         (gl_carray_list_implementation): Update.
64913         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64914         gl_linked_sortedlist_indexof_from_to): New functions.
64915         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64916         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64917         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64918         gl_tree_sortedlist_indexof_from_to): New functions.
64919         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64920         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64921         Update.
64922         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64923         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64924         Update.
64925
64926 2006-10-05  Bruno Haible  <bruno@clisp.org>
64927
64928         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64929         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64930         (struct gl_list_implementation): Add fields search_from_to,
64931         indexof_from_to. Remove fields search, indexof.
64932         (gl_list_search): Use the search_from_to method.
64933         (gl_list_search_from, gl_list_search_from_to): New functions.
64934         (gl_list_indexof): Use the indexof_from_to method.
64935         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64936         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64937         (gl_list_search_from, gl_list_search_from_to): New functions.
64938         (gl_list_indexof): Use the indexof_from_to method.
64939         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64940         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64941         gl_array_indexof. Add start_index, end_index arguments.
64942         (gl_array_search_from_to): Renamed from gl_array_search. Add
64943         start_index, end_index arguments.
64944         (gl_array_remove, gl_array_list_implementation): Update.
64945         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64946         gl_carray_indexof. Add start_index, end_index arguments.
64947         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64948         start_index, end_index arguments.
64949         (gl_carray_remove, gl_carray_list_implementation): Update.
64950         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64951         gl_linked_search. Add start_index, end_index arguments.
64952         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64953         start_index, end_index arguments.
64954         (gl_linked_remove): Update.
64955         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64956         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64957         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64958         field to 'size_t'.
64959         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64960         gl_tree_search. Add start_index, end_index arguments.
64961         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64962         start_index, end_index arguments.
64963         (gl_tree_remove): Update.
64964         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64965         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64966         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64967         function.
64968         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64969         gl_tree_search. Add start_index, end_index arguments.
64970         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64971         start_index, end_index arguments.
64972         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64973         Update.
64974         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64975
64976 2006-10-05  Bruno Haible  <bruno@clisp.org>
64977
64978         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64979
64980         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64981         fwriteerror_temp): New declarations.
64982         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64983         (descriptors): New variable.
64984         (cleanup): First, close the descriptors.
64985         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64986         fclose_temp, fwriteerror_temp): New functions.
64987
64988 2006-10-04  Jim Meyering  <jim@meyering.net>
64989
64990         * lib/fts.c (fts_open): Tiny comment change.
64991
64992 2006-10-04  Bruno Haible  <bruno@clisp.org>
64993
64994         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64995         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64996         gl_LOCK_BODY.
64997         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64998         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64999         gl_LOCK_EARLY_BODY.
65000         (gl_LOCK): Require gl_LOCK_BODY.
65001
65002 2006-10-04  Bruno Haible  <bruno@clisp.org>
65003
65004         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65005         (gl_oset_search_atleast): New declaration.
65006         (struct gl_oset_implementation): Add field 'search_atleast'.
65007         (gl_oset_search_atleast): New inline function.
65008         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65009         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65010         (gl_array_oset_implementation): Update.
65011         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65012         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65013         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65014
65015 2006-10-04  Bruno Haible  <bruno@clisp.org>
65016
65017         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65018
65019 2006-10-03  Bruno Haible  <bruno@clisp.org>
65020
65021         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65022         from gl_avltreehash_list_implementation.
65023
65024 2006-10-03  Bruno Haible  <bruno@clisp.org>
65025
65026         * lib/gl_oset.c (gl_oset_add): Fix return type.
65027
65028 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65029
65030         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65031
65032 2006-10-02  Eric Blake  <ebb9@byu.net>
65033
65034         * modules/strnlen (Depends-on): Add extensions.
65035
65036 2006-10-02  Eric Blake  <ebb9@byu.net>
65037
65038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65039         definition in 2.60+.
65040
65041 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65042
65043         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65044         checks.
65045
65046 2006-10-02  Bruno Haible  <bruno@clisp.org>
65047
65048         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65049         to the AUTOMAKE_OPTIONS.
65050         Reported by Jim Meyering.
65051
65052 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65053
65054         Work around bug in Solaris 10 /proc file system:
65055         /proc/self/fd/NNN/.. isn't the parent directory of
65056         the directory whose file descriptor is NNN.  This needs to
65057         be worked around at run time, not compile time, since a
65058         program might be built on Solaris 8, where things work, and
65059         run on Solaris 10.
65060         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65061         to use the following interface instead:
65062         (OPENAT_BUFFER_SIZE): New macro.
65063         (openat_proc_name): New function.
65064         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65065         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65066         Likewise.
65067         * lib/openat-proc.c: New file.
65068         * modules/openat (Files): Add lib/openat-proc.c.
65069         (Depends-on): Add same-inode, stdbool.
65070         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65071
65072 2006-09-29  Bruno Haible  <bruno@clisp.org>
65073
65074         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65075         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65076         argument. Set stdout_closed before testing for ferror, not after.
65077         (fwriteerror, fwriteerror_no_ebadf): New functions.
65078
65079 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65080
65081         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65082
65083 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65084
65085         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65086         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65087
65088 2006-09-28  Jim Meyering  <jim@meyering.net>
65089
65090         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65091         Include <unistd.h>.
65092
65093 2006-09-28  Bruno Haible  <bruno@clisp.org>
65094
65095         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65096         * modules/linkedhash-list (Depends-on): Likewise.
65097         * modules/rbtreehash-list (Depends-on): Likewise.
65098
65099 2006-09-28  Bruno Haible  <bruno@clisp.org>
65100
65101         * lib/strndup.h: Simplify the redefinition of strndup.
65102         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65103         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65104
65105 2006-09-28  Bruno Haible  <bruno@clisp.org>
65106
65107         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65108         * lib/gl_linkedhash_list.c: Likewise.
65109         * lib/gl_rbtreehash_list.c: Likewise.
65110
65111 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65112
65113         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65114         getaddrinfo.
65115
65116         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65117         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65118         it causes <stdio_ext.h> to cause a compile-time error.
65119         Problem reported by Nelson H. F. Beebe.
65120         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65121         of HAVE_DECL___PENDING.
65122
65123         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65124         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65125         declaration.
65126
65127 2006-09-27  Jim Meyering  <jim@meyering.net>
65128
65129         This file could end up with a definition for a function
65130         named __strndup, rather than rpl_strndup on a system with
65131         incomplete weak_alias support.
65132         * lib/strndup.c (strndup): Rename from __strndup.
65133         Remove #defines that used to map __strndup to strndup.
65134         Don't use K&R prototypes.
65135         Remove LIBC-related code, since this file is not sync'd with glibc.
65136         * lib/strndup.h: Revamp, accordingly.
65137         * m4/strndup.m4: Modernize.
65138
65139 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65140
65141         * modules/savewd (Depends-on): Add 'raise'.
65142         * lib/savewd.c: Include <signal.h>, for 'raise'.
65143
65144 2006-09-26  Jim Meyering  <jim@meyering.net>
65145
65146         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65147         when we detect Darwin 8.7.0's acl_get_file bug.
65148         Rearrange to perform the new (below) run-test while $LIBS
65149         contains any acl-related library.  Set USE_ACL at the end.
65150         (gl_ACL_GET_FILE): New function.
65151
65152 2006-09-26  Eric Blake  <ebb9@byu.net>
65153
65154         * lib/verror.c: Include <config.h> unconditionally.
65155
65156 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65157
65158         * modules/clock-time (Maintainer): Add self.
65159         * modules/getlogin_r (Depends-on): Add extensions.
65160
65161 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65162
65163         * modules/clock-time: New module.
65164         * modules/nanosleep (Depends-on): Add clock-time.
65165         * modules/gethrxtime (Depends-on): Likewise.
65166         * modules/gettime (Depends-on): Likewise.
65167         * modules/settime (Depends-on): Likewise.
65168
65169         * modules/fts-lgpl: Depend on openat.
65170         * modules/mkancesdirs: Depend on savewd.
65171         * modules/mkdir-p: Likewise.
65172
65173 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65174
65175         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65176
65177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65178         `gl_have_arbitrary_file_name_length_limit' to
65179         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65180         actually works between configure runs.
65181
65182 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65183             Bruno Haible  <bruno@clisp.org>
65184
65185         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65186
65187 2006-09-25  Jim Meyering  <jim@meyering.net>
65188
65189         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65190         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65191
65192 2006-09-25  Eric Blake  <ebb9@byu.net>
65193
65194         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65195         exec's in 2006-09-18 patch when shuffling fds.
65196
65197 2006-09-25  Bruno Haible  <bruno@clisp.org>
65198
65199         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65200         Reported by Jim Meyering.
65201
65202 2006-09-24  Jim Meyering  <jim@meyering.net>
65203
65204         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65205         compare a pointer against a literal "0".  That caused failures with
65206         at least HP-UX's hpcc.
65207
65208 2006-09-22  Simon Josefsson  <jas@extundo.com>
65209
65210         * modules/gc-sha1:
65211         * modules/gc-md4:
65212         * modules/gc-hmac-sha1:
65213         * modules/gc-hmac-md5:
65214         * modules/gc-des:
65215         * modules/gc-arcfour: Distribute more files.
65216
65217 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65218
65219         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65220         (gl_linked_iterator_from_to): Initialize struct completely.
65221         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65222         (gl_tree_iterator_from_to): Likewise
65223         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65224         * lib/gl_array_list.c [lint] (gl_array_iterator)
65225         (gl_array_iterator_from_to): Likewise.
65226         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65227         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65228         (gl_carray_iterator_from_to): Likewise.
65229
65230         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65231         * lib/md4.c (md4_process_block): Remove unused variable.
65232         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65233         parentheses for clarity.
65234
65235 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65236
65237         * modules/bison-i18n (Depends-on): Add gettext.
65238
65239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65240
65241         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65242         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65243         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65244         also add missing comma that caused broken test.
65245         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65246         stdlib.h, for `abort'.
65247         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65248         variables.
65249         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65250         include unistd.h if present, for `rmdir'.
65251         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65252         variables.
65253         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65254         in the process include standard headers for prototypes.
65255         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65256         gets declared on GNU/Linux.
65257         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65258         unistd.h, for `rmdir'.
65259         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65260
65261         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65262         always true.
65263         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65264
65265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65266
65267 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65268
65269         * gnulib-tool (func_version): Create output all at once.  This
65270         may help avoid triggering unnecessary SIGPIPEs, and at any
65271         rate it doesn't hurt.
65272
65273 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65274             Bruno Haible  <bruno@clisp.org>
65275
65276         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65277         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65278         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65279
65280         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65281         (gl_FUNC_VASPRINTF): Invoke it.
65282
65283 2006-09-22  Bruno Haible  <bruno@clisp.org>
65284
65285         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65286         getloadavg.c as first argument.
65287
65288 2006-09-22  Bruno Haible  <bruno@clisp.org>
65289
65290         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65291         at the beginning of the gl_INIT macro.
65292         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65293         gl_GETLOADAVG.
65294
65295 2006-09-22  Bruno Haible  <bruno@clisp.org>
65296
65297         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65298         module.
65299         Suggested by Ralf Wildenhues.
65300
65301 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65302
65303         Import this patch from libc:
65304
65305         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65306
65307         * lib/regex_internal.c (re_string_reconstruct): Handle
65308         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65309         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65310         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65311         re_string_context_at.
65312
65313         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65314         now requires it.
65315         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65316         gl_REGEX now does it for us.
65317         (gl_REGEX): Add test taken from
65318         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65319
65320         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65321         Check that large offsets work.  Modernize Autoconf usages.
65322         Prefer "yes" to mean a good thing rather than a bad.
65323         Don't put "#define mkstemp" in config.h, as this might interfere
65324         with standard system headers that "#define mkstemp mkstemp64".
65325
65326         * modules/mkstemp (Depends-on): Add extensions, so that
65327         mkstemp is visible on some platforms.
65328         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65329         (Include): Change to "mkstemp.h" from <stdlib.h>.
65330         (Files): Add mkstemp.h.
65331
65332         * lib/mkstemp.h: New file, since some standard headers
65333         #define mkstemp.
65334         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65335         Include "mkstemp.h".
65336         Make the _LIBC code resemble glibc original more,
65337         e.g., use K&R style.
65338         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65339         (mkstemp): Remove, since mkstemp.h does this for us.
65340         * lib/stdlib--.h: Include mkstemp.h.
65341
65342         Import this patch from libc:
65343
65344         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65345
65346         * lib/tempname.c (__gen_tempname): Change attempts_min
65347         into a macro.  Use preprocessor to decide how to initialize
65348         attempts [Coverity CID 67].
65349
65350 2006-09-20  Bruno Haible  <bruno@clisp.org>
65351
65352         * lib/mkdtemp.c: Import from libc.
65353         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65354                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65355                 attempts_min into a macro.  Use preprocessor to decide how to
65356                 initialize attempts [Coverity CID 67].
65357         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65358                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65359                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65360
65361 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65362
65363         * gnulib-tool (func_exit): New function, to allow to pass the
65364         exit status portably through the trap.  Use everywhere.
65365         (--help, --version): Signal a write error.
65366         (trap): catch SIGPIPE, for write errors.
65367         Exit at the end of the trap, with the correct exit status.
65368
65369 2006-09-19  Karl Berry  <karl@gnu.org>
65370
65371         * doc/gnulib.texi: note about the license texinfo files.
65372
65373 2006-09-19  Eric Blake  <ebb9@byu.net>
65374
65375         * gnulib-tool: Avoid space-tab.
65376
65377 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65380         that prevented coreutils 6.1 from building.  Problem reported
65381         by Petter Reinholdtsen.
65382
65383 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         * gnulib-tool (avoidlist): Fix typo that broke options like
65386         --avoid=lock that are used by coreutils bootstrap.
65387
65388 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65389
65390         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65391         more systematically.
65392
65393 2006-09-18  Jim Meyering  <jim@meyering.net>
65394
65395         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65396
65397 2006-09-18  Bruno Haible  <bruno@clisp.org>
65398
65399         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65400
65401 2006-09-18  Bruno Haible  <bruno@clisp.org>
65402
65403         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65404         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65405         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65406         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65407         * m4/gettext.m4: Require autoconf >= 2.52.
65408         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65409         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65410         of gl_cv_header_inttypes_h.
65411
65412 2006-09-18  Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/javaversion.c: Include configmake.h.
65415
65416 2006-09-18  Bruno Haible  <bruno@clisp.org>
65417
65418         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65419         avoid that the while loops be executed in a subshell.
65420
65421 2006-09-18  Bruno Haible  <bruno@clisp.org>
65422
65423         * MODULES.html.sh (func_module): Break long lines.
65424         Suggested by Bruce Korb <bkorb@gnu.org>.
65425
65426 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65427
65428         Speed up by a factor of 1.12.
65429         * gnulib-tool (nl): New variable.
65430         (func_import): Rewrite include directive extraction to only read each
65431         directive once.
65432
65433 2006-09-17  Bruno Haible  <bruno@clisp.org>
65434
65435         * modules/javaversion (Makefile.am): Remove DEFS setting.
65436         (Depends-on): Add configmake, for PKGDATADIR definition.
65437
65438 2006-09-17  Bruno Haible  <bruno@clisp.org>
65439
65440         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65441
65442 2006-09-17  Bruno Haible  <bruno@clisp.org>
65443
65444         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65445         (func_modules_transitive_closure, func_modules_add_dummy,
65446         func_modules_to_filelist, func_import, func_create_testdir,
65447         func_create_megatestdir, ...): Use it wherever possible.
65448         Suggested by Ralf Wildenhues.
65449
65450 2006-09-16  Karl Berry  <karl@gnu.org>
65451
65452         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65453         to avoid sectioning errors.
65454         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65455         [ifinfo]: blank line after @center-ed titles.
65456         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65457         Spell FSF address consistently with others.
65458         (These changes approved by rms.)
65459
65460 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65461
65462         Speed up by a factor of 1.61.
65463         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65464         already checked module names again.
65465
65466 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65467
65468         Speed up by a factor of 1.13.
65469         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65470         for new_files, and the input to func_add_or_update.
65471
65472 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65473
65474         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65475         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65476
65477 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65478
65479         * modules/mkancesdirs (Depends-on): Add fcntl.
65480         * modules/savewd: New file.
65481         * MODULES.html.sh (File system functions): Add savewd.
65482
65483         * modules/configmake (Makefile.am): Add support for the
65484         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65485
65486 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         * m4/savewd.m4: New file.
65489
65490 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65491
65492         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65493         (dirchownmod): New arg FD.  All callers changed.
65494         Use FD rather than opening the directory ourself, as opening is
65495         now the caller's responsibility.
65496         * lib/dirchownmod.h: Likewise.
65497         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65498         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65499         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65500         (test_dir): Remove.
65501         (mkancesdirs): Return length of prefix of FILE that has already
65502         been made, or -2 if there is a child doing the work.  Redo
65503         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65504         ".", and treat ".." specially since it might stray back into
65505         already-created areas.  Use a subprocess if necessary.  New arg
65506         WD; all users changed.  MAKE_DIR function should now return 1
65507         if it creates a directory that is not readable.  Return -2 if
65508         a child process is spun off.
65509         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65510         Adjust signature to match code.
65511         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65512         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65513         all users changed.
65514         * lib/savewd.c, lib/savewd.h: New files.
65515
65516 2006-09-15  Jim Meyering  <jim@meyering.net>
65517
65518         * modules/rename-dest-slash: New module.
65519         * MODULES.html.sh (posix_compat): Add it here.
65520
65521         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65522
65523 2006-09-15  Jim Meyering  <jim@meyering.net>
65524
65525         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65526         file.
65527
65528         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65529
65530 2006-09-15  Jim Meyering  <jim@meyering.net>
65531
65532         * lib/rename-dest-slash.c (has_trailing_slash): Use
65533         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65534         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65535         test before testing whether SRC is a directory.
65536         Suggestions from Bruno Haible.
65537
65538         Avoid a warning about an unused variable.
65539         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65540         into the #ifdef block where it's used.
65541
65542         * lib/rename-dest-slash.c: New file.
65543
65544 2006-09-14  Bruno Haible  <bruno@clisp.org>
65545
65546         * lib/allocsa.c: Include <config.h> unconditionally.
65547         * lib/asnprintf.c: Likewise.
65548         * lib/asprintf.c: Likewise.
65549         * lib/c-strcasecmp.c: Likewise.
65550         * lib/c-strcasestr.c: Likewise.
65551         * lib/c-strncasecmp.c: Likewise.
65552         * lib/c-strstr.c: Likewise.
65553         * lib/classpath.c: Likewise.
65554         * lib/clean-temp.c: Likewise.
65555         * lib/concatpath.c: Likewise.
65556         * lib/copy-file.c: Likewise.
65557         * lib/csharpcomp.c: Likewise.
65558         * lib/csharpexec.c: Likewise.
65559         * lib/execute.c: Likewise.
65560         * lib/fatal-signal.c: Likewise.
65561         * lib/findprog.c: Likewise.
65562         * lib/fwriteerror.c: Likewise.
65563         * lib/gl_array_list.c: Likewise.
65564         * lib/gl_array_oset.c: Likewise.
65565         * lib/gl_avltree_list.c: Likewise.
65566         * lib/gl_avltree_oset.c: Likewise.
65567         * lib/gl_avltreehash_list.c: Likewise.
65568         * lib/gl_carray_list.c: Likewise.
65569         * lib/gl_linked_list.c: Likewise.
65570         * lib/gl_linkedhash_list.c: Likewise.
65571         * lib/gl_list.c: Likewise.
65572         * lib/gl_oset.c: Likewise.
65573         * lib/gl_rbtree_list.c: Likewise.
65574         * lib/gl_rbtree_oset.c: Likewise.
65575         * lib/gl_rbtreehash_list.c: Likewise.
65576         * lib/imaxabs.c: Likewise.
65577         * lib/imaxdiv.c: Likewise.
65578         * lib/javacomp.c: Likewise.
65579         * lib/javaexec.c: Likewise.
65580         * lib/javaversion.c: Likewise.
65581         * lib/linebreak.c: Likewise.
65582         * lib/localcharset.c: Likewise.
65583         * lib/lock.c: Likewise.
65584         * lib/mbchar.c: Likewise.
65585         * lib/mbswidth.c: Likewise.
65586         * lib/mkdtemp.c: Likewise.
65587         * lib/pipe.c: Likewise.
65588         * lib/printf-args.c: Likewise.
65589         * lib/printf-parse.c: Likewise.
65590         * lib/progname.c: Likewise.
65591         * lib/progreloc.c: Likewise.
65592         * lib/readlink.c: Likewise.
65593         * lib/sh-quote.c: Likewise.
65594         * lib/stpcpy.c: Likewise.
65595         * lib/stpncpy.c: Likewise.
65596         * lib/strcasecmp.c: Likewise.
65597         * lib/strcasestr.c: Likewise.
65598         * lib/strcspn.c: Likewise.
65599         * lib/striconv.c: Likewise.
65600         * lib/strncasecmp.c: Likewise.
65601         * lib/strnlen1.c: Likewise.
65602         * lib/strstr.c: Likewise.
65603         * lib/strtok_r.c: Likewise.
65604         * lib/tls.c: Likewise.
65605         * lib/tmpdir.c: Likewise.
65606         * lib/unicodeio.c: Likewise.
65607         * lib/unsetenv.c: Likewise.
65608         * lib/vasnprintf.c: Likewise.
65609         * lib/vasprintf.c: Likewise.
65610         * lib/wait-process.c: Likewise.
65611         * lib/xallocsa.c: Likewise.
65612         * lib/xsetenv.c: Likewise.
65613         * lib/xstriconv.c: Likewise.
65614
65615 2006-09-13  Simon Josefsson  <jas@extundo.com>
65616
65617         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65618         that internally, suggested by Ralf Wildenhues
65619         <Ralf.Wildenhues@gmx.de>.
65620
65621 2006-09-13  Simon Josefsson  <jas@extundo.com>
65622
65623         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65624         @LIBOBJS@.
65625         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65626
65627 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65630         longer worry about uses that don't define HAVE_CONFIG_H.
65631         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65632         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65633         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65634         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65635         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65636         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65637         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65638         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65639         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65640         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65641         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65642         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65643         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65644         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65645         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65646         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65647         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65648         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65649         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65650         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65651         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65652         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65653         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65654         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65655         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65656         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65657         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65658         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65659         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65660         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65661         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65662         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65663         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65664         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65665         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65666         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65667         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65668         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65669         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65670         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65671         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65672         Likewise.
65673
65674 2006-09-13  Eric Blake  <ebb9@byu.net>
65675
65676         * lib/getopt.c: Fix typo in last commit.
65677
65678 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65679
65680         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65681         dgettext.
65682
65683 2006-09-12  Jim Meyering  <jim@meyering.net>
65684
65685         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65686         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65687         Reported by Nelson H. F. Beebe.
65688
65689 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65690
65691         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65692         program_invocation_name and program_invocation_short_name are
65693         initialized.
65694         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65695         and program_invocation_short_name to argp.h, so they are visible
65696         to user programs.
65697         * lib/argp.h: Likewise
65698
65699 2006-09-10  Bruno Haible  <bruno@clisp.org>
65700
65701         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65702         m4/inttypes_h.m4, m4/uintmax_t.m4.
65703
65704 2006-09-10  Bruno Haible  <bruno@clisp.org>
65705
65706         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65707         gl_AC_TYPE_UINTMAX_T.
65708
65709 2006-09-10  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65712
65713 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65714
65715         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65716         convention.  Text proposed by Bruno Haible.
65717         (struct argp_option): Document the use of N_() wrappers.
65718
65719         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65720         '\v', and translate the two parts separately, instead of feeding
65721         the whole string to gettext.  This allows to exclude
65722         '\v' from the strings visible to the translator by writing doc
65723         strings as N_("..") "\v" N_("..").
65724
65725 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65726
65727         * config/srclist.txt: Undo latest change; the bug was fixed.
65728
65729 2006-09-09  Bruno Haible  <bruno@clisp.org>
65730
65731         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65732         assignments if building a library without libtool.
65733         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65734         in func_emit_lib_Makefile_am.
65735         (func_import): When building a static library libfoo.a, arrange to
65736         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65737         (func_create_testdir): Likewise.
65738         * modules/gc (configure.ac, Makefile.am): If building statically,
65739         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65740         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65741         * modules/striconv (configure.ac, Makefile.am): Likewise.
65742         Based on a suggestion by Ralf Wildenhues.
65743
65744 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65745
65746         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65747         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65748         Also:
65749
65750         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65751         Add year_2050_test to catch glibc bug 2821
65752         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65753
65754         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65755         Prefer #ifdef to #if.
65756
65757         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65758         Return from 'main' instead of calling 'exit'.
65759
65760 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65763         returned the maximum time_t value rather than (time_t) -1.
65764         Problem originally reported by William Bardwell
65765         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65766
65767         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65768         Moved to here ...
65769         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65770         ... from here.
65771
65772 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65775         2821 is fixed.
65776
65777 2006-09-08  Jim Meyering  <jim@meyering.net>
65778
65779         Don't make generated files read-only.  That would bother too many
65780         people.  However, do retain the ability to work when targets are
65781         read-only: remove the destination and temporary files before writing
65782         them (when generated via sed or echo), or by using the -f option for
65783         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65784         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65785         * modules/byteswap, modules/configmake, modules/fcntl:
65786         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65787         * modules/localcharset, modules/netinet_in, modules/poll:
65788         * modules/stdbool, modules/stdint, modules/sys_select:
65789         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65790
65791 2006-09-08  Jim Meyering  <jim@meyering.net>
65792
65793         Avoid new build failure on FreeBSD 6.0.
65794         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65795         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65796         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65797
65798 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65799
65800         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65801
65802 2006-09-07  Jim Meyering  <jim@meyering.net>
65803
65804         Fix global typo in last change: use chmod u-w, not chmod u-x.
65805         Spotted by Paul Eggert and Bruce Korb.
65806         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65807         * modules/byteswap, modules/configmake, modules/fcntl:
65808         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65809         * modules/localcharset, modules/netinet_in, modules/poll:
65810         * modules/stdbool, modules/stdint, modules/sys_select:
65811         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65812
65813 2006-09-06  Jim Meyering  <jim@meyering.net>
65814
65815         Make generated files be read-only.
65816         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65817         Ensure that each generated file is now read-only.
65818         * modules/argz: Likewise.
65819         * modules/arpa_inet: Likewise.
65820         * modules/byteswap: Likewise.
65821         * modules/configmake: Likewise.
65822         * modules/fcntl: Likewise.
65823         * modules/fnmatch: Likewise.
65824         * modules/getopt: Likewise.
65825         * modules/glob: Likewise.
65826         * modules/inttypes: Likewise.
65827         * modules/netinet_in: Likewise.
65828         * modules/poll: Likewise.
65829         * modules/stdbool: Likewise.
65830         * modules/stdint: Likewise.
65831         * modules/sys_select: Likewise.
65832         * modules/sys_socket: Likewise.
65833         * modules/sys_stat: Likewise.
65834         * modules/sysexits: Likewise.
65835         * modules/localcharset: Same as above, but continue using temporary
65836         file named "t-$@" (why different?) rather than the "$@-t" used
65837         everywhere else.
65838
65839         * modules/sysexits (Makefile.am): Replace literal occurrences
65840         of "sysexit.h" more readable, and more consistent, "$@".
65841
65842 2006-09-06  Bruno Haible  <bruno@clisp.org>
65843
65844         * modules/striconv: New file.
65845         * modules/xstriconv: New file.
65846         * MODULES.html.sh (Internationalization functions): Add striconv,
65847         xstriconv.
65848
65849 2006-09-06  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65852         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65853         not using libtool correctly.
65854
65855 2006-09-06  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/striconv.h: New file.
65858         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65859         iconvstring.c.
65860         * lib/xstriconv.h: New file.
65861         * lib/xstriconv.c: New file.
65862
65863 2006-09-06  Bruno Haible  <bruno@clisp.org>
65864
65865         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65866         lib_..._LDFLAGS.
65867
65868 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65869
65870         * lib/argz_.h: Sync from Libtool.
65871
65872         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65873                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65874
65875         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65876
65877 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65878
65879         * modules/trim: New file.
65880
65881 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65882
65883         * lib/trim.h: New file.
65884         * lib/trim.c: New file.
65885
65886 2006-09-05  Bruno Haible  <bruno@clisp.org>
65887
65888         * MODULES.html.sh (String handling): Add trim.
65889
65890 2006-09-04  Karl Berry  <karl@gnu.org>
65891
65892         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65893         until next release.
65894
65895 2006-09-03  Bruno Haible  <bruno@clisp.org>
65896
65897         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65898         correctly.
65899
65900 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65903         not gl_GETLOADAVG.  Omit unneeded semicolons.
65904         Problems reported by Ralf Wildenhues in
65905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65906         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65907         at the end, which is the usual gnulib style.
65908
65909         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65910         of doing all the work ourselves.
65911         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65912         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65913
65914 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65917         Problem reported by Ralf Wildenhues in
65918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65919
65920         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65921         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65922
65923 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65924
65925         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65926         yesterday's patch by changing test -n to test -z.
65927
65928 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65931         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65932         the former is now obsolescent.
65933
65934         * modules/chdir-long (Depends-on): Add fcntl.
65935
65936 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65939         obsolescent, and programs should use gnulib instead.
65940         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65941         but with prefixes changed.
65942
65943 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65946         or stdbool.h, because they might not exist while configuring.
65947
65948         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65949         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65950         does that for us.
65951         (O_DIRECTORY): Remove.
65952
65953 2006-08-31  Eric Blake  <ebb9@byu.net>
65954
65955         * gnulib-tool: Don't let emacs change spaces to TAB.
65956
65957 2006-08-31  Bruno Haible  <bruno@clisp.org>
65958
65959         * gnulib-tool: When calling func_import more than once, do it in a
65960         subshell.
65961         Reported by Eric Blake <ebb9@byu.net>.
65962
65963 2006-08-31  Bruno Haible  <bruno@clisp.org>
65964
65965         * gnulib-tool (nl): Remove variable.
65966         (sed_transform_lib_file): Use more robust test for config-h module.
65967         (func_import): Fix typo in 2006-08-25 patch.
65968
65969 2006-08-31  Bruno Haible  <bruno@clisp.org>
65970
65971         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65972         specified, augment Makefile.am variables instead of assigning them.
65973
65974 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         Work around a bug in both the Linux and SunOS 64-bit kernels:
65977         nanosleep mishandles sleeps for longer than 2**31 seconds.
65978         Problem reported by Frank v Waveren in
65979         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65981         Check for nanosleep bug.
65982         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65983
65984 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65985
65986         Work around a bug in both the Linux and SunOS 64-bit kernels:
65987         nanosleep mishandles sleeps for longer than 2**31 seconds.
65988         Problem reported by Frank v Waveren in
65989         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65990         * lib/nanosleep.c (BILLION): New constant.
65991         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65992         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65993         implementation.
65994
65995 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65996
65997         * modules/nanosleep (Depends-on): Add gettime.
65998
65999 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66000         and Simon Josefsson  <jas@extundo.com>
66001         and Oskar Liljeblad  <oskar@osk.mine.nu>
66002
66003         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66004         * gnulib-tool (func_import): New license type 'unmodifiable license
66005         text'.
66006         * modules/fdl: Use it.  Longer description.
66007         * module/gpl, module/lgpl: New files.
66008
66009 2006-08-30  Jim Meyering  <jim@meyering.net>
66010
66011         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66012         shadowing the parameter.
66013
66014 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66015
66016         Sync from Libtool:
66017
66018         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66019
66020         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66021         sharing with gnulib.  Report by Eric Blake.
66022
66023 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66024
66025         * modules/isapipe: New file.
66026         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66027
66028 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         * modules/configmake (Makefile.am): Add a comment, and omit
66031         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66032         by Bruno Haible.
66033
66034 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66035
66036         * m4/isapipe.m4: New file.
66037
66038 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * lib/isapipe.c, lib/isapipe.h: New files.
66041
66042 2006-08-29  Jim Meyering  <jim@meyering.net>
66043
66044         * modules/configmake (Makefile.am): Make configmake.h depend on
66045         Makefile.  Otherwise, a stale configmake.h could hang around.
66046
66047 2006-08-29  Eric Blake  <ebb9@byu.net>
66048
66049         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66050         resolution of upstream bug 3044.
66051
66052 2006-08-29  Bruno Haible  <bruno@clisp.org>
66053
66054         * modules/localcharset (Depends-on): Add configmake.
66055         (Makefile.am): Remove setting of LIBDIR through DEFS.
66056
66057 2006-08-29  Bruno Haible  <bruno@clisp.org>
66058
66059         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66060         defined.
66061
66062 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66063
66064         * modules/fcntl: New file.
66065         * modules/chdir-safer (Depends-on): Add fcntl.
66066         * modules/fts: Likewise.
66067         * modules/mkdir-p: Likewise.
66068
66069         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66070         This undoes the most recent change, since we're now addressing the
66071         problem in a different way.
66072
66073         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66074         into output, since the output might be called Makefile.am even
66075         if $makefile_name is something different.
66076         (func_import): Use $makefile_am rather than
66077         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66078         empty.
66079
66080         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66081
66082 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66085         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66086         recent change to stdint.m4, since we're now addressing the problem in a
66087         different way.
66088
66089 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         * m4/fcntl_h.m4: New file.
66092
66093 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * lib/fcntl_.h: New file.
66096         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66097         the fcntl module.
66098         * lib/dirchownmod.c: Likewise.
66099         * lib/fts.c: Likewise.
66100
66101         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66102         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66103         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66104         just before including <inttypes.h>, to avoid circular inclusion.
66105
66106 2006-08-28  Jim Meyering  <jim@meyering.net>
66107
66108         * doc/visibility.texi: Actually read and correct the grammar of the
66109         sentence affected by yesterday's change.
66110
66111 2006-08-28  Eric Blake  <ebb9@byu.net>
66112
66113         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66114         needs wrapper.
66115
66116 2006-08-28  Eric Blake  <ebb9@byu.net>
66117
66118         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66119
66120 2006-08-28  Eric Blake  <ebb9@byu.net>
66121
66122         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66123
66124 2006-08-28  Bruno Haible  <bruno@clisp.org>
66125
66126         * modules/c-strstr: New file, from GNU gettext.
66127         * MODULES.html.sh (String handling): Add c-strstr.
66128
66129 2006-08-28  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66132         macros.
66133         Reported by Eric Blake.
66134
66135 2006-08-28  Bruno Haible  <bruno@clisp.org>
66136
66137         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66138         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66139         * lib/vasprintf.c: Include errno.h, limits.h.
66140         (EOVERFLOW): New fallback definition.
66141         (vasprintf): Test here whether the string length is > INT_MAX.
66142         * lib/vsnprintf.c: Include errno.h, limits.h.
66143         (EOVERFLOW): New fallback definition.
66144         (vsnprintf): Fix bug when generated string was too long for the buffer.
66145         Test here whether the string length is > INT_MAX.
66146
66147 2006-08-28  Bruno Haible  <bruno@clisp.org>
66148
66149         * lib/inttypes_.h (SCNX*): Remove definitions.
66150         Reported by Eric Blake.
66151
66152 2006-08-28  Bruno Haible  <bruno@clisp.org>
66153
66154         * lib/c-strstr.h: New file, from GNU gettext.
66155         * lib/c-strstr.c: New file, from GNU gettext.
66156
66157 2006-08-28  Bruno Haible  <bruno@clisp.org>
66158
66159         * gnulib-tool: Reorder some statements.
66160
66161 2006-08-28  Bruno Haible  <bruno@clisp.org>
66162
66163         * gnulib-tool: New option --makefile-name.
66164         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66165         $makefile_name.
66166         (func_import): Write $makefile_name to the cache file, and read it from
66167         there unless explicitly specified. Use $makefile_name as file name
66168         instead of Makefile.am. Adjust the recommendations accordingly.
66169
66170 2006-08-28  Bruno Haible  <bruno@clisp.org>
66171
66172         * gnulib-tool (func_verify_module): Check against misapplying patch.
66173
66174 2006-08-28  Bruno Haible  <bruno@clisp.org>
66175
66176         * gnulib-tool (func_relativize, func_relconcat): New functions.
66177         Give an error if --local-dir is given with --update.
66178         Remove trailing slashes from $local_gnulib_dir.
66179         (func_import): Store the relativized $local_gnulib_dir in
66180         gnulib-cache.m4, and read it from there if not specified explicitly.
66181
66182 2006-08-28  Bruno Haible  <bruno@clisp.org>
66183
66184         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66185         is the current directory. Respect also $local_gnulib_dir.
66186
66187 2006-08-28  Bruno Haible  <bruno@clisp.org>
66188             Simon Josefsson  <jas@extundo.com>
66189
66190         BeOS portability.
66191         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66192
66193 2006-08-27  Jim Meyering  <jim@meyering.net>
66194
66195         * doc/visibility.texi: Remove duplicate word: "pointer".
66196
66197 2006-08-26  Bruno Haible  <bruno@clisp.org>
66198
66199         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66200         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66201         (Makefile.am): Create inttypes.h from inttypes_.h.
66202         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66203
66204         * modules/imaxabs: New file.
66205
66206         * modules/imaxdiv: New file.
66207
66208 2006-08-26  Bruno Haible  <bruno@clisp.org>
66209
66210         * m4/inttypes.m4: New file.
66211         * m4/_inttypes_h.m4: Remove file.
66212         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66213         PRI_MACROS_BROKEN.
66214         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66215
66216         * m4/imaxabs.m4: New file.
66217
66218         * m4/imaxdiv.m4: New file.
66219
66220 2006-08-26  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/inttypes_.h: New file.
66223         * lib/inttypes.h: Remove file.
66224         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66225
66226         * lib/imaxabs.c: New file.
66227
66228         * lib/imaxdiv.c: New file.
66229
66230 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         New config-h module, so that "make" output needn't be cluttered
66233         by -DHAVE_CONFIG_H.
66234         * MODULES.html.sh (Support for building libraries and executables):
66235         Add config-h.
66236         * modules/config-h: New file.
66237         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66238         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66239         the config-h module is used.
66240
66241         New configmake module, so that "make" output needn't be cluttered
66242         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66243         * MODULES.html.sh (Support for building libraries and executables):
66244         Add configmake.
66245         * modules/configmake: New file.
66246
66247 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * m4/config-h.m4: New file.
66250
66251 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * config/srclist.txt: Add elisp-comp.
66254
66255 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         * MODULES.html.sh (Support for building libraries and executables):
66258         Add elisp-comp.
66259         * build-aux/elisp-comp: New file.
66260         * modules/elisp-comp: New file.
66261
66262 2006-08-24  Bruno Haible  <bruno@clisp.org>
66263
66264         * gnulib-tool (func_create_testdir): Use non-default values of
66265         sourcebase and m4base.
66266
66267 2006-08-24  Bruno Haible  <bruno@clisp.org>
66268
66269         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66270         HTML structure.
66271
66272 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66273
66274         * modules/openat (Depends-on): Add lchown.
66275
66276 2006-08-23  Bruno Haible  <bruno@clisp.org>
66277
66278         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66279         of gl_LOCK_EARLY instead of gl_LOCK.
66280
66281 2006-08-23  Bruno Haible  <bruno@clisp.org>
66282
66283         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66284         on OSF/1 to no.
66285         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66286
66287 2006-08-23  Bruno Haible  <bruno@clisp.org>
66288
66289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66290         as unusable.
66291
66292         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66293         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66294         (gl_LOCK): New macro.
66295
66296 2006-08-22  Simon Josefsson  <jas@extundo.com>
66297
66298         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66299         to md5 module.
66300
66301 2006-08-22  Simon Josefsson  <jas@extundo.com>
66302
66303         * MODULES.html.sh: Add "Support for maintaining and release
66304         projects".
66305
66306         * build-aux/gnupload: New file, from coreutils.
66307
66308 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         Avoid the need for AC_LIBSOURCES in m4 macros.
66311         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66312         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66313         * modules/check-version (EXTRA_DIST): Add check-version.h.
66314         * modules/crc (EXTRA_DIST): Add crc.h.
66315         * modules/des (EXTRA_DIST): Add des.h.
66316         * modules/gc (EXTRA_DIST): Add gc.h.
66317         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66318         * modules/getline (EXTRA_DIST): Add getline.h.
66319         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66320         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66321         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66322         * modules/md2 (EXTRA_DIST): Add md2.h.
66323         * modules/md4 (EXTRA_DIST): Add md4.h.
66324         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66325         * modules/read-file (EXTRA_DIST): Add read-file.h.
66326         * modules/readline (EXTRA_DIST): Add readline.h.
66327         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66328         rijndael-api-fst.h.
66329
66330 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66331
66332         * m4/rijndael.m4 (gl_ARCFOUR):
66333         * m4/arctwo.m4 (gl_ARCTWO):
66334         * m4/check-version.m4 (gl_CHECK_VERSION):
66335         * m4/crc.m4 (gl_CRC):
66336         * m4/des.m4 (gl_DES):
66337         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66338         * m4/gc.m4 (gl_GC):
66339         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66340         * m4/getline.m4 (gl_FUNC_GETLINE):
66341         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66342         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66343         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66344         * m4/md2.m4 (gl_MD2):
66345         * m4/md4.m4 (gl_MD4):
66346         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66347         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66348         * m4/readline.m4 (gl_FUNC_READLINE):
66349         * m4/rijndael.m4 (gl_RIJNDAEL):
66350         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66351         to get the necessary .h files and whatnot.
66352
66353 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66354
66355         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66356         gnulib rather than the other way around.
66357         * config/srclistvars.sh (COREUTILS): Remove.
66358
66359 2006-08-22  Jim Meyering  <jim@meyering.net>
66360
66361         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66362
66363         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66364
66365 2006-08-22  Eric Blake  <ebb9@byu.net>
66366
66367         * modules/regexprops-generic: New file.
66368         * MODULES.html.sh (Support for building documentation): List it.
66369
66370 2006-08-22  Eric Blake  <ebb9@byu.net>
66371
66372         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66373         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66374         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66375         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66376
66377 2006-08-22  Bruno Haible  <bruno@clisp.org>
66378
66379         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66380         and lib_LTLIBRARIES like the other lib_* variables.
66381
66382 2006-08-22  Bruno Haible  <bruno@clisp.org>
66383
66384         * build-aux/x-to-1.in: New file, from GNU gettext.
66385
66386 2006-08-22  Bruno Haible  <bruno@clisp.org>
66387
66388         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66389         <utmpx.h> exists.
66390
66391 2006-08-22  Bruno Haible  <bruno@clisp.org>
66392
66393         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66394         <utmpx.h> exists.
66395
66396 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         BeOS portability.
66399         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66400         exist.
66401         Problem reported by Bruno Haible.
66402
66403 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66404
66405         Avoid the need for AC_LIBSOURCES in m4 macros.
66406         * modules/acl (EXTRA_DIST): Add acl.h.
66407         * modules/argmatch (Files): Add m4/argmatch.m4.
66408         (configure.ac): Add gl_ARGMATCH.
66409         (EXTRA_DIST): Renamed from lib_SOURCES, for
66410         consistency with the other modules.  Remove argmatch.c.
66411         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66412         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66413         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66414         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66415         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66416         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66417         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66418         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66419         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66420         * modules/closeout (EXTRA_DIST): Add closeout.h.
66421         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66422         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66423         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66424         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66425         dirname.h; remove basename.c and stripslash.c.
66426         * modules/exclude (EXTRA_DIST): Add exclude.h.
66427         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66428         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66429         * modules/file-type (EXTRA_DIST): Add file-type.h.
66430         * modules/filemode (EXTRA_DIST): Add filemode.h.
66431         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66432         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66433         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66434         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66435         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66436         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66437         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66438         * modules/getdate (EXTRA_DIST): Add getdate.c.
66439         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66440         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66441         * modules/getpass (EXTRA_DIST): Add getpass.h.
66442         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66443         * modules/group-member (EXTRA_DIST): Add group-member.h.
66444         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66445         * modules/hash (EXTRA_DIST): Add hash.h.
66446         * modules/human (EXTRA_DIST): Add human.h.
66447         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66448         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66449         * modules/lchown (EXTRA_DIST): Add lchown.h.
66450         * modules/long-options (EXTRA_DIST): Add long-options.h.
66451         * modules/lstat (EXTRA_DIST): Add lstat.h.
66452         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66453         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66454         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66455         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66456         * modules/memxor (EXTRA_DIST): Add memxor.h.
66457         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66458         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66459         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66460         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66461         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66462         * modules/physmem (EXTRA_DIST): Add physmem.h.
66463         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66464         * modules/posixver (EXTRA_DIST): Add posixver.h.
66465         * modules/quote (EXTRA_DIST): Add quote.h.
66466         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66467         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66468         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66469         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66470         regex_internal.h regexec.c.
66471         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66472         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66473         * modules/same (EXTRA_DIST): Add same.h.
66474         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66475         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66476         * modules/savedir (EXTRA_DIST): Add savedir.h.
66477         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66478         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66479         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66480         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66481         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66482         * modules/strdup (EXTRA_DIST): Add strdup.h.
66483         * modules/strftime (EXTRA_DIST): Add strftime.h.
66484         * modules/strndup (EXTRA_DIST): Add strndup.h.
66485         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66486         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66487         * modules/time_r (EXTRA_DIST): Add time_r.h.
66488         * modules/timespec (EXTRA_DIST): Add timespec.h.
66489         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66490         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66491         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66492         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66493         * modules/userspec (EXTRA_DIST): Add userspec.h.
66494         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66495         * modules/utimens (EXTRA_DIST): Add utimens.h.
66496         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66497         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66498         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66499         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66500         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66501         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66502         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66503         * modules/yesno (EXTRA_DIST): Add yesno.h.
66504
66505 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66506
66507         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66508
66509         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66510         * m4/dev-ino.m4, same-inode.m4: Remove.
66511
66512         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66513         * m4/acl.m4 (AC_FUNC_ACL):
66514         * m4/backupfile.m4 (gl_BACKUPFILE):
66515         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66516         * m4/canon-host.m4 (gl_CANON_HOST):
66517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66518         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66519         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66520         * m4/cloexec.m4 (gl_CLOEXEC):
66521         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66522         * m4/closeout.m4 (gl_CLOSEOUT):
66523         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66524         * m4/dirname.m4 (gl_DIRNAME):
66525         * m4/exclude.m4 (gl_EXCLUDE):
66526         * m4/exitfail.m4 (gl_EXITFAIL):
66527         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66528         * m4/file-type.m4 (gl_FILE_TYPE):
66529         * m4/filemode.m4 (gl_FILEMODE):
66530         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66531         * m4/fpending.m4 (gl_FUNC_FPENDING):
66532         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66533         * m4/fts.m4 (gl_FUNC_FTS):
66534         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66535         * m4/getdate.m4 (gl_GETDATE):
66536         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66537         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66538         * m4/getpass.m4 (gl_FUNC_GETPASS):
66539         * m4/gettime.m4 (gl_GETTIME):
66540         * m4/getugroups.m4 (gl_GETUGROUPS):
66541         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66542         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66543         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66544         * m4/hash.m4 (gl_HASH):
66545         * m4/idcache.m4 (gl_IDCACHE):
66546         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66547         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66548         * m4/long-options.m4 (gl_LONG_OPTIONS):
66549         * m4/lstat.m4 (gl_FUNC_LSTAT):
66550         * m4/md5.m4 (gl_MD5):
66551         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66552         * m4/memcoll.m4 (gl_MEMCOLL):
66553         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66554         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66555         * m4/memxor.m4 (gl_MEMXOR):
66556         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66557         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66558         * m4/modechange.m4 (gl_MODECHANGE):
66559         * m4/mountlist.m4 (gl_MOUNTLIST):
66560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66561         * m4/openat.m4 (gl_FUNC_OPENAT):
66562         * m4/pathmax.m4 (gl_PATHMAX):
66563         * m4/physmem.m4 (gl_PHYSMEM):
66564         * m4/posixtm.m4 (gl_POSIXTM):
66565         * m4/posixver.m4 (gl_POSIXVER):
66566         * m4/quote.m4 (gl_QUOTE):
66567         * m4/quotearg.m4 (gl_QUOTEARG):
66568         * m4/readtokens.m4 (gl_READTOKENS):
66569         * m4/readutmp.m4 (gl_READUTMP):
66570         * m4/regex.m4 (gl_REGEX):
66571         * m4/safe-read.m4 (gl_SAFE_READ):
66572         * m4/safe-write.m4 (gl_SAFE_WRITE):
66573         * m4/same.m4 (gl_SAME):
66574         * m4/save-cwd.m4 (gl_SAVE_CWD):
66575         * m4/savedir.m4 (gl_SAVEDIR):
66576         * m4/settime.m4 (gl_SETTIME):
66577         * m4/sha1.m4 (gl_SHA1):
66578         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66579         * m4/stat-macros.m4 (gl_STAT_MACROS):
66580         * m4/stat-time.m4 (gl_STAT_TIME):
66581         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66582         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66583         * m4/strdup.m4 (gl_FUNC_STRDUP):
66584         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66585         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66586         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66587         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66588         * m4/time_r.m4 (gl_TIME_R):
66589         * m4/timespec.m4 (gl_TIMESPEC):
66590         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66591         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66592         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66593         * m4/userspec.m4 (gl_USERSPEC):
66594         * m4/utimecmp.m4 (gl_UTIMECMP):
66595         * m4/utimens.m4 (gl_UTIMENS):
66596         * m4/xalloc.m4 (gl_XALLOC):
66597         * m4/xgetcwd.m4 (gl_XGETCWD):
66598         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66599         * m4/xreadlink.m4 (gl_XREADLINK):
66600         * m4/xstrtod.m4 (gl_XSTRTOD):
66601         * m4/yesno.m4 (gl_YESNO):
66602         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66603         to get the necessary .h files and whatnot.
66604
66605 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66606             Bruno Haible  <bruno@clisp.org>
66607
66608         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66609         /bin/sh understanding of '!' conditional negation.
66610
66611 2006-08-21  Jim Meyering  <jim@meyering.net>
66612
66613         * modules/openat (Depends-on): Really alphabetize.
66614
66615         * modules/acl (Depends-on): Add error and quote.
66616
66617         * check-module (find_included_lib_files): Add at-func.c to the
66618         ok-to-include-more-than-once white list.
66619
66620         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66621
66622 2006-08-21  Bruno Haible  <bruno@clisp.org>
66623
66624         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66625         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66626         Reported by Martin Lambers <marlam@marlam.de>.
66627
66628 2006-08-21  Bruno Haible  <bruno@clisp.org>
66629
66630         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66631         specify an installation location, don't emit a noinst_LIBRARIES or
66632         noinst_LTLIBRARIES assignment.
66633
66634 2006-08-21  Bruno Haible  <bruno@clisp.org>
66635
66636         BeOS portability.
66637         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66638         BeOS has mbrtowc() but no <wctype.h>.
66639
66640 2006-08-21  Bruno Haible  <bruno@clisp.org>
66641
66642         BeOS portability.
66643         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66644         exist.
66645
66646 2006-08-21  Bruno Haible  <bruno@clisp.org>
66647
66648         BeOS portability.
66649         * lib/mbchar.h: Include <wctype.h> only if it exists.
66650
66651 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         Remove files that are no longer needed by their respective modules.
66654         * m4/obstack.m4: Remove.
66655         * m4/strerror_r.m4: Remove.
66656         * m4/uint32_t.m4: Remove.
66657         * m4/uintptr_t.m4: Remove.
66658         * m4/ullong_max.m4: Remove.
66659         * m4/xstrtoimax.m4: Remove.
66660         * m4/xstrtoumax.m4: Remove.
66661
66662         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66663         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66664         dependencies now capture this.
66665
66666         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66667         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66668         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66669         * m4/human.m4 (gl_HUMAN): Likewise.
66670         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66671         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66672
66673         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66674
66675         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66676         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66677         stdint.
66678         * m4/human.m4 (gl_HUMAN): Likewise.
66679         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66680         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66681         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66682         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66683         * m4/xstrtol (gl_XSTRTOL): Likewise.
66684
66685         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66686         AC_TYPE_LONG_LONG_INT.
66687         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66688         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66689         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66690         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66691
66692         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66693         on stdbool.
66694
66695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66696         (gl_PREREQ_XSTRTOUL): Remove.
66697
66698         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66699
66700         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66701         mode.
66702
66703 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         Add and change modules to make it easier for coreutils to use
66706         gnulib-tool.
66707         * modules/backupfile (Files): Remove m4/d-ino.m4.
66708         (Depends-on): Add d-ino.
66709         * modules/cycle-check (Depends-on): Add stdint.
66710         (lib_SOURCES): Add cycle-check.h.
66711         * modules/d-ino: New module.
66712         * modules/d-type: New module.
66713         * modules/error (Files): Remove m4/strerror_r.m4.
66714         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66715         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66716         m4/inttypes_h.m4, m4/uintmax_t.m4.
66717         (Depends-on): Add stdint.
66718         (lib_SOURCES): Add fsusage.h.
66719         * modules/getcwd (Files): Remove d-ino.m4.
66720         (Depends-on): Add d-ino.
66721         * modules/getndelim2 (Depends-on): Add stdint.
66722         * modules/glob (Files): Remove m4/d-type.m4.
66723         (Depends-on): Add d-type.
66724         * modules/host-os: New module.
66725         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66726         m4/inttypes_h.m4, m4/uintmax_t.m4.
66727         * Depends-on: Add stdint.
66728         (lib_SOURCES): Add human.h.
66729         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66730         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66731         m4/uintmax_t.m4, m4/ulonglong.m4.
66732         (Depends-on): Add stdint.
66733         (EXTRA_DIST): Add inttostr.h.
66734         * modules/lchmod: New module.
66735         * modules/link-follow: New module.
66736         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66737         (Depends-on): Add lchmod.
66738         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66739         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66740         (Depends-on): Add stdint.
66741         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66742         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66743         (Depends-on): Add stdint.
66744         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66745         * modules/perl: New module.
66746         * modules/regex (Depends-on): Add stdint.
66747         * modules/rmdir-errno: New module.
66748         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66749         m4/intmax_t.m4.
66750         (Depends-on): Add stdint.
66751         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66752         m4/uintmax_t.m4.
66753         (Depends-on): Add stdint.
66754         * modules/unlink-busy: New module.
66755         * modules/utimecmp (Depends-on): Add stdint.
66756         * modules/uptime: New module.
66757         * modules/winsz-ioctl: New module.
66758         * modules/winsz-termios: New module.
66759         * modules/xnanosleep (Depends-on): Add nanosleep.
66760         * modules/ullong_max: Remove.
66761         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66762         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66763         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66764         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66765         (Depends-on): Add inttypes.
66766         (lib_SOURCES): Add xstrtol.h.
66767         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66768         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66769         * MODULES.html.sh: Move 'assert' into the assert section.
66770         Move 'dummy' into the linking section.
66771         Remove ullong_max.
66772         Add section for compatibility checks for POSIX:2001 functions,
66773         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66774         winsz-ioctl, and winsz-termios into it.
66775         Add lchmod.
66776         Add top-level Misc section and put host-os, perl, and uptime
66777         into it.
66778
66779 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66782         now assume the stdint module.  Do not include inttypes.h.
66783         * lib/fsusage.h: Likewise.
66784         * lib/getndelim2.c: Likewise.
66785         * lib/human.h: Likewise.
66786         * lib/inttostr.h: Likewise.
66787         * lib/obstack.c: Likewise.
66788         * lib/regex_internal.h: Likewise.
66789         * lib/tempname.c: Likewise.
66790         * lib/utimecmp.c: Likewise.
66791         * lib/xstrtol.h: Likewise.
66792
66793         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66794
66795         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66796         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66797         * lib/xtime.h: Likewise.
66798
66799 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66800
66801         * modules/openat (Files): Add lib/fchmodat.c.
66802         Fixes problem reported by Jay Youngman.
66803
66804 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66805
66806         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66807         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66808
66809 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66810             Bruno Haible  <bruno@clisp.org>
66811
66812         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66813         and is a script that invokes bison. Tighten the code. Add comments.
66814
66815 2006-08-18  Jim Meyering  <jim@meyering.net>
66816
66817         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66818         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66819         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66820         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66821
66822 2006-08-18  Bruno Haible  <bruno@clisp.org>
66823
66824         * modules/bison-i18n: New file.
66825         * MODULES.html.sh (Internationalization functions): Add it.
66826
66827 2006-08-18  Bruno Haible  <bruno@clisp.org>
66828
66829         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66830         sys/statvfs.h. When getmntinfo was found, check its declaration and
66831         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66832
66833 2006-08-18  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/bison-i18n.m4: New file, from bison.
66836
66837 2006-08-18  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66840         (ME_DUMMY): Treat "kernfs" as a dummy.
66841         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66842
66843 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66844
66845         Update from coreutils.
66846
66847         2006-08-15  Jim Meyering  <jim@meyering.net>
66848
66849         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66850
66851         2006-01-17  Jim Meyering  <jim@meyering.net>
66852
66853         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66854
66855         2006-01-11  Jim Meyering  <jim@meyering.net>
66856
66857         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66858         Check for the lchmod function.
66859
66860 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66861
66862         Update from coreutils.
66863
66864         * lib/__fpending.h: Add copyright notice.
66865         * lib/fprintftime.h: Likewise.
66866         * lib/savedir.c: Use (C) in copyright notice.
66867         * lib/savedir.h: Likewise.
66868
66869         2006-08-15  Jim Meyering  <jim@meyering.net>
66870
66871         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66872         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66873         in support of the EXPECTED_ERRNO macro.
66874         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66875         definitions.  Instead, define the appropriate symbols and include
66876         "at-func.c".
66877         * lib/mkdirat.c (mkdirat): Likewise.
66878         * lib/fchmodat.c (fchmodat): Likewise.
66879         (ENOSYS): Remove definition.
66880         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66881         it.  Don't include "unistd--.h" -- it wasn't ever used.
66882
66883         2006-01-17  Jim Meyering  <jim@meyering.net>
66884
66885         Rewrite fts.c not to change the current working directory,
66886         by using openat, fstatat, fdopendir, etc..
66887
66888         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66889         (HAVE_OPENAT_SUPPORT): Define.
66890         [_LIBC] (fchdir): Don't undef or define; no longer used.
66891         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66892         Now, this `function' always succeeds, and consumes its file descriptor
66893         parameter -- so callers must not close such FDs.  Update callers.
66894         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66895         (diropen): Add parameter, SP.  Adjust all callers.
66896         Implement using diropen_fd, rather than open.
66897         (fts_open): Initialize new member, fts_cwd_fd.
66898         Remove fts_rft-setting code.
66899         (fts_close): Close fts_cwd_fd, if necessary.
66900         (__opendir2): Define in terms of opendir or opendirat,
66901         depending on whether the FST_NOCHDIR flag is set.
66902         (fts_build): Since fts_safe_changedir consumes its FD, and since
66903         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66904         and close the dup'd file descriptor upon failure.
66905         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66906         (fts_safe_changedir): Tweak semantics to reflect that this function
66907         now calls cwd_advance_fd and hence consumes its FD argument.
66908         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66909         [struct FTS] (fts_rft): Remove now-unused member.
66910         [struct FTS] (fts_cycle.state): Improve comment.
66911
66912         * lib/openat.c (openat_needs_fchdir): New function.
66913         * lib/openat.h (openat_needs_fchdir): Declare it.
66914
66915 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66916
66917         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66918         Problem and fix reported by Pádraig Brady in
66919         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66920
66921 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66922
66923         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66924
66925 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * lib/memcoll.c (memcoll): Optimize for the common case where the
66928         arguments are bytewise equal.
66929
66930 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * doc/regexprops-generic.texi: Add a copyright notice.
66933
66934 2006-08-15  Bruno Haible  <bruno@clisp.org>
66935
66936         * modules/tmpdir (License): Change to LGPL.
66937
66938 2006-08-15  Bruno Haible  <bruno@clisp.org>
66939
66940         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66941         module.
66942
66943 2006-08-14  Simon Josefsson  <jas@extundo.com>
66944
66945         * config/srclist.txt: Add gnupload.
66946
66947 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66948
66949         Change copyright notice from LGPL 2 to GPL 2, since that's the
66950         standard form used in the gnulib repository.
66951         * tests/test-lock.c: Likewise.
66952         * tests/test-stdint.c: Likewise.
66953         * tests/test-tls.c: Likewise.
66954
66955         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66956         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66957         Add copyright notice.
66958
66959         * check-module: Add copyright notice.  Output a copyright
66960         notice if "--version" is specified.
66961         * modules/COPYING: New file.
66962         * tests/test-getaddrinfo.c: Add copyright notice.
66963         * tests/test-verify.c: Likewise.
66964
66965 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66966
66967         Change copyright notice from LGPL 2 to GPL 2, since that's the
66968         standard form used in the gnulib repository.
66969         * lib/lock.c: LGPL -> GPL.
66970         * lib/lock.h: Likewise.
66971         * lib/strnlen1.c: Likewise.
66972         * lib/strnlen1.h: Likewise.
66973         * lib/tls.c: Likewise.
66974         * lib/tls.h: Likewise.
66975         * lib/tmpdir.c: Likewise.
66976
66977         * lib/TODO: Remove; this belongs only in coreutils.
66978
66979 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         Add copyright notices to long-enough files that lack them, since
66982         otherwise the files aren't clearly free.  Use the same notice that
66983         getdate.texi already uses.
66984         * doc/alloca-opt.texi: Add copyright notice.
66985         * doc/alloca.texi: Likewise.
66986         * doc/ctime.texi: Likewise.
66987         * doc/functions.texi: Likewise.
66988         * doc/gcd.texi: Likewise.
66989         * doc/gnulib-tool.texi: Likewise.
66990         * doc/inet_ntoa.texi: Likewise.
66991         * doc/visibility.texi: Likewise.
66992
66993         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66994         * doc/quote.texi: Add copyright notice.
66995
66996         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66997         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66998         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66999         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67000         is now obsolete, and give a pointer to the Sun list.
67001         Add copyright notice.
67002
67003 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * config/srclistvars.sh: Add copyright notice.
67006
67007 2006-08-14  Eric Blake  <ebb9@byu.net>
67008
67009         Import the following change from libc:
67010
67011         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67012
67013         Upstream bug 2997.
67014         * lib/misc/error.c: Add space between program name and message if file
67015         name is missing.
67016
67017 2006-08-12  Karl Berry  <karl@gnu.org>
67018
67019         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67020         remove, these originate in gnulib now.
67021
67022 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67023
67024         * doc/Makefile (standards.info standards.html standards.dvi):
67025         Also depend on make-stds.texi.
67026
67027 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67030         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67031
67032         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67033         in wchar_t.  Problem reported by Eric Blake.
67034
67035         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67036         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67037         Also, help the compiler to keep LEN in a register.
67038
67039 2006-08-11  Eric Blake  <ebb9@byu.net>
67040
67041         * users.txt: Sort.  Add tar.
67042
67043 2006-08-11  Bruno Haible  <bruno@clisp.org>
67044
67045         * users.txt: New file.
67046
67047 2006-08-11  Bruno Haible  <bruno@clisp.org>
67048
67049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67050         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67051
67052 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67053
67054         * modules/snprintf (Depends-on): Remove minmax.
67055         (Maintainer): Add self and Bruno.
67056
67057 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67058
67059         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67060         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67061         (EOVERFLOW): Define if the system does not.
67062         Do not include "minmax.h"; it wasn't used.
67063         (snprintf): Don't assume size_t promotes to an unsigned type.
67064         Fix bug when generated string was too long for the buffer: the
67065         buffer's contents are supposed to be the initial prefix of the
67066         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67067         exceeds INT_MAX; do the check ourselves.
67068
67069         Import the following changes from libc:
67070
67071         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67072
67073         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67074         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67075         set wc to the byte which couldn't be converted.
67076         (re_string_reconstruct): Don't clear valid_raw_len before calling
67077         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67078         tip_context using re_string_context_at.
67079
67080         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67081
67082         * lib/posix/regex.h: g++ still cannot handled [restrict].
67083
67084         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67085
67086         * lib/posix/regex.h: Remove special handling for VMS.
67087
67088 2006-08-10  Jim Meyering  <jim@meyering.net>
67089
67090         * modules/same-inode: New module.
67091         * modules/dev-ino: New module.
67092         * modules/cycle-check: Depend on these modules, rather than simply
67093         including their .h files.
67094         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67095         required via m4/cycle-check.m4.
67096         * modules/same: Depend on new same-inode module, rather than
67097         including same-inode.h.
67098         * modules/chdir-safer: New file.
67099
67100         * modules/chown (Depends-on): Add stat-macros.
67101
67102 2006-08-10  Jim Meyering  <jim@meyering.net>
67103
67104         * m4/cycle-check.m4: New file.
67105         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67106         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67107
67108 2006-08-10  Eric Blake  <ebb9@byu.net>
67109
67110         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67111         in from original proposal.
67112
67113 2006-08-10  Eric Blake  <ebb9@byu.net>
67114         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67115
67116         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67117         namespace.
67118
67119 2006-08-10  Bruno Haible  <bruno@clisp.org>
67120
67121         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67122         as well.
67123
67124 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67125
67126         Sync from coreutils.
67127
67128         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67129
67130         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67131         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67132
67133 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67134
67135         * modules/restrict: Remove; no longer needed now that we assume
67136         Autoconf 2.59 or later.
67137         * MODULES.html.sh: Remove 'restrict'.
67138         * modules/argp (Depends-on): Remove 'restrict'.
67139         * modules/base64 (Depends-on): Likewise.
67140         * modules/gc (Depends-on): Likewise.
67141         * modules/getaddrinfo (Depends-on): Likewise.
67142         * modules/glob (Depends-on): Likewise.
67143         * modules/inet_ntop (Depends-on): Likewise.
67144         * modules/inet_pton (Depends-on): Likewise.
67145         * modules/memxor (Depends-on): Likewise.
67146         * modules/regex (Depends-on): Likewise.
67147         * modules/strtok_r (Depends-on): Likewise.
67148         * modules/time_r (Depends-on): Likewise.
67149
67150 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67151
67152         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67153         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67154         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67155         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67156         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67157         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67158         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67159         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67160
67161         Merge from coreutils.
67162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67163         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67164         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67165         * m4/time_r.m4 (gl_TIME_R): Likewise.
67166
67167 2006-08-09  Karl Berry  <karl@gnu.org>
67168
67169         * config/srclist.txt: no more gettext-tools, per Bruno.
67170
67171 2006-08-08  Eric Blake  <ebb9@byu.net>
67172
67173         * modules/verror: New module.
67174         * MODULES.html.sh: Document it.
67175
67176 2006-08-08  Eric Blake  <ebb9@byu.net>
67177
67178         * lib/verror.h, lib/verror.c: New files.
67179
67180 2006-08-08  Eric Blake  <ebb9@byu.net>
67181
67182         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67183         verror_at_line output complies with GNU Coding Standards even when
67184         file is NULL.
67185
67186 2006-08-07  Bruno Haible  <bruno@clisp.org>
67187
67188         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67189         versions of AIX.
67190         Reported by Ralf Wildenhues.
67191
67192 2006-08-07  Bruno Haible  <bruno@clisp.org>
67193
67194         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67195         in an AC_DEFUN. Needed so that the autoconf snippets can use
67196         AC_REQUIRE.
67197
67198 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67199
67200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67201         Initialize pkgdata_DATA.
67202         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67203         overriding it.
67204
67205 2006-08-06  Eric Blake  <ebb9@byu.net>
67206
67207         * lib/error.h: Fold in some upstream changes from glibc.
67208         * lib/error.c: Likewise.
67209
67210 2006-08-04  Bruno Haible  <bruno@clisp.org>
67211
67212         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67213         Make the mostlyclean-local rule depend on mostlyclean-generic.
67214         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67215
67216 2006-07-31  Bruno Haible  <bruno@clisp.org>
67217
67218         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67219         <stdlib.h>, <string.h>.
67220
67221 2006-07-30  Bruno Haible  <bruno@clisp.org>
67222
67223         * modules/readlink (License): Change to LGPL.
67224
67225 2006-07-30  Bruno Haible  <bruno@clisp.org>
67226
67227         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67228         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67229         set PKGDATADIR to point to it.
67230
67231 2006-07-30  Bruno Haible  <bruno@clisp.org>
67232
67233         * modules/csharpexec (configure.ac): Comment out macro invocation.
67234         * modules/javaexec (configure.ac): Likewise.
67235         * modules/javacomp-script (configure.ac): Likewise.
67236
67237         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67238
67239 2006-07-30  Bruno Haible  <bruno@clisp.org>
67240
67241         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67242         linked-list.
67243
67244 2006-07-30  Bruno Haible  <bruno@clisp.org>
67245
67246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67247
67248 2006-07-30  Bruno Haible  <bruno@clisp.org>
67249
67250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67251         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67252         get removed.
67253
67254 2006-07-29  Bruno Haible  <bruno@clisp.org>
67255
67256         Make it possible for gnulib-tool to work with locally modified or
67257         augmented gnulib repositories.
67258         * gnulib-tool (func_usage): Document --local-dir option.
67259         (local_gnulib_dir): New variable.
67260         Handle --local-dir option.
67261         (func_lookup_file): New function.
67262         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67263         (func_get_description, func_get_filelist, func_get_description,
67264         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67265         func_get_automake_snippet, func_get_include_directive,
67266         func_get_license, func_get_maintainer): Use func_lookup_file.
67267         (func_import, func_create_testdir): Use func_lookup_file.
67268
67269 2006-07-29  Bruno Haible  <bruno@clisp.org>
67270
67271         * modules/setenv (Depends-on): Add unistd.
67272
67273 2006-07-29  Bruno Haible  <bruno@clisp.org>
67274
67275         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67276
67277 2006-07-29  Bruno Haible  <bruno@clisp.org>
67278
67279         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67280
67281 2006-07-29  Bruno Haible  <bruno@clisp.org>
67282
67283         * gnulib-tool (import, update): If there is no Makefile.am, look at
67284         aclocal.m4, instead of bailing out.
67285
67286 2006-07-29  Bruno Haible  <bruno@clisp.org>
67287
67288         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67289         Categorize the options by when they are useful.
67290
67291 2006-07-29  Bruno Haible  <bruno@clisp.org>
67292
67293         * gnulib-tool (func_usage): Document option --no-libtool.
67294         Handle option --no-libtool.
67295         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67296         for changed semantics of $libtool variable.
67297         (func_import): Likewise. If libtool is not used, show this through
67298         an option --no-libtool.
67299         (func_create_testdir): Update.
67300
67301 2006-07-29  Bruno Haible  <bruno@clisp.org>
67302
67303         * gnulib-tool (func_import): Extend error message about missing
67304         --doc-base.
67305
67306 2006-07-29  Bruno Haible  <bruno@clisp.org>
67307
67308         * gnulib-tool (func_import): Don't create the $docbase directory if
67309         there is no file to store there.
67310
67311 2006-07-29  Bruno Haible  <bruno@clisp.org>
67312
67313         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67314         relevant, look for configure.ac there, not in the current directory.
67315         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67316
67317 2006-07-29  Bruno Haible  <bruno@clisp.org>
67318
67319         * gnulib-tool (SORT): New variable.
67320         (func_usage): Undocument --assume-autoconf option.
67321         Remove --assume-autoconf option handling.
67322         (autoconf_minversion): Determine from the contents of configure.ac.
67323         (func_import): Remove autoconf_minversion handling.
67324         Suggested by Eric Blake.
67325
67326 2006-07-29  Bruno Haible  <bruno@clisp.org>
67327
67328         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67329
67330 2006-07-29  Bruno Haible  <bruno@clisp.org>
67331
67332         * config/srclist.txt (*setenv.[ch]): Remove rules.
67333
67334 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67335
67336         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67337
67338 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67339
67340         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67341         arpa/inet.h.
67342
67343 2006-07-28  Simon Josefsson  <jas@extundo.com>
67344
67345         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67346         * modules/inet_pton (Depends-on): Likewise.
67347
67348 2006-07-28  Simon Josefsson  <jas@extundo.com>
67349
67350         * m4/netinet_in_h.m4: New file.
67351
67352 2006-07-28  Simon Josefsson  <jas@extundo.com>
67353
67354         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67355         #include's.
67356
67357 2006-07-28  Simon Josefsson  <jas@extundo.com>
67358
67359         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67360         #include's.
67361
67362 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67363
67364         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67365         setgid on directories only if they set these bits.
67366         * lib/modechange.h: Remove obsolete comment about masks.
67367
67368 2006-07-28  Eric Blake  <ebb9@byu.net>
67369
67370         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67371         macro expansion.
67372
67373 2006-07-28  Bruno Haible  <bruno@clisp.org>
67374
67375         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67376
67377 2006-07-28  Bruno Haible  <bruno@clisp.org>
67378
67379         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67380
67381 2006-07-28  Bruno Haible  <bruno@clisp.org>
67382
67383         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67384         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67385         Define fallbacks.
67386         Avoids link error on FreeBSD 4.x.
67387         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67388
67389         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67390         encoding.
67391         * lib/mbswidth.c (iswcntrl): Likewise.
67392
67393 2006-07-27  Bruno Haible  <bruno@clisp.org>
67394
67395         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67396         test.
67397
67398 2006-07-27  Bruno Haible  <bruno@clisp.org>
67399
67400         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67401         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67402         defined.
67403
67404 2006-07-26  Eric Blake  <ebb9@byu.net>
67405
67406         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67407
67408 2006-07-26  Eric Blake  <ebb9@byu.net>
67409
67410         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67411         like mingw that lack mkstemp.
67412         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67413         avoid compilation warning on mingw.
67414
67415 2006-07-26  Bruno Haible  <bruno@clisp.org>
67416
67417         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67418         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67419         INT_FAST*_MIN, INTPTR_MIN.
67420
67421 2006-07-25  Bruno Haible  <bruno@clisp.org>
67422
67423         * modules/version-etc (Depends-on): Add stdarg.
67424
67425 2006-07-25  Bruno Haible  <bruno@clisp.org>
67426
67427         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67428         complex commands.
67429
67430 2006-07-25  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67433         defined in <stdarg.h> or config.h.
67434
67435 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67436
67437         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67438         (gl_STDIO_SAFER): Remove.
67439
67440 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         * MODULES.html.sh (File stream based Input/Output):
67443         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67444         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67445         * modules/fopen-safer, modules/tmpfile-safer: New files.
67446         * modules/stdio-safer: Remove.
67447
67448 2006-07-24  Bruno Haible  <bruno@clisp.org>
67449
67450         * modules/tmpdir: New file.
67451         * MODULES.html.sh (File system functions): Add it.
67452
67453 2006-07-24  Bruno Haible  <bruno@clisp.org>
67454
67455         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67456         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67457
67458 2006-07-24  Bruno Haible  <bruno@clisp.org>
67459
67460         * modules/clean-temp: New file.
67461
67462 2006-07-24  Bruno Haible  <bruno@clisp.org>
67463
67464         * m4/tmpdir.m4: New file, from GNU gettext.
67465
67466 2006-07-24  Bruno Haible  <bruno@clisp.org>
67467
67468         * lib/tmpdir.h: New file, from GNU gettext.
67469         * lib/tmpdir.c: New file, from GNU gettext.
67470
67471 2006-07-24  Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/clean-temp.h: New file, from GNU gettext.
67474         * lib/clean-temp.c: New file, from GNU gettext.
67475
67476 2006-07-23  Eric Blake  <ebb9@byu.net>
67477
67478         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67479         (Depends-on): Add binary-io.
67480
67481 2006-07-23  Eric Blake  <ebb9@byu.net>
67482
67483         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67484
67485 2006-07-23  Eric Blake  <ebb9@byu.net>
67486
67487         * lib/tmpfile-safer.c: New file.
67488         * lib/stdio-safer.h (fopen_safer): Add prototype.
67489         * lib/stdio--.h (tmpfile): Make safer.
67490
67491 2006-07-23  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67494         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67495         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67496         gl_linked_remove_at): Use it.
67497
67498 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67499         and Simon Josefsson <jas@extundo.com>
67500
67501         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67502
67503         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67504
67505 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67506
67507         * modules/close-stream: New file.
67508         * modules/closeout (Description): Make it clear that it exits
67509         with a diagnostic on error.
67510         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67511         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67512
67513 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67514
67515         * m4/close-stream.m4: New file.
67516
67517 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * lib/close-stream.c, lib/close-stream.h: New files.
67520
67521 2006-07-22  Bruno Haible  <bruno@clisp.org>
67522
67523         Merge from GNU gettext 0.15.
67524
67525         2006-05-01  Bruno Haible  <bruno@clisp.org>
67526
67527                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67528
67529         2006-07-22  Bruno Haible  <bruno@clisp.org>
67530
67531                 * modules/javaversion: New file.
67532                 * MODULES.html.sh (Java): Add javaversion.
67533
67534         2006-03-12  Bruno Haible  <bruno@clisp.org>
67535
67536                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67537
67538         2005-12-04  Bruno Haible  <bruno@clisp.org>
67539
67540                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67541                 (untested).
67542
67543         2006-06-21  Bruno Haible  <bruno@clisp.org>
67544
67545                 Avoid warnings from recent versions of mcs.
67546                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67547                 -o, -L, -r any more. Use options documented since mcs-1.0
67548                 instead. Similarly for -g.
67549
67550         2005-12-04  Bruno Haible  <bruno@clisp.org>
67551
67552                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67553                 .resources, not .resource.
67554
67555         2005-07-09  Bruno Haible  <bruno@clisp.org>
67556
67557                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67558                 add a .dll suffix.
67559                 Reported by Mark Junker <mjscod@gmx.de>.
67560
67561         2006-07-22  Bruno Haible  <bruno@clisp.org>
67562
67563                 * modules/gettext: Upgrade to gettext-0.15.
67564                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67565                 m4/visibility.m4.
67566                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67567
67568 2006-07-22  Bruno Haible  <bruno@clisp.org>
67569
67570         Merge from GNU gettext 0.15.
67571
67572         2006-03-25  Bruno Haible  <bruno@clisp.org>
67573
67574                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67575
67576         2006-07-21  Bruno Haible  <bruno@clisp.org>
67577
67578                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67579                 "1.1".
67580
67581         2006-05-09  Bruno Haible  <bruno@clisp.org>
67582
67583                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67584                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67585                 for the conftestver execution.
67586
67587         2006-05-01  Bruno Haible  <bruno@clisp.org>
67588
67589                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67590                 optional target-version argument. Verify that the compiler
67591                 groks source of the specified source-version, or add -source
67592                 option as necessary. Verify that the compiler produces
67593                 bytecode in the specified target-version, or add -target and
67594                 -source options as necessary. Make the result of the test
67595                 available as variable CONF_JAVAC. Also log error output in
67596                 config.log.
67597
67598         2006-03-11  Bruno Haible  <bruno@clisp.org>
67599
67600                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67601
67602         2006-05-09  Bruno Haible  <bruno@clisp.org>
67603
67604                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67605                 CLASSPATH_SEPARATOR to a semicolon.
67606
67607         2006-03-12  Bruno Haible  <bruno@clisp.org>
67608
67609                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67610                 available as variable CONF_JAVA, for subsequent autoconf
67611                 tests. Also log error output in config.log.
67612
67613         2006-07-19  Bruno Haible  <bruno@clisp.org>
67614
67615                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67616                 that getline works on glibc2 systems. Needed to avoid trouble
67617                 in relocatable.c.
67618                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67619
67620         2005-12-04  Bruno Haible  <bruno@clisp.org>
67621
67622                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67623                 launcher (untested).
67624
67625         2005-12-04  Bruno Haible  <bruno@clisp.org>
67626
67627                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67628
67629         2006-07-22  Bruno Haible  <bruno@clisp.org>
67630
67631                 * gettext.m4: Update from GNU gettext-0.15.
67632                 * nls.m4: Likewise.
67633                 * po.m4: Likewise.
67634                 * inttypes-pri.m4: Likewise.
67635                 * inttypes-h.m4: Renamed from inttypes.m4.
67636                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67637
67638 2006-07-22  Bruno Haible  <bruno@clisp.org>
67639
67640         Merge from GNU gettext 0.15.
67641
67642         2005-07-05  Bruno Haible  <bruno@clisp.org>
67643
67644                 * printf-args.c (printf_fetchargs): Work around broken
67645                 definition of wint_t on mingw.
67646
67647         2005-02-12  Bruno Haible  <bruno@clisp.org>
67648
67649                 * xallocsa.h: Add extern "C" for C++.
67650
67651         2006-05-17  Bruno Haible  <bruno@clisp.org>
67652
67653                 Cygwin portability.
67654                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67655
67656         2006-04-30  Bruno Haible  <bruno@clisp.org>
67657
67658                 * progreloc.c: Include <mach-o/dyld.h> if available.
67659                 (find_executable): Use _NSGetExecutablePath when possible.
67660
67661         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67662
67663                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67664                 function.
67665
67666         2005-12-29  Bruno Haible  <bruno@clisp.org>
67667
67668                 * progreloc.c (set_program_name_and_installdir): Fix
67669                 compilation error.
67670
67671         2005-12-04  Bruno Haible  <bruno@clisp.org>
67672
67673                 Cygwin portability.
67674                 * progreloc.c: Include <windows.h> also on Cygwin.
67675                 (find_executable): Add support for Cygwin.
67676                 (set_program_name_and_installdir): Handle also platforms with
67677                 nonempty EXEEXT.
67678
67679         2006-07-11  Bruno Haible  <bruno@clisp.org>
67680
67681                 * javacomp.c: Fix a comment.
67682                 Reported by Jim Meyering.
67683
67684         2006-04-30  Bruno Haible  <bruno@clisp.org>
67685
67686                 * javacomp.h (compile_java_class): Add source_version,
67687                 target_version arguments.
67688                 * javacomp.c: Rewritten to choose only a compiler that
67689                 respects the specified source_version and target_version.
67690
67691         2006-06-27  Bruno Haible  <bruno@clisp.org>
67692
67693                 Assume correct S_ISDIR macro.
67694                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67695
67696         2006-07-22  Bruno Haible  <bruno@clisp.org>
67697
67698                 * javaversion.h: New file, from GNU gettext.
67699                 * javaversion.c: New file, from GNU gettext.
67700                 * javaversion.java: New file, from GNU gettext.
67701                 * javaversion.class: New file, from GNU gettext.
67702
67703         2006-05-17  Bruno Haible  <bruno@clisp.org>
67704
67705                 Cygwin portability.
67706                 * javaexec.c (execute_java_class): Test for jview program
67707                 also on Cygwin.
67708
67709         2006-04-09  Bruno Haible  <bruno@clisp.org>
67710
67711                 * fatal-signal.c: Don't include string.h.
67712                 (at_fatal_signal): Use a copying loop instead of memcpy.
67713
67714         2005-12-04  Bruno Haible  <bruno@clisp.org>
67715
67716                 * csharpexec.c: Add support for 'clix' launcher (untested).
67717                 (execute_csharp_using_sscli): New function.
67718                 (execute_csharp_program): Call it.
67719
67720         2006-06-21  Bruno Haible  <bruno@clisp.org>
67721
67722                 Avoid warnings from recent versions of mcs.
67723                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67724                 -o, -L, -r any more. Use options documented since mcs-1.0
67725                 instead. Similarly for -g.
67726
67727         2005-07-09  Bruno Haible  <bruno@clisp.org>
67728
67729                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67730                 add a .dll suffix.
67731                 Reported by Mark Junker <mjscod@gmx.de>.
67732
67733         2006-06-17  Bruno Haible  <bruno@clisp.org>
67734
67735                 * config.charset: Update for NetBSD 3.0.
67736
67737         2006-05-17  Bruno Haible  <bruno@clisp.org>
67738
67739                 Cygwin portability.
67740                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67741
67742         2006-05-16  Bruno Haible  <bruno@clisp.org>
67743
67744                 * localcharset.c [CYGWIN]: Include <windows.h>.
67745                 (get_charset_aliases): For Cygwin, return the same CPxxx
67746                 aliases list as under WIN32.
67747                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67748                 the environment variables. Fall back to GetACP().
67749
67750         2006-04-05  Bruno Haible  <bruno@clisp.org>
67751
67752                 * config.charset: Update Juan Manuel Guerrero's address.
67753
67754         2005-02-12  Bruno Haible  <bruno@clisp.org>
67755
67756                 * allocsa.h: Add extern "C" for C++.
67757
67758         2005-02-10  Bruno Haible  <bruno@clisp.org>
67759
67760                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67761                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67762
67763         2006-07-22  Bruno Haible  <bruno@clisp.org>
67764
67765                 * gettext.h: Update to GNU gettext-0.15.
67766
67767 2006-07-22  Bruno Haible  <bruno@clisp.org>
67768
67769         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67770         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67771         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67772
67773 2006-07-21  Eric Blake  <ebb9@byu.net>
67774
67775         * modules/stdlib-safer: New file.
67776         * MODULES.html.sh (File stream based Input/Output): Add
67777         stdlib-safer.
67778
67779 2006-07-21  Eric Blake  <ebb9@byu.net>
67780
67781         * lib/stdlib-safer.h: New file from coreutils, required by
67782         stdlib--.h.
67783
67784 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67787
67788 2006-07-20  Bruno Haible  <bruno@clisp.org>
67789
67790         * gnulib-tool: Recognize new option --assume-autoconf.
67791         (autoconf_minversion): New variable.
67792         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67793
67794 2006-07-20  Bruno Haible  <bruno@clisp.org>
67795
67796         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67797
67798 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67799
67800         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67801         Reindent and repaginate.
67802
67803 2006-07-19  Derek Price  <derek@ximbiot.com>
67804
67805         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67806         Correct grammar.
67807
67808 2006-07-17  Bruno Haible  <bruno@clisp.org>
67809
67810         * modules/list: New file.
67811         * modules/array-list: New file.
67812         * modules/carray-list, modules/carray-list-tests: New files.
67813         * modules/linked-list, modules/linked-list-tests: New files.
67814         * modules/avltree-list, modules/avltree-list-tests: New files.
67815         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67816         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67817         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67818         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67819         * modules/oset: New file.
67820         * modules/array-oset: New file.
67821         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67822         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67823         * tests/test-carray_list.c: New file.
67824         * tests/test-linked_list.c: New file.
67825         * tests/test-avltree_list.c: New file.
67826         * tests/test-rbtree_list.c: New file.
67827         * tests/test-linkedhash_list.c: New file.
67828         * tests/test-avltreehash_list.c: New file.
67829         * tests/test-rbtreehash_list.c: New file.
67830         * tests/test-avltree_oset.c: New file.
67831         * tests/test-rbtree_oset.c: New file.
67832         * MODULES.html.sh (Container data structures): New section.
67833
67834 2006-07-17  Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/gl_list.m4: New file.
67837
67838 2006-07-17  Bruno Haible  <bruno@clisp.org>
67839
67840         * lib/gl_list.h: New file.
67841         * lib/gl_list.c: New file.
67842         * lib/gl_array_list.h: New file.
67843         * lib/gl_array_list.c: New file.
67844         * lib/gl_carray_list.h: New file.
67845         * lib/gl_carray_list.c: New file.
67846         * lib/gl_linked_list.h: New file.
67847         * lib/gl_linked_list.c: New file.
67848         * lib/gl_anylinked_list1.h: New file.
67849         * lib/gl_anylinked_list2.h: New file.
67850         * lib/gl_avltree_list.h: New file.
67851         * lib/gl_avltree_list.c: New file.
67852         * lib/gl_anyavltree_list1.h: New file.
67853         * lib/gl_anyavltree_list2.h: New file.
67854         * lib/gl_rbtree_list.h: New file.
67855         * lib/gl_rbtree_list.c: New file.
67856         * lib/gl_anyrbtree_list1.h: New file.
67857         * lib/gl_anyrbtree_list2.h: New file.
67858         * lib/gl_anytree_list1.h: New file.
67859         * lib/gl_anytree_list2.h: New file.
67860         * lib/gl_linkedhash_list.h: New file.
67861         * lib/gl_linkedhash_list.c: New file.
67862         * lib/gl_anyhash_list1.h: New file.
67863         * lib/gl_anyhash_list2.h: New file.
67864         * lib/gl_avltreehash_list.h: New file.
67865         * lib/gl_avltreehash_list.c: New file.
67866         * lib/gl_rbtreehash_list.h: New file.
67867         * lib/gl_rbtreehash_list.c: New file.
67868         * lib/gl_anytreehash_list1.h: New file.
67869         * lib/gl_anytreehash_list2.h: New file.
67870
67871         * lib/gl_oset.h: New file.
67872         * lib/gl_oset.c: New file.
67873         * lib/gl_array_oset.h: New file.
67874         * lib/gl_array_oset.c: New file.
67875         * lib/gl_avltree_oset.h: New file.
67876         * lib/gl_avltree_oset.c: New file.
67877         * lib/gl_rbtree_oset.h: New file.
67878         * lib/gl_rbtree_oset.c: New file.
67879         * lib/gl_anytree_oset.h: New file.
67880
67881 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         * m4/mkancesdirs.m4: New file.
67884         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67885         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67886         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67887         it.
67888
67889 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67892         * lib/mkancesdirs.h: New files.
67893         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67894         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67895         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67896         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67897         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67898         callers changed.  Revamp internals significantly, by not
67899         attempting to create directories that are temporarily more
67900         permissive than the final results.  Do not attempt to use
67901         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67902         This removes some race conditions, fixes some bugs, and simplifies
67903         things.  Use new dirchownmod function to do owner and mode changes.
67904         * lib/mkdir-p.h: Likewise.
67905         * lib/modechange.c (octal_to_mode): New function.
67906         (struct mode_change): New member mentioned.
67907         (make_node_op_equals): New arg mentioned.  All callers changed.
67908         (mode_compile): Keep track of which mode bits the user has explicitly
67909         mentioned.
67910         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67911         New arg PMODE_BITS, to keep track of which mode bits the user
67912         mentioned; it treats S_ISUID and S_ISGID speciall.
67913         All callers changed.
67914         * lib/modechange.h: Likewise.
67915
67916 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * MODULES.html.sh: Add mkancestors.
67919         * modules/mkancesdirs: New module.
67920         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67921         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67922         The chdir-safer and afs files are now orphans; I'll remove them
67923         unless someone speaks up.
67924         Add lib/dirchownmod.c, lib/dirchownmod.h.
67925         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67926         Add lchown, mkancesdirs.
67927         (Maintainer): Add self.
67928
67929 2006-07-15  Karl Berry  <karl@gnu.org>
67930
67931         * gnulib-tool: help message wording/arrangement.
67932
67933 2006-07-14  Simon Josefsson  <jas@extundo.com>
67934
67935         * doc/gnulib.texi (Libtool and Windows): New section.
67936
67937 2006-07-12  Simon Josefsson  <jas@extundo.com>
67938
67939         * modules/gendocs (License): Fix license, approved by Karl.
67940
67941 2006-07-12  Eric Blake  <ebb9@byu.net>
67942
67943         * MODULES.html.sh: Add gendocs.
67944
67945 2006-07-11  Eric Blake  <ebb9@byu.net>
67946
67947         * modules/fdl: New module, to install doc/fdl.texi.
67948         * MODULES.html.sh: Add new section for documentation modules.
67949         * gnulib-tool: Avoid space-tab.
67950         (--doc-base): New option, to manage files from doc.
67951
67952 2006-07-11  Eric Blake  <ebb9@byu.net>
67953
67954         * m4/absolute-header.m4: Fix comments to match recent change.
67955
67956 2006-07-11  Eric Blake  <ebb9@byu.net>
67957
67958         * gnulib-tool: List --doc-base before --tests-base.
67959
67960 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67961
67962         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67963
67964 2006-07-11  Bruno Haible  <bruno@clisp.org>
67965
67966         * README: Mention where to put documentation.
67967
67968 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67969
67970         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67971
67972 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67973
67974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67975         to stdint.m4.
67976
67977 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67978
67979         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67980         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67981         "no/such/file/stdint.h" when there is no such file, so that
67982         the resulting C code can be parsed by dodgy compilers.
67983         Problems reported by Bob Proulx.
67984
67985 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67986
67987         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67988         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67989         macros into the GNU _D_EXACT_NAMLEN.
67990         * lib/savedir.c:  Likewise.
67991         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67992
67993 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67994         and Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67997         * m4/savedir.m4:
67998         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67999         macros into the GNU _D_EXACT_NAMLEN.
68000
68001 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68004         around the absolute name, to work around a problem with the HP-UX
68005         11.23 native C compiler, reported by Bob Proulx.
68006
68007 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         * doc/maintain.texi, make-stds.texi: Sync from
68010         <http://savannah.gnu.org/projects/gnustandards>.
68011
68012 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68013
68014         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68015
68016 2006-07-09  Jim Meyering  <jim@meyering.net>
68017
68018         * m4/glob.m4: Remove a doubled word in a comment.
68019
68020 2006-07-09  Jim Meyering  <jim@meyering.net>
68021
68022         * lib/argp-pv.c: Remove a doubled word in a comment.
68023         * lib/check-version.c (check_version): Likewise.
68024         * lib/javacomp.c (compile_java_class): Likewise.
68025
68026 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68029         for the benefit of people using Autoconf 2.60.  If you want to
68030         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68031         (or m4/onceonly.m4, if pre-2.57) manually.
68032
68033 2006-07-08  Jim Meyering  <jim@meyering.net>
68034
68035         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68036         comment.
68037         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68038         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68039         comment.
68040
68041 2006-07-08  Jim Meyering  <jim@meyering.net>
68042
68043         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68044
68045 2006-07-07  Simon Josefsson  <jas@extundo.com>
68046
68047         * tests/test-crc.c: Change expected crc value, the test vector
68048         were probably computed using the old broken crc.c?
68049
68050 2006-07-06  Simon Josefsson  <jas@extundo.com>
68051
68052         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68053         now the canonical place for the M4 file).
68054
68055         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68056         from the sys_socket dependency now.
68057
68058         * modules/inet_pton (Files): Ditto.
68059
68060         * modules/inet_ntop (Files): Ditto.
68061
68062 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68063
68064         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68065         not gl_PREREQ_GETUSERSHELL.
68066
68067 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68068
68069         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68070         with only one argument, for Autoconf 2.60.
68071         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68072         expand to nothing, so add a shell command to avoid syntax error.
68073         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68074
68075 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68076
68077         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68078
68079 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68082         no longer needed.  Check for isblank decl.
68083         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68084         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68085         of existence.
68086
68087 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * lib/getloadavg.c: Use __VMS, not VMS.
68090         * lib/getopt.c: Likewise.
68091         * lib/getpagesize.h: Likewise.
68092         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68093         and probably does not work.
68094
68095 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68096
68097         * lib/.cppi-disable: Add wcwidth.
68098         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68099         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68100         (ISGRAPH): Remove.  All uses changed to isgraph.
68101         (FOLD) [!defined _LIBC]: Remove special case.
68102         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68103         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68104         HAVE_ISBLANK.
68105         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68106         case.
68107
68108 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68109
68110         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68111         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68112         brackets.  Other minor changes to suppress some compiler
68113         warnings.
68114
68115 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68116         and Paul Eggert  <eggert@cs.ucla.edu>
68117
68118         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68119         of invoking obsolescent AC_HEADER_DIRENT macro.
68120         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68121         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68122         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68123         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68124         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68125         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68126         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68127         * m4/readdir.m4: Remove; no longer needed.
68128
68129 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68130         and Paul Eggert  <eggert@cs.ucla.edu>
68131
68132         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68133         Don't worry about this obsolete case any more.
68134         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68135         directories.
68136         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68137         worry about this obsolete case any more.
68138         * lib/fts.c: Likewise.
68139         * lib/getcwd.c: Likewise.
68140         * lib/glob.h: Likewise.
68141         * lib/savedir.c: Likewise.
68142
68143 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68146         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68147         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68148         needed.
68149         All uses removed.
68150         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68151         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68152         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68153         needed.
68154         * m4/getdate.m4 (gl_GETDATE): Likewise.
68155         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68156         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68157         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68158         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68159         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68160         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68161         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68162         needed.
68163
68164 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * lib/memcasecmp.c: Include <limits.h>.
68167         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68168         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68169         Don't assume isdigit succeeds only on '0' through '9'.
68170
68171 2006-07-05  Eric Blake  <ebb9@byu.net>
68172
68173         * modules/getaddrinfo (Depends-on): Add snprintf.
68174
68175 2006-07-05  Eric Blake  <ebb9@byu.net>
68176
68177         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68178         to avoid 'header present but could not be compiled' on cygwin.
68179
68180 2006-07-05  Eric Blake  <ebb9@byu.net>
68181
68182         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68183         missing from netdb.h.
68184         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68185
68186 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68187
68188         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68189         no longer needed.
68190         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68191         * m4/getdate.m4 (gl_GETDATE): Likewise.
68192         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68193         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68194         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68195         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68197
68198 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68199
68200         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68201         All uses of is_space replaced by isspace.
68202         * lib/exit.h: Don't talk about STDC_HEADERS.
68203         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68204         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68205         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68206         replaced by isprint etc.
68207         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68208         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68209         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68210         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68211         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68212         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68213
68214 2006-07-05  Bruno Haible  <bruno@clisp.org>
68215
68216         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68217         the function exists, before testing against AIX.
68218         Reported by Martin Lambers <marlam@marlam.de>.
68219
68220 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68221
68222         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68223         From Mark D. Baushke.
68224
68225 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68226
68227         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68228         to the absolute name, not just one, to bypass Sun C 5.8's
68229         "warning: #include of /usr/include/... may be non-portable".
68230
68231 2006-07-04  Eric Blake  <ebb9@byu.net>
68232
68233         * modules/dirname-tests: New test module.
68234         * tests/test-dirname.c: New file, replacing dirname.c
68235         TEST_DIRNAME section that was recently deleted.
68236
68237 2006-07-04  Bruno Haible  <bruno@clisp.org>
68238
68239         Assume ANSI C header files and <ctype.h> functions.
68240         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68241         (mbsnwidth): Use isprint, iscntrl instead.
68242
68243 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         Merge from coreutils.
68246         * MODULES.html.sh: Add xstrtold.
68247         * modules/xstrtold: New file.
68248         * modules/cycle-check (Files): Add lib/same-inode.h.
68249         * modules/dirname (Files): Add m4/double-slash-root.m4.
68250         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68251         * modules/mkdir-p (Files): Add lib/same-inode.h.
68252         * modules/same (Files): Add lib/same-inode.h.
68253
68254 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68257         This is to keep the terminology clean; POSIX talks about
68258         "absolute pathnames", not "full pathnames", but the GNU
68259         Coding Standards say to use "path" for something else;
68260         so use "absolute" to keep both sides happy.
68261         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68262         Set gl_absolute_header, not gl_full_header_path.
68263         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68264         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68265         All uses changed.
68266
68267         Merge from coreutils.
68268
68269         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68272         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68273         want to require the building of c-strtod.o.
68274         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68275         needs -lm directly.
68276         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68277
68278         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68279
68280         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68281         --as-needed option if available.  Problem reported by Albert Chin in
68282         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68283         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68284         cc merely issues a bunch of annoying warnings for --as-needed
68285         (this problem was reported by Bob Proulx).  Also, try linking with
68286         -lm to detect a bug in binutils 2.16 (this problem was reported
68287         by Ralf Wildenhues).
68288
68289         2006-06-18  Jim Meyering  <jim@meyering.net>
68290
68291         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68292         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68293         macro.
68294         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68295         also check for glibc-2.4's abort-inducing bug.
68296
68297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68298         Low-probability clean-up should be to use rmdir to get rid of
68299         the just-created directory, not unlink.
68300
68301         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68302         configure fail, and request a bug report to inform us about it.
68303         Add a comment that, barring reports to the contrary, in 2007 we'll
68304         assume ftruncate is universally available.
68305
68306         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68309
68310         2006-03-12  Jim Meyering  <jim@meyering.net>
68311
68312         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68313         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68314         * m4/same.m4 (gl_SAME): Likewise.
68315         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68316
68317         2006-03-11  Eric Blake  <ebb9@byu.net>
68318
68319         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68320         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68321         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68322         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68323
68324 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68327         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68328         reported by Mark D. Baushke, one in
68329         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68330
68331         Merge from coreutils.
68332
68333         * lib/.cppi-disable: Add stdint_.h.
68334         * lib/.cvsignore: Add stdint.h.
68335
68336         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68339         both double and long double versions.
68340         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68341         * lib/xstrtold.c: New file.
68342         * lib/xstrtod.h (xstrtold): New decl.
68343
68344         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68345
68346         * lib/filemode.c (setst): Remove.
68347         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68348         (arguably) clearer, and the generated code is a bit smaller on my
68349         Debian GNU/Linux stable x86 host.
68350
68351         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68352
68353         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68354         Assume that filemode.h includes sys/types.h and sys/stat.h.
68355         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68356         (ftypelet): Reorder to put common cases first, for efficiency.
68357         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68358         to do 'M'.
68359         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68360         of 10, for compatibility with FreeBSD.  All callers changed.
68361         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68362         types that can't be deduced solely from st_mode.  First arg is now a
68363         const pointer.
68364         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68365         (strmode): Renamed from mode_string.
68366         (filemodestring): New decl.
68367         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68368         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68369         needed.
68370         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68371
68372         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68373
68374         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68375         fsusage.h now does that.  Include fsusage.h first, to test interface.
68376         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68377         at most one method (the old code could have generated decls that
68378         didn't conform to C89, not that this was ever exercised).
68379         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68380
68381         2006-03-19  Jim Meyering  <jim@meyering.net>
68382
68383         Work even in a chroot where d_ino values for entries in "/"
68384         don't match the stat.st_ino values for the same names.
68385         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68386         number, iterate through all entries again, using lstat instead.
68387         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68388         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68389
68390         * lib/getcwd.c (__getcwd): Clarify a comment.
68391         Use memcpy in place of a call to strcpy.
68392
68393         2006-03-12  Jim Meyering  <jim@meyering.net>
68394
68395         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68396         matches that of the current directory (which we're about to chdir ".."
68397         out of), then save the dev-ino of the parent, instead.
68398
68399         * lib/same-inode.h (SAME_INODE): New file/macro.
68400         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68401         Include "same-inode.h", instead.
68402         * lib/same.c: Likewise.
68403         * lib/cycle-check.h: Include "same-inode.h".
68404         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68405         * lib/cycle-check.c (SAME_INODE): Remove definition.
68406         * lib/root-dev-ino.h: Include "same-inode.h".
68407
68408         2006-03-11  Eric Blake  <ebb9@byu.net>
68409
68410         * lib/same.c (same_name): s/base_name/last_component/
68411         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68412         * lib/filenamecat.c (file_name_concat): Likewise.
68413
68414         2006-03-11  Eric Blake  <ebb9@byu.net>,
68415                     Paul Eggert  <eggert@cs.ucla.edu>
68416
68417         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68418         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68419         drive prefix.
68420         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68421         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68422         (last_component): New method.
68423         * lib/dirname.c (dir_len): Determine when drive letters need a
68424         subsequent slash.  Preserve // when it is special.
68425         (dir_name): Don't append dot when drive letter is absolute.
68426         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68427         * lib/basename.c (base_name): New semantics - malloc the result.
68428         Preserve // when it is special.  Preserve relative files that look
68429         like drive letters.
68430         (base_len): Preserve // when it is special.
68431         (last_component): New method, similar to old base_name semantics.
68432         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68433         base_name.  Strip redundant slashes from ///.
68434
68435 2006-07-03  Jim Meyering  <jim@meyering.net>
68436
68437         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68438         macro is used before the first cycle_check call.
68439
68440 2006-07-03  Eric Blake  <ebb9@byu.net>
68441
68442         * modules/dirname (Depends-on): Add xstrndup.
68443
68444 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68445
68446         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68447         test cases, so that config.log is a bit easier to follow.
68448
68449 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68450
68451         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68452         both are 64 bits, since this seems to be the tradition, and this
68453         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68454         we ever run into a host that prefers long long to long in this
68455         case, we'll need another configure-time test.  Problem reported by
68456         Jim Meyering.
68457
68458 2006-07-02  Eric Blake  <ebb9@byu.net>
68459
68460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68461
68462 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68463
68464         * modules/inttypes (Depends-on): No longer depends on stdint.
68465         * modules/stdint (Description): Say more about assumptions.
68466         Say that the fast types might differ.  Say macros are used.
68467         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68468         (Makefile.am): Revise list of substituted symbols to match
68469         new stdint.m4.
68470         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68471         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68472         * tests/test-stdint.c (verify_same_types)
68473         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68474         the code conforms to C99/C89.
68475         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68476         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68477
68478 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68481         but fix a bug, by requiring at least 64 bits.
68482         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68483         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68484         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68485         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68486
68487         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68488         changes.  Make 2.59 a prerequisite.  Check and substitute for
68489         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68490         inttypes.h.  Do not use special include files; just use the
68491         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68492         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68493         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68494         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68495         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68496         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68497         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68498         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68499         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68500         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68501         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68502         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68503         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68504         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68505         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68506         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68507         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68508         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68509         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68510         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68511         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68512         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68513         not check for things that C99 does not require, e.g., int8_t.  If
68514         a test isn't needed unless <stdint.h> isn't working, and is
68515         unlikely to be needed for any other reason, then don't do it
68516         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68517         size_t, since we assume C89 freestanding at least.  Do not check
68518         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68519         the right thing even if the types are not defined.  Instead use:
68520         (gl_STDINT_TYPE_PROPERTIES): New macro.
68521         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68522         testing whether <sys/types.h> clashes, as Autoconf does this for
68523         us now.  All uses removed.
68524         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68525         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68526         (gl_CHECK_TYPE_SAME):
68527         Remove; no longer needed.
68528         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68529         exists, since we'll return 0 anyway in that case.
68530         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68531
68532 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68535         possible collision with system files.
68536         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68537         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68538         WCHAR_MIN and WCHAR_MAX in this case.
68539         (<stddef.h>): Do not include; no longer needed.
68540         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68541         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68542         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68543         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68544         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68545         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68546         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68547         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68548         !defined(__c99))]: Include in this case too, since it's harmless
68549         now.
68550         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68551         dangerous to do so.
68552         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68553         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68554         (_STDINT_MIN, _STDINT_MAX): New macros.
68555         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68556         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68557         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68558         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68559         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68560         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68561         macros, not typedefs; this simplifies things quite a bit.
68562         Use long int for all types narrower than int64_t.
68563         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68564         Define in terms of long long int or int64_t or long int,
68565         not int64_t or int32_t.  This saves some compile-time testing.
68566         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68567         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68568         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68569         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68570         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68571         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68572         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68573         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68574         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68575         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68576         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68577         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68578         undef any previous version and define our own version, for
68579         simplicity and consistency with the new macros for types.
68580         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68581         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68582         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68583         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68584         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68585         @WINT_T_SUFFIX@ to keep things simple here.
68586         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68587         Simplify by assuming typical 8/16/32/64 host, since we're
68588         already doing that elsewhere anyway.
68589         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68590         and assume long long int is 64 bits if available.  This
68591         speeds up 'configure'.
68592
68593 2006-07-01  Eric Blake  <ebb9@byu.net>
68594
68595         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68596         Reported by Andreas Buening.
68597
68598 2006-07-01  Eric Blake  <ebb9@byu.net>
68599
68600         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68601
68602 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68603
68604         * lib/getaddrinfo.c: fixed typo
68605
68606 2006-06-29  Jim Meyering  <jim@meyering.net>
68607
68608         * modules/strftime (Maintainer): Add my name, since with the
68609         FPRINTFTIME changes strftime.c has forked from glibc.
68610
68611 2006-06-29  Eric Blake  <ebb9@byu.net>
68612
68613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68614
68615 2006-06-29  Eric Blake  <ebb9@byu.net>
68616
68617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68618
68619 2006-06-29  Eric Blake  <ebb9@byu.net>
68620
68621         * lib/stat_.h: New file.
68622
68623 2006-06-29  Eric Blake  <ebb9@byu.net>
68624
68625         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68626         unused static function.
68627
68628 2006-06-29  Eric Blake  <ebb9@byu.net>
68629
68630         * doc/functions.texi (Function Portability): Document missing lstat
68631         on mingw.
68632
68633 2006-06-29  Eric Blake  <ebb9@byu.net>
68634
68635         * MODULES.html.sh: Add sys_stat.
68636         * modules/sys_stat: New module.
68637         * modules/mkstemp (Depends-on): Add sys_stat.
68638
68639 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68640
68641         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68642
68643 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68644
68645         * m4/c-bs-a.m4: Removed.
68646
68647 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68648
68649         * lib/strftime.c: Assume strftime() exists.
68650
68651 2006-06-29  Derek Price  <derek@ximbiot.com>
68652
68653         * modules/c-bs-a: Removed - \a is C89.
68654         * MODULES.html.sh: Remove c-bs-a.
68655
68656 2006-06-29  Bruno Haible  <bruno@clisp.org>
68657
68658         * modules/wcwidth (License): Change to LGPL.
68659
68660 2006-06-28  Simon Josefsson  <jas@extundo.com>
68661
68662         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68663         on _WIN32.
68664
68665         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68666         getnameinfo.
68667
68668 2006-06-28  Simon Josefsson  <jas@extundo.com>
68669
68670         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68671
68672 2006-06-28  Simon Josefsson  <jas@extundo.com>
68673
68674         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68675         functions there.  It will succeed on Windows XP, but on Windows
68676         2000 and (presumably) earlier, it will fail, and use the internal
68677         re-implementation.
68678         (use_win32_p): New function.
68679         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68680         Support AI_NUMERICSERV to disable getservbyname.
68681         (getnameinfo): New function, only supports
68682         NI_NUMERICHOST|NI_NUMERICSERV for now.
68683
68684         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68685         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68686         getnameinfo.
68687
68688 2006-06-28  Eric Blake  <ebb9@byu.net>
68689
68690         * modules/wcwidth: New file.
68691         * modules/mbchar (Depends-on): Add wcwidth.
68692         * modules/mbswidth (Depends-on): Add wcwidth.
68693         * MODULES.html.sh: Add wcwidth.
68694
68695 2006-06-28  Eric Blake  <ebb9@byu.net>
68696
68697         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68699
68700 2006-06-28  Eric Blake  <ebb9@byu.net>
68701
68702         * lib/xvasprintf.h: Fix comments.
68703
68704 2006-06-28  Eric Blake  <ebb9@byu.net>
68705
68706         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68707         * lib/mbswidth.c (wcwidth): Move from here...
68708         * lib/wcwidth.h: ...to this new file.
68709
68710 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68711
68712         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68713
68714         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68715         it's obsolete.
68716         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68717
68718 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68719
68720         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68721         Autoconf 2.60 says this stuff was obsolete.
68722
68723 2006-06-28  Bruno Haible  <bruno@clisp.org>
68724
68725         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68726
68727 2006-06-28  Bruno Haible  <bruno@clisp.org>
68728
68729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68730         gt_TYPE_WCHAR_T.
68731
68732 2006-06-28  Bruno Haible  <bruno@clisp.org>
68733
68734         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68735         declaration for wcwidth.
68736         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68737
68738 2006-06-28  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68741         (mkdir): Define using _mkdir.
68742
68743 2006-06-28  Bruno Haible  <bruno@clisp.org>
68744
68745         * lib/getaddrinfo.h: Fix POSIX URL.
68746         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68747         _WIN32.
68748         (use_win32_p): Make static.
68749         (getaddrinfo): Reject service name if it is empty or does not consist
68750         solely of decimal digits, or if its value is > 65535.
68751         (getnameinfo): Remove useless casts.
68752
68753 2006-06-27  Simon Josefsson  <jas@extundo.com>
68754
68755         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68756         Eggert and Martin Lambers.
68757
68758 2006-06-27  Simon Josefsson  <jas@extundo.com>
68759
68760         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68761         Eggert and Martin Lambers.
68762
68763 2006-06-27  Bruno Haible  <bruno@clisp.org>
68764
68765         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68766         result to 0, not to empty.
68767         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68768
68769 2006-06-27  Bruno Haible  <bruno@clisp.org>
68770
68771         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68772
68773 2006-06-26  Simon Josefsson  <jas@extundo.com>
68774
68775         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68776         present.
68777
68778 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68781         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68783
68784 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68785
68786         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68787
68788 2006-06-26  Bruno Haible  <bruno@clisp.org>
68789
68790         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68791
68792 2006-06-26  Bruno Haible  <bruno@clisp.org>
68793
68794         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68795
68796 2006-06-26  Bruno Haible  <bruno@clisp.org>
68797
68798         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68799         SGI C compiler in pre-C99 mode.
68800         Suggested by Mark D. Baushke and Larry Jones.
68801
68802 2006-06-26  Bruno Haible  <bruno@clisp.org>
68803
68804         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68805         WCHAR_MAX.
68806         Reported by Mark D. Baushke and Larry Jones.
68807
68808 2006-06-26  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68811         in pre-C99 mode.
68812         Suggested by Mark D. Baushke and Larry Jones.
68813
68814 2006-06-23  Simon Josefsson  <jas@extundo.com>
68815             Bruno Haible  <bruno@clisp.org>
68816
68817         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68818         Emit mostlyclean-local rule.
68819         (func_emit_tests_Makefile_am): Likewise.
68820         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68821
68822 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68823
68824         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68825
68826 2006-06-23  Bruno Haible  <bruno@clisp.org>
68827
68828         * tests/test-stdint.c: Update to match ISO C 99 Technical
68829         Corrigendum 1.
68830
68831 2006-06-23  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68834
68835 2006-06-23  Bruno Haible  <bruno@clisp.org>
68836
68837         * lib/stdint_.h: Treat IRIX like OpenBSD.
68838
68839 2006-06-23  Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68842         ISO C 99 Technical Corrigendum 1.
68843
68844 2006-06-22  Simon Josefsson  <jas@extundo.com>
68845
68846         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68847         MinGW.
68848
68849 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68852         needed.  Some compiler complained about some of them.  Problem reported
68853         by Larry Jones in
68854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68855
68856 2006-06-21  Simon Josefsson  <jas@extundo.com>
68857
68858         * tests/test-getaddrinfo.c: New file.
68859
68860         * modules/getaddrinfo-tests: New file.
68861
68862         * MODULES.html.sh: Add inet_pton.
68863
68864         * modules/inet_pton: New file.
68865
68866 2006-06-21  Simon Josefsson  <jas@extundo.com>
68867
68868         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68869         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68870         of using the (limited) gnulib implementation on Windows XP.
68871
68872         * m4/inet_pton.m4: New file.
68873
68874 2006-06-21  Simon Josefsson  <jas@extundo.com>
68875
68876         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68877         variable.
68878
68879         * lib/socket_.h: Don't define WINVER.
68880
68881         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68882         slightly modified to work in gnulib.
68883
68884 2006-06-21  Simon Josefsson  <jas@extundo.com>
68885
68886         * doc/gnulib.texi (Windows sockets): Add.
68887
68888 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * lib/read-file.c (fread_file): Start with buffer allocation of
68891         0 bytes rather than 1 byte; this simplifies the code.
68892         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68893         code to free buffer and save/restore errno.
68894         (internal_read_file): Remove unused local.
68895
68896 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68897
68898         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68899         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68900         Problem reported by Denis Excoffier in
68901         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68902
68903 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68904
68905         * modules/sys_socket, modules/socklen: Include sys/types since
68906         FreeBSD 4.x's sys/socket.h needs it.
68907
68908 2006-06-19  Simon Josefsson  <jas@extundo.com>
68909
68910         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68911
68912 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68915
68916 2006-06-19  Bruno Haible  <bruno@clisp.org>
68917
68918         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68919         and FULL_PATH_INTTYPES_H in angle brackets.
68920         Reported by Mark D. Baushke <mdb@gnu.org>.
68921
68922 2006-06-17  Eric Blake  <ebb9@byu.net>
68923
68924         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68925         errno.
68926
68927 2006-06-17  Bruno Haible  <bruno@clisp.org>
68928
68929         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68930         <sys/inttypes.h>.
68931
68932 2006-06-17  Bruno Haible  <bruno@clisp.org>
68933
68934         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68935         whether errno is declared. Assume <errno.h> declares errno.
68936
68937 2006-06-17  Bruno Haible  <bruno@clisp.org>
68938
68939         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68940
68941 2006-06-17  Bruno Haible  <bruno@clisp.org>
68942
68943         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68944         problem on Solaris 2.5.1.
68945
68946 2006-06-16  Eric Blake  <ebb9@byu.net>
68947
68948         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68949         * lib/unicodeio.c [!defined errno]: Likewise.
68950         * lib/strtol.c [!defined errno]: Likewise.
68951         * lib/strtod.c [!defined errno]: Likewise.
68952
68953 2006-06-15  Eric Blake  <ebb9@byu.net>
68954
68955         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68956
68957 2006-06-15  Eric Blake  <ebb9@byu.net>
68958
68959         * config/srclist.txt (ssize_t.m4): Lose sync.
68960
68961 2006-06-15  Bruno Haible  <bruno@clisp.org>
68962
68963         * modules/stdint (Files): Include m4/full-header-path.m4,
68964         m4/size_max.m4, m4/wchar_t.m4.
68965         (Makefile.am): Many more substitutions.
68966         * modules/stdint-tests: New file.
68967         * tests/test-stdint.c: New file.
68968
68969 2006-06-15  Bruno Haible  <bruno@clisp.org>
68970
68971         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68972         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68973         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68974         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68975         gl_CHECK_TYPE_SAME): New macros.
68976
68977 2006-06-15  Bruno Haible  <bruno@clisp.org>
68978
68979         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68980
68981 2006-06-15  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/stdint_.h: Rewritten to be fully auto-configured.
68984         Fixes bug on HP-UX/IA64.
68985
68986 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68987
68988         * lib/getdate.y (__attribute__): Don't define if already defined.
68989         Problem reported by Larry Jones.
68990         * lib/utimens.c (__attribute__): Likewise.
68991
68992 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68995         reported by Andreas Schwab.
68996
68997 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68998             Bruno Haible  <bruno@clisp.org>
68999
69000         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69001         check for the declaration of strnlen and a run test that exposes the
69002         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69003         rpl_strndup.
69004
69005 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69006             Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69009
69010 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69011
69012         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69013         compile test, for Tru64 4.0D.
69014
69015 2006-05-28  Karl Berry  <karl@gnu.org>
69016
69017         * config/srclist.txt (printf-args.c): lose sync.
69018
69019 2006-05-26  Martin Lambers  <marlam@marlam.de>
69020
69021         * lib/getpass.c: Updates the test for the native W32 API, and adds
69022         missing includes, thus fixing compilation warnings.
69023
69024 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69025
69026         * lib/exclude.c (exclude_fnmatch): New function.
69027         (excluded_file_name): Call exclude_fnmatch.
69028         * lib/exclude.h (excluded_file_name): New prototype
69029
69030 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * lib/tempname.c (small_open, large_open): New macros.
69033         (__open, __open64) [!_LIBC]: Remove.
69034         (__gen_tempname): Use small_open and large_open instead of __open
69035         and __open64.  This fixes a portability bug on HP-UX 11.11i
69036         reported by Simon Wing-Tang in
69037         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69038
69039 2006-05-24  Bruno Haible  <bruno@clisp.org>
69040
69041         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69042         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69043         Reported by Thorsten Maerz <torte@netztorte.de> via
69044         Aaron Stone <aaron@serendipity.cx>.
69045
69046 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69049         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69050         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69051         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69052         not really conditional on the cache.
69053         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69054
69055 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69058         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69059         (my_usleep): Don't mishandle maximum value.
69060
69061 2006-05-19  Jim Meyering  <jim@meyering.net>
69062
69063         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69064
69065 2006-05-17  Bruno Haible  <bruno@clisp.org>
69066
69067         Cygwin portability.
69068         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69069
69070 2006-05-17  Bruno Haible  <bruno@clisp.org>
69071
69072         * lib/stdint_.h: Fix recognition of Cygwin.
69073
69074 2006-05-15  Bruno Haible  <bruno@clisp.org>
69075
69076         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69077         on libtool patch by Ralf Wildenhues.
69078
69079 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69082         test for C99 conformance; (bool) 0.5 is an integer constant
69083         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69084         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69085
69086 2006-05-11  Simon Josefsson  <jas@extundo.com>
69087
69088         * m4/xvasprintf.m4: Fix obvious typo.
69089
69090 2006-05-11  Jim Meyering  <jim@meyering.net>
69091
69092         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69093         James Lemley.
69094
69095 2006-05-10  Simon Josefsson  <jas@extundo.com>
69096
69097         * lib/md4.c: Typo fix, update copyright years.
69098         (K1, K2): Don't use L because it turn computations into 64-bit on
69099         64-bit platforms.
69100
69101 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69104         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69105         unwanted sign propagation, e.g., on hosts with 64-bit int.
69106         There still are some problems with reeelly weird theoretical hosts
69107         (e.g., 33-bit int) but it's not worth worrying about now.
69108         * lib/sha1.c (rol): Likewise.
69109         (K1, K2, K3, K4): Remove unnecessary L suffix.
69110
69111 2006-05-10  Bruno Haible  <bruno@clisp.org>
69112
69113         * lib/des.c: Cast to avoid warnings.
69114
69115 2006-05-09  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69118         (Depends-on): Depend also on xsize, stdarg.
69119         (configure.ac): Add gl_XVASPRINTF.
69120
69121 2006-05-09  Bruno Haible  <bruno@clisp.org>
69122
69123         * m4/xvasprintf.m4: New file.
69124
69125 2006-05-09  Bruno Haible  <bruno@clisp.org>
69126
69127         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69128         (EOVERFLOW): Define fallback value.
69129         (xstrcat): New function.
69130         (xvasprintf): Recognize the special case of a string concatenation.
69131
69132 2006-05-08  Eric Blake  <ebb9@byu.net>
69133
69134         * gnulib-tool (func_version): Base copyright year on CVS date.
69135         (func_emit_copyright_notice): New function.
69136         (func_emit_lib_Makefile_am): Use it.
69137         (func_emit_tests_Makefile_am): Likewise.
69138         (func_import): Likewise.
69139
69140 2006-05-08  Bruno Haible  <bruno@clisp.org>
69141
69142         * modules/stdarg: New file.
69143         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69144
69145 2006-05-08  Bruno Haible  <bruno@clisp.org>
69146
69147         * m4/stdarg.m4: New file, from GNU gettext.
69148
69149 2006-05-08  Bruno Haible  <bruno@clisp.org>
69150
69151         * config/srclist.txt (build-aux/config.rpath): different from latest
69152         release.
69153
69154 2006-05-08  Bruno Haible  <bruno@clisp.org>
69155
69156         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69157
69158 2006-05-05  Jim Meyering  <jim@meyering.net>
69159
69160         * m4/warning.m4: New file, derived from bison's file by the same name.
69161
69162 2006-05-03  Bruno Haible  <bruno@clisp.org>
69163
69164         * lib/stdint_.h: Shorter URL.
69165         * lib/inttypes.h: Likewise.
69166
69167 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69170
69171 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         * lib/verify.h: Document the internals better.  Most of this change
69174         was written by Bruno Haible.
69175
69176 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * doc/verify.texi: New file, partly based on a proposal by
69179         Bruno Haible.
69180
69181 2006-05-02  Bruno Haible  <bruno@clisp.org>
69182
69183         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69184         test from here...
69185         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69186
69187 2006-04-29  Bruno Haible  <bruno@clisp.org>
69188
69189         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69190         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69191
69192 2006-04-29  Bruno Haible  <bruno@clisp.org>
69193
69194         * gnulib-tool: Make --update option actually work.
69195
69196 2006-04-29  Bruno Haible  <bruno@clisp.org>
69197
69198         * doc/gcd.texi: New file.
69199         * doc/gnulib.texi: Include it.
69200
69201 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * lib/getdate.y (get_date): When adding relative date, start with the
69204         initial time, not with the result of the first mktime call.
69205
69206 2006-04-25  Bruno Haible  <bruno@clisp.org>
69207
69208         * gnulib-tool (func_import): Output the include directives in three
69209         blocks, sorted separately.
69210         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69211
69212 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69215         to define main with arguments, for C++.  Reported by Eric Blake.
69216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69217         Prefer 'int main ()' to 'int main (void)', for C++.
69218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69220         for 'main', for C99 and C++.
69221
69222 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69225         Don't assume that exit status -1 is valid.
69226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69227         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69228         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69229         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69230         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69231         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69232         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69233         functions can be used without declaring them, or that you can
69234         exit with status -1.
69235         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69236
69237 2006-04-24  Karl Berry  <karl@gnu.org>
69238
69239         * config/srclist.txt (longdouble.m4): sync lost.
69240
69241 2006-04-24  Eric Blake  <ebb9@byu.net>
69242
69243         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69244
69245 2006-04-24  Bruno Haible  <bruno@clisp.org>
69246
69247         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69248         poll() implementation in AIX.
69249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69250
69251 2006-04-24  Bruno Haible  <bruno@clisp.org>
69252
69253         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69254         assigned exactly once.
69255
69256 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69257             Bruno Haible  <bruno@clisp.org>
69258
69259         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69260         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69261         for AM_CPPFLAGS.
69262
69263 2006-04-23  Bruno Haible  <bruno@clisp.org>
69264
69265         * modules/copy-file: Depend on unistd.
69266         * modules/execute: Likewise.
69267         * modules/fatal-signal: Likewise.
69268         * modules/findprog: Likewise.
69269         * modules/mkdtemp : Likewise.
69270         * modules/pipe: Likewise.
69271         * modules/wait-process: Likewise.
69272
69273 2006-04-23  Bruno Haible  <bruno@clisp.org>
69274
69275         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69276         condition was already detected.
69277         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69278
69279 2006-04-23  Bruno Haible  <bruno@clisp.org>
69280
69281         * lib/copy-file.c: Include <unistd.h> unconditionally.
69282         * lib/execute.c: Likewise.
69283         * lib/fatal-signal.c: Likewise.
69284         * lib/findprog.c: Likewise.
69285         * lib/mkdtemp.c: Likewise.
69286         * lib/pipe.h: Likewise.
69287         * lib/pipe.c: Likewise.
69288         * lib/wait-process.h: Likewise.
69289
69290 2006-04-23  Bruno Haible  <bruno@clisp.org>
69291
69292         * gnulib-tool (func_usage): Fix --import description. Document
69293         --update.
69294         (func_import): Create temporary file in a temporary directory, if
69295         --dry-run is specified. Silence errors from 'grep' when there are no
69296         m4 files in $m4dir.
69297         (func_create_testdir): Silence errors from 'grep' when there are no
69298         m4 files in $m4dir.
69299         Reported by Karl Berry <karl@freefriends.org>.
69300
69301 2006-04-20  Bruno Haible  <bruno@clisp.org>
69302
69303         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69304         one argument, so that the code will be portable to Autoconf 2.60.
69305         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69306         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69307         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69308
69309 2006-04-19  Derek Price  <derek@ximbiot.com>
69310             Eric Blake  <ebb9@byu.net>
69311
69312         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69313         rather than "/full/path.h".  Update comment to match.  Shorten &
69314         generalize m4_translit call via AS_TR_CPP.
69315
69316 2006-04-19  Derek Price  <derek@ximbiot.com>
69317             Eric Blake  <ebb9@byu.net>
69318
69319         * lib/inttypes.h: Correct grammar in comment.
69320
69321 2006-04-18  Derek Price  <derek@ximbiot.com>
69322             Paul Eggert  <eggert@cs.ucla.edu>
69323
69324         * modules/inttypes: New file.
69325         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69326
69327 2006-04-18  Derek Price  <derek@ximbiot.com>
69328             Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69331         New files.
69332
69333 2006-04-18  Derek Price  <derek@ximbiot.com>
69334             Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         * lib/inttypes.h: New file.
69337         * lib/strtoimax.c: Assume <inttypes.h>.
69338
69339 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69342         isn't mounted.  Problem reported by Kir Kolyshkin.
69343
69344 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69347         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69348         Derek R. Price.
69349         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69350         implementation.
69351
69352 2006-04-12  Eric Blake  <ebb9@byu.net>
69353
69354         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69355         is now done automatically by the corresponding Autoconf macro.
69356
69357 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69358
69359         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69360         time_r.h.
69361
69362 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         Merge regex changes from libc, removing some of our
69365         POSIX-conformance changes that were rejected and redoing them in a
69366         less-intrusive way.
69367
69368         * lib/regcomp.c (re_compile_internal, init_dfa):
69369         Length arg is now size_t, not Idx.  All uses changed.
69370         (peek_token): Forward decl now says internal_function.
69371         (__re_error_msgid, __re_error_msgid_idx):
69372         Now static rather than extern with attribute_hidden.
69373         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69374         For some reason libc prefers K&R style defns for external functions.
69375         (regerror) [!defined _LIBC]: Likewise.
69376         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69377         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69378         (build_range_exp, build_collating_symbol):
69379         Use K&R-style defn.
69380         (re_compile_fastmap): Use '\0' to memset, not 0.
69381         (utf8_sb_map): Make the calculations more obvious.
69382         (init_dfa, parse_bracket_exp, build_charclass_op):
69383         Call calloc and cast result, as glibc does.
69384         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69385         (build_range_exp, build_collating_symbol):
69386         Now internal functions.
69387
69388         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69389
69390         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69391         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69392         Don't depend on VMS; depend on __VMS instead, for POSIX
69393         namespace cleanness.
69394         (regoff_t): Define to ssize_t, not long int.
69395
69396         Remove the REG_ macros named below.  Instead, make the old names
69397         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69398         __USE_GNU_REGEX.
69399         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69400         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69401         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69402         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69403         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69404         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69405         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69406         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69407         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69408         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69409         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69410         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69411         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69412         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69413         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69414         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69415         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69416         (REG_NREGS):
69417         Remove.  All uses replaced by the old RE_* names.
69418         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69419         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69420         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69421         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69422         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69423         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69424         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69425         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69426         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69427         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69428         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69429         Don't bother having these macros be independent of each others'
69430         values, since they no longer exist in the POSIX name space.
69431
69432         Rename the following member names back to their old names,
69433         unless !__USE_GNU_REGEX.  All uses changed back.
69434         (buffer): Renamed from re_buffer.
69435         (allocated): Renamed from re_allocated.
69436         (used): Renamed from re_used.
69437         (syntax): Renamed from re_syntax.
69438         (fastmap): Renamed from re_fastmap.
69439         (translate): Renamed from re_translate.
69440         (can_be_null): Renamed from re_can_be_null.
69441         (regs_allocated): Renamed from re_regs_allocated.
69442         (fastmap_accurate): Renamed from re_fastmap_accurate.
69443         (no_sub): Renamed from re_no_sub.
69444         (not_bol): Renamed from re_not_bol.
69445         (not_eol): Renamed from re_not_eol.
69446         (newline_anchor): Renamed from re_newline_anchor.
69447         (num_regs): Renamed from rm_num_regs.
69448         (start): Renamed from rm_start.
69449         (end): Renamed from rm_end.
69450
69451         (free_state): Move up a bit.
69452
69453         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69454         #define to be empty.
69455         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69456         when that is what is intended.
69457         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69458         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69459         (MAX): New macro.
69460         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69461         All uses changed back to re_malloc, etc.  It's now the caller's
69462         responsibility to check for overflow; all callers changed.
69463         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69464         (re_x2nrealloc): Remove.
69465         (free_state): Remove decl.
69466
69467         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69468         (re_set_registers, re_exec):
69469         Use K&R-style defn.
69470
69471         2006-01-31  Roland McGrath  <roland@redhat.com>
69472
69473         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69474         Reported by Mike Frysinger <vapier@gentoo.org>.
69475
69476         2006-01-15  Andreas Jaeger  <aj@suse.de>
69477
69478         [BZ #1950]
69479         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69480         build_wcs_upper_buffer change.
69481         (build_wcs_upper_buffer): Change return type.
69482
69483         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69484
69485         * lib/regex_internal.h: Include <stdint.h> if available.
69486
69487         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69488
69489         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69490
69491         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69492
69493         * lib/regcomp.c: Adjust for changed secondary hash function.
69494
69495         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69496
69497         * lib/regex.h: Pretty printing.
69498         Clean up namespace a bit.
69499
69500         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69501
69502         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69503         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69504
69505         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69506                     Ulrich Drepper  <drepper@redhat.com>
69507
69508         [BZ #1302]
69509         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69510         changed.
69511         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69512
69513         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69514
69515         [BZ #281]
69516         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69517         * lib/regcomp.c: Remove unnecessary uses of
69518         unsigned RE_TRANSLATE_TYPE.
69519         * lib/regex_internal.h: Likewise.
69520         * lib/regex_internal.c: Likewise.
69521         * lib/regexec.c: Likewise.
69522         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69523
69524         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69525
69526         * lib/regexec.c (find_recover_state): Remove unnecessary
69527         initialization.
69528         (transit_state_bkref): Make DFA a const pointer.
69529         (get_subexp): Likewise.
69530         (check_arrival): Likewise.
69531         (update_cur_sifted_state): Likewise.
69532         (re_search_internal): Likewise.
69533         (prune_impossible_nodes): Likewise.
69534         (acquire_init_state_context): Likewise.
69535         (proceed_next_node): Likewise.
69536         (set_regs): Likewise.
69537         (free_fail_stack_return): Likewise.
69538         (check_arrival_expand_ecl): Mark DFA parameter as const.
69539         (check_arrival_expand_ecl_sub): Likewise.
69540         (check_subexp_limits): Likewise.
69541         (sub_epsilon_src_nodes):  Likewise.
69542         (add_epsilon_src_nodes):  Likewise.
69543         (merge_state_array): Likewise.
69544         (update_regs): Likewise.
69545         (build_trtable): Likewise.
69546         (sift_states_backward): Mark MCTX parameter as const.
69547         (build_sifted_states): Likewise.
69548         (update_cur_sifted_state): Likewise.
69549         (sift_states_mkref): Likewise.
69550         (check_arrival_expand_ecl): Mark eclosure as const.
69551         (check_dst_limits_calc_pos_1): Likewise.
69552         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69553         pointer.
69554
69555         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69556
69557         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69558         (transit_state_sb): Likewise.
69559         (transit_state_mb): Likewise.
69560         (sift_states_iter_mb): Likewise.
69561         (check_arrival_add_next_nodes): Likewise.
69562         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69563         [_LIBC] (re_search_2_stub): Use mempcpy.
69564
69565         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69566         mbrtowc for very simple UTF-8 case.
69567
69568         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69569         a pointer-to-const.
69570         (re_acquire_state_context): Likewise.
69571         * lib/regex_internal.h: Adjust prototypes.
69572
69573         * lib/regex.c: Prevent using C++ compilers.
69574
69575         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69576         (re_acquire_state_context): Likewise.
69577
69578 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         * modules/regex (Depends-on): Add ssize_t.
69581
69582 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69585         translation table.
69586
69587 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69590
69591 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69592             Bruno Haible  <bruno@clisp.org>
69593
69594         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69595         <sys/types.h> and <inttypes.h>.
69596
69597 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69598
69599         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69600         `__error_t_defined', so argp.h will not typedef the former.
69601
69602 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69603
69604         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69605         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69606         glibc names.  Even if glibc is changed to conform to POSIX, the
69607         traditional names will be available anyway, since regex depends on
69608         the extensions module.  Also, fix a longstanding typo in the
69609         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69610         reported by Emanuele Giaquinta.  Also, change sense of cached
69611         variable, so that the message makes sense.
69612
69613 2006-03-24  Simon Josefsson  <jas@extundo.com>
69614
69615         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69616         including some doc fixes.
69617         (base64_encode_alloc): Fix +1 bug on allocation failures.
69618
69619 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69620
69621         * lib/base64.c (base64_encode): Do not read past end of array with
69622         unsanitized input on systems with CHAR_BIT > 8.
69623
69624 2006-03-24  Eric Blake  <ebb9@byu.net>
69625
69626         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69627
69628 2006-03-22  Karl Berry  <karl@gnu.org>
69629
69630         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69631         * config/srclistvars.sh (COREUTILS): new var.
69632
69633 2006-03-17  Jim Meyering  <jim@meyering.net>
69634
69635         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69636         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69637
69638 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69641         no longer needs it.  Instead, check that regoff_t is as least
69642         as wide as ptrdiff_t.
69643
69644         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69645         so that our regex.h stays compatible with the installed regex.
69646         This is helpful for installers who configure --without-included-regex.
69647         Problem reported by Emanuele Giaquinta.
69648
69649 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69652         Typedef to long int, not to off_, as POSIX will likely change
69653         in that direction.
69654
69655 2006-03-15  Eric Blake  <ebb9@byu.net>
69656
69657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69658
69659 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69660
69661         * lib/argp-help.c (validate_uparams): Fix typo
69662         * lib/argp-parse.c (argp_default_options): Consistently begin help
69663         messages with a lowercase letter.
69664
69665 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69668         overrun buffers and shouldn't be used (much as gets shouldn't be
69669         used).
69670         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69671
69672 2006-03-08  Simon Josefsson  <jas@extundo.com>
69673
69674         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69675         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69676
69677 2006-03-08  Simon Josefsson  <jas@extundo.com>
69678
69679         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69680         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69681
69682 2006-03-08  Simon Josefsson  <jas@extundo.com>
69683
69684         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69685         signal that configure disabled the device.
69686
69687 2006-03-08  Simon Josefsson  <jas@extundo.com>
69688
69689         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69690         languages.
69691
69692 2006-03-07  Simon Josefsson  <jas@extundo.com>
69693
69694         * modules/getopt (Depends-on): Add unistd.
69695
69696         * modules/unistd: New file.
69697
69698 2006-03-07  Simon Josefsson  <jas@extundo.com>
69699
69700         * modules/gc-random: New file.
69701
69702 2006-03-07  Simon Josefsson  <jas@extundo.com>
69703
69704         * m4/unistd_h.m4: New file.
69705
69706 2006-03-07  Simon Josefsson  <jas@extundo.com>
69707
69708         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69709         test to be side-effect free by storing the result in the cache
69710         variable gl_cv_lib_readline, and moving the assignment of
69711         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69712         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69713
69714 2006-03-07  Simon Josefsson  <jas@extundo.com>
69715
69716         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69717         error on missing devices (the functions will return an error).
69718
69719         * m4/gc.m4: Move random stuff to gc-random.m4
69720
69721 2006-03-07  Simon Josefsson  <jas@extundo.com>
69722
69723         * lib/unistd_.h: New file.
69724
69725 2006-03-07  Simon Josefsson  <jas@extundo.com>
69726
69727         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69728
69729 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69730
69731         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69732         Problem reported by Juan Manuel Guerrero.
69733
69734 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69737         the unistd module.
69738         * lib/getlogin_r.c: Likewise.
69739         * lib/getlogin_r.h: Likewise.
69740         * lib/glob.c: Likewise.
69741         * lib/pagealign_alloc.c: Likewise.
69742         * lib/unistd_.h: Remove; no longer needed.
69743
69744 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69747         Add unistd.
69748         * modules/c-stack (Depends-on): Add unistd.
69749         * modules/getlogin_r: Likewise.
69750         * modules/glob: Likewise.
69751         * modules/pagealign_alloc: Likewise.
69752         * modules/unistd (Files): Remove lib/unistd_.h.
69753         (EXTRA_DIST): Remove.
69754         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69755         need unistd_.h.
69756         (MOSTLYCLEANFILES): Remove unistd.h-t.
69757
69758 2006-03-03  Simon Josefsson  <jas@extundo.com>
69759
69760         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69761
69762 2006-03-03  Simon Josefsson  <jas@extundo.com>
69763
69764         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69765         libidn and bison.
69766
69767 2006-03-03  Simon Josefsson  <jas@extundo.com>
69768
69769         * build-aux/maint.mk: Add indent target.
69770
69771 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69772
69773         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69774         our replacement poll.h in any case, to avoid a differing
69775         declaration from a system header.  Seen on AIX.
69776
69777 2006-03-01  Simon Josefsson  <jas@extundo.com>
69778
69779         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69780         <kasal@ucw.cz>.
69781
69782 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * modules/gettime (Depends-on): Add extensions module.
69785         * modules/nanosleep (Depends-on): Likewise.
69786         * modules/settime (Depends-on): Likewise.
69787
69788 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69791         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69792         pedantically.
69793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69794         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69795
69796         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69797         not "==".  Reported by Ralf Wildenhues.
69798
69799 2006-03-01  Karl Berry  <karl@gnu.org>
69800
69801         * doc/Copyright/request-*: new files, synced from gnuorg.
69802
69803 2006-03-01  Karl Berry  <karl@gnu.org>
69804
69805         * config/srclist.txt (Copyright/*): new entries.
69806
69807 2006-02-28  Simon Josefsson  <jas@extundo.com>
69808
69809         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69810
69811 2006-02-27  Simon Josefsson  <jas@extundo.com>
69812
69813         * lib/base64.h: Indent #define's.  From Jim Meyering
69814         <jim@meyering.net>.
69815
69816 2006-02-27  Jim Meyering  <jim@meyering.net>
69817
69818         Revert the change of 2006-02-24, so these files can continue
69819         to be sync'd from gettext.
69820         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69821         of `config.h'.
69822
69823 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69824
69825         * modules/intprops: New file.
69826         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69827         Add intprops.
69828         * modules/getloadavg (Files): Remove lib/intprops.h.
69829         (Depends-on): Add intprops.
69830         * modules/human: Likewise.
69831         * modules/inttostr: Likewise.
69832         * modules/openat: Likewise.
69833         * modules/sig2str: Likewise.
69834         * modules/userspec: Likewise.
69835         * modules/utimecmp: Likewise.
69836         * modules/xnanosleep: Likewise.
69837         * modules/xstrtol: Likewise.
69838
69839 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69840
69841         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69842         * modules/lock-tests (TESTS): Use $(EXEEXT).
69843         * modules/tls-tests: Likewise.
69844         * modules/argp-tests: Likewise.
69845         (check_PROGRAMS): New var, replacing...
69846         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69847
69848 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69849
69850         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69851         `config.h'.
69852
69853 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69856
69857 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69858
69859         Sync from coreutils.
69860         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69861         gl_CHDIR_SAFER.
69862
69863 2006-02-22  Jim Meyering  <jim@meyering.net>
69864
69865         Sync from coreutils.
69866         * m4/chdir-safer.m4: New file.
69867
69868 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69869
69870         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69871         AT_FDCWD exceeds INT_MAX.
69872         * lib/openat.h (AT_FDCWD): Likewise.
69873
69874 2006-02-17  Eric Blake  <address@hidden>
69875
69876         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69877
69878 2006-02-16  Simon Josefsson  <jas@extundo.com>
69879
69880         * modules/getaddrinfo (Depends-on): Add sys_socket.
69881
69882 2006-02-15  Simon Josefsson  <jas@extundo.com>
69883
69884         * build-aux/maint.mk: Add dsyntax-check rule.
69885
69886 2006-02-15  Eric Blake  <ebb9@byu.net>
69887
69888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69889         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69890         'present but cannot compile' warnings on cygwin.
69891         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69892         use ws2tcpip.h if sys/socket.h works.
69893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69894         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69895
69896 2006-02-14  Simon Josefsson  <jas@extundo.com>
69897
69898         * modules/maintainer-makefile (Files): Rename.
69899
69900         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69901         and (the local) Makefile.cfg to maint-cfg.mk.
69902
69903         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69904         to the latter.
69905
69906         * modules/maintainer-makefile: New module.
69907
69908         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69909         severaly stripped to make it possible to build it up from scratch
69910         with reliable tests.
69911
69912         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69913         fixes to permit overriding the default actions when configure and
69914         makefile are not available.
69915
69916 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69917
69918         Sync from coreutils.
69919         * modules/lstat (Depends-on): Don't depend on xalloc.
69920         (License): Change from GPL to LGPL, since this is now simply a
69921         replacement for a libc function.
69922
69923 2006-02-14  Jim Meyering  <jim@meyering.net>
69924
69925         Sync from coreutils.
69926
69927         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69928         failure on deficient systems, and simplify gnulib lgpl dependencies.
69929         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69930         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69931
69932         * lib/xalloc-die.c: Remove unused definition of N_.
69933
69934 2006-02-14  Jim Meyering  <jim@meyering.net>
69935
69936         Sync from coreutils.
69937         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69938         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69939         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69940         double-quote uses of that variable, to accommodate the rare case in
69941         which getmntent is available in none of the libraries checked.  This
69942         happens at least on FreeBSD 5.0.
69943
69944 2006-02-13  Simon Josefsson  <jas@extundo.com>
69945
69946         * gnulib-tool (Usage): Fix --import, from
69947         karl@freefriends.org (Karl Berry).
69948
69949 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69950
69951         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69952
69953 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69954
69955         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69956         "autoupdate" on 2005-12-12.
69957
69958 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69959
69960         * modules/closeout (Depends-on): Remove atexit.
69961
69962 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69965         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69966
69967 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69968
69969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69970         __EXTENSIONS__ if this causes compilation to fail.  Problem
69971         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69972         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69973
69974 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69975
69976         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69977         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69978         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69979         All uses changed.
69980
69981 2006-01-26  Simon Josefsson  <jas@extundo.com>
69982
69983         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69984         prototype is visible on mingw32.
69985
69986         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69987         for mingw32.
69988
69989         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69990         mingw32).
69991
69992 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69993
69994         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69995         attempt to open for write; this always fails, at least on POSIX
69996         hosts.  This reinstates the 2006-01-09 change, which was
69997         inadvertently removed.
69998
69999 2006-01-26  Bruno Haible  <bruno@clisp.org>
70000
70001         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70002         Reported by Paul Eggert.
70003
70004 2006-01-26  Bruno Haible  <bruno@clisp.org>
70005             Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         * lib/stdbool_.h (_Bool)
70008         [(! (defined __cplusplus || defined __BEOS__)
70009           && !defined __GNUC__
70010           && !(defined __HP_cc || defined __xlc__
70011                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70012                || defined __sgi))]:
70013         #define to signed char in these cases too; this simplifies
70014         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70015         etc., separately) and makes it more conservative.
70016
70017 2006-01-25  Simon Josefsson  <jas@extundo.com>
70018
70019         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70020         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70021         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70022
70023 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70024
70025         * lib/argp-namefrob.h: Bugfix. Remove stray #
70026
70027 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70030         so that we test the test.
70031         Check for yet another HP-UX cc bug involving *bool |= bool.
70032
70033 2006-01-25  Karl Berry  <karl@gnu.org>
70034
70035         * config/srclist.txt (vasnprintf.c): sync lost.
70036
70037 2006-01-25  Jim Meyering  <jim@meyering.net>
70038
70039         Sync from the stable (b5) branch of coreutils:
70040
70041         * lib/fts.c (fts_children): Don't let close() clobber errno from
70042         failed fchdir().
70043
70044         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70045         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70046         a dangling symlink.  That can also happen at least for ELOOP.
70047         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70048         FYI, this bug predates the inclusion of fts.c in coreutils.
70049
70050         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70051         in their own block, so pre-c99 compilers don't object.
70052
70053         Avoid the double-free (first in fts_read, second in fts_close) that
70054         would occur when an `active' directory is made inaccessible (e.g.,
70055         via chmod a-x) during a traversal.
70056         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70057         before returning.  Reproduce this failure by
70058         mkdir -p a/b; cd a; chmod a-x . b
70059         Reported by Stavros Passas.
70060
70061 2006-01-25  Jim Meyering  <jim@meyering.net>
70062
70063         * lib/fileblocks.c: Remove more useless parentheses.
70064         * lib/readutmp.h: Likewise.
70065
70066 2006-01-25  Bruno Haible  <bruno@clisp.org>
70067
70068         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70069         warnings.
70070         Reported by Paul Eggert.
70071
70072 2006-01-25  Bruno Haible  <bruno@clisp.org>
70073
70074         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70075         rid of a trap command. For Solaris sh.
70076         Reported by Mark D. Baushke <mdb@gnu.org>.
70077
70078 2006-01-24  Simon Josefsson  <jas@extundo.com>
70079
70080         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70081         Bruno.
70082
70083 2006-01-24  Karl Berry  <karl@gnu.org>
70084
70085         * config/srclist.txt (argp-namefrob.h): sync lost.
70086
70087 2006-01-24  Jim Meyering  <jim@meyering.net>
70088
70089         * modules/openat (Files): Add lib/intprops.h.
70090         From Mark D. Baushke.
70091
70092 2006-01-24  Jim Meyering  <jim@meyering.net>
70093
70094         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70095         Reported by Mark D. Baushke.
70096
70097 2006-01-24  Jim Meyering  <jim@meyering.net>
70098
70099         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70100
70101 2006-01-24  Bruno Haible  <bruno@clisp.org>
70102
70103         * modules/strnlen (Maintainer): Change from glibc to all.
70104
70105 2006-01-24  Bruno Haible  <bruno@clisp.org>
70106
70107         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70108         Patch by Paul Eggert.
70109
70110 2006-01-24  Bruno Haible  <bruno@clisp.org>
70111
70112         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70113         already has it.
70114         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70115         2005-11-26.
70116
70117         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70118         'signed char' to avoid problems with the built-in _Bool type.
70119         Reported by Paul Eggert on 2005-11-26.
70120
70121 2006-01-24  Bruno Haible  <bruno@clisp.org>
70122
70123         * gnulib-tool (func_import): Avoid constructing complicated sed
70124         expressions inside backquote.
70125         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70126
70127 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70128
70129         These changes imported from libc.
70130         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70131         test and two separate function calls.
70132         * lib/strndup.c (__strndup): Add libc_hidden_def.
70133
70134 2006-01-23  Simon Josefsson  <jas@extundo.com>
70135
70136         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70137         Remove the test_*_SOURCES variable: automake infers it by default.
70138         * modules/tls-tests: Likewise.
70139
70140 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         Work around porting bugs reported by Dieter in
70143         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70144         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70145         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70146         Include "getopt.h" first, to check interface.
70147         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70148         !HAVE_DECL_GETENV.
70149         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70150         (__strndup): Revert to K&R-style function dfns, the glibc style.
70151         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70152         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70153         Include strnlen.h first, to get prototype properly.
70154         (strnlen): Renamed from __strnlen.
70155         Remove weak alias.
70156
70157 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70158
70159         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70160
70161 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70162
70163         * config/srclist.txt: Adjust to reflect glibc reorganization.
70164         This affects only comments.
70165
70166 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70167
70168          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70169          Reported by Bruce Korb <bkorb@gnu.org>.
70170
70171 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70174         to pacify gcc -Wswitch-default.
70175
70176 2006-01-22  Bruno Haible  <bruno@clisp.org>
70177
70178         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70179         temporary buffer for sprintf, take into account the precision also
70180         for 'd', 'i', 'u', 'o', 'x', 'X'.
70181
70182 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70183
70184         * modules/argp-tests: New module
70185         * tests/test-argp.c: New file
70186         * tests/test-argp-2.sh: New file
70187
70188 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70189
70190         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70191         (__argp_base_name): Removed
70192         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70193         typo.
70194         (__argp_base_name): Provide macro definition or extern declaration
70195         depending on the configuration
70196
70197 2006-01-20  Simon Josefsson  <jas@extundo.com>
70198
70199         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70200
70201 2006-01-20  Simon Josefsson  <jas@extundo.com>
70202
70203         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70204
70205 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70206
70207         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70208         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70209         Suggested by Bruno Haible.
70210
70211 2006-01-20  Karl Berry  <karl@gnu.org>
70212
70213         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70214         until changes propagate, I guess.
70215
70216 2006-01-19  Simon Josefsson  <jas@extundo.com>
70217
70218         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70219
70220 2006-01-19  Simon Josefsson  <jas@extundo.com>
70221
70222         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70223
70224 2006-01-19  Simon Josefsson  <jas@extundo.com>
70225
70226         * gnulib-tool: Set check_PROGRAMS.
70227
70228         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70229         modules/des-tests, modules/gc-arcfour-tests,
70230         modules/gc-arctwo-tests, modules/gc-des-tests,
70231         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70232         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70233         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70234         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70235         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70236         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70237         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70238         test_*_SOURCES.
70239
70240 2006-01-18  Simon Josefsson  <jas@extundo.com>
70241
70242         * modules/socklen (Depends-on): Depend on sys_socket.
70243
70244 2006-01-18  Simon Josefsson  <jas@extundo.com>
70245
70246         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70247         modules/des-tests, modules/gc-arcfour-tests,
70248         modules/gc-arctwo-tests, modules/gc-des-tests,
70249         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70250         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70251         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70252         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70253         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70254         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70255         $(EXEEXT) to automake TESTS variable, for mingw32.
70256
70257 2006-01-17  Simon Josefsson  <jas@extundo.com>
70258
70259         * modules/socklen (Include): Need sys/socket.h.
70260
70261 2006-01-17  Bruno Haible  <bruno@clisp.org>
70262
70263         * modules/ssize_t (Include): Add <sys/types.h>.
70264
70265 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70268         it's not portable and it doesn't work with cross-compiles.
70269         Problem reported by Bruno Haible.  Fix missing-$ typo in
70270         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70271         -zignore from being used with Sun's C compiler.
70272
70273 2006-01-12  Simon Josefsson  <jas@extundo.com>
70274
70275         * lib/base64.c: Fix warning, reported by Bruno Haible
70276         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70277
70278 2006-01-12  Bruno Haible  <bruno@clisp.org>
70279
70280         * modules/ldd: New file.
70281         * build-aux/ldd.sh.in: New file.
70282         * MODULES.html.sh (Support for building libraries and executables): Add
70283         ldd.
70284
70285 2006-01-12  Bruno Haible  <bruno@clisp.org>
70286
70287         * m4/ldd.m4: New file.
70288
70289 2006-01-12  Bruno Haible  <bruno@clisp.org>
70290
70291         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70292         endless loop while replacing $auxdir with build-aux.
70293
70294 2006-01-11  Simon Josefsson  <jas@extundo.com>
70295
70296         * lib/stdint_.h (SIZE_MAX): Add missing (.
70297
70298 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         Sync from coreutils.
70301         * lib/md5.c: Fix commentary typos.
70302         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70303         * lib/md5.h (__attribute__): Remove; unused.
70304         * lib/sha1.c: Fix commentary to match md5 better.
70305         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70306         so that we don't need to worry about alignment.  All uses changed.
70307         This merges the 2005-10-28 md5 change into sha1.
70308
70309 2006-01-11  Jim Meyering  <jim@meyering.net>
70310
70311         Sync from coreutils.
70312         * lib/md5.c (OP): Fix spacing.
70313
70314 2006-01-11  Bruno Haible  <bruno@clisp.org>
70315
70316         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70317         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70318         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70319
70320 2006-01-11  Bruno Haible  <bruno@clisp.org>
70321
70322         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70323         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70324         the "early" section as well.
70325
70326 2006-01-11  Bruno Haible  <bruno@clisp.org>
70327
70328         Avoid "ar: no archive members specified" error on MacOS X.
70329         * gnulib-tool (func_modules_add_dummy): New function.
70330         (func_import, func_create_testdir): Invoke it.
70331
70332 2006-01-11  Bruno Haible  <bruno@clisp.org>
70333
70334         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70335         with $auxdir in AC_CONFIG_FILES statements.
70336
70337 2006-01-11  Bruno Haible  <bruno@clisp.org>
70338
70339         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70340         Initialize also noinst_HEADERS to empty.
70341
70342 2006-01-11  Bruno Haible  <bruno@clisp.org>
70343
70344         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70345         variables.
70346         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70347         autoreconf.
70348
70349 2006-01-11  Bruno Haible  <bruno@clisp.org>
70350
70351         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70352         overridable by the user.
70353         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70354
70355 2006-01-10  Simon Josefsson  <jas@extundo.com>
70356
70357         * modules/sys_socket: New file.
70358
70359 2006-01-10  Simon Josefsson  <jas@extundo.com>
70360
70361         * m4/sys_socket_h.m4: New file.
70362
70363 2006-01-10  Simon Josefsson  <jas@extundo.com>
70364
70365         * lib/socket_.h: New file.
70366
70367 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70368
70369         * modules/readutmp (Maintainer): Add myself.
70370
70371 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70374         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70375         People who are still concerned with buggy memcmp implementations
70376         can invoke gl_FUNC_MEMCMP themselves.
70377
70378 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70379
70380         * lib/regex_internal.h (BITSET_WORD_BITS):
70381         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70382         preprocessor mishandles large unsigned values as if they were signed.
70383         Problem reported by Claudio Fontana in
70384         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70385
70386 2006-01-10  Jim Meyering  <jim@meyering.net>
70387
70388         Avoid the double-free (first in fts_read, second in fts_close) that
70389         would occur when an `active' directory is made inaccessible (e.g.,
70390         via chmod a-x) during a traversal.
70391         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70392         before returning.  Reproduce this failure by
70393         mkdir -p a/b; cd a; chmod a-x . b
70394         Reported by Stavros Passas.
70395
70396         Sync from coreutils.
70397         * lib/sha1.c: Tweak grammar in a comment.
70398
70399 2006-01-10  Jim Meyering  <jim@meyering.net>
70400
70401         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70402         Patch by Joerg Sonnenberger.
70403
70404 2006-01-10  Bruno Haible  <bruno@clisp.org>
70405
70406         * modules/readutmp: Depend on module free.
70407         * modules/strtok_r: Depend on module restrict.
70408
70409 2006-01-10  Bruno Haible  <bruno@clisp.org>
70410
70411         * modules/gettext (configure.ac): Add an invocation of
70412         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70413
70414 2006-01-10  Bruno Haible  <bruno@clisp.org>
70415
70416         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70417         Reported by Werner Lemberg <wl@gnu.org>.
70418
70419 2006-01-10  Bruno Haible  <bruno@clisp.org>
70420
70421         * lib/localcharset.c: Update from GNU gettext.
70422
70423 2006-01-10  Bruno Haible  <bruno@clisp.org>
70424
70425         * lib/argp.h (__const): Remove macro. Use const instead.
70426         * lib/argp-fmtstream.h (__const): Likewise.
70427         * lib/glob_.h (__const): Remove macro.
70428         * lib/glob-libc.h: Use const instead of __const.
70429
70430 2006-01-10  Bruno Haible  <bruno@clisp.org>
70431
70432         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70433         variable.
70434         Needed to avoid an automake error regarding the 'gettext' module.
70435
70436 2006-01-09  Simon Josefsson  <jas@extundo.com>
70437
70438         * modules/inet_ntop (Depends-on): Add restrict.
70439
70440 2006-01-09  Simon Josefsson  <jas@extundo.com>
70441
70442         * modules/gc-rijndael-tests (License): Put under LGPL.
70443
70444         * modules/gc-des-tests (License): Likewise.
70445
70446         * modules/gc-arcfour-tests (License): Likewise.
70447
70448         * modules/gc-arctwo-tests (License): Likewise.
70449
70450         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70451
70452         * modules/gc-hmac-sha1-tests (Files): Likewise.
70453
70454         * modules/gc-hmac-md5-tests (License): Likewise.
70455
70456         * modules/gc-sha1-tests (License): Likewise.
70457
70458         * modules/gc-md5-tests (License): Likewise.
70459
70460         * modules/gc-md4-tests (License): Likewise.
70461
70462         * modules/gc-md2-tests (License): Likewise.
70463
70464         * modules/gc-tests (License): Likewise.
70465
70466         * modules/des-tests (License): Likewise.
70467
70468         * modules/md4-tests (License): Likewise.
70469
70470         * modules/md2-tests (License): Likewise.
70471
70472 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70473
70474         Sync from coreutils:
70475
70476         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70477         * modules/lib-ignore: New file.
70478         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70479         chdir-safer.m4, lchmod.m4.
70480         * modules/openat: Add mkdirat.c, openat-priv.h.
70481
70482 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         Sync from coreutils.
70485         * m4/lib-ignore.m4: New file.
70486         * m4/lchmod.m4: New file.
70487
70488 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         Sync from coreutils.
70491         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70492         for write access: POSIX says that must fail.
70493         * lib/fts.c (diropen): Likewise.
70494         * lib/save-cwd.c (save_cwd): Likewise.
70495         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70496         well, for minor improvements on hosts that lack O_DIRECTORY.
70497         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70498         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70499         Fall back on chown if open failed with EACCES.
70500
70501         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70502         Report an error at compile-time if only a 1-second nominal clock
70503         resolution is found.
70504
70505         * lib/lchmod.h: New file.
70506         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70507         (make_dir_parents): Use lchown rather than chown, and
70508         lchmod rather than chmod.
70509
70510         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70511         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70512         "proc" reported by n0dalus.
70513
70514         * lib/mountlist.c: Include <limits.h>.
70515         (dev_from_mount_options)
70516         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70517         New function.  It no longer assumes "dev=" has the System V meaning
70518         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70519         (read_file_system_list)
70520         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70521         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70522         dev= in that case.
70523
70524         * lib/posixtm.h (PDS_PRE_2000): New macro.
70525         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70526         allow_century.  All usages changed.  Reject dates outside the range
70527         1969-1999 if PDS_PRE_2000 is used.
70528
70529 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70530
70531         Sync from coreutils.
70532         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70533         (Time of day items): Mention the possibility of leap seconds.
70534         Problem reported by Dr. David Alan Gilbert.
70535
70536 2006-01-09  Jim Meyering  <jim@meyering.net>
70537
70538         Sync from coreutils.
70539
70540         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70541
70542         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70543
70544         * lib/modechange.c (mode_compile): Reject an invalid mode string
70545         that starts with an octal digit.  From Andreas Gruenbacher.
70546
70547         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70548         and dup to open_safer and dup_safer, respectively.
70549         (openat_permissive): Fix typo in comment.
70550
70551         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70552         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70553         (_): Remove; no longer needed.
70554         (openat): Renamed from rpl_openat; no need for rpl_openat
70555         since openat.h renames openat for us.
70556         Replace most of the body with a call to openat_permissive,
70557         to avoid duplicate code.
70558         Port to (probably hypothetical) environments were mode_t is
70559         wider than int.
70560         (openat_permissive): Require mode arg, so that we can check
70561         types better.  Put it just after flags.  Change cwd failure
70562         indicator from pointer-to-bool to pointer-to-errno-value.
70563         All callers changed.
70564         Invoke openat_save_fail and/or openat_restore_fail if
70565         cwd_errno is null, so that openat can call us.
70566         (openat_permissive, fdopendir, fstatat, unlinkat):
70567         Simplify errno handling to avoid some duplicate code,
70568         as it's OK to set errno on success.
70569         * lib/openat.h: Revamp code so that function macros depend on
70570         __OPENAT_PREFIX only, not also on AT_FDCWD.
70571         (openat_ro): Remove.  Caller changed to use openat_permissive.
70572         (openat_permissive): Now a macro, if not a function.
70573         (openat_restore_fail, openat_save_fail): Now always functions,
70574         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70575
70576         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70577         and openat.c.
70578         * lib/mkdirat.c: Include openat-priv.h.
70579         Remove definitions of macros defined therein.
70580         * lib/openat.c: Likewise.
70581
70582         * lib/mkdirat.c (mkdirat): New file and function.
70583         * lib/openat.h (mkdirat): Declare.
70584
70585         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70586
70587         * lib/openat.h (openat_permissive): Declare.
70588         (openat_ro): Define.
70589
70590         * lib/openat.c (EXPECTED_ERRNO): New macro.
70591         (openat_permissive): New function -- used in remove.c rewrite.
70592         (all functions): Set errno just before returning, only if there
70593         was an actual failure.
70594         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70595
70596         Emulate openat-family functions using Linux's procfs, if possible.
70597         Idea and some code based on Ulrich Drepper's glibc changes.
70598
70599         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70600         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70601         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70602         before falling back on save_cwd and restore_cwd.
70603         (fdopendir, fstatat, unlinkat): Likewise.
70604
70605         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70606         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70607
70608         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70609         as second argument to va_arg.  Otherwise, some versions of gcc
70610         warn that `if this code is reached, the program will abort'.
70611
70612 2006-01-09  Jim Meyering  <jim@meyering.net>
70613
70614         Sync from coreutils.
70615         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70616         Require openat-priv.h.
70617
70618 2006-01-09  Bruno Haible  <bruno@clisp.org>
70619
70620         * modules/strnlen (Include): Use strnlen.h.
70621
70622 2006-01-09  Bruno Haible  <bruno@clisp.org>
70623
70624         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70625
70626 2006-01-09  Bruno Haible  <bruno@clisp.org>
70627
70628         * lib/sysexit_.h (EX_OK): New macro.
70629         Suggested by Martin Lambers <marlam@marlam.de>.
70630
70631 2006-01-09  Bruno Haible  <bruno@clisp.org>
70632
70633         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70634         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70635
70636 2006-01-09  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70639         numbers.
70640
70641 2006-01-09  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70644         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70645         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70646         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70647
70648 2006-01-09  Bruno Haible  <bruno@clisp.org>
70649
70650         * build-aux/javacomp.sh.in: New file, moved from lib/.
70651         * modules/javacomp-script (Files): Update.
70652         (configure.ac): Add AC_CONFIG_FILES invocation.
70653         (EXTRA_DIST): Remove variable.
70654
70655         * build-aux/javaexec.sh.in: New file, moved from lib/.
70656         * modules/javaexec (Files): Update.
70657         (configure.ac): Add AC_CONFIG_FILES invocation.
70658         (EXTRA_DIST): Remove javaexec.sh.in.
70659
70660         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70661         * modules/csharpcomp-script (Files): Update.
70662         (configure.ac): Add AC_CONFIG_FILES invocation.
70663         (EXTRA_DIST): Remove variable.
70664
70665         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70666         * modules/csharpexec (Files): Update.
70667         (configure.ac): Add AC_CONFIG_FILES invocation.
70668         (EXTRA_DIST): Remove csharpexec.sh.in.
70669
70670 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70671
70672         Sync from coreutils.
70673
70674         Add POSIX ACL support
70675         * lib/acl.h (copy_acl, set_acl): Add declarations.
70676         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70677         systems other than Linux.
70678         (chmod_or_fchmod): New function: use fchmod when possible,
70679         and chmod otherwise.
70680         (file_has_acl): Add a POSIX ACL implementation, with a
70681         Linux-specific subcase.
70682         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70683         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70684         acls are unsupported.
70685         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70686         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70687         are unsupported.
70688
70689 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70690
70691         Sync from coreutils.
70692         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70693
70694 2006-01-07  Bruno Haible  <bruno@clisp.org>
70695
70696         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70697         gl_EARLY.
70698
70699 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70702         Problem reported for Mingw by Mark Junker.
70703
70704 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * README: Gnulib normally doesn't generate a tarball.
70707
70708 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70711         long int, not int, for nanosecond counts, so that people who are
70712         used to POSIX struct timespec won't be surprised.  Reported by Jim
70713         Meyering.
70714
70715 2005-12-28  Bruno Haible  <bruno@clisp.org>
70716
70717         * build-aux/config.rpath: Update from GNU gettext.
70718
70719 2005-12-16  Jim Meyering  <jim@meyering.net>
70720
70721         * modules/fprintftime: New module.
70722         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70723
70724 2005-12-16  Jim Meyering  <jim@meyering.net>
70725
70726         * m4/fprintftime.m4: New file.
70727
70728 2005-12-16  Jim Meyering  <jim@meyering.net>
70729
70730         * lib/fprintftime.c, lib/fprintftime.h: New files.
70731
70732 2005-12-15  Simon Josefsson  <jas@extundo.com>
70733
70734         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70735         new m4/socklen.m4.
70736
70737 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70738
70739         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70740         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70741
70742 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70743
70744         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70745         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70746         struct uparams is valid. Fall back to the default values if it is
70747         not.
70748
70749 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70750
70751         * modules/argp (Files): Add argp-pin.c
70752         (Depends-on): dirname
70753         (lib_SOURCES): Add argp-pin.c
70754
70755 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70756
70757         * m4/argp.m4:  Check if program_invocation_name and
70758         program_invocation_short_name are declared and define appropriate
70759         macros if they are not.
70760
70761 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70762
70763         * lib/argp-help.c (__argp_base_name): New function
70764         (__argp_short_program_name): Rewrite using __argp_base_name
70765         * lib/argp-namefrob.h: Define program_invocation_name and
70766         program_invocation_short_name if requested
70767         (__argp_base_name): Add prototype
70768         * lib/argp-parse.c (argp_def): Use gettext wrappers
70769         (argp_default_parser): Use __argp_base_name
70770         * lib/argp-pin.c: New file. Defines program_invocation_name and
70771         program_invocation_short_name on systems that lack them.
70772
70773 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70776         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70777         porting problem reported by Georg Schwarz in
70778         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70779
70780 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70783         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70784         porting problem reported by Georg Schwarz in
70785         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70786
70787 2005-12-05  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70790         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70791         Reported by Mark Junker <mjscod@gmx.de>.
70792
70793 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70796         Use implementation from Albert Chin, with some
70797         comments/corrections by Stepan Kasal and myself.
70798
70799 2005-12-02  Bruno Haible  <bruno@clisp.org>
70800
70801         * gnulib-tool (func_import): Accept GPLed build tool modules when
70802         --lgpl is given.
70803         * modules/csharpcomp-script: New file.
70804         * modules/csharpcomp: Depend on it.
70805         * modules/javacomp-script: New file.
70806         * modules/javacomp: Depend on it.
70807         Suggested by Simon Josefsson.
70808
70809 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70812         statement, to work around an HP-UX 10.20 compiler bug reported by
70813         Peter O'Gorman.
70814
70815 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * modules/savedir (Depends-on): Add openat.
70818
70819 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70822         (uintmax_t) [defined uintmax_t]: Do not declare.
70823         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70824         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70825         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70826         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70827         sake of portability to weird hosts that C allows (though we don't
70828         know of any practical examples).
70829
70830         * lib/savedir.h (fdsavedir): New decl.
70831         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70832         contains most of the former guts of savedir.
70833         (savedir): Use savedirstream.
70834         Include "openat.h".
70835
70836 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * modules/obstack (Files): Add m4/ulonglong.m4.
70839         Problem reported by Davide Angelocola.
70840
70841 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70842
70843         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70844         coreutils no longer futzes with rounding modes.
70845
70846 2005-11-14  Jim Meyering  <jim@meyering.net>
70847
70848         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70849         replacement of mkstemp.
70850
70851 2005-11-10  Simon Josefsson  <jas@extundo.com>
70852
70853         * lib/readline.c: Remove EOL.
70854
70855 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * modules/gethrxtime (Depends-on): Add gettime.
70858
70859 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70862         or gettimeofday; no longer needed.
70863
70864 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70865
70866         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70867         time business.
70868         (gethrxtime) [! (HAVE_NANOUPTIME
70869         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70870         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70871         our own approximation.
70872
70873 2005-11-08  Eric Blake  <ebb9@byu.net>
70874
70875         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70876
70877 2005-11-08  Eric Blake  <ebb9@byu.net>
70878
70879         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70880
70881 2005-11-04  Bruno Haible  <bruno@clisp.org>
70882
70883         * gnulib-tool: Implement --update mode.
70884
70885 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         Fix porting problem reported by Theodoros V. Kalamatianos.
70888         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70889         Don't assume that futimes failing means we must fail.
70890
70891 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70894         variables to suggest the intended function of the PATH_MAX check.
70895
70896 2005-10-30  Kean Johnston  <jkj@sco.com>
70897
70898         Trivial changes to support SCO systems.
70899         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70900         as PATH_MAX.
70901         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70902         where __ptr is null when no I/O is pending.
70903
70904 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70907         leave errno alone.  Problem reported by Dmitry V. Levin.
70908
70909 2005-10-28  Simon Josefsson  <jas@extundo.com>
70910
70911         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70912         Test more.
70913
70914         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70915
70916         * modules/md2, modules/md2-tests: New files.
70917
70918 2005-10-28  Simon Josefsson  <jas@extundo.com>
70919
70920         * m4/inet_ntop.m4: More tests.
70921
70922         * m4/gc-md2.m4, md2.m4: New file.
70923
70924 2005-10-28  Simon Josefsson  <jas@extundo.com>
70925
70926         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70927         "restrict" keywords, as per POSIX.  Protect the function
70928         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70929         Don't use K&R prototypes.  Check the sprintf return values.
70930         Re-define EAFNOSUPPORT if not present.  Indent.
70931
70932         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70933         suggested by Bruno Haible <bruno@clisp.org>.
70934
70935         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70936
70937         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70938
70939         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70940         libgcrypt).
70941
70942         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70943
70944         * lib/md2.h, lib/md2.c: New files.
70945
70946 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70949         errno alone.  Problem reported by Frederic Jolliton.
70950
70951 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70952
70953         * modules/verify (License): Change from GPL to LGPL.  This is a
70954         tiny module and there are apparently near-equivalents that are
70955         under the BSD license.
70956
70957 2005-10-24  Simon Josefsson  <jas@extundo.com>
70958
70959         * modules/sha1: Relicense to LGPL.
70960
70961 2005-10-24  Simon Josefsson  <jas@extundo.com>
70962
70963         * lib/md4.h: Shrink buffer size, now that we changed the type.
70964
70965 2005-10-23  Simon Josefsson  <jas@extundo.com>
70966
70967         * gnulib-tool (func_import): Fix --tests-base.
70968
70969 2005-10-22  Simon Josefsson  <jas@extundo.com>
70970
70971         * modules/arcfour (Depends-on): Need stdint.
70972
70973 2005-10-22  Simon Josefsson  <jas@extundo.com>
70974
70975         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70976         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70977
70978 2005-10-22  Simon Josefsson  <jas@extundo.com>
70979
70980         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70981         suggested by Bruno Haible <bruno@clisp.org>.
70982
70983 2005-10-22  Simon Josefsson  <jas@extundo.com>
70984
70985         * lib/crc.h: Include stddef.h, for size_t.
70986
70987 2005-10-22  Simon Josefsson  <jas@extundo.com>
70988
70989         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70990         arcfour_context struct (simplify test vector testing in GNU
70991         Shishi).
70992
70993 2005-10-21  Simon Josefsson  <jas@extundo.com>
70994
70995         * modules/des, modules/des-tests: New files.
70996
70997         * modules/gc-des, modules/gc-des-tests: New files.
70998
70999         * tests/test-des.c, tests/test-gc-des.c: New file.
71000
71001 2005-10-21  Simon Josefsson  <jas@extundo.com>
71002
71003         * modules/arctwo, modules/arctwo-tests: New files.
71004
71005         * tests/test-arctwo.c: New file.
71006
71007         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71008
71009         * tests/test-gc-arctwo.c: New file.
71010
71011 2005-10-21  Simon Josefsson  <jas@extundo.com>
71012
71013         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71014         Bruno Haible <bruno@clisp.org>.
71015
71016         * m4/gc-des.m4: New file.
71017
71018 2005-10-21  Simon Josefsson  <jas@extundo.com>
71019
71020         * m4/arctwo.m4: New file.
71021
71022         * m4/gc-arctwo.m4: New file.
71023
71024 2005-10-21  Simon Josefsson  <jas@extundo.com>
71025
71026         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71027         block.
71028
71029 2005-10-21  Simon Josefsson  <jas@extundo.com>
71030
71031         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71032         <bruno@clisp.org>.
71033
71034         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71035
71036         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71037         Bruno Haible <bruno@clisp.org>.
71038
71039         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71040         <bruno@clisp.org>.
71041
71042 2005-10-21  Simon Josefsson  <jas@extundo.com>
71043
71044         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71045
71046 2005-10-21  Simon Josefsson  <jas@extundo.com>
71047
71048         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71049
71050 2005-10-21  Simon Josefsson  <jas@extundo.com>
71051
71052         * lib/des.h, lib/des.c: New files.
71053
71054         * lib/gc-gnulib.c: Support DES.c
71055
71056 2005-10-21  Simon Josefsson  <jas@extundo.com>
71057
71058         * lib/arctwo.h, lib/arctwo.c: New files.
71059
71060         * lib/gc-gnulib.c: Support ARCTWO.
71061
71062 2005-10-21  Simon Josefsson  <jas@extundo.com>
71063
71064         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71065         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71066
71067 2005-10-21  Simon Josefsson  <jas@extundo.com>
71068
71069         * gnulib-tool (func_import, func_create_testdir): Define automake
71070         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71071         Makefile.am snippet),
71072         suggested by Bruno Haible <bruno@clisp.org>.
71073
71074         * modules/gc (Makefile.am): Use it.
71075
71076 2005-10-21  Bruno Haible  <bruno@clisp.org>
71077
71078         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71079         patch.
71080
71081 2005-10-19  Simon Josefsson  <jas@extundo.com>
71082
71083         * tests/test-gc-rijndael.c: New file.
71084
71085         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71086
71087 2005-10-19  Simon Josefsson  <jas@extundo.com>
71088
71089         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71090         interface too.
71091
71092 2005-10-19  Simon Josefsson  <jas@extundo.com>
71093
71094         * tests/test-gc-arcfour.c: New file.
71095
71096         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71097
71098 2005-10-19  Simon Josefsson  <jas@extundo.com>
71099
71100         * modules/gc-md4, modules/gc-md4-tests: New file.
71101
71102         * tests/test-gc-md4.c: New file.
71103
71104 2005-10-19  Simon Josefsson  <jas@extundo.com>
71105
71106         * m4/gc-md4.m4: New file.
71107
71108 2005-10-19  Simon Josefsson  <jas@extundo.com>
71109
71110         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71111         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71112         <kasal@ucw.cz>.
71113
71114 2005-10-19  Simon Josefsson  <jas@extundo.com>
71115
71116         * m4/gc-arcfour.m4: New file.
71117
71118         * m4/gc-rijndael.m4: New file.
71119
71120 2005-10-19  Simon Josefsson  <jas@extundo.com>
71121
71122         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71123
71124 2005-10-19  Simon Josefsson  <jas@extundo.com>
71125
71126         * lib/gc-gnulib.c: Support ARCFOUR.
71127
71128 2005-10-19  Simon Josefsson  <jas@extundo.com>
71129
71130         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71131         support.
71132
71133         * lib/gc.h: Add ECB enum type.
71134
71135         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71136
71137 2005-10-18  Simon Josefsson  <jas@extundo.com>
71138
71139         * tests/test-md5.c: New file.
71140
71141         * modules/md5-tests: New file.
71142
71143 2005-10-18  Simon Josefsson  <jas@extundo.com>
71144
71145         * tests/test-md4.c: New file.
71146
71147         * modules/md4, modules/md4-tests: New files.
71148
71149 2005-10-18  Simon Josefsson  <jas@extundo.com>
71150
71151         * m4/md4.m4: New file.
71152
71153 2005-10-18  Simon Josefsson  <jas@extundo.com>
71154
71155         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71156
71157 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71158
71159         * gnulib-tool (func_create_testdir): Omit the second check whether
71160         BUILT_SOURCES in nonempty.
71161
71162 2005-10-17  Simon Josefsson  <jas@extundo.com>
71163
71164         * tests/test-rijndael.c: New file.
71165
71166 2005-10-17  Simon Josefsson  <jas@extundo.com>
71167
71168         * modules/sha1: Depend on stdint instead of md5.
71169
71170         * modules/md5: Depend on stdint, remove uint32_t.
71171
71172 2005-10-17  Simon Josefsson  <jas@extundo.com>
71173
71174         * modules/gc-sha1-tests: New file.
71175
71176         * tests/test-gc-sha1.c: New file.
71177
71178 2005-10-17  Simon Josefsson  <jas@extundo.com>
71179
71180         * m4/md5.m4: Remove call to uint32_t.m4.
71181
71182 2005-10-17  Simon Josefsson  <jas@extundo.com>
71183
71184         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71185
71186         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71187         md5.h.
71188
71189         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71190
71191         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71192
71193 2005-10-17  Simon Josefsson  <jas@extundo.com>
71194
71195         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71196
71197 2005-10-17  Simon Josefsson  <jas@extundo.com>
71198
71199         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71200
71201 2005-10-17  Simon Josefsson  <jas@extundo.com>
71202
71203         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71204
71205         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71206
71207 2005-10-17  Bruno Haible  <bruno@clisp.org>
71208
71209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71210         that it can also be used in a test.
71211
71212 2005-10-16  Bruno Haible  <bruno@clisp.org>
71213
71214         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71215         TESTS_ENVIRONMENT, so that individual tests can augment it.
71216
71217         * gnulib-tool (func_create_testdir): Use an intermediate target for
71218         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71219         macros, like $(ALLOCA_H), which cannot be passed through the command
71220         line.
71221
71222 2005-10-15  Simon Josefsson  <jas@extundo.com>
71223
71224         * modules/rijndael-tests: New file.
71225
71226         * modules/rijndael: New file.
71227
71228 2005-10-15  Simon Josefsson  <jas@extundo.com>
71229
71230         * m4/rijndael.m4: New file.
71231
71232 2005-10-15  Simon Josefsson  <jas@extundo.com>
71233
71234         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71235
71236         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71237
71238 2005-10-14  Simon Josefsson  <jas@extundo.com>
71239
71240         * tests/test-arcfour.c: New file.
71241
71242         * modules/arcfour, modules/arcfour-tests: New files.
71243
71244 2005-10-14  Simon Josefsson  <jas@extundo.com>
71245
71246         * m4/arcfour.m4: New file.
71247
71248 2005-10-14  Simon Josefsson  <jas@extundo.com>
71249
71250         * lib/arcfour.h, lib/arcfour.c: New files.
71251
71252 2005-10-14  Roland McGrath  <roland@redhat.com>
71253
71254         Import from libc.  [BZ #1331]
71255         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71256         macro argument.
71257         Reported by Matej Vela <vela@debian.org>.
71258
71259 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71260
71261         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71262         include <wchar.h>; no longer needed.
71263
71264 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71267
71268 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71269         and  Ulrich Drepper  <drepper@redhat.com>
71270
71271         Import from libc.
71272         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71273         instead of inline stream orientation test and two separate
71274         function calls.  Pay no attention to USE_IN_LIBIO.
71275
71276 2005-10-13  Simon Josefsson  <jas@extundo.com>
71277
71278         * modules/gc-hmac-md5-tests: New file.
71279
71280         * tests/test-gc-hmac-sha1.c: New file.
71281
71282         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71283
71284         * modules/gc-hmac-md5-tests: New file.
71285
71286         * tests/test-gc-md5.c: New file.
71287
71288         * modules/gc-md5-tests: New file.
71289
71290 2005-10-13  Simon Josefsson  <jas@extundo.com>
71291
71292         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71293         Move memory allocation outside of loop.
71294
71295 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71298         intermediate directory is in a read-only file system.  Problem
71299         reported by Eric Blake.
71300
71301 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71302
71303         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71304
71305 2005-10-12  Simon Josefsson  <jas@extundo.com>
71306
71307         * tests/test-hmac-sha1.c: New file.
71308
71309         * modules/hmac-sha1-tests: New file.
71310
71311         * modules/hmac-sha1: New file.
71312
71313 2005-10-12  Simon Josefsson  <jas@extundo.com>
71314
71315         * modules/gc-sha1: New file.
71316
71317 2005-10-12  Simon Josefsson  <jas@extundo.com>
71318
71319         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71320
71321         * tests/test-gc-pbkdf2-sha1.c: New file.
71322
71323 2005-10-12  Simon Josefsson  <jas@extundo.com>
71324
71325         * modules/gc-md5, modules/gc-hmac-md5: New files.
71326
71327         * modules/gc (Files): Remove md5, memxor and hmac files.
71328
71329 2005-10-12  Simon Josefsson  <jas@extundo.com>
71330
71331         * m4/gc-pbkdf2-sha1.m4: New file.
71332
71333         * m4/gc-hmac-sha1.m4: New file.
71334
71335         * m4/gc-sha1: New file.
71336
71337         * m4/hmac-sha1.m4: New file.
71338
71339 2005-10-12  Simon Josefsson  <jas@extundo.com>
71340
71341         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71342
71343         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71344
71345 2005-10-12  Simon Josefsson  <jas@extundo.com>
71346
71347         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71348         suggested by Bruno Haible <bruno@clisp.org>.
71349
71350 2005-10-12  Simon Josefsson  <jas@extundo.com>
71351
71352         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71353
71354 2005-10-12  Simon Josefsson  <jas@extundo.com>
71355
71356         * lib/gc-pbkdf2-sha1.c: New file.
71357
71358         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71359
71360 2005-10-12  Simon Josefsson  <jas@extundo.com>
71361
71362         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71363
71364         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71365
71366 2005-10-12  Simon Josefsson  <jas@extundo.com>
71367
71368         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71369         GC_USE_HMAC_MD5, respectively.
71370
71371         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71372         (gc_md5): Fix typo.
71373
71374         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71375
71376         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71377
71378         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71379
71380 2005-10-12  Bruno Haible  <bruno@clisp.org>
71381
71382         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71383         Reported by Stepan Kasal <kasal@ucw.cz>.
71384
71385 2005-10-11  Simon Josefsson  <jas@extundo.com>
71386
71387         * tests/test-crc.c: New file.
71388
71389         * modules/crc, modules/crc-tests: New files.
71390
71391 2005-10-11  Simon Josefsson  <jas@extundo.com>
71392
71393         * m4/crc.m4: New file.
71394
71395 2005-10-11  Simon Josefsson  <jas@extundo.com>
71396
71397         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71398
71399         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71400
71401         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71402
71403 2005-10-11  Simon Josefsson  <jas@extundo.com>
71404
71405         * lib/crc.h, lib/crc.c: New files.
71406
71407         * lib/gc.h (gc_hash_buffer): Add doc.
71408
71409 2005-10-11  Bruno Haible  <bruno@clisp.org>
71410
71411         * modules/c-strcasestr: New file.
71412         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71413
71414 2005-10-11  Bruno Haible  <bruno@clisp.org>
71415
71416         * modules/c-strcase: New file.
71417         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71418
71419 2005-10-11  Bruno Haible  <bruno@clisp.org>
71420
71421         * lib/strcasecmp.c: Include limits.h.
71422         (strcasecmp): Avoid integer overflow on exotic platforms.
71423         * lib/strncasecmp.c: Include limits.h.
71424         (strncasecmp): Avoid integer overflow on exotic platforms.
71425         Reported by Paul Eggert.
71426
71427 2005-10-11  Bruno Haible  <bruno@clisp.org>
71428
71429         * lib/c-strcasestr.h: New file, from GNU gettext.
71430         * lib/c-strcasestr.c: New file, from GNU gettext.
71431
71432 2005-10-11  Bruno Haible  <bruno@clisp.org>
71433
71434         * lib/c-strcase.h: New file, from GNU gettext.
71435         * lib/c-strcasecmp.c: New file, from GNU gettext.
71436         * lib/c-strncasecmp.c: New file, from GNU gettext.
71437
71438 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71439
71440         * modules/mempcpy (License): GPL -> LGPL.
71441         * modules/strchrnul (License): Likewise.
71442         * modules/sysexits (License): Likewise.
71443
71444 2005-10-08  Simon Josefsson  <jas@extundo.com>
71445
71446         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71447
71448 2005-10-07  Simon Josefsson  <jas@extundo.com>
71449
71450         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71451
71452 2005-10-06  Simon Josefsson  <jas@extundo.com>
71453
71454         * tests/test-hmac-md5.c: New file.
71455
71456         * modules/hmac-md5-tests: New file.
71457
71458         * modules/hmac-md5: New file.
71459
71460 2005-10-06  Simon Josefsson  <jas@extundo.com>
71461
71462         * m4/hmac-md5.m4: New file.
71463
71464         * m4/memxor.m4: Require gl_C_RESTRICT.
71465
71466 2005-10-06  Simon Josefsson  <jas@extundo.com>
71467
71468         * lib/memxor.c (memxor): Avoid casts and warnings.
71469
71470 2005-10-06  Simon Josefsson  <jas@extundo.com>
71471
71472         * lib/hmac-md5.c: New file.
71473
71474         * lib/hmac.h: New file.
71475
71476 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71479         promotes to int, not unsigned int, to catch the AIX 5.3
71480         compiler bug.
71481
71482 2005-10-05  Simon Josefsson  <jas@extundo.com>
71483
71484         * modules/memxor: New file.
71485
71486         * modules/iconv (Files): Move config.rpath to havelib, it is used
71487         there.
71488
71489         * modules/havelib (Files): Add config.rpath.
71490
71491 2005-10-05  Simon Josefsson  <jas@extundo.com>
71492
71493         * m4/memxor.m4: New file.
71494
71495 2005-10-05  Simon Josefsson  <jas@extundo.com>
71496
71497         * lib/memxor.c (memxor): Fix compiler error.
71498
71499         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71500         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71501
71502         * lib/memxor.h, lib/memxor.c: New files.
71503
71504         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71505         we assume all systems have it, suggested by Jim Meyering
71506         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71507         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71508         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71509         same reasons.
71510
71511 2005-10-05  Simon Josefsson  <jas@extundo.com>
71512
71513         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71514
71515 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71518         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71519         needed, since the source code now assumes these .h files.
71520
71521 2005-10-05  Derek Price  <derek@ximbiot.com>
71522
71523         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71524
71525 2005-10-05  Bruno Haible  <bruno@clisp.org>
71526
71527         * modules/stdint (License): Change to LGPL.
71528
71529 2005-10-04  Simon Josefsson  <jas@extundo.com>
71530
71531         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71532         D. Baushke" <mdb@gnu.org>.
71533
71534 2005-10-04  Bruno Haible  <bruno@clisp.org>
71535
71536         * lib/verify.h (verify_true): Provide alternative definition for C++.
71537
71538 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71539
71540         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71541         (SSIZE_MAX): New macro, if not already defined.
71542         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71543         than 2 GiB.
71544
71545 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         Sync from coreutils.
71548         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71549         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71550         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71551         ULLONG_MAX doesn't work with 2.7.2.1.
71552
71553 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71554
71555         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71556         From Ben Pfaff.
71557
71558         * modules/exclude (Depends-on): Depend on verify.
71559         * modules/strtoimax (Depends-on): Likewise.
71560         * modules/utimecmp (Depends-on): Likewise.
71561
71562 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         * lib/exclude.c: Include verify.h.
71565         (verify): Remove.  All callers changed to use verify.h's version.
71566         * lib/strtoimax.c: Likewise.
71567         * lib/utimecmp.c: Likewis.e
71568
71569         Sync from coreutils.
71570         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71571         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71572         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71573         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71574         bother returning ENOSYS if settimeofday or stime fails; just let
71575         them return whatever errno they want to return.
71576         * lib/utimens.c: Include unistd.h, for dup2.
71577         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71578         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71579
71580 2005-10-02  Jim Meyering  <jim@meyering.net>
71581
71582         Sync from coreutils.
71583         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71584         from glibc-2.2.5 that fails for read-only files.
71585
71586 2005-10-02  Jim Meyering  <jim@meyering.net>
71587
71588         Sync from coreutils.
71589         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71590         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71591         `#if HAVE_CONFIG_H'.
71592         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71593         Remove AT_FDCWD test.
71594         Do not consume the fd unless successful.
71595         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71596         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71597         block, so that we don't even try to compile it if settimeofday is
71598         available.  This works around a compilation failure on OSF1 V5.1,
71599         due to stime requiring a `long int*' while tv_sec is `int'.
71600
71601 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71602
71603         Sync from coreutils.
71604         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71605         against `yes', rather than just testing for nonempty.
71606
71607 2005-10-01  Simon Josefsson  <jas@extundo.com>
71608
71609         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71610         and Darwin.
71611
71612         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71613         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71614         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71615         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71616         Check if struct addrinfo is declared.
71617
71618 2005-10-01  Simon Josefsson  <jas@extundo.com>
71619
71620         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71621         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71622         AI_* and EAI_* definitions.  Protect function declarations.
71623
71624 2005-10-01  Jim Meyering  <jim@meyering.net>
71625
71626         Sync from coreutils.
71627
71628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71629         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71630         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71632         in the inet and nsl libraries.  Required on Solaris 5.7.
71633
71634 2005-10-01  Jim Meyering  <jim@meyering.net>
71635
71636         Sync from coreutils.
71637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71638         in the inet and nsl libraries.  Required on Solaris 5.7.
71639
71640 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71641
71642         * lib/getdelim.c (getdelim): Remove unused variables.
71643
71644 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71647         so that the code works even with ancient cpp.  Portability problem
71648         with GCC 2.7.2.1 reported by Thomas M.Ott.
71649
71650 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * modules/regex (Depends-on): Add strcase.
71653
71654         * modules/gethostname (Licence): Change from GPL to LGPL, since
71655         gethostname.c is a trivial implementation of a standard library
71656         function.
71657         * modules/poll (License): Change from GPL to LGPL, since it's
71658         derived from LGPL code.
71659
71660 2005-09-27  Jim Meyering  <jim@meyering.net>
71661
71662         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71663         HAVE_CONFIG_H.
71664
71665         * lib/intprops.h (signed_type_or_expr__): Define.
71666         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71667         for unsigned types.
71668
71669 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71670
71671         * lib/verify.h (verify_expr): Remove, replacing with:
71672         (verify_true): New macro that returns true instead of void.
71673         (verify_type__): Remove.
71674         (verify): Use verify_true rather than verify_type__.
71675
71676 2005-09-26  Bruno Haible  <bruno@clisp.org>
71677
71678         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71679         is necessary.
71680         (lib_SOURCES): Remove mbchar.c.
71681         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71682         (Files): Add m4/mbrtowc.m4.
71683         * modules/mbiter: Likewise.
71684         * modules/mbuiter: Likewise.
71685
71686 2005-09-26  Bruno Haible  <bruno@clisp.org>
71687
71688         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71689         compile mbchar.c if they are not both present.
71690         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71691         * m4/mbiter.m4 (gl_MBITER): Likewise.
71692         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71693         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71694         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71695
71696 2005-09-25  Jim Meyering  <jim@meyering.net>
71697
71698         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71699         also uses socklen_t.
71700
71701 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71702
71703         * lib/utimens.c (ENOSYS): Define if not already defined.
71704         (futimens): Support having a null PATH if the file descriptor
71705         is nonnegative.
71706
71707         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71708         Remove.
71709         (__attribute): Define to empty unless GCC 3.1 or later.
71710         This works around a core dump on OpenBSD 3.4, which has GCC
71711         2.95.3, which dumps core when given __attribute__(()).  It also
71712         simplifies other tests, since we really don't want to bother with
71713         worrying about which ancient version of GCC supported what.
71714         Original problem reported by Yoann Vandoorselaere, with part of
71715         the fix suggested by Derek Price.
71716
71717 2005-09-24  Jim Meyering  <jim@meyering.net>
71718
71719         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71720         so we can once again use a positive bitfield width of 1 -- now we
71721         don't have to explain why we were using a bitfield width of 2.
71722
71723 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71724
71725         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71726         and similarly for the other external symbols.  Problem reported
71727         by James Gallager.
71728
71729         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71730         bug reported by Jim Meyering.
71731
71732         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71733         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71734         not needed, since socklen is a prerequisite module.
71735
71736 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71739         Problem reported by Eric Blake.
71740         (getaddrinfo): Initialize se so that it's not garbage.
71741         Redo internal storage allocation so that it doesn't make unportable
71742         assumptions about alignment.
71743         Fix a memory leak.
71744
71745         * lib/utimens.c (futimens): Use futimesat if available.
71746         Prefer it to futimes since it doesn't have the futimes bug.
71747
71748         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71749         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71750         Instead, declare a function that returns a pointer to an array,
71751         and use verify_type__ to declare the size of the array.
71752         Problem and germ of a solution reported by Bruno Haible.
71753         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71754         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71755
71756 2005-09-23  Jim Meyering  <jim@meyering.net>
71757
71758         Sync from coreutils.
71759         Correct build failure (socklen_t not defined) on at least
71760         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71761         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71762
71763 2005-09-23  Jim Meyering  <jim@meyering.net>
71764
71765         * modules/getaddrinfo (Depends-on): Add socklen.
71766
71767 2005-09-23  Bruno Haible  <bruno@clisp.org>
71768
71769         * tests/test-verify.c: New file.
71770
71771 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71772
71773         Sync from coreutils.
71774
71775         * modules/argmatch (Depends-on): Add verify.
71776         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71777         unistd-safer.
71778         * modules/save-cwd (Depends-on): Likewise.
71779
71780         * modules/openat (Files): Add lib/openat-die.c.
71781         (Depends-on): Remove error, exitfail.
71782         Add dirname.
71783
71784         * modules/verify: New file.
71785         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71786         with "verify" module.
71787
71788 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71789
71790         Sync from coreutils.
71791
71792         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71793         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71794         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71795         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71796         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71797         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71798         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71799         Don't bother checking for string.h, stdlib.h, unistd.h.
71800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71801         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71802         module's job.
71803         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71804         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71805
71806         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71807         (gl_GETDATE): Use it.
71808
71809         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71810
71811 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71812
71813         Sync from coreutils.
71814
71815         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71816         stat-time.h.
71817         * lib/argmatch.h: Include verify.h
71818         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71819         (ARGMATCH_ASSERT): Remove; unused.
71820         * lib/canonicalize.c: Assume STDC_HEADERS.
71821         * lib/exclude.c: Include "strcase.h".
71822         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71823         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71824         and stdio-safer.h.
71825         (getusershell): Call fopen, not fopen_safer.
71826         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71827         Do not include unistd-safer.h.
71828         (save_cwd): Don't call fd_safer; no longer needed
71829         now that we include fcntl--.h.
71830
71831         * lib/getdate.y (relative_time): New type.
71832         (RELATIVE_TIME_0): New constant.
71833         (parser_control): Use relative_time instead of doing it ourselves.
71834         (%union): Add new relative_time rel member.
71835         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71836         Now typeless.
71837         (relunit, relunit_snumber): Now of type rel.
71838         (zone, rel, relunit, get_date): Adjust to above changes.
71839
71840         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71841         Do not include unistd-safer.h.
71842         (getloadavg): Don't call fd_safer; no longer needed
71843         now that we include fcntl--.h.
71844
71845         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71846         (make_dir_parents): Treat ENOSYS like EEXIST.
71847
71848         Improve quality of diagnostics on restore_cwd failure.
71849         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71850         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71851         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71852         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71853         each time through the loop.  Do not diagnose restore_cwd failure;
71854         that is the caller's job (and perhaps the caller does not care).
71855
71856         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71857         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71858         If the file already exists but is not a directory, don't bother
71859         to try to make its parents.
71860         Close potential file descriptor leak if we can't chdir("/") (!).
71861         Don't always return true if chdir($PWD) fails; return true only
71862         if the requested action was done successfully (except for the
71863         chdir($PWD)).
71864         Don't log final directory unless we actually made it.
71865         Refactor to avoid duplicate code to fix up permissions.
71866         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71867
71868         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71869         to make it a bit faster and (I hope) clearer.
71870         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71871         Fix bug in formats like %2N.
71872
71873         * lib/verify.h: New file.
71874
71875 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         Sync from coreutils.
71878         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71879
71880 2005-09-22  Jim Meyering  <jim@meyering.net>
71881
71882         Sync from coreutils.
71883
71884         * m4/lstat.m4 (gl_FUNC_LSTAT):
71885         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71886         Remove obsolete comment.
71887         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71888         * m4/xstrtod.m4: Likewise.
71889
71890         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71891
71892 2005-09-22  Jim Meyering  <jim@meyering.net>
71893
71894         Sync from coreutils.
71895
71896         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71897
71898         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71899         the .tm_year member, since otherwise gcc-4.0 would now warn about
71900         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71901
71902         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71903         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71904
71905         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71906         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71907         when run in a time zone for which daylight savings time is in effect
71908         for the starting date.
71909
71910         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71911         stop us from restricting permissions of just-created absolute-named
71912         directories.
71913         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71914         to restore initial working directory.
71915         * lib/mkdir-p.c (make_dir_parents): New parameter:
71916         different_working_dir, to tell caller if/when we change the working
71917         directory and are unable to return to the initial one.
71918         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71919         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71920         `return false'.  This fixes a bug introduced on 2004-07-30.
71921
71922         * lib/openat.c (fdopendir): Be sure to close the supplied
71923         file descriptor before returning.  This makes our replacement
71924         implementation a little closer to Solaris's, where fdopendir
71925         ties the file descriptor to the returned DIR* pointer.
71926         * lib/openat.c (unlinkat): New function.
71927         * lib/openat.h (unlinkat): Add prototype.
71928         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71929         (openat_restore_fail): Rename from openat_restore_die.
71930         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71931
71932         Provide an alternative to exiting immediately upon save_cwd or
71933         restore_cwd failure.  Now, an application can arrange e.g.,
71934         to perform a longjump in that case.
71935         * lib/openat.c: Include dirname.h.
71936         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71937         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71938         and openat_restore_die rather than calling error directly.
71939         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71940
71941         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71942         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71943         define.
71944
71945         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71946         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71947                             int utc, int nanoseconds);
71948         Background:
71949         date should not have to allocate a megabyte of virtual memory to
71950         handle a format argument like +%1048575T.  When implemented with
71951         strftime, it must allocate such a buffer, use strftime to fill it
71952         in, print it, then free it.
71953         With fprintftime, it simply prints everything and exits.
71954         With no need for memory allocation, that's one fewer way to fail.
71955         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71956         optional field width, not before, so we accept %9:z, not %:9z.
71957         (my_strftime): Be sure to use L_('x') for literals.
71958
71959         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71960         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71961         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71962         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71963         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71964         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71965         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71966         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71967         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71968         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71969         * lib/xgethostname.c, lib/xreadlink.c:
71970         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71971
71972         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71973         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71974         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71975         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71976         and don't include <sys/file.h>).
71977
71978 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71979
71980         Sync from coreutils.
71981
71982         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71983         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71984         [!LDAV_DONE]: Avoid unused variable warning.
71985
71986 2005-09-21  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/unicodeio.h (unicode_to_mb): New declaration.
71989
71990 2005-09-20  Derek Price  <derek@ximbiot.com>
71991
71992         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71993         getaddrinfo.h.
71994
71995 2005-09-20  Bruno Haible  <bruno@clisp.org>
71996
71997         * gnulib-tool: Remove trailing slashes from the values specified for
71998         --source-base, --m4-base, --tests-base, --aux-dir.
71999         Suggested by Simon Josefsson <jas@extundo.com>.
72000
72001 2005-09-20  Bruno Haible  <bruno@clisp.org>
72002
72003         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72004         func_modules_to_filelist, func_import, func_create_testdir): Make all
72005         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72006         change when gnulib-tool is invoked in a different locale.
72007
72008 2005-09-19  Simon Josefsson  <jas@extundo.com>
72009
72010         * m4/socklen.m4: Fix typo.
72011
72012 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72013
72014         Use a consistent style for including <config.h>.
72015         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72016         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72017         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72018         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72019         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72020         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72021         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72022         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72023         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72024         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72025         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72026         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72027         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72028         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72029         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72030         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72031         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72032         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72033         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72034         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72035         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72036         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72037         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72038         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72039         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72040         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72041         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72042         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72043         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72044         lib/xstrtoumax.c, lib/yesno.c:
72045         Standardize inclusion of config.h.
72046         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72047         lib/inttostr.h:  Removed inclusion of config.h from header files.
72048         * lib/inttostr.c:  Adjusted in-tree users.
72049         * lib/timespec.h: Remove superfluous warning to include config.h.
72050         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72051         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72052         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72053         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72054         config.h with HAVE_CONFIG_H.
72055
72056 2005-09-19  Jim Meyering  <jim@meyering.net>
72057
72058         * modules/pathmax (License): Change to LGPL.
72059
72060 2005-09-19  Derek Price  <derek@ximbiot.com>
72061
72062         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72063
72064 2005-09-19  Bruno Haible  <bruno@clisp.org>
72065
72066         * gnulib-tool (import): Provide default for --tests-base.
72067
72068 2005-09-19  Bruno Haible  <bruno@clisp.org>
72069
72070         * doc/quote.texi: New file, extracted from gnulib.texi.
72071         * doc/ctime.texi: New file, extracted from gnulib.texi.
72072         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72073         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72074         * doc/gnulib.texi: Include them.
72075
72076 2005-09-18  Bruno Haible  <bruno@clisp.org>
72077
72078         Portability fix.
72079         * gnulib-tool (func_readlink): New function.
72080         (func_ln_if_changed): Use it.
72081
72082 2005-09-18  Bruno Haible  <bruno@clisp.org>
72083
72084         * gnulib-tool: Support --with-tests also with --import.
72085         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72086         (func_import): Use variables $testsbase and $inctests. Emit a
72087         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72088         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72089         SUBDIRS += $testsdir.
72090         (func_create_testdir): Update.
72091
72092 2005-09-18  Bruno Haible  <bruno@clisp.org>
72093
72094         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72095         instead of $dry_run.
72096         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72097         (func_ln_if_changed): Don't handle dry-run here.
72098         (func_import): In dry-run mode, detect more precisely which actions
72099         would be performed, and don't use "...ing" verbs.
72100
72101 2005-09-18  Bruno Haible  <bruno@clisp.org>
72102
72103         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72104         (func_import): Use join on two temporary files instead of three nested
72105         loops, in order to determine which files are new or old.
72106
72107 2005-09-18  Bruno Haible  <bruno@clisp.org>
72108
72109         * gnulib-tool (func_import): Comment out code that spits out the
72110         new files with --dry-run.
72111
72112 2005-09-18  Bruno Haible  <bruno@clisp.org>
72113
72114         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72115
72116 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         * lib/stat-time.h: New file.
72119         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72120         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72121         in a different way.
72122         (timespec_cmp): New function.
72123         * lib/utimecmp.c: Include stat-time.h.
72124         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72125         members exist, not on the obsolescent ST_MTIM_NSEC.
72126         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72127
72128 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72129
72130         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72131
72132 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72133
72134         * MODULES.html.sh (File system functions): Add stat-time.
72135         * modules/stat-time: New file.
72136         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72137         is now done in a different way, by the stat-time module.
72138         * modules/utimecmp (Depends-on): Add stat-time.
72139
72140 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * m4/st_mtim.m4: Remove.  Superseded by...
72143         * m4/stat-time.m4: New file.
72144         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72145         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72146
72147 2005-09-15  Derek Price  <derek@ximbiot.com>
72148
72149         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72150
72151 2005-09-15  Derek Price  <derek@ximbiot.com>
72152
72153         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72154         * lib/regex_internal.c: Ditto, using this...
72155         (__GNUC_PREREQ): ...new macro.
72156         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72157         using...
72158         (__GNUC_PREREQ): ...this new macro.
72159
72160         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72161
72162 2005-09-15  Derek Price  <derek@ximbiot.com>
72163             Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72166         changes, consolidating in...
72167         * lib/regex_internal.h: ...this file.
72168
72169 2005-09-13  Jim Meyering  <jim@meyering.net>
72170
72171         * lib/canon-host.c: Filter through gnu indent and reword comments
72172         slightly.
72173         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72174
72175 2005-09-13  Derek Price  <derek@ximbiot.com>
72176
72177         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72178         failure.
72179         Reported by Jim Meyering  <jim@meyering.net>.
72180
72181 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72182
72183         * lib/base64.c: Typo.
72184         (base64_encode): Put b64str in initialized data section.
72185
72186 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         Merge glibc and coreutils changes into gnulib, plus a few
72189         extra fixes.
72190         * lib/md5.c: Use #error rather than a string.
72191         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72192         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72193         (__attribute__): Define to empty for non recent-GCC.
72194         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72195         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72196         Renamed from their non-__ counterparts, with new macros replacing
72197         them if not _LIBC.  Add __THROW attribute.
72198         (rol): Remove.
72199         (struct md5_ctx): Align buffer if using GCC.
72200         * lib/sha1.h (struct sha1_ctx): Likewise.
72201         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72202         The old name was backwards.
72203         (NOTSWAP): Remove; not used.
72204         (rol): New macro, moved here from md5.h.
72205         (sha1_process_block): Remove a FIXME that doesn't make sense.
72206
72207 2005-09-12  Derek Price  <derek@ximbiot.com>
72208
72209         Return usable errors from canon-host.
72210         * lib/canon-host.h: New file.
72211         * lib/canon-host.c (canon_host): Wrap...
72212         (canon_host_r): ...this new function, which now relies exclusively on
72213         getaddrinfo.
72214         (ch_strerror): New function.
72215         (last_cherror): New global.
72216         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72217         interface.
72218         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72219         void *.
72220         (freeaddrinfo): Free ai->ai_canonname when set.
72221
72222 2005-09-12  Derek Price  <derek@ximbiot.com>
72223
72224         Make canon-host require getaddrinfo.
72225         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72226         AC_LIBSOURCE canon-host.h.  Call...
72227         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72228         gl_GETADDRINFO.
72229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72230
72231 2005-09-12  Derek Price  <derek@ximbiot.com>
72232
72233         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72234         LGPL.
72235         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72236
72237 2005-09-12  Derek Price  <derek@ximbiot.com>
72238
72239         * lib/gai_strerror.c: Include config.h when available.  Include
72240         getaddrinfo.h before other headers to test interface.
72241         Reported by Larry Jones <lawrence.jones@ugs.com>.
72242
72243 2005-09-12  Derek Price  <derek@ximbiot.com>
72244             Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         * modules/glob (Files): Add glob-libc.h.
72247
72248 2005-09-12  Derek Price  <derek@ximbiot.com>
72249             Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72252         glob_.h, glob-libc.h.
72253         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72254
72255 2005-09-12  Derek Price  <derek@ximbiot.com>
72256             Paul Eggert  <eggert@cs.ucla.edu>
72257
72258         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72259         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72260         protecting things that should be done only in gnulib contexts.
72261         * lib/glob_.h: New file, containing only the glob things needed for
72262         gnulib.
72263         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72264         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72265         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72266         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72267         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72268         and to respect the namespace rules better.
72269
72270 2005-09-08  Simon Josefsson  <jas@extundo.com>
72271
72272         * modules/socklen: New file.
72273
72274 2005-09-08  Simon Josefsson  <jas@extundo.com>
72275
72276         * m4/socklen.m4: New file.
72277
72278 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * modules/utimens (Files): Add m4/utimbuf.m4, since
72281         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72282         Reported by Sergey Poznyakoff.
72283
72284 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72287         definitions, since that's the preferred style in glibc.
72288         Fix a minor spacing issue, and update copyright notice to match
72289         glibc's.
72290
72291 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72294
72295 2005-09-06  Simon Josefsson  <jas@extundo.com>
72296
72297         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72298         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72299
72300 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72301
72302         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72303         warning.
72304
72305 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72306
72307         * config/srclist.txt: Add glibc bug 1302.
72308
72309 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         Change bitset word type from unsigned int to unsigned long int,
72312         as this has better performance on typical 64-bit hosts.
72313         Port bitset code to hosts with unusual word sizes.
72314         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72315         (build_collating_symbol):
72316         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72317         argument is a bitset.  This is merely a style issue, but it makes
72318         it clearer that an entire array is expected.
72319         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72320         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72321         Port to the case where bitset_word is not the same as unsigned int.
72322         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72323         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72324         Likewise.
72325         * lib/regexec.c (check_dst_limits_calc_pos_1,
72326         check_subexp_matching_top):
72327         (build_trtable, group_nodes_into_DFAstates):
72328         Likewise.
72329         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72330         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72331         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72332         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72333         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72334         * lib/regcomp.c (optimize_subexps, lower_subexp):
72335         Work even if bitset_word has holes in its bitwise representation.
72336         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72337         * lib/regexec.c (check_dst_limits_calc_pos_1,
72338         check_subexp_matching_top):
72339         Likewise.
72340         * lib/regex_internal.c (re_string_reconstruct):
72341         Don't assume UCHAR_MAX == 255.
72342         * lib/regex_internal.h (bitset_set_all): Likewise.
72343         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72344         All uses changed.
72345         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72346         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72347         All uses changed.
72348         (BITSET_WORD_MAX): New macro.
72349         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72350         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72351         (bitset_empty, bitset_copy):
72352         Prefer sizeof (bitset) to multiplying it out ourselves.
72353         (bitset_not_merge): Remove; unused.
72354         (bitset_contain): Return bool, not unsigned int with one bit on.
72355         All callers changed.
72356         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72357         alignment than re_node_set; do this by defining a new internal
72358         type struct dests_alloc and using it to allocate memory.
72359
72360 2005-09-05  Bruno Haible  <bruno@clisp.org>
72361
72362         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72363         links.
72364
72365 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72366
72367         * modules/size_max (Makefile.am): Add size_max.h
72368
72369 2005-09-04  Derek Price  <derek@ximbiot.com>
72370
72371         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72372
72373 2005-09-03  Simon Josefsson  <jas@extundo.com>
72374
72375         * gnulib-tool: Fix typo.
72376
72377 2005-09-03  Simon Josefsson  <jas@extundo.com>
72378
72379         * config/srclist.txt: Add glibc bug 1293.
72380
72381 2005-09-03  Derek Price  <derek@ximbiot.com>
72382
72383         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72384         From Larry Jones <lawrence.jones@ugs.com>.
72385
72386 2005-09-02  Simon Josefsson  <jas@extundo.com>
72387
72388         * modules/socklen: New file.
72389
72390 2005-09-02  Simon Josefsson  <jas@extundo.com>
72391
72392         * modules/havelib: New module.
72393
72394         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72395         Use havelib.
72396
72397 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         Check for arithmetic overflow when calculating sizes, to prevent
72400         some buffer-overflow issues.  These patches are conservative, in the
72401         sense that when I couldn't determine whether an overflow was possible,
72402         I inserted a run-time check.
72403         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72404         macros.
72405         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72406         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72407         (re_xnrealloc, re_x2nrealloc): New inline functions.
72408         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72409         parse_bracket_exp):
72410         (build_equiv_class, build_charclass): Check for arithmetic overflow
72411         in size expression calculations.
72412         * lib/regex_internal.c (re_string_realloc_buffers):
72413         (build_wcs_upper_buffer, re_node_set_add_intersect):
72414         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72415         (re_dfa_add_node, register_state): Likewise.
72416         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72417         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72418         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72419         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72420
72421 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72424         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72425
72426 2005-09-02  Bruno Haible  <bruno@clisp.org>
72427
72428         Support for lib vs. lib64 distinction on biarch platforms.
72429         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72430         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72432
72433 2005-09-02  Bruno Haible  <bruno@clisp.org>
72434
72435         * gnulib-tool (import): In the other first-use case, provide defaults
72436         as well.
72437
72438 2005-09-02  Bruno Haible  <bruno@clisp.org>
72439
72440         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72441         patches not yet found in the latest gettext release.
72442
72443 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72446         to avoid a collision with bits/local_lim.h in glibc.
72447         All uses changed.  Problem reported by Dmitry V. Levin in
72448         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72449
72450         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72451         bugs in int versus size_t comparisons.
72452         (re_string_context_at): Fix bug where the code assumed that
72453         Idx is signed.
72454
72455         Use bool where appropriate.
72456         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72457         All callers changed.
72458         (calc_eclosure_iter): Likewise, for ROOT arg.
72459         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72460         (build_charclass_op): Likewise, for NON_MATCH arg.
72461         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72462         (re_string_construct_common): Likewise, for ICASE arg.
72463         * lib/regexec.c (re_search_2_stub, re_search_stub):
72464         Likewise, for RET_LEN arg.
72465         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72466         (set_regs): Likewise, for FL_BACKTRACK arg.
72467         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72468         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72469         (calc_eclosure_iter, parse_bracket_exp):
72470         Use bool for internal variables that are booleans.
72471         * lib/regexec.c (re_search_internal, check_matching,
72472         proceed_next_node):
72473         (set_regs, build_sifted_states, sift_states_bkref):
72474         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72475         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72476         (find_collation_sequence_value):
72477         Likewise.
72478         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72479         (re_node_set_compare):
72480         Return bool, not int. All callers changed.
72481         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72482         (build_trtable, check_node_accept): Likewise.
72483         * lib/regex_internal.h: Include stdbool.h.
72484
72485         Fix bugs uncovered when converting to bool.
72486         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72487         failure instead of charging ahead blindly.
72488         * lib/regex_internal.c (register_state): Likewise.
72489         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72490         for freeing internal storage.
72491         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72492         bitset pieces used as boolean, to avoid undefined behavior
72493         on hosts that do int overflow checking.
72494
72495 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         * config/srclist.txt: Add glibc bugs 1285-1287.
72498
72499 2005-09-01  Jim Meyering  <jim@meyering.net>
72500
72501         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72502         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72503         Require gl_STAT_MACROS, too.
72504
72505 2005-09-01  Bruno Haible  <bruno@clisp.org>
72506
72507         * gnulib-tool (import): In the first-use case, provide defaults.
72508
72509 2005-09-01  Bruno Haible  <bruno@clisp.org>
72510
72511         * gnulib-tool (func_import): Remove the .tmp files.
72512
72513 2005-09-01  Bruno Haible  <bruno@clisp.org>
72514
72515         * gnulib-tool (func_import): Fix handling of symbolic links.
72516
72517 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72518
72519         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72520         old glibc regex code mishandles strings longer than 2**31 bytes.
72521         This patch fixes this when the regex code is used in gnulib
72522         (i.e., outside glibc).
72523
72524         This patch should not affect the use of the regex code inside
72525         glibc.  No doubt this problem also needs to be handled for glibc
72526         as well, but the result will be an incompatible change to the
72527         glibc ABI, and the old ABI will have to be supported too.  That
72528         can be the the subject for another patch.
72529
72530         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72531         governing whether the rest of this patch is active.  By default,
72532         the macro is disabled and the patch has no effect.
72533         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72534         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72535         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72536         (re_match_2, re_set_registers): Use the new types.
72537         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72538         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72539         New macros.
72540         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72541         (re_string_context_at, bin_tree_t, re_dfastate_t):
72542         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72543         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72544         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72545         (re_string_char_size_at, re_string_wchar_at):
72546         (re_string_elem_size_at):
72547         Use the new types and macros to port to 64-bit hosts.
72548         Use unsigned types for internal values, so that the code
72549         mostly works even for arrays larger than SSIZE_MAX.
72550         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72551         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72552         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72553         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72554         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72555         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72556         (calc_inveclosure, parse_dup_op, build_range_exp):
72557         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72558         (fetch_number, create_token_tree, mark_opt_subexp):
72559         Likewise.
72560         * lib/regex_internal.c (re_string_construct_common,
72561         create_ci_newstate):
72562         (create_cd_newstate, re_string_allocate, re_string_construct):
72563         (re_string_realloc_buffers, build_wcs_upper_buffer):
72564         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72565         (re_string_reconstruct, re_string_peek_byte_case):
72566         (re_string_fetch_byte_case, re_string_context_at):
72567         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72568         (re_node_set_init_copy, re_node_set_add_intersect):
72569         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72570         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72571         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72572         (re_acquire_state, re_acquire_state_context, register_state):
72573         Likewise.
72574         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72575         search_cur_bkref_entry):
72576         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72577         (re_search_internal, re_search_2_stub, re_search_stub)
72578         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72579         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72580         (update_cur_sifted_state, check_dst_limits):
72581         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72582         (check_subexp_limits, sift_states_bkref, merge_state_array):
72583         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72584         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72585         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72586         (expand_bkref_cache, check_node_accept_bytes):
72587         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72588         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72589         (acquire_init_state_context, check_halt_node_context):
72590         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72591         (sift_states_backward, clean_state_log_if_needed):
72592         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72593         (find_recover_state, transit_state_sb, transit_state_mb):
72594         (transit_state_bkref, build_trtable, match_ctx_clean):
72595         Likewise.
72596         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72597         to work around an assumption that REG_MISSING is negative.
72598
72599         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72600         (seek_collating_symbol_entry) [defined _LIBC]:
72601         (lookup_collation_sequence_value) [defined _LIBC]:
72602         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72603         Use prototypes rather than old-style function definitions.
72604         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72605         (transit_state_sb) [0]:
72606         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72607
72608         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72609         rm_eo.
72610
72611         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72612         (optimize_subexps, lower_subexp):
72613         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72614         since the signed shift might overflow.  Use 1u<<31 instead.
72615         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72616         Likewise.
72617         * lib/regexec.c (check_dst_limits_calc_pos_1,
72618         check_subexp_matching_top): Likewise.
72619
72620         * lib/regcomp.c (optimize_subexps, lower_subexp):
72621         Use CHAR_BIT rather than 8, for clarity.
72622         * lib/regexec.c (check_dst_limits_calc_pos_1):
72623         (check_subexp_matching_top): Likewise.
72624         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72625         have to worry about portability issues when shifting it left.
72626         Remove no-longer-needed test for table_size > 0.
72627         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72628         in a word, as the resulting behavior is undefined.
72629         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72630         in one case, a <= should have been an <, and in another case the
72631         whole test was missing.
72632         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72633         the standard name CHAR_BIT.
72634         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72635         this is not true on one's complement and signed-magnitude hosts.
72636
72637         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72638         next_last_offset.
72639         (struct re_dfa_t): Remove unused member states_alloc.
72640         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72641
72642 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72645         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72646         and large-file glibc and in 32-bit large-file Solaris.
72647
72648 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72651         lengths fit in regoff_t; this isn't true if regoff_t is the same
72652         width as size_t.
72653         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72654         (= START + RANGE) instead of RANGE.  This avoids overflow
72655         problems when regoff_t is the same width as size_t.
72656         All callers changed.
72657         (re_search_2_stub): Check for overflow when adding the
72658         sizes of the two strings.
72659         (re_search_stub): Check for overflow when adding START
72660         to RANGE; if it occurs, substitute the extreme value.
72661
72662 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72663
72664         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72665
72666 2005-08-31  Jim Meyering  <jim@meyering.net>
72667
72668         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72669         a pointer-to-const.
72670         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72671         (register_state): Likewise.
72672         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72673         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72674         (group_nodes_into_DFAstates): Likewise.
72675
72676 2005-08-31  Jim Meyering  <jim@meyering.net>
72677
72678         * check-module: Add a FIXME comment.
72679
72680 2005-08-31  Eric Blake  <ebb9@byu.net>
72681
72682         * modules/unistd-safer (Files): Add unistd--.h.
72683         * modules/stdio-safer (Files): Add stdio--.h.
72684
72685 2005-08-31  Derek Price  <derek@ximbiot.com>
72686
72687         * lib/getdelim.c (getdelim): Return EOF on EOF.
72688         Reported by Larry Jones <lawrence.jones@ugs.com>.
72689
72690 2005-08-31  Bruno Haible  <bruno@clisp.org>
72691
72692         Avoid unnecessary diffs in the generated lib/Makefile.am.
72693         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72694         the generated files.
72695         (func_import): Don't set cmd.
72696
72697 2005-08-31  Bruno Haible  <bruno@clisp.org>
72698
72699         * lib/strstr.c: Include <stddef.h>, for NULL.
72700         * lib/strcasestr.c: Likewise.
72701         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72702
72703 2005-08-31  Bruno Haible  <bruno@clisp.org>
72704
72705         * gnulib-tool: New option --macro-prefix.
72706         (func_import): Use macro_prefix.
72707         (import): Handle option --macro-prefix.
72708
72709 2005-08-31  Bruno Haible  <bruno@clisp.org>
72710
72711         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72712         Also use new variables cached_lgpl, cached_libtool.
72713
72714 2005-08-31  Bruno Haible  <bruno@clisp.org>
72715
72716         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72717         always instantiating them.
72718
72719 2005-08-31  Bruno Haible  <bruno@clisp.org>
72720
72721         * gnulib-tool (func_import): Read the previous cached settings
72722         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72723         earlier added by gnulib but are now dropped. Warn when a gnulib file
72724         overwrites a non-gnulib file.
72725
72726 2005-08-31  Bruno Haible  <bruno@clisp.org>
72727
72728         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72729         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72730         projects that don't keep autogenerated files in CVS. Put into
72731         actioncmd only the specified modules, not the transitive closure.
72732
72733 2005-08-31  Bruno Haible  <bruno@clisp.org>
72734
72735         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72736         Create directories that shall be filled.
72737         (import): Don't look for gl_* macros in configure.ac. Recurse across
72738         all directories containing a gnulib-cache.m4 files, if meaningful.
72739
72740 2005-08-31  Bruno Haible  <bruno@clisp.org>
72741
72742         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72743         (import): Set seen_libtool when we see gl_LIBTOOL.
72744
72745 2005-08-31  Bruno Haible  <bruno@clisp.org>
72746
72747         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72748         declaration macro definitions from generated gnulib.m4.
72749
72750 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72751
72752         * lib/iconvme.h: Add prototype for iconv_alloc.
72753
72754 2005-08-29  Simon Josefsson  <jas@extundo.com>
72755
72756         * lib/iconvme.c: Fix errno.
72757
72758 2005-08-29  Bruno Haible  <bruno@clisp.org>
72759
72760         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72761         that it works when the directory contains spaces.
72762
72763 2005-08-29  Bruno Haible  <bruno@clisp.org>
72764
72765         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72766
72767 2005-08-29  Bruno Haible  <bruno@clisp.org>
72768
72769         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72770         Emit more advice.
72771
72772 2005-08-29  Bruno Haible  <bruno@clisp.org>
72773         and Stepan Kasal  <kasal@ucw.cz>
72774
72775         * check-module: If more parameters are given, check each of them
72776         separately; add more exceptions, as noted by Jim Meyering.
72777         (check_module): New procedure.
72778         (%exempt_header): Now contains all exceptions.
72779
72780 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72781
72782         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72783
72784 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72785
72786         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72787
72788 2005-08-28  Bruno Haible  <bruno@clisp.org>
72789
72790         * m4/gnulib-tool.m4: New file.
72791
72792 2005-08-27  Jim Meyering  <jim@meyering.net>
72793
72794         * modules/unistd-safer (Files): Add pipe-safer.c.
72795         * modules/fcntl-safer (Files): Add creat-safer.c.
72796
72797 2005-08-27  Jim Meyering  <jim@meyering.net>
72798
72799         * m4/stdlib-safer.m4: New file.  From coreutils.
72800         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72801         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72802         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72803         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72804         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72805
72806 2005-08-27  Jim Meyering  <jim@meyering.net>
72807
72808         * lib/fopen-safer.c: Merge minor changes from coreutils.
72809         * lib/dup-safer.c: Likewise.
72810         * lib/fd-safer.c: Likewise.
72811
72812         Merge from coreutils.
72813         * lib/stdio--.h: New file.
72814         * lib/stdlib--.h: New file.
72815         * lib/mkstemp-safer.c: New file.
72816
72817         GNU tar needs these.
72818         * lib/pipe-safer.c: New file.
72819         * lib/creat-safer.c: New file.
72820         * lib/fcntl--.h (creat): Define to creat_safer.
72821         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72822         * lib/unistd--.h (pipe): Define to pipe_safer.
72823         * lib/unistd-safer.h: Declare pipe_safer.
72824
72825 2005-08-26  Simon Josefsson  <jas@extundo.com>
72826
72827         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72828         Haible <bruno@clisp.org>.
72829
72830 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72831
72832         * lib/regex_internal.h: Remove all references to
72833         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72834         or better.
72835         (bitset_not, bitset_merge, bitset_not_merge):
72836         (bitset_mask, re_string_allocate, re_string_construct):
72837         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72838         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72839         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72840         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72841         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72842         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72843         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72844         (re_acquire_state_context):
72845         Remove unnecessary forward decls.
72846         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72847         Put __attribute at function definition,
72848         now that the function decl has been removed.
72849         * lib/regex_internal.c (re_string_peek_byte_case):
72850         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72851         Likewise.
72852
72853 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72854
72855         * m4/regex.m4: Add AC_PREREQ(2.50).
72856         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72857
72858 2005-08-25  Simon Josefsson  <jas@extundo.com>
72859
72860         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72861         __fsetlocking.
72862
72863 2005-08-25  Simon Josefsson  <jas@extundo.com>
72864
72865         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72866         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72867         GLIBC specific code.
72868
72869 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         Make regex safe for g++.  This fixes one real bug (an "err"
72872         that should have been "*err").  g++ problem reported by
72873         Sam Steingold.
72874         * lib/regex_internal.h (re_calloc): New macro, consistent with
72875         re_malloc etc.  All callers of calloc changed to use re_calloc.
72876         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72877         not int.  All callers changed.
72878         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72879         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72880         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72881         (find_recover_state): Change "err" to "*err"; this fixes what
72882         appears to be a real bug.
72883         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72884         versus int.
72885
72886 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * modules/regex (Depends-on): Add malloc, since the code
72889         assumes that !malloc(0) means failure.
72890
72891 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72894
72895         alloca modernization/simplification for regex.
72896         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72897         needs to be at the start of the file, and can be moved into
72898         regex_internal.h and simplified.
72899         * lib/regex_internal.h: Include <alloca.h>.
72900         (__libc_use_alloca) [!defined _LIBC]: New macro.
72901         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72902         now works outside glibc.
72903
72904 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * config/srclist.txt: Add glibc bugs 1241, 1245.
72907
72908 2005-08-25  Jim Meyering  <jim@meyering.net>
72909
72910         * lib/open-safer.c: Include <config.h>.
72911         Otherwise, we'd lose LARGEFILE support in any file using
72912         e.g. "fcntl--.h"
72913
72914 2005-08-25  Bruno Haible  <bruno@clisp.org>
72915
72916         * m4/minmax.m4: Require autoconf 2.52.
72917         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72918         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72919         alternatives of translit over the alphabet.
72920         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72921
72922 2005-08-24  Simon Josefsson  <jas@extundo.com>
72923
72924         * tests/test-getpass.c: New file.
72925
72926 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72929         for GNU regex features.
72930
72931 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72932
72933         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72934         * lib/regex.h (regerror): Likewise.
72935
72936         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72937         requires this.  (The code never needed it.)
72938
72939         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72940         All uses of recently-renamed identifiers changed to use the new,
72941         POSIX-compliant names.  The code will build and run just fine
72942         without these changes, but it's better to eat our own dog food
72943         and use the standard-conforming names.
72944
72945         * lib/regex.h: Fix a multitude of POSIX name space violations.
72946         These changes have an effect only for programs that define
72947         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72948         do not change anything for programs compiled in the normal way.
72949         Also, there is no effect on the ABI.
72950
72951         (_REGEX_SOURCE): New macro.
72952         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72953         defined and _GNU_SOURCE is not; this fixes a name space violation.
72954
72955         Rename the following macros to obey POSIX requirements.
72956         The old names are still visible as macros if _REGEX_SOURCE is defined.
72957         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72958         RE_BACKSLASH_ESCAPE_IN_LISTS.
72959         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72960         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72961         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72962         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72963         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72964         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72965         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72966         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72967         (REG_INTERVALS): renamed from RE_INTERVALS.
72968         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72969         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72970         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72971         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72972         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72973         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72974         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72975         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72976         RE_UNMATCHED_RIGHT_PAREN_ORD.
72977         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72978         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72979         (REG_DEBUG): renamed from RE_DEBUG.
72980         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72981         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72982         unusual, since we can't clash with the POSIX REG_ICASE.
72983         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72984         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72985         (REG_NO_SUB): renamed from RE_NO_SUB.
72986         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72987         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72988         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72989         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72990         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72991         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72992         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72993         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72994         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72995         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72996         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72997         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72998         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72999         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73000         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73001         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73002         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73003         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73004         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73005         (REG_FIXED): Renamed from REGS_FIXED.
73006         (REG_NREGS): Renamed from RE_NREGS.
73007
73008         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73009         of other REG_* macros, since POSIX says the user is allowed to
73010         #undef these macros selectively.
73011
73012         (reg_errcode_t): Update comment stating what other tables need
73013         to be consistent.
73014
73015         Rename the following enum values to obey POSIX requirements.
73016         The old names are still visible as macros.
73017         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73018         is not defined, since GNU is supposed to be a superset of POSIX as
73019         much as possible, and since we want reg_errcode_t to be a signed
73020         type for implementation consistency.
73021         (_REG_NOERROR): Renamed from REG_NOERROR.
73022         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73023         (_REG_BADPAT): Renamed from REG_BADPAT.
73024         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73025         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73026         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73027         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73028         (_REG_EBRACK): Renamed from REG_EBRACK.
73029         (_REG_EPAREN): Renamed from REG_EPAREN.
73030         (_REG_EBRACE): Renamed from REG_EBRACE.
73031         (_REG_BADBR): Renamed from REG_BADBR.
73032         (_REG_ERANGE): Renamed from REG_ERANGE.
73033         (_REG_ESPACE): Renamed from REG_ESPACE.
73034         (_REG_BADRPT): Renamed from REG_BADRPT.
73035         (_REG_EEND): Renamed from REG_EEND.
73036         (_REG_ESIZE): Renamed from REG_ESIZE.
73037         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73038         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73039         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73040         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73041         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73042
73043         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73044         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73045         changed.  But support the old name if the new one is not defined
73046         and if _REGEX_SOURCE.
73047
73048         Change the following member names in struct re_pattern_buffer.
73049         The old names are still supported if !_REGEX_SOURCE.
73050         The new names are always supported, regardless of _REGEX_SOURCE.
73051         (re_buffer): Renamed from buffer.
73052         (re_allocated): Renamed from allocated.
73053         (re_used): Renamed from used.
73054         (re_syntax): Renamed from syntax.
73055         (re_fastmap): Renamed from fastmap.
73056         (re_translate): Renamed from translate.
73057         (re_can_be_null): Renamed from can_be_null.
73058         (re_regs_allocated): Renamed from regs_allocated.
73059         (re_fastmap_accurate): Renamed from fastmap_accurate.
73060         (re_no_sub): Renamed from no_sub.
73061         (re_not_bol): Renamed from not_bol.
73062         (re_not_eol): Renamed from not_eol.
73063         (re_newline_anchor): Renamed from newline_anchor.
73064
73065         Change the following member names in struct re_registers.
73066         The old names are still supported if !_REGEX_SOURCE.
73067         The new names are always supported, regardless of _REGEX_SOURCE.
73068         (rm_num_regs): Renamed from num_regs.
73069         (rm_start): Renamed from start.
73070         (rm_end): Renamed from end.
73071
73072         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73073         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73074         Prepend __ to parameter names.
73075
73076         Undo yesterday's changes.
73077
73078 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73079
73080         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73081         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73082         lib/regex.c.
73083
73084 2005-08-24  Jim Meyering  <jim@meyering.net>
73085
73086         Sync from coreutils.
73087         * m4/fcntl-safer.m4: New file.
73088
73089         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73090         and object files for this module.
73091
73092 2005-08-24  Jim Meyering  <jim@meyering.net>
73093
73094         Sync from coreutils.
73095         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73096
73097 2005-08-24  Jim Meyering  <jim@meyering.net>
73098
73099         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73100         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73101
73102 2005-08-24  Jim Meyering  <jim@meyering.net>
73103
73104         * modules/fcntl-safer: New module.
73105         * modules/fts (Depends-on): Add fcntl-safer.
73106         * MODULES.html.sh (File descriptor based Input/Output):
73107         Add fcntl-safer.
73108
73109 2005-08-24  Bruno Haible  <bruno@clisp.org>
73110
73111         Support for unit test modules.
73112         * modules/README: Mention tests modules.
73113         * modules/TEMPLATE-TESTS: New file.
73114         * gnulib-tool: New options --extract-tests-module, --with-tests and
73115         --tests-base (unused for the moment).
73116         (testsbase, inctests): New variables.
73117         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73118         (func_verify_module): Exclude TEMPLATE-TESTS.
73119         (func_verify_nontests_module, func_verify_tests_module): New functions.
73120         (func_get_dependencies): Add implicit dependency for tests modules.
73121         (func_get_tests_module): New function.
73122         (func_modules_transitive_closure): When --with-tests was specified,
73123         include the unit tests as well, unless explicitly avoided.
73124         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73125         (func_emit_tests_Makefile_am): New function.
73126         (func_create_testdir): When --with-tests was specified, emit a
73127         tests/ directory.
73128         * MODULES.html.sh (Future developments): Update.
73129
73130 2005-08-24  Bruno Haible  <bruno@clisp.org>
73131
73132         * modules/tls-tests: New file.
73133         * tests/test-tls.c: New file, from GNU gettext.
73134
73135 2005-08-24  Bruno Haible  <bruno@clisp.org>
73136
73137         * modules/lock-tests: New file.
73138         * tests/test-lock.c: New file, from GNU gettext.
73139
73140 2005-08-24  Bruno Haible  <bruno@clisp.org>
73141
73142         * lib/lock.h: Add multiple inclusion guard.
73143         * lib/tls.h: Add multiple inclusion guard.
73144
73145 2005-08-24  Bruno Haible  <bruno@clisp.org>
73146
73147         * gnulib-tool: Add support for the --aux-dir option to
73148         --create-testdir, --create-megatestdir, --test, --megatest.
73149         (func_create_testdir, func_create_megatestdir): Optionally emit a
73150         AC_CONFIG_AUX_DIR directive.
73151         (create-testdir, create-megatestdir, test, megatest): Provide a
73152         default value for $auxdir.
73153
73154 2005-08-24  Bruno Haible  <bruno@clisp.org>
73155
73156         * gnulib-tool (import): Use compound statement instead of subshell
73157         where possible.
73158
73159 2005-08-24  Bruno Haible  <bruno@clisp.org>
73160
73161         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73162
73163 2005-08-24  Bruno Haible  <bruno@clisp.org>
73164
73165         * gnulib-tool (func_version): Update.
73166
73167 2005-08-24  Bruno Haible  <bruno@clisp.org>
73168
73169         * gnulib-tool (func_import, func_create_testdir,
73170         func_create_megatestdir): Quote all autoconf macro arguments.
73171
73172 2005-08-24  Bruno Haible  <bruno@clisp.org>
73173
73174         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73175         option --force, because --force causes the aclocal.m4 of each
73176         subdirectory to be newer than the corresponding config.h.in.
73177
73178 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73181         All contents moved to gl_REGEX.
73182         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73183         assume that it does.
73184
73185 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * lib/regex.h (REG_NOSYS)
73188         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73189         Define, since POSIX requires it as of 2001.
73190         (_REG_ENOSYS)
73191         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73192         New private symbol, used to keep the enum signed in all cases.
73193         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73194         Youngman in
73195         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73196
73197         * lib/regex_internal.c (re_string_skip_chars, register_state):
73198         (calc_state_hash):
73199         Remove forward decls; no longer needed now that we use prototypes.
73200         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73201         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73202         (clean_state_log_if_needed): Likewise.
73203
73204 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * config/srclist.txt: Add glibc bugs 1231-1233.
73207
73208 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         Fix problems reported by Sam Steingold in
73211         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73212         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73213         assumed that reg_errcode_t is a signed type, which is not
73214         necessarily true if _XOPEN_SOURCE is not defined.
73215         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73216         since some compilers warn about it otherwise.
73217
73218 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73221         (init_word_char, create_initial_state, duplicate_node_closure):
73222         (fetch_token, peek_token_bracket, build_range_exp):
73223         (build_collating_symbol): Remove forward decls; no longer needed
73224         now that we use prototypes.
73225
73226         * lib/regcomp.c:
73227         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73228         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73229         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73230         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73231         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73232         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73233         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73234         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73235         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73236         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73237         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73238         (build_charclass, build_charclass_op, fetch_number, create_tree):
73239         (create_token_tree, mark_opt_subexp, duplicate_tree):
73240         Use prototypes rather than old-style definitions.
73241
73242         * lib/regex_internal.c:
73243         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73244         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73245         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73246         (re_string_reconstruct, re_string_peek_byte_case):
73247         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73248         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73249         (re_node_set_init_copy, re_node_set_add_intersect):
73250         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73251         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73252         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73253         (re_acquire_state, re_acquire_state_context, register_state):
73254         (create_ci_newstate, create_cd_newstate, free_state):
73255         Likewise.
73256         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73257         re_search_2):
73258         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73259         (re_search_internal, prune_impossible_nodes):
73260         (acquire_init_state_context, check_matching, static):
73261         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73262         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73263         (update_regs, sift_states_backward, build_sifted_states):
73264         (clean_state_log_if_needed, merge_state_array):
73265         (update_cur_sifted_state, add_epsilon_src_nodes):
73266         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73267         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73268         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73269         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73270         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73271         (check_arrival, check_arrival_add_next_nodes):
73272         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73273         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73274         (check_node_accept_bytes, check_node_accept, extend_buffers):
73275         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73276         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73277         (sift_ctx_init):
73278         Likewise.
73279
73280         * lib/regex_internal.h:
73281         (re_string_allocate, re_string_construct, re_string_reconstruct):
73282         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73283         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73284         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73285         (re_string_context_at, re_string_peek_byte_case):
73286         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73287         is defined, since we now use prototypes always.
73288
73289         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73290         C89 or better.  All uses removed.
73291
73292 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * config/srclist.txt: Add glibc bugs 1220-1227.
73295
73296 2005-08-20  Jim Meyering  <jim@meyering.net>
73297
73298         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73299         of unused local, dfa.
73300
73301 2005-08-20  Bruno Haible  <bruno@clisp.org>
73302
73303         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73304
73305 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73306
73307         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73308         (re_node_set_insert_last, re_dfa_add_node):
73309         Rename local variables to avoid GCC shadowing warnings.
73310
73311 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73312
73313         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73314         [defined lint]: Suppress bogus uninitialized-variable warnings.
73315
73316         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73317         and let the caller return REG_ESPACE if out of space.  This
73318         removes an uninitialied-variable warning with GCC 4.0.1, and also
73319         avoids taking the address of a local variable.  All callers
73320         changed.
73321
73322 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73325         $LIBCSRC/posix/regexec.c.
73326         Add glibc bug 1217 for regcomp.c.
73327
73328 2005-08-19  Jim Meyering  <jim@meyering.net>
73329
73330         * lib/regexec.c (proceed_next_node): Redo local variables to
73331         avoid GCC shadowing warnings.
73332
73333 2005-08-18  Bruno Haible  <bruno@clisp.org>
73334
73335         * lib/strstr.c (strstr): Fix return value in multibyte case.
73336         * lib/strcasestr.c (strcasestr): Likewise.
73337
73338 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73341
73342 2005-08-17  Jim Meyering  <jim@meyering.net>
73343
73344         Make the %s format (seconds since the epoch) work for a negative
73345         number and when used with a zero-padded field width, e.g. %015s.
73346
73347         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73348         label so that it precedes the code to set `digits'.  Otherwise,
73349         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73350         print `00-22'.  Now, it prints `-0022', as it should.
73351
73352 2005-08-17  Bruno Haible  <bruno@clisp.org>
73353
73354         * modules/strstr (Files): Add m4/mbrtowc.m4.
73355         (Depends-on): Add mbuiter.
73356
73357 2005-08-17  Bruno Haible  <bruno@clisp.org>
73358
73359         * modules/strcasestr: New file.
73360         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73361         strcasestr.
73362
73363 2005-08-17  Bruno Haible  <bruno@clisp.org>
73364
73365         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73366
73367 2005-08-17  Bruno Haible  <bruno@clisp.org>
73368
73369         * modules/mbuiter: New file.
73370         * MODULES.html.sh (Extended multibyte and wide character utilities):
73371         Add mbuiter.
73372
73373 2005-08-17  Bruno Haible  <bruno@clisp.org>
73374
73375         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73376         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73377
73378 2005-08-17  Bruno Haible  <bruno@clisp.org>
73379
73380         * m4/strcasestr.m4: New file.
73381
73382 2005-08-17  Bruno Haible  <bruno@clisp.org>
73383
73384         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73385         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73386
73387 2005-08-17  Bruno Haible  <bruno@clisp.org>
73388
73389         * lib/strcasestr.h: New file.
73390         * lib/strcasestr.c: New file.
73391
73392 2005-08-17  Bruno Haible  <bruno@clisp.org>
73393
73394         * lib/strcasecmp.c: Use mbuiter.h.
73395
73396 2005-08-17  Bruno Haible  <bruno@clisp.org>
73397
73398         * lib/mbuiter.h: New file.
73399
73400 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73401
73402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73403         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73404         and gl_GETOPT are both invoked via different paths (as happens
73405         with GNU tar CVS because it uses both argp and getopt), the former
73406         wins.
73407
73408 2005-08-16  Bruno Haible  <bruno@clisp.org>
73409
73410         * modules/tls: New file.
73411         * MODULES.html.sh (Multithreading): Add tls.
73412
73413 2005-08-16  Bruno Haible  <bruno@clisp.org>
73414
73415         * modules/strnlen1: New file.
73416         * MODULES.html.sh (String handling): Add strnlen1.
73417
73418 2005-08-16  Bruno Haible  <bruno@clisp.org>
73419
73420         * modules/strcase (Files): Add m4/mbrtowc.m4.
73421         (Depends-on): Add strnlen1, mbchar.
73422
73423 2005-08-16  Bruno Haible  <bruno@clisp.org>
73424
73425         * modules/mbiter: New file.
73426         * MODULES.html.sh (Extended multibyte and wide character utilities):
73427         Add mbiter.
73428
73429 2005-08-16  Bruno Haible  <bruno@clisp.org>
73430
73431         * modules/mbfile: New file.
73432         * MODULES.html.sh (Extended multibyte and wide character utilities):
73433         Add mbfile.
73434
73435 2005-08-16  Bruno Haible  <bruno@clisp.org>
73436
73437         * modules/mbchar: New file.
73438         * MODULES.html.sh (Extended multibyte and wide character utilities):
73439         New section.
73440
73441 2005-08-16  Bruno Haible  <bruno@clisp.org>
73442
73443         * m4/tls.m4: New file, from GNU gettext.
73444
73445 2005-08-16  Bruno Haible  <bruno@clisp.org>
73446
73447         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73448         always.
73449         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73450
73451 2005-08-16  Bruno Haible  <bruno@clisp.org>
73452
73453         * m4/mbiter.m4: New file.
73454
73455 2005-08-16  Bruno Haible  <bruno@clisp.org>
73456
73457         * m4/mbfile.m4: New file.
73458
73459 2005-08-16  Bruno Haible  <bruno@clisp.org>
73460
73461         * m4/mbchar.m4: New file.
73462
73463 2005-08-16  Bruno Haible  <bruno@clisp.org>
73464
73465         * lib/tls.h: New file, from GNU gettext.
73466         * lib/tls.c: New file, from GNU gettext.
73467
73468 2005-08-16  Bruno Haible  <bruno@clisp.org>
73469
73470         * lib/strnlen1.h: New file.
73471         * lib/strnlen1.c: New file.
73472
73473 2005-08-16  Bruno Haible  <bruno@clisp.org>
73474
73475         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73476         (mbi_init): Update.
73477         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73478         NUL byte, not after it.
73479
73480 2005-08-16  Bruno Haible  <bruno@clisp.org>
73481
73482         * lib/strcase.h (strcasecmp): Add note in comments.
73483         * lib/strncasecmp.c: Use code from strcasecmp.c.
73484         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73485         (strcasecmp): Work correctly in multibyte locales.
73486
73487 2005-08-16  Bruno Haible  <bruno@clisp.org>
73488
73489         * lib/mbiter.h: New file.
73490
73491 2005-08-16  Bruno Haible  <bruno@clisp.org>
73492
73493         * lib/mbfile.h: New file.
73494
73495 2005-08-16  Bruno Haible  <bruno@clisp.org>
73496
73497         * lib/mbchar.h: New file.
73498         * lib/mbchar.c: New file.
73499
73500 2005-08-16  Bruno Haible  <bruno@clisp.org>
73501
73502         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73503         the valid ones. Makes the comparison operations transitive:
73504         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73505         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73506
73507 2005-08-15  Simon Josefsson  <jas@extundo.com>
73508
73509         * modules/ssize_t (License): Change to 'unlimited'.
73510
73511         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73512
73513 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73514
73515         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73516         Add comments for each pending glibc patch.
73517
73518 2005-08-15  Bruno Haible  <bruno@clisp.org>
73519
73520         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73521         __cplusplus is defined.
73522
73523 2005-08-14  Jim Meyering  <jim@meyering.net>
73524
73525         Sync from coreutils.
73526
73527         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73528         Use the hash-table-based cycle-detection code not just when
73529         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73530         Reported by James Youngman in
73531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73532         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73533         FTS_TIGHT_CYCLE_CHECK.
73534         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73535         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73536         once again.
73537         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73538         * lib/fts.c (fd_safer): Remove decl.
73539         Include fcntl--.h rather than unistd-safer.h
73540         (fts_safe_changedir): Don't call fd_safer; no longer needed
73541         now that we include fcntl--.h.
73542
73543 2005-08-12  Simon Josefsson  <jas@extundo.com>
73544
73545         * modules/getndelim2: Use ssize_t module.
73546         * modules/getnline: Likewise.
73547         * modules/safe-read: Likewise.
73548         * modules/xreadlink: Likewise.
73549
73550         * modules/ssize_t: New file.
73551
73552 2005-08-12  Simon Josefsson  <jas@extundo.com>
73553
73554         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73555
73556 2005-08-12  Simon Josefsson  <jas@extundo.com>
73557
73558         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73559         ssize_t.
73560
73561 2005-08-12  Simon Josefsson  <jas@extundo.com>
73562
73563         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73564         readline, getdelim and check_version.
73565         (Support for systems lacking ISO C 99: Sizes of integer types):
73566         Add size_max.
73567
73568 2005-08-12  Bruno Haible  <bruno@clisp.org>
73569
73570         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73571
73572 2005-08-11  Simon Josefsson  <jas@extundo.com>
73573
73574         * modules/readline: New file.
73575
73576         * modules/strnlen (Files): Add strnlen.h.
73577
73578 2005-08-11  Simon Josefsson  <jas@extundo.com>
73579
73580         * m4/readline.m4: New file.
73581
73582 2005-08-11  Simon Josefsson  <jas@extundo.com>
73583
73584         * lib/readline.h, readline.c: New file.
73585
73586 2005-08-11  Simon Josefsson  <jas@extundo.com>
73587
73588         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73589         gl_AVOID.
73590
73591 2005-08-11  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73594
73595 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73596
73597         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73598
73599 2005-08-10  Simon Josefsson  <jas@extundo.com>
73600
73601         * tests/test-iconvme.c: New file.
73602
73603 2005-08-10  Simon Josefsson  <jas@extundo.com>
73604
73605         * m4/strnlen.m4: New file.
73606
73607         * m4/strndup.m4: Don't check for strnlen declaration, done in
73608         strnlen.m4.
73609
73610 2005-08-10  Simon Josefsson  <jas@extundo.com>
73611
73612         * lib/strndup.c: Use strnlen.h.
73613
73614         * lib/strnlen.h: New file.
73615
73616 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73617
73618         * README: Typos.
73619
73620 2005-08-02  Simon Josefsson  <jas@extundo.com>
73621
73622         * modules/readline: New file.
73623
73624 2005-08-02  Simon Josefsson  <jas@extundo.com>
73625
73626         * modules/getdelim: New file.
73627
73628         * modules/getline: Rewrite, don't use getndelim2.
73629
73630 2005-08-02  Simon Josefsson  <jas@extundo.com>
73631
73632         * m4/getline.m4: Separate out getdelim stuff into separate module.
73633
73634         * m4/getdelim.m4: New file.
73635
73636 2005-08-02  Simon Josefsson  <jas@extundo.com>
73637
73638         * lib/getline.h, getline.c: Rewrite.
73639
73640         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73641
73642 2005-07-31  Bruno Haible  <bruno@clisp.org>
73643
73644         * lib/lock.h (gl_lock_initializer): New macro.
73645         (gl_lock_define_initialized): Use it.
73646         (gl_rwlock_initializer): New macro.
73647         (gl_rwlock_define_initialized): Use it.
73648         (gl_recursive_lock_initializer): New macro.
73649         (gl_recursive_lock_define_initialized): Use it.
73650
73651 2005-07-30  Karl Berry  <karl@gnu.org>
73652
73653         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73654         Report from Ben Pfaff, regarding getopt.
73655
73656 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73659         normal way.
73660         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73661         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73662         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73663         (gl_GETOPT): Use the new macros.  Most of the implementation
73664         is moved to the new macros.  This is for programs like Emacs
73665         that don't want all the functionality of gl_GETOPT.
73666
73667 2005-07-26  Bruno Haible  <bruno@clisp.org>
73668
73669         * m4/lock.m4: Update from GNU gettext.
73670
73671 2005-07-26  Bruno Haible  <bruno@clisp.org>
73672
73673         * lib/lock.h: Update from GNU gettext.
73674         * lib/lock.c: Update from GNU gettext.
73675
73676 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73679         obsolescent AC_TRY_RUN.  Include the default includes files, for
73680         'exit'.
73681
73682 2005-07-24  Bruno Haible  <bruno@clisp.org>
73683
73684         * modules/visibility: New file.
73685         * MODULES.html.sh (Misc): Add visibility.
73686
73687 2005-07-24  Bruno Haible  <bruno@clisp.org>
73688
73689         * m4/visibility.m4: New file.
73690
73691 2005-07-24  Bruno Haible  <bruno@clisp.org>
73692
73693         * doc/visibility.texi: New file.
73694
73695 2005-07-22  Bruno Haible  <bruno@clisp.org>
73696
73697         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73698         $(ALLOCA_H), redundant through BUILT_SOURCES.
73699         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73700         redundant through BUILT_SOURCES.
73701         * modules/byteswap (Makefile.am): Remove explicit dependency on
73702         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73703         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73704         $(FNMATCH_H), redundant through BUILT_SOURCES.
73705         * modules/getopt (Makefile.am): Remove explicit dependency on
73706         $(GETOPT_H), redundant through BUILT_SOURCES.
73707         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73708         redundant through BUILT_SOURCES.
73709         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73710         redundant through BUILT_SOURCES.
73711         * modules/stdbool (Makefile.am): Remove explicit dependency on
73712         $(STDBOOL_H), redundant through BUILT_SOURCES.
73713         * modules/stdint (Makefile.am): Remove explicit dependency on
73714         $(STDINT_H), redundant through BUILT_SOURCES.
73715         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73716         Remove explicit dependency on $(SYSEXITS_H).
73717         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73718
73719 2005-07-18  Simon Josefsson  <jas@extundo.com>
73720
73721         * lib/check-version.c (check_version): Accept identical versions too.
73722
73723 2005-07-18  Bruno Haible  <bruno@clisp.org>
73724
73725         * modules/lock: New file.
73726         * MODULES.html.sh (Multithreading): New section.
73727
73728 2005-07-18  Bruno Haible  <bruno@clisp.org>
73729
73730         * m4/lock.m4: New file, from GNU gettext.
73731
73732 2005-07-18  Bruno Haible  <bruno@clisp.org>
73733
73734         * lib/lock.h: New file, from GNU gettext.
73735         * lib/lock.c: New file, from GNU gettext.
73736
73737 2005-07-18  Bruno Haible  <bruno@clisp.org>
73738
73739         * lib/lock.h (gl_once_t): New type.
73740         (gl_once_define, gl_once): New macros.
73741         * lib/lock.c (fresh_once): New variable.
73742         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73743         functions.
73744
73745 2005-07-16  Simon Josefsson  <jas@extundo.com>
73746
73747         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73748         workaround, suggested by Bruno.
73749
73750 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * modules/xalloc (Depends-on): Add xalloc-die.
73753         * modules/xvasprintf (Depends-on): Add xalloc-die.
73754
73755 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73758         with a minor change.
73759
73760 2005-07-15  Bruno Haible  <bruno@clisp.org>
73761
73762         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73763         When using lib/poll.c, define poll as rpl_poll.
73764
73765 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         * modules/argp (Depends-on): Remove unlocked-io.
73768
73769 2005-07-14  Derek Price  <derek@ximbiot.com>
73770
73771         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73772         for glob symlink bug.
73773
73774 2005-07-14  Bruno Haible  <bruno@clisp.org>
73775
73776         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73777         Instead, test for *_unlocked function declarations directly.
73778
73779 2005-07-11  Simon Josefsson  <jas@extundo.com>
73780
73781         * modules/size_max: New file.
73782
73783         * modules/xsize: Depend on size_max module for size_max.m4.
73784
73785 2005-07-11  Simon Josefsson  <jas@extundo.com>
73786
73787         * lib/size_max.h: New file.
73788
73789 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73790
73791         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73792         copyright symbol and the year.
73793         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73794         (version_etc_va): Use parameterized copyright notice.
73795         Reword to conform to the current GNU coding standards.
73796
73797 2005-07-11  Karl Berry  <karl@gnu.org>
73798
73799         * doc/gnulib.texi (Quoting): new node.
73800         (Initial import): more info, from Patrice.
73801
73802 2005-07-11  Bruno Haible  <bruno@clisp.org>
73803
73804         * gnulib-tool (func_usage): Document option --avoid.
73805         (Command line options): Handle --avoid.
73806         (func_acceptable): New function.
73807         (func_modules_transitive_closure): Use it.
73808
73809 2005-07-11  Bruno Haible  <bruno@clisp.org>
73810
73811         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73812         Reported by Jim Meyering.
73813
73814 2005-07-10  Bruno Haible  <bruno@clisp.org>
73815
73816         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73817         Needed when size_t is smaller than 'unsigned int'.
73818         Reported by Paul Eggert.
73819
73820 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73821
73822         * modules/argp (Depends-on): Add unlocked-io
73823
73824 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73825
73826         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73827         block of defines.
73828
73829 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73832         fix now.
73833
73834 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73835         and Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73838         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73839
73840 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * modules/regex (Files): Add lib/regex_internal.c,
73843         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73844         (Depends-on): Add extensions.
73845         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73846
73847 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73850         pathconf.
73851         * m4/same.m4 (gl_SAME): Likewise.
73852         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73853
73854         * m4/regex.m4: Adjust to new libc regex implementation.
73855         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73856         all the .c and .h parts of (the new) regex.
73857         Quote the m4 stuff better.
73858         Check for RE_ICASE bug of old gnulib.
73859         Check for REG_STARTEND of recent libc.
73860         Rename local variables from jm_* to gl_*.
73861         Quote operand of "test -f".
73862         Say "recent enough" version of libc, not "version 2".
73863         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73864         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73865         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73866         Remove check for btowc, isascii.
73867         Require AM_LANGINFO_CODESET.
73868
73869 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73870
73871         * lib/regex.c, regex.h: Sync from libc.
73872         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73873         * lib/regexec.c:
73874         New files, synced from libc, except that regex_internal.h
73875         currently has a small porting fix.
73876
73877 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73880         regex_internal.c, regexec.c.
73881         Add regex_internal.h too, but as a comment, since the libc version
73882         is currently broken in gnulib mode.
73883
73884 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         Support programs like Emacs that use gnulib but not gettext.
73887         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73888         * modules/gettext-h: New file.
73889         * modules/gettext (Files): Remove lib/gettext.h.
73890         (Depends-on): Add gettext-h.
73891         (Makefile.am): Remove lib_SOURCES.
73892         * modules/argmatch, modules/c-stack, modules/closeout:
73893         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73894         * modules/execute, modules/file-type, modules/getaddrinfo:
73895         * modules/getopt, modules/human, modules/javacomp:
73896         * modules/javaexec, modules/mkdir-p, modules/obstack:
73897         * modules/openat, modules/pagealign_alloc, modules/pipe:
73898         * modules/quotearg, modules/regex, modules/rpmatch:
73899         * modules/unicodeio, modules/userspec, modules/version-etc:
73900         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73901         * modules/xsetenv:
73902         Depend on gettext-h, not gettext.
73903
73904 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * gnulib-tool (func_import): Add support for 'public domain' license.
73907         * modules/alloca, modules/atexit, modules/memmove:
73908         Now public domain, not GPL.
73909         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73910         * modules/realloc, modules/strerror, modules/strtod:
73911         Now LGPL, not GPL.
73912
73913 2005-07-05  Bruno Haible  <bruno@clisp.org>
73914
73915         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73916         autoconf CVS. Needed for mingw.
73917
73918 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         Remove the dependency of the strftime module on the tzset module.
73921         * modules/strftime (Depends-on): Remove dependency on tzset.
73922
73923 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         Remove the dependency of the strftime module on the tzset module.
73926         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73927         gl_FUNC_TZSET_CLOBBER.
73928
73929 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         Remove the dependency of the strftime module on the tzset module.
73932         * lib/strftime.c (my_strftime)
73933         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73934         Copy the input structure, to work around some of the bug with
73935         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73936         Solaris releases, you should also use the tzset module, but we won't
73937         require it as a dependency any more since we don't want LGPLed code
73938         to depend on GPLed code.
73939
73940 2005-07-02  Jim Meyering  <jim@meyering.net>
73941
73942         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73943         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73944         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73945         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73946
73947 2005-07-02  Jim Meyering  <jim@meyering.net>
73948
73949         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73950
73951 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73954         declares only 'struct timespec;' (!).
73955
73956 2005-07-01  Jim Meyering  <jim@meyering.net>
73957
73958         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73959         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73960         * lib/save-cwd.c, tempname.c:
73961         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73962         and don't include <sys/file.h>).
73963
73964 2005-06-29  Jim Meyering  <jim@meyering.net>
73965
73966         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73967         type name.  Use the variable name instead.
73968         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73969         Likewise.
73970
73971 2005-06-28  Simon Josefsson  <jas@extundo.com>
73972
73973         * modules/check-version (Files): Add check-version.m4.
73974
73975 2005-06-28  Simon Josefsson  <jas@extundo.com>
73976
73977         * m4/check-version.m4: New file, suggested by Jim Meyering
73978         <jim@meyering.net>.
73979
73980 2005-06-28  Simon Josefsson  <jas@extundo.com>
73981
73982         * lib/check-version.h, lib/check-version.c: New files.
73983
73984 2005-06-28  Simon Josefsson  <jas@extundo.com>
73985
73986         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73987         collision with global variable.  Better indentation.  Don't
73988         increment buffer pointer beyond buffer end.  Based on comments
73989         from Paul Eggert <eggert@cs.ucla.edu>.
73990
73991         * lib/base64.h: Indent.
73992
73993 2005-06-28  Simon Josefsson  <jas@extundo.com>
73994
73995         * doc/gnulib.texi (Library version handling): New section.
73996
73997 2005-06-28  Jim Meyering  <jim@meyering.net>
73998
73999         * check-module (find_included_lib_files): Hard-code another
74000         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74001         but modules/fts-lgpl (correctly) does not list those files.
74002
74003         * modules/canonicalize (Files): Add lib/pathmax.h.
74004
74005 2005-06-25  Simon Josefsson  <jas@extundo.com>
74006
74007         * modules/check-version: New file.
74008
74009 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74010
74011         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74012         initializer of struct addrinfo, as an indication that we don't
74013         care how many members the structure has.
74014
74015 2005-06-24  Derek Price  <derek@ximbiot.com>
74016         and Bruno Haible  <bruno@clisp.org>
74017
74018         Remove stat module & update lstat.
74019         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74020         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74021         * m4/stat.m4: Remove this file.
74022
74023 2005-06-24  Derek Price  <derek@ximbiot.com>
74024         and Bruno Haible  <bruno@clisp.org>
74025
74026         Remove stat module & update lstat.
74027         * lib/stat.c: Remove this file...
74028         (slash_aware_lstat): ...moving this content and its support...
74029         * lib/lstat.c (rpl_lstat): ...into here.
74030         * lib/lstat.h: New file.
74031
74032 2005-06-24  Derek Price  <derek@ximbiot.com>
74033         and Bruno Haible  <bruno@clisp.org>
74034
74035         Remove stat module & update lstat.
74036         * config/srclist.txt (libc sources): Remove stat.
74037
74038 2005-06-24  Derek Price  <derek@ximbiot.com>
74039         and Bruno Haible  <bruno@clisp.org>
74040
74041         Remove stat module & update lstat.
74042         * MODULES.html.sh (stat): Remove.
74043         * MODULES.html: Regenerated.
74044         * modules/lstat (Description): Correct function name.
74045         (Files): Add "lstat.h".
74046         (Depends-on): Remove stat, add xalloc, stat-macros.
74047         * modules/stat: Remove this file.
74048         (Include): Add "lstat.h", remove <sys/stat.h>.
74049
74050 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74053         (ranged_convert): Don't save conversion in a temporary struct.
74054         This causes a warning with GCC 4.0.0, and anyway in the typical
74055         case it's not worth the extra 100 bytes or so of code.
74056         (ranged_convert, __mktime_internal): When calling a function via a
74057         pointer P, use P () rather than (*P) (), as we now assume C89 or
74058         better.
74059
74060 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74063         "who -r" failed to give output.  Problem reported by Tim Waugh.
74064
74065         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74066         (xcalloc): Use it to avoid needless tests.
74067         Problem reported by Jim Meyering.
74068
74069 2005-06-20  Derek Price  <derek@ximbiot.com>
74070
74071         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74072         unnecessary for Autoconfs > 2.59c.
74073
74074 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74075
74076         * lib/argp.h (__option_is_short): Check upper limit of
74077         __key. Isprint() requires its argument to have the value
74078         of an unsigned char or EOF.
74079
74080 2005-06-16  Jim Meyering  <jim@meyering.net>
74081
74082         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74083         when either N or S is zero.
74084
74085 2005-06-16  Derek Price  <derek@ximbiot.com>
74086
74087         * m4/bison.m4: Declare YACC & YFLAGS precious.
74088
74089 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74092         multibyte string or pattern, fall back on unibyte matching.
74093         Problem reported by James Youngman.
74094
74095 2005-06-08  Bruno Haible  <bruno@clisp.org>
74096
74097         * modules/csharpcomp: New file.
74098         * MODULES.html.sh (C#): Add csharpcomp.
74099
74100 2005-06-08  Bruno Haible  <bruno@clisp.org>
74101
74102         * m4/csharpcomp.m4: New file, from GNU gettext.
74103
74104 2005-06-08  Bruno Haible  <bruno@clisp.org>
74105
74106         * lib/csharpcomp.h: New file, from GNU gettext.
74107         * lib/csharpcomp.c: New file, from GNU gettext.
74108         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74109
74110 2005-06-08  Bruno Haible  <bruno@clisp.org>
74111
74112         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74113         warning on mingw.
74114
74115 2005-06-07  Derek Price  <derek@ximbiot.com>
74116
74117         Sync from CVS.
74118         * lib/glob_.h: Indent nested #ifdef.
74119
74120 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74121
74122         Sync from coreutils.
74123         Use "file name" when talking about file names, instead of "filename"
74124         or "path", as per the GNU coding standards.
74125         * lib/mkdir-p.c: Renamed from makepath.c.
74126         (make_dir_parents): Renamed from make_path.  All callers changed.
74127         * lib/mkdir-p.h: Likewise.  All includers changed.
74128         * lib/filenamecat.c: Renamed from path-concat.c.
74129         (file_name_concat): Renamed from path_concat.  All callers changed.
74130         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74131         * lib/filenamecat.h: Likewise.  All includers changed.
74132         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74133         in comments or local variable names.
74134         * lib/basename.c: Likewise.
74135         * lib/canonicalize.c, canonicalize.h: Likewise.
74136         * lib/dirname.c, dirname.h: Likewise.
74137         * lib/euidaccess.c: Likewise.
74138         * lib/exclude.c: Likewise
74139         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74140         * lib/fsusage.c, fsuage.h: Likewise.
74141         * lib/fts.c, fts_.h: Likewise.
74142         * lib/getcwd.c: Likewise.
74143         * lib/getloadavg.c: Likewise.
74144         * lib/mkstemp.c: Likewise.
74145         * lib/mountlist.c, mountlist.h: Likewise.
74146         * lib/openat.c, openat.h: Likewise.
74147         * lib/readlink-stub.c: Likewise.
74148         * lib/readutmp.c, readutmp.h: Likewise.
74149         * lib/rename.c: Likewise.
74150         * lib/rmdir.c: Likewise.
74151         * lib/same.c: Likewise.
74152         * lib/savedir.c: Likewise.
74153         * lib/stripslash.c: Likewise.
74154         * lib/tempname.c: Likewise.
74155         * lib/xreadlink.c: Likewise.
74156         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74157         All uses changed.
74158         * lib/exclude.h: Likewise.
74159
74160         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74161         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74162         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74163         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74164         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74165         files have been getting away with it for years (MORE/BSD 4.3
74166         is extinct now).
74167         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74168         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74169
74170         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74171         Define to 256, not 255, as per modern POSIX.
74172
74173 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         Sync from coreutils.
74176         Use "file name" when talking about file names, instead of "filename"
74177         or "path", as per the GNU coding standards.
74178         * MODULES.html.sh: mkdir-p renamed from makepath.
74179         filenamecat renamed from path-concat.
74180         * modules/filenamecat: Renamed from modules/path-concat.
74181         (Files): filenamecat.h and filenamecat.c renamed from
74182         path-concat.h and path-concat.c.
74183         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74184         (Include): filenamecat.h, not path-concat.h.
74185         * modules/mkdir-p: Renamed from modules/makepath.
74186         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74187         makepath.c.
74188         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74189         (Include): mkdir-p.h, not makepath.h.
74190
74191 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74192
74193         Sync from coreutils.
74194         * m4/mkdir-p.m4: Renamed from makepath.m4.
74195         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74196         Rename files from makepath.c to mkdir-p.c, and from
74197         makepath.h to mkdir-p.h.
74198         * m4/filenamecat.m4: Renamed from path-concat.m4.
74199         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74200         Rename files from path-concat.c to filenamecat.c,
74201         and from path-concat.h to filenamecat.h.
74202         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74203         "file name" in local variables or comments.
74204         * m4/rename.m4: Likewise.
74205
74206 2005-06-01  Bruno Haible  <bruno@clisp.org>
74207
74208         * modules/csharpexec: New file.
74209         * MODULES.html.sh (C#): New section.
74210
74211 2005-06-01  Bruno Haible  <bruno@clisp.org>
74212
74213         * m4/csharp.m4: New file, from GNU gettext.
74214         * m4/csharpexec.m4: New file, from GNU gettext.
74215
74216 2005-06-01  Bruno Haible  <bruno@clisp.org>
74217
74218         * lib/csharpexec.h: New file, from GNU gettext.
74219         * lib/csharpexec.c: New file, from GNU gettext.
74220         * lib/csharpexec.sh.in: New file, from GNU gettext.
74221
74222 2005-05-31  Derek Price  <derek@ximbiot.com>
74223             Paul Eggert  <eggert@cs.ucla.edu>
74224
74225         Sync from cvs.
74226         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74227
74228 2005-05-31  Derek Price  <derek@ximbiot.com>
74229             Paul Eggert  <eggert@cs.ucla.edu>
74230
74231         Sync from cvs.
74232         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74233
74234 2005-05-29  Derek Price  <derek@ximbiot.com>
74235
74236         * config/srclist.txt (glob_.h, glob.c): Add these files.
74237
74238 2005-05-29  Derek Price  <derek@ximbiot.com>
74239
74240         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74241         * modules/glob: New file.
74242         * modules/getlogin_r: Add link to POSIX spec in description.
74243
74244 2005-05-29  Derek Price  <derek@ximbiot.com>
74245             Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         * m4/glob.m4: New file.
74248
74249 2005-05-29  Derek Price  <derek@ximbiot.com>
74250             Paul Eggert  <eggert@cs.ucla.edu>
74251
74252         * lib/glob_.h, lib/glob.c: New files.
74253
74254 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74257         * modules/fts-lgpl (Depends-on): Remove gettext.
74258
74259 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74262         and don't require gt_INTTYPES_PRI.
74263
74264 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74267
74268         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74269         the configuration hassle isn't worth it.
74270         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74271         (LONGEST_MODIFIER, PRIuMAX): Remove.
74272
74273 2005-05-27  Bruno Haible  <bruno@clisp.org>
74274
74275         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74276
74277 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74280         _POSIX_PTHREAD_SEMANTICS for Solaris.
74281
74282 2005-05-25  Derek Price  <derek@ximbiot.com>
74283
74284         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74285
74286 2005-05-25  Derek Price  <derek@ximbiot.com>
74287             Paul Eggert  <eggert@cs.ucla.edu>
74288
74289         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74290         * lib/getlogin_r.c, getlogin_r.h: New files.
74291
74292 2005-05-25  Bruno Haible  <bruno@clisp.org>
74293             Derek Price  <derek@ximbiot.com>
74294
74295         * lib/getlogin_r.h: Simplify API documentation.
74296
74297 2005-05-23  Derek Price  <derek@ximbiot.com>
74298
74299         * modules/minmax (Files): Add m4/minmax.m4.
74300         (configure.ac): Add gl_MINMAX.
74301
74302 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74303
74304         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74305         so that unistd-safer.h (GPL'ed code) need not be included.
74306
74307 2005-05-22  Bruno Haible  <bruno@clisp.org>
74308
74309         * m4/minmax.m4: New file.
74310         Based on a patch by Derek Price <derek@ximbiot.com>.
74311
74312 2005-05-22  Bruno Haible  <bruno@clisp.org>
74313
74314         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74315         (INT64_MIN): Fix definition.
74316         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74317
74318         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74319         NEED_SIGNED_INT_TYPES.
74320
74321         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74322         HAVE_SYSTEM_INTTYPES.
74323
74324 2005-05-22  Bruno Haible  <bruno@clisp.org>
74325
74326         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74327         Also include <sys/param.h> if it defines MIN, MAX.
74328         Based on a patch by Derek Price <derek@ximbiot.com>.
74329
74330 2005-05-21  Jim Meyering  <jim@meyering.net>
74331
74332         * modules/fts (Files): Add m4/inttypes-pri.m4.
74333         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74334
74335 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74336
74337         New fts module.
74338         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74339         (setup_dir, free_dir): New functions.
74340         (enter_dir, leave_dir): Define trivial
74341         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74342         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74343         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74344         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74345         Move to fts-cycle.c.
74346         (fts_open): Use setup_dir.
74347         (fts_close): Use free_dir.
74348         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74349         This adds a label and some gotos, but the alternatives were messier.
74350         Check for memory allocation failure when entering a dir.
74351         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74352         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74353         (FTS): New member fts_cycle, that is a union that contains the
74354         old active_dir_ht and cycle_state.  All uses changed to mention
74355         fts_cycle.ht and fts_cycle.state.
74356         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74357         fts.c, with the following changes:
74358         (setup_dir, free_dir): New functions.
74359         (enter_dir): Now returns bool.  Return true if successful, false
74360         if memory exhausted.  All callers changed.
74361         Do not bother partly cleaning up on
74362         memory allocation failure; that is free_dir's job.
74363         However, free ad if hash_insert fails, to avoid memory leak.
74364         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74365         fts->fts_options to see which union member to use.
74366
74367 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74368
74369         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74370         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74371
74372 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74375
74376 2005-05-20  Jim Meyering  <jim@meyering.net>
74377
74378         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74379         Now a macro, to pacify GCC.
74380
74381 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74382
74383         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74384         of -1.
74385
74386 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74387
74388         * lib/chown.c (rpl_chown): Return -1 on failure.
74389
74390 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74391
74392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74393         Don't check for stddef.h.
74394         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74395         don't use its results.
74396         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74397         since we include them unconditionally.  Don't require
74398         AM_STDBOOL_H, since stdbool is a prerequisite.
74399         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74400         since we assume C89 or better.
74401         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74402         as we don't use their results.
74403         Don't check for fchdir, memmove, memset, strrchr, as we use
74404         them unconditionally.
74405         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74406         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74407
74408 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74411         Include <stddef.h> unconditionally, since we assume C89 now.
74412         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74413         * lib/fts.c: Include fts_.h first, to check interface.
74414         Do not include intprops.h; no longer needed.
74415         Include cycle-check.h and hash.h, since fts_.h no longer does.
74416         Remove unnecessary casts of closedir to void.
74417         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74418         decide whether to decrement nlinks.
74419         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74420         (FTS): Use struct hash_table * instead of Hash_table, so that
74421         we no longer need to include hash.h here.
74422
74423 2005-05-18  Jim Meyering  <jim@meyering.net>
74424
74425         * modules/dirfd (License): Change to LGPL.  Most of the code
74426         is already in the public domain.
74427
74428 2005-05-18  Jim Meyering  <jim@meyering.net>
74429
74430         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74431         Reported by Yoann Vandoorselaere.
74432
74433 2005-05-17  Jim Meyering  <jim@meyering.net>
74434
74435         * m4/fts.m4: New file, from coreutils.
74436
74437 2005-05-17  Jim Meyering  <jim@meyering.net>
74438
74439         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74440
74441 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         Sync from coreutils.
74444         * m4/unlinkdir.m4: New file.
74445
74446 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         Sync from coreutils.
74449         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74450         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74451         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74452         White space changes only.
74453         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74454         special.
74455         * lib/yesno.c: Include getline.h, not ctype.h.
74456         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74457         Use getline to remove arbitrary restriction on response length.
74458
74459 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74460
74461         * config/srclist-update: Spell out "Street" in FSF postal
74462         mail address; this is the style the FSF seems to prefer.
74463
74464         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74465         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74466         this updates FSF postal mail address.
74467
74468         Sync from coreutils.
74469         * modules/unlinkdir: New file.
74470         * modules/yesno (Depends-on): Add getline.
74471         * MODULES.html.sh (File system functions): Add unlinkdir.
74472
74473 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74476         lib/strsep.h:
74477         Change the initial comment to refer to GPL, not LGPL.
74478         gnulib-tool will change it to LGPL as needed.
74479
74480         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74481         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74482         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74483         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74484         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74485         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74486         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74487         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74488         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74489         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74490         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74491         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74492         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74493         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74494         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74495         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74496         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74497         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74498         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74499         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74500         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74501         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74502         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74503         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74504         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74505         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74506         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74507         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74508         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74509         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74510         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74511         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74512         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74513         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74514         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74515         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74516         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74517         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74518         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74519         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74520         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74521         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74522         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74523         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74524         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74525         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74526         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74527         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74528         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74529         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74530         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74531         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74532         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74533         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74534         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74535         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74536         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74537         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74538         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74539         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74540         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74541         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74542         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74543         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74544         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74545         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74546         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74547         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74548         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74549         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74550         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74551         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74552         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74553         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74554         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74555         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74556         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74557         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74558         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74559         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74560         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74561         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74562         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74563         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74564         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74565         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74566         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74567         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74568         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74569         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74570         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74571         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74572         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74573         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74574         lib/yesno.c, lib/yesno.h:
74575         Update FSF postal mail address.
74576
74577 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74580         tests/test-memmem.c, tests/test-stpncpy.c:
74581         Update FSF postal mail address.
74582
74583 2005-05-13  Bruno Haible  <bruno@clisp.org>
74584
74585         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74586         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74587         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74588         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74589         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74590         Add support for 64-bit integers in the MSVC compiler.
74591
74592 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74593
74594         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74595
74596 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74597
74598         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74599
74600 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * doc/getdate.texi (General date syntax): Don't say that date
74603         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74604         Problem reported by Nic Ferrier.
74605
74606 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74607
74608         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74609         specified in ai_socktype. Fix invalid ai_protocol
74610         check. ai_protocol is usually set to 0 or depending on
74611         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74612         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74613         ai_socktype / ai_protocol in the returned addrinfo structure.
74614
74615 2005-05-10  Simon Josefsson  <jas@extundo.com>
74616
74617         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74618         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74619
74620 2005-05-10  Karl Berry  <karl@gnu.org>
74621
74622         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74623         (from http://www.gnu.org/licenses).
74624         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74625         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74626         fdl.texi suffices.
74627
74628 2005-05-10  Karl Berry  <karl@gnu.org>
74629
74630         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74631         (COPYING.DOC): remove.
74632
74633         * config/srclist-update: new FSF address.
74634
74635 2005-05-10  Derek Price  <derek@ximbiot.com>
74636
74637         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74638         possible.
74639
74640 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74641             Bruno Haible  <bruno@clisp.org>
74642
74643         * modules/inet_ntop: New file.
74644         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74645         inet_ntop.
74646
74647 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74648             Bruno Haible  <bruno@clisp.org>
74649
74650         * m4/inet_ntop.m4: New file.
74651
74652 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74653             Bruno Haible  <bruno@clisp.org>
74654
74655         * lib/inet_ntop.h: New file.
74656         * lib/inet_ntop.c: New file, from glibc with modifications.
74657
74658 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74659
74660         * modules/time_r (License): Change to LGPL.
74661         * modules/extensions (License): Change to LGPL.  Actually,
74662         the license is more permissive than that, but currently gnulib-tool
74663         doesn't know how to handle more-permissive licenses.
74664
74665         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74666         Problem reported by Dave Love.
74667
74668 2005-05-08  Jim Meyering  <jim@meyering.net>
74669
74670         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74671         blank.
74672
74673 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * modules/argmatch (Depends-on): Add stdbool.
74676         * modules/backupfile (Depends-on): Likewise.
74677         * modules/chdir-long (Depends-on): Likewise.
74678         * modules/closeout (Depends-on): Likewise.
74679         * modules/cycle-check (Depends-on): Likewise.
74680         * modules/dirname (Depends-on): Likewise.
74681         * modules/fnmatch (Depends-on): Likewise.
74682         * modules/fsusage (Depends-on): Likewise.
74683         * modules/fwriteerror (Depends-on): Likewise.
74684         * modules/getcwd (Depends-on): Likewise.
74685         * modules/getloadavg (Depends-on): Likewise.
74686         * modules/hard-locale (Depends-on): Likewise.
74687         * modules/makepath (Depends-on): Likewise.
74688         * modules/mountlist (Depends-on): Likewise.
74689         * modules/nanosleep (Depends-on): Likewise.
74690         * modules/posixtm (Depends-on): Likewise.
74691         * modules/quotearg (Depends-on): Likewise.
74692         * modules/readtokens (Depends-on): Likewise.
74693         * modules/readtokens0 (Depends-on): Likewise.
74694         * modules/readutmp (Depends-on): Likewise.
74695         * modules/save-cwd (Depends-on): Likewise.
74696         * modules/strftime (Depends-on): Likewise.
74697         * modules/userspec (Depends-on): Likewise.
74698         * modules/utimecmp (Depends-on): Likewise.
74699         * modules/xgetcwd (Depends-on): Likewise.
74700         * modules/xnanosleep (Depends-on): Likewise.
74701         * modules/xstrtod (Depends-on): Likewise.
74702         * modules/yesno (Depends-on): Likewise.
74703
74704 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74705
74706         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74707         needless checks.
74708
74709 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         Merge from coreutils.  Among other things,
74712         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74713         * lib/fd-safer.c: New file.
74714         * lib/fcntl-safer.h, open-safer.c: Remove.
74715         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74716         * lib/dup-safer.c: Include unistd-safer.h first.
74717         Don't include errno.h.
74718         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74719         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74720         * lib/file-type.c: Rely on file-type.h change.
74721         * lib/getloadavg.c: Include unistd-safer.h.
74722         (getloadavg): Use safer open.
74723         * lib/getusershell.c: Include "stdio-safer.h".
74724         (getusershell): Use safer fopen.
74725         * lib/long-options.c (long_options): Use NULL rather than 0.
74726         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74727         'free'.
74728         * lib/modechange.c: Likewise.
74729         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74730         (MODE_DONE): New constant.
74731         (struct mode_change): Remove 'next' member.
74732         (make_node_op_equals): New function; like the old one of the
74733         same name, except it allocates an array.
74734         (mode_compile, mode_create_from_ref): Use it.
74735         (mode_compile): Allocate result as an array, not a linked list.
74736         Parse octal string ourself, so that we catch mistakes like "+0".
74737         (mode_adjust): Arg is an array, not a linked list.
74738         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74739         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74740         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74741         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74742         Remove.  This is now stat-macros.h's job.
74743         (talloc): Remove.  All callers replaced by xalloc, so that
74744         our invokers don't have to worry about reporting memory failures.
74745         (make_node_op_equals): Remove.
74746         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74747         New constants.
74748         (struct mode_change): Moved here from modechange.h.
74749         (mode_append_entry): Remove.
74750         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74751         apps to have incorrect behavior.  Use simpler algorithm for head
74752         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74753         Detect more invalid usages rather than having somewhat-random behavior.
74754         Don't insert an "a=" action, as that leads to incorrect behavior.
74755         (mode_compile, mode_create_from_ref): Return NULL on error instead
74756         of an enum, since now there's only one way to have an error.  All
74757         callers changed.
74758         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74759         at the correct time.  Simplify calculation of "+u" and its ilk.
74760         Don't mishandle "+X".
74761         (mode_free): Remove "register" and localize decls.
74762         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74763         (struct mode_change): Move to modechange.c; callers don't
74764         need to see this stuff.
74765         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74766         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74767         (mode_change, mode_adjust): Reflect the new signatures noted above.
74768         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74769         that might redefine system include files.
74770         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74771         (my_usleep): Use NULL rather than (void *) 0.
74772         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74773         Use siginterrupt to specify that system calls should be interrupted.
74774         (rpl_nanosleep): Move initialization of suspended closer to call of
74775         my_usleep.
74776         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74777         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74778         (desirable_utmp_entry): New function.
74779         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74780         using x2nrealloc, to simplify logic.
74781         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74782         size calculation.  Do not assume utmp file is a regular file.
74783         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74784         (READ_UTMP_CHECK_PIDS): New constant.
74785         * lib/save-cwd.c: Include unistd-safer.h.
74786         (save_cwd): Use fd_safer.
74787         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74788         [!_LIBC] Include "stat-macros.h" instead.
74789         * lib/unistd-safer.h (fd_safer): New decl.
74790
74791 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * modules/getloadavg (Depends-on): Add unistd-safer.
74794         * modules/getusershell (Depends-on): Add stdio-safer.
74795         * modules/lstat (Depends-on): Remove xalloc.
74796         * modules/mkstemp (Depends-on): Add stat-macros.
74797         * modules/modechange (Depends-on): Remove xstrtol.
74798         Add stat-macros, xalloc.
74799         * modules/save-cwd (Depends-on): Add unistd-safer.
74800         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74801         * modules/unistd-safer (Files): Add lib/fd-safer.c
74802         (Makefile.am): Remove lib_SOURCES.
74803
74804         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74805         Remove fcntl-safer; unistd-safer supersedes it.
74806
74807 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74808
74809         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74810         AC_HEADER_STAT.
74811         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74812         (gl_PREREQ_CHOWN): Remove.
74813         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74814         it.  Don't require AC_HEADER_STAT.
74815         (gl_PREREQ_LSTAT): Remove.
74816         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74817         Don't require AC_HEADER_STAT.
74818         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74819         (gl_PREREQ_RMDIR): Remove.
74820         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74821         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74822         the stat-macros module a prerequisite.
74823         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74824         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74825         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74826         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74827         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74828         variable names.
74829         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74830         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74831         variable prefixes.
74832         * m4/fcntl-safer.m4: Remove.
74833         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74834         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74835         Invoke gl_PREREQ_FD_SAFER.
74836         (gl_PREREQ_FD_SAFER): New macro.
74837         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74838         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74839         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74840         Remove duplicate call to AC_LIBOBJ(readutmp).
74841         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74842
74843         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74844         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74845
74846 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * MODULES.html.sh (Misc): Add byteswap.
74849
74850 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74851
74852         * modules/getcwd (Depends-on): Add extensions.
74853         * modules/openat (Depends-on): Likewise.
74854
74855 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74856
74857         * modules/byteswap: New file.
74858
74859 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74860
74861         * m4/byteswap.m4: New file.
74862
74863 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74864
74865         * lib/byteswap_.h: New file.
74866
74867 2005-04-25  Karl Berry  <karl@gnu.org>
74868
74869         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74870
74871 2005-04-25  Albert Chin  <china@thewrittenword.com>
74872
74873         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74874         Toolkit C bug.
74875
74876 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74877
74878         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74879         (func_ln_if_changed): Remove forcibly for no error message
74880         in case file does not exist.
74881
74882 2005-04-19  Simon Josefsson  <jas@extundo.com>
74883
74884         * gnulib-tool (Options): Make --symlink mean --symbolic.
74885
74886 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74887
74888         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74889
74890 2005-04-16  Simon Josefsson  <jas@extundo.com>
74891
74892         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74893
74894 2005-04-15  Simon Josefsson  <jas@extundo.com>
74895
74896         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74897
74898 2005-04-15  Simon Josefsson  <jas@extundo.com>
74899
74900         * gnulib-tool: Rename --symlink to --symbolic.
74901
74902 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74903
74904         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74905         symbolic links to files instead of copying/moving.  Add --aux-dir,
74906         specifying directory relative --dir where auxiliary build tools
74907         are placed.
74908
74909 2005-04-14  Bruno Haible  <bruno@clisp.org>
74910
74911         * modules/allocsa (License): Change to LGPL.
74912         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74913
74914 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74915
74916         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74917         that "UTC +1 second" continues to work.  Problem reported
74918         by Dmitry V. Levin.
74919         (relunit_snumber): New rule.
74920         (relunit): Use it.
74921
74922 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * lib/getdate.y (universal_time_zone_table): New constant.
74925         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74926         universal_time_zone_table.
74927         (lookup_zone): Prefer universal_time_zone_table to
74928         local_time_zone_table, so that "GMT" time stamps are allowed in
74929         London during the summer.  Problem reported by Ian Abbott.
74930
74931 2005-04-12  Jim Meyering  <jim@meyering.net>
74932
74933         * lib/human.c (humblock): Set *options even when returning due to
74934         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74935         warning from gcc-4.
74936
74937 2005-04-09  Jim Meyering  <jim@meyering.net>
74938
74939         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74940         -Wuninitialized: initialize tm0.tm_year.
74941
74942 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74945         count, since there's no maximum.  All uses changed.
74946         Add member dsts_seen.
74947         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74948         not being INT_MAX.
74949         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74950         Use pc_rels_seen to decide whther a date is absolute.
74951
74952         * lib/getdate.y (number): Don't overwrite year.
74953         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74954         check.
74955
74956 2005-04-02  Simon Josefsson  <jas@extundo.com>
74957
74958         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74959         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74960
74961 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74962
74963         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74964         where no absolute path name can be longer than PATH_MAX.
74965
74966 2005-03-27  Jim Meyering  <jim@meyering.net>
74967
74968         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74969
74970 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74973         "one's complement" -> "ones' complement" in comment, as per Knuth.
74974         "value of type" -> "type or expression" in comment.
74975         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74976
74977 2005-03-26  Jim Meyering  <jim@meyering.net>
74978
74979         Comment nits.
74980         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74981         Correct typos: s/or/of/.
74982
74983 2005-03-26  Jim Meyering  <jim@meyering.net>
74984
74985         * modules/check-include-files: Move to ../ and rename to...
74986         * check-module: ...this.
74987
74988 2005-03-25  Jim Meyering  <jim@meyering.net>
74989
74990         * modules/xvasprintf (Files): Add xalloc.h.
74991
74992 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74993
74994         * modules/gettext (Files): config/config.rpath ->
74995         build-aux/config.rpath
74996         * modules/iconv (Files): Likewise.
74997         Problem reported by Oskar Liljeblad.
74998
74999 2005-03-23  Jim Meyering  <jim@meyering.net>
75000
75001         * modules/check-include-files: New script to check for
75002         missing dependencies, multiple includes, etc.
75003
75004         * modules/c-strtold (Depends-on): Add xalloc.
75005         * modules/c-strtod (Depends-on): Add xalloc.
75006         * modules/hash (Depends-on): Add xalloc.
75007         (Files): Remove lib/xalloc.h.
75008
75009         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75010         * modules/userspec (Files): Add lib/inttostr.h.
75011
75012 2005-03-23  Jim Meyering  <jim@meyering.net>
75013
75014         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75015
75016 2005-03-22  Jim Meyering  <jim@meyering.net>
75017
75018         * modules/stat-macros: New module.
75019         * modules/canonicalize, modules/euidaccess, modules/file-type,
75020         * modules/filemode, modules/lchown, modules/makepath,
75021         * modules/rmdir, modules/stat: Depend on new stat-macros module
75022         rather than listing lib/stat-macros.h manually.
75023         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75024
75025 2005-03-22  Jim Meyering  <jim@meyering.net>
75026
75027         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75028
75029 2005-03-22  Bruno Haible  <bruno@clisp.org>
75030
75031         * config/srclist.txt: Replace target directory 'config' with
75032         'build-aux'.
75033         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75034         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75035         ../build-aux/.
75036
75037 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75038
75039         * modules/chdir-long (Depends-on): Add mempcpy.
75040
75041         * modules/acl, modules/backupfile, modules/c-strtod,
75042         modules/c-strtold, modules/canon-host, modules/canonicalize,
75043         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75044         modules/exclude, modules/exitfail, modules/file-type,
75045         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75046         modules/getdate, modules/getline, modules/getpagesize,
75047         modules/getpass, modules/getugroups, modules/group-member,
75048         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75049         modules/inttostr, modules/long-options, modules/makepath,
75050         modules/md5, modules/memcasecmp, modules/memcoll,
75051         modules/modechange, modules/mountlist, modules/path-concat,
75052         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75053         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75054         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75055         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75056         modules/strftime, modules/strndup, modules/strverscmp,
75057         modules/timespec, modules/unlocked-io, modules/userspec,
75058         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75059         modules/yesno:
75060         Remove lib_SOURCES line from Makefile.am section, as this is now
75061         done automatically by the corresponding Autoconf macro.
75062
75063 2005-03-21  Jim Meyering  <jim@meyering.net>
75064
75065         Changes imported from coreutils.
75066
75067         * lib/cycle-check.c: Don't include xalloc.h.
75068
75069         * lib/path-concat.c: Don't include assert.h.
75070         (path_concat): Remove assertion that would have triggered
75071         for ABASE starting with more than one slash.
75072         Reported by Andreas Schwab.
75073
75074         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75075         properly when ABASE is an absolute file name.
75076         Correct the description of this function.
75077         Include <assert.h>.
75078         Add an assertion and a test driver.
75079         This fixes a bug introduced on 2004-07-02.
75080         Andreas Schwab reported the resulting failure of cp --parents:
75081         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75082
75083 2005-03-21  Jim Meyering  <jim@meyering.net>
75084
75085         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75086         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75087
75088 2005-03-21  Jim Meyering  <jim@meyering.net>
75089         and  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75092         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75093         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75094         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75095         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75096         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75097         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75098         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75099         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75100         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75101         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75102         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75103         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75104         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75105         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75106         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75107         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75108         for these modules.
75109
75110 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75111
75112         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75113         (which shouldn't happen), generate nothing instead of returning 0
75114         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75115
75116 2005-03-16  Bruno Haible  <bruno@clisp.org>
75117
75118         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75119         HAVE_LONGLONG_64BIT.
75120
75121 2005-03-16  Bruno Haible  <bruno@clisp.org>
75122
75123         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75124         HAVE_LONGLONG_64BIT.
75125
75126 2005-03-16  Bruno Haible  <bruno@clisp.org>
75127
75128         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75129         HAVE_LONGLONG_64BIT.
75130
75131 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75132
75133         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75134         reliably distinguish strftime failure from empty output on POSIX
75135         hosts.
75136
75137 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75140         (iconv_string): Don't guess a size-zero buffer, as that might cause
75141         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75142         result would be 'too large', where 'too large' is (heuristically)
75143         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75144         overflow concerns.  This will prevent some unwanted malloc failures
75145         when the inputs are very large.
75146
75147 2005-03-15  Karl Berry  <karl@gnu.org>
75148
75149         * config/srclist.txt (config.rpath): from gettext.
75150         * config/config.rpath: update.
75151
75152 2005-03-15  Bruno Haible  <bruno@clisp.org>
75153
75154         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75155         to 'negate'.
75156
75157         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75158         variable.
75159
75160         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75161         results.
75162
75163 2005-03-14  Simon Josefsson  <jas@extundo.com>
75164
75165         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75166         <fx@gnu.org>.
75167
75168 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75171         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75172         intprops.h.
75173         * lib/strtol.c: Likewise.
75174
75175 2005-03-14  Jim Meyering  <jim@meyering.net>
75176
75177         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75178         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75179         to be nonzero so that we (and caller) can detect the difference
75180         between a valid zero-length expansion and an error return, even
75181         when the underlying strftime fails before writing anything into
75182         that location.
75183
75184 2005-03-14  Bruno Haible  <bruno@clisp.org>
75185
75186         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75187         Update from GNU gettext 0.14.3.
75188
75189 2005-03-10  Jim Meyering  <jim@meyering.net>
75190
75191         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75192
75193 2005-03-10  Jim Meyering  <jim@meyering.net>
75194
75195         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75196         so that this module works on systems without fchdir.
75197
75198 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75199
75200         Factor int-properties macros into a single file, except for
75201         glibc-related files.
75202         * lib/intprops.h: New file.
75203         * lib/getloadavg.c: Include it instead of limits.h.
75204         (INT_STRLEN_BOUND): Remove.
75205         * lib/human.c: Include intprops.h.
75206         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75207         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75208         302/1000.
75209         * lib/inttostr.h: Include intprops.h instead of limits.h.
75210         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75211         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75212         for consistency with intprops.h.
75213         (time_t_is_integer, twos_complement_arithmetic): Use them.
75214         * lib/sig2str.h: Include <signal.h>, intprops.h.
75215         (INT_STRLEN_BOUND): Remove.
75216         * lib/strftime.c (TYPE_SIGNED): Remove.
75217         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75218         * lib/strtol.c: Adjust comments to match intprops.h.
75219         * lib/userspec.c: Include intprops.h.
75220         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75221         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75222         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75223         instead of rolling our own expressions.
75224         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75225
75226         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75227         instead of int.
75228         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75229         the right thing even if adding 1900 would overflow.  Similarly
75230         for tm_mon + 1 and tm_yday + 1.
75231         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75232         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75233         (DO_SIGNED_NUMBER): New macro.
75234         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75235
75236 2005-03-07  Bruno Haible  <bruno@clisp.org>
75237
75238         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75239
75240 2005-03-07  Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75243
75244 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75245
75246         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75247         (func_import): Only replace files via --import when they have actually
75248         changed.
75249
75250 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75251
75252         * m4/mmap-anon.m4: New file.
75253         * m4/pagealign_alloc.m4: New file.
75254
75255 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75256             Bruno Haible  <bruno@clisp.org>
75257
75258         * modules/pagealign_alloc: New file.
75259         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75260
75261 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75262             Bruno Haible  <bruno@clisp.org>
75263
75264         * lib/pagealign_alloc.h: New file.
75265         * lib/pagealign_alloc.c: New file.
75266
75267 2005-03-03  Bruno Haible  <bruno@clisp.org>
75268
75269         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75270         Use an all-permissive copyright notice, recommended by RMS.
75271
75272 2005-03-02  Bruno Haible  <bruno@clisp.org>
75273
75274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75275         of AIX, the replacement has to be done only after <string.h> is
75276         included, therefore not in config.h. stpncpy.h does the replacement,
75277         and stpncpy.c uses it.
75278
75279 2005-03-02  Bruno Haible  <bruno@clisp.org>
75280
75281         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75282         stpncpy.c uses it.
75283
75284 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75287         The workaround isn't strictly needed for POSIX conformance, and
75288         it's too much of a pain to configure and maintain.  We'll ask
75289         people to fix their kernels instead.
75290         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75291         (NANOSLEEP_BUG_WORKAROUND): Remove.
75292         (xnanosleep): Remove the workaround.
75293
75294 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75297         Reported by Derek Price.
75298         (Include): Add "timespec.h".
75299
75300         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75301
75302 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75305         to detect nanosleep bug.
75306
75307 2005-03-01  Bruno Haible  <bruno@clisp.org>
75308
75309         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75310
75311 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75312
75313         * modules/gethrxtime: New file.
75314         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75315         (Depends-on): Add gethrxtime.
75316         (configure.ac): Add gl_XNANOSLEEP.
75317         (Makefile.am): Remove lib_SOURCES line.
75318
75319 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75322         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75323
75324 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75327         * lib/timespec.h (gettime): Return void, since it always
75328         succeeds now.  All uses changed.
75329         * lib/gettime.c (gettime): Likewise.
75330         [HAVE_NANOTIME]: Prefer nanotime.
75331         Assume gettimeofday succeeds, as POSIX requires.
75332         Assime time () succeeds, since other code already does.
75333         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75334         (timespec_subtract): Remove.
75335         (NANOSLEEP_BUG_WORKAROUND): New constant.
75336         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75337         things considerably.  Use it only on GNU/Linux hosts, since the
75338         workaround shouldn't be needed elsewhere.
75339
75340 2005-02-24  Bruno Haible  <bruno@clisp.org>
75341
75342         * modules/gettext (Files): Add m4/glibc2.m4.
75343
75344 2005-02-24  Bruno Haible  <bruno@clisp.org>
75345
75346         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75347         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75348         * m4/progtest.m4:
75349         Update from GNU gettext 0.14.2.
75350         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75351
75352 2005-02-24  Bruno Haible  <bruno@clisp.org>
75353
75354         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75355         * lib/config.charset: Update from GNU gettext 0.14.2.
75356
75357 2005-02-24  Bruno Haible  <bruno@clisp.org>
75358
75359         * lib/gettext.h: Update from GNU gettext 0.14.2.
75360
75361 2005-02-23  Simon Josefsson  <jas@extundo.com>
75362
75363         * m4/iconvme.m4: New file.
75364
75365 2005-02-23  Jim Meyering  <jim@meyering.net>
75366
75367         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75368         change.
75369         Thanks to Bruno Haible for catching it.
75370
75371 2005-02-22  Simon Josefsson  <jas@extundo.com>
75372
75373         * modules/iconvme: New file.
75374
75375         * MODULES.html.sh: Add iconvme.
75376
75377 2005-02-22  Simon Josefsson  <jas@extundo.com>
75378
75379         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75380
75381 2005-02-22  Simon Josefsson  <jas@extundo.com>
75382
75383         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75384
75385 2005-02-22  Jim Meyering  <jim@meyering.net>
75386
75387         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75388         s/ifndef/ifdef/.
75389
75390 2005-02-20  Neil Conway  <neilc@samurai.com>
75391
75392         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75393         returned by OSX/Darwin if the specified buffer is not large
75394         enough for the hostname.
75395
75396 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75397
75398         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75399         pass it to _help, otherwise the latter coredumps trying to
75400         dereference state.root_argp.
75401
75402 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75403
75404         * modules/chdir-long (Depends-on): Add memrchr.
75405         * modules/memrchr (Files): Add lib/memrchr.h.
75406         (Include): "memrchr.h".
75407
75408 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75411
75412 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * lib/memrchr.h: New file.
75415         * lib/chdir-long.c: Include it.
75416         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75417         Don't bother including stddef.h.
75418
75419 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75422         inclusion.
75423         Include <sys/types.h>, for dev_t.
75424         (ME_DUMMY, ME_REMOTE): Move from here....
75425         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75426         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75427         Dmitry V. Levin.
75428         Include mountlist.h first, to test the interface.
75429
75430 2005-01-29  Bruno Haible  <bruno@clisp.org>
75431
75432         * lib/progname.c (program_name): Initialize.
75433         Needed when linking statically on MacOS X.
75434
75435 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         Sync from coreutils.
75438         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75439         (Depends-on): Add c-strtod.
75440         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75441
75442 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         Sync from coreutils.
75445         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75446
75447         Remove files that are specific to coreutils.
75448         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75449
75450 2005-01-28  Bruno Haible  <bruno@clisp.org>
75451
75452         * modules/javacomp: New file.
75453         * MODULES.html.sh (Java): Add javacomp.
75454
75455 2005-01-28  Bruno Haible  <bruno@clisp.org>
75456
75457         * m4/javacomp.m4: New file, from GNU gettext.
75458
75459 2005-01-28  Bruno Haible  <bruno@clisp.org>
75460
75461         * lib/javacomp.sh.in: New file, from GNU gettext.
75462         * lib/javacomp.h: New file, from GNU gettext.
75463         * lib/javacomp.c: New file, from GNU gettext.
75464
75465 2005-01-26  Simon Josefsson  <jas@extundo.com>
75466
75467         * lib/gai_strerror.c: Use GPL in header.
75468
75469 2005-01-26  Bruno Haible  <bruno@clisp.org>
75470
75471         * modules/javaexec: New file.
75472         * MODULES.html.sh (Java): Add javaexec.
75473
75474 2005-01-26  Bruno Haible  <bruno@clisp.org>
75475
75476         * m4/javaexec.m4: New file, from GNU gettext.
75477
75478 2005-01-26  Bruno Haible  <bruno@clisp.org>
75479
75480         * lib/javaexec.sh.in: New file, from GNU gettext.
75481         * lib/javaexec.h: New file, from GNU gettext.
75482         * lib/javaexec.c: New file, from GNU gettext.
75483
75484 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75485
75486         * modules/lchown (Depends-on): Remove lchown.h
75487
75488 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75489
75490         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75491         must be defined if the header file was not found, in order
75492         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75493
75494 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75495
75496         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75497         initializers for struct pentry_state.
75498         (__argp_error): Check return value of __asprintf
75499         (__argp_failure): Translate error message
75500
75501         * lib/argp-parse.c: Removed braces around the expansion of N_()
75502
75503 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75504
75505         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75506         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75507         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75508         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75509         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75510         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75511         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75512         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75513         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75514         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75515         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75516         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75517         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75518         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75519         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75520         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75521         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75522         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75523         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75524         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75525         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75526         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75527         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75528         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75529         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75530         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75531         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75532         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75533         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75534         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75535         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75536         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75537         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75538         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75539         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75540         Use an all-permissive copyright notice, recommended by RMS.
75541
75542 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * modules/chdir-long (Depends-on): Remove mempcpy.
75545
75546 2005-01-21  Jim Meyering  <jim@meyering.net>
75547
75548         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75549         same value as for Solaris 9.
75550
75551         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75552         component length.  This included changing the parameter to be
75553         of type `char *' rather than `char const *'.
75554         * lib/chdir-long.h (chdir_long): Update prototype.
75555
75556         * lib/openat.c (fdopendir, fstatat): New functions.
75557         * lib/openat.h: Include headers required for use of DIR and struct
75558         stat.
75559         [AT_SYMLINK_NOFOLLOW]: Define.
75560         (fdopendir, fstatat): Add prototypes.
75561
75562 2005-01-21  Bruno Haible  <bruno@clisp.org>
75563
75564         * modules/classpath: New file.
75565         * MODULES.html.sh (Java): Add classpath.
75566
75567 2005-01-21  Bruno Haible  <bruno@clisp.org>
75568
75569         * lib/classpath.h: New file, from GNU gettext.
75570         * lib/classpath.c: New file, from GNU gettext.
75571
75572 2005-01-20  Simon Josefsson  <jas@extundo.com>
75573
75574         * modules/version-etc-fsf: New file.
75575
75576 2005-01-20  Simon Josefsson  <jas@extundo.com>
75577
75578         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75579         * lib/version-etc.c: Remove version_etc_copyright.
75580         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75581         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75582
75583 2005-01-20  Simon Josefsson  <jas@extundo.com>
75584
75585         * lib/base64.h (isbase64): Add.
75586
75587         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75588         using a unsigned prototype, don't inline.
75589         (base64_decode): Use it.
75590
75591 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75592
75593         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75594         it.
75595
75596 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * lib/save-cwd.c (save_cwd): Remove code to support the case
75599         where fchdir is missing or flaky.
75600
75601 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75602
75603         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75604
75605 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75608         AC_LIBSOURCES now does this.
75609         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75610         with new ullong_max module.
75611
75612 2005-01-19  Bruno Haible  <bruno@clisp.org>
75613
75614         * modules/sh-quote: New file.
75615         * MODULES.html.sh (Executing programs): Add sh-quote.
75616
75617 2005-01-19  Bruno Haible  <bruno@clisp.org>
75618
75619         * lib/sh-quote.h: New file, from GNU gettext.
75620         * lib/sh-quote.c: New file, from GNU gettext.
75621
75622 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         Merge from coreutils.
75625         * m4/ullong_max.m4: New file.
75626         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75627         (gl_MACROS): Assume localeconv exists.
75628
75629 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75630
75631         Merge changes from coreutils, as described below in several
75632         changelogs dated today.
75633
75634         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75635         (O_DIRECTORY): Remove; not needed here, since "." must be
75636         a directory.  All uses removed.
75637         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75638         universal on Suns, and we also need to test for IRIX.
75639         Revamp code to use 'if' rather than '#if'.
75640         Avoid unnecessary comparison of cwd->desc to 0.
75641
75642         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75643         for known valid error numbers rather than observed invalid ones.
75644
75645 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75646
75647         * modules/ullong_max: New file.
75648
75649         * modules/chdir-long, modules/openat: New files.
75650         * modules/save-cwd (Depends-on): Depend on chdir-long.
75651         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75652
75653 2005-01-18  Jim Meyering  <jim@meyering.net>
75654
75655         Merge from coreutils.
75656         * m4/chdir-long.m4, m4/openat.m4: New files.
75657         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75658         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75659         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75660         is sane and DOES follow symlinks.  Besides, testing 20 different
75661         systems found no broken chown implementations.
75662         Prompted by a change in rsync's copy of this macro.
75663         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75664
75665         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75666
75667         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75668         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75669         NULL-means-set-to-current-time semantics.
75670         Remove temporary file immediately, rather than waiting
75671         for configure's at-exit trap code to do it.
75672
75673 2005-01-18  Jim Meyering  <jim@meyering.net>
75674
75675         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75676
75677         * lib/utimens.c (futimens): Account for the fact that futimes
75678         can also fail with errno == ENOSYS or errno == ENOENT.
75679         Patch from Dmitry V. Levin.
75680
75681         Change the name of the robust chdir function from chdir to chdir_long.
75682         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75683         (restore_cwd): Use chdir_long, not chdir.
75684         * lib/chdir-long.c: Renamed from chdir.c.
75685         * lib/chdir-long.h: Renamed from chdir.h.
75686         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75687         Hurd.
75688
75689 2005-01-18  Bruno Haible  <bruno@clisp.org>
75690
75691         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75692         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75693         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75694         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75695         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75696         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75697         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75698         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75699         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75700         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75701         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75702         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75703         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75704         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75705         Use an all-permissive copyright notice, recommended by RMS.
75706
75707 2005-01-18  Bob Proulx  <bob@proulx.com>
75708
75709         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75710         simplify offsetof() macro construct to avoid compile failure with
75711         native HP-UX 11.0 ANSI C compiler.
75712
75713 2005-01-17  Bruno Haible  <bruno@clisp.org>
75714
75715         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75716         redundant because stpncpy.m4 takes care of it.
75717
75718 2005-01-17  Bruno Haible  <bruno@clisp.org>
75719
75720         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75721
75722 2005-01-17  Bruno Haible  <bruno@clisp.org>
75723
75724         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75725         used.
75726
75727 2005-01-17  Bruno Haible  <bruno@clisp.org>
75728
75729         * lib/fwriteerror.h (fwriteerror): Change specification to include
75730         fclose.
75731         * lib/fwriteerror.c: Include <stdbool.h>.
75732         (fwriteerror): At the end, close the file stream. Record whether
75733         stdout was already closed.
75734
75735 2005-01-17  Bruno Haible  <bruno@clisp.org>
75736
75737         * lib/execute.c (environ): Declare if needed.
75738         * lib/pipe.c (environ): Likewise.
75739         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75740
75741 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75742
75743         * modules/argp: Depend on vsnprintf
75744
75745 2005-01-10  Jim Meyering  <jim@meyering.net>
75746
75747         * modules/closeout (Depends-on): Add atexit.
75748
75749 2005-01-06  Bruno Haible  <bruno@clisp.org>
75750
75751         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75752
75753 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75754
75755         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75756         definitions to be after all include files, to avoid collisions.
75757         Problem reported by Bob Proulx.
75758
75759 2005-01-04  Jim Meyering  <jim@meyering.net>
75760
75761         Changes imported from coreutils.
75762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75763         as the mkstemp template, use a temporary directory and an
75764         8.3-friendly template to avoid trouble on systems like DJGPP.
75765         Reported by Juan M. Guerrero via Stepan Kasal.
75766         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75767         close. Remove the temporary directory right away, rather than waiting
75768         for configure's at-exit trap code to do it.
75769         Suggestion from Stepan Kasal.
75770
75771 2005-01-01  Simon Josefsson  <jas@extundo.com>
75772
75773         * gnulib-tool: Print #include directives when --import'ing.
75774
75775 2004-12-28  Simon Josefsson  <jas@extundo.com>
75776
75777         * tests/test-base64.c: Include required header files.  Remove
75778         unused variables.
75779
75780 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75781
75782         * modules/error (Depends-on): Remove gettext.
75783
75784 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75785
75786         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75787         not needed.  This removes a dependency on the gettext module.
75788         [defined _LIBC]: Do not include <libintl.h>; not needed.
75789
75790 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75791
75792         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75793         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75794
75795 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75798         HAVE_DECL_STRTOLD.
75799
75800 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * modules/getdate (Depends-on): Remove alloca-opt.
75803
75804 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75807
75808 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * lib/argp-parse.c: Include <stddef.h>.
75811         (alignof, alignto): New macros.
75812         (parser_init): Don't assume that void * is aligned sufficiently
75813         for struct option.
75814
75815         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75816         need to extend the stack.
75817         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75818         large.
75819
75820 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75821
75822         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75823
75824 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75827         (2004-10-24) change.  Apparently this was a false alarm.
75828
75829         * modules/getdate: Depend on alloca-opt, not alloca.
75830
75831 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75834         Remove now-obsolete comment about AIX.
75835         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75836         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75837         (YYMAXDEPTH): New macro.
75838
75839 2004-12-18  Simon Josefsson  <jas@extundo.com>
75840
75841         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75842
75843 2004-12-18  Bruno Haible  <bruno@clisp.org>
75844
75845         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75846
75847 2004-12-18  Bruno Haible  <bruno@clisp.org>
75848
75849         * lib/fatal-signal.c (fatal_signals): Make non-const.
75850         (init_fatal_signals): New function.
75851         (uninstall_handlers, install_handlers): Ignore signals that were set to
75852         SIG_IGN.
75853         (at_fatal_signal): Call init_fatal_signals.
75854         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75855         SIG_IGN.
75856         Reported by Paul Eggert.
75857
75858 2004-12-18  Bruno Haible  <bruno@clisp.org>
75859
75860         * doc/alloca.texi: New file.
75861         * doc/alloca-opt.texi: New file.
75862
75863 2004-12-17  Jim Meyering  <jim@meyering.net>
75864
75865         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75866         Otherwise, install-sh could exit with improper exit status when
75867         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75868
75869 2004-12-16  Simon Josefsson  <jas@extundo.com>
75870
75871         * tests/test-base64.c: Add license.
75872
75873 2004-12-15  Stepan Kasal  <address@hidden>
75874
75875         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75876
75877 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75878
75879         * modules/getcwd (Files): Add m4/d-ino.m4.
75880         Suggested by Mark D. Baushke.
75881
75882 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75883
75884         * lib/getdate.y (textint): New member "negative".
75885         (time_zone_hhmm): New function.
75886         Expect 14 shift-reduce conflicts, not 13.
75887         (o_colon_minutes): New rule.
75888         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75889         (yylex): Set the "negative" member of signed numbers.
75890
75891 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * doc/getdate.texi (Time of day items, Time zone items):
75894         Describe new formats +00:00, UTC+00:00.
75895
75896 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75897
75898         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75899         spurious "-l"s.  Problem reported by Stepan Kasal.
75900
75901 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75904         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75905
75906 2004-12-04  Simon Josefsson  <jas@extundo.com>
75907
75908         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75909         Vandoorselaere <yoann@prelude-ids.org>.
75910
75911 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         Changes imported from coreutils.
75914         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75915         exist.
75916         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75917
75918 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         Changes imported from coreutils.
75921         * lib/hard-locale.c: Assume <locale.h> exists.
75922         Include "strdup.h".
75923         (GLIBC_VERSION): New macro.
75924         (hard_locale): Assume setlocale exists.
75925         Rewrite to avoid #ifdef.
75926         Use strdup rather than malloc + strcpy.
75927         * lib/human.c: Assume <locale.h> exists.
75928         (human_readable): Assume localeconv exists.
75929
75930 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75931
75932         * modules/hard-locale (Depends-on): Add strdup.
75933
75934 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75935
75936         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75937         convert T2, not T.  (Imported from libc.)
75938
75939 2004-11-30  Simon Josefsson  <jas@extundo.com>
75940
75941         * modules/restrict (License): Change to LGPL.
75942
75943 2004-11-30  Simon Josefsson  <jas@extundo.com>
75944
75945         * m4/restrict.m4: Add copyright and copying conditions.
75946
75947 2004-11-30  Simon Josefsson  <jas@extundo.com>
75948
75949         * m4/base64.m4: New file.
75950
75951 2004-11-30  Simon Josefsson  <jas@extundo.com>
75952
75953         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75954         base64.
75955
75956         * tests/test-base64.c: New file.
75957
75958         * modules/base64: New file.
75959
75960 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75963         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75964
75965         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75966
75967 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75970         (__getcwd.c): Don't restore errno; glibc doesn't.
75971         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75972         first, falling back to our code only if its results look suspicious.
75973         Ensure that the resulting buffer is only as large as necessary.
75974
75975         * lib/readutmp.c: Include readutmp.h first.
75976         Include <errno.h>, since readutmp.h no longer does that.
75977         * lib/readutmp.h: Don't include <errno.h>,
75978         <sys/param.h>, <time.h>; not needed to establish interface.
75979         (errno): Remove decl.
75980         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75981         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75982         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75983
75984 2004-11-28  Simon Josefsson  <jas@extundo.com>
75985
75986         * lib/base64.h, base64.c: New file.
75987
75988 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75991
75992 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75993
75994         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75995         (Depends-on): Remove pathmax, same.  Add mempcpy.
75996         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75997         (Makefile.am): Append getcwd.h to lib_SOURCES.
75998         (Include): Add getcwd.h.
75999         (Maintainer): Change from Jim Meyering to "all, glibc",
76000         since getdate now uses intended-for-glibc code.
76001         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76002         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76003
76004 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76007         HP's ANSI C compiler.
76008         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76009         Declaring int functions causes warnings on some modern systems and
76010         shouldn't be needed to compile on ancient ones.
76011         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76012         defined.
76013
76014         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76015         with the following changes.
76016         (__set_errno): Parenthesize properly.
76017         Include <stdbool.h>.
76018         (MIN, MAX, MATCHING_INO): New macros.
76019         (__getcwd): Define with prototype, not K&R form.
76020         Use heuristics to allocate default buffer on stack if possible.
76021         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76022         behavior, and to avoid the PATH_MAX limit when computing
76023         ../../../../...
76024         Use MATCHING_INO to compare inode number to file.
76025         Check for arithmetic overflow in size calculations.
76026         Fix bug in reallocation of dot array that caused getcwd to fail
76027         on directories nested deeper than 75.
76028         Be more careful about saving errno on error.
76029         Do not use realloc; use only free+malloc, as this is a bit
76030         more flexible and avoids a needless copy operation.
76031         Do not inspect st_dev and st_ino for symbolic links; POSIX
76032         doesn't specify the latter.
76033         Check for closedir errors.
76034         Avoid needless casts.
76035         Use "#ifdef weak_alias" around weak_alias, to be like other
76036         glibc code.
76037         The following changes to getcwd.c have effect only when used in
76038         gnulib; they have no effect inside glibc proper.
76039         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76040         as alloca isn't used.
76041         (alloca, __alloca): Likewise.
76042         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76043         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76044         unconditionally, as gnulib assumes C89 or better.
76045         Do not include <sys/param.h>.
76046         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76047         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76048         better.
76049         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76050         Include <dirent.h> in a way that is compatible with modern Autoconf.
76051         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76052         New macros, if not already defined.
76053         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76054         Use "_LIBC", not "defined _LIBC", for consistency.
76055         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76056         a mempcpy module.
76057         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76058         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76059         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76060         credit only to Jim Meyering and adjust the copyright dates.
76061         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76062         <stdlib.h>, <unistd.h>, "pathmax.h".
76063         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76064         (INITIAL_BUFFER_SIZE): Remove.
76065         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76066
76067 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76070         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76071         Use the _ONCE methods, for efficiency.
76072         Check for fcntl.h.  In test program, include <errno.h>
76073         and <fcntl.h> if available.  Remove old K&R cruft from
76074         test program.  Check for common errors in GNU/Linux,
76075         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76076         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76077         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76078         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76079         name accordingly.
76080         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76081         accommodate new getcwd.c.
76082         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76083         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76084         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76085         that's all we need now.
76086
76087 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76088
76089         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76090         argp-parse.c depends on getopt internals, that means we should
76091         always use our getopt, to be on the safe side.
76092         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76093         order not to spoil the result of an eventual previous invocation
76094         of gl_GETOPT_SUBSTITUTE.
76095
76096 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76097
76098         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76099         redefinition warnings. To avoid them, include the defines
76100         in `#if !defined __need_getopt ... #endif'. The only place
76101         where __getopt_argv_const is used is in definitions
76102         of getopt_long and getopt_long_only below, which are as well
76103         protected by `#ifndef __need_getopt'.
76104         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76105         __need_getopt after including <stdio.h> and <unistd.h> These
76106         headers might have defined it.
76107
76108 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76109
76110         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76111
76112 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76113
76114         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76115         (futimens): New function, which uses futimes if available.
76116         (futimens, utimens): Support timespec==NULL, with same semantics
76117         as utime and utimens.
76118         * lib/utimens.h (futimens): New decl.
76119
76120 2004-11-23  Jim Meyering  <jim@meyering.net>
76121
76122         * lib/getopt_.h: Remove trailing blanks.
76123
76124 2004-11-23  Jim Meyering  <jim@meyering.net>
76125
76126         * lib/__fpending.c: Add comment.
76127
76128 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         * modules/canonicalize (Depends-on): Add xreadlink.
76131         Problem reported by James Youngman.
76132
76133 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76134
76135         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76136         New macros.
76137         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76138         optopt): Use them instead of invoking ## directly; otherwise, the
76139         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76140
76141 2004-11-19  Bruno Haible  <bruno@clisp.org>
76142
76143         * lib/strtok_r.c: Move comments from here...
76144         * lib/strtok_r.h: ... to here.
76145
76146 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76147
76148         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76149         implementations that mishandle size_t overflow.
76150
76151 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76152
76153         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76154         might fail.  Problem reported by Yoann Vandoorselaere.
76155         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76156         implementations that mishandle size_t overflow.
76157
76158 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76159
76160         * modules/canon-host (Depends-on): Add strdup.
76161
76162 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76163
76164         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76165
76166 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * lib/canon-host.c: Include "strdup.h".
76169         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76170         Use strdup instead of malloc/strcpy to duplicate strings.
76171
76172         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76173         (human_space_before_unit): New constant.
76174         * lib/human.c (human_readable): Support it.
76175
76176         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76177         (xgetcwd): Set errno correctly when failing.
76178         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76179         the failure is actually due to a PATH_MAX problem.
76180
76181         Further getopt changes to make it more likely that glibc will
76182         buy the changes back.
76183         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76184         (getopt): Use it, so to preserve glibc semantic
76185         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76186         when compiling for libc.
76187         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76188         (getopt_long, getopt_long_only): Use it.
76189
76190         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76191         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76192         (getopt): Argv is now char * const *, as per standard.
76193         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76194         not char *__getopt_argv_const *.
76195         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76196         _getopt_long_only_r): Likewise.
76197         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76198         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76199         _getopt_long_r, _getopt_long_only_r): Likewise.
76200         * lib/getopt_.h (__getopt_argv_const): Remove.
76201         (getopt): Argv is now char * const *, as per standard.
76202
76203         * lib/getdate.y (tORDINAL): New token.
76204         (day, relunit): Allow it for relative times.
76205         (relative_time_table): Use tORDINAL for ordinals.
76206
76207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76208
76209         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76210         Document that "second" isn't allowed as an ordinal number.
76211
76212 2004-11-16  Jim Meyering  <jim@meyering.net>
76213
76214         * modules/closeout (Depends-on): Add fpending.
76215
76216 2004-11-15  Jim Meyering  <jim@meyering.net>
76217
76218         * lib/closeout.c: Include "__fpending.h" once again.
76219         Include <stdbool.h>.
76220         (close_stdout): Don't fail just because stdout was closed initially,
76221         since some programs don't write to stdout in the normal course of
76222         operation (other than --version and --help), and we don't want this
76223         function to make e.g. `touch file >&-' fail.
76224         But do fail if it was closed and someone has tried to write to it.
76225         E.g., `printf foo >&-' must fail.
76226
76227 2004-11-13  Jim Meyering  <jim@meyering.net>
76228
76229         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76230
76231 2004-11-12  Simon Josefsson  <jas@extundo.com>
76232
76233         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76234         small doc fix is still pending.
76235
76236 2004-11-11  Simon Josefsson  <jas@extundo.com>
76237
76238         * modules/strtok_r: New file.
76239
76240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76241         strtok_r.
76242
76243 2004-11-11  Simon Josefsson  <jas@extundo.com>
76244
76245         * m4/strtok_r.m4: New file.
76246
76247         * m4/getopt.m4: Replace opterr.
76248
76249 2004-11-11  Simon Josefsson  <jas@extundo.com>
76250
76251         * lib/strtok_r.h, strtok_r.c: New file.
76252
76253 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76256         of replacing opterr, getopt, etc.  This should handle the
76257         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76258
76259 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76262         we can stop lying to compilers about the constness of argv when we
76263         are compiled outside glibc.
76264         (getopt, getopt_long, getopt_long_only): Use it.
76265         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76266         _getopt_internal, getopt): Likewise.
76267         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76268         _getopt_long_only_r): Likewise.
76269         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76270         _getopt_long_r, _getopt_long_only_r): Likewise.
76271
76272         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76273         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76274         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76275         the other external symbols.
76276         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76277         declaration, since the above renaming now works around collisions.
76278
76279 2004-11-11  Jim Meyering  <jim@meyering.net>
76280
76281         * lib/linebreak.c: Remove trailing blanks.
76282         * lib/alloca_.h: Likewise.
76283         * lib/acosl.c: Likewise.
76284         * lib/euidaccess.c: Likewise.
76285         * lib/allocsa.h: Likewise.
76286
76287 2004-11-10  Simon Josefsson  <jas@extundo.com>
76288
76289         * m4/getaddrinfo.m4: New file.
76290
76291 2004-11-10  Simon Josefsson  <jas@extundo.com>
76292
76293         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76294
76295 2004-11-10  Simon Josefsson  <jas@extundo.com>
76296
76297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76298         getaddrinfo.
76299
76300         * modules/getaddrinfo: New file.
76301
76302 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76303
76304         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76305
76306 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         * lib/mktime.c (SHR): New macro, which is a portable
76309         substitute for >> that should work even on Crays.
76310         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76311         Problem reported by Mark D. Baushke in
76312         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76313         * lib/getdate.y (SHR): Likewise.
76314         (tm_diff): Use it.
76315         * lib/strftime.c (SHR): Likewise.
76316         (tm_diff): Use it.
76317         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76318         quote_these_too, so that right shifts are well defined.  All uses
76319         changed.
76320
76321 2004-11-10  Jim Meyering  <jim@meyering.net>
76322
76323         Ensure that no close failure goes unreported.
76324         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76325         return early when it seems there's nothing to flush.
76326         Don't include __fpending.h.
76327
76328 2004-11-10  Jim Meyering  <jim@meyering.net>
76329
76330         * modules/closeout (Depends-on): Remove fpending.
76331
76332 2004-11-10  Jim Meyering  <jim@meyering.net>
76333
76334         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76335
76336 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76337
76338         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76339         gl_FUNC_STRFTIME.
76340         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76341         and AC_REQUIRE when possible, to avoid duplicate checks.
76342         Check for <wchar.h>.
76343
76344 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76347
76348 2004-11-09  Bruno Haible  <bruno@clisp.org>
76349
76350         * m4/sockpfaf.m4: New file.
76351
76352 2004-11-05  Bruno Haible  <bruno@clisp.org>
76353
76354         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76355         Reported by Mark D. Baushke <mdb@cvshome.org>.
76356
76357 2004-11-04  Bruno Haible  <bruno@clisp.org>
76358
76359         2004-09-11  Bruno Haible  <bruno@clisp.org>
76360                 * allocsa.valgrind: New file.
76361         2004-02-06  Bruno Haible  <bruno@clisp.org>
76362                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76363                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76364                 Reported by Christopher Seip <chris.seip@hp.com>.
76365
76366 2004-11-04  Bruno Haible  <bruno@clisp.org>
76367
76368         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76369         (Makefile.am): Distribute it.
76370
76371 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76374         with errno == ERANGE if the buffer is too small.
76375         Problem reported by Mark D. Baushke.
76376
76377 2004-11-03  Albert Chin  <china@thewrittenword.com>
76378             Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76381         equivalent, substitute $ac_type for equivalent type rather than
76382         blindly using uint32_t *always* which won't work if uint32_t is not
76383         available.  Define _UINT32_T to work around typedef of uint32_t if
76384         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76385         2.5.1.
76386
76387 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         * m4/jm-macros.m4: Sync from coreutils.
76390         (gl_MACROS): Check for mbrlen, for pathchk.
76391         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76392
76393 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         * lib/xreadlink.c (MAXSIZE): New macro.
76396         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76397         size does not exceed MAXSIZE.  Avoid cast.
76398         As suggested by Mark D. Baushke in
76399         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76400         if readlink fails with buffer size just under MAXSIZE, try again
76401         with MAXSIZE.
76402
76403 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76404
76405         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76406
76407 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76408         and  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76411         (get_date): Overparenthesize to avoid GCC warning.
76412
76413 2004-11-02  Bruno Haible  <bruno@clisp.org>
76414
76415         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76416         returns void.
76417
76418 2004-11-02  Bruno Haible  <bruno@clisp.org>
76419
76420         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76421         function returns void.
76422
76423 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76424
76425         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76426         fflush_unlocked, flockfile, funlockfile, funlockfile,
76427         fputs_unlocked, putc_unlocked.
76428
76429 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76430
76431         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76432         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76433         already declared.
76434
76435 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * modules/getdate (Files): Add doc/getdate.texi.
76438         (Depends-on): Add setenv, xalloc.
76439
76440 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76441
76442         * lib/getdate.y: Add support for TZ="foo" within a date string.
76443         Fix some bugs near time_t boundaries.  Reject dates with
76444         out-of-range components, e.g., "Sept 31".
76445         Include <stdlib.h>, "setenv.h", "xalloc.h".
76446         (ISDIGIT_LOCALE): Remove; unused.
76447         Note that the TZ and time functions used here are not reentrant.
76448         (mktime_ok, get_tz): New functions.
76449         (TZBUFSIZE): New constant.
76450         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76451         This requires that we sometimes generate our own TZ="XXX..." setting.
76452
76453 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76454
76455         * doc/getdate.texi: New file, from coreutils with modifications for
76456         the new TZ parsing.
76457
76458 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76459
76460         * lib/mktime.c (not_equal_tm): Remove redundant check.
76461
76462 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         * modules/regex (lib_SOURCES): Add regex.c.
76465         Reported by James Youngman in
76466         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76467
76468 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * lib/getdate.y: Use Bison 1.875 features, and some minor
76471         code cleanups.  This change does not affect semantics.
76472         Don't include <stdlib.h>; no longer needed.
76473         Don't include unlocked-io.h; only the "#if TEST" code uses
76474         stdio, and performance isn't crucial there.
76475         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76476         Bison 1.875 features as described below.
76477         All uses of "PC." replaced by "pc->".
76478         (YYSTYPE): Add a forward declaration.
76479         (yylex, yyerror): Use full prototypes in forward decls.
76480         Use "%pure-parser" rather than obsolescent "%pure_parser".
76481         Use %parse-param and %lex-param instead of obsolescent
76482         YYPARSE_PARAM and YYLEX_PARAM.
76483         (meridian_table, month_and_day_table, time_units_table,
76484         relative_time_table, time_zone_table, military_table,
76485         lookup_zone, lookup_word, get_date):
76486         Use NULL instead of 0 where appropriate.
76487         (to_hour): Avoid abort (), to avoid a dependency on
76488         stdlib.h.
76489         (yyerror, yylex): Now accepts parser_control * arg.
76490         (main) [TEST]: Use '\0' rather than 0 for char.
76491
76492 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76493
76494         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76495
76496 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76497
76498         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76499         It's now the caller's responsibility to handle the case where
76500         !HAVE_GETPAGESIZE && !defined getpagesize.
76501
76502         * lib/mktime.c (leapyear): Arg is long int, not int.
76503
76504 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76507
76508 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76511         missing.  Problem reported by James Youngman.
76512
76513 2004-10-16  Simon Josefsson  <jas@extundo.com>
76514
76515         * gnulib-tool: Fix comments.  Fix parse problem.
76516         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76517
76518 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76521         implementation of getopt_long.  Problem reported by Alexander Taler in:
76522         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76523
76524 2004-10-15  Bruno Haible  <bruno@clisp.org>
76525
76526         * gnulib-tool: Untabify. Initialize supplied_libname.
76527         (func_usage): More homogenous output.
76528         (func_modules_transitive_closure, func_modules_to_filelist,
76529         func_emit_lib_Makefile_am): New functions.
76530         (func_import): New function, extracted from big case statement. Use
76531         func_get_license, func_modules_transitive_closure,
76532         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76533         opt_lgpl. Don't use test -a, as it's not portable.
76534         (func_create_testdir): Use func_modules_transitive_closure,
76535         func_modules_to_filelist, func_emit_lib_Makefile_am.
76536
76537 2004-10-15  Bruno Haible  <bruno@clisp.org>
76538
76539         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76540
76541 2004-10-15  Bruno Haible  <bruno@clisp.org>
76542
76543         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76544         the portions belonging to each module.
76545         Suggested by Derek Robert Price <derek@ximbiot.com>.
76546
76547 2004-10-12  Simon Josefsson  <jas@extundo.com>
76548
76549         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76550         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76551         to real functions.
76552
76553 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76554
76555         * modules/vsnprintf: New file.
76556
76557 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76558
76559         * m4/vsnprintf.m4: New file.
76560
76561 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76562
76563         * lib/vsnprintf.h: New file.
76564         * lib/vsnprintf.c: New file.
76565
76566 2004-10-11  Bruno Haible  <bruno@clisp.org>
76567
76568         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76569         vsnprintf.
76570
76571 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76574
76575 2004-10-07  Bruno Haible  <bruno@clisp.org>
76576
76577         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76578         fits into the provided buffer.
76579
76580 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76581
76582         * lib/diacrit.c, diacrit.h: Add GPL notice.
76583
76584         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76585         notice.
76586         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76587         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76588         This avoids a potential constant-folding bug.
76589
76590 2004-10-05  Bruno Haible  <bruno@clisp.org>
76591
76592         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76593         for the declaration of strsep.
76594
76595 2004-10-05  Bruno Haible  <bruno@clisp.org>
76596
76597         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76598
76599 2004-10-04  Simon Josefsson  <jas@extundo.com>
76600
76601         * modules/memmem: New file.
76602         * tests/test-memmem.c: New file.
76603         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76604
76605 2004-10-04  Simon Josefsson  <jas@extundo.com>
76606
76607         * m4/memmem.m4: New file.
76608
76609 2004-10-04  Simon Josefsson  <jas@extundo.com>
76610
76611         * lib/memmem.h: New file.
76612         * lib/memmem.c: New file, taken from glibc.
76613
76614 2004-10-04  Simon Josefsson  <jas@extundo.com>
76615
76616         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76617         '#ifdef USE_UNLOCKED_IO'.
76618
76619 2004-10-04  Simon Josefsson  <jas@extundo.com>
76620
76621         * config/srclist.txt: Add memmem from glibc.
76622
76623 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76626
76627         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76628         modules/exclude, modules/getdate, modules/getline,
76629         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76630         modules/getusershell, modules/linebuffer, modules/md5,
76631         modules/mountlist, modules/posixtm, modules/readtokens,
76632         modules/readutmp, modules/regex, modules/sha1,
76633         modules/version-etc, modules/yesno:
76634         Remove dependency on unlocked-io.
76635
76636 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76639
76640         * m4/unlocked-io.m4: Add copyright notice.
76641         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76642
76643 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76646         * lib/xmalloc.c (xmemdup): Likewise.
76647         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76648         XFREE): Remove these long-obsolescent macros.
76649         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76650         * lib/xstrdup.c: Remove.
76651
76652         * lib/regex.c (re_comp): Cast gettext return value to char *,
76653         Problem reported by Martin Neitzel via Mark D. Baushke.
76654
76655 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76658         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76659         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76660         regex.c, sha1.c, version-etc.c, yesno.c:
76661         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76662         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76663         the includer's responsibility.
76664
76665         Sync from coreutils.
76666
76667         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76668         points to the start of a string, as the C Standard says the
76669         resulting behavior is undefined.
76670
76671         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76672         simple -> simple_backups, numbered_existing ->
76673         numbered_existing_backups, numbered -> numbered_backups
76674         to avoid shadowing problems.  All uses changed.
76675         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76676         * lib/backupfile.c (check_extension, numbered_backup):
76677         Rename locals to avoid shadowing 'basename'.
76678         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76679         once.
76680
76681         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76682         * lib/.cvsignore: Add getopt.h.
76683
76684 2004-10-04  Bruno Haible  <bruno@clisp.org>
76685
76686         * modules/README: New file.
76687         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76688         not a module.
76689
76690 2004-10-02  Jim Meyering  <jim@meyering.net>
76691
76692         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76693
76694 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76695
76696         * modules/strsep: New file.
76697
76698 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76699
76700         * m4/strsep.m4: New file.
76701
76702 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76703
76704         * lib/strsep.h: New file.
76705         * lib/strsep.c: New file.
76706
76707 2004-10-01  Simon Josefsson  <jas@extundo.com>
76708
76709         * lib/snprintf.c (snprintf): Handle size==0.
76710
76711 2004-10-01  Simon Josefsson  <jas@extundo.com>
76712             Bruno Haible  <bruno@clisp.org>
76713
76714         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76715         (snprintf): Declare 'args'.
76716
76717 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76718
76719         * lib/snprintf.c: Remove comments as to why each header is needed.
76720
76721 2004-10-01  Bruno Haible  <bruno@clisp.org>
76722
76723         * MODULES.html.sh: Add strsep.
76724
76725 2004-09-30  Simon Josefsson  <jas@extundo.com>
76726
76727         * modules/snprintf: New file.
76728
76729 2004-09-30  Simon Josefsson  <jas@extundo.com>
76730
76731         * m4/snprintf.m4: New file.
76732
76733 2004-09-30  Simon Josefsson  <jas@extundo.com>
76734
76735         * lib/snprintf.h, lib/snprintf.c: New files.
76736
76737 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76738
76739         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76740         (hol_entry_help): Never translate an empty string.
76741         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76742         * lib/argp.h (OPTION_NO_TRANS): New option.
76743
76744 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76745
76746         * modules/argp (Maintainer): Replace Simon Josefsson
76747         by Sergey Poznyakoff.
76748
76749 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76752         changes merged back into glibc.
76753
76754 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76757
76758 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76759
76760         * lib/xvasprintf.c: Include xalloc.h.
76761         (xvasprintf): Use xalloc_die, not xmalloc_die.
76762
76763 2004-09-29  Bruno Haible  <bruno@clisp.org>
76764
76765         * modules/alloca-opt: New file, derived from modules/alloca.
76766         * modules/allocsa: Depend on alloca-opt instead of alloca.
76767         * modules/setenv: Likewise.
76768         * modules/vasnprintf: Likewise.
76769         * MODULES.html.sh: Add alloca-opt.
76770
76771 2004-09-28  Simon Josefsson  <jas@extundo.com>
76772
76773         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76774         LGPL, and to replace license template from GPL to LGPL.
76775
76776 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * modules/dummy: Change license to LGPL.
76779
76780 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76783
76784 2004-09-24  Simon Josefsson  <jas@extundo.com>
76785
76786         * modules/minmax (License): Change from GPL to LGPL.
76787
76788 2004-09-23  Simon Josefsson  <jas@extundo.com>
76789
76790         * gnulib-tool (--import): Typo.
76791
76792 2004-09-23  Simon Josefsson  <jas@extundo.com>
76793
76794         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76795
76796 2004-09-22  Bruno Haible  <bruno@clisp.org>
76797
76798         * modules/*: Add 'License' field.
76799         * gnulib-tool: Accept --extract-license option.
76800         (func_get_license): New function.
76801
76802 2004-09-21  Bruno Haible  <bruno@clisp.org>
76803
76804         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76805         Reported by Simon Josefsson.
76806
76807 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76808
76809         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76810         gl_AC_TYPE_LONG_LONG.
76811
76812 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76815
76816 2004-09-18  Simon Josefsson  <jas@extundo.com>
76817         and  Paul Eggert  <eggert@cs.ucla.edu>
76818
76819         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76820         calls with autoreconf.  Define GL_LIB.
76821
76822 2004-09-14  Karl Berry  <karl@gnu.org>
76823
76824         * config/srclist.txt: unsync setenv.c, sigh.
76825
76826 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76829         Problem reported by Bruno Haible in:
76830         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76831
76832 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76833
76834         * config/srclist.txt: Comment out argp-pvh.c.
76835
76836 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76837
76838         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76839         in case some system header has #define'd it.  Problem reported by
76840         Soeren D. Schulze in
76841         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76842
76843 2004-09-09  Karl Berry  <karl@gnu.org>
76844
76845         * regex.[ch]: delete from the root.  These were supposed to be
76846                 synced with emacs cvs, but this has not happened for about
76847                 a year, and anyway nothing else uses emacs regex.[ch].
76848                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76849                 lib/regex[.ch] is untouched.
76850
76851 2004-09-09  Bruno Haible  <bruno@clisp.org>
76852
76853         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76854
76855 2004-09-09  Bruno Haible  <bruno@clisp.org>
76856
76857         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76858         modifications.
76859         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76860
76861 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76862
76863         * modules/xvasprintf: New file.
76864         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76865
76866 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76867
76868         * lib/xvasprintf.h: New file.
76869         * lib/xvasprintf.c: New file.
76870         * lib/xasprintf.c: New file.
76871
76872 2004-09-08  Bruno Haible  <bruno@clisp.org>
76873
76874         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76875
76876 2004-09-08  Bruno Haible  <bruno@clisp.org>
76877
76878         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76879         length is > INT_MAX.
76880         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76881         more.
76882
76883 2004-09-08  Bruno Haible  <bruno@clisp.org>
76884
76885         * lib/stdint_.h: New file, taken from GNU clisp.
76886
76887 2004-09-08  Bruno Haible  <bruno@clisp.org>
76888             Oskar Liljeblad  <oskar@osk.mine.nu>
76889
76890         * modules/stdint: New file.
76891         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76892
76893 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         Import from coreutils.
76896         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76897         strings on unbounded length.  alloca's performance benefits aren't
76898         that important here.
76899         (V_STRDUP): Remove.
76900         (parse_with_separator): New function, with most of the internals
76901         of the old parse_user_spec.  Allow user to omit both user and group,
76902         for compatibility with FreeBSD.
76903         Clone only the user name, not the entire spec.
76904         Do not set *uid, *gid unless entirely successful.
76905         Avoid memory leak in some failing cases.
76906         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76907         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76908         (parse_user_spec): Rewrite to use parse_with_separator.
76909
76910 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         * modules/userspec: Don't depend on alloca.
76913
76914 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76917
76918 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76919
76920         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76921         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76922         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76923
76924 2004-08-16  Simon Josefsson  <jas@extundo.com>
76925
76926         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76927         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76928         Add --dry-run for --import.
76929         Let user provided command line parameters override configure.ac
76930         settings.
76931
76932 2004-08-12  Simon Josefsson  <jas@extundo.com>
76933
76934         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76935         as discussed with Paul Eggert in threads rooted at
76936         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76937         and
76938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76939         Before, the test was empty, and relied on ELIDE_CODE in source
76940         code.)
76941         (gl_PREREQ_GETOPT): New macro.
76942         (gl_GETOPT): Use them.
76943
76944 2004-08-12  Simon Josefsson  <jas@extundo.com>
76945
76946         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76947         * lib/getopt_.h: Renamed from getopt.h.
76948
76949 2004-08-12  Simon Josefsson  <jas@extundo.com>
76950
76951         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76952         Change default library name from libfoo to libgnu.
76953         Now, if you have a configure.ac that says:
76954                 gl_SOURCE_BASE(gl)
76955                 gl_M4_BASE(gl/m4)
76956                 gl_MODULES(error getopt etcetera)
76957                 gl_INIT
76958         you can import all you need by running:
76959                 ../gnulib/gnulib-tool --import
76960
76961         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76962         (Makefile.am): Rewrite, use logic from argz.
76963         (Include): Use <getopt.h> instead of "getopt.h".
76964
76965 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * modules/argp (Files): Add m4/unlocked-io.m4.
76968         (Depends-on): Add extensions.
76969
76970 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76973         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76974         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76975         Check for program_invocation_name, program_invocation_short_name,
76976         flockfile, funlockfile, features.h, _getopt_long_only_r.
76977
76978 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76981         its complicated substitute.
76982         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76983         and program_invocation_name.
76984         (__argp_basename) [!_LIBC]: Remove; the only use was
76985         replaced by its body.
76986         (__argp_short_program_name): Change condition from
76987         !defined __argp_short_program_name to
76988         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76989         to match argp-namefrob.h.
76990         (__argp_failure): Don't assume strerror_r returns char *.
76991         * lib/argp-parse.c (N_): Define unconditionally.
76992         (argp_default_options): Fill out initializers with 0 to avoid
76993         gcc warnings.
76994
76995 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76998         getopt1.c.
76999
77000 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         Merge from coreutils.
77003
77004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77005
77006         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77007         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77008
77009 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         Merge from coreutils.
77012
77013         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77014         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77015         for Reliant Unix 5.43.
77016
77017         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77018         (union fooround): Use uintmax_t, not long int.
77019         The rest is a merge from libc:
77020         [defined _LIBC]: Include <shlib-compat.h>.
77021         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77022
77023         * lib/settime.c (settime): Recode to avoid warning with
77024         Sun Forte C 6U2.
77025
77026         * lib/strverscmp.c: Convert to UTF-8.
77027
77028 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77031         m4/uintmax_t.m4.
77032
77033 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77034
77035         * modules/xalloc-die: New file.
77036         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77037
77038         * modules/md5 (Files): Add m4/uint32_t.m4.
77039         * modules/sha1: Renamed from modules/sha.
77040         (Files):
77041         Rename lib/sha.h to lib/sha1.h.
77042         Rename lib/sha.c to lib/sha1.c.
77043         Rename m4/sha.m4 to m4/sha1.m4.
77044         (lib_SOURCES): Likewise.
77045         (configure.ac): Rename gl_SHA to gl_SHA1.
77046         (Include): sha.h -> sha1.h.
77047
77048 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77049
77050         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77051         * m4/sha1.m4: Renamed from sha.m4.
77052         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77053
77054 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * lib/obstack.h (obstack_empty_p):
77057         Don't assume that chunk->contents is suitably aligned.
77058         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77059         Likewise. Problem reported by Benno in
77060         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77061
77062         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77063         readable.  This could be improved further but it'd take some work.
77064
77065 2004-08-08  Simon Josefsson  <jas@extundo.com>
77066
77067         * modules/xgethostname (Depends-on): Remove exit and error (not
77068         used).
77069
77070         * modules/getpass-gnu: Add getpass.h.
77071         (Depends-on): Add stdbool.
77072         * modules/getpass: Add getpass.h.
77073
77074 2004-08-08  Simon Josefsson  <jas@extundo.com>
77075
77076         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77077         Check getpass declaration.
77078
77079 2004-08-08  Simon Josefsson  <jas@extundo.com>
77080
77081         * lib/xgethostname.c: Don't include error.h (not used).
77082
77083         * lib/getpass.h: Add.
77084         * lib/getpass.c: Include getpass.h first.
77085
77086 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * lib/xalloc-die.c: New file.
77089         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77090         All uses removed.
77091         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77092         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77093         xalloc-die.c.
77094         (_, N_, xalloc_die): Move to xalloc-die.c.
77095         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77096         so that we needn't mess with xalloc_msg_memory_exhausted.
77097
77098         * lib/sha1.h: Renamed from sha.h.
77099         (SHA1_H): Renamed from _SHA_H.
77100         (sha1_ctx): Renamed from sha_ctx.
77101         (sha1_init_ctx): Renamed from sha_init_ctx.
77102         (sha1_process_block): Renamed from sha_process_block.
77103         (sha1_process_bytes): Renamed from sha_process_bytes.
77104         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77105         (sha1_read_ctx): Renamed from sha_read_ctx.
77106         (sha1_stream): Renamed from sha_stream.
77107         (sha1_buffer): Renamed from sha_buffer.
77108         * lib/sha1.c: Likewise; renamed from sha.c.
77109         Do not include <sys/types.h>.
77110         Include <stddef.h> rather than <stdlib.h>.
77111
77112 2004-08-08  Bruno Haible  <bruno@clisp.org>
77113
77114         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77115         FILESYSTEM_PREFIX_LEN.
77116         * lib/progreloc.c: Likewise.
77117         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77118
77119 2004-08-06  Simon Josefsson  <jas@extundo.com>
77120
77121         * modules/progname (Depends-on): Don't depend on stdbool.
77122
77123 2004-08-06  Simon Josefsson  <jas@extundo.com>
77124
77125         * modules/getsubopt: New file.
77126         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77127         getsubopt.
77128
77129 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         More merge from coreutils.
77132
77133         * m4/utimens.m4, m4/utimecmp.m4: New files.
77134         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77135         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77136         prereq.m4, sha.m4: Import changes from coreutils.
77137
77138 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77139
77140         More merge from coreutils.
77141         * modules/raise, modules/readtokens0, modules/utimens:
77142         * modules/utimecmp, module/xnanosleep: New files.
77143         * modules/strftime: Add lib/strftime.h.
77144         Change include from <time.h> to "strftime.h".
77145         * modules/yesno: Add lib/yesno.h.
77146         * modules/backupfile: Remove lib/addext.c.
77147         * modules/euidaccess: Add stat-macros.h.
77148         * modules/canonicalize, modules/euidaccess,
77149         modules/filemode, modules/lchown, modules/makepath,
77150         modules/rmdir, modules/stat: Likewise.
77151
77152 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         Merge from tar.
77155         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77156         SIZE_MAX is a valid preprocessor constant.
77157         (__argp_basename): Change from "#ifndef _LIBC"
77158         to "#ifndef __argp_short_program_name", so that
77159         we don't compile these functions for tar.
77160
77161         More merges from coreutils.
77162         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77163         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77164         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77165         * lib/addext.c: Remove; no longer needed.
77166         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77167         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77168         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77169         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77170         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77171         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77172         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77173         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77174         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77175         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77176         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77177         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77178         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77179         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77180         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77181         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77182         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77183         Import changes from coreutils.
77184
77185 2004-08-05  Simon Josefsson  <jas@extundo.com>
77186
77187         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77188
77189 2004-08-05  Simon Josefsson  <jas@extundo.com>
77190
77191         * m4/getsubopt.m4: New file.
77192
77193 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77194
77195         Merge from coreutils.
77196
77197         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77198         * m4/getcwd-path-max.m4: New files.
77199
77200         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77201         FILESYSTEM_PREFIX_LEN ->
77202         FILE_SYSTEM_PREFIX_LEN.
77203         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77204         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77205         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77206         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77207
77208         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77209         prerequisite modules now handle the DOS stuff.
77210         Don't check for unistd.h.
77211
77212 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77213
77214         Merge from coreutils.
77215
77216         * lib/.gdb-history: Remove; this doesn't belong here.
77217
77218         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77219         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77220         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77221         * lib/getcwd.c: New files.
77222
77223         * lib/dirname.h: Include <stdbool.h>.
77224         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77225         for consistency with POSIX terminology.  All uses changed.
77226         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77227         (strip_trailing_slashes): Use bool for booleans.
77228         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77229
77230         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77231         sometimes returns a positive errno value even when it succeeds.
77232         (print_errno_message) [!LIBC]: Fall back on strerror if
77233         __strerror_r fails.
77234
77235         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77236         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77237         (longest_relative_suffix): New function.
77238         (path_concat): Use it.  Assume first argument is not NULL.
77239         Port to DOS.  Omit redundant separators.
77240         Report an error instead of returning NULL.
77241         Use mempcpy instead of memcpy.
77242         (xpath_concat): Remove: not declared or used.
77243
77244         * lib/same.h: Include <stdbool.h>
77245         (same_name): Return bool, not int.
77246         * lib/same.c (same_name): Likewise.
77247         (errno): Don't declare; we assume C89 or better now.
77248
77249         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77250         if not already defined.
77251
77252         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77253         * lib/dup-safer.c (errno): Likewise.
77254
77255 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         Merge from coreutils.
77258         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77259         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77260         * modules/path-concat: Don't depend on strdup.
77261
77262 2004-08-03  Simon Josefsson  <jas@extundo.com>
77263
77264         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77265         * lib/progname.h: Don't include stdbool.h.
77266
77267 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77270         * MODULES.html.sh (func_all_modules): Remove fatal.
77271
77272 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77275
77276 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77279         working.
77280
77281 2004-08-02  Simon Josefsson  <jas@extundo.com>
77282
77283         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77284         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77285         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77286
77287 2004-08-01  Simon Josefsson  <jas@extundo.com>
77288
77289         * lib/xgetdomainname.c: Include stdlib.h, for free().
77290
77291 2004-07-19  Bruno Haible  <bruno@clisp.org>
77292
77293         * MODULES.html.sh (func_all_modules): Add dummy.
77294
77295 2004-07-16  Simon Josefsson  <jas@extundo.com>
77296
77297         * modules/dummy: New file.
77298
77299 2004-07-16  Simon Josefsson  <jas@extundo.com>
77300
77301         * lib/dummy.c: New file.
77302
77303 2004-07-16  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/backupfile.h: Add extern "C" for C++.
77306         * lib/closeout.h: Likewise.
77307         * lib/copy-file.h: Likewise.
77308         * lib/findprog.h: Likewise.
77309         * lib/full-write.h: Likewise.
77310         * lib/pathname.h: Likewise.
77311         * lib/progname.h: Likewise.
77312         * lib/stpcpy.h: Likewise.
77313         * lib/stpncpy.h: Likewise.
77314         * lib/strcase.h: Likewise.
77315         * lib/strstr.h: Likewise.
77316         * lib/xalloc.h: Likewise.
77317
77318         * lib/mbswidth.h: Add extern "C" for C++.
77319         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77320
77321 2004-07-13  Robert Millan  <robertmh@gnu.org>
77322
77323         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77324
77325 2004-07-09  Simon Josefsson  <jas@extundo.com>
77326
77327         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77328         failed without this.)
77329
77330 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77331
77332         * modules/chown (Files): Add lib/fchown-stub.c, since
77333         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77334
77335 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77336
77337         * lib/fchown-stub.c: New file.
77338
77339 2004-06-24  Jim Meyering  <jim@meyering.net>
77340
77341         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77342
77343 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * modules/argz: Omit "#include".
77346
77347         * MODULES.html.sh (func_all_modules): Add calloc, to match
77348         2004-06-01 addition of calloc module.
77349
77350 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         * m4/argz.m4: New file, which is autoupdated from libtool.
77353
77354 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77357         libtool.
77358
77359 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * config/srclist-update: Don't insist on "USA." before the
77362         close-comment, as libtool omits the period and puts the */ on a
77363         separate line.
77364         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77365         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77366
77367 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77368
77369         * modules/argz: New file.
77370         * MODULES.html.sh (func_all_modules): Add argz.
77371
77372 2004-06-12  Jim Meyering  <jim@meyering.net>
77373         and  Paul Eggert  <eggert@cs.ucla.edu>
77374
77375         * modules/hash (Files): Add lib/xalloc.h.
77376         * modules/pipe (Depends-on): Add wait-process.
77377         * modules/stat (Depends-on): Add xalloc.
77378         * modules/userspec (Files): Add lib/userspec.h.
77379         * modules/xstrto
77380
77381         Upgrade from gettext-0.13.
77382         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77383         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77384         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77385
77386 2004-06-10  Jim Meyering  <jim@meyering.net>
77387
77388         * lib/calloc.c: New file.
77389
77390 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77391
77392         * lib/getdate.y (yylex): Allow space between sign and number.
77393         Problem reported by Dan Jacobson.
77394
77395 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         Merge from coreutils CVS.
77398
77399         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77400         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77401         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77402         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77403         xstrtol.m4: Fix copyright date and/or serial number.
77404
77405         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77406         See if we need an fchown replacement.
77407         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77408         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77409         and use the replacement function if we detect either defect.
77410
77411         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77412         gl_UTIMECMP.
77413
77414 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77415         and  Jim Meyering  <jim@meyering.net>
77416
77417         Merge from coreutils CVS.
77418
77419         * lib/stat-macros.h: New file, with contents from file-type.h
77420         and coreutils' system.h.
77421         * lib/file-type.c: Include "stat-macros.h".
77422         * lib/file-type.h (file_type): Move all macro definitions to new file,
77423         stat-macros.h.
77424
77425         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77426         Wrap old code with this conditional.
77427         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77428         function that does not dereference symlinks.
77429         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77430
77431         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77432         dependency problems.
77433         (xreadlink): Accept new arg SIZE, for efficiency.
77434         All decls and uses changed.
77435         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77436
77437         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77438         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77439
77440         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77441         sysexits.h.
77442
77443 2004-06-01  Jim Meyering  <jim@meyering.net>
77444
77445         * m4/calloc.m4: New file.
77446
77447 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77448
77449         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77450         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77451         Also, fix a typo in a diagnostic.
77452
77453 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77454
77455         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77456         or AC_FUNC_REALLOC.
77457
77458 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77459
77460         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77461         macros to be defined.
77462         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77463         the allocator returns NULL because the requested size is zero.
77464
77465 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77468         var.  Add comment explaining why libc still defines it.  This
77469         merges the following patch from glibc:
77470         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77471
77472 2004-05-20  Andreas Schwab  <schwab@suse.de>
77473
77474         * m4/free.m4: Replace free if it not known to work, not the other
77475         way round.
77476
77477 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77480         present in glibc since revision 1.1 of this file.
77481         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77482         obstack_alignment_mask, obstack_alloc, obstack_base,
77483         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77484         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77485         obstack_grow0, obstack_init, obstack_int_grow,
77486         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77487         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77488         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77489         nonexistent functions.
77490
77491 2004-05-18  Karl Berry  <karl@gnu.org>
77492
77493         * config/srclist.txt: break link for vasnprintf.c.
77494
77495 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         Port obstack to the AS/400, where pointers are 16 bytes wide and
77498         you cannot cast an integer to a valid pointer.  This patch is
77499         currently waiting to be integrated into glibc; see
77500         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77501
77502         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77503         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77504         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77505         (struct obstack): temp member is now a union of a pointer and
77506         an integer, instead of an integer.  All integer uses changed.
77507         This does not affect the physical layout of struct obstack,
77508         except on hosts (like the AS/400) where the size or alignment of
77509         void * is greater than that of ptrdiff_t.
77510         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77511         __STDC__)]: Store temporary in pointer member of union, not
77512         integer member.
77513         * lib/obstack.c: Include <stddef.h>, for offsetof.
77514         (struct fooalign): Remove; it doesn't need a name.
77515         (union fooround): Change double to long double, and add void *.
77516         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77517         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77518         not a macro.  Hence the values are always int; so remove all
77519         casts-to-int in uses.
77520
77521 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77522
77523         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77524         we can get this patch merged into glibc.
77525
77526 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77527             Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * m4/argp: Depend on alloca.
77530
77531 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77532             Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77535         freecoding.
77536
77537 2004-05-17  Bruno Haible  <bruno@clisp.org>
77538
77539         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77540         precision that consists of a '.' followed by an empty digit string.
77541         Patch by Tor Lillqvist <tml@iki.fi>.
77542
77543 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77546         for backward compatibility with older code.  We need our own
77547         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77548         it under some other name, and our alloca.h will define it.
77549
77550 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77551             Derek Price  <derek@ximbiot.com>
77552
77553         * lib/alloca.c: Include <alloca.h>, to get our interface.
77554         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77555         include <alloca.h> first.  Use C89 prototype for alloca; this
77556         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77557         Use #elif for simplicity, since we can assume C89 now.
77558         Don't try to source the system alloca.h since it will not be found
77559         and to prevent recursively including its replacement.
77560         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77561         * lib/regex.c: Likewise.
77562
77563 2004-05-16  Derek Price  <derek@ximbiot.com>
77564             Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         getline cleanup.  This changes the getndelim2 API: both order of
77567         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77568         no delimiter).
77569
77570         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77571         interface does that.
77572         (getline): Always use getdelim, so that we don't have two
77573         copies of this code.
77574         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77575         if available.
77576         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77577         (GETNDELIM2_MAXIMUM): New macro.
77578         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77579         instead of the old practice of delim2==0.  All callers changed.
77580         Return -1 on overflow, instead of returning junk.
77581         Do not set *linesize unless allocation succeeds.
77582         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77583         that we include sys/types.h.
77584         * lib/getnline.h: Likewise.
77585         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77586         (getndelim2): Reorder arguments.
77587         * lib/getnline.c (getnline, getndelim):
77588         Don't discard the NMAX argument.
77589         (getnline): Invoke getndelim, to avoid code duplication.
77590         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77591         of (size_t) -1 by callers of the getnline family.
77592
77593 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77594
77595         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77596         Check for gettimeofday.
77597         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77598         Check for settimeofday, stime.
77599
77600 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77601
77602         * lib/nanosleep.c (suspended): Change its type from int to
77603         sig_atomic_t volatile.
77604         (first_call): Make it private to rpl_nanosleep, and have it
77605         be zero initially as that's a bit faster.
77606         (my_usleep): Round up fractional times instead of truncating them,
77607         as this is the usual meaning for 'sleep'.
77608
77609         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77610         doesn't work.
77611         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77612         (ENOSYS): Define if not defined.
77613         (settime): Fall back on stime if it exists and settimeofday fails.
77614         But don't bother with fallbacks if a method fails with errno == EPERM.
77615
77616 2004-05-11  Jim Meyering  <jim@meyering.net>
77617
77618         Prior to this change, the save_cwd caller required read access to the
77619         current directory on most systems (ones with the fchdir function).
77620
77621         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77622         fails, try write-only, and finally, resort to using xgetcwd.
77623
77624 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77625
77626         * lib/obstack.c, obstack.h: Import changes from libc.
77627
77628 2004-04-28  Bruno Haible  <bruno@clisp.org>
77629
77630         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77631         also implicitly appends .exe to executables.
77632         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77633         accepts Windows pathnames.
77634         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77635         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77636         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77637         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77638         Reported by Derek Robert Price <derek@ximbiot.com>.
77639
77640 2004-04-21  Karl Berry  <karl@gnu.org>
77641
77642         * config/srclist.txt (localcharset.c): break sync.
77643
77644 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77645
77646         * m4/host-os.m4: Add a copyright notice.
77647
77648 2004-04-20  Jim Meyering  <jim@meyering.net>
77649
77650         Change UTILS_ to gl_ in AC_DEFINE'd names.
77651         Change utils_- and jm_-prefixed variables, too.
77652         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77653         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77655
77656         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77657         Don't emit trailing blanks.
77658         Also rename jm_-prefixed variables to have gl_ prefix.
77659
77660         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77661         Also rename jm_-prefixed variables to have gl_ prefix.
77662
77663         * m4/jm-macros.m4: Reflect the renamings.
77664         * m4/prereq.m4: Likewise.
77665
77666 2004-04-20  Jim Meyering  <jim@meyering.net>
77667
77668         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77669         memory.
77670
77671 2004-04-20  Jim Meyering  <jim@meyering.net>
77672             Bruno Haible  <bruno@clisp.org>
77673
77674         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77675         memory when realloc fails.
77676
77677 2004-04-19  Jim Meyering  <jim@meyering.net>
77678
77679         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77680         now that readutmp.c may call `free (0)'.
77681
77682 2004-04-19  Bruno Haible  <bruno@clisp.org>
77683
77684         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77685         * m4/inttypes_h.m4: Likewise.
77686         * m4/stdint_h.m4: Likewise.
77687         * m4/intmax_t.m4: Likewise.
77688         * m4/uintmax_t.m4: Likewise.
77689
77690 2004-04-18  Jim Meyering  <jim@meyering.net>
77691
77692         * m4/prereq.m4: Don't forbid jm_ prefix.
77693
77694         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77695         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77696         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77697         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77698         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77699         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77700         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77701         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77702         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77703         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77704         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77705         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77706         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77707         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77708         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77709         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77710         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77711         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77712         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77713
77714 2004-04-18  Jim Meyering  <jim@meyering.net>
77715
77716         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77717         failure, don't leak memory and do call END_UTMP_ENT.
77718
77719 2004-04-16  Jim Meyering  <jim@meyering.net>
77720
77721         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77722         coreutils' stat program.
77723         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77724
77725 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77726
77727         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77728         C89.
77729         (CHAR_BIT): Remove, since we assume C89.
77730         Include <stdint.h> if available, as per current Autoconf CVS advice.
77731
77732 2004-03-31  Jim Meyering  <jim@meyering.net>
77733
77734         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77735         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77736         * m4/xalloc.m4: Likewise.
77737
77738 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77739
77740         Merge from coreutils.
77741
77742         * m4/inttostr.m4: New file.
77743         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77744         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77745         Require gl_CLOCK_TIME.
77746         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77747
77748 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77749
77750         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77751         not bool, to be more consistent with Unix conventions.
77752         Suggested by Bruno Haible.
77753
77754         Merge from coreutils.
77755
77756         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77757         * lib/umaxtostr.c: New files.
77758
77759         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77760         the usual <time.h> dance.
77761         (get_date): Change signature to support fractional time stamps.
77762         All callers changed.
77763         * lib/getdate.y: Include "getdate.h" first, as we can now
77764         assume C89 and don't need to worry about 'const'.
77765         Similarly, include "unlocked-io.h" near start, not in middle.
77766         Include <limits.h>.
77767         (textint.value): Use long int rather than int.
77768         (textint.digits): Use size_t rather than int.
77769         (BILLION, LOG10_BILLION): New constants.
77770         (parser_control): New member rel_ns.  Members day_ordinal,
77771         time_zone, month, day, hour, minutes, rel_year, rel_month,
77772         rel_day, rel_hour, rel_minutes, rel_seconds
77773         are now long int, not int.  Member seconds is now struct timespec,
77774         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77775         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77776         not int.
77777         (%union.intval): Now long int, not int.
77778         New member timespec.
77779         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77780         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77781         (spec): Now is a timespec or an item list.
77782         (timespec, items): New nonterminals.
77783         (time, rel, relunit, number, get_date):
77784         Add support for fractional seconds.
77785         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77786         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77787         (to_hour): First arg is now long int, not int.
77788         (to_year): Returns long int, not int.
77789         Don't treat year -70 like 70.
77790         (tm_diff): Returns long int, not int.
77791         (lookup_word): Use bool instead of int when appropriate.
77792         (yylex): Use size_t for count, not int.
77793         Detect overflow when parsing large integer constants.
77794         Add support for fractions.
77795         (get_date): Make pointers 'const' if possible.
77796         Use more-portable code to detect integer overflow.
77797         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77798         Don't use ctime; it's not reliable if the year has >4 digits.
77799
77800         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77801         This is for compatibility with BSD.
77802
77803         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77804         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77805         From coreutils' system.h.
77806
77807         * lib/userspec.c: Don't include "posixver.h".
77808         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77809         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77810         compatible extension.  Simplify code by removing a boolean int
77811         that was always nonzero if a string was nonnull.
77812
77813 2004-03-30  Jim Meyering  <jim@meyering.net>
77814
77815         Merge from coreutils.
77816
77817         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77818         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77819         on some systems one must include <grp.h> before it.
77820         Reported by Christian Krackowizer.
77821
77822 2004-03-30  Jim Meyering  <jim@meyering.net>
77823
77824         Merge from coreutils.
77825
77826         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77827
77828         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77829         an empty input stream.
77830
77831         * lib/readtokens.c: Include <stdbool.h>.
77832         (readtoken): Use `size_t' rather than int/long.
77833         All callers adjusted.
77834         Use `bool' rather than `int' where appropriate.
77835         Use memset rather than an explicit loop.
77836         Use x2nrealloc rather than xrealloc.
77837         Allow the use of `\0' as a delimiter.
77838         (readtokens): Likewise.
77839         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77840
77841 2004-03-30  Jim Meyering  <jim@meyering.net>
77842
77843         * m4/realloc.m4: Remove file, since now it does no more than
77844         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77845         the `configure.ac' section of module/realloc.
77846         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77847
77848 2004-03-30  Bruno Haible  <bruno@clisp.org>
77849
77850         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77851         nonnull.
77852
77853 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77854
77855         Merge changes to getloadavg.c from coreutils and Emacs.
77856
77857         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77858         Define to an expression, not to the empty string.
77859         Include cloexec.h and xalloc.h.
77860         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77861         Use set_cloexec_flag rather than rolling our own.
77862         * lib/cloexec.c, lib/cloexec.h: New files.
77863
77864 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77865
77866         * m4/cloexec.m4: New file.
77867
77868 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77869
77870         * lib/getopt.h: Sync with libc CVS.
77871
77872 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77873             Bruno Haible  <bruno@clisp.org>
77874
77875         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77876         mbswidth.
77877
77878 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77879             Bruno Haible  <bruno@clisp.org>
77880
77881         * lib/mbswidth.h: Include <wchar.h> only if
77882         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77883         <wchar.h>.
77884         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77885
77886 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77887
77888         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77889         Sync with libc CVS.
77890         * lib/getopt_int.h: New file, also synced from libc.
77891
77892 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77893
77894         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77895         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77896         Bring back getopt.c, getopt.h, getopt1.c.
77897
77898 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77899
77900         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77901         All uses changed.  Check for sa_sigaction member; this fixes
77902         a bug first reported by Jason Andrade in
77903         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77904
77905 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77906
77907         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77908         '#if' expressions.  Unlike the code it replaces, it does not
77909         depend on (defined _SC_PAGESIZE).  However, it does depend on
77910         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77911         first reported by Jason Andrade in
77912         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77913
77914 2004-02-25  Simon Josefsson  <jas@extundo.com>
77915
77916         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77917
77918 2004-02-25  Simon Josefsson  <jas@extundo.com>
77919
77920         * lib/strdup.h: New file.
77921         * lib/strdup.c: Include it.
77922         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77923         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77924
77925 2004-02-23  Karl Berry  <karl@gnu.org>
77926
77927         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77928         (from fencepost.gnu.org:/gd/gnuorg).
77929
77930 2004-02-23  Karl Berry  <karl@gnu.org>
77931
77932         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77933         * config/srclist.txt: add maintain/standards documents.
77934
77935 2004-02-18  Bruno Haible  <bruno@clisp.org>
77936
77937         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77938         Reported by Derek Robert Price <derek@ximbiot.com>.
77939
77940 2004-02-16  Karl Berry  <karl@gnu.org>
77941
77942         * config/mkinstalldirs, install-sh: update from automake.
77943
77944 2004-02-06  Karl Berry  <karl@gnu.org>
77945
77946         * m4/po.m4: update from gettext 0.14.1.
77947
77948 2004-02-06  Karl Berry  <karl@gnu.org>
77949
77950         * lib/config.charset: update from gettext 0.14.1.
77951
77952 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77953
77954         Add comments and code, prompted by suggestions from Bruno Haible
77955         for sh-quote.
77956         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77957         describing the enum quoting_style values.
77958         * lib/quotearg.c (quotearg_alloc): New function.
77959         (quotearg_buffer_restyled): Treat lone { and } as special.
77960         Treat = as special.  Work around bug with older shells
77961         that "see" a '\' that is really the 2nd byte of a multibyte char.
77962         Quote empty string with shell_quoting_style.
77963
77964 2004-02-03  Bruno Haible  <bruno@clisp.org>
77965
77966         * m4/pipe.m4: New file, from GNU gettext.
77967
77968 2004-02-03  Bruno Haible  <bruno@clisp.org>
77969
77970         * lib/pipe.h: New file, from GNU gettext.
77971         * lib/pipe.c: New file, from GNU gettext.
77972
77973 2004-01-27  Bruno Haible  <bruno@clisp.org>
77974
77975         * m4/execute.m4: New file, from GNU gettext.
77976
77977 2004-01-27  Bruno Haible  <bruno@clisp.org>
77978
77979         * lib/execute.h: New file, from GNU gettext.
77980         * lib/execute.c: New file, from GNU gettext.
77981         * lib/w32spawn.h: New file, from GNU gettext.
77982
77983 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77984
77985         Merge from diffutils.
77986
77987         * lib/file-type.c (file_type): Add typed memory objects.
77988         * lib/file-type.h (S_TYPEISTMO): New macro.
77989
77990         * lib/c-stack.h (c_stack_action): Remove argv argument.
77991         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77992         (die): Don't calculate message unless segv_action returns.
77993         (get_stack_location, min_address_from_argv, max_address_from_argv,
77994         volatile stack_base, volatile_stack_size): Remove.
77995         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77996         that every segmentation violation is a stack overflow.  (Ouch!)
77997         See Debian bug 136249 (still outstanding) for more info about why
77998         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77999
78000 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78001
78002         Exit-status fix from coreutils.
78003
78004         Use exit_failure consistently in place of EXIT_FAILURE,
78005         so that program exit statuses are consistent on failure.
78006
78007         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78008         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78009         * lib/argmatch.h: Comment fix to match the above.
78010         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78011         Now a macro referring to exit_failure, instead of a separate
78012         variable.  Include "exitfail.h" to get it.
78013         * lib/xstrtol.h: Include "exitfail.h".
78014         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78015
78016         * lib/long-options.c (parse_long_options): Use prototype
78017         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78018         for clarity.
78019
78020 2004-01-21  Jim Meyering  <jim@meyering.net>
78021
78022         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78023         so as not to conflict with a different-sized __mktime_internal
78024         function in GNU libc.
78025         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78026         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78027
78028 2004-01-20  Karl Berry  <karl@gnu.org>
78029
78030         * config/config.guess: update from config.
78031
78032         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78033
78034 2004-01-20  Bruno Haible  <bruno@clisp.org>
78035
78036         Safer stack allocation.
78037         * lib/setenv.c: Include allocsa.h.
78038         (alloca): Remove fallback definition.
78039         (freea): Remove macro.
78040         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78041         instead of freea.
78042
78043 2004-01-20  Bruno Haible  <bruno@clisp.org>
78044
78045         * m4/eealloc.m4: New file, from GNU gettext.
78046
78047 2004-01-20  Bruno Haible  <bruno@clisp.org>
78048
78049         * m4/allocsa.m4: New file, from GNU gettext.
78050
78051 2004-01-20  Bruno Haible  <bruno@clisp.org>
78052
78053         * lib/xallocsa.h: New file, from GNU gettext.
78054         * lib/xallocsa.c: New file, from GNU gettext.
78055
78056 2004-01-20  Bruno Haible  <bruno@clisp.org>
78057
78058         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78059
78060 2004-01-20  Bruno Haible  <bruno@clisp.org>
78061
78062         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78063         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78064         specially.
78065
78066 2004-01-20  Bruno Haible  <bruno@clisp.org>
78067
78068         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78069         patch.
78070
78071 2004-01-20  Bruno Haible  <bruno@clisp.org>
78072
78073         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78074
78075 2004-01-20  Bruno Haible  <bruno@clisp.org>
78076
78077         * lib/eealloc.h: New file.
78078
78079 2004-01-20  Bruno Haible  <bruno@clisp.org>
78080
78081         * lib/binary-io.h: Avoid warnings on Cygwin.
78082
78083 2004-01-20  Bruno Haible  <bruno@clisp.org>
78084
78085         * lib/allocsa.h: New file, from GNU gettext.
78086         * lib/allocsa.c: New file, from GNU gettext.
78087
78088 2004-01-18  Karl Berry  <karl@gnu.org>
78089
78090         * doc/gpl.texi, doc/lgpl.texi: new files.
78091
78092 2004-01-18  Karl Berry  <karl@gnu.org>
78093
78094         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78095         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78096
78097 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78098
78099         Merge from coreutils.
78100
78101         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78102         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78103         (gl_DEFAULT_POSIX2_VERSION): Move
78104         the documentation from 'configure' into 'config.hin',
78105         so that 'configure --help' isn't burdened by it and
78106         we don't have to worry about its formatting there.
78107         Reword the documentation so that it's more succinct
78108         and can be run together into a single paragraph.
78109         * m4/same.m4 (gl_SAME): Check for pathconf.
78110
78111 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78112
78113         Merge from coreutils.
78114
78115         * lib/posixver.c: Include posixver.h.
78116
78117         * lib/same.c: Include <stdbool.h>, <limits.h>.
78118         (_POSIX_NAME_MAX): Define if not defined.
78119         (MIN): New macro.
78120         (same_name): If file names are silently truncated, report
78121         that the file names are the same if they are the same after
78122         the silent truncation.
78123
78124         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78125         conversion function.
78126         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78127         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78128         longer needed.
78129
78130 2004-01-15  Jim Meyering  <jim@meyering.net>
78131
78132         Merge from coreutils.
78133
78134         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78135         if no library is required.
78136         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78137         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78138         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78139         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78140         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78141         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78142         value, $ac_cv_search_crypt, if it's "none required".
78143         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78144         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78145         not gl_FUNC_GETLOADAVG.
78146         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78147         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78148
78149 2004-01-15  Jim Meyering  <jim@meyering.net>
78150
78151         Merge from coreutils.
78152
78153         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78154         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78155         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78156
78157         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78158         optional configure-time default.
78159
78160         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78161
78162         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78163
78164 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78165
78166         Merge from coreutils.
78167
78168         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78169         value, $ac_cv_search_nanosleep, if it's "none required".
78170
78171 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78172
78173         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78174         with like-named macro in fnmatch.c.
78175         (EXT): Use an internal constant instead.
78176
78177         Merge fnmatch patches from glibc.
78178         * lib/fnmatch.c (mbsinit): Remove define.
78179         Add libc_hidden_ver (__fnmatch, fnmatch).
78180         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78181         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78182
78183 2004-01-14  Karl Berry  <karl@gnu.org>
78184
78185         * config/install-sh: update from automake.
78186
78187 2004-01-13  Karl Berry  <karl@gnu.org>
78188
78189         * config/install-sh: update from automake.
78190
78191 2004-01-09  Karl Berry  <karl@gnu.org>
78192
78193         * config/install-sh: update from automake.
78194
78195 2004-01-05  Karl Berry  <karl@gnu.org>
78196
78197         * config/config.{sub,guess}: update from config.
78198
78199 2003-12-31  Karl Berry  <karl@gnu.org>
78200
78201         * config/depcomp: update from automake.
78202
78203 2003-12-14  Karl Berry  <karl@gnu.org>
78204
78205         * lib/config.charset: update from gettext-runtime.
78206
78207 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78208
78209         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78210         Bug reported by Alfred M. Szmidt.
78211
78212 2003-12-03  Bruno Haible  <bruno@clisp.org>
78213
78214         * m4/gettext.m4: Upgrade from gettext-0.13.
78215         * m4/po.m4: Upgrade from gettext-0.13.
78216         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78217         * m4/intmax.m4: New file, from gettext-0.13.
78218         * m4/printf-posix.m4: New file, from gettext-0.13.
78219
78220 2003-11-29  Karl Berry  <karl@gnu.org>
78221
78222         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78223
78224 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78225             Bruno Haible  <bruno@clisp.org>
78226
78227         * lib/printf-parse.h: Don't include sys/types.h.
78228         (ARG_NONE): New macro.
78229         (char_directive): Change type of *arg_index fields to size_t.
78230         * lib/printf-parse.c: Don't include sys/types.h.
78231         (SSIZE_MAX): Remove macro.
78232         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78233         Remove unnecessary overflow check.
78234         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78235         fields.
78236
78237 2003-11-25  Bruno Haible  <bruno@clisp.org>
78238
78239         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78240
78241 2003-11-25  Bruno Haible  <bruno@clisp.org>
78242
78243         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78244         gt_TYPE_SSIZE_T.
78245
78246 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78247
78248         * modules/alloca: Remove dependency on xalloc.
78249
78250 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78251
78252         * lib/alloca.c: Remove dependency on xalloc module.
78253         (xalloc_die): Remove.
78254         (memory_full) [!defined emacs]: New macro.
78255         [!defined emacs]: Don't include xalloc.h.
78256         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78257         address arithmetic overflows.  Change datatypes a bit to avoid
78258         unnecessary casts.
78259
78260 2003-11-22  Jim Meyering  <jim@meyering.net>
78261
78262         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78263         s/size/size_t/.
78264
78265 2003-11-21  Karl Berry  <karl@gnu.org>
78266
78267         * config/config.{sub,guess}: update from config.
78268
78269 2003-11-18  Karl Berry  <karl@gnu.org>
78270
78271         * config/config.{sub,guess}: update from config.
78272
78273         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78274
78275 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78276
78277         * README: Mention that S+T cannot overflow if S is the size of
78278         an existing object and T is sufficiently small.
78279
78280 2003-11-17  Jim Meyering  <jim@meyering.net>
78281
78282         On systems without utime and without a utimes function capable of
78283         dealing with a NULL struct utimbuf* argument, this utime replacement
78284         could -- in unusual circumstances -- leak a file descriptor.
78285         * lib/utime.c: Include <unistd.h> and <errno.h>.
78286         (utime_null): Be sure to close `fd' and to preserve errno.
78287         Reported by Geoff Collyer via Arnold Robbins.
78288
78289 2003-11-17  Bruno Haible  <bruno@clisp.org>
78290
78291         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78292         (Depends-on): Add xsize.
78293
78294 2003-11-17  Bruno Haible  <bruno@clisp.org>
78295
78296         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78297
78298 2003-11-17  Bruno Haible  <bruno@clisp.org>
78299
78300         * lib/vasnprintf.c (alloca): Remove fallback definition.
78301         (freea): Remove definition.
78302         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78303         Reported by Paul Eggert.
78304
78305 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78306             Bruno Haible  <bruno@clisp.org>
78307
78308         Protect against address arithmetic overflow.
78309         * lib/printf-args.h: Include stddef.h.
78310         (arguments): Change type of field 'count' to size_t.
78311         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78312         'unsigned int' where appropriate.
78313         * lib/printf-parse.h: Include sys/types.h.
78314         (char_directive): Change type of *arg_index fields to ssize_t.
78315         (char_directives): Change type of fields 'count', max_*_length to
78316         size_t.
78317         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78318         (SSIZE_MAX): Define fallback value.
78319         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78320         instead of 'int' where appropriate. Check a_allocated, d_allocated
78321         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78322         * lib/vasnprintf.c: Include xsize.h.
78323         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78324         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78325         overflow. Avoid wraparound when converting a width or precision from
78326         decimal to binary.
78327
78328 2003-11-16  Bruno Haible  <bruno@clisp.org>
78329
78330         Update from GNU gettext.
78331         * lib/printf-parse.c: Generalize to it can be compiled for wide
78332         strings.
78333         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78334         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78335         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78336         SNPRINTF): New macros.
78337         Don't include <alloca.h> if the file is used inside libintl.
78338         (local_wcslen): New function, for Solaris 2.5.1.
78339         (VASNPRINTF): Use it instead of wcslen.
78340
78341 2003-11-16  Bruno Haible  <bruno@clisp.org>
78342
78343         * lib/xsize.h (xmax): New function.
78344         (xsum, xsum3, xsum4): Declare as "pure" functions.
78345
78346 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78347
78348         * modules/xalloc (Files): Undo latest change, since xalloc.h
78349         no longer needs SIZE_MAX or PTRDIFF_MAX.
78350
78351 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78352
78353         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78354         gl_PTRDIFF_MAX.
78355
78356 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78357
78358         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78359         "return", to pacify some unknown compiler.  Problem reported
78360         by Joerg Schilling.
78361
78362 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78363
78364         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78365         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78366         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78367         heuristic is just as accurate as far as we know, and it removes a
78368         dependency on size_max.m4 and ptrdiff_max.m4.
78369
78370 2003-11-11  Bruno Haible  <bruno@clisp.org>
78371
78372         * modules/xsize (Files): Add m4/size_max.m4.
78373         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78374
78375 2003-11-11  Bruno Haible  <bruno@clisp.org>
78376
78377         * m4/size_max.m4: New file.
78378         * m4/ptrdiff_max.m4: New file.
78379         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78380         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78381         (gl_XALLOC): Invoke it.
78382
78383 2003-11-11  Bruno Haible  <bruno@clisp.org>
78384
78385         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78386         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78387         defined.
78388
78389 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78390
78391         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78392         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78393         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78394         From Bruno Haible.
78395         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78396         not (size_t) -1, since it's defined here.
78397
78398 2003-11-09  Karl Berry  <karl@gnu.org>
78399
78400         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78401
78402 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78403
78404         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78405         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78406         Reject sizes of exactly SIZE_MAX bytes.
78407         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78408         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78409
78410 2003-11-05  Bruno Haible  <bruno@clisp.org>
78411
78412         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78413         SIZE_MAX defined in <limits.h> on Solaris.
78414
78415 2003-11-04  Jim Meyering  <jim@meyering.net>
78416
78417         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78418         variable names, rather than @VAR@.
78419         * modules/poll: Likewise.
78420
78421 2003-11-04  Bruno Haible  <bruno@clisp.org>
78422
78423         * modules/xsize: New file.
78424         * modules/linebreak: Depend on xsize.
78425         * MODULES.html.sh (func_all_modules): Add xsize.
78426
78427 2003-11-04  Bruno Haible  <bruno@clisp.org>
78428
78429         * m4/xsize.m4: New file.
78430
78431 2003-11-04  Bruno Haible  <bruno@clisp.org>
78432
78433         * lib/xsize.h: New file.
78434         * lib/linebreak.c: Include xsize.h.
78435         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78436         argument for overflow.
78437         Suggested by Paul Eggert.
78438
78439 2003-11-03  Karl Berry  <karl@gnu.org>
78440
78441         * config/config.{guess,sub}: update from config.
78442
78443 2003-11-03  Jim Meyering  <jim@meyering.net>
78444
78445         * modules/userspec (lib_SOURCES): Add userspec.h.
78446         (Include): Add "userspec.h".
78447         Improve description.
78448
78449 2003-11-03  Jim Meyering  <jim@meyering.net>
78450
78451         * lib/userspec.c: Include "userspec.h".
78452         * lib/userspec.h: New file.
78453
78454 2003-11-03  Bruno Haible  <bruno@clisp.org>
78455
78456         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78457
78458 2003-11-03  Bruno Haible  <bruno@clisp.org>
78459
78460         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78461         available, to avoid (extremely rare) race condition.
78462         Suggested by Paul Eggert.
78463
78464 2003-11-02  Karl Berry  <karl@gnu.org>
78465
78466         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78467
78468 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78469
78470         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78471         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78472         (read_filesystem_list): Set and use me_type_malloced.
78473         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78474         whatever the type happens to be), for brevity and consistency.
78475         Check for size calculation overflow on Alphas running OSF/1.
78476
78477 2003-10-31  Jim Meyering  <jim@meyering.net>
78478
78479         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78480
78481         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78482
78483 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78484             Bruno Haible  <bruno@clisp.org>
78485
78486         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78487         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78488
78489 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78492         netbsd*-gnu*.  Suggested by Robert Millan.
78493
78494 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78495
78496         * modules/group-member: Depend on stdbool.
78497
78498 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78499
78500         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78501
78502 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78503
78504         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78505         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78506         after the 'gnu' in these cases.  This fixes some bugs in the
78507         previous change, and is based on suggestions by Robert Millan.
78508
78509 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78510
78511         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78512         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78513         no longer needed.
78514         * lib/quotearg.c (quotearg_n_options): Use it.
78515         * lib/group-member.c: Include <stdbool.h>.
78516         (free_group_info): Arg is now const *; don't free arg.
78517         (get_group_info): Now returns bool and accepts struct group_info *,
78518         rather than returning a malloc'ed struct group_info *.
78519         All uses changed.  Check for overflow in internal size calculation.
78520
78521         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78522         rather than xmalloc/xrealloc.
78523         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78524         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78525         conformance bug: the old code used a pointer after freeing the
78526         storage that it addressed.
78527         * lib/hash.c (hash_initialize): Simplify the code by using
78528         xalloc_oversized rather than doing it by hand.
78529         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78530         the buffer preserved.  Use free and xmalloc instead.
78531         * lib/quotearg.c (quotearg_n_options): Likewise.
78532         Use a simpler test for size overflow.  Don't use xalloc_oversized
78533         because unsigned int might be wider than size_t (!); this suggests
78534         that we should switch from unsigned int to size_t for slot numbers.
78535
78536 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78537
78538         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78539         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78540         NetBSD kernels.  Requested by Richard Stallman.
78541
78542 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78543
78544         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78545         to allocate the returned structure.  Do not allocate a subarray,
78546         as x2nrealloc will do that.
78547         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78548         instead of xnrealloc.
78549         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78550
78551 2003-10-27  Bruno Haible  <bruno@clisp.org>
78552
78553         * lib/stdbool_.h: Better support for BeOS.
78554
78555 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78556
78557         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78558         now uses inline.
78559
78560 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78561
78562         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78563         callers that want to do their own size-overflow checking.  Include
78564         <stdbool.h>, since xalloc_oversized returns bool.
78565         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78566         to use xalloc_oversized.
78567
78568         Add two functions x2realloc, x2nrealloc, for programs that grow
78569         arrays dynamically by doubling their sizes.
78570         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78571         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78572         New functions.
78573
78574         Port to C99 semantics for 'inline' of external functions.
78575         Bug reported by Bruno Haible.
78576         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78577         with the old contents of xnmalloc.
78578         (xnmalloc, xmalloc): Use it.
78579         (xnrealloc_inline): New static inline function,
78580         with the old contents of xnrealloc.
78581         (xnrealloc, xrealloc): Use it.
78582
78583         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78584         that.
78585
78586 2003-10-26  Karl Berry  <karl@gnu.org>
78587
78588         * config/srclist.txt (COPYING.DOC): no longer available from
78589         /gd/gnuorg; don't know where the ultimate source is.
78590
78591 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78592
78593         Fix several address-calculation bugs in the hash modules,
78594         plus some minor code cleanup.
78595
78596         * lib/hash.h: Include <stdbool.h>, for bool.
78597         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78598         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78599         hash_get_n_entries, hash_get_max_bucket_length,
78600         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78601         hash_rehash): Use size_t rather than unsigned.
78602         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78603         hash_get_n_buckets_used, hash_get_n_entries,
78604         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78605         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78606         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78607         Likewise.
78608         (SIZE_MAX): Define if not defined.
78609         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78610         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78611         hash_print):
78612         Use const * when possible.
78613         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78614         (check_tuning): Fix bug: if tuning parameters were very close to
78615         0 or 1, rounding errors could have caused subscript violations.
78616         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78617         (hash_initialize): Add 'fail:' label
78618         to free table and return NULL, and use it to simplify code.
78619         Use calloc rather than clearing the storage ourself.
78620         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78621         buffer size calculations.
78622         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78623         Include <stddef.h>, for size_t.
78624         * lib/hash-pjw.c (hash_pjw): Likewise.
78625         Switch to method described by Bruno Haible.
78626         Include <limits.h>, for CHAR_BIT.
78627         (SIZE_BITS): New macro.
78628
78629 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78630
78631         * m4/getline.m4 (AM_FUNC_GETLINE):
78632         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78633         hosts.  Problem reported by Derek Robert Price in
78634         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78635         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78636         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78637
78638 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78639
78640         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78641         ceiling the allocation at NMAX bytes rather than silently
78642         discarding input bytes before NMAX is reached.  This makes
78643         a difference only if NMAX exceeds SIZE_MAX / 2.
78644
78645         * lib/obstack.c: Merge from glibc.
78646         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78647         Add libc_hidden_def (_obstack_newchunk).
78648         (_obstack_free) [! defined _LIBC]: Remove.
78649         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78650         a clone of the function body.
78651         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78652         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78653
78654         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78655         glibc.
78656         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78657         arg to memcpy.
78658
78659         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78660         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78661         Don't use lvalue casts, as GCC plans to remove support for them
78662         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78663         was also present in the non-GCC version, indicating that this
78664         code had always been buggy and had never been widely used.
78665         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78666         Use the fast variant of each macro, rather than copying the
78667         definiens of the fast variant; that way, we'll be more likely to
78668         catch future bugs in the fast variants.
78669
78670 2003-10-20  Bruno Haible  <bruno@clisp.org>
78671
78672         * modules/wait-process: New file.
78673         * MODULES.html.sh (func_all_modules): Add wait-process.
78674
78675 2003-10-20  Bruno Haible  <bruno@clisp.org>
78676
78677         * m4/wait-process.m4: New file.
78678
78679 2003-10-20  Bruno Haible  <bruno@clisp.org>
78680
78681         * lib/wait-process.h: New file, from GNU gettext.
78682         * lib/wait-process.c: New file, from GNU gettext.
78683
78684 2003-10-19  Jim Meyering  <jim@meyering.net>
78685
78686         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78687         HPUX 10.20.
78688
78689 2003-10-18  Karl Berry  <karl@gnu.org>
78690
78691         * config/config.guess: update from config.
78692
78693 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78694
78695         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78696         (getgroups): First arg is int, not size_t.
78697         Don't let 'free' mangle errno.
78698
78699 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78700
78701         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78702
78703 2003-10-16  Karl Berry  <karl@gnu.org>
78704
78705         * config/config.{guess,sub}: update from config.
78706
78707 2003-10-16  Jim Meyering  <jim@meyering.net>
78708
78709         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78710         memcpy.
78711
78712 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78713
78714         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78715         (SIZE_MAX): Remove.
78716         (new_exclude, add_exclude_file): Initial size no longer needs to
78717         be a power of 2.
78718         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78719         our own address arithmetic overflow checking.
78720
78721         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78722         (fnmatch): Do not alloca more than 2000 wide characters;
78723         instead, use malloc for large buffers.
78724         Check for address arithmetic overflow, and return -1
78725         with errno set to ENOMEM in that case.
78726         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78727         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78728         instead, return -1.  Check for address arithmetic overflow.
78729
78730 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78731
78732         Handle invalid suffixes and overflow independently, so that
78733         callers can treat them independently as needed.  Fix some bugs in
78734         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78735         suffix for a human-readable blocksize.  The major caller-visible
78736         change is the addition of a new
78737         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78738         that both overflow and suffix chars were found.
78739
78740         * lib/human.c (humblock): Don't check separately for invalid suffix
78741         char; that is xstrtoumax's job (now that its bug is fixed).
78742         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78743         INTMAX_MAX]: New macros.
78744         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78745         TYPE_MAXIMUM): New macros.
78746         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78747         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78748         if overflow occurs, as it's what __strtol does and it's more useful
78749         in practice.
78750         (__xstrtol): If __strtol reports some error other than ERANGE,
78751         reflect it to the caller as LONGINT_INVALID.  If it reports
78752         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78753         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78754         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78755         value.
78756         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78757         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78758         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78759         [defined UINTMAX_MAX]: New macros.
78760
78761 2003-10-14  Bruno Haible  <bruno@clisp.org>
78762
78763         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78764
78765 2003-10-14  Bruno Haible  <bruno@clisp.org>
78766
78767         * m4/sig_atomic_t: New file, from GNU gettext.
78768         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78769
78770 2003-10-14  Bruno Haible  <bruno@clisp.org>
78771
78772         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78773         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78774         Also use volatile where needed.
78775
78776 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78777
78778         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78779         Change maintainer from Bruno Haible to 'all'.
78780
78781 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78782
78783         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78784
78785 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78786
78787         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78788         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78789         and define in terms of the other primitives.
78790         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78791         (SIZE_MAX): Define if not already defined.
78792         (array_size_overflow): New function.
78793         (xalloc_die): Abort instead of exiting if 'error' returns.
78794         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78795         (xmalloc, xrealloc): Use them.
78796         (xcalloc): Check for address arithmetic overflow.
78797         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78798         a bit faster than strcpy.
78799
78800 2003-10-10  Simon Josefsson  <jas@extundo.com>
78801
78802         * modules/argp (Depends-on): Add restrict and strcase.
78803
78804 2003-10-10  Simon Josefsson  <jas@extundo.com>
78805
78806         * m4/argp.m4: Add AC_C_INLINE.
78807
78808 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78809
78810         Merge getpass from libc, plus a few fixes.
78811
78812         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78813         Include <stdbool.h>.
78814         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78815         __fsetlocking to empty.
78816         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78817         do include <bits/libc-lock.h>.
78818         Do not include <fcntl.h>; not needed.
78819         [_LIBC]: Include <wchar.h>.
78820         (NOTCANCEL_MODE): New macro.
78821         (flockfile, funlockfile) [_LIBC]: New macros.
78822         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78823         [!_LIBC]: New macros.
78824         (call_fclose): New function.
78825         (getpass): Use it.  Save tty stream separately; this simplifies the
78826         code and makes it more reliable if stdin happens to equal stdout.
78827         Invoke __fsetlocking on tty.
78828         Handle thread cancellation if needed.
78829         Namespace cleanup (use __tcgetattr, __getline).
78830         Use bool for Booleans.
78831         [USE_IN_LIBIO]: Handle wide streams.
78832         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78833         stream might go where.
78834
78835         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78836         doesn't have to include <stdio.h> before us.
78837         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78838         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78839         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78840         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78841         if not declared, so that we can use getpass.c code from libc without
78842         rewriting it.
78843         (flockfile, ftrylockfile, funlockfile): New macros.
78844
78845 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78846
78847         * modules/getpass: Depend on stdbool.
78848
78849 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78850
78851         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78852
78853 2003-10-07  Karl Berry  <karl@gnu.org>
78854
78855         * config/config.{guess,sub}: update from config.
78856
78857 2003-10-06  Jim Meyering  <jim@meyering.net>
78858             Bruno Haible  <bruno@clisp.org>
78859
78860         This lets translators provide better translations for the
78861         "Written by ..." part of --version output.
78862         * lib/version-etc.h: Include stdarg.h.
78863         (version_etc_copyright): Declare as readonly.
78864         (version_etc): Make this function variadic with a NULL-terminated list
78865         of author name strings.
78866         (version_etc_va): New declaration.
78867         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78868         (version_etc_copyright): Declare as readonly.
78869         (version_etc_va): New function. Provide a different translatable string
78870         for each possible number of authors < 10. Abbreviate when there are 10
78871         authors or more.
78872         (version_etc): Make this function variadic. Call version_etc_va.
78873         Suggestion from Gary V. Vaughan.
78874
78875         * lib/long-options.h (parse_long_options): Change prototype: the
78876         authors string is moved to the end and becomes variadic.
78877         * lib/long-options.c: Include stdarg.h.
78878         (parse_long_options): Make this function variadic, too.
78879         Call version_etc_va, not version_etc.
78880
78881 2003-10-06  Bruno Haible  <bruno@clisp.org>
78882
78883         * modules/version-etc-2: Remove file.
78884         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78885
78886 2003-10-06  Bruno Haible  <bruno@clisp.org>
78887
78888         * modules/fatal-signal: New file.
78889         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78890
78891 2003-10-06  Bruno Haible  <bruno@clisp.org>
78892
78893         * m4/fatal-signal.m4: New file.
78894         * m4/signalblocking.m4: New file, from GNU gettext.
78895
78896 2003-10-06  Bruno Haible  <bruno@clisp.org>
78897
78898         * lib/version-etc-2.h: Remove file.
78899         * lib/version-etc-2.c: Remove file.
78900
78901 2003-10-06  Bruno Haible  <bruno@clisp.org>
78902
78903         * lib/fatal-signal.h: New file, from GNU gettext.
78904         * lib/fatal-signal.c: New file, from GNU gettext.
78905
78906 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78907
78908         * README: Rework advice for preventing empty .o files.
78909         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78910         not <sys/types.h>.
78911
78912 2003-10-04  Karl Berry  <karl@gnu.org>
78913
78914         * lib/argp*: update from libc.
78915
78916 2003-10-04  Karl Berry  <karl@gnu.org>
78917
78918         * config/config.{guess,sub}: update from config.
78919
78920 2003-10-02  Bruno Haible  <bruno@clisp.org>
78921
78922         * modules/lchown (Include): Add lchown.h.
78923         * modules/time_r (Include): Use "..." syntax.
78924         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78925
78926 2003-10-01  Simon Josefsson  <jas@extundo.com>
78927
78928         * MODULES.html.sh (func_all_modules): Move gethostname from section
78929         'based on' to section 'lacking' POSIX:2001.
78930
78931 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78932
78933         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78934         to output mode on the same stream.
78935
78936 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78937
78938         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78939         Fix arg typo in previous patch.
78940
78941 2003-09-28  Jim Meyering  <jim@meyering.net>
78942
78943         * lib/error.c: Correct cpp indentation.
78944
78945 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78946
78947         * modules/free: New file.
78948
78949 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78950
78951         * m4/free.m4: New file.
78952
78953 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78954
78955         * lib/minmax.h (MIN, MAX)
78956         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78957         Omit the special code that used __typeof__, since we worry that
78958         it could be more trouble than it's worth.  See:
78959         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78960         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78961
78962         * lib/free.c: New file.
78963
78964 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78965
78966         Trivial fixes to Makefile.am parts of module listings.
78967         * modules/strstr: Append strstr.h to lib_SOURCES.
78968         * modules/strcase: Likewise, for strcase.h.
78969
78970 2003-09-27  Karl Berry  <karl@gnu.org>
78971
78972         * config/mkinstalldirs: update from automake.
78973
78974 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78975
78976         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78977         (error_tail): Do not loop, reallocating temporary buffer, since
78978         the output cannot contain more wide characters than the input
78979         contains bytes, the size must be big enough already.  This avoids
78980         one potential size overflow calculation.  Check for size overflow
78981         when calculating temporary buffer size.  Free temporary buffer
78982         when done, if it was allocated with malloc; this plugs a memory
78983         leak.  Remove casts from void * to pointers, that are no longer
78984         needed now that we're assuming C89 or better.
78985
78986         Merge error changes from glibc.
78987
78988         * lib/error.c, error.h: Update copyright notice header to match glibc.
78989         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78990         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78991         Disable cancellation while printing error.
78992         * lib/error.h: Prepend __ to parameter names.
78993
78994 2003-09-26  Jim Meyering  <jim@meyering.net>
78995
78996         * lib/error.c (error_tail): Move some declarations
78997         into inner scope where the local variables are used.
78998
78999 2003-09-26  Bruno Haible  <bruno@clisp.org>
79000
79001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79002         stpncpy().
79003         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79004
79005 2003-09-26  Bruno Haible  <bruno@clisp.org>
79006
79007         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79008         (stpncpy): Define as alias for gnu_stpncpy.
79009         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79010
79011 2003-09-25  Simon Josefsson  <jas@extundo.com>
79012
79013         * lib/xgetdomainname.h: New file.
79014         * lib/xgetdomainname.c: New file.
79015
79016 2003-09-25  Simon Josefsson  <jas@extundo.com>
79017             Bruno Haible  <bruno@clisp.org>
79018
79019         * modules/getdomainname: New file.
79020         * modules/xgetdomainname: New file.
79021         * MODULES.html.sh (func_all_modules): Add getdomainname,
79022         xgetdomainname.
79023
79024 2003-09-25  Simon Josefsson  <jas@extundo.com>
79025             Bruno Haible  <bruno@clisp.org>
79026
79027         * m4/getdomainname.m4: New file.
79028
79029 2003-09-25  Simon Josefsson  <jas@extundo.com>
79030             Bruno Haible  <bruno@clisp.org>
79031
79032         * lib/getdomainname.h: New file.
79033         * lib/getdomainname.c: New file.
79034
79035 2003-09-25  Karl Berry  <karl@gnu.org>
79036
79037         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79038
79039 2003-09-25  Karl Berry  <karl@gnu.org>
79040
79041         * config/install-sh: update from automake.
79042
79043 2003-09-25  Bruno Haible  <bruno@clisp.org>
79044
79045         * modules/version-etc-2: New file, from modules/version-etc with
79046         modifications.
79047         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79048
79049 2003-09-25  Bruno Haible  <bruno@clisp.org>
79050
79051         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79052         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79053
79054 2003-09-24  Simon Josefsson  <jas@extundo.com>
79055
79056         * modules/xgethostname: Add xgethostname.h.
79057
79058 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79059
79060         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79061         the buffer associated with the argument.  Bug reported by
79062         Simon Josefsson.
79063
79064 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79065
79066         * README: Document assumptions that 'int' is at least 32 bits
79067         wide, that integer arithmetic is 2's complement without overflow,
79068         that there are no holes in integer values, that adding sizes of
79069         two nonoverlapping objects can't overflow, and that all-bits-zero
79070         yields scalar zero.  Fix spelling and capitalization typos.
79071
79072 2003-09-19  Karl Berry  <karl@gnu.org>
79073
79074         * lib/argp.h: update from libc.
79075
79076 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79077
79078         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79079         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79080         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79081
79082 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79083
79084         * gnulib-tool: Use "test -h", not "test -L", for portability
79085         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79086         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79087         (sed_extract_prog): Issue s commands one-by-one, rather than
79088         using \| in one s command.
79089
79090 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79091
79092         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79093         input error, instead of returning NULL the next time we are called
79094         (and therefore losing track of errno).
79095
79096 2003-09-16  Bruno Haible  <bruno@clisp.org>
79097
79098         * gnulib-tool (func_create_testdir): Warn about duplicated
79099         dependencies.
79100
79101 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79102
79103         * modules/argmatch, modules/fatal, modules/obstack,
79104         modules/xalloc, modules/xgethostname: Sort dependencies by
79105         importance, not alphabetically.
79106
79107 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79108
79109         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79110         fails, so that the caller gets the proper errno.
79111
79112         * lib/readutmp.c (read_utmp): Likewise.
79113         Check for fstat error.  Close stream and free storage
79114         when failing.
79115
79116 2003-09-14  Karl Berry  <karl@gnu.org>
79117
79118         * config/srclist.txt (strdup.c): disable for c89 changes.
79119
79120 2003-09-14  Jim Meyering  <jim@meyering.net>
79121
79122         * lib/getloadavg.c: Correct cpp indentation.
79123         * lib/strdup.c: Likewise.
79124         * lib/vasnprintf.c: Likewise.
79125
79126 2003-09-14  Bruno Haible  <bruno@clisp.org>
79127
79128         * modules/fwriteerror: New file.
79129         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79130
79131 2003-09-14  Bruno Haible  <bruno@clisp.org>
79132
79133         * lib/fwriteerror.h: New file.
79134         * lib/fwriteerror.c: New file.
79135
79136 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79137
79138         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79139         modules/xgethostname, modules/xalloc: Depend on exit.
79140
79141 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79142
79143         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79144
79145         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79146         and AC_MINIX, too, so that their extensions are available.
79147
79148         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79149         This macro has been superseded by gl_BACKUPFILE.
79150
79151         More patches to assume C89 or better.
79152
79153         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79154
79155         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79156         unconditionally.
79157         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79158         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79159         Include <string.h>, <stdlib.h> unconditionally.
79160         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79161         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79162         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79163         headers or for string.h.
79164         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79165         or strtoul.
79166
79167         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79168         headers.
79169         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79170         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79171         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79172         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79173         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79174         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79175         memcpy, memset.
79176         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79177         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79178         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79179         strtol.
79180         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79181         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79182         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79183         strtoul.
79184
79185 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79186
79187         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79188         * lib/obstack.c [!defined _LIBC]: Likewise.
79189         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79190         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79191         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79192
79193         More changes to assume C89 or better.
79194
79195         * lib/error.c (error_tail): Assume vprintf.
79196
79197         * lib/argmatch.c (getenv): Remove decl.
79198         * lib/progreloc.c (get_full_program_name): Define via prototype.
79199         * lib/setenv.c (clearenv): Likewise.
79200         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79201         needed.
79202         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79203         (malloc, memcpy): Remove decls.
79204         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79205         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79206         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79207         (memcpy): Remove macro.
79208         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79209         (__P): Remove.  All uses removed.
79210         (PTR): Remove.  All uses changed to void *.
79211         (CHAR_BIT, NULL): Remove.
79212         (spaces, zeros, memset_space, memset_zero)
79213         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79214         Remove.
79215         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79216         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79217         Define with prototype.
79218         Remove now-unnecessary prototype decl.
79219         (extra_args_spec): Assume ANSI C.  All uses changed.
79220         (extra_args_spec_iso): Remove.
79221         (my_strftime, emacs_strftimeu): Define via prototype.
79222         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79223         unconditionally.
79224         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79225         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79226         (strtoul, strtol): Remove decls.
79227         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79228         LONG_MAX): Remove.
79229         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79230         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79231         (LOCALE_PARAM_PROTO): New macro.
79232         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79233         (INTERNAL (strtol), strtol): Define with a prototype.
79234         (PARAMS): Remove.  All uses removed.
79235         * lib/tempname.c: Include <string.h> unconditionally.
79236         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79237         * lib/xgethostname.c (main): Define with a prototype.
79238         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79239         Include <stdlib.h> unconditionally.
79240         (calloc, malloc, realloc, free): Remove decls.
79241         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79242         Include <stdlib.h> unconditionally.  Sort include file names.
79243         (strtod): Remove.
79244         (xstrtod): Define with a prototype.
79245         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79246         (strtol, strtoul): Remove decls.
79247
79248 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79249
79250         More patches to assume C89 or better.
79251         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79252         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79253         string.h, memchr, STDC_HEADERS.
79254
79255 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79256
79257         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79258         Include <stdlib.h>, <string.h> unconditionally.
79259         Remove now-unnecessary cast to char *.
79260         * lib/strnlen.c: Include <string.h> unconditionally.
79261         * lib/yesno.c (yesno): Define with a prototype.
79262
79263 2003-09-11  Bruno Haible  <bruno@clisp.org>
79264
79265         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79266
79267 2003-09-10  Jim Meyering  <jim@meyering.net>
79268
79269         * lib/error.c: Correct indentation of cpp directives.
79270
79271 2003-09-10  Bruno Haible  <bruno@clisp.org>
79272
79273         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79274         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79275         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79276         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79277         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79278         <stdlib.h> and <string.h> checks.
79279         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79280         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79281
79282 2003-09-10  Bruno Haible  <bruno@clisp.org>
79283
79284         * lib/strcspn.c: Include <string.h> unconditionally.
79285         * lib/strpbrk.c: Include <string.h> unconditionally.
79286         * lib/strstr.c: Include <string.h> unconditionally.
79287         * lib/unicodeio.c: Include <string.h> unconditionally.
79288         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79289         * lib/unsetenv.c: Likewise.
79290         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79291         * lib/yesno.c: Include <stdlib.h> unconditionally.
79292         (rpmatch): Add prototype.
79293
79294 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79295
79296         More patches to assume C89 or better.
79297         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79298         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79299         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79300         or for string.h.
79301         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79302         stdlib.h.
79303         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79304         C headers.
79305         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79306         string.h.
79307         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79308         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79309         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79310         or for string.h.
79311         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79312         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79313         C headers.
79314         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79315         memcpy.
79316         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79317         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79318         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79319         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79320         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79321         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79322         string.h, free.
79323         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79324         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79325         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79326         C headers, or for string.h.
79327         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79328         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79329         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79330         headers, memory.h, stdlib.h, string.h, strings.h.
79331         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79332         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79333         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79334         strchr.
79335         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79336         headers, memory.h, string.h.
79337         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79338         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79339         free.
79340         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79341         headers.
79342         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79343         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79344         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79345         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79346         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79347
79348 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79349
79350         More K&R removal.
79351
79352         * lib/acosl.c (main): Use a prototype.
79353         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79354         tanl.c: Likewise.
79355
79356         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79357
79358         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79359         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79360         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79361         with a prototype.
79362         * lib/getopt.c (const): Remove macro.
79363         Include <string.h> unconditionally.
79364         (my_index): Remove; all uses changed to strchr.
79365         (strlen): Remove decl.
79366         (exchange): Remove forward decl; no longer needed.
79367         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79368         Define with prototype.
79369         * lib/getopt1.c (const): Remove macro.
79370         (getopt_long, getopt_long_only, main): Define with prototype.
79371
79372         * lib/getugroups.c: Include <string.h> unconditionally.
79373
79374         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79375         (getusershell, setusershell, endusershell, readname, main):
79376         Define with prototypes.
79377
79378         * lib/group-member.c: Include group-member.h first.
79379         Include <stdlib.h> unconditionally.
79380
79381         * lib/hard-locale.c: Include hard-locale.h first.
79382         Include <stdlib.h>, <string.h> unconditionally.
79383
79384         * lib/hash.c (free, malloc): Remove decls.
79385         Include <stdlib.h> unconditionally.
79386
79387         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79388         (getenv): Do not declare.
79389
79390         * lib/idcache.c: Include <string.h> unconditionally.
79391
79392         * lib/long-options.c: Include long-options.h first, to test interface.
79393         Include <stdlib.h> unconditionally.
79394
79395         * lib/makepath.c: Include makepath.h first, to test interface.
79396         Include <stdlib.h> and <string.h> unconditionally.
79397
79398         * lib/linebuffer.c: Include <stdlib.h>.
79399         (free): Remove decl.
79400
79401         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79402         stddef.h. rpl_malloc returns void *, not char *.
79403         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79404         prototype.
79405
79406         * lib/md5.h: Include <limits.h> unconditionally.
79407         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79408         (__P): Remove; all uses removed.
79409         * lib/md5.c: Include "md5.h" first.
79410         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79411         md5_buffer, md5_process_bytes, md5_process_block):
79412         Define with prototypes.
79413         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79414         * lib/sha.c: Include "sha.h" first.
79415         Include <stdlib.h>, <string.h> unconditionally.
79416
79417         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79418         * lib/memcmp.c (__ptr_t): Likewise.
79419         * lib/memrchr.c (__ptr_t): Likewise.
79420         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79421         Include <string.h> unconditionally.
79422         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79423         * lib/memchr.c: Include <stdlib.h> unconditionally.
79424         * lib/memchr.c (LONG_MAX): Remove.
79425         * lib/memrchr.c (LONG_MAX): Likewise.
79426         * lib/memchr.c (__memchr): Define via a prototype.
79427         * lib/memrchr.c (__memrchr): Likewise.
79428         * lib/memcmp.c (__P): Remove, and remove all uses.
79429         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79430         Remove forward decls; no longer needed.
79431         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79432         Use types required by C89 in prototype.
79433
79434         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79435         * lib/savedir.c: Likewise.
79436         * lib/mkdir.c (free): Remove decl.
79437         * lib/rmdir.c (rmdir): Define with a prototype.
79438         * lib/savedir.c: Include savedir.h first, to test interface.
79439
79440         * lib/mktime.c (STDC_HEADERS): Remove.
79441         Include <stdlib.h>, <string.h> unconditionally.
79442
79443         * lib/modechange.c: Include <stdlib.h> unconditionally.
79444         (malloc): Remove decl.
79445
79446         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79447         (free): Remove decl.
79448
79449         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79450         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79451         (This type really should be intptr_t, but that's a C99ism.)
79452         (_obstack_memcpy): Remove: all uses changed to memcpy.
79453         Include <string.h> unconditionally.
79454         (struct obstack): Assume __STDC__ for types of members
79455         chunkfun, freefun, extra_arg.
79456         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79457         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79458         obstack_begin, obstack_specify_allocation,
79459         obstack_specify_allocation_with_arg, obstack_chunkfun,
79460         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79461         Remove unprototyped decls and the macros that use them.
79462         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79463         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79464         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79465         (defined __STDC__ && __STDC__)]:
79466         Remove nonprototyped code.
79467         Include <stdlib.h> unconditionally.
79468         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79469         _obstack_allocated_p, _obstack_free, obstack_free,
79470         _obstack_memory_used, print_and_abort):
79471         Define using prototypes.
79472         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79473         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79474         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79475         obstack_next_free, obstack_object_size, obstack_room) [0]:
79476         Remove unused, unprototyped code.
79477
79478         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79479
79480         * lib/physmem.c (physmem_total, physmem_available, main): Define
79481         with prototypes.
79482
79483         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79484         (main): Define with a prototype.
79485
79486         * lib/posixver.c (getenv): Remove decl.
79487
79488         * lib/putenv.c (malloc): Returns void *, not char *.
79489         Include <string.h> unconditionally.
79490         (strchr, memcpy, NULL): Do not define.
79491
79492         * lib/readtokens.c: Include readtokens.h first, to test interface.
79493         Include <stdlib.h>, <string.h> unconditionally.
79494         (init_tokenbuffer): Define with a prototype.
79495
79496         * lib/regex.c (PARAMS): Remove.  All uses removed.
79497         All uses of _RE_ARGS removed, too.
79498         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79499         unconditionally.
79500         (bzero): Assume memset exists.
79501         (memcmp, memcpy, NULL): Remove.
79502         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79503         char, or assignments to local vars of type signed char.
79504         (init_syntax_once, PREFIX(extract_number_and_incr),
79505         PREFIX(print_partial_compiled_pattern),
79506         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79507         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79508         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79509         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79510         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79511         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79512         wcs_compile_range, byte_compile_range, truncate_wchar,
79513         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79514         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79515         count_mbs_length, wcs_re_match_2_internal,
79516         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79517         PREFIX(alt_match_null_string_p),
79518         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79519         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79520         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79521         now-unnecessary declaration, if any.
79522         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79523         regcomp, regexec):
79524         Remove now-unnecessary casts among pointer types.
79525         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79526
79527         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79528         (free): Remove decl.
79529
79530         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79531
79532         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79533         (free): Remove decl.
79534
79535         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79536         * lib/xgetcwd.c: Likewise.
79537
79538         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79539         (free): Remove decl.
79540
79541         * lib/strchrnul.c (strchrnul): Define with a prototype.
79542         Fix bug: c_in was not converted to char before searching.
79543
79544         The following changes are not K&R related:
79545
79546         * lib/group-member.h: Include <sys/types.h>, so that this file is
79547         self-contained.
79548         * lib/makepath.h: Likewise.
79549
79550         * lib/getusershell.c (readname, default_index, line_size, readname):
79551         Use size_t, not int, for sizes.
79552         (readname): If the size overflows, report an error instead of
79553         looping forever.
79554
79555 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79556
79557         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79558         libc.
79559
79560 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79561
79562         * README: New section: portability guidelines.
79563
79564 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79565
79566         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79567         C89 spec.
79568
79569 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79570
79571         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79572
79573 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79574
79575         Assume C89 or better; remove K&R cruft.
79576         A few of these changes were first proposed by Derek Robert Price
79577         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79578
79579         * lib/addext.c: Include <string.h> unconditionally.
79580         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79581         Don't declare getenv or malloc.
79582
79583         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79584         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79585         (NULL): Remove.
79586         (find_stack_direction, alloca): Use prototypes.
79587
79588         * lib/atexit.c (atexit): Define using a prototype.
79589
79590         * lib/basename.c, dirname.c, stripslash.c:
79591         Include <string.h> unconditionally.
79592
79593         * lib/bcopy.c: Include <stddef.h>.
79594         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79595
79596         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79597
79598         * lib/error.h (error, error_at_line, error_print_progname)
79599         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79600         * lib/error.c: Include error.h first, to check interface.
79601         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79602         (VA_START): Remove; all uses changeed to va_start.
79603         (exit, strerror): Remove decls.
79604         (error_print_progname): Prototype uncondionally.
79605         Don't include <errno.h>; no longer needed.
79606         (private_strerror): Remove.
79607         (error_tail): Always define.
79608         (error, error_at_line): Assume C89 or better; always use prototypes.
79609         * lib/fatal.c: Include "fatal.h" first, to test interface.
79610         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79611         (VA_START): Remove; all uses changed to va_start.
79612         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79613         this case.
79614         (exit): Remove decl.
79615         (fatal): Prototype unconditionally.  Assume va_start works.
79616         Abort at end, to pacify gcc.
79617
79618         * lib/euidaccess.c (main): Define with a prototype.
79619
79620         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79621
79622         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79623
79624         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79625         prototypes.
79626         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79627         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79628         (getenv): Remove decl.
79629         (fnmatch): Define using a prototype.
79630         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79631         (FCT): Define using a prototype.
79632
79633         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79634
79635         * lib/gethostname.c: Include <stddef.h>.
79636         (gethostname): Define with prototype.  Length is size_t, not int.
79637
79638 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79639
79640         Assume C89 or better; remove K&R cruft.
79641         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79642         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79643         string.h, getenv, malloc.
79644         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79645         headers.
79646         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79647         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79648         do not check for strerror.
79649         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79650         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79651         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79652         do not check for doprnt or vprintf.
79653         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79654         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79655
79656 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79657
79658         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79659         getversion.c should have been removed then, but was accidentally
79660         preserved.
79661
79662         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79663         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79664
79665 2003-09-08  Karl Berry  <karl@gnu.org>
79666
79667         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79668                 config, forget about prep.
79669
79670         * config/depcomp, missing: update from automake.
79671
79672 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79673
79674         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79675         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79676
79677 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79678
79679         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79680         copy_tm_result.  Bug reported by Simon Josefsson in
79681         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79682
79683 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79684
79685         * m4/time_r.m4: New file.
79686         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79687         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79688         is. Check for timegm declaration.
79689         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79690         Do not check for gmtime_r.
79691         Replace mktime if __mktime_internal does not exist and if mktime
79692         hasn't been replaced already.
79693
79694 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79695
79696         * lib/time_r.c, lib/time_r.h: New files.
79697
79698         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79699         __localtime_r.
79700         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79701         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79702
79703         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79704         __gmtime_r.
79705         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79706         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79707         Include <time_r.h>.
79708
79709         * lib/timegm.c: Switch to glibc implementation, with the following
79710         changes:
79711         [defined HAVE_CONFIG_H]: Include <config.h>.
79712         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79713         (__mktime_internal) [!defined _LIBC]: New decl.
79714         (__gmtime_r) [!defined _LIBC]: New macro and function.
79715         (timegm): Use a prototype, since gnulib assumes C89.
79716         Do not bother declaring tmp to be const, as it's not really usefu.
79717         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79718         (timegm): Declare only if HAVE_DECL_TIMEGM.
79719
79720 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79721
79722         * MODULES.html.sh (func_all_modules): Add time_r.
79723         * modules/time_r: New file.
79724         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79725         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79726
79727 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79728
79729         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79730         Bug reported by Lute Kamstra in
79731         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79732
79733         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79734         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79735         course with correspondingly smaller numbers for tomorrow and
79736         yesterday.  From Tadayoshi Funaba.  Originally installed into
79737         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79738         coreutils merge?).
79739
79740 2003-08-31  Simon Josefsson  <jas@extundo.com>
79741
79742         * modules/timegm: New file.
79743         * MODULES.html.sh (func_all_modules): Add timegm.
79744
79745 2003-08-31  Simon Josefsson  <jas@extundo.com>
79746
79747         * m4/timegm.m4: New file.
79748
79749 2003-08-31  Simon Josefsson  <jas@extundo.com>
79750
79751         * lib/timegm.h: New file.
79752         * lib/timegm.c: New file.  Based on
79753         wget-1.8.2/src/http.c:mktime_from_utc.
79754
79755 2003-08-31  Karl Berry  <karl@gnu.org>
79756
79757         * lib/argp.h: update from libc.
79758
79759 2003-08-28  Bruno Haible  <bruno@clisp.org>
79760
79761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79762         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79763         followed by '#define fnmatch fnmatch_posix' gives an error.
79764
79765 2003-08-28  Bruno Haible  <bruno@clisp.org>
79766
79767         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79768         warning on QNX, which defines O_BINARY to 000000.
79769
79770 2003-08-27  Jim Meyering  <jim@meyering.net>
79771
79772         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79773         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79774         would fail after 32.  Reported by Danny Levinson.  Details here:
79775         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79776
79777 2003-08-24  Bruno Haible  <bruno@clisp.org>
79778
79779         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79780         MSVC7 <stdio.h> is included later.
79781
79782 2003-08-22  Simon Josefsson  <jas@extundo.com>
79783
79784         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79785
79786 2003-08-20  Karl Berry  <karl@gnu.org>
79787
79788         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79789
79790 2003-08-20  Bruno Haible  <bruno@clisp.org>
79791
79792         * modules/progname: New file.
79793         * MODULES.html.sh (func_all_modules): Add progname.
79794
79795 2003-08-20  Bruno Haible  <bruno@clisp.org>
79796
79797         * lib/progname.h: New file, from GNU gettext.
79798         * lib/progname.c: New file, from GNU gettext.
79799         * lib/progreloc.c: New file, from GNU gettext.
79800
79801 2003-08-19  Jim Meyering  <jim@meyering.net>
79802
79803         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79804         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79805
79806 2003-08-19  Bruno Haible  <bruno@clisp.org>
79807
79808         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79809         more.
79810
79811 2003-08-19  Bruno Haible  <bruno@clisp.org>
79812
79813         * lib/xstrdup.c: Assume <string.h> exists.
79814
79815 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79816
79817         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79818         in makefile rules.
79819
79820 2003-08-18  Jim Meyering  <jim@meyering.net>
79821
79822         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79823         * m4/lib-ld.m4: Likewise.
79824
79825 2003-08-18  Jim Meyering  <jim@meyering.net>
79826
79827         * lib/setenv.h: Indent nested cpp directive.
79828         * lib/vasnprintf.c: Remove trailing blanks.
79829
79830 2003-08-17  Simon Josefsson  <jas@extundo.com>
79831
79832         * modules/xstrndup: New file.
79833         * MODULES.html.sh (func_all_modules): Add xstrndup.
79834
79835 2003-08-17  Simon Josefsson  <jas@extundo.com>
79836
79837         * modules/argp: Fix autoconf macro name. Add more dependencies.
79838
79839 2003-08-17  Simon Josefsson  <jas@extundo.com>
79840
79841         * m4/xstrndup.m4: New file.
79842
79843 2003-08-17  Simon Josefsson  <jas@extundo.com>
79844
79845         * m4/argp.m4: New file.
79846
79847 2003-08-17  Simon Josefsson  <jas@extundo.com>
79848             Bruno Haible  <bruno@clisp.org>
79849
79850         * lib/xstrndup.h: New file.
79851         * lib/xstrndup.c: New file.
79852
79853 2003-08-17  Bruno Haible  <bruno@clisp.org>
79854
79855         * modules/strndup (Files, Include): Add lib/strndup.h.
79856
79857 2003-08-17  Bruno Haible  <bruno@clisp.org>
79858
79859         * modules/euidaccess (Files): Add lib/euidaccess.h.
79860
79861 2003-08-17  Bruno Haible  <bruno@clisp.org>
79862
79863         * lib/strndup.h: New file.
79864
79865 2003-08-17  Bruno Haible  <bruno@clisp.org>
79866
79867         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79868         like AC_GNU_SOURCE.
79869         * modules/extensions (configure.ac): Comment out the invocation of
79870         gl_USE_SYSTEM_EXTENSIONS.
79871
79872 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79873
79874         Merges from coreutils, etc.
79875         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79876         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79877         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79878         fixing a typo.
79879         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79880         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79881
79882 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79883
79884         Document merge from coreutils.
79885         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79886         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79887         * modules/utime: Add m4/utimes-null.m4.
79888
79889 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79890
79891         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79892         space, undoing this 2003-08-12 change:
79893         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79894
79895 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79896
79897         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79898         strtoul.c from libc, undoing this 2003-08-12 change:
79899         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79900
79901 2003-08-16  Jim Meyering  <jim@meyering.net>
79902
79903         Merges from coreutils.
79904         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79905         prefix.  Adjust cache variables similarly.  Create 500 rather than
79906         just 300 files, to exercise bug on Darwin6.5, too.
79907         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79908         $missing_dir.
79909         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79910         AM_SYS_POSIX_TERMIOS.
79911         Reported by mkc@mathdogs.com.
79912         Also change use of $am_cv_sys_posix_termios
79913         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79914         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79915         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79916         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79917         in /proc/mounts until it finds one with matching device number.  This
79918         is unnecessary when the FILE argument *is* a mount point.  No stat call
79919         is necessary in that case.  So, disable the statvfs-testing code on
79920         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79921         as RedHat bug# 84846.
79922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79923         to 1MB, so as not to render systems with no stack size limit (e.g.,
79924         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79925         Include <unistd.h>.  On some systems,
79926         it is required for the definition of _SC_PAGESIZE.
79927
79928 2003-08-16  Jim Meyering  <jim@meyering.net>
79929
79930         Merge from coreutils.
79931         * lib/xstrtoimax.c: #else #if -> #elif.
79932         * lib/xstrtoumax.c: Likewise.
79933
79934 2003-08-16  Jim Meyering  <jim@meyering.net>
79935
79936         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79937         * m4/utimes.m4: Removed.
79938         * m4/utimes-null.m4: Renamed from utimes.m4.
79939
79940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79941         to 1MB, so as not to render systems with no stack size limit (e.g.,
79942         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79943         Include <unistd.h>.  On some systems,
79944         it is required for the definition of _SC_PAGESIZE.
79945
79946 2003-08-16  Jim Meyering  <jim@meyering.net>
79947         and Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         Merges from coreutils, etc.
79950
79951         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79952         using the latest version from cvs.  This avoids problems with #line
79953         directives using a vendor (Sun) compiler.
79954         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79955         Don't set GETGROUPS_LIB here; now it's
79956         done via getgroups.m4's wrapper function.
79957         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79958         rather than just in sh-util/configure.in, so that the
79959         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79960         same.
79961         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79962         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79963         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79964         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79965         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79966         Remove code that is now done by the newly-required macros.
79967         Append $(EXEEXT) to DF_PROG.
79968         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79969         Do not invoke or require the following here,
79970         since prereq.m4 or some gnulib .m4 now does this for us:
79971         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79972         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79973         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79974         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79975         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79976         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79977         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79978         AC_FUNC_OBSTACK.
79979         Do not replace the following functions, as this is now the job
79980         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79981         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79982         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79983         atexit getpass, strdup, getpagesize.
79984         Replace 'raise'.
79985         Do not check for the following functions, as this is now the job
79986         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79987         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79988         setregid.
79989         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79990         Check for sys/sysctl.h.
79991         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79992         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79993         of checking for ssize_t ourselves.
79994
79995         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79996         Require every macro that gnulib/modules/* suggests for us.
79997         (jm_PREREQ_ADDEXT): New macro.
79998         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79999         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80000
80001         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80002         (gl_PHYSMEM): Use it.
80003         Also check for `table' function.
80004         Check for new headers and functions.
80005         Add check for sys/sysmp.h.
80006         With suggestions from Kaveh Ghazi.
80007         Ignore headers that are present but cannot be compiled.  This
80008         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80009         C 5.4.
80010
80011 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80012
80013         Document merge from coreutils.
80014         * modules/userspec: Depend on posixver.
80015         * modules/strftime: Depend on tzset.
80016
80017 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80018
80019         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80020         rather than tab, after '#' in shell-script copyright notices.
80021         Suggested by Bruno Haible.
80022
80023 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80024
80025         * config/srclist-update: Use three spaces, rather than tab, after '#'
80026         in shell-script copyright notices.  Suggested by Bruno Haible.
80027         Remove unnecessary parenthesization in regular expression.
80028
80029 2003-08-15  Jim Meyering  <jim@meyering.net>
80030
80031         Merge from coreutils.
80032         * lib/xgethostname.c: Include <stdlib.h>.
80033         (xghostname): Don't exit for anything other than memory-related
80034         failure; just return NULL.
80035         * lib/userspec.c: Include "posixver.h".
80036         (parse_user_spec): Accept `.' as a separator only
80037         in pre-POSIX-200112 mode.
80038         * lib/strtoimax.c: Use #elif rather than #else #if.
80039         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80040         Remove function, now that we can rely on a working tzset function.
80041         [!_LIBC]: Ensure that the required autoconf test has been run.
80042         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80043         Use underlying_strftime for %r.
80044         * lib/sha.c: Merge in some clean-up and optimization changes from
80045         glibc.
80046         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80047         Ensure that it is a multiple of 64.
80048         Rearrange loop exit tests so as to avoid performing an
80049         additional fread after encountering an error or EOF.
80050         * lib/realloc.c: Update copyright date.
80051
80052 2003-08-15  Jim Meyering  <jim@meyering.net>
80053         and Paul Eggert  <eggert@twinsun.com>
80054
80055         Merge from coreutils.
80056         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80057         member but strut utmpx does not.  Needed for AIX 4.3.3.
80058         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80059
80060 2003-08-15  Jim Meyering  <jim@meyering.net>
80061         and Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         Merges from coreutils, etc.
80064         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80065         Require gl_FUNC_TZSET_CLOBBER.
80066         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80067         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80068         members.
80069
80070 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80071
80072         Help the merge from coreutils.
80073         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80074         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80075         * m4/tzset.m4: Use it too.
80076
80077 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80078
80079         * modules/tzset: New file.
80080
80081 2003-08-14  Jim Meyering  <jim@meyering.net>
80082
80083         Merges from coreutils.
80084         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80085         variable names, rather than @FNMATCH_H@.
80086         * modules/alloca: Likewise for $(ALLOCA_H).
80087
80088         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80089         the three copies of the literal target, `fnmatch.h'.
80090         * modules/alloca (alloca.h): Likewise.
80091
80092 2003-08-14  Jim Meyering  <jim@meyering.net>
80093
80094         Merge from coreutils.
80095         * m4/tzset.m4: New file.
80096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80097         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80098         otherwise, AIX 5.1 systems would end up using the latter.
80099         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80100         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80101         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80102         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80103
80104 2003-08-14  Jim Meyering  <jim@meyering.net>
80105
80106         Merge from coreutils.
80107         * lib/obstack.h: Whitespace changes.
80108         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80109         and xcalloc return values.
80110         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80111         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80112         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80113         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80114         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80115         error from mntctl.
80116         Use mntctl's return value to drive the entry-processing loop, since
80117         we can't rely on the value of the vmt_length member in the last
80118         entry.  On some systems doing so could result in exhausting
80119         virtual memory.  Based in part on a patch from Mike Jetzer.
80120
80121 2003-08-14  Jim Meyering  <jim@meyering.net>
80122         and Paul Eggert  <eggert@twinsun.com>
80123
80124         Merges from coreutils, plus other fixes.
80125         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80126         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80127         for credits and details.  Thanks to Kaveh Ghazi for helping
80128         to keep these files in sync.
80129         (ARRAY_SIZE): Define it.
80130         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80131         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80132         (memcasecmp): Don't assume size_t fits in unsigned int.
80133         Remove casts and duplicate code.
80134         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80135         (memcpy): Remove definition.
80136         Merge in some clean-up and optimization changes from glibc.
80137         [BLOCKSIZE]: Move definition to top of file.
80138         Ensure that it is a multiple of 64.
80139         Rearrange loop exit tests so as to avoid performing an
80140         additional fread after encountering an error or EOF.
80141         * lib/md5.h (md5_uintptr): Define.
80142         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80143         return to the initial working directory.  Preserve errno
80144         for caller.
80145         * lib/idcache.c: Include "xalloc.h".
80146         (xmalloc, xrealloc): Remove decls.
80147         (getuser): Remove casts no longer required in C89.
80148         * lib/human.c: Include stdio.h, for sprintf.
80149         * lib/group-member.c: Include "xalloc.h".
80150         (xmalloc, xrealloc): Remove decls.
80151         (get_group_info): Remove casts no longer required in C89.
80152         * lib/getusershell.c (readname): Remove casts no longer required in
80153         C89.
80154         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80155         * lib/getline.c: Whitespace fix, from coreutils.
80156
80157 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80158
80159         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80160         Check for isascii.
80161
80162         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80163         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80164         Undo previous (whitespace-only) change.
80165
80166 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80167
80168         * lib/exclude.c: Include <ctype.h>
80169         (IN_CTYPE_DOMAIN): New macro.
80170         (is_space): New fn.
80171         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80172         and empty lines.
80173
80174         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80175         Undo previous (whitespace-only) change.
80176
80177 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80178
80179         * config/srclist-update: Change update back to the old behavior,
80180         leaving whitespace alone.  Use one 'sed' command rather than a
80181         pipeline.
80182         (fixlicense): Now a variable, not a function.
80183         (remove_trailing_blanks): Remove.
80184         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80185         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80186         Undo previous (whitespace-only) change.
80187
80188 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80189
80190         Merge from coreutils.
80191         * modules/euidaccess: Add lib_SOURCES, include for new
80192         file euidaccess.h
80193
80194 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80195
80196         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80197         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80198         Normalize leading white space and remove trailing white space.
80199
80200         Merge from coreutils
80201         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80202
80203         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80204         0.12.1.  These files are now being upgraded automatically by
80205         ../config/srclist-update.
80206
80207 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80208
80209         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80210         Normalize leading white space and remove trailing white space.
80211         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80212         notice, as per ../config/srclist-update.
80213
80214         Merge from coreutils.
80215         * lib/euidaccess.h: New file.
80216         * lib/euidaccess.c: Include it.
80217         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80218         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80219         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80220
80221 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80222
80223         * config/srclist-update: Add copyright notice.
80224         (remove_id_lines, remove_trailing_blanks): New constants.
80225         (fixfile): Use them to normalize spacing a bit in copied files.
80226         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80227         Normalize leading white space and remove trailing white space.
80228
80229         * config/texinfo.tex: Sync with texinfo.
80230
80231         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80232         strtoul.c from libc, to merge coreutils whitespace changes.
80233
80234         * config/srclist.txt: Get the following m4 files from gettext:
80235         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80236         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80237         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80238         wint_t.m4.
80239
80240 2003-08-12  Karl Berry  <karl@gnu.org>
80241
80242         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80243         been made.
80244
80245 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80246
80247         * modules/gnu-source, m4/gnu-source.m4:
80248         Remove; we're assuming Autoconf 2.54 or later now.
80249         Suggested by Bruno Haible.
80250         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80251
80252 2003-08-11  Bruno Haible  <bruno@clisp.org>
80253
80254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80255
80256 2003-08-11  Bruno Haible  <bruno@clisp.org>
80257
80258         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80259         (vasnprintf): Use it instead of wcslen.
80260
80261 2003-08-11  Bruno Haible  <bruno@clisp.org>
80262
80263         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80264         value to ensure that _Bool promotes to int. Use #define for _Bool when
80265         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80266
80267 2003-08-10  Karl Berry  <karl@gnu.org>
80268
80269         * lib/regex.h: update from libc (whitespace fix).
80270
80271 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80272
80273         Merge some files from coreutils.  These changes were
80274         originally made by Jim Meyering.
80275         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80276         many older Unixes require this.
80277         * lib/alloca.c (alloca): Remove cast to argument of free;
80278         no longer needed in C89.
80279         * lib/alloca_.h, regex.h: Fix white space to match
80280         what GNU indent does.
80281
80282 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80283
80284         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80285         apparently Emacs's Unicode mode got confused before my 2003-08-05
80286         checkin.
80287
80288 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80289
80290         * m4/extensions.m4: New file.
80291         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80292         Require gl_USE_SYSTEM_EXTENSIONS.
80293         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80294         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80295
80296 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80297
80298         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80299         * modules/extensions, modules/gnu-source: New files.
80300         * modules/timespec, modules/unlocked-io: Depend on extensions.
80301
80302 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80303
80304         * modules/restrict: New file.
80305         * MODULES.html.sh (func_all_modules): Add restrict.
80306         * modules/regex: Depend on restrict.
80307
80308 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80309
80310         * m4/restrict.m4: New file.
80311         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80312
80313 2003-08-07  Bruno Haible  <bruno@clisp.org>
80314
80315         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80316         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80317
80318 2003-08-07  Bruno Haible  <bruno@clisp.org>
80319
80320         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80321         makes the module 'getndelim2' compatible with the module 'getline'.
80322
80323 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80324
80325         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80326         byte with "\201" to avoid glitches when editing that source file
80327         with multi-gnome-terminal.
80328
80329 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80330
80331         * lib/bumpalloc.h: Remove.
80332
80333 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80334
80335         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80336         * modules/bumpalloc: Remove.
80337
80338 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80339
80340         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80341         GNU coding style.
80342
80343         Merge from coreutils.
80344         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80345         1. From glibc.
80346         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80347         from Karl Berry, implemented by Jim Meyering.
80348         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80349         from Dmitry V. Levin.
80350         Remove anachronistic cast of xrealloc.
80351         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80352         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80353         type. Otherwise, it wouldn't compile with at least /bin/cc on
80354         ymp-cray-unicos9.0.2.X.
80355         Combine two mostly-identical uses of alloca into one.
80356         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80357
80358 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80359
80360         [From Emacs.]
80361
80362         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80363         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80364         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80365         obsolete NLIST_NAME_UNION.
80366         [__GNU__]: Undef BSD and FSCALE.
80367         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80368
80369 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80370
80371         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80372         an enum type, so that it's guaranteed to promote to int.  See:
80373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80374
80375 2003-08-03  Karl Berry  <karl@gnu.org>
80376
80377         * config/depcomp: update from automake.
80378
80379 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80380
80381         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80382         (strerror): Don't assume that a printable int fits in 14 bytes.
80383
80384 2003-07-31  Bruno Haible  <bruno@clisp.org>
80385
80386         * modules/getpass-gnu: New file.
80387         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80388
80389 2003-07-31  Bruno Haible  <bruno@clisp.org>
80390
80391         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80392
80393 2003-07-24  Karl Berry  <karl@gnu.org>
80394
80395         * config/missing: update from automake.
80396
80397 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80398             Bruno Haible  <bruno@clisp.org>
80399
80400         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80401         * lib/getline.c (getline, getdelim): Likewise.
80402         Remove _GNU_SOURCE define; now it's defined in config.h through
80403         m4/getline.m4.
80404
80405 2003-07-23  Karl Berry  <karl@gnu.org>
80406
80407         * config/config.sub: update from prep.
80408
80409 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80410
80411         * modules/xalloc (Depends-on): Add exitfail.
80412         * modules/xmemcoll: Likewise.
80413
80414 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80415
80416         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80417         over-parenthesization in macros.
80418
80419         Sync with coreutils.
80420
80421         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80422         required by C99.
80423
80424         Use `exit_failure' for xalloc and xmemcoll instead of their own
80425         private exit-failure variables.
80426         * lib/xalloc.h (xalloc_exit_failure): Remove.
80427         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80428         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80429         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80430         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80431         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80432
80433 2003-07-20  Jim Meyering  <jim@meyering.net>
80434
80435         * modules/closeout (Depends-on): Add exitfail.
80436         Suggestion from Bruno Haible.
80437
80438 2003-07-19  Karl Berry  <karl@gnu.org>
80439
80440         * config/config.sub: update from prep.
80441
80442 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80443
80444         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80445         Remove.
80446         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80447         to test that it can stand by itself.  Include "exitfail.h".
80448         Clients should set exit_failure instead.
80449         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80450
80451 2003-07-18  Bruno Haible  <bruno@clisp.org>
80452
80453         * modules/getndelim2: New file.
80454         * modules/getline: Share files with module getndelim2.
80455         * modules/getnline: Depend on getndelim2 instead of sharing files with
80456         it. Add getnline.c to lib_SOURCES.
80457         * MODULES.html.sh (func_all_modules): Add getndelim2.
80458
80459 2003-07-18  Bruno Haible  <bruno@clisp.org>
80460
80461         * m4/getndelim2.m4: New file.
80462         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80463         invoke gl_PREREQ_GETNDELIM2.
80464         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80465         gl_PREREQ_GETNDELIM2.
80466         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80467         gl_GETNDELIM2.
80468
80469 2003-07-18  Bruno Haible  <bruno@clisp.org>
80470
80471         * lib/getndelim2.h: New file.
80472         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80473         getndelim2.h.
80474         (getndelim2): Make non-static. Change return type to ssize_t.
80475         * lib/getline.h: Change argument names.
80476         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80477         * lib/getnline.c: Include getndelim2.h.
80478
80479 2003-07-18  Andreas Schwab  <schwab@suse.de>
80480
80481         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80482
80483 2003-07-17  Karl Berry  <karl@gnu.org>
80484
80485         * config/config.sub: update from prep.
80486
80487 2003-07-17  Bruno Haible  <bruno@clisp.org>
80488
80489         * modules/getnline: New file.
80490         * modules/getline: Add lib/getndelim2.c to source file list.
80491         * MODULES.html.sh (func_all_modules): Add getnline.
80492
80493 2003-07-17  Bruno Haible  <bruno@clisp.org>
80494
80495         * m4/getnline.m4: New file.
80496
80497 2003-07-17  Bruno Haible  <bruno@clisp.org>
80498
80499         * m4/Makefile.am.in: Remove file.
80500         * m4/Makefile.am: Remove file.
80501         * m4/Makefile.in: Remove file.
80502
80503 2003-07-17  Bruno Haible  <bruno@clisp.org>
80504
80505         * lib/getnline.h: New file.
80506         * lib/getnline.c: New file.
80507         * lib/getndelim2.c: New file, extracted from getline.c.
80508         (getndelim2): Renamed from getdelim2, with added nmax argument.
80509         * lib/getline.c: Include getndelim2.c.
80510         (getdelim2): Moved out to getndelim2.c.
80511         (getline, getdelim): Update.
80512
80513 2003-07-17  Bruno Haible  <bruno@clisp.org>
80514
80515         * lib/Makefile.am: Remove file.
80516         * lib/Makefile.in: Remove file.
80517
80518 2003-07-17  Bruno Haible  <bruno@clisp.org>
80519
80520         * configure.in: Remove file.
80521         * Makefile.in: Remove file.
80522
80523 2003-07-17  Bruno Haible  <bruno@clisp.org>
80524
80525         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80526
80527 2003-07-16  Karl Berry  <karl@gnu.org>
80528
80529         * config/srclist-update: was running fixlicense twice, which caused
80530                 texinfo.tex to be nullified for some reason.  Simplify,
80531                 $gplsrc is no longer needed as far as I can see?
80532
80533 2003-07-16  Jim Meyering  <jim@meyering.net>
80534
80535         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80536
80537 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80538
80539         * config/srclist.txt: Get the following files from gettext-runtime/intl
80540         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80541         ref-del.sin.  From Bruno Haible.
80542         * config/srclist-update (fixfile): Change grep pattern again, since the
80543         previous fix didn't work (there was another trailing $).  Use
80544         '[$]' to escape the $s.
80545
80546 2003-07-15  Karl Berry  <karl@gnu.org>
80547
80548         * lib/vasnprintf.c: update from gettext.
80549
80550 2003-07-15  Karl Berry  <karl@gnu.org>
80551
80552         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80553         gets expanded when surrounded by '$'.
80554
80555 2003-07-15  Jim Meyering  <jim@meyering.net>
80556
80557         * modules/save-cwd: Don't depend on error.  From Derek Price.
80558
80559 2003-07-15  Jim Meyering  <jim@meyering.net>
80560
80561         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80562
80563 2003-07-14  Simon Josefsson  <jas@extundo.com>
80564
80565         * modules/mempcpy: New file.
80566         * MODULES.html.sh (func_all_modules): Add mempcpy.
80567
80568 2003-07-14  Simon Josefsson  <jas@extundo.com>
80569
80570         * m4/mempcpy.m4: New file.
80571
80572 2003-07-14  Simon Josefsson  <jas@extundo.com>
80573
80574         * lib/mempcpy.h: New file.
80575         * lib/mempcpy.c: New file.
80576
80577 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80578
80579         * modules/getdate, modules/posixtm: Depend on mktime.
80580
80581 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80582
80583         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80584         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80585         unicodeio.c, unicodeio.h, unlocked-io.h:
80586         Switch from LGPL to GPL.
80587
80588 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80589
80590         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80591         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80592         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80593         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80594         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80595         updated automatically by ../config/srclist-update.  This changes
80596         their license from LPGL to GPL.
80597
80598 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80599
80600         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80601         assumed to refer to the root of the most recent stable gettext version.
80602         * config/srclistvars.sh: Add defaults for eggert.
80603         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80604         Match "This program" as well as "The program".  This is needed
80605         for gettext.
80606
80607 2003-07-14  Jim Meyering  <jim@meyering.net>
80608
80609         Don't emit diagnostics.  Let callers do that.
80610         * lib/save-cwd.c: Don't include "error.h".
80611         (save_cwd): Don't call error.  Ensure that errno is valid
80612         when returning nonzero.
80613
80614         * lib/save-cwd.h (restore_cwd): Update prototype.
80615         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80616         Simplify.  Don't call error upon failure.  Let callers do that.
80617         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80618         when auditing is enabled.  But don't bother updating the #if.
80619
80620 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80621
80622         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80623         it breaks C++ compilation.
80624         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80625
80626 2003-07-10  Simon Josefsson  <jas@extundo.com>
80627
80628         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80629
80630 2003-07-10  Jim Meyering  <jim@meyering.net>
80631
80632         * m4/clock_time.m4: Remove trailing blank.
80633         * m4/intmax_t.m4: Likewise.
80634
80635 2003-07-10  Jim Meyering  <jim@meyering.net>
80636
80637         * lib/vasnprintf.c: Remove trailing blanks.
80638         Make cpp indentation consistent.
80639
80640 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80641
80642         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80643         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80644         Switch from LGPL to GPL.
80645
80646 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80647
80648         * config/srclist.txt: Sort sublists.  Add
80649         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80650         that differ from gnulib for one reason or another; we'd like this list
80651         to be smaller but for now let's document what we have.
80652
80653 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80654
80655         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80656         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80657         and sweeter "eval x=$x".
80658         * config/srclist.txt: Get lib/argp* from glibc.
80659
80660 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80661
80662         * lib/mktime.c: Fix some boundary cases and remove need for floating
80663         point.
80664
80665         Issue a compile-time diagnostic if time_t is floating point, or if
80666         two's complement arithmetic is not in effect, or if arithmetic
80667         right shift does not propagate the sign.  These assumptions were
80668         all in the original code but they weren't checked.
80669
80670         (TIME_T_MIDPOINT, verify): New macros.
80671         (__isleap): Remove; it has integer overflow problems.
80672         (leapyear): New function, without those problems.
80673         (ydhms_tm_diff): Remove; splitting into two parts.
80674         (ydhms_diff): New function, containing the arithmetic part of
80675         the old ydhms_tm_diff function.  Issue a compile-time
80676         diagnostic if we are not using C99 integer division.
80677         Avoid casts when possible.
80678         (guess_time_tm): New function, containing the checking part of
80679         the old ydhms_tm_diff function.  Return the new value, rather than
80680         the difference between it and the old.  Accept a new argument T
80681         so that *T specifies the old value.  Check for overflow in the result.
80682
80683         (__mktime_internal): Use a time_t offset, not a long int offset.
80684         This undoes the 2003-06-04 change, which is no longer needed now
80685         that we have better overflow checking.
80686         (localtime_offset): Likewise.
80687
80688         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80689         and long are 64-bit but int is only 32-bit.
80690         (ydhms_diff): Use long int to store year1 and yday1.
80691         Issue a compile-time diagnostic if long int is not wide enough.
80692
80693         (__mktime_internal): Use long int to store adjusted year and yday.
80694         Use plain C rather than preprocessor commands, if that doesn't
80695         affect efficiency.
80696         Check for overflow (and try to repair) after each probe
80697         rather than checking only at the very end.  This avoids some bugs
80698         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80699         does not equal GMT offset at maximum time).
80700         Use integer to check for overflow rather than floating point; this
80701         is more portable to non-IEEE hosts, and is a tad faster.
80702         When we detect that we are oscillating between two values,
80703         don't check whether tm_isdst has the requested value, since
80704         we already know the answer.  When tm_isdst has the wrong value,
80705         use a different heuristic to find the right one, based on the
80706         extreme values actually observed in practice in tz2003a,
80707         rather than the (overly optimistic) "previous 3 calendar quarters".
80708
80709         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80710         "T const" to accommodate glibc style.
80711         (check_result): Use less-confusing report format.  "long" -> "long int.
80712         (main): Likewise.
80713         Don't loop if the iteration overflows time_t.
80714         Allow a negative step in the iteration.
80715
80716 2003-07-06  Karl Berry  <karl@gnu.org>
80717
80718         * config/depcomp: update from automake.
80719         * config/config.sub: update from prep.
80720
80721 2003-07-03  Karl Berry  <karl@gnu.org>
80722
80723         * config/config.guess: update from prep.
80724
80725 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80726
80727         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80728         xreadlink.c now includes it unconditionally.
80729
80730 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80731
80732         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80733         having it depend on HAVE_SYS_TYPES_H.
80734
80735 2003-07-01  Bruno Haible  <bruno@clisp.org>
80736
80737         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80738         <sys/types.h> should be sufficient.
80739         Reported by Paul Eggert.
80740
80741 2003-06-26  Karl Berry  <karl@gnu.org>
80742
80743         * config/depcomp: update from automake.
80744
80745 2003-06-26  Bruno Haible  <bruno@clisp.org>
80746
80747         * modules/human: Depend on module stdbool.
80748
80749 2003-06-25  Bruno Haible  <bruno@clisp.org>
80750
80751         * modules/readlink: New file.
80752         * modules/xreadlink: Depend on it.
80753         * MODULES.html.sh (func_all_modules): Add readlink.
80754
80755 2003-06-25  Bruno Haible  <bruno@clisp.org>
80756
80757         * m4/readlink.m4: New file.
80758
80759 2003-06-25  Bruno Haible  <bruno@clisp.org>
80760
80761         * lib/readlink.c: New file.
80762
80763 2003-06-22  Karl Berry  <karl@gnu.org>
80764
80765         * config/srclist.txt: update mkinstalldirs from automake.
80766         * config/mkinstalldirs: update.
80767
80768 2003-06-22  Bruno Haible  <bruno@clisp.org>
80769
80770         Portability to mingw32.
80771         * m4/ssize_t.m4: New file, from GNU gettext.
80772         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80773         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80774
80775 2003-06-22  Bruno Haible  <bruno@clisp.org>
80776
80777         * modules/safe-read: Add m4/ssize_t.m4.
80778         * modules/xreadlink: Add m4/ssize_t.m4.
80779
80780 2003-06-20  Bruno Haible  <bruno@clisp.org>
80781
80782         Assume C89, so PARAMS isn't needed.
80783         * lib/unicodeio.h (PARAMS): Remove.
80784         * lib/unicodeio.c: Don't use PARAMS.
80785
80786 2003-06-18  Karl Berry  <karl@gnu.org>
80787
80788         * config/config.{guess,sub}: update from prep.
80789
80790 2003-06-18  Jim Meyering  <jim@meyering.net>
80791
80792         Merge changes from coreutils.
80793         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80794         Remove explicit declarations of xmalloc and realloc.
80795         Include xalloc.h.
80796         (read_utmp): Remove anachronistic cast of xmalloc.
80797
80798 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80799
80800         Assume C89, so PARAMS isn't needed.
80801         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80802         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80803         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80804         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80805         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80806         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80807         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80808         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80809         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80810         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80811         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80812         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80813         no longer needed. Anyway, config.h should always be included before any
80814         other file.
80815
80816 2003-06-11  Simon Josefsson  <jas@extundo.com>
80817
80818         * modules/sysexits: New file.
80819         * MODULES.html.sh (func_all_modules): Add sysexits.
80820
80821 2003-06-11  Simon Josefsson  <jas@extundo.com>
80822
80823         * lib/sysexit_.h: New file.
80824
80825 2003-06-11  Derek Price  <derek@ximbiot.com>
80826
80827         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80828         necessary.
80829
80830 2003-06-11  Bruno Haible  <bruno@clisp.org>
80831
80832         * m4/sysexits.m4: New file.
80833
80834 2003-06-10  Simon Josefsson  <jas@extundo.com>
80835
80836         * lib/argp.h: New file, from glibc.
80837         * lib/argp-ba.c: New file, from glibc.
80838         * lib/argp-eexst.c: New file, from glibc.
80839         * lib/argp-fmtstream.c: New file, from glibc.
80840         * lib/argp-fmtstream.h: New file, from glibc.
80841         * lib/argp-fs-xinl.c: New file, from glibc.
80842         * lib/argp-help.c: New file, from glibc.
80843         * lib/argp-namefrob.h: New file, from glibc.
80844         * lib/argp-parse.c: New file, from glibc.
80845         * lib/argp-pv.c: New file, from glibc.
80846         * lib/argp-pvh.c: New file, from glibc.
80847         * lib/argp-xinl.c: New file, from glibc.
80848
80849 2003-06-10  Simon Josefsson  <jas@extundo.com>
80850
80851         * modules/strchrnul: New file.
80852
80853 2003-06-10  Simon Josefsson  <jas@extundo.com>
80854
80855         * modules/argp: New file.
80856
80857 2003-06-10  Simon Josefsson  <jas@extundo.com>
80858
80859         * m4/strchrnul.m4: New file.
80860
80861 2003-06-10  Simon Josefsson  <jas@extundo.com>
80862
80863         * lib/strchrnul.h: New file.
80864         * lib/strchrnul.c: New file.
80865
80866 2003-06-10  Bruno Haible  <bruno@clisp.org>
80867
80868         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80869
80870 2003-06-07  Karl Berry  <karl@gnu.org>
80871
80872         * config/config.{guess,sub}: update from prep.
80873
80874 2003-06-07  Jim Meyering  <jim@meyering.net>
80875
80876         * modules/strtod: Use $(...) notation, not @...@ for
80877         AC_REPLACE'd variables.
80878         * modules/localcharset: Likewise.
80879
80880 2003-06-07  Jim Meyering  <jim@meyering.net>
80881
80882         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80883         in place of my name in the copyright comment.
80884         Remove definition and uses of __P.
80885
80886         From coreutils.
80887         * lib/stat.c: Don't declare xmalloc explicitly.
80888         Instead, include "xalloc.h".
80889         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80890         xrealloc, and xcalloc return values.
80891         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80892         Improve comment.
80893         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80894
80895 2003-06-07  Bruno Haible  <bruno@clisp.org>
80896
80897         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80898         avoid AC_CONFIG_LINKS.
80899         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80900         fnmatch.h, to avoid AC_CONFIG_LINKS.
80901         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80902
80903 2003-06-07  Bruno Haible  <bruno@clisp.org>
80904
80905         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80906         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80907         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80908         directory.
80909         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80910         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80911         directory.
80912
80913 2003-06-06  Jim Meyering  <jim@meyering.net>
80914
80915         Merge from coreutils.
80916         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80917         Consolidate declarations and initializations of *_base* locals.
80918
80919         Merge from coreutils.
80920         This avoids a core dump on systems without GNU putenv,
80921         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80922         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80923         (unsetenv): New static function, from GNU libc.
80924         (rpl_putenv): Use it.
80925
80926         * lib/modechange.c: Remove trailing blanks.
80927
80928         Merge from coreutils.
80929         * lib/fsusage.c: Remove declaration of statfs.
80930         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80931
80932         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80933
80934 2003-06-06  Jim Meyering  <jim@meyering.net>
80935
80936         * lib/stdbool_.h: Renamed from stdbool.h.in.
80937
80938 2003-06-06  Jim Meyering  <jim@meyering.net>
80939             Bruno Haible  <bruno@clisp.org>
80940
80941         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80942         Adjust Makefile.am snippet not to redirect directly to target.
80943         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80944
80945 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80946
80947         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80948         mismatch, look in future quarters as well as past.  This fixes a
80949         bug when processing fall-backwards gaps immediately after a long
80950         period of daylight-saving time.
80951
80952         * lib/mktime.c: Assume freestanding C89 or better.
80953         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80954         (__P): Remove; not used.
80955         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80956         (mktime, not_equal_tm, print_tm, check_result,
80957         main): Use prototypes.  Use const * where appropriate.
80958         (main): Fix typo in testing code that uncovered by above changes.
80959         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80960
80961 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80962
80963         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80964         locale.h, localeconv.  This merges changes from coreutils.
80965
80966         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80967         It can be removed after the next Autoconf is released.
80968         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80969         needed.
80970
80971 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80972
80973         * lib/mktime.c: Fix Debian bug 177940
80974         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80975         (localtime_offset): Now long int, not time_t, because we want it
80976         to be guaranteed to be signed.  All uses changed.
80977         (__mktime_internal): If overflow would occur when adding offset,
80978         don't add it.
80979
80980         Merge 'human' changes from coreutils.  Rewrite to support
80981         locale-specific notations like thousands separators.
80982         * lib/human.c: Simplify authorship notice.
80983         Include human.h immediately after config.h.
80984         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80985         <limits.h>: Do not include, since human.h does.
80986         (SIZE_MAX, UINTMAX_MAX): New macros.
80987         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80988         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80989         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80990         (power_letter): Renamed from suffixes.
80991         (generate_suffix_backwards): Remove.
80992         (adjust_value): Now takes int style (because of human.h changes)
80993         and long double value (for greater precision on some platforms).
80994         (group_number): New function.
80995         (human_readable): Use it.  Use integer options, not enum.
80996         Put the options before the sizes in the arg list.
80997         Support all the new options.
80998         The old human_readable function has been removed;
80999         use inttostr.h instead.
81000         (human_readable, default_block_size, humblock):
81001         Use uintmax_t, not int, for block sizes.
81002         (human_readable_inexact, block_size_types): Remove.
81003         (block_size_opts): New constant.
81004         (human_options): Renamed from human_block_size, with new signature
81005         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81006         * lib/human.h: Add copyright and authorship notice.
81007         Include <limits.h> and <stdbool.h> unconditionally.
81008         (PARAMS): Remove.  All uses removed.
81009         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81010         (enum human_inexact_style): Remove tag; now a nameless enum.
81011         (human_floor, human_ceiling, human_round_to_even): Now have
81012         values 2, 0, 1 rather than -1, 1, 0.
81013         (human_group_digits, human_suppress_point_zero, human_autoscale,
81014         human_base_1024, human_SI, human_B): New constants.
81015         (human_readable_inexact, human_block_size): Remove.
81016         (human_readable): Size args are now uintmax_t, not int.
81017         (human_options): New decl.
81018
81019         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81020         unnecessary now that we assume C89 or better.  This change
81021         imported from coreutils.
81022
81023         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81024         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81025         in the 2003-05-30 sync from glibc.
81026
81027         .h files should stand alone, but we shouldn't include <sys/types.h>
81028         if we can get away with just <stddef.h>.
81029
81030         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81031         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81032         rather than <sys/types.h>, as we merely need size_t.
81033         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81034         to get size_t.
81035         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81036         Include <stdio.h>, to get FILE.
81037         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81038         memcasecmp.h has included <stddef.h> and all we need is size_t.
81039         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81040         our interface, instead of including <sys/types.h>
81041
81042 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81043
81044         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81045         now, as glibc mktime is buggy on non-glibc systems.
81046
81047 2003-06-03  Karl Berry  <karl@gnu.org>
81048
81049         * config/config.sub: update from prep.
81050
81051 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81052
81053         [from coreutils]
81054         Fix some minor time-related bugs with POSIX time arguments.
81055         Some valid time stamps were being rejected (notably -1, and
81056         time stamps before 1900 on 64-bit hosts).  And some invalid
81057         time stamps were being accepted, e.g. September 31.
81058
81059         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81060         that we can return (time_t) -1 successfully.
81061         * lib/posixtm.c: Likewise.
81062         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81063         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81064         (t): Remove static var.
81065         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81066         of static var.  All uses changed.
81067         (year): Do not reject years before 1900; they can occur with
81068         64-bit time_t.
81069         (posix_time_parse): Do not check for out-of-range components;
81070         that is now the caller's responsibility, since our checks were
81071         only approximations.
81072         (posixtime): Use mktime to check for out-of-range components,
81073         since it knows them exactly.
81074         If mktime returns (time_t) -1, check whether an error actually occurred
81075         by invoking localtime on -1.
81076         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81077         posixtime failures better.
81078         Improve the test data (in comments only).
81079
81080 2003-06-02  Karl Berry  <karl@gnu.org>
81081
81082         * config/mkinstalldirs (version): new variable.
81083         (--version): new option.
81084         (usage): improve message.
81085
81086 2003-05-30  Karl Berry  <karl@gnu.org>
81087
81088         * lib/mktime.c: update from libc.
81089
81090 2003-05-30  Bruno Haible  <bruno@clisp.org>
81091
81092         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81093         * config/config.rpath: Upgrade to gettext-0.12.1.
81094
81095 2003-05-30  Bruno Haible  <bruno@clisp.org>
81096
81097         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81098         * m4/nls.m4: New file, from gettext-0.12.1.
81099         * m4/po.m4: New file, from gettext-0.12.1.
81100         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81101
81102 2003-05-30  Bruno Haible  <bruno@clisp.org>
81103
81104         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81105         * lib/localcharset.h: Likewise.
81106         * lib/localcharset.c: Likewise.
81107
81108 2003-05-29  Karl Berry  <karl@gnu.org>
81109
81110         * config/config.rpath: update from gettext.
81111
81112 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81113
81114         Assume the headers required for C89 freestanding compilers.
81115         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81116         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81117         * m4/human.m4 (gl_HUMAN): Likewise.
81118         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81119         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81120         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81121         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81122         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81123         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81124
81125 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81126
81127         Assume the headers required for C89 freestanding compilers.
81128         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81129         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81130         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81131         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81132         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81133         define, since <limits.h> is guaranteed to do that.
81134         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81135         * lib/exclude.c: Include <stdbool.h> unconditionally.
81136         * lib/tempname.c: Include <stddef.h> unconditionally.
81137         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81138         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81139         <stddef.h> does that.
81140         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81141         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81142         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81143         needed.
81144         * lib/xstrtol.c: Likewise.
81145         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81146         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81147
81148         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81149         warnings on some platforms.
81150
81151         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81152         arbitrarily.
81153
81154 2003-05-26  Jim Meyering  <jim@meyering.net>
81155
81156         Merge in a change from coreutils:
81157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81158         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81159         that condition, rather than `-1' which is slightly misleading.
81160         Change the name of the cache variable to have the gl_ prefix.
81161         Prompted by a patch from Richard Dawe for DJGPP.
81162
81163 2003-05-24  Karl Berry  <karl@gnu.org>
81164
81165         * config/config.guess: update from prep.
81166
81167 2003-05-22  Karl Berry  <karl@gnu.org>
81168
81169         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81170
81171 2003-05-20  Karl Berry  <karl@gnu.org>
81172
81173         * config/config.guess: update from prep.
81174
81175 2003-05-18  Karl Berry  <karl@gnu.org>
81176
81177         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81178         might actually be set by the user.
81179
81180         * config/depcomp, install-sh, mdate-sh: update from automake.
81181
81182 2003-05-17  Bruno Haible  <bruno@clisp.org>
81183
81184         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81185         invalid expansion for AC_EGREP_CPP.
81186         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81187         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81188         Suggested by Akim Demaille <akim@epita.fr> in
81189         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81190
81191 2003-05-12  Jim Meyering  <jim@meyering.net>
81192
81193         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81194         the space-padded-by-default conversion specifiers, %e, %k, %l.
81195
81196 2003-05-12  Bruno Haible  <bruno@clisp.org>
81197
81198         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81199         the string is longer than 4 KB.
81200
81201 2003-05-11  Karl Berry  <karl@gnu.org>
81202
81203         * config/config.{guess,sub}: update from prep.
81204
81205 2003-05-09  Bruno Haible  <bruno@clisp.org>
81206
81207         * modules/error: Add m4/strerror_r.m4 to file list.
81208
81209 2003-05-03  Bruno Haible  <bruno@clisp.org>
81210
81211         Upgrade to Unicode-4.0.
81212         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81213         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81214         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81215         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81216         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81217         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81218         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81219         Change width of U+E0100..U+E01EF from 1 to 0.
81220
81221 2003-04-25  Jim Meyering  <jim@meyering.net>
81222
81223         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81224         of type size_t, not int.
81225
81226 2003-04-25  Bruno Haible  <bruno@clisp.org>
81227
81228         * lib/copy-file.c: Include <stddef.h>, for size_t.
81229
81230 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81231
81232         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81233         code which expansion is under static control.  Patch imported from
81234         Akim Demaille's patch to Bison; see
81235         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81236
81237 2003-04-14  Bruno Haible  <bruno@clisp.org>
81238
81239         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81240
81241 2003-04-11  Jim Meyering  <jim@meyering.net>
81242
81243         Merge changes from Coreutils.
81244
81245         2003-03-22  Jim Meyering  <jim@meyering.net>
81246
81247         * lib/strftime.c (widen): Cast alloca return value to proper type.
81248
81249         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81250
81251         From GNU libc.
81252         * lib/strftime.c (my_strftime): Handle very large width
81253         specifications for numeric values correctly.  Improve checks for
81254         overflow.
81255
81256         2003-01-19  Jim Meyering  <jim@meyering.net>
81257
81258         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81259         definitions.
81260         (nl_get_alt_digit) [! defined my_strftime]: Define.
81261         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81262         _nl_get_alt_digit and _nl_get_walt_digit.
81263
81264         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81265         libc. These changes have no effect outside of _LIBC.
81266
81267 2003-04-10  Bruno Haible  <bruno@clisp.org>
81268
81269         * modules/findprog: New file.
81270         * MODULES.html.sh (func_all_modules): Add it.
81271
81272 2003-04-10  Bruno Haible  <bruno@clisp.org>
81273
81274         * m4/findprog.m4: New file.
81275         * m4/eaccess.m4: New file.
81276
81277 2003-04-10  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/findprog.h: New file, from GNU gettext.
81280         * lib/findprog.c: New file, from GNU gettext.
81281
81282 2003-04-05  Jim Meyering  <jim@meyering.net>
81283
81284         Merge changes from Coreutils.
81285
81286         * lib/exclude.h (PARAMS): Remove definition and uses.
81287         * lib/exclude.c: Remove uses of `PARAMS'.
81288
81289         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81290         Add test-cases for DOS filenames. Declare program_name.
81291         (main): Set up program_name.  Patch by Rich Dawe.
81292
81293         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81294         error from mntctl.
81295         Use mntctl's return value to drive the entry-processing loop, since
81296         we can't rely on the value of the vmt_length member in the last
81297         entry.  On some systems doing so could result in exhausting
81298         virtual memory.  Based in part on a patch from Mike Jetzer.
81299
81300 2003-04-04  Bruno Haible  <bruno@clisp.org>
81301
81302         * modules/linebreak: New file.
81303         * MODULES.html.sh (func_all_modules): Add it.
81304
81305 2003-04-04  Bruno Haible  <bruno@clisp.org>
81306
81307         * m4/linebreak.m4: New file.
81308
81309 2003-04-04  Bruno Haible  <bruno@clisp.org>
81310
81311         * lib/linebreak.h: New file, from GNU gettext.
81312         * lib/linebreak.c: New file, from GNU gettext with slight
81313         modifications.
81314         * lib/lbrkprop.h: New file, from GNU gettext.
81315
81316 2003-04-03  Bruno Haible  <bruno@clisp.org>
81317
81318         * modules/utf8-ucs4: New file.
81319         * modules/utf16-ucs4: New file.
81320         * modules/ucs4-utf8: New file.
81321         * modules/ucs4-utf16: New file.
81322         * MODULES.html.sh (func_all_modules): Add them.
81323
81324 2003-04-03  Bruno Haible  <bruno@clisp.org>
81325
81326         * m4/utf-ucs4.m4: New file.
81327         * m4/ucs4-utf.m4: New file.
81328
81329 2003-04-03  Bruno Haible  <bruno@clisp.org>
81330
81331         * lib/utf8-ucs4.h: New file, from GNU gettext.
81332         * lib/utf16-ucs4.h: New file, from GNU gettext.
81333         * lib/ucs4-utf8.h: New file, from GNU gettext.
81334         * lib/ucs4-utf16.h: New file, from GNU gettext.
81335
81336 2003-04-02  Bruno Haible  <bruno@clisp.org>
81337
81338         * modules/binary-io: New file.
81339         * MODULES.html.sh (func_all_modules): Add it.
81340
81341 2003-04-02  Bruno Haible  <bruno@clisp.org>
81342
81343         * lib/binary-io.h: New file, from GNU gettext.
81344
81345 2003-04-01  Bruno Haible  <bruno@clisp.org>
81346
81347         * modules/pathname: New file.
81348         * MODULES.html.sh (func_all_modules): Add it.
81349
81350 2003-04-01  Bruno Haible  <bruno@clisp.org>
81351
81352         * lib/pathname.h: New file, from GNU gettext.
81353         * lib/concatpath.c: New file, from GNU gettext.
81354
81355 2003-03-30  Bruno Haible  <bruno@clisp.org>
81356
81357         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81358
81359 2003-03-30  Bruno Haible  <bruno@clisp.org>
81360
81361         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81362         function chown() doesn't exist.
81363
81364 2003-03-28  Bruno Haible  <bruno@clisp.org>
81365
81366         * modules/copy-file: New file.
81367         * MODULES.html.sh (func_all_modules): Add it.
81368
81369 2003-03-28  Bruno Haible  <bruno@clisp.org>
81370
81371         * m4/copy-file.m4: New file.
81372
81373 2003-03-28  Bruno Haible  <bruno@clisp.org>
81374
81375         * lib/copy-file.h: New file, from GNU gettext.
81376         * lib/copy-file.c: New file, from GNU gettext.
81377
81378 2003-03-18  Jim Meyering  <jim@meyering.net>
81379
81380         * lib/quote.c (quote_n): Fix typo in comment.
81381
81382 2003-03-18  Bruno Haible  <bruno@clisp.org>
81383
81384         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81385         checking.
81386         * m4/onceonly_2_57.m4: Likewise.
81387
81388 2003-03-17  Bruno Haible  <bruno@clisp.org>
81389
81390         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81391         (m4_quote): Remove macro.
81392         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81393
81394 2003-03-14  Jim Meyering  <jim@meyering.net>
81395
81396         Merge changes from Coreutils.
81397         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81398         to be const, in order to avoid warnings.
81399         (obstack_room): Likewise.
81400         (obstack_empty_p): Likewise.
81401
81402 2003-03-14  Bruno Haible  <bruno@clisp.org>
81403
81404         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81405         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81406
81407 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81408
81409         Merge changes from Bison.
81410         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81411         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81412         when compiling Bison 1.875's `bitset bset = obstack_alloc
81413         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81414         * lib/hash.c: Include <stdbool.h> unconditionally.
81415
81416 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81417
81418         * m4/onceonly.m4 (m4_quote): New macro.
81419         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81420         Quote AC_FOREACH variable-expansions properly.
81421
81422 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81423
81424         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81425
81426 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81427
81428         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81429         Reported by Bruce Becker; see:
81430         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81431
81432 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81433             Bruno Haible  <bruno@clisp.org>
81434
81435         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81436         Reported by John Hughes, see
81437         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81438
81439 2003-02-20  Bruno Haible  <bruno@clisp.org>
81440
81441         * MODULES.html.sh (func_all_modules): Add poll.
81442
81443 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81444
81445         * modules/poll: New file.
81446
81447 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81448
81449         * lib/poll_.h: New file.
81450         * lib/poll.c: New file.
81451
81452 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81453
81454         * m4/poll.m4: New file.
81455
81456 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81457
81458         * modules/mathl: New file.
81459
81460 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81461
81462         * lib/mathl.h: New file.
81463         * lib/acosl.c: New file.
81464         * lib/asinl.c: New file.
81465         * lib/atanl.c: New file.
81466         * lib/ceill.c: New file.
81467         * lib/cosl.c: New file.
81468         * lib/expl.c: New file.
81469         * lib/floorl.c: New file.
81470         * lib/frexpl.c: New file.
81471         * lib/ldexpl.c: New file.
81472         * lib/logl.c: New file.
81473         * lib/sincosl.c: New file.
81474         * lib/sinl.c: New file.
81475         * lib/sqrtl.c: New file.
81476         * lib/tanl.c: New file.
81477         * lib/trigl.c: New file.
81478         * lib/trigl.h: New file.
81479
81480 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81481
81482         * m4/mathl.m4: New file.
81483
81484 2003-02-18  Bruno Haible  <bruno@clisp.org>
81485
81486         * MODULES.html.sh (func_all_modules): Add mathl.
81487
81488 2003-02-17  Bruno Haible  <bruno@clisp.org>
81489
81490         * modules/mkdtemp: New module.
81491         * MODULES.html.sh (func_all_modules): Add it.
81492
81493 2003-02-17  Bruno Haible  <bruno@clisp.org>
81494
81495         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81496
81497 2003-02-17  Bruno Haible  <bruno@clisp.org>
81498
81499         * lib/mkdtemp.h: New file, from GNU gettext.
81500         * lib/mkdtemp.c: New file, from GNU gettext.
81501
81502 2003-02-02  Jim Meyering  <jim@meyering.net>
81503
81504         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81505         e.g. glibc-2.2.93.
81506
81507 2003-01-31  Bruno Haible  <bruno@clisp.org>
81508
81509         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81510         'rpl_rename'.
81511         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81512         'rpl_strnlen'.
81513         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81514         'rpl_strtod'.
81515         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81516         'rpl_utime'.
81517
81518 2003-01-31  Bruno Haible  <bruno@clisp.org>
81519
81520         * lib/rename.c: #undef rename before defining rpl_rename.
81521         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81522
81523 2003-01-30  Bruno Haible  <bruno@clisp.org>
81524
81525         * modules/vasnprintf, modules/vasprintf: New modules.
81526         * MODULES.html.sh (func_all_modules): Add them.
81527
81528 2003-01-30  Bruno Haible  <bruno@clisp.org>
81529
81530         * m4/signed.m4: New file, from GNU gettext.
81531         * m4/longdouble.m4: New file, from GNU gettext.
81532         * m4/wchar_t.m4: New file, from GNU gettext.
81533         * m4/wint_t.m4: New file, from GNU gettext.
81534         * m4/vasnprintf.m4: New file.
81535         * m4/vasprintf.m4: New file.
81536
81537 2003-01-30  Bruno Haible  <bruno@clisp.org>
81538
81539         * lib/printf-args.h: New file, from GNU gettext.
81540         * lib/printf-args.c: New file, from GNU gettext.
81541         * lib/printf-parse.h: New file, from GNU gettext.
81542         * lib/printf-parse.c: New file, from GNU gettext.
81543         * lib/vasnprintf.h: New file, from GNU gettext.
81544         * lib/vasnprintf.c: New file, from GNU gettext.
81545         * lib/asnprintf.c: New file, from GNU gettext.
81546         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81547         * lib/vasprintf.c: New file, from GNU gettext.
81548         * lib/asprintf.c: New file, from GNU gettext.
81549
81550 2003-01-29  Bruno Haible  <bruno@clisp.org>
81551
81552         * modules/stpncpy: New module.
81553         * MODULES.html.sh (func_all_modules): Add it.
81554
81555 2003-01-29  Bruno Haible  <bruno@clisp.org>
81556
81557         * m4/stpncpy.m4: New file.
81558
81559 2003-01-29  Bruno Haible  <bruno@clisp.org>
81560
81561         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81562         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81563
81564 2003-01-28  Bruno Haible  <bruno@clisp.org>
81565
81566         * modules/c-ctype: New module.
81567         * MODULES.html.sh (func_all_modules): Add it.
81568
81569 2003-01-28  Bruno Haible  <bruno@clisp.org>
81570
81571         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81572         Paul Eggert.
81573         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81574         Paul Eggert.
81575
81576 2003-01-27  Bruno Haible  <bruno@clisp.org>
81577
81578         * modules/xsetenv: New module.
81579         * MODULES.html.sh (func_all_modules): Add it.
81580
81581 2003-01-27  Bruno Haible  <bruno@clisp.org>
81582
81583         * lib/xsetenv.h: New file, from GNU gettext.
81584         * lib/xsetenv.c: New file, from GNU gettext.
81585
81586 2003-01-23  Jim Meyering  <jim@meyering.net>
81587
81588         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81589         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81590
81591 2003-01-23  Bruno Haible  <bruno@clisp.org>
81592
81593         * modules/minmax: New module.
81594         * MODULES.html.sh (func_all_modules): Add it.
81595
81596 2003-01-23  Bruno Haible  <bruno@clisp.org>
81597
81598         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81599         Eggert.
81600
81601 2003-01-22  Bruno Haible  <bruno@clisp.org>
81602
81603         * modules/exit: New module.
81604         * MODULES.html.sh (func_all_modules): Add it.
81605
81606 2003-01-22  Bruno Haible  <bruno@clisp.org>
81607
81608         * lib/exit.h: New file, from GNU gettext.
81609
81610 2003-01-19  Bruno Haible  <bruno@clisp.org>
81611
81612         * gnulib-tool: Recognize option --extract-maintainer.
81613         (func_get_maintainer): New function.
81614         * modules/*: Add Maintainer entry.
81615
81616 2003-01-16  Jim Meyering  <jim@meyering.net>
81617
81618         * m4/regex.m4: The `regex' struct is both input and output.
81619         Initialize it before each use.  Patch by Tim Waugh.
81620
81621 2003-01-16  Bruno Haible  <bruno@clisp.org>
81622
81623         * MODULES.html.sh: Add a table of contents. Add the module name as
81624         leftmost column. Add hyperlinks.
81625
81626 2003-01-15  Bruno Haible  <bruno@clisp.org>
81627
81628         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81629
81630 2003-01-15  Bruno Haible  <bruno@clisp.org>
81631
81632         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81633         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81634         suffix.
81635
81636 2003-01-15  Bruno Haible  <bruno@clisp.org>
81637
81638         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81639
81640 2003-01-15  Bruno Haible  <bruno@clisp.org>
81641
81642         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81643         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81644
81645 2003-01-14  Jim Meyering  <jim@meyering.net>
81646
81647         * lib/same.c (same_name): Tweak a comment.
81648
81649 2003-01-14  Bruno Haible  <bruno@clisp.org>
81650
81651         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81652         when a string comparison is sufficient.
81653
81654 2003-01-14  Bruno Haible  <bruno@clisp.org>
81655
81656         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81657         'unsigned int'.
81658
81659 2003-01-14  Bruno Haible  <bruno@clisp.org>
81660
81661         * lib/hash-pjw.c: Add comment about low quality of this function.
81662
81663 2003-01-13  Bruno Haible  <bruno@clisp.org>
81664
81665         * modules/stpcpy: Distribute lib/stpcpy.h.
81666         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81667
81668 2003-01-13  Bruno Haible  <bruno@clisp.org>
81669
81670         * modules/*: Add a description.
81671         * modules/strpbrk: Fix Makefile.am snippet.
81672         * modules/strtoimax: Fix dependencies.
81673         * modules/strtoumax: Likewise.
81674
81675 2003-01-13  Bruno Haible  <bruno@clisp.org>
81676
81677         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81678         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81679         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81680
81681 2003-01-13  Bruno Haible  <bruno@clisp.org>
81682
81683         * gnulib-tool (func_create_testdir): Store config/* files in the main
81684         directory.
81685         * config.rpath: Move to ...
81686         * config/config.rpath: ... here.
81687         * modules/gettext: Contains config/config.rpath, not config.rpath.
81688         * modules/iconv: Likewise.
81689
81690 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81691
81692         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81693         to avoid collisions with libcurses and libreadline.
81694
81695         * m4/getstr.m4: Remove.
81696         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81697
81698 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81699
81700         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81701         to avoid collisions with libcurses and libreadline.
81702
81703         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81704         * lib/getstr.h, getstr.c: Remove.
81705         * lib/getline.c: Include "getline.h", to check interface.
81706         Move body of old getstr.c here: this defines MIN_CHUNK and
81707         declares getdelim2, which is renamed from getstr.
81708         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81709
81710         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81711         All uses changed.
81712         * lib/linebuffer.h: Likewise.
81713         (readline): Remove backward-compatibility macro.
81714
81715 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81716
81717         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81718         to avoid collisions with libcurses and libreadline.
81719         * getstr: Remove.
81720         * MODULES.html.sh: Remove getstr.
81721         * modules/getline: Depend on unlocked-io, not getstr.
81722
81723 2003-01-12  Jim Meyering  <jim@meyering.net>
81724
81725         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81726
81727 2003-01-10  Bruno Haible  <bruno@clisp.org>
81728
81729         * modules/alloca: Change Makefile.am requirements. Simplify Include
81730         requirements. Add lib/alloca_.h to file list.
81731
81732 2003-01-10  Bruno Haible  <bruno@clisp.org>
81733
81734         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81735
81736 2003-01-10  Bruno Haible  <bruno@clisp.org>
81737
81738         * lib/alloca_.h: New file.
81739         * lib/getdate.y: Unconditionally include alloca.h.
81740         * lib/makepath.c: Likewise.
81741         * lib/setenv.c: Likewise.
81742         * lib/userspec.c: Likewise.
81743
81744 2003-01-09  Karl Berry  <karl@gnu.org>
81745
81746         * MODULES.html.sh: include `dirname $0` in PATH, to find
81747         gnulib-tool.
81748
81749 2003-01-09  Bruno Haible  <bruno@clisp.org>
81750
81751         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81752         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81753
81754 2003-01-09  Bruno Haible  <bruno@clisp.org>
81755
81756         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81757
81758 2003-01-09  Bruno Haible  <bruno@clisp.org>
81759
81760         * lib/stdbool.h.in: New file.
81761
81762 2003-01-09  Bruno Haible  <bruno@clisp.org>
81763
81764         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81765         * MODULES.html.sh: Likewise.
81766
81767 2003-01-08  Jim Meyering  <jim@meyering.net>
81768
81769         * lib/full-write.c: Undefine and define-away `const' after inclusion
81770         of errno.h, not before.  Suggestion from Bruno Haible.
81771
81772 2003-01-08  Bruno Haible  <bruno@clisp.org>
81773
81774         * modules/full-read: Depend on full-write.
81775
81776 2003-01-08  Bruno Haible  <bruno@clisp.org>
81777
81778         * lib/safe-read.c: Include specification header first, to ensure its
81779         selfcontainedness.
81780         * lib/full-write.c: Likewise.
81781
81782 2003-01-07  Jim Meyering  <jim@meyering.net>
81783
81784         * lib/full-write.c: Rework so that it may serve to define full_read,
81785         too.
81786         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81787
81788 2003-01-07  Bruno Haible  <bruno@clisp.org>
81789
81790         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81791         <inttypes.h>.
81792         * lib/xstrtol.h: Likewise.
81793         * lib/xstrtoimax.c: Likewise.
81794         * lib/xstrtoumax.c: Likewise.
81795         * lib/human.h: Likewise.
81796
81797         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81798         on systems that have <inttypes.h> but not <stdint.h>.
81799
81800 2003-01-07  Bruno Haible  <bruno@clisp.org>
81801
81802         * MODULES.html.sh: Add copyright notice.
81803         (missed_files): Omit CVS directory entries.
81804         (func_module): Make it work with sed-3.02.
81805         * MODULES.txt: Remove file.
81806
81807 2003-01-06  Jim Meyering  <jim@meyering.net>
81808
81809         * lib/version-etc.c: Update year in translatable copyright string.
81810
81811 2003-01-03  Karl Berry  <karl@gnu.org>
81812
81813         * config/config.{guess,sub}: update from prep.
81814
81815 2003-01-02  Karl Berry  <karl@gnu.org>
81816
81817         * doc/COPYING.DOC: belatedly updated to 1.2.
81818
81819 2003-01-01  Karl Berry  <karl@gnu.org>
81820
81821         * gnulib-tool (func_verify_module): report module name $module in
81822         error message, not $1.
81823         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81824         be created, only if it doesn't exist.
81825         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81826
81827 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81828
81829         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81830
81831 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81832
81833         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81834         memcmp if strcoll doesn't work.
81835
81836 2002-12-31  Bruno Haible  <bruno@clisp.org>
81837
81838         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81839         nonempty.
81840
81841 2002-12-31  Bruno Haible  <bruno@clisp.org>
81842
81843         * lib/memcoll.c (STRCOLL): New macro.
81844         (memcoll): Use it.
81845
81846 2002-12-31  Bruno Haible  <bruno@clisp.org>
81847
81848         * lib/localcharset.h: New file.
81849         * lib/localcharset.c: Include it.
81850         * lib/unicodeio.c: Likewise.
81851
81852 2002-12-31  Bruno Haible  <bruno@clisp.org>
81853
81854         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81855         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81856
81857 2002-12-31  Bruno Haible  <bruno@clisp.org>
81858
81859         * lib/getline.h: Include <stddef.h>, for size_t.
81860
81861         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81862         * lib/unicodeio.c: Don't include <stddef.h>.
81863
81864 2002-12-31  Bruno Haible  <bruno@clisp.org>
81865
81866         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81867         HAVE_TM_ZONE.
81868
81869 2002-12-24  Karl Berry  <karl@gnu.org>
81870
81871         * config/config.guess: update from prep.
81872
81873 2002-12-24  Bruno Haible  <bruno@clisp.org>
81874
81875         General infrasructure.
81876         * m4/README: Rewritten.
81877         * m4/onceonly.m4: New file.
81878         * m4/onceonly_2_57.m4: New file.
81879
81880         Module atexit.
81881         * m4/atexit.m4: New file.
81882
81883         Module strtod.
81884         * m4/strtod.m4: New file.
81885
81886         Module strtol.
81887         * m4/strtol.m4: New file.
81888
81889         Module strtoul.
81890         * m4/strtoul.m4: New file.
81891
81892         Module memchr.
81893         * m4/memchr.m4: New file.
81894
81895         Module memcmp.
81896         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81897         (jm_FUNC_MEMCMP): Invoke it.
81898
81899         Module memcpy.
81900         * m4/memcpy.m4: New file.
81901
81902         Module memmove.
81903         * m4/memmove.m4: New file.
81904
81905         Module memset.
81906         * m4/memset.m4: New file.
81907
81908         Module strcspn.
81909         * m4/strcspn.m4: New file.
81910
81911         Module strpbrk.
81912         * m4/strpbrk.m4: New file.
81913
81914         Module strstr.
81915         * m4/strstr.m4: New file.
81916
81917         Module strerror.
81918         * m4/strerror.m4: New file.
81919
81920         Module mktime.
81921         * m4/mktime.m4: Renamed from jm-mktime.m4.
81922         (gl_PREREQ_MKTIME): New macro.
81923         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81924
81925         Module malloc.
81926         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81927         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81928         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81929
81930         Module realloc.
81931         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81932         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81933         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81934
81935         Module strftime.
81936         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81938         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81939         gl_TM_GMTOFF.
81940         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81941
81942         Module xalloc.
81943         * m4/xalloc.m4: New file.
81944
81945         Module alloca.
81946         * m4/alloca.m4: New file.
81947
81948         Module putenv.
81949         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81950         (jm_FUNC_PUTENV): Invoke it.
81951
81952         Module setenv.
81953         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81954         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81955         when invoked twice.
81956         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81957         gt_FUNC_SETENV.
81958
81959         Module memrchr.
81960         * m4/memrchr.m4: New file.
81961
81962         Module stpcpy.
81963         * m4/stpcpy.m4: New file.
81964
81965         Module strcase.
81966         * m4/strcase.m4: New file.
81967
81968         Module strdup.
81969         * m4/strdup.m4: New file.
81970
81971         Module strnlen.
81972         * m4/strnlen.m4: New file.
81973
81974         Module strndup.
81975         * m4/strndup.m4: New file.
81976
81977         Module xstrtod.
81978         * m4/xstrtod.m4: New file.
81979
81980         Module xstrtol.
81981         * m4/xstrtol.m4: New file.
81982
81983         Module getdate.
81984         * m4/getdate.m4: New file.
81985
81986         Module unlocked-io.
81987         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81988         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81989         * m4/jm-glibc-io.m4n: Remove file.
81990
81991         Module long-options.
81992         * m4/long-options.m4: New file.
81993
81994         Module md5.
81995         * m4/md5.m4: New file.
81996
81997         Module sha.
81998         * m4/sha.m4: New file.
81999
82000         Module getstr.
82001         * m4/getstr.m4: New file.
82002
82003         Module getline.
82004         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82005         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82006         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82007         simply getline. Infoke gl_PREREQ_GETLINE.
82008
82009         Module obstack.
82010         * m4/obstack.m4: New file.
82011
82012         Module hash.
82013         * m4/hash.m4: New file.
82014
82015         Module readtokens.
82016         * m4/readtokens.m4: New file.
82017
82018         Module strverscmp.
82019         * m4/strverscmp.m4: New file.
82020
82021         Module stdbool.
82022         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82023         OSF/1.
82024
82025         Module strtoll.
82026         * m4/strtoll.m4: New file.
82027
82028         Module strtoull.
82029         * m4/strtoull.m4: New file.
82030
82031         Module strtoimax.
82032         * m4/strtoimax.m4: New file.
82033
82034         Module strtoumax.
82035         * m4/strtoumax.m4: New file.
82036
82037         Module xstrtoimax.
82038         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82039         jm_AC_PREREQ_XSTRTOIMAX.
82040         Moved the strtol prerequisites to strtol.m4.
82041         Moved the strtoll prerequisites to strtoll.m4.
82042         Moved the strtoimax prerequisites to strtoimax.m4.
82043
82044         Module xstrtoumax.
82045         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82046         jm_AC_PREREQ_XSTRTOUMAX.
82047         Moved the strtoul prerequisites to strtoul.m4.
82048         Moved the strtoull prerequisites to strtoull.m4.
82049         Moved the strtoumax prerequisites to strtoumax.m4.
82050
82051         Module chown.
82052         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82053         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82054
82055         Module dup2.
82056         * m4/dup2.m4: New file.
82057
82058         Module ftruncate.
82059         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82060         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82061
82062         Module getgroups.
82063         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82064         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82065
82066         Module gettimeofday.
82067         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82068         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82069         gl_PREREQ_GETTIMEOFDAY.
82070
82071         Module mkdir.
82072         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82073         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82074
82075         Module mkstemp.
82076         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82077         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82078         jm_AC_TYPE_UINTMAX_T.
82079         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82080
82081         Module stat.
82082         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82083         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82084
82085         Module lstat.
82086         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82087         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82088
82089         Module timespec.
82090         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82091         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82092         * m4/st_mtim.m4: Indentation.
82093
82094         Module nanosleep.
82095         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82096         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82097         gl_PREREQ_NANOSLEEP.
82098
82099         Module regex.
82100         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82101         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82102         (gl_REGEX): New macro.
82103
82104         Module rename.
82105         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82106         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82107
82108         Module rmdir.
82109         * m4/rmdir.m4: New file.
82110
82111         Module utime.
82112         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82113         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82114         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82115
82116         Module dirname.
82117         * m4/dirname.m4: New file.
82118
82119         Module getopt.
82120         * m4/getopt.m4: New file.
82121
82122         Module unistd-safer.
82123         * m4/unistd-safer.m4: New file.
82124
82125         Module fnmatch.
82126         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82127         declaration.
82128         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82129         (gl_FUNC_FNMATCH_POSIX): New macro.
82130         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82131         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82132         simply fnmatch.
82133
82134         Module exclude.
82135         * m4/exclude.m4: New file.
82136
82137         Module human.
82138         * m4/human.m4: New file.
82139
82140         Module acl.
82141         * m4/acl.m4: Nop.
82142
82143         Module backupfile.
82144         * m4/backupfile.m4: New file.
82145         * m4/d-ino.m4: Indentation.
82146
82147         Module fsusage.
82148         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82149         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82150         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82151
82152         Module dirfd.
82153         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82154         requirements.
82155
82156         Module euidaccess.
82157         * m4/euidaccess.m4: New file.
82158
82159         Module file-type.
82160         * m4/file-type.m4: New file.
82161
82162         Module fileblocks.
82163         * m4/fileblocks.m4: New file.
82164
82165         Module filemode.
82166         * m4/filemode.m4: New file.
82167
82168         Module isdir.
82169         * m4/isdir.m4: New file.
82170
82171         Module lchown.
82172         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82173         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82174
82175         Module makepath.
82176         * m4/makepath.m4: New file.
82177
82178         Module modechange.
82179         * m4/modechange.m4: New file.
82180
82181         Module mountlist.
82182         * m4/mountlist.m4: New file.
82183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82184         Indentation.
82185
82186         Module path-concat.
82187         * m4/path-concat.m4: New file.
82188
82189         Module pathmax.
82190         * m4/pathmax.m4: New file.
82191
82192         Module same.
82193         * m4/same.m4: New file.
82194
82195         Module save-cwd.
82196         * m4/save-cwd.m4: New file.
82197
82198         Module savedir.
82199         * m4/savedir.m4: New file.
82200
82201         Module xgetcwd.
82202         * m4/xgetcwd.m4: New file.
82203         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82204
82205         Module xreadlink.
82206         * m4/xreadlink.m4: New file.
82207
82208         Module safe-read.
82209         * m4/safe-read.m4: New file.
82210
82211         Module safe-write.
82212         * m4/safe-write.m4: New file.
82213
82214         Module closeout.
82215         * m4/closeout.m4: New file.
82216
82217         Module stdio-safer.
82218         * m4/stdio-safer.m4: New file.
82219
82220         Module getpass.
82221         * m4/getpass.m4: New file.
82222
82223         Module getugroups.
82224         * m4/getugroups.m4: New file.
82225
82226         Module group-member.
82227         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82228         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82229
82230         Module idcache.
82231         * m4/idcache.m4: New file.
82232
82233         Module userspec.
82234         * m4/userspec.m4: New file.
82235
82236         Module gettime.
82237         * m4/clock_time.m4: New file.
82238         * m4/gettime.m4: New file.
82239
82240         Module settime.
82241         * m4/settime.m4: New file.
82242
82243         Module posixtm.
82244         * m4/posixtm.m4: New file.
82245
82246         Module gethostname.
82247         * m4/gethostname.m4: New file.
82248
82249         Module canon-host.
82250         * m4/canon-host.m4: New file.
82251
82252         Module gettext.
82253         * m4/codeset.m4: New file, from gettext-0.11.5.
82254         * m4/gettext.m4: New file, from gettext-0.11.5.
82255         * m4/glibc21.m4: New file, from gettext-0.11.5.
82256         * m4/iconv.m4: New file, from gettext-0.11.5.
82257         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82258         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82259         * m4/inttypes.m4: New file, from gettext-0.11.5.
82260         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82261         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82262         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82263         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82264         * m4/lib-link.m4: New file, from gettext-0.11.5.
82265         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82266         * m4/progtest.m4: New file, from gettext-0.11.5.
82267         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82268         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82269         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82270
82271         Module localcharset.
82272         * m4/localcharset.m4: New file.
82273
82274         Module hard-locale.
82275         * m4/hard-locale.m4: New file.
82276
82277         Module mbswidth.
82278         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82279         onceonly macros.
82280         * m4/mbrtowc.m4: Add comment.
82281
82282         Module memcasecmp.
82283         * m4/memcasecmp.m4: New file.
82284
82285         Module memcoll.
82286         * m4/memcoll.m4: New file.
82287
82288         Module unicodeio.
82289         * m4/unicodeio.m4: New file.
82290
82291         Module rpmatch.
82292         * m4/rpmatch.m4: New file.
82293
82294         Module yesno.
82295         * m4/yesno.m4: New file.
82296
82297         Module exitfail.
82298         * m4/exitfail.m4: New file.
82299
82300         Module c-stack.
82301         * m4/c-stack.m4 (gl_C_STACK): New macro.
82302         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82303
82304         Module error.
82305         * m4/error.m4 (gl_ERROR): New macro.
82306         (jm_PREREQ_ERROR): Use onceonly macros.
82307
82308         Module fatal.
82309         * m4/fatal.m4: New file.
82310
82311         Module getloadavg.
82312         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82313         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82314
82315         Module getpagesize.
82316         * m4/getpagesize.m4: New file.
82317
82318         Module getusershell.
82319         * m4/getusershell.m4: New file.
82320
82321         Module physmem.
82322         * m4/physmem.m4: New file.
82323
82324         Module posixver.
82325         * m4/posixver.m4: New file.
82326
82327         Module quotearg.
82328         * m4/quotearg.m4: New file.
82329
82330         Module quote.
82331         * m4/quote.m4: New file.
82332
82333         Module readutmp.
82334         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82335
82336         Module sig2str.
82337         * m4/sig2str.m4: New file.
82338
82339         Other.
82340         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82341         ulonglong.m4.
82342         * m4/intmax_t.m4: New file.
82343         * m4/d-type.m4: Indentation.
82344         * m4/jm-macros.m4: Update.
82345         * m4/prereq.m4 (jm_PREREQ): Update.
82346         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82347         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82348         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82349         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82350         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82351         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82352         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82353         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82354         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82355         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82356         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82357         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82358         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82359         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82360         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82361         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82362         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82363         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82364         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82365
82366 2002-12-24  Bruno Haible  <bruno@clisp.org>
82367
82368         * MODULES.txt: Update according to m4/ changes.
82369
82370         Module gettext.
82371         * config.rpath: New file, from gettext-0.11.5.
82372
82373         * modules/*: New module descriptions.
82374         * gnulib-tool: New file.
82375         * MODULES.html.sh: New file.
82376
82377 2002-12-21  Karl Berry  <karl@gnu.org>
82378
82379         * doc/fdl.texi: update to version 1.2.
82380
82381 2002-12-19  Karl Berry  <karl@gnu.org>
82382
82383         * config/config.guess: update from prep.
82384
82385 2002-12-18  Bruno Haible  <bruno@clisp.org>
82386
82387         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82388         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82389
82390 2002-12-17  Bruno Haible  <bruno@clisp.org>
82391
82392         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82393         stdlib.h, string.h.
82394
82395 2002-12-17  Bruno Haible  <bruno@clisp.org>
82396
82397         * lib/canon-host.c (strdup): Remove unused declaration.
82398
82399         * lib/fsusage.c: Include full_read.h.
82400         (get_fs_usage): Use full_read instead of safe_read.
82401
82402         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82403
82404 2002-12-12  Karl Berry  <karl@gnu.org>
82405
82406         * config/config.guess: update from prep.
82407
82408 2002-12-11  Bruno Haible  <bruno@clisp.org>
82409
82410         * m4/setenv.m4: New file, from gettext-0.11.5.
82411
82412 2002-12-11  Bruno Haible  <bruno@clisp.org>
82413
82414         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82415         not unsetenv().
82416         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82417         modifications:
82418
82419         2002-12-11  Bruno Haible  <bruno@clisp.org>
82420
82421                 * setenv.c (alloca): Fall back to malloc.
82422                 (freea): New macro.
82423                 (setenv): Use freea() to free memory allocated with alloca().
82424
82425         2002-11-13  Bruno Haible  <bruno@clisp.org>
82426
82427                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82428                 function declarations.
82429                 * unsetenv.c (unsetenv): Likewise.
82430
82431         2002-03-04  Bruno Haible  <bruno@clisp.org>
82432
82433                 Portability to AIX 4.3.3.
82434                 * unsetenv.c: New file, extracted from setenv.c.
82435                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82436
82437         2001-12-20  Bruno Haible  <bruno@clisp.org>
82438
82439                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82440                 use malloc instead. For SunOS 4.
82441
82442         2001-12-11  Bruno Haible  <bruno@clisp.org>
82443
82444                 * setenv.c: Declare alloca.
82445                 (compar_fn_t): New typedef.
82446                 (KNOWN_VALUE, STORE_VALUE): Use it.
82447
82448         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82449         setenv.h.
82450
82451 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82452
82453         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82454         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82455         Choose values that are less likely to collide with system fnmatch
82456         options.
82457         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82458         defined (e.g., a pure POSIX system).
82459         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82460         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82461
82462 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82463
82464         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82465         a pain in practice to deal with generated m4 files.  This change
82466         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82467
82468         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82469         and jm-glibc-io.m4, as they are no longer a special case.
82470         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82471         kludge and the auto-generation stuff.  Check only whether the
82472         functions are declared, not whether they exist, since older hosts
82473         that don't declare the functions can't use the optimization anyway.
82474
82475 2002-12-06  Jim Meyering  <jim@meyering.net>
82476
82477         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82478
82479         Merge in changes from libc's misc/error.c, in preparation
82480         for the merge of gnulib's changes back into libc.
82481
82482         * lib/error.c (_): Define only if not already defined.
82483         Move definition to follow all #include directives.
82484         Include unlocked-io.h only if !_LIBC.
82485         [_LIBC]: Include <libio/libioP.h>.
82486         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82487         (fflush): Tweak definition to use INTUSE.
82488         (putc): Define.
82489
82490 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82491
82492         * lib/alloca.c [defined emacs]: Include "lisp.h".
82493         (xalloc_die) [defined emacs]: New macro.
82494         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82495         [! defined emacs]: Include <xalloc.h>.
82496         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82497         (pointer): Typedef to POINTER_TYPE *.
82498         (malloc): Remove decl; we now always use xmalloc.
82499         (alloca): Use old-style definition, since Emacs needs this.
82500         Check for arithmetic overflow when computing combined size.
82501
82502 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82503
82504         Do not generate unlocked-io.h automatically, since it's easier to
82505         maintain it by hand.
82506
82507         * lib/unlocked-io.h: New file, from GNU diffutils,
82508         but with proper copyright notice and attribution.
82509         * lib/gen-uio: Remove.
82510         * lib/Makefile.am: Add copyright notice.
82511         (libfetish_a_SOURCES): Add unlocked-io.h.
82512         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82513         (DISTCLEANFILES, io_functions): Remove macros.
82514         (EXTRA_DIST): Remove gen_uio.
82515         (unlocked-io.h): Remove rule.
82516
82517 2002-12-04  Jim Meyering  <jim@meyering.net>
82518
82519         Reflect the fact that stat.c and lstat.c are no longer generated.
82520         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82521         (DISTCLEANFILES): Likewise.
82522         (EXTRA_DIST): Likewise.
82523         (all_local): Don't depend on stat.c or lstat.c.
82524         (stat.c, lstat.c): Remove rules.
82525         (EXTRA_DIST): Remove xstat.in.
82526
82527         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82528         * lib/stat.c: New file.  Contents mostly from xstat.in.
82529         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82530         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82531
82532         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82533         too.
82534         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82535
82536 2002-12-03  Jim Meyering  <jim@meyering.net>
82537
82538         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82539         but not semantics, to minimize the differences between these two files.
82540         (safe_read): Change comment to mention SAFE_READ_ERROR.
82541
82542         * lib/safe-read.c (IS_EINTR): Define.
82543         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82544
82545 2002-12-02  Jim Meyering  <jim@meyering.net>
82546
82547         * lib/safe-read.c (EINTR): Define.
82548         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82549         (INT_MAX): Provide fallback.
82550         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82551
82552         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82553
82554 2002-12-02  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82557         Define, taken from safe-read.c.
82558         (INT_MAX): Provide fallback.
82559         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82560         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82561
82562         * lib/safe-read.c (EINTR): Remove definition.
82563         (safe_read): Don't use EINTR if it is absent.
82564
82565 2002-12-01  Jim Meyering  <jim@meyering.net>
82566
82567         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82568         zero.
82569         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82570
82571 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82572
82573         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82574         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82575         with `if (! (value < limit)) abort ();', for readability.
82576
82577 2002-11-26  Karl Berry  <karl@gnu.org>
82578
82579         * lib/strdup.c: copy from libc again, with jim's ok.
82580         * lib/.cppi-disable: re-add strdup.c
82581
82582 2002-11-25  Karl Berry  <karl@gnu.org>
82583
82584         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82585         instead of "strtol.c".
82586
82587 2002-11-25  Karl Berry  <karl@gnu.org>
82588
82589         * config/install-sh: update from automake for variable quoting, $0 in
82590         error msgs, etc.
82591
82592         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82593         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82594         entry.
82595
82596 2002-11-25  Jim Meyering  <jim@meyering.net>
82597
82598         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82599
82600 2002-11-24  Karl Berry  <karl@gnu.org>
82601
82602         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82603         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82604
82605 2002-11-24  Jim Meyering  <jim@meyering.net>
82606
82607         Update from coreutils:
82608
82609         * lib/mktime.c: Merge in changes from libc.
82610
82611         Avoid a link-time failure on some Linux systems.
82612         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82613         (otherwise).
82614         (__mon_yday): Declare with the STATIC attribute.
82615         (__mktime_internal): Likewise.
82616         Based on a report from Greg Schafer.
82617
82618 2002-11-23  Jim Meyering  <jim@meyering.net>
82619
82620         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82621         Use `unsigned', not `int', as type of index.
82622
82623         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82624
82625         * lib/fsusage.c: Remove unneeded parentheses around operands of
82626         `defined'.
82627
82628 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82629
82630         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82631         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82632         so that we can be included first.
82633         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82634         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82635         No need to include stddef.h or sys/types.h any more.
82636         Surround local include files with "", not "<>".
82637         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82638         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82639         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82640         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82641         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82642         (ISPRINT): Remove; no longer needed now that we assume C89.
82643
82644         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82645         Preserve errno.
82646
82647         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82648         quotearg_char): Use SIZE_MAX rather than
82649         (size_t) -1 when we are talking about "infinity".
82650
82651         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82652
82653 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82654
82655         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82656         hint that one should use `if (! x) abort ();' rather than `assert
82657         (x);', and anyway it's one less thing to worry about configuring.
82658         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82659         hash_rehash, hash_insert): Use abort rather than assert.
82660
82661 2002-11-22  Bruno Haible  <bruno@clisp.org>
82662
82663         * lib/safe-read.h: Assume C89. Add comments.
82664         (safe_read): Change return type to size_t.
82665         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82666         byte counts > SSIZE_MAX correctly.
82667         * lib/safe-write.h: New file.
82668         * lib/safe-write.c: New file.
82669         * lib/full-read.h: New file.
82670         * lib/full-read.c: New file.
82671         * lib/full-write.h: Assume C89. Add comments.
82672         * lib/full-write.c: Include safe-write.h.
82673         (full_write): Rewritten to use safe_write.
82674         Suggested by Jim Meyering and Paul Eggert.
82675
82676 2002-11-21  Jim Meyering  <jim@meyering.net>
82677
82678         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82679
82680         Merge in changes from the coreutils.
82681
82682         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82683         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82684         <stdint.h>.
82685         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82686         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82687         int.  Work more efficiently if X is the same width as uintmax_t.
82688         Do not compare X to -1, to avoid bogus compiler warning.
82689         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82690         Don't assume that f_frsize and f_bsize are the same type.
82691
82692         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82693         warning on FreeBSD.
82694
82695         * lib/makepath.c (make_path): Restore umask *before* creating the final
82696         component.
82697         (make_path): Minor reformatting.
82698
82699         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82700         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82701         HAVE_MALLOC/HAVE_REALLOC.
82702
82703         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82704         dummy ones.  At least on GNU/Linux systems, `auto' means something
82705         else.
82706         From Michael Stone.
82707
82708 2002-11-21  Bruno Haible  <bruno@clisp.org>
82709
82710         Remove case insensitive option matching.
82711         * lib/argmatch.h (argcasematch): Remove declaration.
82712         (ARGCASEMATCH): Remove macro.
82713         (__xargmatch_internal): Remove case_sensitive argument.
82714         (XARGMATCH): Update.
82715         (XARGCASEMATCH): Remove macro.
82716         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82717         case_sensitive argument.
82718         (argcasematch): Remove function.
82719         (__xargmatch_internal): Remove case_sensitive argument.
82720         (main): Use XARGMATCH instead of XARGCASEMATCH.
82721
82722         * lib/xmalloc.c: Change compile-time error message. Add comment about
82723         required autoconf version.
82724
82725 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82726
82727         Merge argmatch cleanups from Bison.  Assume C89.
82728
82729         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82730         Include stdlib.h, for EXIT_FAILURE.
82731         Always include <string.h>, since we assume C89.
82732         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82733         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82734         Include <stddef.h> instead, since it's all we need for size_t.
82735         (PARAMS): Remove.  All uses removed.
82736         (ARRAY_CARDINALITY): Do not bother to #undef.
82737         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82738         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82739         Remove unnecessary parentheses.
82740         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82741         Insert necessary parentheses.
82742         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82743         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82744
82745 2002-11-19  Bruno Haible  <bruno@clisp.org>
82746
82747         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82748         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82749
82750         * lib/mbswidth.h (PARAMS): Remove macro.
82751         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82752         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82753
82754         * lib/gcd.h (PARAMS): Remove macro.
82755         (gcd): Use ANSI C function declarations.
82756         * lib/gcd.c (gcd): Likewise.
82757
82758 2002-11-15  Bruno Haible  <bruno@clisp.org>
82759
82760         * lib/strcspn.c: Include <stddef.h>.
82761         (strcspn): Use ANSI C function declaration. Change return type to
82762         size_t. Use NULL.
82763         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82764         (strpbrk): Use NULL.
82765         * lib/strpbrk.h (PARAMS): Remove macro.
82766         (strpbrk): Use ANSI C function declaration.
82767         * lib/strstr.c: Don't include <sys/types.h>.
82768         * lib/strstr.h (PARAMS): Remove macro.
82769         (strstr): Use ANSI C function declarations.
82770
82771 2002-11-14  Karl Berry  <karl@gnu.org>
82772
82773         * config/mkinstalldirs: `do' on separate line, instead of
82774         `for var; do'.
82775
82776 2002-11-06  Bruno Haible  <bruno@clisp.org>
82777
82778         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82779         * lib/gcd.c (gcd): Likewise.
82780
82781 2002-11-05  Bruno Haible  <bruno@clisp.org>
82782
82783         * lib/gcd.h: New file, from gettext-0.11.5.
82784         * lib/gcd.c: New file, from gettext-0.11.5.
82785
82786 2002-11-05  Bruno Haible  <bruno@clisp.org>
82787
82788         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82789         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82790         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82791         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82792
82793         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82794         <libintl.h>.
82795         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82796         <libintl.h>.
82797
82798         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82799         * lib/human.c: Include gettext.h instead of <libintl.h>.
82800         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82801         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82802         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82803         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82804         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82805         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82806         (textdomain): Remove definition.
82807         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82808
82809         * lib/long-options.c: Remove include of <libintl.h> and definition of
82810         _.
82811         * lib/same.c: Remove include of <libintl.h> and definition of _.
82812
82813 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82814
82815         * lib/config.charset: A few additions for Solaris.
82816
82817 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82818
82819         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82820         * lib/localcharset.c (locale_charset): Declare as extern "C".
82821
82822 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82823
82824         * lib/config.charset: msdos in uk_UA uses CP1125.
82825
82826 2002-11-04  Bruno Haible  <bruno@clisp.org>
82827
82828         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82829         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82830         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82831         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82832         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82833
82834 2002-11-04  Bruno Haible  <bruno@clisp.org>
82835
82836         * lib/localcharset.c (locale_charset): Don't return an empty string.
82837
82838 2002-11-04  Bruno Haible  <bruno@clisp.org>
82839
82840         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82841         aliases.
82842
82843 2002-11-04  Bruno Haible  <bruno@clisp.org>
82844
82845         * lib/config.charset: Update for newest glibc. Add canonical names
82846         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82847
82848 2002-11-04  Bruno Haible  <bruno@clisp.org>
82849
82850         * lib/config.charset: Add support for NetBSD.
82851
82852 2002-11-04  Bruno Haible  <bruno@clisp.org>
82853
82854         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82855
82856 2002-11-01  Bruno Haible  <bruno@clisp.org>
82857
82858         * configure.in: Add AC_CONFIG_AUX_DIR call.
82859         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82860         test/Makefile.
82861         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82862
82863 2002-09-28  Karl Berry  <karl@gnu.org>
82864
82865         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82866         installed automake until the next release, since changes have been
82867         made.
82868
82869 2002-09-25  Karl Berry  <karl@gnu.org>
82870
82871         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82872         * lib/getopt*: copy from libc/posix.
82873         * lib/gettext.h: copy from gettext.
82874         * lib/.cppi-disable: add strdup.c, gettext.h.
82875
82876 2002-09-25  Karl Berry  <karl@gnu.org>
82877
82878         * config/srclist.txt: enable gettext.h check.
82879         * config/config.{guess,sub}: update from prep.
82880         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82881                 from automake 1.6.3.
82882         See srclist*.
82883
82884 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82885
82886         * regex.c (PATFETCH): Remove the translating fetch.
82887         (PATFETCH_RAW): Rename to PATFETCH.
82888         (set_image_of_range): New fun.
82889         (SET_RANGE_TABLE_WORK_AREA): Use it.
82890         (regex_compile): Don't translate the pattern chars so eagerly.
82891         Only do it when inserting an `exactn' bytecode or when handling
82892         a char-range.
82893         (mutually_exclusive_p): Avoid empty statement.
82894
82895 2002-07-06  Jim Meyering  <meyering@lucent.com>
82896
82897         * m4/README: Don't mention Makefile.am.in.
82898         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82899
82900 2002-07-01  Jim Meyering  <meyering@lucent.com>
82901
82902         * lib/c-stack.c: Include sys/time.h.
82903         From Volker Borchert.
82904
82905 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82906
82907         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82908
82909 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82910
82911         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82912         New macro.  Use it uniformly instead of
82913         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82914         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82915         reported by Vin Shelton.
82916
82917 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82918
82919         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82920         Do not assume SA_SIGINFO behavior.
82921         Bug reported by Jim Meyering on NetBSD 1.5.2.
82922
82923 2002-06-22  Jim Meyering  <meyering@lucent.com>
82924
82925         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82926         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82927
82928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82929         now that configure.ac uses AC_GNU_SOURCE.
82930         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82931         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82932
82933         Update to latest tools.  Suggestions from Paul Eggert.
82934         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82935         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82936         * m4/fnmatch.m4: Likewise.
82937         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82938         to AC_HEADER_STDBOOL
82939
82940 2002-06-22  Jim Meyering  <meyering@lucent.com>
82941
82942         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82943         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82944
82945 2002-06-22  Jim Meyering  <meyering@lucent.com>
82946
82947         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82948
82949         * lib/exitfail.c, exitfail.h: Likewise.
82950         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82951
82952         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82953         of fnmatch.h.
82954         (EXTRA_DIST): Add fnmatch_loop.c.
82955         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82956
82957         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82958         * lib/fnmatch.c: Update from diffutils-2.8.2.
82959         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82960         * lib/fnmatch.h: Remove file.
82961
82962 2002-06-21  Jim Meyering  <meyering@lucent.com>
82963
82964         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82965         * m4/mbrtowc.m4: Likewise.
82966
82967         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82968         * m4/mbswidth.m4: Reflect name change:
82969         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82970         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82971
82972         * m4/lib-link.m4: Update from gettext-0.11.2.
82973         * m4/gettext.m4: Likewise.
82974
82975         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82976         From Alfred M. Szmidt.
82977
82978 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82979
82980         * lib/file-type.h: Report an error if neither S_ISREG nor
82981         S_IFREG is defined, instead of using a test specific to glibc
82982         2.2.  This should be safe, since POSIX requires S_ISREG and
82983         Unix Version 7 had S_IFREG.  We don't need to check for
82984         <sys/types.h> since we don't use any symbols that it defines.
82985
82986 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82987
82988         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82989         $@-t, so that each temporary file name is unique and valid in the first
82990         8 characters, for operation under DOS.
82991
82992 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82993
82994         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82995
82996 2002-06-15  Jim Meyering  <meyering@lucent.com>
82997
82998         Work even with DJGPP 2.03, which lacks support for symlinks.
82999         From Richard Dawe.
83000         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83001         is defined.
83002         * lib/lchown.c (S_ISLNK): Likewise.
83003
83004 2002-06-15  Jim Meyering  <meyering@lucent.com>
83005
83006         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83007         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83008         have been included before this file.
83009
83010 2002-06-14  Jim Meyering  <meyering@lucent.com>
83011
83012         * lib/file-type.h: Use the version from diffutils-2.8.2.
83013         * lib/file-type.c: Likewise.
83014
83015 2002-06-07  Jim Meyering  <meyering@lucent.com>
83016
83017         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83018         They're needed at least for NetBSD 1.5.2.
83019         ($statxfs_includes): Include those same headers.
83020         ($statxfs_includes): Include sys/vfs.h if available.
83021         ($statxfs_includes): Likewise for sys/statvfs.h.
83022         Check for the following members in both structs statfs and statvfs:
83023         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83024
83025 2002-06-01  Jim Meyering  <meyering@lucent.com>
83026
83027         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83028         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83029
83030 2002-05-28  Jim Meyering  <meyering@lucent.com>
83031
83032         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83033         Reported by Volker Borchert.
83034
83035 2002-05-27  Jim Meyering  <meyering@lucent.com>
83036
83037         Fix a problem seen only on nonconforming systems whereby ls.c's
83038         use of localtime, and then of gettimeofday would cause trouble:
83039         the localtime call used to initialize rpl_gettimeofday's save
83040         mechanism would clobber ls's current local time information so
83041         that in any long listing the first file would always be listed
83042         with date 1970-01-01.  Analysis by Volker Borchert.
83043
83044         * lib/gettimeofday.c (localtime): Undefine.
83045         (rpl_localtime): New function.
83046
83047 2002-05-27  Jim Meyering  <meyering@lucent.com>
83048
83049         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83050         localtime.
83051
83052         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83053         use the replacement function; it wouldn't resolve at link time.
83054         Reported by Volker Borchert.
83055
83056 2002-05-22  Jim Meyering  <meyering@lucent.com>
83057
83058         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83059         file-type.h.
83060         * lib/file-type.h: New file.
83061         * lib/file-type.c (file_type): New file/function.  Extracted from
83062         diffutils.
83063
83064 2002-04-30  Jim Meyering  <meyering@lucent.com>
83065
83066         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83067
83068 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83069
83070         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83071
83072 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83073
83074         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83075         Do not check for alloca.h (no longer used) or stdbool.h (was never
83076         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83077
83078 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83079
83080         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83081
83082 2002-04-29  Jim Meyering  <meyering@lucent.com>
83083
83084         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83085         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83086         Use AC_FUNC_STRNLEN here instead.
83087
83088         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83089         With autoconf-2.53a, it's part of AC_PROG_CC.
83090
83091 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83092
83093         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83094         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83095
83096 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83097
83098         * lib/sig2str.h, lib/sig2str.c: New files.
83099         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83100
83101 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83102
83103         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83104         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83105         of 127, since 64 is the largest conceivable number for ancient
83106         nonstandard hosts.
83107         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83108
83109 2002-04-28  Jim Meyering  <meyering@lucent.com>
83110
83111         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83112
83113 2002-04-24  Jim Meyering  <meyering@lucent.com>
83114
83115         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83116         (jm_PREREQ): Use it.
83117
83118         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83119         mach/mach.h fcntl.h.
83120         Check for this function: setlocale.
83121
83122 2002-04-24  Jim Meyering  <meyering@lucent.com>
83123
83124         * lib/gettext.h: New file, from Gettext.
83125         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83126         (libfetish_a_SOURCES): Add gettext.h.
83127
83128 2002-04-16  Jim Meyering  <meyering@lucent.com>
83129
83130         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83131         ut_pid, ut_id, ut_exit.
83132
83133 2002-04-16  Jim Meyering  <meyering@lucent.com>
83134
83135         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83136         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83137         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83138
83139 2002-04-12  Jim Meyering  <meyering@lucent.com>
83140
83141         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83142         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83143         existence of the getmntinfo function.  Needed for Darwin 5.3.
83144
83145         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83146         This is necessary at least on Darwin 5.3.
83147
83148         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83149         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83150         strnlen.o in the library, and that makes some versions of ranlib
83151         object.
83152
83153 2002-04-12  Jim Meyering  <meyering@lucent.com>
83154
83155         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83156
83157 2002-04-09  Jim Meyering  <meyering@lucent.com>
83158
83159         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83160         to be more precise.  Rather than saying we're checking whether the
83161         function `works', say what we're testing.
83162         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83163         Reported by Bruno Haible.
83164
83165 2002-03-10  Jim Meyering  <meyering@lucent.com>
83166
83167         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83168         Suggestion from Santiago Vila.
83169
83170 2002-03-08  Jim Meyering  <meyering@lucent.com>
83171
83172         * lib/rename.c: Mention that this wrapper is needed also on
83173         mips-dec-ultrix4.4 systems.
83174
83175 2002-03-02  Jim Meyering  <meyering@lucent.com>
83176
83177         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83178         not HAVE_CLOCK_SETTIME.
83179
83180 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83181
83182         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83183         Check for clock_settime.
83184
83185 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83186
83187         * lib/nanosleep.h: Rename to....
83188         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83189
83190         * lib/gettime.c: New file.
83191         * lib/settime.c: New file.
83192         * lib/stime.c: Remove.
83193
83194         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83195         timespec.h.  Remove nanosleep.h.
83196
83197 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83198
83199         * m4/acl.m4: New file.
83200         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83201         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83202
83203 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83204
83205         * lib/acl.c, lib/acl.h: New files.
83206         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83207
83208 2002-02-24  Jim Meyering  <meyering@lucent.com>
83209
83210         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83211         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83212         cause trouble.  Reported by Nelson Beebe.
83213
83214 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83215
83216         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83217         compilers that don't know that xalloc_die never returns.
83218
83219 2002-02-20  Jim Meyering  <meyering@lucent.com>
83220
83221         * lib/getdate.c: Regenerate using bison-1.33.
83222
83223 2002-02-17  Jim Meyering  <meyering@lucent.com>
83224
83225         * config/config.guess (main): Don't use `head -1'; it's no longer
83226         portable. Use `sed 1q' instead.
83227
83228 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83229
83230         * m4/codeset.m4: Upgrade to gettext-0.11.
83231         * m4/gettext.m4: Upgrade to gettext-0.11.
83232         * m4/glibc21.m4: Upgrade to gettext-0.11.
83233         * m4/iconv.m4: Upgrade to gettext-0.11.
83234         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83235         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83236         * m4/lib-ld.m4: New file, from gettext-0.11.
83237         * m4/lib-link.m4: New file, from gettext-0.11.
83238         * m4/lib-prefix.m4: New file, from gettext-0.11.
83239         * m4/progtest.m4: Upgrade to gettext-0.11.
83240
83241 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83242
83243         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83244         (jm_PREREQ): Use it.
83245
83246 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83247
83248         * lib/posixver.c, lib/posixver.h: New files.
83249         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83250
83251 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83252             Bruno Haible  <bruno@clisp.org>
83253
83254         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83255         (fwrite_success_callback): New declaration.
83256         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83257         print_unicode_char. Call failure callback instead of error.
83258         (fwrite_success_callback): New function.
83259         (exit_failure_callback): New function.
83260         (fallback_failure_callback): New function.
83261         (print_unicode_char): Call unicode_to_mb.
83262
83263 2002-01-26  Jim Meyering  <meyering@lucent.com>
83264
83265         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83266         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83267
83268 2002-01-26  Jim Meyering  <meyering@lucent.com>
83269
83270         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83271
83272 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83273
83274         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83275
83276 2002-01-22  Jim Meyering  <meyering@lucent.com>
83277
83278         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83279         Otherwise, some versions of automake would omit the rule that makes
83280         Makefile from Makefile.in.
83281
83282 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83283
83284         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83285         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83286         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83287         (memcoll): Set errno to zero if there is no error.
83288
83289         * lib/quotearg.c (quotearg_buffer_restyled):
83290         Fix bug with quoting buffers containing NUL when backslashing escapes.
83291         This bug was exposed by the other changes in this patch.
83292         (quotearg_n_options): New arg ARGSIZE.
83293         All callers changed.
83294         (quoting_options_from_style): New function.
83295         (quotearg_n_style): Use it.
83296         (quotearg_n_style_mem): New function.
83297
83298         * lib/quotearg.h (quotearg_n_style_mem): New function.
83299
83300 2002-01-19  Jim Meyering  <meyering@lucent.com>
83301
83302         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83303         Remove useless quotes: DF_PROG="df".
83304         * m4/strnlen.m4: New file.
83305
83306 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83307
83308         * lib/backupfile.c (ISDIGIT): Comment fix.
83309         * lib/getdate.y (ISDIGIT): Likewise.
83310         * lib/posixtm.c (ISDIGIT, year): Likewise.
83311         * lib/strverscmp.c (ISDIGIT): Likewise.
83312         * lib/userspec.c (ISDIGIT): Likewise.
83313
83314 2002-01-16  Jim Meyering  <meyering@lucent.com>
83315
83316         * lib/getdate.y: Add three semicolons, each just before a closing
83317         brace. Bison (as of version 1.31) no longer papers over that mistake.
83318
83319 2002-01-05  Jim Meyering  <meyering@lucent.com>
83320
83321         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83322
83323 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83324
83325         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83326         not silently exit merely because the output buffer happens to
83327         have nothing pending.
83328
83329 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83330
83331         See the big note in ../ChangeLog.
83332         * lib/human.c (suffixes): Prefer K to k for 1024.
83333         (generate_suffix_backwards): New function.
83334         (human_readable_inexact): Use it.
83335         * lib/xstrtol.c (__xstrtol): If there is no number but there
83336         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83337         Accept 'K' as well as 'k'.
83338
83339 2001-12-15  Jim Meyering  <meyering@lucent.com>
83340
83341         * lib/regex.h (__restrict_arr): Update from libc.
83342
83343         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83344         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83345         (STREQ): Define.
83346
83347 2001-12-14  Jim Meyering  <meyering@lucent.com>
83348
83349         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83350         Suggestion from Bruno Haible.
83351
83352 2001-12-10  Jim Meyering  <meyering@lucent.com>
83353
83354         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83355         xrealloc, Instead, include "xalloc.h".
83356         (initbuffer): Don't cast xmalloc return value to char*.
83357         (readline): Reword comment.
83358         Don't cast xrealloc return value to char*
83359         Return NULL, not 0.
83360
83361 2001-12-09  Jim Meyering  <meyering@lucent.com>
83362
83363         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83364         about `signed and unsigned type in conditional expression'.
83365         * lib/posixtm.c (posix_time_parse): Likewise.
83366
83367         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83368
83369         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83370         to avoid a pedantic warning.
83371
83372         * lib/getstr.c: Don't include assert.h.
83373         (getstr): Remove warning-evoking assertions.
83374         Return -1 if offset parameter is out of bounds.
83375         Change the type of a local from int to size_t.
83376
83377         * lib/strftime.c (my_strftime_localtime_r): Include this function
83378         definition in the `#if ! HAVE_TM_GMTOFF' block.
83379
83380         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83381         Include xalloc.h instead.
83382
83383 2001-12-02  Jim Meyering  <meyering@lucent.com>
83384
83385         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83386         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83387         included.
83388
83389         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83390         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83391
83392 2001-11-30  Akim Demaille  <akim@epita.fr>
83393
83394         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83395         before being defined.
83396
83397 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83398
83399         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83400         First arg is int, not unsigned.
83401         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83402         (SIZE_MAX, UINT_MAX): New macros.
83403         (quotearg_n_options): Abort if N is negative.
83404         Avoid overflow check on hosts where size_t is 64 bits and int
83405         is 32 bits, as overflow is impossible there.
83406         Fix off-by-one typo that caused unnecessary reallocation.
83407
83408 2001-11-27  Jim Meyering  <meyering@lucent.com>
83409
83410         * lib/tempname.c: Merge with version from libc.
83411         * lib/regex.c: Likewise.
83412
83413         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83414         systems for which STDC_HEADERS is 0, it was not included, resulting in
83415         a warning about an integer-to-pointer conversion problem with getenv.
83416         Reported by Volker Borchert.
83417
83418 2001-11-26  Jim Meyering  <meyering@lucent.com>
83419
83420         * lib/gtod.h: Remove file.
83421         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83422         * lib/gettimeofday.c: Don't include gtod.h.
83423         (GTOD_init): Remove function.
83424         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83425         Suggestion from Volker Borchert.
83426
83427 2001-11-23  Jim Meyering  <meyering@lucent.com>
83428
83429         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83430         it.
83431         * lib/hash.c (struct hash_table): Define it here instead.
83432
83433 2001-11-22  Jim Meyering  <meyering@lucent.com>
83434
83435         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83436
83437 2001-11-20  Jim Meyering  <meyering@lucent.com>
83438
83439         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83440         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83441
83442 2001-11-19  Jim Meyering  <meyering@lucent.com>
83443
83444         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83445         directory.  Use "conftestXXXXXX" as the template.
83446         Suggestion from Paul Eggert.
83447
83448         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83449         immediately, so the test doesn't mistakenly hit the max-open-files
83450         limit.
83451
83452 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83453
83454         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83455         (TEMPORARIES): New macro.
83456         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83457         removes an artificial limitation (e.g. HP-UX 10.20, where
83458         TMP_MAX is 17576).
83459
83460 2001-11-18  Jim Meyering  <meyering@lucent.com>
83461
83462         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83463
83464 2001-11-18  Jim Meyering  <meyering@lucent.com>
83465
83466         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83467         on SunOS 4.
83468
83469         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83470         files will be created before anything else.
83471
83472 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83473
83474         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83475         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83476
83477 2001-11-17  Jim Meyering  <meyering@lucent.com>
83478
83479         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83480         Prompted by a report from Bob Proulx.
83481
83482         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83483         Instead, require UTILS_FUNC_MKSTEMP.
83484
83485 2001-11-17  Jim Meyering  <meyering@lucent.com>
83486
83487         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83488         Now, that's done as part of AC_FUNC_STRTOD.
83489
83490 2001-11-17  Jim Meyering  <meyering@lucent.com>
83491
83492         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83493         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83494         rather than group writable.  Patch by Juan F. Codagnone.
83495
83496         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83497         xrealloc, Instead, include "xalloc.h".
83498
83499         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83500         Remove explicit declarations of xmalloc, xrealloc,
83501         and xstrdup.  Instead, include "xalloc.h".
83502
83503         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83504         unlocked-io.h.
83505         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83506         Likewise.
83507         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83508
83509         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83510         Reported by Padraig Brady.
83511
83512         * lib/mkstemp.c: #undef mkstemp.
83513         Include config.h.
83514         (rpl_mkstemp): Rename from mkstemp.
83515         Protoize.
83516
83517 2001-11-16  Jim Meyering  <meyering@lucent.com>
83518
83519         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83520         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83521         determine the amount of total physical memory, use pstat_getstatic.
83522         HPUX-11 doesn't define _SC_PHYS_PAGES.
83523         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83524         If sysconf couldn't be used to determine the amount of available
83525         physical memory, use both pstat_getstatic and pstat_getdynamic.
83526         Based on a patch from Bob Proulx.
83527
83528 2001-11-10  Jim Meyering  <meyering@lucent.com>
83529
83530         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83531         (jm_PREREQ): Use it.
83532
83533 2001-11-09  Jim Meyering  <meyering@lucent.com>
83534
83535         * m4/jm-macros.m4: Require autoconf-2.52f.
83536         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83537         Use these AC_-prefixed names, not the AM_-prefixed ones.
83538
83539         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83540
83541 2001-11-05  Jim Meyering  <meyering@lucent.com>
83542
83543         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83544
83545 2001-11-04  Jim Meyering  <meyering@lucent.com>
83546
83547         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83548         $DEFS.
83549
83550 2001-11-03  Jim Meyering  <meyering@lucent.com>
83551
83552         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83553         of AC_DEFUN.
83554
83555         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83556         know the name of the variable in the macro definition.
83557
83558 2001-11-03  Jim Meyering  <meyering@lucent.com>
83559
83560         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83561         in argmatch_to_argument call.
83562
83563         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83564         argument.
83565
83566         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83567         e.g., a fault due to an attempt to free a NULL pointer.
83568
83569 2001-11-01  Jim Meyering  <meyering@lucent.com>
83570
83571         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83572         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83573
83574 2001-11-01  Jim Meyering  <meyering@lucent.com>
83575
83576         * lib/dirfd.c, lib/dirfd.h: New files.
83577         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83578
83579         * lib/hash.c (hash_print) [TESTING]: Clean up.
83580
83581 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83582
83583         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83584         to avoid a warning if -Wall.
83585
83586 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83587
83588         * README: New file
83589         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83590         (per RMS's instructions, this is now the canonical source)
83591         * lgpl/, gpl/: New directories.
83592
83593 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83594
83595         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83596
83597 2001-10-21  Jim Meyering  <meyering@lucent.com>
83598
83599         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83600         this code would end up calling gettext even in packages built
83601         with --disable-nls.
83602         * lib/getopt.c (_): Likewise.
83603         * lib/regex.c (_): Likewise.
83604
83605 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83606
83607         * m4/error.m4 (jm_PREREQ_ERROR):
83608         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83609         AC_FUNC_STRERROR_R does that.
83610         Check for strerror declaration.
83611
83612         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83613         are supposed to have them these days.
83614         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83615         Merge changes from latest Autoconf CVS.
83616         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83617         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83618         POSIX decided to standardize on the int flavor of strerror_r.
83619
83620 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83621
83622         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83623         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83624         Use strerror_r that is only a macro, even if it is not a function.
83625         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83626         (private_strerror): Use prototypes, not old-style function definition.
83627         (print_errno_message): New function.
83628         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83629         char*-flavored one.
83630         (error_tail, error, error_at_line): Use it.
83631
83632 2001-10-11  Jim Meyering  <meyering@lucent.com>
83633
83634         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83635         and quote_n (1, ... to avoid clobbering a buffer.
83636
83637 2001-10-05  Jim Meyering  <meyering@lucent.com>
83638
83639         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83640         hash-pjw.h.
83641         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83642         * lib/hash-pjw.h: New file.
83643
83644 2001-09-30  Jim Meyering  <meyering@lucent.com>
83645
83646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83647         `struct fsstat' has the `f_fstypename' member.
83648         Use that to define FS_TYPE, which is now used to make
83649         the getfsstat link test tighter.
83650
83651 2001-09-30  Jim Meyering  <meyering@lucent.com>
83652
83653         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83654         Include <sys/ucred.h>, for Apple Darwin.
83655         Include sys/mount.h and sys/fs_types.h only if available.
83656         (FS_TYPE): Define.
83657         (read_filesystem_list): Use FS_TYPE.
83658
83659 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83660
83661         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83662         a boolean context.
83663
83664 2001-09-29  Jim Meyering  <meyering@lucent.com>
83665
83666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83667         [one-argument getmntent function]): Include stdio.h before mntent.h.
83668         SunOS 4.1.x needs it for the declaration of `FILE'.
83669         Patch by Volker Borchert.
83670
83671         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83672         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83673         sys/fs_types.h, and make the link-test for getfsstat guard #include
83674         directives with appropriate #if HAVE_*_H tests so that we can
83675         detect getfsstat on Apple Darwin1.3.7 systems.
83676         Reported by Nelson Beebe.
83677         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83678
83679 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83680
83681         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83682         #defines strtoimax.  Also treat the other strto* functions
83683         like strtoimax.
83684
83685         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83686         Check for strtoul and strtoumax,
83687         as those declarations are made even in the signed case.
83688         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83689         Likewise, for strtol and strtoimax.
83690
83691 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83692
83693         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83694         #defines strtoimax.  Also treat the other strto* functions
83695         like strtoimax.
83696
83697         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83698         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83699         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83700
83701 2001-09-26  Jim Meyering  <meyering@lucent.com>
83702
83703         Most macros in unlocked-io.h had the wrong number of arguments.
83704         * lib/gen-uio: New script.
83705         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83706         * lib/unlocked-io.hin: Remove file.
83707         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83708         rather than trying to embed it here.
83709         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83710         Reported by Padraig Brady.
83711
83712 2001-09-25  Volker Borchert  <bt@teknon.de>
83713
83714         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83715         `result'.
83716
83717 2001-09-24  Jim Meyering  <meyering@lucent.com>
83718
83719         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83720
83721 2001-09-23  Jim Meyering  <meyering@lucent.com>
83722
83723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83724         instead of the mere test for existence of mntent.h.  The latter
83725         would get a false-positive on AIX 3.4 systems.
83726         In the outer getmntent if-block, don't die if neither of the getmntent
83727         tests succeeds.  Instead, just fall through and continue with the
83728         remaining tests.
83729
83730 2001-09-23  Jim Meyering  <meyering@lucent.com>
83731
83732         * lib/mountlist.c: Remove useless parentheses in #if directives.
83733         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83734         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83735
83736 2001-09-22  Jim Meyering  <meyering@lucent.com>
83737
83738         * m4/gettext.m4: New file.  From gettext.
83739         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83740         * m4/progtest.m4: Likewise
83741         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83742         * m4/glibc21.m4: Likewise.
83743
83744         * m4/libintl.m4: Remove.  No longer used.
83745
83746 2001-09-22  Jim Meyering  <meyering@lucent.com>
83747
83748         * lib/localcharset.c: Update from latest gettext.
83749         * lib/config.charset: Likewise.
83750
83751 2001-09-20  Jim Meyering  <meyering@lucent.com>
83752
83753         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83754         strtoimax.
83755         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83756         strtoumax.
83757
83758 2001-09-20  Jim Meyering  <meyering@lucent.com>
83759
83760         * lib/xstrtol.c (strtoimax): Guard declaration with
83761         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83762         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83763         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83764         (strtoumax): Likewise, for completeness (it wasn't necessary).
83765
83766 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83767
83768         * lib/strtoimax.c (HAVE_LONG_LONG):
83769         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83770         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83771         to work around bug in IBM C compiler.
83772
83773 2001-09-17  Jim Meyering  <meyering@lucent.com>
83774
83775         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83776         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83777         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83778         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83779         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83780         whenever the right hand side need not be expanded by the shell.
83781
83782 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83783
83784         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83785         library.  It's not correct, as some older glibcs are buggy.
83786         fnmatch wasn't fixed until glibc 2.2.
83787
83788         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83789         special shell magic here.
83790
83791 2001-09-16  Jim Meyering  <meyering@lucent.com>
83792
83793         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83794         * m4/jm-macros.m4: Require it.
83795
83796 2001-09-16  Jim Meyering  <meyering@lucent.com>
83797
83798         * lib/mkdir.c: New file.
83799
83800 2001-09-15  Jim Meyering  <meyering@lucent.com>
83801
83802         * m4/jm-macros.m4: Check for help2man.
83803
83804 2001-09-11  Jim Meyering  <meyering@lucent.com>
83805
83806         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83807         The body, by Paul Eggert, was moved here from configure.in.
83808         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83809
83810 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83811
83812         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83813         (jm_PREREQ): Use it.
83814
83815 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83816
83817         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83818         Use ssize_t, not int, to store result of readlink.
83819         Check for ssize_t overflow as well as size_t overflow,
83820         as POSIX says the result of readlink is implementation-defined
83821         when ssize_t overflows.
83822         Remove unnecessary cast to char*.
83823         Use free+malloc instead of realloc, as the storage doesn't need
83824         to be preserved and it's clearer and can be more efficient that way.
83825         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83826         * lib/xreadlink.h (xreadlink): Update prototype.
83827
83828 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83829
83830         * lib/xgetcwd.c: Revert some of the previous change; intead,
83831         fix the HAVE_GETCWD_NULL code to behave more like the
83832         !HAVE_GETCWD_NULL code used to.
83833
83834         Include "xalloc.h".
83835         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83836         invoke xalloc_die.
83837
83838 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83839
83840         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83841         sys/param.h, as pathmax.h includes them.
83842
83843 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83844
83845         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83846         (jm_PREREQ_XGETCWD): New macro.
83847
83848         * m4/getcwd.m4: New file.
83849
83850 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83851
83852         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83853         like the HAVE_GETCWD_NULL code.
83854         Include pathmax.h if not HAVE_GETCWD.
83855         Do not include xalloc.h.
83856         (INITIAL_BUFFER_SIZE): New symbol.
83857         Do not use xmalloc / xrealloc, since the caller is responsible for
83858         handling errors.  Preserve errno around `free' during failure.
83859         Do not overrun buffer when using getwd.
83860
83861 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83862
83863         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83864         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83865         getcwd (NULL, 0).
83866
83867 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83868
83869         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83870         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83871         spotted by Jim Meyering.
83872
83873 2001-09-03  Jim Meyering  <meyering@lucent.com>
83874
83875         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83876         failure.
83877
83878 2001-09-02  Jim Meyering  <meyering@lucent.com>
83879
83880         * lib/error.c: Update from GNU libc.
83881
83882 2001-09-01  Jim Meyering  <meyering@lucent.com>
83883
83884         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83885         Used by df.
83886
83887 2001-09-01  Jim Meyering  <meyering@lucent.com>
83888
83889         * lib/xreadlink.c: New file.
83890         * lib/xreadlink.h: New file.
83891         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83892         xreadlink.h.
83893
83894         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83895         doesn't conflict with sparc Solaris 7's definition in
83896         /usr/include/sys/int_types.h.
83897
83898         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83899         files.
83900         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83901         and strncasecmp as r-values.  Unixware didn't have declarations.
83902
83903 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83904
83905         * lib/xstrtol.h: Add copyright notice.
83906         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83907         LONGINT_INVALID_SUFFIX_CHAR.
83908
83909 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83910
83911         * lib/xstrtol.c (strtoimax): New decl.
83912
83913 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83914
83915         * lib/xgetcwd.c: Don't include pathmax.h.
83916         Include stdlib.h and unistd.h if available.
83917         Include xalloc.h.
83918         (xmalloc, xstrdup, free): Remove decls.
83919         (xgetcwd): Don't assume sizes fit in unsigned.
83920         Check for overflow when computing sizes.
83921         Simplify reallocation code.
83922
83923 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83924
83925         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83926         a directory's st_size can have an arbitrary value, so the old
83927         usage could waste an arbitrary amount of memory.  All uses
83928         changed.
83929         * lib/savedir.h: Update prototype.
83930
83931 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83932
83933         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83934
83935         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83936         old strtoimax.c.
83937
83938         Also, make the following further changes to make this file's
83939         configuration more similar to that of strtol.c:
83940         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83941         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83942         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83943         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83944         changed to signed values.
83945
83946         And make the following changes as well:
83947         Fix copyright notice, as 1999 was missing.
83948         (verify): New macro.
83949         (strtoimax): Check sizes at compile-time, not run-time.
83950         Prefer strtol to strtoll if both work.
83951         (main): Remove; it was not that useful and was a pain to maintain.
83952
83953         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83954
83955 2001-08-31  Jim Meyering  <meyering@lucent.com>
83956
83957         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83958         Use an initial, malloc'd, buffer of length 128 rather than
83959         a statically allocated one of length 1024.
83960
83961 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83962
83963         Simplify code, partly by assuming autoconf 2.52 semantics.
83964
83965         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83966
83967         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83968         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83969         All uses removed.
83970         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83971         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83972         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83973         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83974         jm_AC_HEADER_INTTYPES_H.
83975         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83976
83977         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83978
83979         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83980         Quote first arg of AC_DEFUN.
83981         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83982         since they are needed to parse the include file even if we need
83983         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83984         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83985         but with opposite signedness.
83986
83987 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83988
83989         Merge 'exclude' changes from tar 1.13.22.
83990         This fixes one or two unlikely storage allocation overflow bugs,
83991         but doesn't change user-visible behavior otherwise.
83992
83993 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83994
83995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83996         (jm_PREREQ_EXCLUDE): New macro.
83997
83998 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83999
84000         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84001         tm to be declared.
84002
84003 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84004
84005         * lib/hash.c: Remove '2001' from copyright notice.
84006
84007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84008
84009         * lib/full-write.h: New file.
84010         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84011         * lib/full-write.c: Correct credits, as cccp.c no longer
84012         exists and anyway it was so heavily changed from the old cccp
84013         code as to be unrecognizable.  Include full-write.h.
84014         (full_write): Return size_t, with short writes meaning failure.
84015         All callers changed.  This fixes a bug with large buffers
84016         on 64-bit hosts.
84017         * lib/utime.c: Include full-write.h.
84018
84019 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84020
84021         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84022         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84023         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84024         Include if available.
84025         (<xalloc.h>): Include
84026         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84027         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84028         collide with FNM macros.
84029         (struct patopts): New struct.
84030         (struct exclude): Use it, as exclude patterns now come with options.
84031         (new_exclude): Support above changes.
84032         (new_exclude, add_exclude_file):
84033         Initial size must now be a power of two to simplify overflow checking.
84034         (free_exclude, fnmatch_no_wildcards): New function.
84035         (excluded_filename): No longer requires options arg, as the options
84036         are determined by add_exclude.  Now returns bool, not int.
84037         (excluded_filename, add_exclude):
84038         Add support for the fancy new exclusion options.
84039         (add_exclude, add_exclude_file): Now takes int options arg.
84040         Check for arithmetic overflow when computing sizes.
84041         (add_exclude_file): xrealloc might modify errno, so don't
84042         realloc until after errno might be used.
84043
84044         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84045         New macros.
84046         (free_exclude): New decl.
84047         (add_exclude, add_exclude_file): Now takes int options arg.
84048         (excluded_filename): No longer requires options arg, as the options
84049         are determined by add_exclude.  Now returns bool, not int.
84050
84051 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84052
84053         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84054
84055 2001-08-27  Jim Meyering  <meyering@lucent.com>
84056
84057         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84058
84059         * lib/version-etc.c (N_): Remove definition.
84060         Revert most of last change.
84061         Instead, simply don't mark the `Copyright...' string for translation.
84062         Based on advice from Paul Eggert.
84063
84064         * lib/strtoxmax.c: Tweak comment.
84065
84066 2001-08-26  Jim Meyering  <meyering@lucent.com>
84067
84068         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84069
84070         * m4/xstrtoimax.m4: New file.
84071         * m4/xstrtoumax.m4: Add comments explaining why we
84072         AC_REPLACE_FUNCS(strtol).
84073
84074 2001-08-26  Jim Meyering  <meyering@lucent.com>
84075
84076         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84077         of copyright with `%s' so translators don't get an untranslated
84078         message in 2002.
84079         (COPYRIGHT_YEAR): Define.
84080         (version_etc): Use fprintf rather than fputs.
84081         Suggestion from Ulrich Drepper.
84082
84083         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84084
84085         * lib/strtoll.c: New file, from GNU libc.
84086         * lib/xstrtoimax.c: New file.
84087
84088         * lib/xstrtol.h: Add xstrtoimax.
84089         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84090         * lib/strtoimax.c: New file.  Likewise, but first define
84091         STRTOUXMAX_SIGNED.
84092
84093         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84094         ...
84095         * lib/strtoxmax.c: ... then renamed to this.
84096
84097 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84098
84099         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84100         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84101         (jm_AC_TYPE_INTMAX_T): New macro.
84102         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84103
84104         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84105
84106         * m4/longlong.m4: Renamed from ulonglong.m4.
84107         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84108         * m4/uintmax_t.m4: Removed.
84109
84110 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84111
84112         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84113         Port to Solaris 8, where 'sed' requires a space after the 'r'
84114         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84115         Redirect output to $tmp just once.
84116
84117 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84118
84119         * lib/addext.c (<errno.h>): Include.
84120         (errno): Declare if not defined.
84121         (addext): Work correctly when pathconf returns -1 and leaves
84122         errno alone because there is no limit.  Also, work even if
84123         pathconf returns a value greater than SIZE_MAX.
84124
84125 2001-08-12  Jim Meyering  <meyering@lucent.com>
84126
84127         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84128         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84129         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84130         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84131         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84132         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84133         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84134         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84135         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84136         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84137         utime.m4, utimes.m4, xstrtoumax.m4:
84138         Quote the first argument in each use of AC_DEFUN.
84139
84140 2001-08-12  Jim Meyering  <meyering@lucent.com>
84141
84142         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84143         Simply `return getcwd (NULL, 0);'.
84144         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84145         Use 1300 as initial value for length, not PATH_MAX.
84146
84147         * lib/pathmax.h: Clean up cpp syntax.
84148
84149 2001-08-12  Jim Meyering  <meyering@lucent.com>
84150
84151         * lib/gettimeofday.c: New file.
84152         * lib/gtod.h: New file.
84153         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84154
84155 2001-08-05  Jim Meyering  <meyering@lucent.com>
84156
84157         * m4/jm-macros.m4: Require autoconf-2.52.
84158
84159 2001-08-04  Jim Meyering  <meyering@lucent.com>
84160
84161         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84162         stmt, to get in sync with glibc.
84163
84164 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84165
84166         The following changes are from gettext 0.10.39 as maintained by
84167         Bruno Haible.
84168
84169         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84170         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84171         with inverted sense.  All uses changed.
84172
84173         * lib/mbswidth.c: Don't include <limits.h>.
84174         Include <stdlib.h> and <string.h> unconditionally.
84175         (iswcntrl, mbsinit, ISCNTRL): New macros.
84176         (mbsnwidth): Use K&R style function declarations.
84177         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84178         can optimize it when MB_CUR_MAX == 1.
84179         The width of control characters is zero, not 1.
84180
84181 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84182
84183         The following changes are from gettext 0.10.39 as maintained by
84184         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84185
84186         * m4/codeset.m4: Upgrade to serial AM1.
84187         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84188         all uses changed.  Quote first arg of AC_DEFUN.
84189         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84190
84191         * m4/iconv.m4: Upgrade to serial AM2.
84192         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84193         Add --with-libconv-prefix.
84194         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84195         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84196         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84197         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84198         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84199
84200         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84201         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84202         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84203         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84204         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84205         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84206         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84207         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84208         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84209
84210         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84211         string.h any more.
84212
84213         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84214         not the default value.
84215
84216         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84217         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84218         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84219         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84220         Also check for iswcntrl, used for wcwidth fallback.
84221         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84222         to Autoconf 2.13.
84223
84224 2001-08-03  Jim Meyering  <meyering@lucent.com>
84225
84226         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84227         as it was in the original.  Reported by Paul Eggert.
84228
84229 2001-07-16  Jim Meyering  <meyering@lucent.com>
84230
84231         * m4/gettimeofday.m4: New file.
84232         Prompted by a report from Bernhard Baehr.
84233
84234 2001-07-15  Jim Meyering  <meyering@lucent.com>
84235
84236         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84237         stuff. Now it's in ../Makefile.cfg.
84238
84239 2001-07-15  Jim Meyering  <meyering@lucent.com>
84240
84241         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84242         (BUILT_SOURCES): Add unlocked-io.h.
84243         (io_functions): Define.
84244         (unlocked-io.h): New rule.
84245         (DISTCLEANFILES): Add unlocked-io.h.
84246         (all-local): Depend on unlocked-io.h, to ensure it is created.
84247
84248         * lib/unlocked-io.hin: New file
84249
84250         * lib/regex.c: Update from glibc.
84251
84252 2001-07-05  Jim Meyering  <meyering@lucent.com>
84253
84254         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84255         recommendation.
84256         (libfetish_a_SOURCES): Put all .h files here instead.
84257         Remove a thus-exposed (better checks in automake) duplicate and
84258         two unnecessary .h files.
84259
84260 2001-07-04  Jim Meyering  <meyering@lucent.com>
84261
84262         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84263         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84264         distcheck failure.
84265
84266 2001-07-02  Jim Meyering  <meyering@lucent.com>
84267
84268         The following changes were prompted by suggestions from Bruno Haible.
84269
84270         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84271         is now generated.
84272         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84273         definition of EXTRA_DIST.
84274         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84275         ensure that the generated file is created/updated whenever the list
84276         of $(unlocked_functions) is changed.
84277         (jm-glibc-io.m4): New rule.
84278         (unlocked-io.h): New rule -- currently unused.
84279
84280 2001-06-24  Jim Meyering  <meyering@lucent.com>
84281
84282         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84283         unmatched right bracket, rather than kludging it with an extra,
84284         falsely-matching quote in a comment.  Patch by Akim Demaille.
84285
84286 2001-06-11  Jim Meyering  <meyering@lucent.com>
84287
84288         * lib/regex.c: Update from GNU libc.
84289
84290 2001-05-27  Jim Meyering  <meyering@lucent.com>
84291
84292         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84293         Check for ut_type in struct utmp.
84294
84295 2001-05-27  Jim Meyering  <meyering@lucent.com>
84296
84297         * lib/readutmp.h (UT_TYPE): Define.
84298
84299 2001-05-24  Jim Meyering  <meyering@lucent.com>
84300
84301         * lib/argmatch.c: Include "quote.h".
84302         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84303         quote function.  Reported by Göran Uddeborg.
84304
84305 2001-05-22  Jim Meyering  <meyering@lucent.com>
84306
84307         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84308         now that we use the package-supplied version unconditionally.
84309         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84310
84311 2001-05-21  Jim Meyering  <meyering@lucent.com>
84312
84313         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84314         shell syntax errors.
84315
84316 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84317
84318         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84319
84320 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84321
84322         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84323         Don't bother to check library strftime, since
84324         we'll be using our own my_strftime function anyway.
84325         Define my_strftime instead of strftime.
84326
84327 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84328
84329         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84330         which is not yet declared.
84331
84332 2001-05-15  Jim Meyering  <meyering@lucent.com>
84333
84334         * m4/regex.m4: Use proper quoting so brackets appear in the test
84335         program.
84336         Reported by, and with help from, Bruno Haible.
84337
84338 2001-05-13  Jim Meyering  <meyering@lucent.com>
84339
84340         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84341         undefined.
84342
84343 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84344
84345         dirname code cleanup.  base_name now behaves more compatibly
84346         with POSIX basename when given file names that have trailing
84347         slashes, and similarly for dir_name.  Add new primitives
84348         base_len and dir_len.  Put the directory-name-related decls
84349         into dirname.h.
84350
84351         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84352         * lib/backupfile.c (base_name): Likewise.
84353         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84354         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84355         * lib/makepath.c (strip_trailing_slashes): Likewise.
84356         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84357         ISSLASH): Likewise.
84358         * lib/rename.c (strip_trailing_slashes): Likewise.
84359         * lib/same.c (base_name): Likewise.
84360         * lib/stripslash.c (ISSLASH): Likewise.
84361
84362         * lib/addext.c: Include <dirname.h> after size_t is defined.
84363         * lib/backupfile.c: Likewise.
84364
84365         * lib/addext.c (addext): Use base_len to trim redundant
84366         trailing slashes instead of doing it ourselves.
84367         But do not trim the last slash if it is not redundant.
84368
84369         * lib/backupfile.c (find_backup_file_name,
84370         max_backup_version): Use base_len instead of rolling it ourselves.
84371         Handle the case of "" and (on DOS) "C:" correctly.
84372
84373         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84374         needed. Include <string.h>, <dirname.h>.
84375         (base_name): Allow file names ending in slashes, other than names
84376         that are all slashes.  In this case, return the basename followed
84377         by the slashes.  This is more general, and can be used in places
84378         where the original base_name purposely had an assertion failure.
84379         (base_len): New function.
84380
84381         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84382         Do not include <assert.h>; no longer needed.
84383         Include xalloc.h.
84384         (memrchr): Remove decl.
84385         (dir_name_r): Remove.
84386         (dir_len): Renamed from dirlen.  All callers changed.
84387         Rewrite in terms of base_name, for simplicity and consistency.
84388         (dir_name): Never return NULL.  All callers changed.
84389         Do not include <stdlib.h> in test program; no longer needed.
84390         return 0; is fine for test program.
84391
84392         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84393         New macros.
84394         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84395
84396         * lib/path-concat.c (path_concat): Use base_len to compute
84397         base length, not strlen; this means we cannot rely on memcpy
84398         to null-terminate.
84399
84400         * lib/same.c (STREQ): Remove.
84401         (same_name): Handle the case where the basename ends in trailing '/'.
84402
84403         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84404         a slash was stripped.  Do not strip the last slash after a
84405         file system prefix.
84406
84407 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84408
84409         * lib/Makefile.am (libfetish_a_SOURCES):
84410         Add strftime.c, since we now compile it on all hosts.
84411
84412         * lib/strftime.c (my_strftime):
84413         Define to nstrftime if emacs, but only if my_strftime is not defined.
84414         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84415         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84416         Add one more extra argument: a nanoseconds value.
84417         All uses changed.
84418         (ns): New macro.
84419         (my_strftime function): Add %N format.
84420         (emacs_strftimeu): Renamed from emacs_strftime,
84421         with extra ut argument.
84422
84423 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84424
84425         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84426
84427 2001-04-21  Jim Meyering  <meyering@lucent.com>
84428
84429         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84430         doesn't interfere.
84431
84432 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84433
84434         * m4/ftruncate.m4: Check for chsize.
84435         Link with ftruncate.o unconditionally if ftruncate is missing.
84436         This was required when cross-compiling to i586-mingw32msvc.
84437
84438 2001-04-08  Jim Meyering  <meyering@lucent.com>
84439
84440         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84441         recomputed; that's necessary when the offset spans a DST transition.
84442         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84443
84444 2001-04-02  Jim Meyering  <meyering@lucent.com>
84445
84446         * lib/regex.h, regex.c: Update from GNU libc.
84447
84448 2001-03-24  Jim Meyering  <meyering@lucent.com>
84449
84450         * m4/jm-macros.m4: Require autoconf-2.49d.
84451
84452 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84453
84454         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84455
84456 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84457
84458         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84459
84460 2001-03-17  Jim Meyering  <meyering@lucent.com>
84461
84462         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84463         now that the version in autoconf is equivalent.
84464         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84465
84466         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84467         Suggestion from Akim Demaille.
84468
84469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84470         (jm_PREREQ_TEMPNAME): New function.
84471
84472 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84473
84474         * lib/tempname.c (uint64_t): Define to uintmax_t if
84475         not defined, and if UINT64_MAX is not defined.
84476         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84477         Reported by John David Anglin.
84478
84479 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84480
84481         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84482         resolve alias if codeset is empty.
84483         * lib/config.charset (BeOS): Use wildcard syntax.
84484
84485 2001-03-13  Jim Meyering  <meyering@lucent.com>
84486
84487         * lib/path-concat.c (path_concat)
84488         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84489         concatenating e.g., `C:' and `foo'.
84490         From Bruno Haible.
84491
84492 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84493
84494         * lib/localcharset.c (locale_charset): Don't use
84495         setlocale(LC_CTYPE,NULL). Don't return NULL.
84496         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84497
84498 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84499
84500         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84501         support for DOS/DJGPP.
84502
84503 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84504
84505         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84506         lacks mkstemp.  Compile our own tempname.c if we compile our own
84507         mkstemp.c, as mkstemp relies on tempname.
84508
84509 2001-03-01  Jim Meyering  <meyering@lucent.com>
84510
84511         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84512         AH_VERBATIM really does output its argument verbatim.
84513
84514 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84515
84516         * lib/Makefile.am (libfetish_a_SOURCES):
84517         Add dup-safer.c, fopen-safer.c.
84518         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84519
84520         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84521         * lib/unistd-safer.h: New files.
84522
84523 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84524
84525         The mkstemp replacement is taken from glibc 2.2.2, with some
84526         portability fixes for use outside glibc, as follows:
84527
84528         * lib/tempname.c (struct_stat64): New macro.
84529         (direxists, __gen_tempname): Use it.
84530         This avoids a portability problem with Solaris 8.
84531
84532         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84533         (<stddef.h>, <stdint.h>, <string.h>):
84534         Include only if STDC_HEADERS || _LIBC.
84535         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84536         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84537         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84538         (__set_errno): Define this macro if <errno.h> doesn't.
84539         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84540         Define these macros if <stdio.h> doesn't.
84541         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84542         Define these macros if <sys/stat.h>
84543         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84544         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84545         __xstat64): Define if not _LIBC.
84546         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84547         (__gen_tempname): Invoke gettimeofday only if
84548         HAVE_GETTIMEOFDAY || _LIBC;
84549         otherwise, fall back on plain "time".
84550         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84551
84552         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84553
84554         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84555
84556 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84557
84558         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84559
84560 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84561
84562         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84563         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84564         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84565         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84566
84567 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84568
84569         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84570         Remove workaround macros for hosts that have mbrtowc but not
84571         mbstate_t, as we now insist on proper declarations for both
84572         before using mbrtowc.
84573
84574 2001-02-17  Jim Meyering  <meyering@lucent.com>
84575
84576         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84577         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84578         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84579         UnixWare 7.1.1.
84580
84581         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84582         rather than AC_CACHE_VAL.
84583
84584 2001-02-17  Jim Meyering  <meyering@lucent.com>
84585
84586         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84587         around included file name.
84588
84589         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84590
84591         * lib/strftime.c: Update from GNU libc (the only changes were to
84592         comments).
84593
84594 2001-02-17  Jim Meyering  <meyering@lucent.com>
84595
84596         * lib/regex.c: Update from libc.
84597
84598 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84599
84600         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84601         clash.
84602
84603 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84604
84605         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84606         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84607         Reported by Mark Hounschell via Paul Eggert.
84608
84609 2001-02-07  Jim Meyering  <meyering@lucent.com>
84610
84611         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84612
84613 2001-02-05  Jim Meyering  <meyering@lucent.com>
84614
84615         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84616         it includes the patch required for `large file' support with at least
84617         HP-UX's 10.20 /bin/cc.
84618
84619 2001-02-03  Jim Meyering  <meyering@lucent.com>
84620
84621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84622         AS_IF, now that it works once again (mysteriously).
84623         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84624
84625 2001-01-30  Jim Meyering  <meyering@lucent.com>
84626
84627         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84628         * m4/chown.m4: Rename conftestchown to conftest.chown.
84629         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84630         s/conftestdir2/conftest.d2/.
84631         * m4/utimes.m4: s/conftestdata/conftest.data/
84632         Inspired by Pavel Roskin's change in autoconf.
84633
84634 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84635
84636         * lib/config.charset: Update for FreeBSD 4.2.
84637
84638 2001-01-27  Jim Meyering  <meyering@lucent.com>
84639
84640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84641         a use of AS_IF.
84642         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84643
84644 2001-01-26  Jim Meyering  <meyering@lucent.com>
84645
84646         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84647         quotearg.c includes it.
84648
84649 2001-01-26  Jim Meyering  <meyering@lucent.com>
84650
84651         * lib/quotearg.c: Include stddef.h.
84652         * lib/quote.c: Include stddef.h.
84653         Reported by Axel Kittenberger.
84654
84655         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84656         line in double quotes so that it evokes a better diagnostic.
84657         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84658         Reported by Axel Kittenberger.
84659
84660 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84661
84662         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84663         as if it was a `charset'.
84664
84665 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84666
84667         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84668         has const.
84669
84670 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84671
84672         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84673         to avoid a warning.  Add back 'const' to inptr.
84674
84675 2001-01-20  Jim Meyering  <meyering@lucent.com>
84676
84677         Be sure that headers are checked before used in code compiled
84678         for the type checks.
84679         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84680         In place of that, invoke jm_CHECK_ALL_TYPES.
84681         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84682         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84683         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84684         The check for ssize_t was mistakenly run before the test for unistd.h.
84685
84686         The configure-time check for stdbool.h was missing.
84687         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84688         (jm_PREREQ_HASH): New function.
84689
84690 2001-01-17  Jim Meyering  <meyering@lucent.com>
84691
84692         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84693         for autoconf-2.49c.
84694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84695
84696 2001-01-16  Jim Meyering  <meyering@lucent.com>
84697
84698         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84699         From Bruno Haible.
84700
84701 2001-01-14  Jim Meyering  <meyering@lucent.com>
84702
84703         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84704         foo and bar.  Create conftestdir/ in the script, not in the C code.
84705         Remove directories in the script, not in the C code.
84706         Remove conftestdir{,2} before trying to create the directory.
84707         Make the entire configure script fail if the mkdir fails.
84708
84709 2001-01-14  Jim Meyering  <meyering@lucent.com>
84710
84711         * lib/rename.c: New file.  From Volker Borchert.
84712         Include stdlib.h, string.h or strings.h, and xalloc.h.
84713         Use strip_trailing_slashes rather than open-coding it.
84714
84715 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84716
84717         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84718
84719 2001-01-03  Jim Meyering  <meyering@lucent.com>
84720
84721         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84722         of local `inptr' to avoid warning with some system declarations of
84723         iconv.
84724
84725 2001-01-02  Volker Borchert  <bt@teknon.de>
84726
84727         * m4/rename.m4: New file.
84728         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84729
84730 2001-01-01  Jim Meyering  <meyering@lucent.com>
84731
84732         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84733         even on systems with utmpx.h.  It's necessary for the declaration of
84734         utmp's ut_user member.  Reported by Andreas Jaeger.
84735
84736         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84737         available. They are required for the declarations of getgrgid and
84738         getpwuid resp.
84739         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84740         Reported by Andreas Jaeger.
84741
84742 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84743
84744         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84745         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84746         so `make install' also works in VPATH builds.
84747
84748 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84749
84750         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84751         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84752         can be used in subdirectories.
84753
84754 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84755
84756         * lib/modechange.c: Do not assume that mode_t uses the
84757         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84758         the other-execute bit of FOO even if S_IXOTH != 1.
84759
84760         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84761         WOTH, XOTH, ALLM): New macros.
84762         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84763          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84764         Use them.
84765         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84766         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84767         (mode_compile):
84768         No need to use uintmax_t; unsigned long is long enough.
84769         Don't bother to get suffix since we don't use it.
84770
84771 2000-12-26  Jim Meyering  <meyering@lucent.com>
84772
84773         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84774         better with autoheader.
84775
84776 2000-12-24  Jim Meyering  <meyering@lucent.com>
84777
84778         * lib/hash.c (is_prime): Return explicit boolean values.
84779         (hash_get_first): Return NULL to appease Irix5.6's 89.
84780         Reported by Nelson Beebe.
84781
84782 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84783
84784         * lib/localcharset.c (locale_charset): Add support for Win32.
84785
84786 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84787
84788         * lib/physmem.h, lib/physmem.c: New files.
84789
84790         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84791         (noinst_HEADERS): Add physmem.h.
84792
84793         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84794         't' for compatibility with Solaris 8 sort.
84795
84796 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84797
84798         * lib/config.charset: Add support for BeOS.
84799
84800 2000-12-17  Jim Meyering  <meyering@lucent.com>
84801
84802         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84803         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84804
84805 2000-12-16  Jim Meyering  <meyering@lucent.com>
84806
84807         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84808         N and M) would have treated it like `chown N:N FILE'.
84809
84810         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84811
84812 2000-12-16  Jim Meyering  <meyering@lucent.com>
84813
84814         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84815         SHELLS_FILE to a file name that's useful on djgpp systems.
84816         Include stdlib.h.
84817         (ADDITIONAL_DEFAULT_SHELLS): Define.
84818         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84819         Based mostly on a patch from Prashant TR.
84820
84821 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84822
84823         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84824         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84825         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84826
84827 2000-12-08  Andreas Schwab  <schwab@suse.de>
84828
84829         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84830         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84831
84832 2000-12-07  Jim Meyering  <meyering@lucent.com>
84833
84834         * lib/stripslash.c (ISSLASH): Define.
84835         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84836         `/'.
84837         From Prashant TR.
84838
84839         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84840         (dir_name_r): Declare this function as static.
84841         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84842         manifest itself on a name containing a mix of slashes and
84843         backslashes.
84844         Make this function work with names starting with a DOS-style
84845         drive letter and colon prefix.
84846         (dir_name): Append `.' if necessary.
84847         Based mostly on patches from Prashant TR and Eli Zaretskii.
84848
84849         * lib/dirname.h (dir_name_r): Remove prototype.
84850
84851 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84852
84853         * m4/off_t-format.m4: Remove this file.
84854         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84855
84856 2000-12-06  Jim Meyering  <meyering@lucent.com>
84857
84858         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84859         replacement strtoull, we may well need the replacement strtoul, too.
84860         Check for declarations of strtoul and strtoull.
84861         Check for strtol.  Mainly as a cue to cause automake to include
84862         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84863         Check for limits.h -- strtol.c needs it.
84864
84865 2000-12-05  Jim Meyering  <meyering@lucent.com>
84866
84867         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84868
84869 2000-12-04  Jim Meyering  <meyering@lucent.com>
84870
84871         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84872         Also include memory.h, stdlib.h, unistd.h if appropriate.
84873         Reported by Andreas Jaeger (conflicting declaration of malloc).
84874
84875 2000-12-02  Jim Meyering  <meyering@lucent.com>
84876
84877         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84878         * m4/jm-macros.m4 (jm_MACROS): require it.
84879
84880 2000-12-02  Jim Meyering  <meyering@lucent.com>
84881
84882         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84883
84884 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84885
84886         * lib/memrchr.c: Include <config.h> before any system include file.
84887
84888 2000-11-30  Jim Meyering  <meyering@lucent.com>
84889
84890         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84891
84892 2000-11-30  Jim Meyering  <meyering@lucent.com>
84893
84894         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84895
84896 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84897
84898         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84899
84900 2000-11-26  Jim Meyering  <meyering@lucent.com>
84901
84902         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84903
84904 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84905
84906         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84907         size of (size_t) -1; it's not portable.
84908
84909 2000-11-17  Jim Meyering  <meyering@lucent.com>
84910
84911         * lib/strstr.c: Update from GNU libc.
84912
84913 2000-11-17  Akim Demaille  <akim@epita.fr>
84914
84915         * lib/obstack.h: Formatting changes.
84916         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84917         prevent type checking.
84918         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84919         cast the value to (void *): assigning a `foo *' to a `void *'
84920         variable is valid.
84921         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84922
84923 2000-11-16  Jim Meyering  <meyering@lucent.com>
84924
84925         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84926
84927 2000-11-11  Jim Meyering  <meyering@lucent.com>
84928
84929         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84930
84931 2000-11-10  Jim Meyering  <meyering@lucent.com>
84932
84933         * lib/obstack.h: Update from GNU libc.
84934         * lib/obstack.c: Likewise.
84935
84936 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84937
84938         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84939
84940 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84941
84942         * lib/getusershell.c (setusershell): Use rewind rather than
84943         fseek/fseeko, to avoid configuration hassles with fseeko.
84944         Don't bother opening SHELLS_FILE if shellstream is NULL;
84945         it's not necessary.
84946
84947 2000-11-05  Jim Meyering  <meyering@lucent.com>
84948
84949         * lib/makepath.h (make_dir): Declare.
84950         * lib/makepath.c (make_dir): Remove `static' attribute.
84951         Tweak a comment.
84952
84953 2000-11-04  Jim Meyering  <meyering@lucent.com>
84954
84955         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84956
84957 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84958
84959         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84960         last one in a bucket, advance to the next bucket.
84961
84962 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84963
84964         * lib/fnmatch.c: Do not comment out all the code if we are using
84965         the GNU C library, because in some cases we are replacing buggy
84966         code in the GNU C library itself.
84967
84968 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84969
84970         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84971         (regex_compile): Catch bogus \(\1\).
84972
84973 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84974
84975         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84976         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84977         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84978
84979 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84980
84981         * lib/error.h, getline.h, modechange.h:
84982         Remove "2000" from Copyright line, as the file hasn't been
84983         changed this year other than in the copyright notice.
84984
84985         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84986         was changed this year.
84987
84988 2000-10-29  Jim Meyering  <meyering@lucent.com>
84989
84990         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84991         renaming.
84992         * m4/ls-mntd-fs.m4: Likewise
84993
84994 2000-10-29  Jim Meyering  <meyering@lucent.com>
84995
84996         * lib/xstat.in: Fix grammar in comment.
84997
84998 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84999
85000         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85001         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85002         doesn't define __restrict_arr.
85003
85004 2000-10-28  Jim Meyering  <meyering@lucent.com>
85005
85006         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85007         (jm_PREREQ_MEMCHR): New function.
85008
85009 2000-10-28  Jim Meyering  <meyering@lucent.com>
85010
85011         * lib/memchr.c: Update from libc.
85012         Adjust for portability:
85013         [HAVE_STDLIB_H]: Include stdlib.h.
85014         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85015         Undef __memchr, too.
85016         [!weak_alias]: Define __memchr to memchr.
85017
85018         * lib/regex.c: Update from libc.
85019         * lib/regex.h: Likewise.
85020         * lib/getopt1.c: Likewise.
85021         * lib/memcmp.c: Likewise.
85022
85023         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85024         Avoid using fseek, when possible -- it's broken by design.
85025         Patch by Ulrich Drepper.
85026
85027 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85028
85029         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85030         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85031         Giving in to popular pressure to shut up the compiler with casts.
85032
85033 2000-10-26  Jim Meyering  <meyering@lucent.com>
85034
85035         * lib/strftime.c: Update from libc.
85036
85037 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85038
85039         * regex.c: More `unsigned char' -> `re_char' changes.
85040         Also change several `int' into `re_wchar_t'.
85041         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85042         (PUSH_FAILURE_POINTER): Don't cast any more.
85043         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85044         We want GCC to complain, since this piece of code makes
85045         re_match non-reentrant, which *should* be fixed.
85046         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85047         (EXTEND_BUFFER): Use RETALLOC.
85048         (SET_LIST_BIT): Don't cast.
85049         (re_wchar_t): New type.
85050         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85051         that those two functions will always properly return.
85052         (IMMEDIATE_QUIT_CHECK): Cast to void.
85053         (analyse_first): Use recursion rather than an explicit stack.
85054         (re_compile_fastmap): Can't fail anymore.
85055         (re_search_2): Don't check re_compile_fastmap for failure.
85056         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85057         Now also sets the new value (passed in a new argument).
85058         (re_match_2_internal): Use it.
85059         Also, use a new var `reg' of type size_t when looping through regs
85060         rather than reuse the inappropriate `mcnt'.
85061
85062 2000-10-25  Jim Meyering  <meyering@lucent.com>
85063
85064         * lib/obstack.c: Update from libc.
85065
85066 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85067
85068         * regex.c (regex_compile): Change the way of handling a range from
85069         a char less than 256 to a char not less than 256.
85070
85071 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85072
85073         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85074         NT-Emacs only.
85075         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85076         so that re_search functions only quit when callers expect them to.
85077
85078 2000-10-23  Jim Meyering  <meyering@lucent.com>
85079
85080         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85081         wrong.  That set_locale call must not have any side effects.
85082         From Paul Eggert.
85083
85084 2000-10-22  Jim Meyering  <meyering@lucent.com>
85085
85086         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85087         [CYCLIC]: Remove now-unused definition.
85088
85089         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85090         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85091         Suggestion from Ulrich Drepper.
85092
85093 2000-10-21  Jim Meyering  <meyering@lucent.com>
85094
85095         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85096         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85097         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85098
85099 2000-10-21  Jim Meyering  <meyering@lucent.com>
85100
85101         * lib/dirname.c (memrchr): Declare if necessary.
85102         (dir_name): Remove the restriction that there be no
85103         trailing slashes.  Now, this code skips past them, effectively
85104         ignoring them.
85105         [TEST_DIRNAME] (main): New unit tests.
85106
85107         * lib/memrchr.c: New file from GNU libc.
85108         Undef __memrchr, too.
85109         [!weak_alias]: Define __memrchr to memrchr.
85110         Guard weak_alias use with `#ifdef weak_alias'.
85111
85112 2000-10-21  Jim Meyering  <meyering@lucent.com>
85113
85114         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85115         (dir_name): Use dir_name_r.
85116         * lib/dirname.h (dir_name_r): Declare it.
85117
85118 2000-10-17  Jim Meyering  <meyering@lucent.com>
85119
85120         * lib/quote.h (PARAMS): Define and use.
85121         Reported by Akim Demaille.
85122
85123         * lib/getopt.c: Update from libc.
85124
85125 2000-10-16  Jim Meyering  <meyering@lucent.com>
85126
85127         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85128         setlocale.
85129         From Jan Fedak.
85130
85131 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85132
85133         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85134
85135 2000-09-25  Jim Meyering  <meyering@lucent.com>
85136
85137         * lib/md5.h (rol): Define (from GnuPG).
85138
85139         * lib/sha.c: Give credit (GnuPG) where due.
85140         (M): Use rol rather than open-coding it.
85141         Add a FIXME comment.
85142
85143 2000-09-21  Jim Meyering  <meyering@lucent.com>
85144
85145         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85146         Reported by Michael Stone.
85147
85148 2000-09-20  Jim Meyering  <meyering@lucent.com>
85149
85150         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85151         (noinst_HEADERS): Add sha.h.
85152         Based on code from Scott G. Miller and from GnuPG.
85153
85154 2000-09-18  Jim Meyering  <meyering@lucent.com>
85155
85156         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85157         LIBS. Otherwise, everyone ends up linking with -lelf for some
85158         configurations.
85159         Reported by Mike Stone.
85160
85161 2000-09-15  Jim Meyering  <meyering@lucent.com>
85162
85163         * lib/regex.c: Update from libc.
85164
85165 2000-09-10  Jim Meyering  <meyering@lucent.com>
85166
85167         * lib/getopt.c (_getopt_internal): Update from glibc.
85168
85169 2000-09-09  Jim Meyering  <meyering@lucent.com>
85170
85171         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85172         think it should be used as a general replacement for isascii.
85173         * lib/fnmatch.c: Likewise.
85174         * lib/mbswidth.c: Likewise
85175         * lib/regex.c: Likewise.
85176
85177         Don't use atoi.
85178         * lib/userspec.c: Include sys/param.h and limits.h.
85179         Include xstrtol.h.
85180         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85181         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85182         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85183         UID, GID.  Check range.
85184
85185 2000-09-06  Jim Meyering  <meyering@lucent.com>
85186
85187         * lib/getopt.c (_getopt_internal): Update from glibc.
85188
85189 2000-08-30  Jim Meyering  <meyering@lucent.com>
85190
85191         * lib/strftime.c: Merge in changes from GNU libc.
85192
85193 2000-08-26  Jim Meyering  <meyering@lucent.com>
85194
85195         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85196         * m4/fpending.m4: New file.
85197
85198 2000-08-26  Jim Meyering  <meyering@lucent.com>
85199
85200         * lib/closeout.c: Include "__fpending.h".
85201         (close_stdout_status): Return right away if there's nothing to flush.
85202
85203         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85204         * lib/__fpending.c: New file.
85205         * lib/__fpending.h: New file.
85206
85207 2000-08-20  Jim Meyering  <meyering@lucent.com>
85208
85209         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85210         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85211         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85212
85213 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85214
85215         Improve fileutils installation on systems where running
85216         programs (like install) can't be unlinked.
85217         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85218         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85219
85220 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85221
85222         Standardize on "memory exhausted" instead of "Memory exhausted"
85223         or "virtual memory exhausted".
85224         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85225         "virtual memory exhausted".
85226         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85227         our own message.
85228         * lib/userspec.c (parse_user_spec): Likewise.
85229         * lib/bumpalloc.h: comment fix
85230         * lib/same.c, userspec.c: Include xalloc.h.
85231
85232         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85233         not char *const and pointing to a constant array.
85234         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85235         (xrealloc): Comment fix.
85236
85237         * lib/userspec.c (parse_user_spec):
85238         Don't translate a message until just before returning,
85239         to avoid unnecessary translation.
85240
85241 2000-08-07  Jim Meyering  <meyering@lucent.com>
85242
85243         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85244         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85245         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85246         getgroups.c, gethostname.c, getopt.h, group-member.c,
85247         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85248         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85249         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85250         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85251         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85252         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85253         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85254         yesno.c: Back out Copyright date changes for each file with no change
85255         this year.  This eases coordination with other programs using the same
85256         source code modules.  From Paul Eggert.
85257
85258 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85259
85260         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85261         not char, for compatibility with glibc 2.1.3 strftime.c.
85262
85263 2000-08-03  Greg McGary  <greg@mcgary.org>
85264
85265         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85266         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85267         (EXTEND_BUFFER): Use them.
85268
85269 2000-08-01  Jim Meyering  <meyering@lucent.com>
85270
85271         * lib/dirname.c (ISSLASH): Define.
85272         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85273         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85274         both `\' and `/' may be use as path separators.
85275         Based on a patch from Prashant TR.
85276
85277 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85278
85279         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85280         slot vector a constant, since it might get modified.
85281
85282 2000-07-31  Jim Meyering  <meyering@lucent.com>
85283
85284         * lib/xmalloc.c: Use `virtual memory exhausted', not
85285         `Memory exhausted'.
85286         * lib/obstack.c (print_and_abort): Likewise.
85287
85288 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85289
85290         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85291         buffer, so that the caller can always quote one small
85292         component of a "memory exhausted" message in slot 0.
85293         From a suggestion by Jim Meyering.
85294
85295 2000-07-30  Jim Meyering  <meyering@lucent.com>
85296
85297         * lib/makepath.c (make_path): Quote the other instance, too.
85298
85299         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85300         (STATIC_BUF_SIZE): Define.
85301         (quotearg_n_options): Use only statically allocated storage when
85302         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85303         than STATIC_BUF_SIZE.
85304
85305 2000-07-29  Jim Meyering  <meyering@lucent.com>
85306
85307         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85308         * lib/dirname.c (dir_name): Likewise.
85309
85310         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85311         `/'.
85312
85313         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85314         (dir_name): Assert that there are no trailing slashes.
85315
85316 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85317
85318         * lib/mbswidth.h (mbswidth): Add a flags argument.
85319         (mbswidth): New declaration.
85320         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85321         * lib/mbswidth.c (mbswidth): Add a flags argument.
85322         (mbsnwidth): New function.
85323
85324 2000-07-24  Jim Meyering  <meyering@lucent.com>
85325
85326         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85327
85328 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85329
85330         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85331
85332 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85333
85334         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85335         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85336         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85337         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85338         invoke multibyte primitives.
85339
85340 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85341
85342         * lib/quotearg.c:
85343         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85344         so that mbstate_t is always defined.
85345
85346         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85347         be 1 in at least one GCC installation, and this configuration
85348         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85349         performance on hosts that have mbrtowc but have only unibyte
85350         locales, but I assume these hosts are rare.
85351
85352 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85353
85354         * lib/mbswidth.c (_XOPEN_SOURCE):
85355         Don't define; this causes problems on Solaris 7.
85356         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85357
85358 2000-07-23  Jim Meyering  <meyering@lucent.com>
85359
85360         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85361         too: getgrgid, getpwuid, getuid.
85362
85363 2000-07-23  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/basename.c (base_name): Add an assertion.
85366
85367 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85368
85369         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85370         shadow its mbsinit function.
85371
85372 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85373
85374         * lib/mbswidth.h: New file.
85375         * lib/mbswidth.c: New file.
85376         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85377         (noinst_HEADERS): Add mbswidth.h.
85378
85379 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85380
85381         * lib/config.charset: Add support for FreeBSD. Improve support for
85382         HP-UX and IRIX 6.
85383
85384 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85385
85386         * m4/mbswidth.m4: New file.
85387         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85388
85389 2000-07-15  Jim Meyering  <meyering@lucent.com>
85390
85391         * lib/makepath.c: Include quote.h.
85392         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85393         corresponding argument in a `quote (...)' call.
85394         Give better diagnostics.
85395
85396         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85397         (noinst_HEADERS): Add quote.h.
85398
85399         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85400         from tar's src/misc.c.
85401         * lib/quote.h: New file.  Prototypes for same.
85402
85403 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85404
85405         From a suggestion by Bruno Haible.
85406         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85407         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85408         to decide whether to define the BeOS workaround macro;
85409         this adjusts to the change to AC_MBSTATE_T.
85410
85411 2000-07-14  Jim Meyering  <meyering@lucent.com>
85412
85413         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85414         jm_AC_TYPE_UINTMAX_T.
85415
85416 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85417
85418         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85419
85420         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85421         quotearg_buffer_restyled): Add support for
85422         clocale_quoting_style.  Undo previous change to
85423         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85424         and "{RIGHT QUOTATION MARK}" msgids.
85425
85426 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85427
85428         From a suggestion by Bruno Haible.
85429         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85430         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85431         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85432         and mbstate_t, to a single-part test that simply defines mbstate_t.
85433         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85434         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85435
85436 2000-07-10  Jim Meyering  <meyering@lucent.com>
85437
85438         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85439
85440         * m4/gnu-source.m4: Output to confdefs.h directly.
85441         Suggestion from Akim Demaille.
85442
85443 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85444
85445         The old behavior of quoting `like this' doesn't look good with
85446         newer, ISO-style fonts.  See:
85447         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85448
85449         Instead, quote "like this" by default.  Let the translator
85450         tailor the locale-specific quoting behavior by providing
85451         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85452
85453         * lib/quotearg.c (N_): New macro.
85454         (gettext_default): New function.
85455         (quotearg_buffer_restyled): Use
85456         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85457         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85458
85459 2000-07-09  Jim Meyering  <meyering@lucent.com>
85460
85461         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85462         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85463
85464         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85466
85467 2000-07-09  Jim Meyering  <meyering@lucent.com>
85468
85469         * lib/Most files: Update copyright dates to include 2000.
85470
85471 2000-07-08  Jim Meyering  <meyering@lucent.com>
85472
85473         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85474         if not defined.
85475         (xgethostname): Remove now-unnecessary #ifdef.
85476         Move declaration of `err' into loop where it's used.
85477
85478 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85479         and Bruno Haible  <haible@clisp.cons.org>
85480
85481         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85482         only if the test for an object-type mbstate_t fails.  This
85483         prevents us from mistakenly reporting that mbstate_t is a
85484         system object type after we "#define mbstate_t int" to work
85485         around its lack.
85486
85487 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85488         and Bruno Haible  <haible@clisp.cons.org>
85489
85490         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85491
85492 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85493
85494         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85495         to strerror_r.
85496         Include <ctype.h> for use of isalpha.
85497
85498 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85499
85500         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85501         by allocating a larger buffer. Test the gethostname return value for
85502         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85503         returns an error and ENAMETOOLONG isn't defined.
85504
85505 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85506
85507         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85508         dimension.
85509
85510 2000-07-04  Jim Meyering  <meyering@lucent.com>
85511
85512         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85513         of the deprecated AC_CHECKING.
85514
85515 2000-07-04  Jim Meyering  <meyering@lucent.com>
85516
85517         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85518         Reported by Bruno Haible.
85519
85520 2000-07-04  Jim Meyering  <meyering@lucent.com>
85521
85522         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85523         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85524         lacks mbrtowc.
85525
85526 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85527
85528         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85529         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85530
85531 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85532         and Bruno Haible  <haible@clisp.cons.org>
85533
85534         * lib/quotearg.c (mbrtowc):
85535         Assign to *pwc, and return 1 only if result is nonzero.
85536         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85537
85538 2000-07-03  Jim Meyering  <meyering@lucent.com>
85539
85540         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85541
85542 2000-07-03  Jim Meyering  <meyering@lucent.com>
85543
85544         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85545         This is necessary to get a definition of e.g., UTMP_FILE on
85546         HP-UX 10.20.
85547         From Bob Proulx.
85548
85549 2000-07-02  Jim Meyering  <meyering@lucent.com>
85550
85551         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85552
85553         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85554         AC_LIBOBJ(function_name).
85555         * m4/chown.m4: Likewise.
85556         * m4/fnmatch.m4: Likewise.
85557         * m4/ftruncate.m4: Likewise.
85558         * m4/getgroups.m4: Likewise.
85559         * m4/getline.m4: Likewise.
85560         * m4/group-member.m4: Likewise.
85561         * m4/jm-macros.m4: Likewise.
85562         * m4/lstat.m4: Likewise.
85563         * m4/malloc.m4: Likewise.
85564         * m4/memcmp.m4: Likewise.
85565         * m4/nanosleep.m4: Likewise.
85566         * m4/putenv.m4: Likewise.
85567         * m4/realloc.m4: Likewise.
85568         * m4/regex.m4: Likewise.
85569         * m4/stat.m4: Likewise.
85570         * m4/strftime.m4: Likewise.
85571
85572 2000-07-02  Jim Meyering  <meyering@lucent.com>
85573
85574         * lib/quotearg.c (mbstate_t): Don't define here.
85575
85576 2000-07-02  Jim Meyering  <meyering@lucent.com>
85577
85578         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85579
85580 2000-07-01  Jim Meyering  <meyering@lucent.com>
85581
85582         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85583
85584 2000-07-01  Jim Meyering  <meyering@lucent.com>
85585
85586         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85587         problem.
85588
85589 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85590
85591         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85592         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85593
85594 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85595
85596         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85597         per change in ../m4/ls-mntd-fs.m4.
85598         (read_filesystem_list): Ignore symbolic links.
85599
85600 2000-06-29  Jim Meyering  <meyering@lucent.com>
85601
85602         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85603         for declaration of strcmp.
85604
85605         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85606
85607         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85608         Avoid warning by casting result to `char *' to remove `const'.
85609
85610 2000-06-28  Jim Meyering  <meyering@lucent.com>
85611
85612         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85613         included by quotearg.c, for which we perform this test.  From
85614         Bruno Haible.
85615
85616 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85617
85618         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85619         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85620         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85621
85622 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85623
85624         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85625
85626 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85627
85628         savedir now sets errno on failure and invokes xmalloc to get memory.
85629         Fix a couple of other minor bugs while we're at it.
85630
85631         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85632         (NAMLEN): Remove macro.
85633         (malloc, realloc): Remove decls.
85634         (stpcpy): Likewise.
85635         ("xalloc.h"): Include.
85636         (NAME_SIZE_DEFAULT): New macro.
85637         (savedir): Use xmalloc / xrealloc to allocate memory.
85638         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85639         Skip "" directory entries.
85640         Use strlen to calculate directory entry length, since the old method
85641         is rarely used these days and isn't worth supporting.
85642         Don't use a pointer after freeing it.
85643         Check for integer overflow when calculating allocation size.
85644         Use memcpy to copy entries, instead of stpcpy.
85645         Set errno properly when returning NULL.
85646         Check for readdir error.
85647
85648 2000-06-26  Jim Meyering  <meyering@lucent.com>
85649
85650         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85651
85652 2000-06-25  Jim Meyering  <meyering@lucent.com>
85653
85654         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85655         Linux header bug when _XOPEN_SOURCE is defined to 500.
85656
85657 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85658
85659         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85660         deficiency.
85661
85662 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85663
85664         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85665         Include xalloc.h.
85666         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85667
85668 2000-06-24  Jim Meyering  <meyering@lucent.com>
85669
85670         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85671         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85672         for which strerror does return char*, but which lacks a conveniently
85673         accessible declaration of the function.  If the compile-test says
85674         strerror_r doesn't work, then resort to a `run'-test that works on
85675         BeOS and segfaults on DEC Unix.
85676
85677 2000-06-24  Jim Meyering  <meyering@lucent.com>
85678
85679         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85680
85681 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85682
85683         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85684         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85685
85686 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85687
85688         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85689         (mbrtowc, mbstate_t): Define substitutes if
85690         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85691         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85692         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85693
85694 2000-06-23  Jim Meyering  <meyering@lucent.com>
85695
85696         * m4/afs.m4: Add missing AC_MSG_RESULT.
85697         Reported by Bruno Haible.
85698
85699         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85700         Suggestion from Bruno Haible.
85701
85702 2000-06-23  Jim Meyering  <meyering@lucent.com>
85703
85704         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85705
85706 2000-06-21  Jim Meyering  <meyering@lucent.com>
85707
85708         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85709
85710 2000-06-21  Jim Meyering  <meyering@lucent.com>
85711
85712         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85713         (noinst_HEADERS): Add getstr.h.
85714
85715         * lib/getline.c (getstr): Move into a separate file.
85716         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85717         the following changes: new parameter, delim2; both delim[12]
85718         parameters have type `int', not `char'.  The latter would lose
85719         with 8-bit delimiters.
85720         * lib/getstr.h: New file.
85721
85722 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85723
85724         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85725         than 1024, return a memory chunk of least possible size, instead
85726         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85727         Use free/xmalloc instead of xrealloc to avoid copying for very long
85728         paths.
85729
85730 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85731
85732         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85733         the empty string.
85734
85735 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85736
85737         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85738         address, not strdup.  Include <stdlib.h> and don't declare free().
85739
85740 2000-06-19  Jim Meyering  <meyering@lucent.com>
85741
85742         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85743
85744 2000-06-18  Jim Meyering  <meyering@lucent.com>
85745
85746         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85747
85748         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85749         `checking whether...' message to be consistent with that of the
85750         lstat test.
85751
85752 2000-06-18  Jim Meyering  <meyering@lucent.com>
85753
85754         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85755         Besides, these days every porting target provides a mkdir function.
85756
85757         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85758         needed. (this snippet comes from src/system.h).
85759
85760 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85761
85762         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85763
85764 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85765
85766         * lib/human.c (adjust_value): New function.
85767         (human_readable_inexact): Apply rounding style even when
85768         printing approximate values.
85769
85770 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85771
85772         * lib/human.c (human_readable_inexact): Allow an input block
85773         size that is not a multiple of the output block size, and vice versa.
85774         Reported by Piergiorgio Sartor.
85775
85776 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85777
85778         * lib/getdate.y (get_date): Apply relative times after time
85779         zone indicator, not before.  Reported by Todd A. Jacobs.
85780
85781 2000-06-13  Jim Meyering  <meyering@lucent.com>
85782
85783         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85784
85785         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85786
85787 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85788
85789         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85790
85791 2000-06-12  Jim Meyering  <meyering@lucent.com>
85792
85793         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85794         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85795         optional argument.
85796         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85797         the optional argument, `lib'.
85798
85799 2000-06-08  Jim Meyering  <meyering@lucent.com>
85800
85801         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85802
85803 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85804
85805         Rewrite largefile configuration so that we don't need to run
85806         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85807         AC_CANONICAL_HOST in configure.in -- jmm]
85808
85809         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85810         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85811         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85812         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85813         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85814         All uses changed.
85815         Instead of inspecting the output of getconf, try to compile the
85816         test program without and with the macro definition.
85817         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85818         for getconf.  Instead, check for the needed flags by compiling
85819         test programs.
85820
85821 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85822
85823         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85824
85825 2000-06-04  Jim Meyering  <meyering@lucent.com>
85826
85827         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85828         SunOS 4.1.4 for which gid_t is an unsigned type.
85829
85830 2000-06-03  Jim Meyering  <meyering@lucent.com>
85831
85832         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85833         now that autoconf requires that.
85834
85835         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85836         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85837         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85838
85839 2000-06-03  Jim Meyering  <meyering@lucent.com>
85840
85841         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85842
85843 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85844
85845         * m4/glibc21.m4: New file.
85846         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85847
85848 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85849
85850         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85851         newer, don't install charset.alias.
85852         * lib/config.charset: Change the Linux/glibc rules so they become empty
85853         on glibc-2.1 or newer.
85854
85855 2000-06-02  Jim Meyering  <meyering@lucent.com>
85856
85857         * lib/mountlist.c: Back out last change.  Instead, do this...
85858         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85859         me_dummy member using the same `ignore'-testing code.
85860         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85861         fs_type strings.
85862         From Mark D. Roth.
85863
85864 2000-05-29  Jim Meyering  <meyering@lucent.com>
85865
85866         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85867         mounts with the `ignore' attribute.  Based on a patch from
85868         Mark D. Roth.
85869
85870 2000-05-28  Jim Meyering  <meyering@lucent.com>
85871
85872         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85873         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85874         * m4/stat.m4: Likewise.
85875         * m4/lstat.m4: Likewise.
85876         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85877
85878         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85879         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85880
85881 2000-05-26  Jim Meyering  <meyering@lucent.com>
85882
85883         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85884
85885 2000-05-24  Jim Meyering  <meyering@lucent.com>
85886
85887         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85888         autoconf requires that.
85889         * m4/lib-check.m4: Likewise.
85890         * m4/jm-macros.m4: Likewise.
85891         * m4/strftime.m4: Likewise.
85892
85893         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85894         AC_CHECK_DECLS, now that autoconf requires that.
85895
85896 2000-05-22  Jim Meyering  <meyering@lucent.com>
85897
85898         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85899         * m4/lstat.m4: Likewise.
85900
85901 2000-05-22  Jim Meyering  <meyering@lucent.com>
85902
85903         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85904
85905 2000-05-20  Jim Meyering  <meyering@lucent.com>
85906
85907         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85908         (jm_PREREQ): Use it.
85909
85910 2000-05-18  Jim Meyering  <meyering@lucent.com>
85911
85912         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85913         back, too, since it may have been modified by allocate_entry.
85914         (hash_delete): Rewrite to use neither the assignment operator
85915         nor the comma operator in an if-expression.
85916
85917 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85918
85919         * lib/closeout.c:
85920         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85921         Remove; no longer needed.
85922         "quotearg.h": Add include.
85923         (file_name): Do not bother to explicitly initialize to NULL; it's less
85924         efficient on some hosts.
85925         (close_stdout_status): Remove test as to whether stdout was already
85926         closed; it breaks for the case "echo x | sort >&-".
85927         Quote file name colons.
85928         Do not assume that _("write error") lacks format strings.
85929
85930 2000-05-15  Jim Meyering  <meyering@lucent.com>
85931
85932         * lib/version-etc.c (version_etc_copyright): Update the copyright
85933         string used in all --version output.
85934
85935 2000-05-14  Jim Meyering  <meyering@lucent.com>
85936
85937         * lib/closeout.c (close_stdout_set_file_name): New function.
85938         (close_stdout_status): Use new file-scoped global.
85939         Return right away if fstat says the stdout file descriptor is invalid.
85940         * lib/closeout.h (close_stdout_set_file_name): Declare.
85941
85942 2000-05-10  Jim Meyering  <meyering@lucent.com>
85943
85944         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85945         (close_stdout_set_status): New function.
85946         * lib/closeout.h (close_stdout_set_status): Declare.
85947
85948 2000-05-09  Jim Meyering  <meyering@lucent.com>
85949
85950         * m4/gettext.m4: Rename this...
85951         * m4/libintl.m4: ...to this.
85952
85953 2000-05-08  Jim Meyering  <meyering@lucent.com>
85954
85955         * lib/long-options.c: Don't include closeout.h.
85956         (parse_long_options): Don't call close_stdout for --version.
85957
85958 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85959
85960         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85961         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85962         2.1.3 bug.  This avoids a clash when files like regex.c define
85963         _GNU_SOURCE.
85964
85965 2000-05-06  Jim Meyering  <meyering@lucent.com>
85966
85967         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85968         (AC_REPLACE_FUNCS): Add strnlen.
85969
85970         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85971         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85972
85973         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85974         AC_SEARCH_LIBS call for nanosleep.
85975         (LIB_NANOSLEEP): Set and AC_SUBST.
85976
85977 2000-05-06  Jim Meyering  <meyering@lucent.com>
85978
85979         * lib/strnlen.c: Undefine __strnlen and strnlen.
85980         [!weak_alias]: Define __strnlen to strnlen.
85981
85982         * lib/atexit.c: New file, from libiberty.
85983
85984 2000-05-06  Jim Meyering  <meyering@lucent.com>
85985
85986         * lib/closeout.c (close_stdout_status): Also check for errors on the
85987         stderr stream.
85988
85989 2000-05-05  Jim Meyering  <meyering@lucent.com>
85990
85991         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85992         AC_SEARCH_LIBS call for clock_gettime.
85993         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85994
85995         * m4/search-libs.m4: Update from autoconf.
85996
85997         su doesn't work on Solaris 2.6.
85998         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85999         <shadow.h>.  Reported by Dragos Harabor.
86000
86001 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86002
86003         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86004         memcpy instead of xmalloc, xrealloc, path_concat.
86005         (locale_charset): Treat empty environment variables as absent.
86006         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86007
86008 2000-05-04  Jim Meyering  <meyering@lucent.com>
86009
86010         * lib/getopt.c: Update from glibc.
86011         * lib/obstack.c: Likewise.
86012         * lib/obstack.h: Likewise.
86013         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86014         file
86015
86016         * lib/regex.h: Likewise.
86017         * lib/strndup.c: Likewise.
86018         * lib/strnlen.c: New file, from glibc.
86019
86020 2000-05-03  Jim Meyering  <meyering@lucent.com>
86021
86022         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86023
86024 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86025
86026         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86027         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86028         compile-time test, rather than inspecting host and OS, to
86029         decide whether to define _LARGEFILE_SOURCE.
86030
86031 2000-05-01  Jim Meyering  <meyering@lucent.com>
86032
86033         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86034
86035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86036         Based on a patch from Bruno Haible.
86037
86038 2000-05-01  Jim Meyering  <meyering@lucent.com>
86039
86040         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86041
86042 2000-04-29  Jim Meyering  <meyering@lucent.com>
86043
86044         * lib/path-concat.c: Declare strdup only if it's not defined.
86045         * lib/canon-host.c: Likewise.
86046
86047 2000-04-28  Jim Meyering  <meyering@lucent.com>
86048
86049         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86050         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86051         is included first, then limits.h is included by locale.h by libintl.h.
86052         From John David Anglin.
86053
86054 2000-04-25  Jim Meyering  <meyering@lucent.com>
86055
86056         * lib/makepath.c (S_IRWXUGO): Define.
86057         (make_path): Always perform explicit chmod if MODE specifies any
86058         of the `special' permission bits.  Prompted by a bug report against
86059         install from Mate Wierdl and Joost van Baal.
86060
86061 2000-04-18  Jim Meyering  <meyering@lucent.com>
86062
86063         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86064         (jm_PREREQ): Use it.
86065
86066 2000-04-18  Jim Meyering  <meyering@lucent.com>
86067
86068         * lib/README: New file.
86069
86070         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86071         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86072
86073 2000-04-17  Jim Meyering  <meyering@lucent.com>
86074
86075         Get it right :-)
86076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86077         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86078         Suggestion from Akim Demaille.
86079
86080 2000-04-17  Jim Meyering  <meyering@lucent.com>
86081
86082         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86083         the definition of it to rpl_strftime also defined-away the system's
86084         declaration.
86085
86086 2000-04-15  Jim Meyering  <meyering@lucent.com>
86087
86088         Use `C' to denote so-called `contiguous' files, the same way
86089         that tar does.
86090         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86091         (ftypelet): Use S_ISCTG.
86092         From Michael Deutschmann.
86093
86094 2000-04-14  Jim Meyering  <meyering@lucent.com>
86095
86096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86097         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86098         clobbered.
86099
86100 2000-04-14  Jim Meyering  <meyering@lucent.com>
86101
86102         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86103
86104 2000-04-13  Jim Meyering  <meyering@lucent.com>
86105
86106         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86107         AH_VERBATIM to insert required #ifndef into config.h.in.
86108         Suggestion from Akim Demaille.
86109
86110 2000-04-12  Jim Meyering  <meyering@lucent.com>
86111
86112         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86113         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86114         Christian Krackowizer.
86115
86116         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86117         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86118         (AC_SYS_LARGEFILE): Require.
86119         (AM_C_PROTOTYPES): Require.
86120
86121 2000-04-08  Jim Meyering  <meyering@lucent.com>
86122
86123         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86124         names don't conflict.  Reported by Eli Zaretskii.
86125
86126 2000-04-07  Jim Meyering  <meyering@lucent.com>
86127
86128         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86129         sys/types.h, to work around system header problems on AIX 3.2.5.
86130         From Bruno Haible.
86131
86132 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86133
86134         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86135         bug.  Deal with the different error behavior of Irix iconv.
86136
86137 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86138
86139         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86140         IRIX if the installer said otherwise.
86141
86142 2000-04-05  Jim Meyering  <meyering@lucent.com>
86143
86144         Portability tweaks required for ultrix4.3.
86145         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86146         (jm_CHECK_DECLS): Add getutent to the list of functions.
86147         (_jm_DECL_HEADERS): Add utmpx.h.
86148         From John David Anglin.
86149
86150         * m4/strftime.m4: Back out the 2000-04-02 change.
86151         Instead of that change, simply undefine putenv in the test program.
86152
86153 2000-04-05  Jim Meyering  <meyering@lucent.com>
86154
86155         Portability tweaks required for ultrix4.3.
86156         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86157         getutent.
86158         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86159         * lib/canon-host.c: Declare strdup.
86160         * lib/path-concat.c: Likewise.
86161         From John David Anglin.
86162
86163 2000-04-04  Jim Meyering  <meyering@lucent.com>
86164
86165         Be more DOS 8.3-friendly.
86166         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86167         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86168         * lib/Makefile.am: Reflect renaming.
86169         Reported by Eli Zaretskii.
86170
86171         Use a temporary file name that won't clash with `charset.alias'
86172         in the DOS 8.3 name space.
86173         * lib/Makefile.am (charset_tmp): Define.
86174         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86175         (uninstall-local): Likewise.
86176         Reported by Eli Zaretskii.
86177
86178 2000-04-03  Jim Meyering  <meyering@lucent.com>
86179
86180         * m4/gettext.m4: Fix typo in comment.
86181
86182         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86183         textutils/configure.in).  Suggestion from Paul Eggert.
86184         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86185
86186 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86187
86188         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86189         variable in the shell rather than using putenv, which isn't
86190         portable.  This avoids the configure-time inter-test dependency
86191         on the potentially-renamed putenv function.
86192
86193 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86194
86195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86196         before checking struct stat.st_blksize, so that
86197         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86198
86199 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86200
86201         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86202         since strftime.c uses HAVE_STRFTIME to decide whether to use
86203         the underlying strftime.
86204
86205 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86206
86207         * lib/time/strftime.c (my_strftime): Make sure we call the system
86208         strftime, not ourselves, when invoking the underlying strftime.
86209
86210 2000-03-24  Jim Meyering  <meyering@lucent.com>
86211
86212         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86213         (charset_alias): Define.
86214         (install-exec-local): Factor out common code.
86215         (uninstall-local): Split lines longer than 80.
86216         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86217         (SUFFIXES): Define.
86218         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86219         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86220
86221 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86222
86223         * lib/config.charset: Output a line containing "Packages using this
86224         file".
86225         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86226         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86227         ref-del.sed): New rules.
86228
86229 2000-03-17  Jim Meyering  <meyering@lucent.com>
86230
86231         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86232         Otherwise, include <strings.h>
86233
86234 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86235
86236         * lib/unicodeio.c (utf8_wctomb): New function.
86237         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86238         format instead of in UCS-4 with platform dependent endianness.
86239
86240 2000-03-10  Jim Meyering  <meyering@lucent.com>
86241
86242         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86243         From Marco Franzen.
86244
86245 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86246
86247         * lib/savedir.c (savedir): Work even if directory size is
86248         negative; this can happen with some screwy NFS configurations.
86249
86250 2000-03-06  Jim Meyering  <meyering@lucent.com>
86251
86252         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86253         if it's NULL (because we ran out of memory).  From Bruno Haible.
86254
86255 2000-03-05  Jim Meyering  <meyering@lucent.com>
86256
86257         * lib/localcharset.c ("path-concat.h"): Include.
86258         (get_charset_aliases): Use path_concat instead of ANSI string
86259         concatenation.
86260
86261         * lib/unicodeio.h (PARAMS): Define.
86262         Use it to guard prototype.
86263
86264 2000-03-04  Jim Meyering  <meyering@lucent.com>
86265
86266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86267         for lib/localcharset.c.
86268
86269 2000-03-04  Jim Meyering  <meyering@lucent.com>
86270
86271         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86272         installing into it.
86273         (uninstall-local): Uncomment this rule so `make distcheck' works
86274         once again.
86275
86276         * lib/unicodeio.c (<errno.h>): Include it.
86277         (errno): Declare if not defined.
86278
86279         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86280
86281         * lib/config.charset: New version, incorporating remarks from a linux
86282         i18n mailing list.  From Bruno Haible.
86283
86284 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86285
86286         * m4/codeset.m4: New file.
86287         * m4/iconv.m4: New file.
86288         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86289
86290 2000-03-03  Jim Meyering  <meyering@lucent.com>
86291
86292         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86293
86294 2000-03-02  Jim Meyering  <meyering@lucent.com>
86295
86296         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86297         the messages come out on separate lines.
86298
86299         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86300         rather than jm_CHECK_DECLARATIONS.
86301         * m4/decl.m4: Remove now-unused file.
86302
86303         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86304         geteuid.
86305
86306 2000-03-02  Jim Meyering  <meyering@lucent.com>
86307
86308         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86309
86310 2000-03-01  Jim Meyering  <meyering@lucent.com>
86311
86312         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86313         * lib/unicodeio.c: Likewise.
86314
86315 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86316
86317         * lib/config.charset: New file.
86318         * lib/localcharset.c: New file.
86319         * lib/unicodeio.h, lib/unicodeio.c: New files.
86320         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86321         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86322         (noinst_HEADERS): Add unicodeio.h.
86323         (all-local, install-exec-local, charset.alias): New targets.
86324
86325 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86326
86327         * lib/quotearg.c (ALERT_CHAR): New macro.
86328         (quotearg_buffer_restyled): Use it.
86329
86330 2000-02-27  Jim Meyering  <meyering@lucent.com>
86331
86332         * m4/check-decl.m4: Add getenv to the list.
86333
86334 2000-02-27  Jim Meyering  <meyering@lucent.com>
86335
86336         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86337         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86338
86339         * lib/backupfile.c: Guard inclusion of stdlib.h with
86340         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86341         Declare malloc if needed.
86342
86343         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86344         `#ifndef HAVE_DECL..'
86345         now that autoconf always defines the HAVE_DECL_ symbols.
86346         * lib/human.c: Likewise.
86347         * lib/same.c: Likewise.
86348         * lib/strtoumax.c: Likewise.
86349
86350         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86351         declaration check was not run.
86352         * lib/hash.c: Likewise.
86353         * lib/human.c: Likewise.
86354         * lib/same.c: Likewise.
86355         * lib/strtoumax.c: Likewise.
86356
86357         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86358         `.', then first look up the entire `.'-containing string as a login
86359         name.
86360
86361 2000-02-23  Jim Meyering  <meyering@lucent.com>
86362
86363         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86364         in place of my hack.
86365
86366 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86367
86368         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86369         (textint): New typedef.
86370         (parser_control): Member year changed from int to textint.
86371         All uses changed.
86372         (YYSTYPE): Removed; replaced by %union with int and textint members.
86373         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86374         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86375         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86376         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86377         (date, number, to_year): Use width of number in digits, not its value,
86378         to determine whether it's a 2-digit year, or a 2-digit time.
86379         (yylex): Store number of digits of numeric tokens.
86380         Reported by John Kendall.
86381
86382         (parser_control): Changed from struct parser_control to typedef (for
86383         consistency).  All uses changed.
86384
86385         (tID): Removed; not used.
86386         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86387
86388 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86389
86390         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86391         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86392
86393 2000-02-12  Jim Meyering  <meyering@lucent.com>
86394
86395         * lib/userspec.c (ISDIGIT): Define it.
86396         (isdigit): Remove definition.
86397         (is_number): Use ISDIGIT, not isdigit.
86398         <libintl.h>: Include.
86399         (_ and N_): Define.
86400         (parse_user_spec): Mark translatable strings.
86401
86402 2000-02-10  Jim Meyering  <meyering@lucent.com>
86403
86404         With these changes, nanosleep.[ch] are finally enough like the other
86405         lib/* replacement files to compile on a few more losing systems.
86406
86407         * lib/nanosleep.h: Don't include config.h.
86408         Remove prototype from declaration of nanosleep.
86409         (PARAMS): Remove now-unneeded definition.
86410         * lib/nanosleep.c: #undef nanosleep.
86411         (rpl_nanosleep): Rename from nanosleep.
86412
86413 2000-02-10  Jim Meyering  <meyering@lucent.com>
86414
86415         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86416         gnu_nanosleep to rpl_nanosleep.
86417
86418 2000-02-09  Jim Meyering  <meyering@lucent.com>
86419
86420         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86421         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86422
86423 2000-02-08  Akim Demaille  <akim@epita.fr>
86424
86425         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86426         `[' and `]' and remove uses of `changequote'.
86427         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86428         (AC_SYS_LARGEFILE): Likewise.
86429         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86430         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86431         of changequote.
86432         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86433         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86434         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86435         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86436
86437 2000-02-05  Jim Meyering  <meyering@lucent.com>
86438
86439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86440         Remove explicit use of AC_HEADER_TIME.  It is required by
86441         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86442         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86443         in autoconf whereby the expansion of the latter ended up preceding
86444         the expansion of its prerequisite, AC_HEADER_TIME.
86445         Reported by Volker Borchert.
86446
86447 2000-02-03  Jim Meyering  <meyering@lucent.com>
86448
86449         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86450
86451 2000-02-03  Jim Meyering  <meyering@lucent.com>
86452
86453         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86454         rather than with `#if HAVE_UTMPNAME'.
86455
86456 2000-02-02  Jim Meyering  <meyering@lucent.com>
86457
86458         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86459         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86460         Reported by Eli Zaretskii.
86461
86462 2000-02-01  Jim Meyering  <meyering@lucent.com>
86463
86464         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86465
86466 2000-01-31  Jim Meyering  <meyering@lucent.com>
86467
86468         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86469         functions.  Add the time.h and sys/time.h headers along with the
86470         AC_REQUIRE'ment of AC_HEADER_TIME.
86471
86472 2000-01-31  Jim Meyering  <meyering@lucent.com>
86473
86474         * lib/nanosleep.h (nanosleep): Guard declaration with
86475         `#if ! HAVE_DECL_NANOSLEEP'.
86476         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86477         the declaration in that vendor's sys/timers.h.
86478         Reported by Christian Krackowizer.
86479
86480         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86481         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86482         (ISPRINT): Likewise.
86483         Reported by Tom Tromey.
86484
86485 2000-01-30  Jim Meyering  <meyering@lucent.com>
86486
86487         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86488
86489         * m4/prereq.m4 (utmp_includes): Define.
86490         Check for ut_user and ut_name members in both struct utmpx
86491         and struct utmp.
86492
86493 2000-01-30  Jim Meyering  <meyering@lucent.com>
86494
86495         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86496         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86497         header files where only utmpx.ut_user is declared.
86498
86499         * lib/readutmp.h (UT_USER): Define.
86500
86501 2000-01-29  Jim Meyering  <meyering@lucent.com>
86502
86503         * m4/lib-check.m4: New file containing library-related checks from
86504         fileutils and sh-utils (textutils had none).
86505
86506 2000-01-28  Jim Meyering  <meyering@lucent.com>
86507
86508         * m4/perl.m4: Change format of warning message to look more like that
86509         from the missing script.  Suggestion from François Pinard.
86510
86511 2000-01-25  Jim Meyering  <meyering@lucent.com>
86512
86513         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86514         well as time.h in the compile check.
86515         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86516         Fix typo in cross-compiling case: s/yes/no/.
86517
86518 2000-01-23  Jim Meyering  <meyering@lucent.com>
86519
86520         * m4/jm-macros.m4: Move df-related tests here from
86521         fileutils/configure.in
86522
86523         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86524         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86525
86526         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86527         s/space/ac_fsusage_space/.
86528         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86529
86530         * m4/ftruncate.m4: New file (derived from part of
86531         fileutils/configure.in).
86532         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86533         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86534
86535         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86536         AC_SUBST these here, rather than just in sh-util/configure.in, so
86537         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86538         all the same.
86539         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86540         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86541         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86542         (AC_SUBST(POW_LIBM)): Likewise.
86543         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86544
86545 2000-01-23  Jim Meyering  <meyering@lucent.com>
86546
86547         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86548         obstack.c.
86549
86550 2000-01-22  Jim Meyering  <meyering@lucent.com>
86551
86552         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86553
86554         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86555
86556         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86557         configure.in
86558         (AC_CHECK_HEADERS): Likewise for sh-utils.
86559         (AC_CHECK_HEADERS): Likewise for textutils.
86560         Merge the three lists of headers.
86561
86562         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86563         from fileutils' configure.in.
86564
86565         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86566         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86567         check-decl.m4.
86568
86569         * m4/check-decl.m4: Use #if rather than #ifdef.
86570         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86571         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86572         (_jm_DECL_HEADERS): Define new function.
86573         (jm_CHECK_DECLARATIONS): Require it.
86574
86575 2000-01-22  Jim Meyering  <meyering@lucent.com>
86576
86577         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86578         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86579         Required for some AIX systems.  Reported by Christian Krackowizer.
86580         [TESTING] (main): New function.
86581
86582         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86583         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86584         letters.
86585
86586         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86587         iswprint.
86588
86589         * lib/strverscmp.c (ISDIGIT): Define.
86590         (strverscmp): Use ISDIGIT, not isdigit.
86591
86592 2000-01-19  Jim Meyering  <meyering@lucent.com>
86593
86594         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86595         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86596         defines `struct timespec' in <sys/time.h>
86597
86598         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86599         Thanks to Akim for explaining.
86600
86601 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86602
86603         * lib/nanosleep.c (nanosleep):
86604         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86605         POSIX.1 doesn't require SA_INTERRUPT and some systems
86606         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86607         it's been part of POSIX.1 since day 1 (in 1988).
86608
86609 2000-01-17  Jim Meyering  <meyering@lucent.com>
86610
86611         * lib/interlock: Remove unused file.  Reported by François Pinard.
86612
86613 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86614
86615         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86616         alert, backslash, formfeed, and vertical tab unnecessarily in
86617         shell quoting style.
86618
86619 2000-01-16  Jim Meyering  <meyering@lucent.com>
86620
86621         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86622         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86623         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86624         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86625
86626 2000-01-16  Jim Meyering  <meyering@lucent.com>
86627
86628         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86629         because the latter didn't work.
86630
86631 2000-01-15  Jim Meyering  <meyering@lucent.com>
86632
86633         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86634         (AC_REPLACE_FUNCS): Add memcpy and memset.
86635         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86636         Add strpbrk.
86637         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86638
86639 2000-01-12  Jim Meyering  <meyering@lucent.com>
86640
86641         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86642         (jm_PREREQ): Use it.
86643         (jm_PREREQ_READUTMP): New macro.
86644         (jm_PREREQ): Use it.
86645
86646 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86647
86648         Quote multibyte characters correctly.
86649         * m4/c-bs-a.m4: New file.
86650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86651         (jm_PREREQ): Use it.
86652
86653 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86654
86655         * m4/uintmax_t.m4: Port to autoconf 2.13.
86656
86657 2000-01-08  Jim Meyering  <meyering@ascend.com>
86658
86659         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86660         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86661
86662 2000-01-04  Jim Meyering  <meyering@ascend.com>
86663
86664         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86665         jm_STRUCT_DIRENT_D_TYPE.
86666         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86667         jm_STRUCT_DIRENT_D_INO.
86668         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86669         jm_STRUCT_UTIMBUF.
86670         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86671         renamings.
86672         * m4/utime.m4: Likewise.
86673
86674         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86675         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86676
86677 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86678
86679         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86680         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86681
86682 2000-01-02  Jim Meyering  <meyering@ascend.com>
86683
86684         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86685         remember if this is necessary.
86686
86687 1999-12-26  Jim Meyering  <meyering@ascend.com>
86688
86689         * m4/jm-macros.m4: Use it here.
86690         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86691
86692 1999-12-23  Jim Meyering  <meyering@ascend.com>
86693
86694         * m4/jm-macros.m4: Check for clock_gettime (moved from
86695         fileutils/configure.in)
86696         Check for gettimeofday.
86697
86698 1999-12-20  Jim Meyering  <meyering@ascend.com>
86699
86700         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86701         autoconf-2.14a-1999-12-20.
86702
86703 1999-12-19  Jim Meyering  <meyering@ascend.com>
86704
86705         * m4/lstat-slash.m4: New file.
86706         * m4/jm-macros.m4: Use the new macro:
86707         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86708
86709 1999-12-07  Jim Meyering  <meyering@ascend.com>
86710
86711         * m4/perl.m4: Require that File::Compare be available, too.
86712         Too many systems seem to lack it.
86713
86714         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86715         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86716
86717 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86718
86719         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86720         problem with the QNX 4.25 shell, which doesn't propagate exit
86721         status of failed commands inside shell assignments.
86722
86723 1999-11-17  Jim Meyering  <meyering@ascend.com>
86724
86725         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86726
86727 1999-11-07  Jim Meyering  <meyering@ascend.com>
86728
86729         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86730
86731 1999-11-06  Jim Meyering  <meyering@ascend.com>
86732
86733         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86734         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86735
86736 1999-11-05  Jim Meyering  <meyering@ascend.com>
86737
86738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86739         configure.in of textutils, fileutils, and sh-utils into this one
86740         (shared between those packages) file.
86741         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86742         AC_STRUCT_ST_BLKSIZE.
86743
86744 1999-11-03  Jim Meyering  <meyering@ascend.com>
86745
86746         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86747         of AC_CHECK_TYPE checks includes unistd.h.
86748         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86749         Suggestion from Akim Demaille.
86750
86751 1999-10-30  Jim Meyering  <meyering@ascend.com>
86752
86753         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86754         m4-quoted string.
86755         * m4/ls-mntd-fs.m4: Likewise.
86756         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86757         * m4/jm-winsz1.m4: Likewise.
86758
86759         * m4/const.m4: Remove file, since the fix made it into the experimental
86760         version of autoconf.
86761         * m4/mktime.m4: Likewise.
86762
86763         * m4/check-type.m4: Remove file, now that the latest version of
86764         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86765
86766         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86767         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86768         AC_CHECK_TYPE.
86769
86770 1999-10-04  Jim Meyering  <meyering@ascend.com>
86771
86772         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86773
86774 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86775
86776         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86777         2.95.1 bug with HP-UX 10.20.
86778
86779 1999-09-17  Jim Meyering  <meyering@ascend.com>
86780
86781         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86782         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86783         due to missing strdup (against sh-utils-2.0).
86784
86785 1999-08-29  Jim Meyering  <meyering@ascend.com>
86786
86787         * m4/jm-macros.m4: Require jm_BISON.
86788         * m4/bison.m4: New file.
86789
86790 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86791
86792         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86793         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86794
86795 1999-08-05  Jim Meyering  <meyering@ascend.com>
86796
86797         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86798         to avoid conflicts with `conftest' on 8+3 filesystems.
86799         Suggestion from Eli Zaretskii.
86800
86801 1999-08-04  Jim Meyering  <meyering@ascend.com>
86802
86803         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86804         fileutils and sh-utils (textutils's getline test was inadequate).
86805         (AM_FUNC_GETLINE): Run this test.
86806         (AC_CHECK_FUNCS): Check for getdelim.
86807         Reported by Bob Proulx.
86808
86809 1999-08-02  Jim Meyering  <meyering@ascend.com>
86810
86811         * m4/jm-macros.m4: Add a comment.
86812
86813 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86814
86815         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86816         <inttypes.h> defines strtoumax as a macro (and not as a
86817         function).
86818
86819 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86820
86821         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86822         that we can shift, multiply and divide unsigned long long
86823         values; Ultrix cc can't do it.
86824
86825 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86826
86827         * m4/mktime.m4: New file, which is a preview of what should appear
86828         in the next public autoconf release.
86829
86830 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86831
86832         * m4/lfs.m4: Remove this file.
86833         * m4/largefile.m4: New file.  It contains the old contents of
86834         lfs.m4, except that all names with prefix AC_LFS have been
86835         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86836         compatible with future autoconf versions.  Also, some minor m4
86837         quoting problems have been fixed.
86838
86839 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86840
86841         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86842         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86843         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86844         and simplify the shell code.
86845
86846 1999-08-01  Jim Meyering  <meyering@ascend.com>
86847
86848         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86849         m4.
86850
86851 1999-07-20  Jim Meyering  <meyering@ascend.com>
86852
86853         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86854
86855 1999-07-15  Jim Meyering  <meyering@ascend.com>
86856
86857         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86858
86859 1999-05-22  Jim Meyering  <meyering@ascend.com>
86860
86861         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86862
86863 1999-05-20  Jim Meyering  <meyering@ascend.com>
86864
86865         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86866         Add a colon after each `then' in case $4 is empty.
86867
86868 1999-05-16  Jim Meyering  <meyering@ascend.com>
86869
86870         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86871
86872 1999-05-10  Jim Meyering  <meyering@ascend.com>
86873
86874         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86875
86876         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86877         AC_FUNC_MKTIME.
86878
86879 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86880
86881         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86882
86883 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86884
86885         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86886         not CPPFLAGS, so that linking works correctly in IRIX.
86887
86888 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86889
86890         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86891
86892 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86893
86894         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86895         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86896         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86897         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86898         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86899
86900         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86901
86902 1999-04-20  Jim Meyering  <meyering@ascend.com>
86903
86904         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86905         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86906         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86907
86908 1999-04-18  Jim Meyering  <meyering@ascend.com>
86909
86910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86911         * m4/jm-macros.m4: Use it.
86912
86913 1999-04-06  Jim Meyering  <meyering@ascend.com>
86914
86915         * m4/strftime.m4: Remove test for %f.
86916
86917 1999-03-29  Jim Meyering  <meyering@ascend.com>
86918
86919         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86920         superset of the AC_TYPE_* checks in the textutils, fileutils,
86921         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86922         AC_TYPE_PID_T.
86923
86924 1999-03-28  Jim Meyering  <meyering@ascend.com>
86925
86926         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86927         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86928         replaced e.g., in the *.sh files of the sh-utils.
86929
86930 1999-03-20  Jim Meyering  <meyering@ascend.com>
86931
86932         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86933         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86934         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86935
86936 1999-03-19  Jim Meyering  <meyering@ascend.com>
86937
86938         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86939
86940 1999-03-12  Jim Meyering  <meyering@ascend.com>
86941
86942         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86943
86944 1999-03-07  Jim Meyering  <meyering@ascend.com>
86945
86946         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86947         declared.
86948
86949 1999-02-17  Jim Meyering  <meyering@ascend.com>
86950
86951         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86952         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86953
86954 1999-02-07  Jim Meyering  <meyering@ascend.com>
86955
86956         * m4/group-member.m4: New file -- extracted from sh-utils'
86957         configure.in.
86958
86959         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86960         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86961
86962 1999-02-06  Jim Meyering  <meyering@ascend.com>
86963
86964         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86965         * m4/fnmatch.m4: Likewise.
86966         * m4/getgroups.m4: Likewise.
86967         * m4/lstat.m4: Likewise.
86968         * m4/malloc.m4: Likewise.
86969         * m4/putenv.m4: Likewise.
86970         * m4/realloc.m4: Likewise.
86971         * m4/regex.m4: Likewise.
86972         * m4/stat.m4: Likewise.
86973         * m4/strftime.m4: Likewise.
86974         Suggestion from Alain Magloire.
86975
86976         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86977         * m4/fnmatch.m4: Likewise.
86978         * m4/getgroups.m4: Likewise.
86979         * m4/getline.m4: Likewise.
86980         * m4/lstat.m4: Likewise.
86981         * m4/malloc.m4: Likewise.
86982         * m4/memcmp.m4: Likewise.
86983         * m4/putenv.m4: Likewise.
86984         * m4/realloc.m4: Likewise.
86985         * m4/regex.m4: Likewise.
86986         * m4/stat.m4: Likewise.
86987         * m4/strftime.m4: Likewise.
86988         Suggestion from Alain Magloire.
86989
86990         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86991         an argument.
86992
86993         * m4/regex.m4: Add a run-time Test for proper operation of
86994         re_compile_pattern.
86995
86996 1999-01-31  Jim Meyering  <meyering@ascend.com>
86997
86998         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86999
87000 1999-01-30  Jim Meyering  <meyering@ascend.com>
87001
87002         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87003
87004         * m4/jm-mktime.m4: Make this a wrapper around the official
87005         AM_FUNC_MKTIME rather than my private copy, now that the official one
87006         is up to date.
87007         * m4/mktime.m4: Remove file.
87008
87009         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87010         * m4/uptime.m4: Likewise.
87011         * m4/uintmax_t.m4: Likewise.
87012
87013 1999-01-28  Jim Meyering  <meyering@ascend.com>
87014
87015         * m4/jm-macros.m4: Use jm_AFS.
87016         * m4/afs.m4: New file (from fileutils' configure.in).
87017
87018         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87019         * m4/chown.m4: Likewise.
87020         * m4/d-ino.m4: Likewise.
87021         * m4/d-type.m4: Likewise.
87022         * m4/fnmatch.m4: Likewise.
87023         * m4/getgroups.m4: Likewise.
87024         * m4/gettext.m4: Likewise.
87025         * m4/jm-mktime.m4: Likewise.
87026         * m4/jm-winsz2.m4: Likewise.
87027         * m4/lcmessage.m4: Likewise.
87028         * m4/ls-mntd-fs.m4: Likewise.
87029         * m4/malloc.m4: Likewise.
87030         * m4/memcmp.m4: Likewise.
87031         * m4/putenv.m4: Likewise.
87032         * m4/realloc.m4: Likewise.
87033         * m4/st_mtim.m4: Likewise.
87034         * m4/strftime.m4: Likewise.
87035
87036 1999-01-16  Jim Meyering  <meyering@ascend.com>
87037
87038         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87039         (ARGMATCH_DIE_DECL): Define.
87040
87041 1999-01-12  Jim Meyering  <meyering@ascend.com>
87042
87043         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87044         Reported by Lars Hecking.
87045
87046 1999-01-10  Jim Meyering  <meyering@ascend.com>
87047
87048         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87049         gross kludge.
87050         * m4/inttypes_h.m4: Likewise.
87051         * m4/lstat.m4: Likewise.
87052         * m4/malloc.m4: Likewise.
87053         * m4/readdir.m4: Likewise.
87054         * m4/realloc.m4: Likewise.
87055         * m4/st_dm_mode.m4: Likewise.
87056         * m4/stat.m4: Likewise.
87057         * m4/utimbuf.m4: Likewise.
87058         * m4/utimes.m4: Likewise.
87059
87060         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87061         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87062         comments in config.h.in are meaningful.
87063
87064         * m4/jm-macros.m4: Require autoconf-2.13 here.
87065
87066         * m4/regex.m4: By default, don't use the included regex.c on systems
87067         with glibc 2.  Suggestion from Uli Drepper.
87068
87069 1999-01-02  Jim Meyering  <meyering@ascend.com>
87070
87071         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87072
87073 1998-12-18  Jim Meyering  <meyering@ascend.com>
87074
87075         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87076         Based on a suggestion from Lars Hecking.
87077
87078 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87079
87080         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87081
87082 1998-11-16  Jim Meyering  <meyering@ascend.com>
87083
87084         * m4/lfs.m4: Double-quote the `uname...` expression.
87085
87086 1998-11-14  Jim Meyering  <meyering@ascend.com>
87087
87088         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87089         * m4/stat.m4: Likewise.
87090
87091 1998-11-03  Jim Meyering  <meyering@ascend.com>
87092
87093         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87094         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87095
87096 1998-10-18  Jim Meyering  <meyering@ascend.com>
87097
87098         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87099
87100 1998-10-17  Jim Meyering  <meyering@ascend.com>
87101
87102         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87103         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87104         calls for those previously hard-coded headers.  Instead, take a new
87105         parameter.
87106         (jm_CHECK_DECLARATIONS): Reflect interface change.
87107         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87108         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87109
87110         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87111
87112 1998-10-14  Jim Meyering  <meyering@ascend.com>
87113
87114         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87115         instead of "TZ=America/Vancouver".  From Paul Eggert.
87116
87117 1998-10-11  Jim Meyering  <meyering@ascend.com>
87118
87119         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87120         This adds a test for a recently added compatibility fix for mktime.c.
87121         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87122
87123 1998-09-27  Jim Meyering  <meyering@ascend.com>
87124
87125         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87126
87127         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87128         ../configure.in, including a change from Gordon Matzigkeit to allow
87129         cross-compiling for the Hurd.
87130
87131         * m4/glibc.m4: New file/macro to test for the GNU C Library
87132         versions 1 and 2.  From Gordon Matzigkeit.
87133         Indent.
87134
87135 1998-09-21  Jim Meyering  <meyering@ascend.com>
87136
87137         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87138
87139 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87140
87141         Port nanosecond-resolution times to UnixWare 2.1.2 and
87142         pedantic Solaris 2.6.
87143
87144         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87145         AC_STRUCT_ST_MTIM.
87146         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87147         Generate name of ns member, instead of just 1 or undef.
87148         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87149
87150 1998-08-15  Jim Meyering  <meyering@ascend.com>
87151
87152         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87153         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87154         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87155         instead of jm_TYPE_SSIZE_T.
87156
87157 1998-08-12  Jim Meyering  <meyering@ascend.com>
87158
87159         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87160
87161 1998-08-02  Jim Meyering  <meyering@ascend.com>
87162
87163         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87164         in acconfig.h manually.
87165
87166 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87167
87168         * m4/st_mtim.m4: New file.
87169
87170 1998-07-28  Jim Meyering  <meyering@ascend.com>
87171
87172         * m4/utimes.m4: Undef stat.
87173
87174 1998-07-25  Jim Meyering  <meyering@ascend.com>
87175
87176         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87177         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87178
87179 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87180
87181         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87182         uid and gid actually remain unchanged.
87183
87184 1998-07-07  Jim Meyering  <meyering@ascend.com>
87185
87186         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87187
87188 1998-07-04  Jim Meyering  <meyering@ascend.com>
87189
87190         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87191         to prove that this macro can be used in packages without regex.c.
87192
87193 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87194
87195         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87196         is to be used.
87197
87198 1998-07-03  Jim Meyering  <meyering@ascend.com>
87199
87200         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87201
87202         * m4/gettext.m4: New file -- from gettext-0.10.35.
87203         * m4/lcmessage.m4: Likewise.
87204         * m4/progtest.m4: Likewise.
87205
87206         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87207         * m4/jm-macros.m4: Require the new macro.
87208
87209 1998-06-29  Jim Meyering  <meyering@ascend.com>
87210
87211         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87212         for the definition of NGROUPS (used in a system header included
87213         by sys/mount.h).
87214
87215 1998-06-28  Jim Meyering  <meyering@ascend.com>
87216
87217         * m4/ls-mntd-fs.m4: New file.
87218         * m4/fstypename.m4: New file.
87219
87220         * m4/jm-macros.m4: Require the new macro.
87221         * m4/jm-glibc-io.m4: New file.
87222
87223 1998-05-19  Jim Meyering  <meyering@ascend.com>
87224
87225         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87226         * m4/lchown.m4: New file.
87227
87228         * m4/Makefile.am.in: New file.
87229         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87230
87231 1998-05-14  Jim Meyering  <meyering@ascend.com>
87232
87233         * m4/Makefile.am (EXTRA_DIST): Add them.
87234         * m4/jm-macros.m4: New file.
87235         * m4/utimbuf.m4: New file.
87236
87237 1998-05-12  Jim Meyering  <meyering@ascend.com>
87238
87239         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87240
87241 1998-05-11  Jim Meyering  <meyering@ascend.com>
87242
87243         * m4/isc-posix.m4: New file.
87244
87245 1998-05-10  Jim Meyering  <meyering@ascend.com>
87246
87247         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87248
87249 1998-05-09  Jim Meyering  <meyering@ascend.com>
87250
87251         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87252         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87253         with automake.
87254
87255         * m4/ssize_t.m4: New file.
87256         * m4/mktime.m4: Remove file -- the new automake has this now.
87257
87258 1998-04-26  Jim Meyering  <meyering@ascend.com>
87259
87260         * m4/assert.m4: New file.
87261         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87262
87263 1998-04-05  Jim Meyering  <meyering@ascend.com>
87264
87265         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87266         (jm_PREREQ): Use it here.
87267
87268 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87269
87270         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87271         in acconfig.h.
87272
87273 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87274
87275         * m4/prereq.m4: New file.
87276         * m4/error.m4: New file.
87277         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87278
87279 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87280
87281         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87282         cache-check for the same variable -- that defeated the purpose of
87283         the test; the test program was never run.  This was a problem only
87284         on systems with losing getline functions -- HP-UX 10.20 is one.
87285         Reported by Bjorn Helgaas.
87286
87287 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87288
87289         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87290
87291 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87292
87293         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87294
87295         * m4/const.m4: New file.  Use an initializer in this declaration
87296         typedef int charset[2]; const charset x;
87297         Reported by Bob Glickstein.
87298
87299 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87300
87301         * m4/chown.m4: Fix reversed types on -1 args to chown.
87302         From Kaveh Ghazi.
87303
87304 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87305
87306         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87307         Add lseek and memchr.
87308
87309         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87310         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87311         have a 20-character limit on names.
87312
87313 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87314
87315         * m4/inttypes_h.m4: New file.
87316         * m4/uintmax_t.m4: New file.
87317         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87318
87319
87320         -----
87321
87322         Local Variables:
87323         coding: utf-8
87324         End:
87325
87326         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87327
87328         Copying and distribution of this file, with or without
87329         modification, are permitted provided the copyright notice
87330         and this notice are preserved.